joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4e7f67f8
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..reloc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x420b20a1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407e2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f450
cmp edx, dword [eax]
je 0x407e4f
add eax, 8
inc ecx
cmp eax, 0x41f4e0
jl 0x407e40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f450]
jne 0x407f7d
mov eax, dword [0x421a20]
cmp eax, 1
je 0x407f57
test eax, eax
jne 0x407e80
cmp dword [0x41e9e4], 1
je 0x407f57
cmp edx, 0xfc
je 0x407f7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407eb7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408d80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406980
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407efa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406980
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a27c
push edi
call fcn.00409e60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408d80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408d90
lea eax, [ebp - 0xa0]
push 0x41a25c
push eax
call fcn.00408d90
push dword [esi + 0x41f454]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408d90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a2e7
add esp, 0x2c
pop edi
jmp 0x407f7d
lea eax, [ebp + 8]
lea esi, [esi + 0x41f454]
push 0
push eax
push dword [esi]
call fcn.00406980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40dbb0
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.00404200
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40dc7b
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 0x40dc7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40dc2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40dc39
or bh, 8
and edi, 0x8000000
je 0x40dc54
mov eax, dword [0x4231dc]
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 0x40dc7b
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 0x40e050
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 0x40e07b
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 0x40e09f
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 0x40e0ba
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 0x40ffc3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40fffb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041327a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413252
jmp 0x410007
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x411546
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 0x411588
call fcn.004158a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411588
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41157f
xor eax, eax
jmp 0x411590
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411596
pop edi
pop esi
pop ebx
ret 4
Function at 0x1001a000
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
push 0x10f
push 0
mov dword [ebp - 0x28], esi
mov ebx, dword [esi + 0x10]
push ebx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], ebx
call fcn.10065910
mov ax, word [esi + 0xc]
add esp, 0xc
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
push 0x100
call esi
push 1
mov word [ebx + 2], ax
call esi
mov word [ebx + 4], ax
xor eax, eax
push 1
mov dword [ebx + 6], eax
mov word [ebx + 0xa], ax
call esi
movzx eax, ax
push 1
mov dword [ebp - 0x20], eax
call esi
mov ecx, edi
movzx eax, ax
mov dword [ebp - 0x24], eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a080
sub ecx, edx
movzx esi, cx
lea eax, [esi + 2]
push eax
call fcn.10072a58
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001a1e3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a0a7
sub ecx, edx
movzx eax, cx
test edi, edi
je 0x1001a1d8
mov edx, eax
lea eax, [esi + 2]
movzx ecx, ax
lea eax, [edx + 2]
cmp ecx, eax
jb 0x1001a1d8
lea eax, [edx + 1]
push eax
call fcn.10063682
mov edx, eax
mov dword [ebp - 0x1c], eax
add esp, 4
sub edx, edi
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [edx + edi - 1], cl
test cl, cl
jne 0x1001a0e1
push 0x10098550
push eax
call fcn.10073b07
mov edx, eax
add esp, 8
xor edi, edi
test edx, edx
je 0x1001a14e
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a110
sub ecx, esi
movzx esi, cx
test si, si
je 0x1001a139
push edx
push esi
movzx eax, di
add eax, ebx
push str._c_s
push eax
call fcn.10005600
inc edi
add esp, 0x10
add edi, esi
push 0x10098550
push 0
call fcn.10073b07
mov edx, eax
add esp, 8
test edx, edx
jne 0x1001a104
push dword [ebp - 0x1c]
call fcn.10063325
mov ecx, ebx
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a160
sub ecx, edx
lea eax, [ecx + 1]
movzx edi, ax
mov eax, dword [ebp - 0x18]
mov esi, edi
push esi
add eax, 0xc
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.10065380
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push ebx
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x24]
mov word [eax + esi + 2], cx
call fcn.1006dacf
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
lea eax, [edi + 0x10]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret 0x14
push str.YB_EncodeDotStr_Erro
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10063317
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405990
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
sub esp, 0x10
mov eax, dword [eax]
mov edx, dword [edx]
push ebx
push ebp
push esi
push edi
lea esi, [ecx + 8]
mov edi, 8
mov ebx, dword [esi - 4]
add esi, 8
xor eax, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x12]
mov ebp, dword [esp + 0x13]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x11]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, eax
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
xor ebx, edx
mov edx, dword [esi - 8]
xor edx, ebx
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x1a]
mov ebp, dword [esp + 0x1b]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x19]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, edx
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
xor eax, ebx
dec edi
jne 0x4059ab
mov esi, dword [ecx + 0x48]
pop edi
xor esi, edx
mov edx, dword [esp + 0x20]
mov dword [edx], esi
mov ecx, dword [ecx + 0x44]
mov edx, dword [esp + 0x24]
xor ecx, eax
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x408c8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412428
push 0x40c5e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x417294]
test eax, eax
je 0x408cd4
mov dword [ebp - 4], 1
call eax
jmp 0x408cd0
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408cdd
jmp 0x40d3e5
push 0xa
call fcn.0040c6f5
push 0x16
call fcn.0040f089
pop ecx
pop ecx
push 3
call fcn.00407086

Function at 0x408ce2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412440
push 0x40c5e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.00408c8c]
test eax, eax
je 0x408d2a
mov dword [ebp - 4], 1
call eax
jmp 0x408d26
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408d33
jmp fcn.00408c8c

Function at 0xddce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xddce76
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3
Function at 0x401562
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40156c
repz ret
jmp fcn.004027be

Function at 0x406483
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.00403911
and dword [ebp - 4], 0
cmp dword [0x40ea7c], 0
mov ebx, eax
jne 0x406534
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4065e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4065e5
push eax
call fcn.0040389f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea7c], eax
call esi
push eax
call fcn.0040389f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea80], eax
call esi
push eax
call fcn.0040389f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea84], eax
call esi
push eax
call fcn.0040389f
pop ecx
mov dword [0x40ea8c], eax
test eax, eax
je 0x406534
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040389f
pop ecx
mov dword [0x40ea88], eax
mov eax, dword [0x40ea88]
cmp eax, ebx
je 0x40658c
cmp dword [0x40ea8c], ebx
je 0x40658c
push eax
call fcn.0040391a
push dword [0x40ea8c]
mov esi, eax
call fcn.0040391a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40658c
test edi, edi
je 0x40658c
call esi
test eax, eax
je 0x406583
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406583
test byte [ebp - 0xc], 1
jne 0x40658c
or dword [ebp + 0x10], 0x200000
jmp 0x4065c5
mov eax, dword [0x40ea80]
cmp eax, ebx
je 0x4065c5
push eax
call fcn.0040391a
pop ecx
test eax, eax
je 0x4065c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4065c5
mov eax, dword [0x40ea84]
cmp eax, ebx
je 0x4065c5
push eax
call fcn.0040391a
pop ecx
test eax, eax
je 0x4065c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea7c]
call fcn.0040391a
pop ecx
test eax, eax
je 0x4065e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4065e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040468c
test esi, esi
jne 0x402daa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040477c
jmp 0x402dc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402c88
mov edi, eax
test esi, esi
je 0x402dc8
cmp dword [ebx], 0
je 0x402dc8
dec esi
jmp 0x402db1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4035e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x6b0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403678
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403658
xor eax, eax
push ebp
push 0x403651
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 0x403694
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 0x403658
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x6b0024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x6b0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40446c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b604c], 0
je 0x4044cd
cmp word [0x6b6220], 0xd7b2
jne 0x404495
cmp dword [0x6b6228], 0
jbe 0x404495
mov eax, 0x6b621c
call dword [0x6b6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x6b0070
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 0x4044f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6b0034], 0
jne 0x4044e9
push 0
push 0x6b0068
push 0x6b0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a1c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x6b604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404608
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406d94
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 0x406dfa
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.0040490c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403164
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406de4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e01
lea eax, [ebp - 0x10]
call fcn.0040468c
ret

Function at 0x40e87c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e8b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040477c
jmp 0x40e8be
mov eax, ebx
mov edx, esi
call fcn.004046e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e8c8
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 0x40e8e9
mov al, byte [esp]
jmp 0x40e8eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f8f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f9ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404724
lea eax, [ebp - 8]
call fcn.00404bc8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b78
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f9b4
mov eax, ebx
call fcn.00402a1c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f9ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b78
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f997
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f9dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f997
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f9b4
mov eax, dword [ebp - 0x10]
call fcn.00402a3c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f9d1
lea eax, [ebp - 8]
call fcn.0040468c
ret