joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4557a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004558f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4557c0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4557a1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004558f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4557c0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4557f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x455847
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45585d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00455880
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x455880
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x455910
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x455959
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x455dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00455980
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00455a00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00455a00
lea ecx, [esi + 0xc]
call fcn.0046a1ce
lea ecx, [esi + 0x10]
call fcn.0046a1ce
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00458230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00458230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00458230
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046a243
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046a243
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x456a78
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479028
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x456a88
call fcn.00456fa0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x456b6b
cmp byte [edi], 0
je 0x456b6b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x456aad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004557a0
test eax, eax
jne 0x456acd
push 0x7388c8
lea ecx, [esi + 0x38]
call fcn.0046a380
jmp 0x456b6b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004557f0
test eax, eax
jne 0x456afc
mov ecx, esi
call fcn.004558f0
push edi
add esi, 0x38
push 0x7388a4
push esi
call fcn.00468047
add esp, 0xc
jmp 0x456b6b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00457820
test eax, eax
je 0x456b64
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00456c40
test eax, eax
jne 0x456b80
push edi
lea eax, [esi + 0x38]
push 0x738880
push eax
call fcn.00468047
add esp, 0xc
mov ecx, esi
call fcn.00456fa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x456c28
mov ecx, dword [0x738b38]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00468047
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004558a0
test eax, eax
jne 0x456bea
push 0x738864
lea ecx, [esi + 0x38]
call fcn.0046a380
jmp 0x456bfa
push 0xfa
mov ecx, esi
call fcn.00457820
test eax, eax
jne 0x456c17
mov ecx, esi
call fcn.00456fa0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046a243
jmp 0x456b6b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046a243
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46c5e7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c61f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a69e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a676
jmp 0x46c62b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46dcdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46dd1e
call fcn.00473899
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46dd1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46dd15
xor eax, eax
jmp 0x46dd26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046dd2c
pop edi
pop esi
pop ebx
ret 4

Function at 0x473dc9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473df7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473e15
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473d2f
jmp 0x473e15
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473e15
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00473d2f
test edi, edi
mov eax, edi
jne 0x473dff
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x54846e
Capabilities:
Encode data using xor

Disassembly:
call fcn.00549414
call fcn.00542c4a
stosd dword es:[edi], eax
xor al, byte [ecx + 0x37]
daa
ror byte [edx + edi*2], 1
cmp al, 0xd5
invalid
Function at 0x1003a28
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov ecx, dword [esi + 0x4c]
mov eax, dword [0x103a024]
cmp ecx, eax
ja 0x1019448
mov ecx, dword [esi + 4]
mov eax, dword [0x103a028]
cmp ecx, eax
ja 0x101945b
mov ecx, dword [esi + 0x84]
mov eax, dword [0x103a020]
cmp ecx, eax
jbe 0x1003a9a
jmp 0x101946e
xor esi, esi
jmp 0x1003aa6
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, pe_nt_image_headers32
push edi
push eax
mov esi, eax
call fcn.0100150d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1003ac3
xor edi, edi
inc edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1003ab8
push ebx
call fcn.010014d6
mov eax, dword [ebp - 4]
mov ecx, eax
shr ecx, 4
lea esi, [ecx + eax + 0x8000]
push esi
call fcn.0100150d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1003ac3
test edi, edi
jne 0x1003a48
inc edi
mov esi, ebx
test ebx, ebx
je 0x1003aaa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi + 0x44], eax
je 0x10039b0
mov eax, dword [esi]
test eax, eax
je 0x1003a1c
add esi, eax
test esi, esi
jne 0x1003a8b
push ebx
call fcn.010014d6
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
xor edi, edi
test eax, eax
jge 0x1003a80
jmp 0x1019481
xor eax, eax
jmp 0x1003ab3
push eax
push ecx
push 0x10194cc
call fcn.01020e74
xor edi, edi
jmp 0x10039c0
push eax
push ecx
push 0x10194b4
call fcn.01020e74
xor edi, edi
jmp 0x10039d0
push eax
push ecx
push 0x1019490
call fcn.01020e74
xor edi, edi
jmp 0x1003a9a
push ebx
call fcn.010014d6
pop ecx
jmp 0x1003ac3
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f80
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404070
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030b8
Capabilities:
Query or enumerate registry value

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

Function at 0x403e04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45404c], 0
je 0x403e65
cmp word [0x454220], 0xd7b2
jne 0x403e2d
cmp dword [0x454228], 0
jbe 0x403e2d
mov eax, 0x45421c
call dword [0x454238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
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 0x403e8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403e81
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d5c
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 0x405dc2
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.004041f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dc9
lea eax, [ebp - 0x10]
call fcn.00403f80
ret

Function at 0x40aeb4
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 0x40aeed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404070
jmp 0x40aef6
mov eax, ebx
mov edx, esi
call fcn.00403fd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b5a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b420
mov eax, dword [0x4530a0]
cmp byte [eax], 0
je 0x40b624
mov eax, dword [0x452ea8]
call fcn.00402ae8
call fcn.00402834
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.00408670
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 0x40b66c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b65a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452e54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454668]
call fcn.00405270
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 0x40bf08
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 0x40bfde
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404018
lea eax, [ebp - 8]
call fcn.00404490
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404440
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfc8
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfc1
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.00404440
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bff0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfab
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 0x40bfc8
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfe5
lea eax, [ebp - 8]
call fcn.00403f80
ret

Function at 0x40c45c
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 0x40c4c0
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.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040811c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4c7
lea eax, [ebp - 0xc]
call fcn.00403f80
ret

Function at 0x41d6e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454888
cmp dword [edi], 0
jne 0x41d760
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523fc
mov ecx, 2
call fcn.004028c8
mov edx, 0x41d6bc
lea eax, [esi + 5]
call fcn.0041d6dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d6dc
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 0x41d735
mov dword [0x454884], 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 0x41e974
Capabilities:
Encode data using xor

Disassembly:
add byte [esp + esi*2 + 0x1a740041], cl
inc edx
add byte [ebp + eax*2 + 0x42], dl
add byte [eax], dh
sbb eax, dword [edx]
xchg esp, eax
inc ebp
inc edx
add al, al
inc ebp
inc edx
add byte [eax + 0x1c], bh
inc edx
add byte [esp + ebx + 0x42], bh
add ah, dl
inc ebp
inc edx
add ah, bh
sbb al, 0x42
add byte [eax + 0x48], bl
inc edx
add byte [eax + 0x1d], ah
inc edx
add byte [eax + 0x48], dh
inc edx
add byte [eax + ecx*2 + 0x42], dh
add byte [ebp + ebx + 0x42], dh
add byte [eax + 0x44], dh
inc edx
add byte [eax + 0x800421c], al
sbb eax, 0x47140042
inc edx
add byte [eax + ecx*2 + 0x48b40042], cl
inc edx
add al, cl
dec eax
inc edx
add byte [0x6f634954], al
outsb dx, byte [esi]
mov eax, eax
in al, 0xe8
inc ecx
add byte [edi], al
add eax, 0x6f634954
outsb dx, byte [esi]
je 0x41e8d5
inc ecx
add byte [eax], al
out 0x41, al
add byte [eax], al
add byte [eax], cl
inc edi
jb 0x41e95a
jo 0x41e963
imul esp, dword [ebx + 0x73], 0xc0850000
add byte [ebp + 0x3b0e74c0], al
add eax, 0x454890
je 0x41e912
cmp eax, dword [0x454890]
je 0x41e912
push eax
call sub.gdi32.dll_DeleteObject
ret
inc eax
add ah, al
jmp 0x5451e9a3
jae 0x41e9d5
jne 0x41e9da
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x41e8ff
inc eax
add byte [ecx + 0x31c289d1], cl
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e97a
ret
ja 0x41e9d5
inc dword [ebx + ebx*8 - 0x3974f882]
jle 0x41e9e3
mov eax, esi
call fcn.004035a4
pop esi
pop ebx
ret

Function at 0x420dbc
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 0x420e0d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420df4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420de4
jmp 0x420e0d
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 0x420df5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404440
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x428f84
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4531bc]
mov dl, 1
mov eax, dword [0x428ae4]
call fcn.0040b768
call fcn.004039bc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00428bec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42a86c
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 0x42a7b8
call sub.user32.dll_EnumWindows
ret

Function at 0x42a98c
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 0x42aa09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042a3ec
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 0x42a9b1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429fec
cmp dword [ebp - 4], 0
je 0x42a9f3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404440
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 0x42aa10
lea eax, [ebp - 4]
call fcn.00403f80
ret
Function at 0x42d6ac
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 [0x454b58], 0
je 0x42d7fb
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x453038]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42d7fb
mov eax, dword [0x454b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x454b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42d7ca
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x454b58]
call fcn.00416cb4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42d7c2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42d7c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42d7c2
mov eax, dword [ebp - 0x14]
call fcn.00436210
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42d7c2
push ebp
call fcn.0042d668
pop ecx
test al, al
jne 0x42d7c2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d77e
mov eax, dword [ebp - 0x14]
call fcn.00434d40
dec eax
jle 0x42d7c2
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.00403444
cmp byte [ebp - 1], 0
je 0x42d7c2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42d7c2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x454b5c]
call fcn.0042ce34
inc edi
dec ebx
jne 0x42d711
mov eax, dword [0x454b5c]
cmp dword [eax + 8], 0
jle 0x42d7e2
mov eax, dword [0x454b5c]
call fcn.0042cec4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42d7fb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042d4d0
pop ecx
test al, al
jne 0x42d7fb
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