joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4321a0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x34], 0
jne 0x4321b4
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x4321d0
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x2c], ecx
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 4
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x34]
test eax, eax
jne 0x432209
xor eax, eax
jmp 0x4322a2
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 4], ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.00432540
test eax, eax
jne 0x432267
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.00432520
test eax, eax
jne 0x432267
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4322a2
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x43227c
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x2c], eax
jne 0x43229d
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4322b0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp + 0xc], 1
jb 0x4322e6
cmp dword [ebp + 0xc], 0x1000
jbe 0x4322f8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4324fb
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00430990
test eax, eax
jne 0x43231e
jmp 0x4324fb
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x432350
cmp dword [ebp - 0x420], 0x104
jb 0x43235a
jmp 0x4324fb
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004311c0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x432389
jmp 0x4324fb
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x418]
lea eax, [edx + ecx + 0xc]
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.004312d0
add esp, 0x10
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x4323ce
jmp 0x4324fb
push 0x10
push 0
lea edx, [ebp - 0x438]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x47c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x47c], 0x44
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x4324fb
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
push 0x44bcf4
mov edx, dword [ebp - 0x438]
push edx
call fcn.00431e60
test eax, eax
jne 0x432483
push 0xffffffffffffffff
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4324fb
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x424], 0x1f4
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x424], 0
je 0x4324f1
jmp 0x4324fb
mov dword [ebp - 0x428], 1
lea ecx, [ebp - 0x418]
push ecx
call fcn.00430da0
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043518a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4340f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x434117
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x43411a
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004340cc
pop esi
leave
ret 8

Function at 0x435de6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x435e25
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x435e25
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435e25
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x435e25
cmp dword [ecx + 0x74], 0xe
jbe 0x435e25
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x436390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4363b7
mov ecx, 5
int 0x29
push 2
call fcn.00435e8a
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4364c2
test esi, esi
jne 0x4364c2
push 2
call fcn.00435e8a
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043518a
mov esp, ebp
pop ebp
ret
Function at 0x43b170
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0043b1a0
mov esi, dword [ebp + 8]
test al, al
je 0x43b18e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0043b1b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x43b2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b33c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b33c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b33c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b33c
cmp dword [ecx + 0x74], 0xe
jbe 0x43b33c
cmp dword [ecx + 0xe8], 0
je 0x43b33c
push dword [ebp + 8]
call fcn.0043b1b0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45a818
call fcn.0043af80
add esp, 8
cmp dword [ebp - 8], 0
jne 0x43b371
push dword [ebp + 8]
call fcn.0043b170
mov esp, ebp
pop ebp
ret

Function at 0x43b3b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b40c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b40c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b40c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b40c
cmp dword [ecx + 0x74], 0xe
jbe 0x43b40c
cmp dword [ecx + 0xe8], 0
je 0x43b40c
push dword [ebp + 8]
call fcn.0043b1b0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45a818
call fcn.0043af80
add esp, 8
cmp dword [ebp - 8], 0
jne 0x43b441
push dword [ebp + 8]
call fcn.0043b170
mov esp, ebp
pop ebp
ret

Function at 0x43c7a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x43c7ca
mov eax, 2
pop ebp
ret
push esi
call fcn.004361e0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x43c7ea
jmp dword [eax*4 + 0x43c820]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00436320
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x43c830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43c92b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x43c92b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x43c88a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x43c868
jmp 0x43c92b
cmp edx, 0x200
jae 0x43c991
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x43c92b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x43c92a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x43c92a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x43c973
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x43c910
pop edi
mov eax, dword [0x45a820]
test eax, eax
jne 0x43c951
push str.setlocale
call fcn.0043d1e0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43c94c
or eax, 0xffffffff
mov dword [0x45a820], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x43c97f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043518a
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x43c92a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0043518a
mov esp, ebp
pop ebp
ret
call fcn.0043530b
int3
Function at 0x401170
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x20
mov eax, dword [0x47ce94]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0x10
jb 0x40118c
mov eax, dword [esi + 0x14]
jmp 0x40118f
lea eax, [esi + 0x14]
push eax
mov eax, dword [esi + 4]
push 0x2712
push eax
call fcn.0042a4e0
add esp, 0xc
push str.Mozilla_5.0__Linux__Android_11__21091116C_Build_RP1A.200720.011__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_86.0.4240.99_XWEB_4313_MMWEBSDK_20220805_Mobile_Safari_537.36_MMWEBID_287_MicroMessenger_8.0.27.2220_0x28001B3F__WeChat_arm64_Weixin_NetType_WIFI_Language_zh_CN_ABI_arm64
lea ecx, [esp + 8]
call fcn.00401390
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 8]
jae 0x4011be
lea eax, [esp + 8]
mov ecx, dword [esi + 4]
push eax
push 0x2722
push ecx
call fcn.0042a4e0
mov edx, dword [esi + 4]
push 5
push 0x44
push edx
call fcn.0042a4e0
mov eax, dword [esi + 4]
push 1
push 0x34
push eax
call fcn.0042a4e0
mov ecx, dword [esi + 4]
push 1
push 0x63
push ecx
call fcn.0042a4e0
mov edx, dword [esi + 4]
push 0
push 0x2f
push edx
call fcn.0042a4e0
mov eax, dword [esi + 4]
push 0x401300
push 0x4e2b
push eax
call fcn.0042a4e0
mov ecx, dword [esi + 4]
add esp, 0x48
push esi
push 0x2711
push ecx
call fcn.0042a4e0
mov edx, dword [esi + 4]
push 0
push 0x40
push edx
call fcn.0042a4e0
mov eax, dword [esi + 4]
push 0
push 0x51
push eax
call fcn.0042a4e0
add esp, 0x24
push 0
push 1
lea ecx, [esp + 0xc]
call fcn.004015a0
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.00413f73
add esp, 0x20
ret

Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.00414356
add esp, 0x10
ret 0xc

Function at 0x402000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402019
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402054
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402050
lea ebx, [ebx]
cmp esi, eax
jae 0x402054
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402040
cmp esi, eax
jb 0x40205a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4020e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
mov eax, dword [0x47ce94]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x13c]
push edi
push 0x467834
push ebp
call fcn.00407570
mov edi, eax
add esp, 8
test edi, edi
je 0x402130
push esi
push edi
call fcn.00407650
add esp, 8
test eax, eax
je 0x40214a
push edi
call fcn.00407690
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00413f73
add esp, 0x130
ret
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push edi
call fcn.00407590
add esp, 0xc
test eax, eax
jne 0x402127
push ebx
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
jle 0x402190
lea esp, [esp]
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call fcn.00407590
lea edx, [esp + 0x20]
push edx
push esi
push edi
call fcn.00407630
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x402170
push edi
call fcn.00407690
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x13c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00413f73
add esp, 0x130
ret

Function at 0x4023f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push esi
push edi
push 0x467954
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004141a1
mov edx, dword [esp + 0x14]
push 2
push 0
push edx
call fcn.004149f7
mov eax, dword [esp + 0x20]
push eax
call fcn.004156ea
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
mov edi, eax
call fcn.004149f7
push edi
call fcn.00407736
mov edx, dword [esp + 0x34]
push edx
push edi
mov esi, eax
push 1
push esi
call fcn.004154c8
mov edi, eax
mov eax, dword [esp + 0x44]
push eax
call fcn.0041404a
mov ecx, dword [esp + 0x54]
add esp, 0x40
push ecx
push edi
push esi
call fcn.004023b0
mov edx, dword [esp + 0x28]
push 0x467824
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004141a1
mov ecx, dword [esp + 0x24]
push ecx
push edi
push 1
push esi
call fcn.00414356
mov edx, dword [esp + 0x34]
push edx
call fcn.0041404a
push esi
call fcn.00407741
add esp, 0x30
pop edi
pop esi
add esp, 8
ret
Function at 0x404e80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x404e8b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x404f69
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x468fb0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x404ea5
pop edi
test edx, edx
je 0x404f8b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x468fb0]
inc ecx
sub edx, 1
jne 0x404f70
not eax
pop esi
ret

Function at 0x404f90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x468fb0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x468fb0]
mov dword [edx + 8], ecx
ret

Function at 0x405880
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x4058c2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4058b6
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4058d3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00415b00
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x406390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x4063aa
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x40639f
cmp dword [edi + 0x7c], ebx
je 0x4063bd
push edi
call fcn.00406780
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004061a0
add esp, 0x10
test eax, eax
je 0x4063e4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00415ef4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406425
push 0x4000
call fcn.00415ef4
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x406431
push esi
call fcn.00414eaf
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40647d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004051f0
add esp, 4
test eax, eax
jne 0x40647d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4064a7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x4064b0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x4064f7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x4064f7
push eax
push ebx
call fcn.00404f90
add esp, 8
add ebp, 1
jne 0x4064e0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret