joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ac0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x40a2e0
mov edi, edx
call fcn.004027c0
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b0a
push edi
push 0x40a2e0
push str.____Reverse_Proxy_Error_on_connect__s:_d__can_not_connect__n
call fcn.00401040
add esp, 0xc
or eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push 3
push eax
push esi
mov word [ebp - 7], 2
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 3
jne 0x402b5b
push 0
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 3
jne 0x402b5b
cmp byte [ebp - 7], 1
je 0x402b49
push str.____Error_happened_on_CONFIRM_CONTROL_SOCKET
jmp 0x402b60
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402fa7
mov esp, ebp
pop ebp
ret
push str.____Error_on_Send
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
call fcn.00402fa7
mov esp, ebp
pop ebp
ret

Function at 0x402d10
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 4
mov esi, edx
mov edi, ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [eax], edi
push 0
push 0
push eax
push 0x402dd0
shl edi, 4
push 0
push 0
mov dword [edi + 0x406444], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jns 0x402dbd
push str.____Can_not_set_Destination_socket
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov ecx, dword [edi + 0x406440]
add esp, 4
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test ecx, ecx
jle 0x402d76
push ecx
call esi
mov dword [edi + 0x406440], 0xffffffff
mov eax, 1
mov ecx, dword [edi + 0x406444]
test ecx, ecx
jle 0x402da3
push ecx
call esi
dec dword [0x406420]
or eax, 0xffffffff
mov dword [edi + 0x406444], 0xffffffff
mov dword [edi + 0x406448], 0
pop edi
pop esi
ret
mov dword [edi + 0x406448], 0
test eax, eax
je 0x402db7
dec dword [0x406420]
pop edi
or eax, 0xffffffff
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4029ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
invalid
test ecx, esp
clc

Function at 0x403fc0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x404021
cmp word [0x41c218], 0xd7b2
jne 0x403fe9
cmp dword [0x41c220], 0
jbe 0x403fe9
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b068
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 0x404048
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b02c], 0
jne 0x40403d
push 0
push 0x41b060
push 0x41b068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d8c
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 0x405df2
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.004043b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ddc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405df9
lea eax, [ebp - 0x10]
call fcn.00404144
ret

Function at 0x40a758
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 0x40a791
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404234
jmp 0x40a79a
mov eax, ebx
mov edx, esi
call fcn.00404198
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc20
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 0x40bc84
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.004043b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004076b4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc8b
lea eax, [ebp - 0xc]
call fcn.00404144
ret
Function at 0x413490
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor edx, edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045d0
xor eax, eax
push ebp
push 0x4135cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ed8
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov eax, dword [0x41b628]
mov eax, dword [eax]
call fcn.004045e0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea edx, [ebp - 8]
mov eax, dword [0x41b6c8]
call fcn.00419d58
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push dword [ebp - 8]
push 0x4135e8
push dword [ebp - 4]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.004044a0
mov eax, dword [ebp - 0x7c]
call fcn.004045e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41356a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004045e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4135ac
jmp 0x413597
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x413597
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_DispatchMessageA
push 0xc8
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x413570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4135d6
lea eax, [ebp - 0x7c]
call fcn.00404144
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404168
ret
Function at 0x4135ec
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045d0
xor eax, eax
push ebp
push 0x4136e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ed8
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov eax, dword [0x41b628]
mov eax, dword [eax]
call fcn.004045e0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea edx, [ebp - 8]
mov eax, dword [0x41b6c8]
call fcn.00419d58
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push dword [ebp - 8]
push 0x413700
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004044a0
mov eax, dword [ebp - 0x60]
call fcn.004045e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4136c6
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004045e0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136f0
lea eax, [ebp - 0x60]
call fcn.00404144
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404168
ret

Function at 0x4137d0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe8c
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
push 1
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov ebp, eax
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp word [esp + 0x14], 0x5a4d
je 0x413836
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [esp], 0
mov dword [esp + 4], 0
jmp 0x4138e7
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 0x14]
push eax
push 0xf8
lea eax, [esp + 0x60]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp dword [esp + 0x54], 0x4550
je 0x413882
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [esp], 0
mov dword [esp + 4], 0
jmp 0x4138e7
mov ax, word [esp + 0x5a]
xor edi, edi
movzx esi, ax
dec esi
test esi, esi
jl 0x4138cd
inc esi
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
lea eax, [esp + 0x158]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
cmp edi, eax
jae 0x4138ca
mov edi, eax
lea eax, [ecx + edi]
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
dec esi
jne 0x413892
push 0
push 0
push ebp
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x174
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4138fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413afa
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
xor eax, eax
call fcn.00416948
mov eax, dword [0x41b510]
mov eax, dword [eax]
call fcn.004137d0
mov edx, dword [0x41b64c]
mov dword [edx], eax
mov eax, dword [0x41b64c]
mov eax, dword [eax]
xor edx, edx
call fcn.00416948
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 3]
mov eax, dword [0x41b510]
mov ecx, 3
call fcn.0041645c
cmp dword [ebp - 8], 3
jne 0x413ae4
lea eax, [ebp - 0x10]
lea edx, [ebp - 3]
mov ecx, 3
call fcn.004043b4
mov eax, dword [ebp - 0x10]
mov edx, 0x413b10
call fcn.0040452c
jne 0x413ae4
mov eax, dword [0x41b64c]
add dword [eax], 0x100
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xa]
mov eax, dword [0x41b510]
mov ecx, 1
call fcn.0041645c
mov al, byte [ebp - 0xa]
and al, 8
cmp al, 8
sete byte [0x41b3b4]
mov al, byte [ebp - 0xa]
and al, 0x40
cmp al, 0x40
sete byte [0x41b3b8]
mov al, byte [ebp - 0xa]
and al, 0x80
cmp al, 0x80
sete byte [0x41b3bc]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xb]
mov eax, dword [0x41b510]
mov ecx, 1
call fcn.0041645c
cmp byte [ebp - 0xb], 0
seta byte [0x41b3b0]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 9]
mov eax, dword [0x41b510]
mov ecx, 1
call fcn.0041645c
cmp byte [ebp - 9], 0
seta byte [0x41b3ac]
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xa]
mov eax, dword [0x41b510]
mov ecx, 1
call fcn.0041645c
cmp byte [ebp - 0xa], 0
seta byte [0x41b3a8]
cmp byte [0x41b3b0], 0
je 0x413a5f
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 0xb]
mov edx, dword [0x41c888]
mov eax, dword [0x41b510]
call fcn.0041645c
xor eax, eax
mov al, byte [ebp - 0xb]
mov edx, dword [0x41c888]
mov byte [edx + eax], 0
cmp byte [0x41b3ac], 0
je 0x413aa1
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 9]
mov edx, dword [0x41c880]
mov eax, dword [0x41b510]
call fcn.0041645c
xor eax, eax
mov al, byte [ebp - 9]
mov edx, dword [0x41c880]
mov byte [edx + eax], 0
cmp byte [0x41b3a8], 0
je 0x413ac5
lea eax, [ebp - 8]
push eax
push 0
xor ecx, ecx
mov cl, byte [ebp - 0xa]
mov edx, dword [0x41c884]
mov eax, dword [0x41b510]
call fcn.0041645c
xor eax, eax
mov al, byte [ebp - 0xa]
mov edx, dword [0x41c884]
mov byte [edx + eax], 0
mov eax, dword [0x41b788]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413b01
lea eax, [ebp - 0x10]
call fcn.00404144
ret
Function at 0x413b14
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, 0x41c890
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 0x41c8b0
mov eax, 0x413b70
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
push esi
call sub.shell32.dll_SHBrowseForFolderA
mov dword [0x41c9b8], eax
cmp dword [0x41c9b8], 0
je 0x413b6a
push ebx
mov eax, dword [0x41c9b8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
push ebx
call sub.kernel32.dll_SetCurrentDirectoryA
pop esi
pop ebx
ret

Function at 0x41645c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx], eax
mov dword [ebp - 8], 0xffffffff
mov dx, 1
xor eax, eax
call fcn.00416948
mov eax, dword [0x41b578]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00416948
mov eax, dword [0x41b550]
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub eax, 0x10
sbb edx, 0
push edx
push eax
mov eax, edi
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
cmp edx, dword [esp + 4]
jne 0x4164cd
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x416550
jmp 0x4164d1
pop edx
pop eax
jle 0x416550
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x416544
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x41b550]
mov eax, dword [eax]
sub eax, 0x10
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile
mov eax, esi
call fcn.0041620c
test al, al
jne 0x41651b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416562
push ebx
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0041645c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add dword [ebx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416562
mov eax, dword [ebp + 8]
push eax
push ebx
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41668f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x41b64c]
mov eax, dword [eax]
xor edx, edx
call fcn.00416948
mov eax, dword [0x41b5d0]
mov dword [eax], 1
mov bl, 1
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x41b510]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 8], 0x15a4c41
je 0x4165e2
push 0x10
push 0x4166a0
push 0x4166ac
mov eax, dword [0x41b72c]
mov eax, dword [eax]
push eax
call sub.user32.dll_MessageBoxA_1
xor ebx, ebx
mov eax, dword [0x41b510]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402d30
mov eax, dword [ebp - 0x10]
call fcn.004045e0
push eax
call sub.kernel32.dll_CreateFileA
mov edx, dword [0x41b510]
mov dword [edx], eax
mov dx, 2
xor eax, eax
call fcn.00416948
mov eax, dword [0x41b578]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [0x41b550]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [0x41b64c]
mov eax, dword [eax]
add eax, 8
xor edx, edx
call fcn.00416948
inc eax
jne 0x416671
push 0x10
push 0x4166a0
push 0x4166ac
mov eax, dword [0x41b72c]
mov eax, dword [eax]
push eax
call sub.user32.dll_MessageBoxA_1
xor ebx, ebx
jmp 0x416679
mov eax, dword [0x41b64c]
add dword [eax], 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416696
lea eax, [ebp - 0x10]
call fcn.00404144
ret
Function at 0x416a1c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov eax, dword [0x41b59c]
cmp byte [eax], 0
je 0x416a3e
mov eax, dword [0x41b75c]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [0x41ddd0], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [0x41b75c]
cmp dword [eax], 0
jg 0x416a57
xor eax, eax
mov dword [0x41ddd0], eax
or eax, 0xffffffff
jmp 0x416b10
movzx eax, word [0x41ddcc]
cmp eax, dword [0x41ddd0]
jb 0x416ad9
push 0x41ddd0
push 0
mov eax, dword [0x41b75c]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.00419850
mov ecx, eax
mov edx, dword [0x41ddc4]
mov eax, dword [0x41b510]
call fcn.0041645c
mov eax, dword [0x41b744]
mov ax, word [eax + 7]
and ax, 1
cmp ax, 1
jne 0x416ad0
mov esi, dword [0x41ddd0]
dec esi
test esi, esi
jl 0x416ad0
inc esi
xor ebx, ebx
call fcn.00418770
mov edx, dword [0x41ddc4]
xor byte [edx + ebx], al
mov eax, dword [0x41ddc4]
mov al, byte [eax + ebx]
call fcn.0041869c
inc ebx
dec esi
jne 0x416ab1
mov word [0x41ddcc], 0
cmp dword [0x41ddd0], 0
jne 0x416af0
mov word [0x41ddcc], 0
or eax, 0xffffffff
jmp 0x416b10
movzx eax, word [0x41ddcc]
mov edx, dword [0x41ddc4]
movzx eax, byte [edx + eax]
inc word [0x41ddcc]
mov edx, dword [0x41b75c]
dec dword [edx]
pop esi
pop ebx
ret
Function at 0x417f78
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 0x417fde
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x417fc8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417fe5
lea eax, [ebp - 0x10]
call fcn.00404144
ret
Function at 0x418390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418592
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040433c
jmp 0x418526
mov edx, dword [ebp - 8]
mov eax, 0x4185a8
call fcn.00404678
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jle 0x4183f0
mov edi, 1
mov eax, dword [ebp - 8]
mov al, byte [eax + edi - 1]
mov edx, dword [ebp - 4]
mov byte [edx + ebx], al
inc ebx
inc edi
dec esi
jne 0x4183de
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4185b4
call fcn.00404678
mov ecx, eax
sub ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00404638
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4185b4
call fcn.00404678
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004043e0
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
call fcn.00404638
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00407420
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.004041dc
mov eax, dword [ebp - 0xc]
mov edx, 0x4185c0
call fcn.0040452c
jne 0x41848b
mov eax, dword [0x41b6c8]
call fcn.0041997c
movzx ecx, ax
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
mov eax, dword [0x41b6c8]
call fcn.00402b8c
mov eax, dword [0x41b6c8]
call fcn.0041997c
movzx eax, ax
add ebx, eax
jmp 0x4184fc
mov eax, dword [ebp - 0xc]
mov edx, 0x4185d0
call fcn.0040452c
jne 0x4184b1
mov eax, pe_nt_image_headers32
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
add ebx, eax
jmp 0x4184fc
mov eax, dword [ebp - 0xc]
mov edx, 0x4185e0
call fcn.0040452c
jne 0x4184d7
mov eax, pe_nt_image_headers32
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.kernel32.dll_GetSystemDirectoryA
add ebx, eax
jmp 0x4184fc
mov eax, dword [ebp - 0xc]
mov edx, 0x4185f0
call fcn.0040452c
jne 0x4184fc
mov eax, dword [ebp - 4]
add eax, ebx
push eax
mov eax, pe_nt_image_headers32
sub eax, ebx
push eax
call sub.kernel32.dll_GetTempPathA
add ebx, eax
dec ebx
cmp dword [ebp - 8], 0
je 0x418526
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004048f4
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
je 0x418526
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x418600
call fcn.0040442c
mov edx, dword [ebp - 8]
mov eax, 0x4185a8
call fcn.00404678
test eax, eax
jne 0x4183c1
mov eax, dword [ebp - 8]
call fcn.004043e0
mov esi, eax
test esi, esi
jle 0x418560
mov edi, 1
mov eax, dword [ebp - 8]
mov al, byte [eax + edi - 1]
mov edx, dword [ebp - 4]
mov byte [edx + ebx], al
inc ebx
inc edi
dec esi
jne 0x41854e
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418599
lea eax, [ebp - 0x18]
call fcn.00404144
lea eax, [ebp - 0x14]
call fcn.00404754
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404168
ret
Function at 0x41869c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x41de00
mov edx, dword [esi]
mov eax, ebx
call fcn.00418680
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00406320
call fcn.00406324
mov edx, dword [esi + 8]
call fcn.00418680
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x418794
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.004045d0
xor eax, eax
push ebp
push 0x41885d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp + 8], 0
je 0x418847
mov eax, dword [ebp + 8]
call fcn.004186e4
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x41880a
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.00418770
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.0041869c
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x4187dc
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x418834
mov eax, dword [ebp + 0x10]
call fcn.00406320
call fcn.00406324
cmp bl, al
jne 0x418847
mov byte [ebp - 2], 1
jmp 0x418847
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x418847
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418864
lea eax, [ebp + 8]
call fcn.00404144
ret