joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4648d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x464aa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x464ac0
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00465558
mov eax, esi
call fcn.004044fc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.00464de8
xor eax, eax
push ebp
push 0x464a8c
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x464a05
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x464a2b
cmp ebx, 1
jle 0x4649cf
mov eax, dword [esi]
call fcn.004047b4
mov edi, eax
lea edx, [edi + ebx]
mov eax, esi
call fcn.00404b38
mov eax, esi
call fcn.00404a04
inc edi
dec edi
test eax, eax
je 0x464986
cmp edi, dword [eax - 4]
jb 0x46498b
call fcn.004036d0
inc edi
lea edx, [eax + edi - 1]
mov eax, dword [ebp - 4]
add eax, 0x30
mov ecx, ebx
call fcn.00402920
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x4649c5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.00464de8
jmp 0x4649f9
inc ebx
jne 0x4649f9
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x464a2b
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046548c
mov eax, dword [0x489e34]
mov eax, dword [eax]
call fcn.0045eaec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x464a2b
cmp dword [ebp - 8], 0xffffffff
je 0x464934
mov eax, dword [esi]
call fcn.004047b4
cmp eax, dword [ebp - 8]
jl 0x464934
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x464a76
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x464ad8
mov dl, 1
mov eax, dword [0x463434]
call fcn.0040bc70
call fcn.00403f5c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x464a76
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464a93
mov eax, dword [ebp - 4]
call fcn.00464e40
ret
Function at 0x465394
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x465460
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x465474
mov dl, 4
mov eax, ebx
call fcn.00465558
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x46544a
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x46543c
test byte [ebx + 0x1c], 8
jne 0x4653f9
cmp word [ebx + 0x10052], 0
je 0x4653f9
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x46544a
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x46541c
call fcn.004036d0
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x46544a
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0046548c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465467
lea eax, [ebp - 4]
call fcn.004044fc
ret

Function at 0x465600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x46563c
mov dl, 8
mov eax, ebx
call fcn.00465558
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x46562e
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x469d84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040499c
xor eax, eax
push ebp
push 0x469e9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, 0x469eb0
call fcn.00404800
mov eax, 0x104
call fcn.00408500
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x469e65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x200
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x18]
mov edx, 0x469ec4
call fcn.00404594
mov eax, 0x104
call fcn.00408500
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x469e48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x18]
call fcn.004049ac
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.004046ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469e4f
mov eax, dword [ebp - 0x10]
call fcn.00402744
ret

Function at 0x46e110
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46e13e
mov eax, ebx
call fcn.0046ebc8
cmp dword [ebx + 0x3c], 0
je 0x46e137
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46e1af
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x46e1a1
cmp dword [ebx + 8], 0
je 0x46e160
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46e172
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46e1a1
cmp dword [ebx + 8], 0
je 0x46e153
cmp eax, 3
je 0x46e185
dec eax
jne 0x46e153
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46e153
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46e153
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46e1cd
cmp dword [ebx + 0x10], 0xcc
je 0x46e1cd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046e1d8
pop ebx
ret
Function at 0x47f444
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47f4cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48acb8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47f4b7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040b418
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47f4e4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x489ec4]
mov dl, 1
mov eax, dword [0x47ecf8]
call fcn.0040bd68
call fcn.00403f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f4d4
lea eax, [ebp - 0x1c]
call fcn.004044fc
ret

Function at 0x47fb74
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047fa98
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040398c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x47fbd8
call fcn.0047f38c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x47fbca
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040398c
pop esi
pop ebx
ret

Function at 0x47fbfc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004049ac
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403080
test ebx, ebx
je 0x47fc47
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x47fd24
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47fd55
mov ecx, dword [0x489df0]
mov dl, 1
mov eax, dword [0x47ecf8]
call fcn.0040bd2c
call fcn.00403f5c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47fd82
mov ecx, dword [0x489d98]
mov dl, 1
mov eax, dword [0x47ecf8]
call fcn.0040bd2c
call fcn.00403f5c
xor eax, eax
push ebp
push 0x47fdfe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040398c
cmp byte [ebp + 8], 0
je 0x47fdda
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047fc8c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0047fb74
jmp 0x47fdf4
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047f678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47fe1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47ffe0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047f934
xor eax, eax
push ebp
push 0x480152
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x48013c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x48002b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x480035
call fcn.00404008
jmp 0x480159
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c4c8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x480131
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4800e3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4800d0
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040398c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047ff98
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x480164]
cmp dl, byte [eax + 0x28]
je 0x480138
call fcn.0040bc14
jmp 0x480138
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c4e8
jmp 0x480138
cmp ecx, ebx
jge 0x4800ff
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c4e8
jmp 0x480035
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c4c8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c4fc
cmp edx, dword [esp + 4]
jne 0x480120
cmp eax, dword [esp]
pop edx
pop eax
jne 0x480035
push ebp
call fcn.0047ff98
pop ecx
jmp 0x480138
push ebp
call fcn.0047ff98
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480159
mov eax, dword [ebp - 4]
call fcn.0047f940
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x10001112
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi], eax
je 0x10001112
mov ecx, eax
push edi
lea edx, [esi + 4]
mov edi, dword [ecx]
mov dword [edx], edi
mov cl, byte [ecx + 4]
mov dword [esp + 0xc], 0
mov byte [edx + 4], cl
lea edx, [esp + 0xc]
push edx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
pop edi
je 0x10001112
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov byte [esi + 9], 0xe9
sub ecx, 5
push 5
mov dword [esi + 0xa], ecx
mov edx, dword [esi + 9]
mov dword [eax], edx
mov cl, byte [esi + 0xd]
mov byte [eax + 4], cl
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc

Function at 0x100011e0
Capabilities:
Read file via mapping

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x1000124c
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
test eax, eax
je 0x10001245
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10001245
push esi
xor ecx, ecx
lea esi, [eax + 0x208]
mov edx, dword [esi]
cmp edx, edi
je 0x1000123d
test edx, edx
je 0x10001231
inc ecx
add esi, 4
cmp ecx, 0x80
jl 0x1000120c
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
mov eax, ebx
pop ebx
pop edi
ret 4
mov dword [eax + ecx*4 + 0x208], edi
mov ebx, 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
mov eax, ebx
pop ebx
pop edi
ret 4
xor eax, eax
pop edi
ret 4

Function at 0x10001260
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
cmp edi, esi
je 0x100012c3
mov eax, dword [ecx + 4]
cmp eax, esi
je 0x100012bc
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x100012bc
xor ecx, ecx
lea edx, [eax + 0x208]
cmp dword [edx], edi
je 0x100012a9
inc ecx
add edx, 4
cmp ecx, 0x80
jl 0x1000128b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop edi
pop esi
ret 4
mov dword [eax + ecx*4 + 0x208], esi
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop edi
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x100012d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x218
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x100012fb
pop edi
pop esi
pop ebp
add esp, 0x218
ret
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001314
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov ecx, dword [esp + 0x18]
push ebx
push esi
push edi
push ecx
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100013d7
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100013d7
mov cx, word [0x1000b448]
xor eax, eax
mov word [esp + 0x20], cx
mov ecx, 0x81
lea edi, [esp + 0x22]
mov edx, dword [esp + 0x230]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
push edx
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100013d7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x100013d7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x234]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x100014d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
cmp word [ebx], 0
push edi
mov eax, ebx
je 0x10001540
mov ebp, dword [sym.imp.MSVCRT.dll_wcsncpy]
push 0x100090d8
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10001540
mov edx, esi
sub edx, ebx
sar edx, 1
test edx, edx
jle 0x10001536
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x10]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x100014ef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x10001680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov al, byte [0x1000b44c]
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x100016db
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x10]
add esp, 4
lea eax, [esp + 0x10]
push edx
push str.Time_d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edi, dword [esp + 0x418]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10009130
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
push eax
mov eax, dword [esp + 0x428]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001799
push 2
push 0
push 0
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret

Function at 0x10001880
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
lea edx, [esp]
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
push 0x200
push edx
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
add esp, 0x400
ret
Function at 0x100018d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
push ebx
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x614]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x614]
push 0x200
push edx
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push str.c:_ftlog.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001a68
mov al, byte [0x1000b44c]
mov ecx, 0x83
mov byte [ebp - 0x214], al
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x214]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__strtime]
mov edi, 0x10009378
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x614]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x1000199b
xor esi, esi
jmp 0x100019d6
lea ecx, [ebp - 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.100069d0
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x614]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x214]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10009130
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push 0
push eax
lea edi, [ebp - 0x214]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x214]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x620]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret