joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b900
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x600], 0
push 0x206
push 0
lea eax, [ebp - 0x5fe]
push eax
call fcn.00463f00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x600]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x600]
push edx
call fcn.0040c390
add esp, 8
mov word [eax + 2], 0
mov dword [ebp - 0x814], 0x1f4
mov word [ebp - 0x3f0], 0
push 0x3e6
push 0
lea eax, [ebp - 0x3ee]
push eax
call fcn.00463f00
add esp, 0xc
lea ecx, [ebp - 0x600]
push ecx
push str._sxxxx.log
lea edx, [ebp - 0x808]
push edx
call fcn.00466ebb
add esp, 0xc
lea eax, [ebp - 0x600]
push eax
push str._slog.txt
lea ecx, [ebp - 0x808]
push ecx
call fcn.00466ebb
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x814]
sub edx, 1
push edx
lea eax, [ebp - 0x3f0]
push eax
call fcn.00468efe
add esp, 0x10
mov ecx, dword [ebp - 0x814]
mov word [ebp + ecx*2 - 0x3f2], 0
mov dword [ebp - 0x810], 0
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ba1e
mov dword [ebp - 0x810], 1
push 0x516df0
lea eax, [ebp - 0x808]
push eax
call fcn.00468e19
add esp, 8
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x43bafc
cmp dword [ebp - 0x810], 0
jne 0x43ba71
mov word [ebp - 0x820], 0xfeff
mov ecx, dword [ebp - 0x3f4]
push ecx
push 2
push 1
lea edx, [ebp - 0x820]
push edx
call fcn.00465eab
add esp, 0x10
lea eax, [ebp - 0x3f0]
push eax
call fcn.00464297
add esp, 4
mov dword [ebp - 0x818], eax
mov ecx, dword [ebp - 0x3f4]
push ecx
mov edx, dword [ebp - 0x818]
shl edx, 1
push edx
push 1
lea eax, [ebp - 0x3f0]
push eax
call fcn.00465eab
add esp, 0x10
mov word [ebp - 0x81c], 0xd
mov ecx, dword [ebp - 0x3f4]
push ecx
push 2
push 1
lea edx, [ebp - 0x81c]
push edx
call fcn.00465eab
add esp, 0x10
mov word [ebp - 0x81c], 0xa
mov eax, dword [ebp - 0x3f4]
push eax
push 2
push 1
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00465eab
add esp, 0x10
mov edx, dword [ebp - 0x3f4]
push edx
call fcn.00466842
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret

Function at 0x43d1c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x478a87
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046d1da
xor ebx, ebx
cmp dword [0x56a6dc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x478b5c
push 0x51b85c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x478ac7
xor eax, eax
jmp 0x478c20
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51b850
push edi
call esi
cmp eax, ebx
je 0x478ac0
push eax
call fcn.0046d177
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56a6dc], eax
call esi
push eax
call fcn.0046d177
mov dword [esp], 0x51b82c
push edi
mov dword [0x56a6e0], eax
call esi
push eax
call fcn.0046d177
mov dword [0x56a6e4], eax
lea eax, [ebp - 8]
push eax
call fcn.0046c201
test eax, eax
pop ecx
pop ecx
je 0x478b2a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463fce
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x478b5c
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.0046d177
cmp eax, ebx
pop ecx
mov dword [0x56a6ec], eax
je 0x478b5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046d177
pop ecx
mov dword [0x56a6e8], eax
mov eax, dword [0x56a6e8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x478bd5
cmp dword [0x56a6ec], esi
je 0x478bd5
push eax
call fcn.0046d1e3
pop ecx
call eax
cmp eax, ebx
je 0x478ba2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x56a6ec]
call fcn.0046d1e3
pop ecx
call eax
test eax, eax
je 0x478ba2
test byte [ebp - 0x18], 1
jne 0x478bd5
lea eax, [ebp - 0xc]
push eax
call fcn.0046c238
test eax, eax
pop ecx
je 0x478bbd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463fce
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x478bcc
or dword [ebp + 0x10], 0x200000
jmp 0x478c06
or dword [ebp + 0x10], 0x40000
jmp 0x478c06
mov eax, dword [0x56a6e0]
cmp eax, esi
je 0x478c06
push eax
call fcn.0046d1e3
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x478c06
mov eax, dword [0x56a6e4]
cmp eax, esi
je 0x478c06
push dword [ebp - 4]
push eax
call fcn.0046d1e3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x56a6dc]
call fcn.0046d1e3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47cf91
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046d1da
xor ebx, ebx
cmp dword [0x56a954], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x47d066
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x47cfd1
xor eax, eax
jmp 0x47d12a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x47cfca
push eax
call fcn.0046d177
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56a954], eax
call esi
push eax
call fcn.0046d177
mov dword [esp], 0x51b82c
push edi
mov dword [0x56a958], eax
call esi
push eax
call fcn.0046d177
mov dword [0x56a95c], eax
lea eax, [ebp - 8]
push eax
call fcn.0046c201
test eax, eax
pop ecx
pop ecx
je 0x47d034
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463fce
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x47d066
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046d177
cmp eax, ebx
pop ecx
mov dword [0x56a964], eax
je 0x47d066
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046d177
pop ecx
mov dword [0x56a960], eax
mov eax, dword [0x56a960]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x47d0df
cmp dword [0x56a964], esi
je 0x47d0df
push eax
call fcn.0046d1e3
pop ecx
call eax
cmp eax, ebx
je 0x47d0ac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x56a964]
call fcn.0046d1e3
pop ecx
call eax
test eax, eax
je 0x47d0ac
test byte [ebp - 0x18], 1
jne 0x47d0df
lea eax, [ebp - 0xc]
push eax
call fcn.0046c238
test eax, eax
pop ecx
je 0x47d0c7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463fce
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x47d0d6
or dword [ebp + 0x10], 0x200000
jmp 0x47d110
or dword [ebp + 0x10], 0x40000
jmp 0x47d110
mov eax, dword [0x56a958]
cmp eax, esi
je 0x47d110
push eax
call fcn.0046d1e3
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47d110
mov eax, dword [0x56a95c]
cmp eax, esi
je 0x47d110
push dword [ebp - 4]
push eax
call fcn.0046d1e3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x56a954]
call fcn.0046d1e3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48415f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004840f4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00463f00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4841ae
cmp dword [ebp - 0x1c], 5
jb 0x4841c6
jmp 0x4841c2
cmp dword [ebp - 0x10], 1
jne 0x4841c6
cmp dword [ebp - 0x1c], 4
ja 0x4841c2
jne 0x4841c6
cmp dword [ebp - 0x18], 0
jbe 0x4841c6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x51c248
call fcn.0042b710
test eax, eax
jge 0x4841e7
mov byte [0x56b364], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00463ee8
add ebp, 0x78
leave
ret

Function at 0x484230
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5645bc]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x484280
mov ax, word [esp]
cmp al, 2
jne 0x48427a
cmp ah, al
jne 0x48427a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00463ee8
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00463ee8
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x48fd82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x48fed0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x48feeb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x48ff1f
cmp eax, 2
jg 0x48ff1f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x51d3a4]
push 2
push edx
call fcn.00465eab
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00465eab
add esp, 0x20
xor eax, eax
ret
Function at 0x499f60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x51d2ec
push ecx
call fcn.00490020
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00499100
test eax, eax
jne 0x499f90
mov eax, esi
jmp fcn.00499590
ret
Function at 0x49a3a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5645bc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3d0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x49a42f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004669d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x49a46a
push str.Received_too_short_packet
push ebx
call fcn.004900b0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463ee8
add esp, 0x88
ret
mov eax, edi
call fcn.00499280
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x49a483
jmp dword [eax*4 + 0x49a570]
cmp edx, 4
jle case.0x49a483.4
mov eax, edi
call fcn.00499290
movzx ecx, word [esi + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x49a483.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00490390
mov edi, eax
add esp, 0x10
test edi, edi
je 0x49a4d8
mov ecx, 5
mov eax, esi
call fcn.0049a320
mov eax, edi
jmp 0x49a451
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.004a6f60
jmp 0x49a544
mov eax, edi
call fcn.00499290
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x51d2ec
push ebx
mov dword [esi + 8], edx
call fcn.00490020
jmp 0x49a544
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00499330
add esp, 0xc
test eax, eax
je case.0x49a483.4
jmp 0x49a451
push str.Internal_error:_Unexpected_packet
push 0x51d15c
push ebx
call fcn.004900b0
add esp, 0xc
push ebp
call fcn.004a7020
add esp, 4
test eax, eax
je 0x49a44f
mov ecx, 5
mov eax, esi
call fcn.0049a320
mov eax, 0x2a
jmp 0x49a451

Function at 0x49c2e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x49c324
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004900b0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0049c1d0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4ada10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50e6d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x56ac6c
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x56ac6c
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x539ea8
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004b0c30
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4ddd32
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4ddd3d
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x4dddf8
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
sub eax, 8
dec edi
jne 0x4ddd5d
pop edi
test eax, eax
je 0x4dde11
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52aa08]
inc edx
dec eax
jne 0x4dddfc
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x4de2aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4de2de
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4de2d9
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4de306
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4de2ef
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004669d0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4df09c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4df145
movzx ecx, word [esi]
test cx, cx
je 0x4df145
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4df0da
cmp cx, 0x5c
jne 0x4df0dc
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4df0ce
cmp eax, esi
je 0x4df119
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f0500
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004df09c
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00465d5f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00465d35
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00463ee8
leave
ret
Function at 0x4e0676
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e06f1
cmp dword [esi + 4], 0xffffffff
jne 0x4e06f1
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x539eac
push edi
call fcn.00465d35
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4e06c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4e06c3
mov eax, 0x2000000
jmp 0x4e06f6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004de0c0
add esp, 0x10
test eax, eax
jne 0x4e06e1
mov eax, dword [ebp + 0x10]
jmp 0x4e06f6
push eax
call fcn.004e0272
mov dword [esi], eax
mov eax, dword [0x56b200]
pop ecx
jmp 0x4e06f6
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x40cdf9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5c53
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70b744]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040d0eb
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d043
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00410779
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051d721
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x413c2f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f537e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
and dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
call fcn.0041f58e
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
call fcn.00413cea
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00447074
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414a82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f6137
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x70b744]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x414ae5
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0051d721
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x414b0d
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x414b0d
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x414ac5
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x414b19
or eax, 0xffffffff
jmp 0x414ac5
cmp dword [esi + 0x3c], edi
jne 0x414b2d
push eax
push ebx
call fcn.0041c114
test al, al
pop ecx
pop ecx
je 0x414b14
jmp 0x414b09
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.00401ea3
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x414c3d
cmp eax, 1
jg 0x414c65
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x414bd2
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052007a
add esp, 0x10
cmp edi, eax
jne 0x414c7c
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x414c93
test edi, edi
ja 0x414c00
cmp dword [esp + 0x58], 0x20
jae 0x414c7c
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00410989
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0041c383
mov ecx, eax
call fcn.00415e7b
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x414b80
jmp 0x414c7c
cmp eax, 3
jne 0x414c7c
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0041c114
test al, al
pop ecx
pop ecx
jne 0x414c93
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004108b7
mov eax, esi
jmp 0x414ac5
mov esi, dword [ebp + 8]
jmp 0x414c7f