joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488744
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004190d4
mov dword [ebp - 0x18], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4885c8]
call fcn.0048885c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48884b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 0x30
call fcn.00488714
test al, al
je 0x488817
mov byte [ebp - 5], 5
mov dl, 1
mov eax, dword [0x414d24]
call fcn.00403834
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.00488944
mov dl, 1
mov eax, dword [0x47738c]
call fcn.00477778
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0x200
mov edx, 0x400
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0047c9a0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.004190f4
mov eax, dword [ebp - 0x14]
call fcn.00486894
cmp al, 4
jne 0x488817
mov byte [ebp - 5], 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488852
mov eax, dword [ebp - 0xc]
call fcn.00403864
mov eax, dword [ebp - 0x10]
call fcn.00403864
mov eax, dword [ebp - 0x14]
call fcn.00403864
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004190f4
ret

Function at 0x48af34
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov edi, ecx
dec edi
test edi, edi
jl 0x48afaa
inc edi
mov esi, edx
mov ax, word [ebx + 0xc]
or ax, 2
movzx edx, ax
xor ax, 1
movzx eax, ax
imul edx, eax
shr edx, 8
xor byte [esi], dl
mov edx, dword [ebx + 4]
mov al, byte [esi]
call fcn.00477064
mov ebp, eax
mov dword [ebx + 4], ebp
and ebp, 0xff
add dword [ebx + 8], ebp
imul eax, dword [ebx + 8], 0x8088405
inc eax
mov dword [ebx + 8], eax
shr eax, 0x18
xor al, byte [ebx + 0xc]
and eax, 0xff
mov edx, dword [0x4b8eb8]
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0xc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebx + 0xc], eax
inc esi
dec edi
jne 0x48af44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48b03c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov eax, dword [edi + 0x38]
call fcn.004190d4
mov dword [esp + 4], eax
xor ebx, ebx
mov byte [esp], 0
jmp 0x48b0d3
mov eax, edi
call fcn.0048aff8
xor ecx, ecx
mov edx, dword [esp + 4]
mov eax, dword [edi + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea edx, [edi + 0x10]
mov ecx, 0xc
mov eax, dword [edi + 0x38]
mov ebx, dword [eax]
call dword [ebx + 8]
xor esi, esi
mov eax, edi
call fcn.0048afb0
xor byte [edi + esi + 0x10], al
lea edx, [edi + 4]
mov al, byte [edi + esi + 0x10]
call fcn.0048b100
inc esi
cmp esi, 0xc
jne 0x48b07f
cmp byte [edi + 0x20], 0
je 0x48b0ad
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
sete bl
jmp 0x48b0c3
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
jne 0x48b0bd
mov al, byte [edi + 0x1a]
cmp al, byte [edi + 0x1e]
je 0x48b0c1
xor ebx, ebx
jmp 0x48b0c3
mov bl, 1
test bl, bl
jne 0x48b0d0
lea edx, [edi + 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx]
inc byte [esp]
test bl, bl
jne 0x48b0e3
mov al, byte [esp]
cmp al, byte [edi + 0x34]
jb 0x48b058
test bl, bl
jne 0x48b0f8
mov dl, 1
mov eax, dword [0x47359c]
call fcn.004746d4
call fcn.00404030
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov edx, dword [edi]
mov eax, ebx
call fcn.00477064
mov esi, eax
mov dword [edi], esi
and esi, 0xff
add dword [edi + 4], esi
imul esi, dword [edi + 4], 0x8088405
inc esi
mov dword [edi + 4], esi
mov eax, esi
shr eax, 0x18
mov edx, dword [edi + 8]
call fcn.00477064
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x48de00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor edi, edi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x48de3b
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebx + 0xb8]
mov dl, 1
mov eax, dword [0x48ae04]
call fcn.0048ae74
mov edi, eax
test edi, edi
je 0x48de68
mov eax, dword [ebx + 0xf0]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0xf4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x30]
mov edx, dword [ebx + 0xb8]
call fcn.004046ec
mov al, byte [ebx + 0xbc]
mov byte [edi + 0x34], al
mov eax, dword [ebp - 4]
push eax
push edi
lea ecx, [ebx + 4]
mov dl, 1
mov eax, dword [0x48c65c]
call fcn.0048c6f0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48df52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0048463c
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x20], al
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov eax, esi
call fcn.00484628
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x18], al
mov eax, esi
call fcn.00484700
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x21], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x90]
mov dword [eax + 0x28], edx
mov edx, dword [ebx + 0x94]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x100]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x104]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], ebx
cmp byte [ebx + 0x44], 0
je 0x48df31
mov eax, dword [ebp - 0xc]
add eax, 0x3c
mov edx, dword [ebx + 0xc]
call fcn.004046ec
mov ax, word [ebx + 0xaa]
mov edx, dword [ebp - 0xc]
mov word [edx + 0x44], ax
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x39], 1
mov ax, word [ebx + 0x3c]
mov edx, dword [ebp - 0xc]
mov word [edx + 0x46], ax
mov eax, dword [ebp - 0xc]
call fcn.0048c7c8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48df59
mov eax, dword [ebp - 0xc]
call fcn.00403864
ret
Function at 0x4918c0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4918d8
add esp, 0xfffffff0
call fcn.00403bc8
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4919ef
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041efd0
mov byte [ebx + 0xa18], 0
mov eax, 0x400
call fcn.0040274c
mov dword [ebx + 0x86c], eax
push ebx
push 0x491e34
call fcn.00456a58
mov dword [ebx + 0x864], eax
mov dword [ebx + 0xa10], 1
mov byte [ebx + 0x870], 0
mov ecx, 0x491a20
mov dl, 8
mov eax, ebx
call fcn.00491db4
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4919bf
xor eax, eax
push ebp
push 0x4919a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x491982
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00491bf0
push 4
push 0x491a38
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4919cd
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00491bf0
mov byte [ebx + 0xa18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4919f6
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046bc
ret

Function at 0x491e74
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x491f48
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x491f32
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x491f5c
call fcn.00409f54
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491f4f
lea eax, [ebp - 8]
call fcn.00404698
ret
Function at 0x49a418
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a4f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bafb8], 0
jne 0x49a4d4
lea eax, [ebp - 4]
mov edx, 0x49a508
call fcn.00404730
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x49a4d4
mov eax, ebx
call fcn.0040274c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49a4cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49a4b7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49a518
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49a4b7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4bafb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a4d4
mov eax, dword [ebp - 0xc]
call fcn.0040276c
ret
mov ebx, dword [0x4bafb8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a4f7
lea eax, [ebp - 4]
call fcn.00404698
ret

Function at 0x4a4ae4
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4bafdc], 0
jne 0x4a4b07
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4a4a58
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bafdc], eax
ret

Function at 0x4a8a04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, eax
push esp
push 0x3e9
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.004099d8
add esp, 0x3ec
pop ebx
ret
Function at 0x4a8cdc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8e09
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a8de1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
call fcn.00404698
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00404698
push 0x40
lea eax, [ebp - 0x48]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x48]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a8d8c
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4a8d80
push dword [ebp - 8]
push 0x4a8e20
push dword [edi]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x1dc]
call fcn.004099d8
push dword [ebp - 0x1dc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a10
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4a8d52
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8de8
mov edx, dword [ebp - 8]
mov eax, 0x4a8e2c
call fcn.00404c8c
dec eax
jge 0x4a8dc3
push dword [ebp - 8]
push 0x4a8e20
push 0x4a8e40
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a10
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.00404be8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004046ec
ret
Function at 0x4b1450
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b151a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x34]
call fcn.00404b48
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebx + 0x40], esi
inc esi
je 0x4b148c
lea eax, [ebx + 0x38]
mov edx, dword [ebx + 0x34]
call fcn.004046ec
jmp 0x4b14e0
mov eax, dword [ebx + 0x34]
call fcn.00404b48
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x4b14cc
call sub.kernel32.dll_GetLastError_1
mov dword [ebx + 0x70], eax
cmp word [ebx + 0x5a], 0
je 0x4b14ff
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x34]
mov edx, 0x4b1530
call fcn.0040499c
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
jmp 0x4b14ff
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x38]
mov edx, dword [esi]
call fcn.00404888
push dword [ebx + 0x40]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 8]
call fcn.004099d8
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x3c]
call fcn.004046ec
mov byte [ebx + 0x74], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1521
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046bc
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x565aa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
push 0x800
push 0x40
mov dword [esp + 0x1c], ebx
call dword [ebx + 0x2c]
mov edi, eax
test edi, edi
jne 0x565acc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, 0xff765eda
test eax, eax
je 0x565b90
jmp 0x565af4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x565b00
mov eax, 0x800
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call dword [ebx + 0x14]
test eax, eax
je 0x565ba0
mov edx, dword [esp + 0x10]
test edx, edx
je 0x565be2
xor esi, esi
test edx, edx
jle 0x565b67
mov ecx, ebp
xor ecx, 0xfff45367
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
mov bl, byte [esi + edi]
xor al, bl
xor al, cl
mov byte [esi + edi], al
and eax, 0xff
shl ebp, 8
add ebp, eax
inc esi
cmp esi, edx
jl 0x565b2b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push edx
push edi
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0x565bc2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0x565af0
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.00566810
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
call dword [ebx + 0x78]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00566880
add esp, 8
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.00566810
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret

Function at 0x566680
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x5666ba
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x56669b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret
Function at 0x4027d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402803
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403698
jmp 0x402821
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402708
mov edi, eax
test ebx, ebx
je 0x402821
cmp dword [esi], 0
je 0x402821
dec ebx
jmp 0x40280a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x43c03c], 0x8088405
inc edx
mov dword [0x43c03c], edx
mul edx
mov eax, edx
ret

Function at 0x402b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ba0
xor eax, eax
push ebp
push 0x402b99
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 0x402bdc
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 0x402ba0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40466c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404808
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40471c
xor eax, eax
push ebp
push 0x404715
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404828
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40471c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4047fd
cmp byte [ebp - 0xd], 0
jne 0x40475e
cmp byte [ebp - 0x12], 0
je 0x4047fd
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404777
dec ebx
cmp byte [ebx], 0x2e
je 0x404786
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404776
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047fd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047b3
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047fd
cmp byte [ebp - 0xd], 0
je 0x4047fd
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047fd
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406bd4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x406be8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406c0a
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4070c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403698
add esp, 0x104
pop ebx
ret
Function at 0x408904
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 0x40893d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403698
jmp 0x408946
mov eax, ebx
mov edx, esi
call fcn.0040364c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41203c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x43a2ec], 0
je 0x412073
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00411f3c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x4120c9
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.00403b60
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00403830
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004039f4
push eax
mov eax, dword [ebp + 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403b60
pop ebx
mov esp, ebp
pop ebp
ret 8