joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x28c]
call fcn.004083ce
test eax, eax
je 0x40a670
push ebx
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0xc03]
push ebx
push eax
mov byte [ebp - 0xc04], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 4]
add ecx, 0x465
call fcn.0040604e
push eax
lea eax, [ebp - 0x404]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x20
cmp byte [ebp - 0x404], bl
lea eax, [ebp - 0x404]
je 0x40a63c
cmp byte [eax], 0x20
jne 0x40a637
mov byte [eax], 0x2b
inc eax
cmp byte [eax], bl
jne 0x40a62f
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc04]
push str.http:__www.google.com_search_q_s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
push 5
push ebx
push ebx
lea eax, [ebp - 0xc04]
push eax
push ebx
push dword [esi + 0x108]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
mov eax, dword [esi + 0x28c]
call fcn.00407cec
leave
ret

Function at 0x40a67d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x28c]
call fcn.004083ce
test eax, eax
je 0x40a750
push ebx
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0xc03]
push ebx
push eax
mov byte [ebp - 0xc04], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add eax, 0x4d
push eax
lea eax, [ebp - 0x404]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x20
cmp byte [ebp - 0x404], bl
lea eax, [ebp - 0x404]
je 0x40a701
cmp byte [eax], 0x20
jne 0x40a6fc
mov byte [eax], 0x2b
inc eax
cmp byte [eax], bl
jne 0x40a6f4
cmp byte [ebp - 0x404], bl
lea eax, [ebp - 0x404]
je 0x40a71c
cmp byte [eax], 0x26
jne 0x40a717
mov byte [eax], 0x2b
inc eax
cmp byte [eax], bl
jne 0x40a70f
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc04]
push str.http:__www.google.com_search_q_s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
push 5
push ebx
push ebx
lea eax, [ebp - 0xc04]
push eax
push ebx
push dword [esi + 0x108]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
mov eax, dword [esi + 0x28c]
call fcn.00407cec
leave
ret
Function at 0x40be3d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push dword [ebp + 8]
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
test ebx, ebx
mov word [ebp - 0xe], ax
je 0x40be9d
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
mov dword [ebp - 0xc], ebx
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40be81
xor ebx, ebx
inc ebx
jmp 0x40be99
call fcn.0040bf15
mov ebx, eax
test ebx, ebx
jne 0x40be99
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40beab
mov eax, dword [esi]
push 0xffff
mov ecx, esi
call dword [eax + 0x18]
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x40beb1
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
pop edi
jne 0x40beec
push dword [ebp + 8]
mov eax, esi
mov dword [esi + 0x10], 0x50
call fcn.0040bde9
jmp 0x40bf11
push 0x50
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40bf0c
inc eax
jmp 0x40bf11
call fcn.0040bf15
leave
ret 4
Function at 0x40cb82
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040dd70
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40cbd6
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.0040673f
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40cc1b
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x40e4a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.004067b8
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40cc1e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40cc3c
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040cb36
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40cd37
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.msvcrt.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40cd8a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40cdc6
mov eax, dword [ebp - 8]
test eax, eax
jbe 0x40cdc3
mov byte [eax + edi - 1], 0
jmp 0x40cdc6
mov byte [edi], 0
cmp dword [ebp - 0xc], 2
je 0x40cdd2
cmp dword [ebp + 0x10], 0
je 0x40ce02
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
mov dword [ebp - 4], eax
call sub.msvcrt.dll_strcpy
add esp, 0xc
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x40ce4d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_strlen
pop ecx
mov esi, eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
mov edi, 0x40e4a0
push edi
push dword [ebp + 8]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ce85
mov dword [ebp - 4], ebx
push 0x25
push dword [ebp + 0xc]
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40ce9c
mov dword [ebp - 4], 2
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d32c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edi
xor ebx, ebx
call fcn.0040d0ef
test eax, eax
jne 0x40d348
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
call fcn.0040d0ef
test eax, eax
je 0x40d3ac
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x40d36c
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xc]
push edi
call fcn.0040d238
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040cfe1
test eax, eax
je 0x40d3a1
push dword [edi + 8]
or eax, 0xffffffff
mov ebx, str._Default_
call fcn.0040d146
push dword [edi + 8]
call fcn.0040d18e
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x40d3e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], str.properties
mov dword [ebp - 0x28], 0x40e4a0
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x40d815
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x40d9e1
lea eax, [esi + 0x18]
mov dword [ebp - 0x44], eax
mov byte [eax], bl
lea eax, [esi + 0x118]
mov dword [ebp - 0x2c], eax
mov byte [eax], bl
lea eax, [esi + 0x218]
mov dword [ebp - 0x1c], eax
mov byte [eax], bl
lea eax, [esi + 0x318]
mov dword [ebp - 0x34], eax
mov byte [eax], bl
lea eax, [esi + 0x418]
mov dword [ebp - 0x20], eax
mov byte [eax], bl
lea eax, [esi + 0x518]
mov dword [ebp - 0x28], eax
mov byte [eax], bl
lea eax, [esi + 0x618]
push edi
push dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [eax], bl
lea eax, [esi + 0x718]
mov dword [ebp - 0x38], eax
mov byte [eax], bl
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x40f4ec
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d8e9
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d936
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._4.4X_4.4X
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
push 0x40e4a0
lea eax, [ebp - 0x18]
push eax
push edi
lea esi, [ebp - 0x144]
call fcn.0040d784
test eax, eax
jne 0x40d946
lea eax, [ebp - 0x18]
push str.040904E4
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
push 0x40fe54
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x2c]
push 0x40fe60
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x1c]
push 0x40fe70
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x34]
push 0x40fe7c
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x20]
push 0x40fe8c
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x28]
push 0x40fe98
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x30]
push 0x40fea8
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
mov esi, dword [ebp - 0x38]
push str.OriginalFileName
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d784
xor ebx, ebx
push edi
inc ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40dac4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40e420
call fcn.0040dcb4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40db01
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40db01
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40db19
cmp eax, 0x20b
je 0x40db06
mov dword [ebp - 0x1c], ebx
jmp 0x40db2d
cmp dword [ecx + 0x84], 0xe
jbe 0x40db01
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40db27
cmp dword [ecx + 0x74], 0xe
jbe 0x40db01
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x413084], 0xffffffff
or dword [0x413088], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4123bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4123b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x413080], eax
call fcn.0040dcae
cmp dword [section..data], ebx
jne 0x40db88
push fcn.0040dcae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040dc9c
push 0x40e3fc
push 0x40e3f8
call sub.msvcrt.dll__initterm
mov eax, dword [0x4123b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4123b0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40e3f4
push 0x40e3c8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40dc1e
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40dbf2
cmp al, 0x22
jne 0x40dbe4
cmp byte [esi], 0x22
jne 0x40dbfb
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40dc05
cmp al, 0x20
jbe 0x40dbf7
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x40dc29
movzx eax, word [ebp - 0x48]
jmp 0x40dc2c
cmp byte [esi], 0x20
jbe 0x40dbfb
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40dc1e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40dc49
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40dc7e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040dced
ret
Function at 0x403810
Capabilities:
Query or enumerate registry value

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

Function at 0x4046bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x40471d
cmp word [0x46021c], 0xd7b2
jne 0x4046e5
cmp dword [0x460224], 0
jbe 0x4046e5
mov eax, 0x460218
call dword [0x460234]
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 0x404744
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e02c], 0
jne 0x404739
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404874
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x45e030], 0
je 0x40489a
mov edx, esi
mov eax, ebx
call dword [0x45e030]
jmp 0x4048a9
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x460049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40483c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405c64
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 0x405e94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ce7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ce7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d70
xor eax, eax
push ebp
push 0x405d69
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405aa0
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 0x405d4e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ed0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d4e
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 0x405d70
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 0x405e8a
cmp byte [ebp - 0xd], 0
jne 0x405db7
cmp byte [ebp - 0x12], 0
je 0x405e8a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dd0
dec ebx
cmp byte [ebx], 0x2e
je 0x405ddf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dcf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e8a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e1c
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 0x405e8a
cmp byte [ebp - 0xd], 0
je 0x405e8a
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 0x405e8a
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
Function at 0x4083d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408426
test eax, edx
je 0x408429
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4083e9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40840f
add ecx, 4
js 0x4083ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40840c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408435
test edx, edx
jne 0x4083dc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bb78
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 0x40bbb1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049e0
jmp 0x40bbba
mov eax, ebx
mov edx, esi
call fcn.00404944
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbc4
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 0x40bbe6
movzx eax, byte [esp]
jmp 0x40bbe8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c278
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0f0
mov eax, dword [0x45fb98]
cmp byte [eax], 0
je 0x40c2f4
mov eax, dword [0x45f9a0]
call fcn.004031d8
call fcn.00402fbc
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.00408f18
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 0x40c33c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c32a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45f948]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4627f4]
call fcn.00405a48
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