joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c94
Capabilities:
Encode data using xor

Disassembly:
test eax, eax
je 0x402ca8
test edx, edx
je 0x402c9d
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov ecx, dword [edi - 4]
push edi
mov edx, dword [esi - 4]
dec edx
js 0x402c98
mov al, byte [esi]
inc esi
sub ecx, edx
jle 0x402c98
repne scasb al, byte es:[edi]
jne 0x402c98
mov ebx, ecx
push esi
push edi
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x402ca0
mov ecx, ebx
jmp 0x402c84
pop edx
xor eax, eax
jmp 0x402ca5
xor eax, eax
ret
pop edx
mov eax, edi
sub eax, edx
pop edi
pop esi
pop ebx
ret

Function at 0x402d44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, 1
jmp fcn.004012b0
mov edx, dword [eax]
test edx, edx
je 0x402d54
mov dword [eax], 0
push eax
push edx
call sub.oleaut32.dll_SysFreeString
pop eax
ret
test edx, edx
je 0x402d40
mov ecx, dword [edx - 4]
shr ecx, 1
je 0x402d40
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x402d38
ret

Function at 0x402ef4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp ecx, 0
je 0x402f5f
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x402eb7
cmp al, 0xb
je 0x402ed4
cmp al, 0xc
je 0x402eed
cmp al, 0xd
je 0x402efc
cmp al, 0xe
je 0x402f1a
cmp al, 0xf
je 0x402f30
cmp al, 0x11
je 0x402f3f
jmp 0x402f50
cmp ecx, 1
mov eax, ebx
jg 0x402ec8
call fcn.0040268c
jmp 0x402f5b
mov edx, ecx
call fcn.004026b0
jmp 0x402f5b
cmp ecx, 1
mov eax, ebx
jg 0x402ee3
call dword [0x40902c]
jmp 0x402f5b
mov edx, ecx
call dword [0x409030]
jmp 0x402f5b
mov eax, ebx
add ebx, 0x10
call fcn.004031f4
dec edi
jg 0x402eed
jmp 0x402f5b
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00402e74
dec edi
jg 0x402eff
pop ebp
jmp 0x402f5b
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00402e40
dec edi
jg 0x402f1d
pop ebp
jmp 0x402f5b
mov eax, ebx
add ebx, 4
call fcn.00403484
dec edi
jg 0x402f30
jmp 0x402f5b
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.004033f0
dec edi
jg 0x402f3f
jmp 0x402f5b
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.004012b0
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x403544
Capabilities:
Move file

Disassembly:
push eax
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
ret

Function at 0x4035a8
Capabilities:
Get disk size

Disassembly:
mov cl, byte [0x40b678]
mov eax, dword [0x40b67c]
test cl, cl
jne 0x4035cd
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
ret
call fcn.00403554
mov eax, dword [0x40b67c]
push eax
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x4035c7
ret
mov eax, dword [0x40b68c]
ret
push eax
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x4035b2
ret
Function at 0x403cc0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x403cb7
add esp, 0xfffffff0
call fcn.00401f88
mov ebx, edx
mov edi, eax
xor esi, esi
mov dword [edi + 8], esi
inc esi
push esi
lea eax, [edi + 4]
mov ecx, 1
mov edx, dword [0x403c1c]
call fcn.004033e4
add esp, 4
mov eax, edi
test bl, bl
je 0x403ced
call fcn.00401fe0
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4041ac
Capabilities:
Encode data using xor

Disassembly:
mov dword [0x40c548], 0x94
push 0x40c548
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x4041b4
mov eax, dword [0x40c558]
mov dword [0x4090b8], eax
mov eax, dword [0x40c54c]
mov dword [0x4090bc], eax
mov eax, dword [0x40c550]
mov dword [0x4090c0], eax
mov eax, dword [0x40c554]
mov dword [0x4090c4], eax
mov eax, 0x4090c8
mov edx, 0x40c55c
mov ecx, 0x80
call fcn.004028f0
ret
Function at 0x4066d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402b14
xor eax, eax
push ebp
push 0x40671c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov ax, 0x22
call fcn.00404b48
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00402c64
test eax, eax
jle 0x40668e
lea edx, [ebp - 0x10]
mov ax, 0x22
call fcn.00404b48
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00406508
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00402978
jmp 0x4066f9
mov eax, dword [ebp - 4]
call fcn.0040292c
mov esi, eax
test si, si
jbe 0x4066c1
mov bx, 1
movzx edi, bx
mov eax, dword [ebp - 4]
cmp byte [eax + edi - 1], 0x2f
jne 0x4066bb
lea eax, [ebp - 4]
call fcn.00402b78
mov byte [eax + edi - 1], 0x5c
inc ebx
dec si
jne 0x4066a1
mov edx, dword [ebp - 4]
mov eax, 0x406734
call fcn.00402c64
test eax, eax
jle 0x4066e9
mov edx, dword [ebp - 4]
mov eax, 0x406734
call fcn.00402c64
mov edx, eax
lea eax, [ebp - 4]
call fcn.00402cac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x406744
call fcn.00402978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406723
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004026b0
lea eax, [ebp - 4]
call fcn.0040268c
ret
Function at 0x40164e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x401745
push 0x1c84
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
push dword [esi + 0x1c0]
mov word [ebp - 0xe], ax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00410330
mov ax, word [esi + 8]
add esp, 0xc
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x40173f
and dword [ebp - 0x15c], 0
mov ebx, 0x148
push ebx
lea eax, [ebp - 0x158]
push dword [ebp + 8]
push eax
call fcn.00410330
add esp, 0xc
mov esi, 0x14c
lea eax, [ebp - 0x15c]
push 0
push esi
push eax
push edi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x40173f
test eax, eax
je 0x40173f
push 0
lea eax, [ebp - 0x15c]
push esi
push eax
push edi
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x40173f
test eax, eax
je 0x40173f
push edi
call sub.WS2_32.dll_closesocket
cmp dword [ebp - 0x15c], 0
jne 0x401745
lea eax, [ebp - 0x158]
push ebx
push eax
push dword [ebp + 8]
call fcn.00410330
add esp, 0xc
push 1
pop eax
jmp 0x401747
push edi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4023ee
push edi
push edi
mov dword [esi], 0x4307ac
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x402395
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x402704
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x402771
mov ax, word [esi + 8]
mov word [ebp - 0x14], 2
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, ebx
je 0x40276b
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push edi
mov dword [ebp - 4], 1
call sub.WS2_32.dll_setsockopt
cmp eax, ebx
jne 0x402775
push edi
call sub.WS2_32.dll_closesocket
mov eax, ebx
jmp 0x402777
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403036
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x80
push 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 3
push 0
mov edi, bind
push 3
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x403069
push 1
pop eax
jmp 0x4030c3
push 0
push ebx
push 3
push 0
push 3
push edi
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40308c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4030c3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
pop ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
mov edx, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0xc], edx
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x4030b3
xor ebx, ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x404cb3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push str.._szMir.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x404ce9
xor eax, eax
jmp 0x404d9c
cmp dword [ebp + 8], edi
jne 0x404cf6
add esi, 0x414
jmp 0x404cfc
add esi, 0x420
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], edi
cmp dword [ebp - 8], eax
jne 0x404d73
push eax
call fcn.00410fb9
pop ecx
mov dword [ebp + 8], eax
push edi
push edi
push edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push dword [esi + 4]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404d5e
mov eax, dword [esi + 4]
cmp dword [ebp - 8], eax
jne 0x404d5e
push eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00410d30
add esp, 0xc
test eax, eax
je 0x404d65
mov dword [ebp - 0xc], 1
push dword [ebp + 8]
call fcn.00410f71
cmp dword [ebp - 0xc], edi
pop ecx
je 0x404d8f
push edi
push edi
push edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x404f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x43d38c
mov esi, eax
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404f2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404f2f
xor eax, eax
jmp 0x404f36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 4
Function at 0x4053e3
Capabilities:
Accept command line arguments
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00405539
test eax, eax
je 0x405530
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040fd00
lea eax, [ebp - 0x10c]
push eax
call fcn.00410800
add esp, 0xc
xor ebx, ebx
cmp eax, ebx
jle 0x405456
cmp byte [ebp + eax - 0x10c], 0x22
lea ecx, [ebp + eax - 0x10c]
jne 0x405444
mov byte [ecx], 0x20
cmp byte [ecx], 0x5c
je 0x40544c
dec eax
jmp 0x40542c
lea eax, [ebp + eax - 0x10b]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov esi, 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp + 8]
push eax
push 0x434a50
push 1
push ebx
push 0x434a40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405530
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp + 8]
push ebx
push 0x43f668
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
push edx
mov byte [eax], bl
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp + 8]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x434a90
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x405527
lea eax, [ebp - 0x418]
push esi
push eax
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x418]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x405527
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
jmp 0x405533
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
pop esi
pop ebx
leave
ret 4
Function at 0x405539
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405596
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Common_Desktop
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x4055be
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4055ba
lea eax, [ebp - 0x10c]
push eax
push str._sdesktop_
jmp 0x4055ca
xor eax, eax
jmp 0x4055d8
lea eax, [ebp - 0x10c]
push eax
push 0x43d394
push dword [ebp + 8]
call fcn.00410c49
add esp, 0xc
push 1
pop eax
leave
ret 4
Function at 0x405976
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20804
call fcn.00410930
push ebx
push esi
push edi
call fcn.00411045
xor esi, esi
mov ebx, 0x80
push esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 3
push esi
push 1
push bind
mov dword [0x43f880], eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x405b0d
push esi
push ebx
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4059e1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405b0d
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov eax, 0xfffd
push esi
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x10408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405af5
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], esi
je 0x405af5
cmp byte [ebp - 0x10408], 0xff
movzx eax, byte [ebp - 0x10406]
jne 0x405a82
movzx ecx, byte [ebp - 0x10407]
shl eax, 8
add eax, ecx
mov ecx, dword [0x43f884]
mov dword [ebp - 4], eax
push 1
lea ecx, [ecx + eax + 3]
sub eax, dword [ebp - 8]
push esi
mov dword [0x43f884], ecx
add eax, 3
push eax
push ebx
call edi
test eax, eax
je 0x405af5
lea eax, [ebp - 0x20804]
push eax
lea eax, [ebp - 0x10405]
push dword [ebp - 4]
push eax
call fcn.0040577c
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x20804]
jmp 0x405ac0
movzx ecx, byte [ebp - 0x10407]
shl eax, 8
add eax, ecx
mov ecx, dword [0x43f884]
mov dword [ebp - 4], eax
push 1
lea ecx, [ecx + eax + 3]
sub eax, dword [ebp - 8]
push esi
mov dword [0x43f884], ecx
add eax, 3
push eax
push ebx
call edi
test eax, eax
je 0x405af5
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10405]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405af5
mov eax, dword [ebp - 4]
push esi
add dword [0x43f888], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10408]
push dword [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405a0e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp + 8]
call esi
call fcn.00411045
mov dword [0x43f87c], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b33
Capabilities:
Create thread

Disassembly:
mov eax, 0x42e6ea
call fcn.004101c8
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 0x64
mov dword [ebp - 0x10], esi
pop ecx
lea eax, [esi + 8]
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov byte [eax + 0x10], bl
add eax, 0x114
dec ecx
jne 0x405b4e
push ebx
lea ecx, [esi + 0x6be4]
call fcn.00405738
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [esi], 0x430f80
mov dword [esi + 0x6bd8], ebx
mov dword [esi + 0x6be0], ebx
mov dword [esi + 0x6bdc], ebx
call fcn.00405c88
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x405c0a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x6bdc], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405c88
Capabilities:
Create thread
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
mov esi, ecx
push 0x43d418
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405cbe
xor eax, eax
jmp 0x405dad
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [esi + 8]
push 0x6bd0
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
imul eax, eax, 0x114
add eax, esi
cmp byte [eax + 0x18], bl
je 0x405d65
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jb 0x405d65
cmp dword [esi + 0x6be0], ebx
jne 0x405d19
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x405c16
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6be0], eax
mov eax, dword [ebp - 4]
mov ecx, esi
imul eax, eax, 0x114
lea eax, [eax + esi + 0x18]
push eax
call fcn.00405e04
mov eax, dword [ebp - 4]
imul eax, eax, 0x114
lea eax, [eax + esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x114
imul eax, eax, 0x114
push ebx
lea eax, [eax + esi + 8]
push eax
call fcn.004108d0
add esp, 0xc
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jb 0x405ce0
cmp dword [esi + 0x6be0], ebx
lea edi, [esi + 0x6be0]
je 0x405d9e
push ebx
push 1
push 0x111
push dword [esi + 0x6c00]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 8], ebx
je 0x405daa
mov ecx, esi
call fcn.00405db2
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405db2
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov edi, ecx
push 0x43d418
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405ddf
xor eax, eax
jmp 0x405e00
lea eax, [esp + 8]
push 0
push eax
add edi, 8
push 0x6bd0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ecx
ret
Function at 0x405e4b
Capabilities:
Delete file

Disassembly:
mov eax, 0x42e714
call fcn.004101c8
sub esp, 0x140
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
push ebx
mov dword [ebp - 0x1c], ecx
push ebx
push 1
push ebx
lea ecx, [ebp - 0x48]
call fcn.00429314
mov dword [ebp - 4], ebx
push 0x43d444
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0041f530
push ebx
push ebx
push 1
push 1
push dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0042940f
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x40600a
mov eax, dword [0x43d6e4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x58]
cmp eax, ebx
je 0x405fde
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14c]
push eax
push str._s_d_d_d
push dword [ebp - 0x2c]
call fcn.00410b94
add esp, 0x18
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041f64b
xor edi, edi
cmp edi, 0x64
jae 0x405f6e
mov eax, edi
mov ecx, dword [ebp - 0x1c]
imul eax, eax, 0x114
lea esi, [eax + ecx]
lea eax, [esi + 0x18]
push eax
push dword [ebp - 0x14]
call fcn.0041027d
pop ecx
test eax, eax
pop ecx
jne 0x405fd5
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 8]
jne 0x405f46
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0xc]
jne 0x405f46
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi + 0x14]
je 0x405f6b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
cmp edi, 0x64
jne 0x405ebb
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
call fcn.0040604b
cmp eax, dword [ebp - 0x18]
je 0x405ebb
xor ecx, ecx
cmp ecx, 0x64
jae 0x405ebb
mov eax, ecx
mov edx, dword [ebp - 0x1c]
imul eax, eax, 0x114
lea esi, [eax + edx]
cmp byte [esi + 0x18], bl
lea eax, [esi + 0x18]
jne 0x405fdb
push dword [ebp - 0x14]
push eax
call fcn.0040fd00
mov eax, dword [ebp - 0x18]
pop ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], ebx
pop ecx
mov dword [esi + 0x14], eax
mov dword [ebp - 0x20], 1
jmp 0x405ebb
inc edi
jmp 0x405f05
inc ecx
jmp 0x405f8a
cmp dword [ebp - 0x20], ebx
je 0x405feb
mov ecx, dword [ebp - 0x1c]
call fcn.00405db2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0041f4c2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0041f4c2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0041f4c2
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004293b9
push 1
pop esi
jmp 0x40602e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004292cf
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40604b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.0040fd00
lea eax, [ebp - 0x104]
push str..new
push eax
call fcn.00411200
add esp, 0x10
xor ecx, ecx
mov byte [eax], cl
lea eax, [ebp - 0x104]
push ecx
push 0x80
push 3
push ecx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4060a4
xor eax, eax
jmp 0x4060bc
lea eax, [ebp + 8]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4