joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037f8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10037fae
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10037fae
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10037fae
ret
cmp word [ebx + 4], 0x14c
jne 0x10037fae
test word [ebx + 0x16], 2
je 0x10037fae
test word [ebx + 0x16], 0x100
je 0x10037fae
cmp word [ebx + 0x18], 0x10b
jne 0x10037fae
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10037fae
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1003803a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10037fce
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ef19
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10037fae
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1003803a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10037fae
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10037fae
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10037fae
ret
cmp word [ebx + 4], 0x14c
jne 0x10037fae
test word [ebx + 0x16], 2
je 0x10037fae
test word [ebx + 0x16], 0x100
je 0x10037fae
cmp word [ebx + 0x18], 0x10b
jne 0x10037fae
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10037fae
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1003803a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10037fce
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ef19
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10037fae
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100380f1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003814a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100380f1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10038100
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043dda3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10038151
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001efc7
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100381f0
add edi, 4
add eax, 2
dec ecx
jne 0x10038136
call 0x1003819d
loope 0x10038193
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100381ed
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100381fe
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100381b1
cmp eax, ecx
ja 0x100381b1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003823b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10038231
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f4a6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10038100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003814a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100380f1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10038100
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043dda3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10038151
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001efc7
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100381f0
add edi, 4
add eax, 2
dec ecx
jne 0x10038136
call 0x1003819d
loope 0x10038193
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100381ed
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100381fe
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100381b1
cmp eax, ecx
ja 0x100381b1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003823b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10038231
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f4a6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4041b8
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4041f4
cmp dword [esp + 0xc], 0
je 0x4041f4
push 0x25
push esi
call fcn.00404525
pop ecx
test eax, eax
pop ecx
je 0x4041e8
push 0x103
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
ret
push esi
push dword [esp + 0x10]
call fcn.004043f5
pop ecx
pop ecx
pop esi
ret

Function at 0x404680
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4046a9
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4046a1
cmp al, 0x22
jne 0x404695
cmp byte [esi], 0x22
jne 0x4046b3
inc esi
jmp 0x4046b3
cmp al, 0x20
jle 0x4046b3
inc esi
cmp byte [esi], 0x20
jg 0x4046ad
mov al, byte [esi]
test al, al
je 0x4046bd
cmp al, 0x20
jle 0x4046a6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040472d
push 0x406004
push section..data
call fcn.00404713
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4046ed
movzx eax, word [ebp - 0x14]
jmp 0x4046f0
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00404745
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401130
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436004]
jne 0x40113a
repz ret
jmp fcn.00401d51

Function at 0x412a43
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b8ec
and dword [ebp - 4], 0
cmp dword [0x438b40], 0
mov ebx, eax
jne 0x412af4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412ba5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412ba5
push eax
call fcn.0040b87a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438b40], eax
call esi
push eax
call fcn.0040b87a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438b44], eax
call esi
push eax
call fcn.0040b87a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438b48], eax
call esi
push eax
call fcn.0040b87a
pop ecx
mov dword [0x438b50], eax
test eax, eax
je 0x412af4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b87a
pop ecx
mov dword [0x438b4c], eax
mov eax, dword [0x438b4c]
cmp eax, ebx
je 0x412b4c
cmp dword [0x438b50], ebx
je 0x412b4c
push eax
call fcn.0040b8f5
push dword [0x438b50]
mov esi, eax
call fcn.0040b8f5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412b4c
test edi, edi
je 0x412b4c
call esi
test eax, eax
je 0x412b43
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412b43
test byte [ebp - 0xc], 1
jne 0x412b4c
or dword [ebp + 0x10], 0x200000
jmp 0x412b85
mov eax, dword [0x438b44]
cmp eax, ebx
je 0x412b85
push eax
call fcn.0040b8f5
pop ecx
test eax, eax
je 0x412b85
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412b85
mov eax, dword [0x438b48]
cmp eax, ebx
je 0x412b85
push eax
call fcn.0040b8f5
pop ecx
test eax, eax
je 0x412b85
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438b40]
call fcn.0040b8f5
pop ecx
test eax, eax
je 0x412ba5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412ba7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42aa8e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp esi, 0x5026c
jne 0x42ab2b
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
push 0x438c30
mov byte [0x438c30], 0x6b
mov byte [0x438c31], 0x65
mov byte [0x438c32], 0x72
mov byte [0x438c33], 0x6e
mov byte [0x438c34], 0x65
mov byte [0x438c35], 0x6c
mov byte [0x438c36], 0x33
mov byte [0x438c37], 0x32
mov byte [0x438c38], 0x2e
mov byte [0x438c39], 0x64
mov byte [0x438c3a], 0x6c
mov byte [0x438c3b], 0x6c
mov byte [0x438c3c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [0x43a418]
push dword [0x439130]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, 0x36edcb
jl 0x42aa96
pop esi
leave
ret
Function at 0x42ad20
Capabilities:
Clear file content
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43a418]
push ebx
mov ebx, dword [0x439130]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp eax, 0x5dd
jne 0x42ad46
push esi
call dword [sym.imp.KERNEL32.dll_LocalHandle]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0042ac2f
cmp dword [0x43a418], 0x2f
pop ecx
jne 0x42adaf
push edi
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.bikoveholajijovizijilumefu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
push ebx
mov ebx, dword [ebp - 0x10]
call fcn.0042ac94
cmp dword [0x43a418], 0x568
pop ecx
jne 0x42adcc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
pop esi
pop ebx
leave
ret
Function at 0x401160
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
push ecx
push 0x18
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011e9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4011e9
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax]
lea eax, [esp + 0x30]
push str.FiveM_GTAProcess.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x4011e1
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x4011c0
jmp 0x4011e9
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401637
mov esp, ebp
pop ebp
ret
Function at 0x416850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x4168a0
cmp esi, edi
ja 0x416908
cmp edi, dword [esp + 0x1c]
ja 0x41691b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4168a2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x416890
jmp 0x4168ff
ja 0x4168a8
cmp eax, edx
mov esi, edi
jne 0x416863
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x4168e0
mov ebp, esi
sub ecx, edx
jns 0x4168f7
jmp 0x416901
cmp esi, edi
je 0x416930
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x416901
xor al, 1
cmp ebp, edi
jne 0x4168c0
jmp 0x416901
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0xc39624
call fcn.0044a230
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0xc39624
call fcn.0044a020
add esp, 4
ud2
mov ecx, 0xc3d8cc
mov edx, 0x2b
push 0xc39614
call fcn.0044a090
add esp, 4
ud2
Function at 0x44078f
Capabilities:
Parse pe header

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

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x1562149d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2729257a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406669
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4066b1
call fcn.0040ffc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4066b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4066f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4066dd
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4066dd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4066f1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407c06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x407c2a
cmp dword [edi + 0x54], 0
jne 0x407c2a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ffc8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00407bc7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40ea34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ea7b
call fcn.0040ffc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ea7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ea97
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e5ae
mov esi, eax
test edi, edi
je 0x40ea95
test ebx, ebx
je 0x40ea95
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f268
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x444f96
call fcn.0042441b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f28d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40f2d3
lea ecx, [ebp - 0x10]
call fcn.004031f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404a1b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e80
mov eax, esi
call fcn.004244f3
ret 8

Function at 0x421147
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c4c4]
jne 0x421151
repz ret
jmp fcn.004260ef

Function at 0x4214da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42150b
call fcn.004248d1
mov dword [eax], esi
call fcn.004248be
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042669c
add esp, 0x14
push 0x16
pop eax
jmp 0x421560
test dword [ebp + 0xc], 0xfffffff9
jne 0x4214e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x421538
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004248e4
pop ecx
call fcn.004248be
mov eax, dword [eax]
jmp 0x421560
test al, 0x10
jne 0x42155e
test al, 1
je 0x42155e
test byte [ebp + 0xc], 2
je 0x42155e
call fcn.004248d1
mov dword [eax], 5
call fcn.004248be
mov dword [eax], 0xd
jmp 0x42152f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42f753
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00427949
and dword [ebp - 4], 0
cmp dword [0x460680], 0
mov ebx, eax
jne 0x42f804
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f8b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44c6d0
push edi
call esi
test eax, eax
je 0x42f8b5
push eax
call fcn.004278d7
mov dword [esp], 0x44c6c0
push edi
mov dword [0x460680], eax
call esi
push eax
call fcn.004278d7
mov dword [esp], 0x44c6ac
push edi
mov dword [0x460684], eax
call esi
push eax
call fcn.004278d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x460688], eax
call esi
push eax
call fcn.004278d7
pop ecx
mov dword [0x460690], eax
test eax, eax
je 0x42f804
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004278d7
pop ecx
mov dword [0x46068c], eax
mov eax, dword [0x46068c]
cmp eax, ebx
je 0x42f85c
cmp dword [0x460690], ebx
je 0x42f85c
push eax
call fcn.00427952
push dword [0x460690]
mov esi, eax
call fcn.00427952
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f85c
test edi, edi
je 0x42f85c
call esi
test eax, eax
je 0x42f853
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f853
test byte [ebp - 0xc], 1
jne 0x42f85c
or dword [ebp + 0x10], 0x200000
jmp 0x42f895
mov eax, dword [0x460684]
cmp eax, ebx
je 0x42f895
push eax
call fcn.00427952
pop ecx
test eax, eax
je 0x42f895
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f895
mov eax, dword [0x460688]
cmp eax, ebx
je 0x42f895
push eax
call fcn.00427952
pop ecx
test eax, eax
je 0x42f895
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460680]
call fcn.00427952
pop ecx
test eax, eax
je 0x42f8b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f8b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x434e80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x198]
push eax
push ecx
mov ecx, esi
call fcn.00434c50
mov dword [esi + 0x198], eax
movzx eax, al
add eax, dword [esi + 0x19c]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x1a0]
push edx
push eax
call fcn.00434c50
mov dword [esi + 0x1a0], eax
pop esi
ret 4