joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4358a4
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d806f
call fcn.004789bc
sub esp, 0xdc
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call ebx
test eax, eax
je 0x435a6c
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, 0xc
je 0x435a69
cmp eax, 0xd
je 0x435a69
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.00415469
push dword [esi]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004154d8
push dword [esi]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
call fcn.0041551d
add esp, 0x18
cmp dword [edi], 0xb
mov byte [ebp - 4], 2
jne 0x435959
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
call fcn.004157ae
add esp, 0x10
push dword [ebp + 8]
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push str._s_s._s
push esi
call fcn.004b8471
add esp, 0x14
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004baede
jmp 0x435a45
push dword [esi]
call ebx
test eax, eax
je 0x435a45
mov ebx, str._s_s._s
push 0
lea ecx, [ebp - 0xe8]
call fcn.0040fa14
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], 4
call fcn.004bb025
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x80]
push eax
call fcn.004bb025
lea eax, [ebp + 8]
lea ecx, [ebp - 0x7c]
push eax
call fcn.004bb025
lea ecx, [ebp - 0xe8]
call fcn.004bba5c
dec eax
je 0x4359de
dec eax
je 0x435a30
dec eax
je 0x435a28
sub eax, 8
je 0x4359c3
dec eax
je 0x435a20
dec eax
je 0x435a18
jmp 0x4359f7
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push ebx
push esi
call fcn.004b8471
add esp, 0x14
mov dword [edi], 0xb
jmp 0x4359f7
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push ebx
push esi
call fcn.004b8471
add esp, 0x14
mov dword [edi], 1
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.0040fac9
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43596a
jmp 0x435a45
mov dword [edi], 0xd
jmp 0x435a36
mov dword [edi], 0xc
jmp 0x435a36
mov dword [edi], 3
jmp 0x435a36
mov dword [edi], 2
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.0040fac9
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004baede
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004baede
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004baede
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x435aff
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435b43
xor ebx, ebx
mov esi, 0x3e8
push dword [esp + 0x10]
call fcn.0041539a
cmp eax, 0xffffffff
pop ecx
jne 0x435b43
push dword [edi + 0x10]
push esi
call fcn.004172e4
pop ecx
test eax, eax
pop ecx
jne 0x435b47
add ebx, esi
cmp ebx, 0x2710
jge 0x435b47
jmp 0x435b19
xor eax, eax
jmp 0x435b4a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret 4
Function at 0x435b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
push dword [ebp + 8]
mov ebx, ecx
call esi
test eax, eax
jne 0x435b6c
push 0xfffffffffffffffe
pop eax
jmp 0x435bc6
push dword [ebp + 0xc]
call esi
xor edi, edi
test eax, eax
je 0x435b8a
cmp dword [ebp + 0x10], edi
je 0x435bc3
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00435aff
test eax, eax
jl 0x435bc3
mov esi, 0x3e8
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004153be
add esp, 0xc
cmp eax, 0xffffffff
jne 0x435bbf
push dword [ebx + 0x10]
push esi
call fcn.004172e4
pop ecx
test eax, eax
pop ecx
jne 0x435bc3
add edi, esi
cmp edi, 0x2710
jge 0x435bc3
jmp 0x435b8f
xor eax, eax
jmp 0x435bc6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x45477e
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4da3ca
call fcn.004789bc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00453f63
mov eax, dword [0x575fa8]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x575fa8]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x4e3fb8
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x575fa8]
mov dword [esi + 0x3c], eax
mov eax, dword [0x575fa8]
mov dword [esi + 0x40], eax
mov eax, dword [0x575fa8]
mov dword [esi + 0x44], eax
mov edi, 0x57d6b4
mov byte [ebp - 4], 6
push edi
mov dword [esi], 0x4e3fac
call fcn.004bb075
push edi
lea ecx, [esi + 0x18]
call fcn.004bb075
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.004bb075
push edi
lea ecx, [esi + 0x40]
call fcn.004bb075
push edi
lea ecx, [esi + 0x44]
call fcn.004bb075
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45d279
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4dab4f
call fcn.004789bc
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x45d3d7
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45d3d7
lea ecx, [ebp - 0xf0]
call fcn.004223d0
push ebx
push 0x74
push dword [ebp + 8]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], ebx
push eax
call fcn.00422539
mov ecx, eax
call fcn.00421ff4
test al, al
jne 0x45d2de
or esi, 0xffffffff
jmp 0x45d3a9
lea eax, [ebp - 0x10]
push str.MediaFormats
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042200c
lea ecx, [ebp - 0x10]
call fcn.00421ff4
test al, al
jne 0x45d2d6
push 0x57d6b4
lea eax, [ebp - 0x1c]
push 0x5037c0
push eax
lea ecx, [ebp - 0x10]
call fcn.00422053
mov ecx, eax
call fcn.00421e9e
push eax
lea ecx, [ebp - 0x14]
call fcn.004baf52
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.00478a75
pop ecx
test eax, eax
pop ecx
je 0x45d341
push 1
pop esi
jmp 0x45d39d
lea eax, [ebp - 0x18]
push str.Categories
push eax
lea ecx, [ebp - 0x10]
call fcn.0042200c
lea ecx, [ebp - 0x18]
call fcn.00421ff4
test al, al
je 0x45d363
or esi, 0xffffffff
jmp 0x45d39d
cmp dword [esi + 0x10], ebx
jle 0x45d39b
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
mov edi, dword [eax + ebx*4]
lea eax, [ebp + 8]
push dword [edi + 8]
push eax
call fcn.0042200c
lea ecx, [ebp + 8]
call fcn.00421ff4
test al, al
jne 0x45d3bc
lea eax, [ebp + 8]
push eax
push edi
call fcn.0045d3eb
inc ebx
pop ecx
cmp ebx, dword [esi + 0x10]
pop ecx
jl 0x45d368
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004baede
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004223e7
mov eax, esi
jmp 0x45d3da
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004baede
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004223e7
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4667e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.0045ecc0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x466812
mov dword [esp + 0x2c], 0
jmp 0x46682d
mov ecx, ebp
call fcn.0045ecc0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.0045ecc0
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.0045ecd0
cmp eax, esi
jae 0x46686d
mov ecx, ebp
call fcn.0045ecd0
mov dword [esp + 0x10], eax
jmp 0x466871
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.0045eb10
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4668dd
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4668d8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0045f010
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4668cb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0045f480
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x466898
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x466886
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x479769
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479789
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047c48e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4797ac
test byte [esp + 8], 2
je 0x4797ac
call fcn.0047c501
mov dword [eax], 0xd
call fcn.0047c50a
mov dword [eax], 5
jmp 0x479785
xor eax, eax
ret
Function at 0x490470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004797e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49053b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x49053b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4904ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4904f9
or bh, 8
and edi, 0x8000000
je 0x490514
mov eax, dword [0x5816bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x49053b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49093b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49095f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49097a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x492830
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x49284a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x49284a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x49ce80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49ceb0
push esi
call fcn.0049d380
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x49cea9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x49cf33
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x49cf1f
mov eax, dword [esi + 8]
test eax, eax
je 0x49ced4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49cf1b
cmp eax, 2
je 0x49cf1f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49cec7
cmp eax, 3
je 0x49cefa
cmp eax, 1
jne 0x49cec7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49cec7
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49cec7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0049cf60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49cf53
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0049cf60
add esp, 4
pop esi
ret
Function at 0x4bccfa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bcd32
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bb39c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bb373
jmp 0x4bcd3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bcd42
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x57ddd0
mov ecx, edi
call fcn.004bb075
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4bcd95
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4bcda8
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004bb39c
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004bb373
jmp 0x4bcda8
mov ecx, esi
call fcn.004beedb
test eax, eax
je 0x4bcda8
push edi
mov ecx, eax
call fcn.004bccfa
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4be653
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4be695
call fcn.004cf50b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4be695
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4be68c
xor eax, eax
jmp 0x4be69d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004be6a3
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d001f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004cf50b
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d005c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d005c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4d0060
xor eax, eax
jmp 0x4d00de
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004bb4cd
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4d0098
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4d0082
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004d01cf
push ebx
mov edi, eax
call fcn.004bb4f6
test edi, edi
pop ecx
je 0x4d00da
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004cff98
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004d00e3
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044d4
test esi, esi
jne 0x402ebb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045c4
jmp 0x402edc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d20
mov dword [esp], eax
test esi, esi
je 0x402edc
cmp dword [ebx], 0
je 0x402edc
dec esi
jmp 0x402ec3
add esp, 0x10c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x461008], 0x8088405
inc edx
mov dword [ebx + 0x461008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4035b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40364c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40362c
xor eax, eax
push ebp
push 0x403625
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403668
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40362c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x461024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404350
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x4043b1
cmp word [0x463220], 0xd7b2
jne 0x404379
cmp dword [0x463228], 0
jbe 0x404379
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x461070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461034], 0
jne 0x4043cd
push 0
push 0x461068
push 0x461070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406430
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406496
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404744
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403178
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406480
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40649d
lea eax, [ebp - 0x10]
call fcn.004044d4
ret

Function at 0x40b808
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b841
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045c4
jmp 0x40b84a
mov eax, ebx
mov edx, esi
call fcn.00404528
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b854
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b875
mov al, byte [esp]
jmp 0x40b877
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd74
mov eax, dword [0x46215c]
cmp byte [eax], 0
je 0x40bf88
mov eax, dword [0x461f70]
call fcn.00402fc8
call fcn.00402c4c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fc4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bfd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x461f20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.00405880
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret