joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660a1d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x714f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4086ff
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
lea ecx, [eax - 0x10]
mov edi, dword [eax - 0xc]
jle 0x40871f
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.00402a60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
add dword [ecx + 0xc], 0xffffffff
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
push edi
cmove eax, esi
mov dword [ecx + 0xc], eax
push dword [ebp + 8]
push 1
push 0
push str.Path
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660b00
mov eax, dword fs:[0]
push eax
mov eax, 0x3944
call fcn.00602a30
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042ece7
push 0x687790
lea ecx, [ebp - 0x28]
call fcn.00408be0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00408b30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push section..data
push eax
call fcn.004095e0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004095d0
push eax
mov ecx, esi
call fcn.0042e0d6
push 0
lea ecx, [ebp - 0x3950]
call fcn.00409aa0
lea ecx, [ebp - 0x3950]
mov byte [ebp - 4], 2
call fcn.0042e7e4
push 0
call fcn.0062403e
int3
Function at 0x409860
Capabilities:
Accept command line arguments
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.zhuzaiRxjhIce
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4098c0
push 0
push 0
push 0x6878fc
call fcn.004332e9
jmp 0x409a0c
test esi, esi
je 0x4098cb
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.0043ffb2
add esp, 4
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
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 0x40999f
cmp dword [ebp - 0x210], 3
jl 0x40999f
push dword [esi + 4]
lea ecx, [ebp - 0x218]
call fcn.004096c0
push dword [esi + 8]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.004096c0
push dword [ebp - 0x218]
call fcn.00625b2b
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x409951
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x214]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40997d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40999f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x2c0]
call fcn.00408cb0
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0042e7e4
cmp eax, 1
jne 0x409a01
mov eax, dword [0x687914]
mov dword [ebp - 0x1f4], eax
mov al, byte [0x687918]
mov byte [ebp - 0x1f0], al
lea eax, [ebp - 0x20c]
push eax
push 2
mov dword [ebp - 0x204], 0x80
mov dword [ebp - 0x200], 7
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
lea ecx, [ebp - 0x2c0]
call fcn.00409170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060249b
mov esp, ebp
pop ebp
ret
Function at 0x40b830
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Kernel32.dll
mov dword [ebp - 0x44], 0x56ec8b55
mov dword [ebp - 0x40], 0x6a0875ff
mov dword [ebp - 0x3c], 0xffff6800
mov dword [ebp - 0x38], 0x15ff001f
mov dword [ebp - 0x34], 0x152000
mov dword [ebp - 0x30], 0xf685f08b
mov dword [ebp - 0x2c], 0xff6a1f74
mov dword [ebp - 0x28], 0x815ff56
mov dword [ebp - 0x24], 0x56001520
mov dword [ebp - 0x20], 0x200415ff
mov dword [ebp - 0x1c], 0xff6a0015
mov dword [ebp - 0x18], 0x202c15ff
mov dword [ebp - 0x14], 0xff500015
mov dword [ebp - 0x10], 0x15202815
mov dword [ebp - 0xc], 0x5ec03300
mov dword [ebp - 8], 0x4c25d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x40ba0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x688250
push ebx
call esi
push 0x68825c
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x688270
push ebx
mov dword [ebp - 0x54], eax
call esi
push 0x68827c
push ebx
mov dword [ebp - 0x50], eax
call esi
push 0x688290
push ebx
mov dword [ebp - 0x4c], eax
call esi
mov dword [ebp - 0x48], eax
xor eax, eax
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x58], 0
je 0x40ba0d
inc eax
cmp eax, 5
jb 0x40b910
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push 0x14
push 0
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40ba0d
push 0
push 0x14
lea eax, [ebp - 0x58]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40b9fe
push 0x40
lea eax, [esi + 4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x25], eax
add eax, 4
push 0x1000
mov dword [ebp - 0x1e], eax
add eax, 4
push 0x40
mov dword [ebp - 0x16], eax
add eax, 4
push 0
push edi
mov dword [ebp - 0xf], eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40b9fe
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40b9cf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40b9cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060249b
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060249b
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060249b
mov esp, ebp
pop ebp
ret
Function at 0x40ba20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661123
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x714f78]
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
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], esi
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
or edi, 0xffffffff
test eax, eax
je 0x40bbf9
lea ecx, [ebp + 8]
call fcn.0040dc60
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bbd4
call fcn.004237e3
test eax, eax
je 0x40bc42
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x13c]
call fcn.00402920
test al, al
jne 0x40bb03
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bae7
sub eax, edx
lea ecx, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00408780
mov esi, dword [ebp - 0x13c]
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40bc38
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40bb3b
push edi
lea ecx, [ebp - 0x13c]
call fcn.004033e0
mov esi, dword [ebp - 0x13c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00626b41
push eax
call fcn.0040b6b0
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40bc38
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bc42
push eax
push esi
call fcn.00623866
add esp, 8
test eax, eax
jne 0x40bb78
inc ebx
push dword [esi - 8]
push esi
call fcn.0062648f
add esp, 8
test eax, eax
js 0x40bc38
cmp eax, dword [esi - 8]
jg 0x40bc38
mov dword [esi - 0xc], eax
or edi, 0xffffffff
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bbba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x140]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40baa7
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.0062648f
add esp, 8
test eax, eax
js 0x40bc38
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40bc38
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40bc18
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0060249b
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3
Function at 0x40c100
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00605c60
push 0x686f7f
push dword [ebp + 0x10]
call fcn.00623866
add esp, 0x14
push 0
push dword [ebp + 0xc]
test eax, eax
jne 0x40c14a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40c15c
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.00605c60
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 0x40c20b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40c216
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 0x40c233
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 0x40c24d
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 0x40c267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060249b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c320
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6611b5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x714f78]
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 connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c37e
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.004237e3
mov ecx, eax
test ecx, ecx
je 0x40c4ba
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 0x40c3ec
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40c3cb
push edi
lea ecx, [ebp - 0x10]
call fcn.004033e0
mov esi, dword [ebp - 0x10]
push edi
push 0x20
push esi
call fcn.00605c60
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40c4b0
mov dword [esi - 0xc], edi
mov ecx, 1
mov byte [esi + edi], 0
mov dword [ebp - 4], 1
test edi, edi
js 0x40c4b0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x40c413
push edi
lea ecx, [ebp - 0x10]
call fcn.004033e0
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.0062648f
add esp, 8
test eax, eax
js 0x40c4b0
cmp eax, dword [esi - 8]
jg 0x40c4b0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp edi, dword [ebp - 0x14]
je 0x40c44e
xor edi, edi
jmp 0x40c47d
or edx, 0xffffffff
mov ebx, esi
test edi, edi
je 0x40c471
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x726718]
sub edi, 1
jne 0x40c457
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 0x40c49c
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.004020e0
push 0x80004005
call fcn.004020e0
int3
Function at 0x40c990
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.00420436
push esi
mov edi, eax
push 0
push edi
call fcn.00605c60
push esi
push ebx
push edi
call fcn.00605160
add esp, 0x1c
test esi, esi
je 0x40ca3a
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 0x40ca3a
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.0042043f
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 0x40d480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6613b7
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
mov dword [ebp - 0x11c], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
call fcn.00605c60
push dword [0x714032]
lea eax, [ebp - 0x114]
push 0x71403a
push eax
call fcn.00605160
mov ecx, dword [esi + 0x390c]
add esp, 0x18
test ecx, ecx
je 0x40d572
push dword [0x714032]
lea eax, [ebp - 0x114]
push dword [0x714036]
push eax
call fcn.00406e10
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x40d58c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x687f94
push edi
mov dword [ebp - 0x118], 1
call fcn.00402b10
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060249b
mov esp, ebp
pop ebp
ret 8
push 0
push 0x687f74
push 0x687f78
mov ecx, esi
call fcn.0042822f
push 0xffffffffffffffff
call fcn.0062403e
push 0x80004005
call fcn.004020e0
int3

Function at 0x40d6e0
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 0x40d6fb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x40d706
bts eax, 6
shr ecx, 1
test cl, 1
je 0x40d711
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40d71c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x40d727
bts eax, 3
shr ecx, 1
test cl, 1
je 0x40d732
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40d73d
bts eax, 1
test cl, 2
je 0x40d746
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 0x40d7df
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x40d7d0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x726718], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x40d6f0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410d20
Capabilities:
Create thread

Disassembly:
cmp dword [0x7230b4], 0
jne 0x410d47
push 0
push 0
push ecx
push 0x411ac0
push 0
push 0
mov dword [0x7230b4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x416890
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x714f78]
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 0x4168c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4168c4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x41698a
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x4168db
cmp al, 0x5c
jne 0x4168dd
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4168d3
cmp edi, ebx
je 0x416920
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.00605160
add esp, 0xc
cmp edi, 0x104
jae 0x41699a
lea eax, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
push eax
push esi
call fcn.00416890
add esp, 8
mov byte [ebp - 0x108], 0
test esi, esi
je 0x416940
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 0x416933
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x416942
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x416952
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 0x41698a
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.0060249b
mov esp, ebp
pop ebp
ret
call fcn.00602b7d
int3

Function at 0x417340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x417408
cmp dword [esi + 4], 0xffffffff
jne 0x417408
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 0x417371
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x4173a3
cmp al, 0x2f
je 0x4173a3
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x417390
mov ax, word [0x687b0c]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4173c9
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4173c9
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.0041a0d0
add esp, 0x10
test eax, eax
jne 0x4173e9
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0041aa70
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 0x417b40
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 + 0x68a3a8]
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 + 0x68a3a8]
mov dword [edx + 8], ecx
pop ebp
ret