joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460594
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cead9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x4d83a0
mov dword [ebp - 4], 4
push 0
mov ecx, dword [0x5b7b6c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46065c
push 0x64
mov ecx, 0x5b7b68
call fcn.0044cd30
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46065c
cmp dword [0x5b8360], 0
je 0x46065c
push 0
mov edx, dword [0x5b8360]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x5b8360]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5b8360]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x460641
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
call dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x460648
mov dword [ebp - 0x1c], 0
mov dword [0x5b8360], 0
mov ecx, 0x5b7b68
call fcn.0042daa0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0x15144
call fcn.004aa47d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x15108
call fcn.004c1085
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x150cc
call fcn.004c1123
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xa4
call fcn.004aaaee
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.00444420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x462ab8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
xor eax, eax
mov al, byte [0x5d3c38]
test eax, eax
je 0x462b55
call fcn.004946e5
cmp eax, dword [0x5d5604]
jge 0x462ae2
jmp 0x462b8c
cmp dword [0x5b8360], 0
je 0x462b4e
push 0
mov ecx, dword [0x5b8360]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x5b8360]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x5b8360]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x462b33
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x462b3a
mov dword [ebp - 0x10], 0
mov dword [0x5b8360], 0
mov ecx, 0x5b7b68
call fcn.0042daa0
mov byte [0x5d3c38], 0
push 0
mov eax, dword [0x5b7b6c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x462b8c
mov ecx, 0x5b7b68
call fcn.0042daf0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x46164a
call fcn.004ac601
mov dword [0x5b8360], eax
mov esp, ebp
pop ebp
ret
Function at 0x47fabe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x36
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x39
mov byte [ebp - 6], 0x41
mov byte [ebp - 5], 0x42
mov byte [ebp - 4], 0x43
mov byte [ebp - 3], 0x44
mov byte [ebp - 2], 0x45
mov byte [ebp - 1], 0x46
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x47fb1d
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jge 0x47fb9e
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xf0
sar edx, 4
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
mov cl, byte [ebp + edx - 0x10]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xf
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov al, byte [ebp + ecx - 0x10]
mov byte [edx], al
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14], 5
je 0x47fb87
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], 0x3a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x47fb99
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x47fb14
mov esp, ebp
pop ebp
ret
Function at 0x488ed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov dword [ebp - 0x518], ecx
mov word [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 6
ja case.default.0x488f01
mov ecx, dword [ebp - 0x51c]
jmp dword [ecx*4 + 0x4890d8]
cmp dword [ebp + 8], 3
jne 0x488f16
mov word [ebp - 4], 0x80
jmp 0x488f30
cmp dword [ebp + 8], 2
jne 0x488f24
mov word [ebp - 4], 8
jmp 0x488f30
cmp dword [ebp + 8], 4
jne 0x488f30
mov word [ebp - 4], 0x100
mov edx, dword [ebp - 4]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
push eax
push str.ProvDiscRspCode__x___connectway_by__x_n
lea ecx, [ebp - 0x50c]
push ecx
call fcn.004936f0
add esp, 0x10
lea edx, [ebp - 0x50c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0x100
je 0x488f9a
push str.m_pConnectWay___P2P_WPS_CONFIG_METHODS_KEYPAn
call fcn.0040d6f5
add esp, 4
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
and ecx, 0xffff
push ecx
push 0x485b7c
call fcn.004ac601
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 3
jne 0x488fa8
call dword [sym.imp.P2PLib.dll_WpsLibSetPBC]
jmp 0x488fc6
cmp dword [ebp + 8], 4
jne 0x488fb0
jmp 0x488fc6
cmp dword [ebp + 8], 2
jne 0x488fc6
lea edx, [ebp - 0x514]
push edx
call dword [sym.imp.P2PLib.dll_WpsLibGetRegistrarPin]
add esp, 4
cmp dword [0x62bac8], 3
jne 0x488fdf
push 0x62c345
call dword [sym.imp.P2PLib.dll_P2PLibConnectGo]
add esp, 4
jmp 0x488fed
push 0x62bace
call dword [sym.imp.P2PLib.dll_P2PLibConnectDevice]
add esp, 4
mov dword [ebp - 0x10c], 0
cmp dword [ebp - 0x10c], 0
je 0x489052
push 0x100
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00493430
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x100
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.P2PLib.dll_P2PLibGetErrorCodeDescription]
add esp, 0x10
push 0x40010
push 0x5a86cc
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4890d2
jmp 0x4890d2
mov dword [0x661f34], 2
push 0x40010
push 0
push str.Connect_request_be_reject
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4890d2
push 0x40010
push 0
push str.PROV_DISC_CH_NOT_HIT
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x661f34], 3
jmp 0x4890d2
push 0x40010
push 0
push str.PROV_DISC_RSP_TIMEOUT
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x661f34], 4
jmp 0x4890d2
push 0x40010
push 0
push str.PROV_DISC_UNKNOWN_ERROR
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x661f34], 5
mov esp, ebp
pop ebp
ret 4
Function at 0x48ac64
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a14
call fcn.00494070
mov dword [ebp - 0x1a14], ecx
mov dword [ebp - 0x1a10], 0x1900
lea eax, [ebp - 0x1a10]
push eax
lea ecx, [ebp - 0x1a0c]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
je 0x48aca8
jmp 0x48ae64
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.00412d40
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.00464150
mov dword [ebp - 0x10c], 0
mov dword [0x662158], 0
lea edx, [ebp - 0x1a0c]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x1a0], 6
jne 0x48ae49
push 0x100
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.00493430
add esp, 0xc
mov edx, dword [ebp - 0x108]
add edx, 8
push edx
push 0x5b1844
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.0040cb40
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call fcn.00493430
add esp, 0xc
mov ecx, dword [ebp - 0x108]
add ecx, 0x10c
push ecx
push 0x5b1848
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 1
mov ecx, dword [ebp - 0x10c]
push ecx
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.004aa5cd
push 0x100
push 0
lea edx, [ebp - 0x100]
push edx
call fcn.00493430
add esp, 0xc
mov eax, dword [ebp - 0x108]
add eax, 0x1b0
push eax
push 0x5b184c
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
push 2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.004aa5cd
push 0x280
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [0x662158]
imul edx, edx, 0x280
add edx, 0x662160
push edx
call fcn.004930f0
add esp, 0xc
mov eax, dword [0x662158]
add eax, 1
mov dword [0x662158], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x48acec
mov esp, ebp
pop ebp
ret
Function at 0x4a7fd0
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.00494070
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4a809b
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 0x4a809b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4a804e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4a8059
or bh, 8
and edi, 0x8000000
je 0x4a8074
mov eax, dword [0x66775c]
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 0x4a809b
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 0x4a8470
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 0x4a849b
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 0x4a84bf
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 0x4a84da
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 0x4ae5ca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ae602
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.004ad567
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad53f
jmp 0x4ae60e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b0164
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 0x4b01a6
call fcn.004c4da9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b01a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b019d
xor eax, eax
jmp 0x4b01ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b01b4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b0ffb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4b101d
cmp dword [edi + 0x3c], 0
jne 0x4b101d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004c4da9
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004b104a
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b1098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c4da9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b10c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004b10dc
pop edi
pop esi
pop ebx
ret 8
Function at 0x4c97ec
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4c986a
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402cbc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403144
Capabilities:
Query or enumerate registry value

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

Function at 0x403f58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b04c], 0
je 0x403fb9
cmp word [0x47b220], 0xd7b2
jne 0x403f81
cmp dword [0x47b228], 0
jbe 0x403f81
mov eax, 0x47b21c
call dword [0x47b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x478070
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 0x403fe0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x478034], 0
jne 0x403fd5
push 0
push 0x478068
push 0x478070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40603c
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 0x4060a2
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.00404344
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40608c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060a9
lea eax, [ebp - 0x10]
call fcn.004040d4
ret

Function at 0x40b730
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 0x40b769
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041c4
jmp 0x40b772
mov eax, ebx
mov edx, esi
call fcn.00404128
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc9c
mov eax, dword [0x47a1b4]
cmp byte [eax], 0
je 0x40bea0
mov eax, dword [0x479ecc]
call fcn.00402aec
call fcn.00402938
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.00408eb0
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 0x40bee8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bed6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x479e44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47b668]
call fcn.00405550
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
Function at 0x40c784
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 0x40c85a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040416c
lea eax, [ebp - 8]
call fcn.004045e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404594
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c844
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c83d
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.00404594
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c827
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c86c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c827
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 0x40c844
mov eax, dword [ebp - 0x10]
call fcn.004027f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c861
lea eax, [ebp - 8]
call fcn.004040d4
ret

Function at 0x40ce10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ce74
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404344
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408910
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce7b
lea eax, [ebp - 0xc]
call fcn.004040d4
ret

Function at 0x424544
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47b88c
cmp dword [edi], 0
jne 0x4245c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47b888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4785bc
mov ecx, 2
call fcn.004029cc
mov edx, 0x42451c
lea eax, [esi + 5]
call fcn.0042453c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042453c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424595
mov dword [0x47b888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42580c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425812
ret