joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8a8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x50]
mov edx, dword [ebp + 8]
push dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x48]
push dword [ebp + 8]
call sym.Project1.exe__TcmDownloader_DownLoad_qpct1i
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x4c]
push 0x401
mov edx, dword [ebp + 8]
push dword [edx + 0x44]
call sub.USER32.DLL_PostMessageA
test eax, eax
je 0x40a8cc
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x40], 0
mov eax, dword [ebp + 8]
push dword [eax + 0x38]
call sub.KERNEL32.DLL_SuspendThread
pop ecx
pop ebp
ret

Function at 0x40a914
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x40], 0
jne 0x40a96b
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
je 0x40a96b
cmp dword [ebp + 0xc], 0
je 0x40a96b
cmp dword [ebp + 0x10], 0
je 0x40a96b
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x40], 1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp + 8]
push dword [eax + 0x38]
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
ja 0x40a957
mov al, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d0f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c8
mov dword [ebp - 4], 0x800
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov edx, dword [0x4c3690]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x4c3694]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x80]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x24]
mov byte [eax + 0xbd], 1
jmp 0x40d24c
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x70
push ecx
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x24]
push dword [edx + 0x60]
call sub.KERNEL32.DLL_WaitCommEvent
test eax, eax
jne 0x40d182
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x40d182
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 2
call sub.KERNEL32.DLL_WaitForMultipleObjects
test eax, eax
je 0x40d25c
test byte [ebp - 0x18], 1
je 0x40d230
lea eax, [ebp - 0x838]
push eax
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x24]
push dword [ecx + 0x60]
call sub.KERNEL32.DLL_ClearCommError
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40d24c
cmp dword [ebp - 0x14], 0x800
jae 0x40d1c3
mov edx, dword [ebp - 0x14]
jmp 0x40d1c8
mov edx, 0x800
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
add eax, 0x70
push eax
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x10]
lea eax, [ebp - 0x82c]
push eax
mov edx, dword [ebp - 0x24]
push dword [edx + 0x60]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x40d210
push dword [ebp - 0xc]
lea ecx, [ebp - 0x82c]
push ecx
mov eax, dword [ebp - 0x24]
push dword [eax + 0x98]
call sym.Project1.exe__cmSerialCommDriver32_TCommQueue_Write_qpvi
add esp, 0xc
mov edx, dword [ebp - 0xc]
sub dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
ja 0x40d1b5
mov ecx, dword [ebp - 0x24]
cmp word [ecx + 0xaa], 0
je 0x40d24c
mov eax, dword [ebp - 0x24]
push dword [eax + 0x6c]
call sub.KERNEL32.DLL_SetEvent
jmp 0x40d24c
test byte [ebp - 0x18], 0x80
je 0x40d24c
lea edx, [ebp - 0x838]
push edx
lea ecx, [ebp - 8]
push ecx
mov eax, dword [ebp - 0x24]
push dword [eax + 0x60]
call sub.KERNEL32.DLL_ClearCommError
mov edx, dword [ebp - 0x24]
cmp byte [edx + 0xbc], 0
jne 0x40d140
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0xbd], 0
mov esp, ebp
pop ebp
ret
Function at 0x40d26c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 8], 0x100
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xbf], 1
mov ecx, dword [0x4c3698]
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x4c369c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x1c], eax
mov edx, dword [0x4c36a0]
mov dword [ebp - 0x28], edx
mov edx, dword [0x4c36a4]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x94]
mov dword [ebp - 0x24], ecx
jmp 0x40d3e7
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x20]
push eax
push 2
call sub.KERNEL32.DLL_WaitForMultipleObjects
test eax, eax
je 0x40d3f7
jmp 0x40d3c4
xor edx, edx
mov dword [ebp - 0x10], edx
push 0x100
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp - 0xc]
push dword [eax + 0x9c]
call sym.Project1.exe__cmSerialCommDriver32_TCommQueue_BlockPeek_qppvi
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x40d396
mov edx, dword [ebp - 0xc]
add edx, 0x84
push edx
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0x60]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x40d34c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
jmp 0x40d38f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x40d38f
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x28]
push edx
push 2
call sub.KERNEL32.DLL_WaitForMultipleObjects
test eax, eax
je 0x40d3ae
push 0
lea ecx, [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0xc]
add eax, 0x84
push eax
mov edx, dword [ebp - 0xc]
push dword [edx + 0x60]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
je 0x40d38f
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x10], ecx
push 0
call sub.KERNEL32.DLL_Sleep
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x40d3ae
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0xbe], 0
jne 0x40d319
push dword [ebp - 0x14]
push 0
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0x9c]
call sym.Project1.exe__cmSerialCommDriver32_TCommQueue_Read_qpvi
add esp, 0xc
mov eax, dword [ebp - 0xc]
push dword [eax + 0x9c]
call sym.Project1.exe__cmSerialCommDriver32_TCommQueue_IsEmpty_qv
pop ecx
test al, al
jne 0x40d3e7
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0xbe], 0
jne 0x40d2f5
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 0xbe], 0
jne 0x40d2d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xbf], 0
mov esp, ebp
pop ebp
ret
Function at 0x40f92c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
je 0x40f975
cmp byte [ebp - 0x10], 0x30
jne 0x40f975
cmp byte [ebp - 0xf], 0x38
jne 0x40f975
cmp byte [ebp - 0xe], 0x30
jne 0x40f975
cmp byte [ebp - 0xd], 0x34
jne 0x40f975
cmp byte [ebp - 0xc], 0
jne 0x40f975
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4109f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
je 0x410a3d
cmp byte [ebp - 0x10], 0x30
jne 0x410a3d
cmp byte [ebp - 0xf], 0x38
jne 0x410a3d
cmp byte [ebp - 0xe], 0x30
jne 0x410a3d
cmp byte [ebp - 0xd], 0x34
jne 0x410a3d
cmp byte [ebp - 0xc], 0
jne 0x410a3d
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x416244
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x416295
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41627c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41626c
jmp 0x416295
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41627d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jle 0x417b94
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, 0xff
imul dword [ebp - 8]
shr eax, 8
add eax, dword [ebp - 0xc]
call sym.Project1.exe__Cmbitmap_CMIntToByte_qqri
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x11c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x417b66
jmp 0x417bc9
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cdq
xor eax, edx
sub eax, edx
imul dword [ebp - 0xc]
shr eax, 8
push eax
mov eax, dword [ebp - 0xc]
pop edx
sub eax, edx
call sym.Project1.exe__Cmbitmap_CMIntToByte_qqri
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x11c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x417b99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x417c54
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
jle 0x417c40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
add dword [ebp - 0x14], 3
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x417bfa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x417be6
mov esp, ebp
pop ebp
ret

Function at 0x4185d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
dec eax
test eax, eax
jl 0x41864c
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x418638
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
xor byte [eax], 0xff
mov eax, dword [ebp - 0x10]
xor byte [eax + 1], 0xff
mov eax, dword [ebp - 0x10]
xor byte [eax + 2], 0xff
add dword [ebp - 0x10], 3
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x418618
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x418600
mov esp, ebp
pop ebp
ret
Function at 0x421188
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x4c42c8
call fcn.004aff88
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.004af5ac
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4211fd
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x4211fd
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004af5cc
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4211fd
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x42121a
cmp dword [ebp - 0x34], 0
je 0x42121a
mov edx, dword [ebp - 0x34]
jmp 0x42121f
mov edx, 0x4c3f3c
lea eax, [ebp - 4]
call fcn.004bb388
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.004af5bc
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004bb584
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42129d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434494
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cf264
cmp dword [edi], 0
jne 0x434510
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4cf260]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c4f28
mov ecx, 2
call fcn.00446618
mov edx, 0x43446c
lea eax, [esi + 5]
call fcn.0043448c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043448c
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 0x4344e5
mov dword [0x4cf260], 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 0x435a48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00435644
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0044830c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x435aa6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4cabb4]
mov dl, 1
mov eax, dword [0x43553c]
call fcn.00439f78
call fcn.00447abc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x435ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0044830c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x435b08
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4cabac]
mov dl, 1
mov eax, dword [0x43553c]
call fcn.00439f78
call fcn.00447abc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00435674
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x437924
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0044830c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x437938
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.0044830c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x43795a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4396d4
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
test eax, eax
jle 0x43970d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00447f4c
jmp 0x439716
mov eax, ebx
mov edx, esi
call fcn.00447eb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x439720
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
test eax, eax
jle 0x439741
mov al, byte [esp]
jmp 0x439743
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x439dc8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x439c40
mov eax, dword [0x4cad90]
cmp byte [eax], 0
je 0x439e35
mov eax, dword [0x4cad94]
call fcn.004469f4
call fcn.00446584
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00437c04
push eax
lea eax, [esp + 0x50]
push eax
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 0x439e7c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x439e6b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cac50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cafec]
call fcn.004495d4
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x43aad0
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 0x43ab34
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004480c4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00437614
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ab3b
lea eax, [ebp - 0xc]
call fcn.00447e5c
ret

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

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

Function at 0x447180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c546c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x447218
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4471f8
xor eax, eax
push ebp
push 0x4471f1
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 0x447234
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 0x4471f8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4c546c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c546c], ax
mov esp, ebp
pop ebp
ret

Function at 0x447ce0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf588], 0
je 0x447d41
cmp word [0x4cf75c], 0xd7b2
jne 0x447d09
cmp dword [0x4cf764], 0
jbe 0x447d09
mov eax, 0x4cf758
call dword [0x4cf774]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x447d68
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4c547c], 0
jne 0x447d5d
push 0
push 0x4c54d4
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4497c8
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4499f8
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44984b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4499f8
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44984b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x449a14
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4498d4
xor eax, eax
push ebp
push 0x4498cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00449610
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 0x4498b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x449a34
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4498b2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498d4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
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 0x4499ee
cmp byte [ebp - 0xd], 0
jne 0x44991b
cmp byte [ebp - 0x12], 0
je 0x4499ee
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x449934
dec ebx
cmp byte [ebx], 0x2e
je 0x449943
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x449933
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4499ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x449980
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4499ee
cmp byte [ebp - 0xd], 0
je 0x4499ee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4499ee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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