joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091c0
Capabilities:
Accept command line arguments
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69746b
mov eax, dword fs:[0]
push eax
mov eax, 0x47e8
call fcn.0060a1b0
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.Weiai_Login
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x767300], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409286
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0042dec8
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [eax + 0x20]
call edi
push eax
call fcn.0042dec8
mov esi, eax
test esi, esi
je 0x40926d
nop word [eax + eax]
push dword [ebx + 0x64]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetPropA]
mov ecx, dword [esi + 0x20]
test eax, eax
jne 0x409266
push 2
push ecx
call edi
push eax
call fcn.0042dec8
mov esi, eax
test esi, esi
jne 0x409240
jmp 0x40926d
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x6c1768
push str._______________r_________
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x409389
push 0
call fcn.00447ffa
add esp, 4
mov dword [ebp - 0x47ec], 0
lea eax, [ebp - 0x47ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40935a
cmp dword [ebp - 0x47ec], 3
jl 0x40935a
push dword [esi + 4]
lea ecx, [ebp - 0x47f4]
call fcn.00408a20
push dword [esi + 8]
lea ecx, [ebp - 0x47f0]
mov dword [ebp - 4], 0
call fcn.00408a20
push dword [ebp - 0x47f4]
call fcn.0065961f
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x40930c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x47f0]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x47f0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409338
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47f4]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40935a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x47e8]
call fcn.0040a2d0
lea eax, [ebp - 0x47e8]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.004356a2
lea ecx, [ebp - 0x47e8]
call fcn.00408be0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
Function at 0x40df30
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.006300b0
push 0x6c1027
push dword [ebp + 0x10]
call fcn.00657b21
add esp, 0x14
push 0
push dword [ebp + 0xc]
test eax, eax
jne 0x40df7a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40df8c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 0
push 0x4000000
push 3
push 0
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x44
mov esi, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.006300b0
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x260], 0x44
push esi
push dword [ebp + 0xc]
mov word [ebp - 0x230], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x20c]
push str._s__d___s_
push eax
movups xmmword [ebp - 0x21c], xmm0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test ebx, ebx
je 0x40e03b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40e046
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e063
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e07d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
pop ebx
jg 0x40e097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e3b0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697fa5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x8000000
push 3
push 0
push 3
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e40e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x40e54a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
test edi, edi
jle 0x40e47c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40e45b
push edi
lea ecx, [ebp - 0x10]
call fcn.00403440
mov esi, dword [ebp - 0x10]
push edi
push 0x20
push esi
call fcn.006300b0
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40e540
mov dword [esi - 0xc], edi
mov ecx, 1
mov byte [esi + edi], 0
mov dword [ebp - 4], 1
test edi, edi
js 0x40e540
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x40e4a3
push edi
lea ecx, [ebp - 0x10]
call fcn.00403440
mov esi, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi - 8]
push esi
call fcn.0065a463
add esp, 8
test eax, eax
js 0x40e540
cmp eax, dword [esi - 8]
jg 0x40e540
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp edi, dword [ebp - 0x14]
je 0x40e4de
xor edi, edi
jmp 0x40e50d
or edx, 0xffffffff
mov ebx, esi
test edi, edi
je 0x40e501
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x76e650]
sub edi, 1
jne 0x40e4e7
mov eax, dword [ebp + 0xc]
not edx
mov edi, 1
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e52c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402130
push 0x80004005
call fcn.00402130
int3
Function at 0x40eaa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69804d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x40eb87
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.Client.exe
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00402960
test al, al
jne 0x40eb19
push 0xa
push str.Client.exe
mov ecx, esi
call fcn.00403730
mov dword [ebp - 4], 0xffffffff
call fcn.00426810
add esp, 8
test al, al
je 0x40eb37
push dword [ebp - 0x10]
call fcn.00426930
add esp, 4
mov eax, dword [edi + 0x72c]
xor esi, esi
test eax, eax
jle 0x40eb70
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop dword [eax]
test esi, esi
js 0x40eb82
cmp esi, eax
jge 0x40eb82
mov eax, dword [edi + 0x728]
push 0
push dword [eax + esi*4]
call ebx
mov eax, dword [edi + 0x72c]
inc esi
cmp esi, eax
jl 0x40eb50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004273da
push 0x80004005
call fcn.00402130
int3

Function at 0x40eed0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], ecx
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40ef4f
lea eax, [ebp - 0x108]
push eax
push dword [ebx]
call fcn.0065a911
add esp, 8
lea ecx, [esi + 1]
test eax, eax
lea eax, [ebp - 0x12c]
cmovne ecx, esi
push eax
push edi
mov esi, ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40ef23
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x130]
mov ecx, 1
mov eax, dword [edi + 0xec]
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40ef7c
push 0
lea ecx, [edi + 0xec]
call fcn.00403440
push dword [edi + 0xec]
call fcn.0065961f
add esp, 4
mov ecx, 3
test eax, eax
cmovle eax, ecx
mov ecx, dword [ebp - 4]
cmp esi, eax
pop edi
setl al
xor ecx, ebp
pop esi
pop ebx
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 4
Function at 0x40efb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp + 0x14], 0
push esi
mov dword [ebp + 0x10], esi
call fcn.00436654
push esi
mov edi, eax
push 0
push edi
call fcn.006300b0
push esi
push ebx
push edi
call fcn.0062f5b0
add esp, 0x1c
test esi, esi
je 0x40f05a
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40f05a
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0043f8b7
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x40fca0
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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fcea
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0x25
mov word [ebp - 0xdc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xda], ax
test edi, edi
mov eax, str.121.204.251.243
cmovne eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xdc]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40fd79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2743
je 0x40fd8f
sub ecx, 9
je 0x40fd8f
push eax
lea eax, [ebp - 0xcc]
push str.WSAGetLastError______:_d
push eax
call fcn.00419840
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
push 2
push 4
lea eax, [ebp - 0xe0]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x40fdae
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push dword [ebp - 0xe0]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
Function at 0x40fde0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop word [eax + eax]
xor eax, eax
test cl, 1
je 0x40fdfb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x40fe06
bts eax, 6
shr ecx, 1
test cl, 1
je 0x40fe11
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40fe1c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x40fe27
bts eax, 3
shr ecx, 1
test cl, 1
je 0x40fe32
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40fe3d
bts eax, 1
test cl, 2
je 0x40fe46
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x40fedf
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x40fed0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x76e650], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x40fdf0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413870
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69872d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [section..data]
push dword [ebp + 8]
shl eax, 4
mov dword [ebp - 4], 0
push dword [eax + 0x76aeac]
push dword [eax + 0x76aea8]
push str..clientclient.exe__s__s__k_192198425__t_28665689__s
push 0x76aaa0
call fcn.00419840
add esp, 0x14
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
push eax
lea eax, [ebp - 0x6c]
movlpd qword [ebp - 0x58], xmm0
push eax
push str..client
push 0
push 0
push 0
push 0
push 0
push 0x76aaa0
push 0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or edi, 0xffffffff
test eax, eax
je 0x4139fd
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x724]
push eax
push dword [ecx + 8]
call fcn.00413bb0
lea eax, [ebp - 0x14]
push eax
call fcn.00426a20
add esp, 4
push 0xf
push str.Clientwar.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d9b0
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.00407700
add esp, 4
add eax, 0x10
mov dword [esi], eax
push dword [ebp - 0x20]
call fcn.00426c60
lea eax, [ebp - 0x10]
push eax
call fcn.00426a20
add esp, 0xc
push 0xf
push str.Clientwas.dll
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d9b0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.00407700
add esp, 4
add eax, 0x10
mov dword [esi], eax
push dword [ebp - 0x20]
call fcn.00426c60
mov edx, dword [ebp - 0x10]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4139df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4139fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x413a1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x413b50
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x417fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x73c], eax
mov al, 1
pop esi
ret

Function at 0x413b80
Capabilities:
Create thread

Disassembly:
cmp dword [0x76ea50], 0
jne 0x413ba7
push 0
push 0
push ecx
push 0x4148a0
push 0
push 0
mov dword [0x76ea50], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x419d30
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00435bab
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e80000
push 0
push 0x401
push dword [edi + 0xf0]
call esi
push 0
push 1
push 0x404
push dword [edi + 0xf0]
call esi
push 0
push 0
push 0x402
push dword [edi + 0xf0]
call esi
push 0
push 0
push 0
push 0x419e10
push 0
lea eax, [edi + 0xd0]
push 0
mov dword [0x76ee98], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
ret
Function at 0x41ce70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41cea4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cea4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x41cf6a
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x41cebb
cmp al, 0x5c
jne 0x41cebd
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41ceb3
cmp edi, ebx
je 0x41cf00
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.0062f5b0
add esp, 0xc
cmp edi, 0x104
jae 0x41cf7a
lea eax, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
push eax
push esi
call fcn.0041ce70
add esp, 8
mov byte [ebp - 0x108], 0
test esi, esi
je 0x41cf20
lea ecx, [ebp - 0x108]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41cf13
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41cf22
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cf32
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x41cf6a
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
call fcn.0060a2fd
int3

Function at 0x41d930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41d9f8
cmp dword [esi + 4], 0xffffffff
jne 0x41d9f8
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d961
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x41d993
cmp al, 0x2f
je 0x41d993
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x41d980
mov ax, word [0x6c1a10]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x41d9b9
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d9b9
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004207e0
add esp, 0x10
test eax, eax
jne 0x41d9d9
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00421190
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x41e130
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x6c4758]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c4758]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x420910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x42094e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420942
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.0062f5b0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420b00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x420b0e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x420bcd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
sub edi, 1
jne 0x420b26
pop edi
test esi, esi
je 0x420beb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6c4758]
sub esi, 1
jne 0x420bd1
not eax
pop esi
pop ebp
ret