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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00416770
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.004199f0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.004170f0
lea ecx, [ebp - 0x438]
call fcn.004199f0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.004167d0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416e7e
call fcn.004167e0
mov dword [ebp - 0x444], eax
jmp 0x416fd3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x416eaf
call fcn.004167e0
mov dword [ebp - 0x444], eax
jmp 0x416fd3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x416edf
call fcn.004167e0
mov dword [ebp - 0x444], eax
jmp 0x416fd3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x416f2f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00419a40
lea ecx, [ebp - 0x2c]
call fcn.00419710
mov eax, dword [ebp - 0x44c]
jmp 0x417008
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00419a10
lea ecx, [ebp - 0x438]
call fcn.004186a0
test eax, eax
jne 0x416f5c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x416fd3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004186a0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00416770
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x416f9e
call fcn.004167e0
mov dword [ebp - 0x444], eax
jmp 0x416fd3
lea ecx, [ebp - 0x438]
call fcn.004186a0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.004186a0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417120
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x416fe3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00419a40
lea ecx, [ebp - 0x2c]
call fcn.00419710
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4187e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00410c00
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00410ca0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41884b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00410c30
mov eax, dword [ebp - 0x224]
jmp 0x4188dc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4188b1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004187e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4188a8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00410c30
mov eax, dword [ebp - 0x228]
jmp 0x4188dc
mov dword [ebp - 4], 0x100
jmp 0x418852
lea ecx, [ebp - 0x14]
call fcn.00410c50
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00418710
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00410c30
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret 4
Function at 0x418de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x418de9
xor ecx, ecx
jne 0x418de9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x418e0a
mov eax, 0xd
jmp 0x418e65
xor eax, eax
jne 0x418df1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x418e1b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x41afa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41b026
push 0xff
lea ecx, [ebp - 0x298]
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x41b021
lea edx, [ebp - 0x298]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x41b021
mov eax, dword [ebp - 0x29c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00420fb0
add esp, 8
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret
Function at 0x41b040
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041f680
add esp, 4
add eax, 1
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
je 0x41b0aa
mov edx, dword [ebp - 0x1a4]
push edx
push 0x438658
call fcn.00421cd4
add esp, 8
xor eax, eax
jmp 0x41b23c
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41b0dd
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x43869c
call fcn.00421cd4
add esp, 8
call sub.WS2_32.dll_WSACleanup
xor eax, eax
jmp 0x41b23c
mov eax, 2
mov word [ebp - 0x1c4], ax
movzx ecx, word [ebp + 0x10]
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x1c2], ax
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1a0], 1
push 4
lea eax, [ebp - 0x1a0]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call sub.WS2_32.dll_setsockopt
mov edx, 2
mov word [ebp - 0x1b4], dx
push 0x1770
call sub.WS2_32.dll_htons
mov word [ebp - 0x1b2], ax
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x1b0], eax
push 0x10
lea ecx, [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.WS2_32.dll_bind
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
jne 0x41b199
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
jmp 0x41b23c
push 0x10
lea ecx, [ebp - 0x1c4]
push ecx
push 0
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WS2_32.dll_sendto
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
jne 0x41b1e4
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x1cc], eax
mov edx, dword [ebp - 4]
push edx
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
jmp 0x41b23c
push str.Finished_sending._Closing_socket._n
call fcn.00421cd4
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.dll_closesocket
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
jne 0x41b225
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x438728
call fcn.00421cd4
add esp, 8
call sub.WS2_32.dll_WSACleanup
xor eax, eax
jmp 0x41b23c
push str.Exiting._n
call fcn.00421cd4
add esp, 4
call sub.WS2_32.dll_WSACleanup
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret
Function at 0x41e967
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x44497c], 0
push esi
jne 0x41e8da
call fcn.0041e800
test eax, eax
je 0x41e91d
mov eax, dword [0x44497c]
cmp eax, 1
jne 0x41e8fb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41e91d
pop esi
ret
push eax
call dword [0x444984]
test eax, eax
jne 0x41e965
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41e921
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44497c]
call dword [0x444984]
mov edi, eax
test edi, edi
je 0x41e946
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41e962
mov edi, esi
add esi, 0xff0
push edi
push dword [0x44497c]
call dword [0x444980]
add edi, 0x10
cmp edi, esi
jb 0x41e94e
mov eax, edi
pop edi
pop esi
ret
jmp 0x41e8c7

Function at 0x4305d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00423d67
and dword [ebp - 4], 0
cmp dword [0x4455c0], 0
mov ebx, eax
jne 0x430681
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x430732
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x430732
push eax
call fcn.00423cf5
mov dword [esp], 0x43dbb8
push edi
mov dword [0x4455c0], eax
call esi
push eax
call fcn.00423cf5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4455c4], eax
call esi
push eax
call fcn.00423cf5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4455c8], eax
call esi
push eax
call fcn.00423cf5
pop ecx
mov dword [0x4455d0], eax
test eax, eax
je 0x430681
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423cf5
pop ecx
mov dword [0x4455cc], eax
mov eax, dword [0x4455cc]
cmp eax, ebx
je 0x4306d9
cmp dword [0x4455d0], ebx
je 0x4306d9
push eax
call fcn.00423d70
push dword [0x4455d0]
mov esi, eax
call fcn.00423d70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4306d9
test edi, edi
je 0x4306d9
call esi
test eax, eax
je 0x4306d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4306d0
test byte [ebp - 0xc], 1
jne 0x4306d9
or dword [ebp + 0x10], 0x200000
jmp 0x430712
mov eax, dword [0x4455c4]
cmp eax, ebx
je 0x430712
push eax
call fcn.00423d70
pop ecx
test eax, eax
je 0x430712
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x430712
mov eax, dword [0x4455c8]
cmp eax, ebx
je 0x430712
push eax
call fcn.00423d70
pop ecx
test eax, eax
je 0x430712
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4455c0]
call fcn.00423d70
pop ecx
test eax, eax
je 0x430732
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x430734
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402aec
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d38
xor eax, eax
push ebp
push 0x402d31
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 0x402d74
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 0x402d38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405ed4
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 0xf003f
push 0
push 0x406090
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f35
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4060ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fa7
xor eax, eax
push ebp
push 0x405fa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405d2c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f89
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406088
cmp byte [ebp - 0xd], 0
jne 0x405fe9
cmp byte [ebp - 0x12], 0
je 0x406088
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406002
dec ebx
cmp byte [ebx], 0x2e
je 0x406011
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406001
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406088
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40603e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406088
cmp byte [ebp - 0xd], 0
je 0x406088
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406088
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f0c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b0c
cmp dword [0x4bd134], 1
jne 0x409f57
cmp dword [0x4bd138], 4
jle 0x409f96
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40a13b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00403c70
jmp 0x40a13b
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004028b4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x40a13b
cmp byte [ebp - 0x15], 0x5a
ja 0x40a13b
mov eax, dword [ebp - 4]
call fcn.00403d38
cmp eax, 3
jl 0x40a13b
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40a13b
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40a13b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40a13b
xor edx, edx
push ebp
push 0x40a134
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.0040271c
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x40a116
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x40a065
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040274c
jmp 0x40a029
test eax, eax
je 0x40a078
call fcn.00403628
call fcn.00403628
jmp 0x40a13b
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x40a029
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40a0f4
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004028b4
cmp al, byte [ebp - 0x15]
jne 0x40a0f4
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d38
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403f40
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00403c70
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00403d84
call fcn.00403628
call fcn.00403628
jmp 0x40a13b
inc edi
dec esi
jne 0x40a083
jmp 0x40a029
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a160
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403adc
ret

Function at 0x40a264
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ba0
add esp, 0x104
pop ebx
ret
Function at 0x40bbf4
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 0x40bc2d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ba0
jmp 0x40bc36
mov eax, ebx
mov edx, esi
call fcn.00403b0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4176ac
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 0x4176b2
ret

Function at 0x41a034
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 0x41a085
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a06c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a05c
jmp 0x41a085
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 0x41a06d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ad20
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4bf788], 0
sete dl
or al, dl
jne 0x42ae60
mov eax, dword [0x4bf78c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4bf788]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42ae2f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4bf788]
call fcn.00410da4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ae27
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42ae27
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42ae27
mov eax, dword [ebp - 0x14]
call fcn.00433090
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ae27
push ebp
call fcn.0042acdc
pop ecx
test al, al
jne 0x42ae27
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42ade3
mov eax, dword [ebp - 0x14]
call fcn.00431a1c
dec eax
jle 0x42ae27
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403024
cmp byte [ebp - 1], 0
je 0x42ae27
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ae27
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4bf78c]
call fcn.0042a528
inc edi
dec esi
jne 0x42ad76
mov eax, dword [0x4bf78c]
cmp dword [eax + 8], 0
jle 0x42ae47
mov eax, dword [0x4bf78c]
call fcn.0042a5b8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ae60
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ab44
pop ecx
test al, al
jne 0x42ae60
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