joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f5e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
call fcn.004066d8
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x4c]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x5f5f5f
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x76c700]
mov edx, 8
call fcn.005f1ff0
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x76c700]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x76c700]
mov edx, 0x10
call fcn.005f1ff0
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x76c700]
mov edx, 0x18
call fcn.005f1ff0
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x5f5ee2
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x601db8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x601e12
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x10]
and eax, 0xff
mov eax, dword [eax*4 + 0x76d7fc]
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x601de0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x601fc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x602021
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0xc]
call fcn.00601f14
xor al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
call fcn.00601e7c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x601fe6
mov esp, ebp
pop ebp
ret
Function at 0x69a094
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x69a0ac
add esp, 0xfffffff0
call fcn.004086b4
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x69a1c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406464
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x69a1b0
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00505a38
xor eax, eax
push ebp
push 0x69a19d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00505a38
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040adac
jmp 0x69a16e
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040b0d8
mov eax, dword [ebx + 4]
call fcn.0040a334
dec eax
jle 0x69a182
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x69a15c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69a1a4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69a1cd
lea eax, [ebp - 4]
call fcn.00409e84
ret

Function at 0x6bee98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x6bef37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00409e84
mov eax, 0x104
call fcn.00427a90
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x6beef3
mov eax, esi
mov edx, ebx
call fcn.0040aaa8
mov eax, ebx
call fcn.00427ad0
lea eax, [ebp - 4]
call fcn.0040da68
push eax
call sub.shell32.dll_SHGetMalloc
test eax, 0x80000000
sete al
test al, al
je 0x6bef21
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bef3e
lea eax, [ebp - 4]
call fcn.0040da68
ret
Function at 0x6c39a8
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x6c3a4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409e3c
mov eax, ebx
mov edx, 0x104
call fcn.0040ae48
mov eax, dword [ebx]
mov edx, 0x208
call fcn.004ec798
push 0
push 0x26
mov eax, dword [ebx]
call fcn.0040acb4
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x6c3a1a
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.00425440
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0042db44
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, 0x6c3a68
call fcn.0040af20
cmp dword [ebx], 0
jne 0x6c3a33
mov ecx, 0x17c
mov edx, 0x6c3a98
mov eax, 0x6c3b38
call fcn.00409c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c3a55
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409e9c
ret

Function at 0x6ca418
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409f30
xor eax, eax
push ebp
push 0x6ca598
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040a8ec
push eax
call fcn.005205f0
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and dl, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.0040a514
lea eax, [ebp - 0x174]
mov edx, 0xff00
and edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.0040a53c
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040a638
mov eax, dword [ebp - 8]
mov edx, 0x6ca5b4
call fcn.0040a86c
jne 0x6ca4e3
mov bl, 1
jmp 0x6ca56d
mov eax, dword [ebp - 8]
mov edx, 0x6ca5c4
call fcn.0040a86c
jne 0x6ca4f6
mov bl, 2
jmp 0x6ca56d
mov eax, dword [ebp - 8]
mov edx, 0x6ca5d4
call fcn.0040a86c
jne 0x6ca515
mov eax, ebx
call fcn.00414664
test ax, ax
jne 0x6ca515
mov bl, 3
jmp 0x6ca56d
mov eax, dword [ebp - 8]
mov edx, 0x6ca5d4
call fcn.0040a86c
jne 0x6ca534
mov eax, ebx
call fcn.00414664
test ax, ax
jbe 0x6ca534
mov bl, 4
jmp 0x6ca56d
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 4]
call fcn.0040ad8c
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.004271b4
mov eax, dword [ebp - 0x178]
mov edx, 0x6ca5e4
call fcn.005bb01c
test al, al
je 0x6ca56b
mov bl, 1
jmp 0x6ca56d
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca59f
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.00409e9c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409ecc
ret
Function at 0x6efcd8
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x771654]
cmp eax, 0x1c
jne 0x6efd53
cmp dword [ebp - 0xc], 0x1000
jne 0x6efd4e
cmp dword [ebp - 0x18], 0
je 0x6efd4e
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x6efd4e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x6efd2d
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x6efd53
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x771628]
cmp eax, 0
je 0x6efd4e
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x77169c]
add ebx, dword [ebp - 0x10]
jmp 0x6efcef
popfd
popal
add esp, 0x20
pop ebp
ret 0xc

Function at 0x6f9bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x6f9c5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x209
call fcn.0040ae48
mov eax, dword [ebp - 4]
call fcn.0040acb4
push eax
push 0x208
call sub.kernel32.dll_GetTempPathW_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040ae48
push ebx
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042db44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, 0x6f9c78
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x6f9c90
call int.00427c4c
mov eax, dword [ebx]
mov dl, 1
call fcn.00426a20
test al, al
jne 0x6f9c41
mov eax, dword [ebx]
call fcn.00426af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f9c66
lea eax, [ebp - 0x18]
call fcn.00409e3c
lea eax, [ebp - 4]
call fcn.00409e3c
ret
Function at 0x700f4c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
xor ebx, ebx
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x701051
call fcn.006f7510
mov edx, dword [0x772888]
cmp al, 0x1f
ja 0x700f85
and eax, 0x7f
bt dword [edx], eax
setb al
xor al, 1
and al, byte [ebp - 1]
je 0x70104f
mov byte [0x77ad14], 0
xor eax, eax
push ebp
push 0x701035
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x6fec04]
call fcn.00639d40
mov dword [0x77ad18], eax
xor eax, eax
push ebp
push 0x701024
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x701068
mov eax, dword [0x77ad18]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x77ad18]
mov dword [eax + 0x9c], edi
mov eax, dword [0x77ad18]
mov edx, dword [0x77ad10]
mov dword [eax + 0xdc], edx
mov dword [eax + 0xd8], 0x700b18
xor ecx, ecx
xor edx, edx
mov eax, dword [0x77ad18]
call fcn.00700aac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70102b
mov eax, dword [0x77ad18]
call fcn.00408084
ret
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402b4c
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 0x402be4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bc4
xor eax, eax
push ebp
push 0x402bbd
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 0x402c00
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 0x402bc4
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 0x405194
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 0x405350
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4051f5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40536c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405267
xor eax, eax
push ebp
push 0x405260
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.00404fec
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405249
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40538c
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 0x405267
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 0x405348
cmp byte [ebp - 0xd], 0
jne 0x4052a9
cmp byte [ebp - 0x12], 0
je 0x405348
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4052c2
dec ebx
cmp byte [ebx], 0x2e
je 0x4052d1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4052c1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405348
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052fe
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 0x405348
cmp byte [ebp - 0xd], 0
je 0x405348
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 0x405348
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 0x4089f8
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 0x408a31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a48
jmp 0x408a3a
mov eax, ebx
mov edx, esi
call fcn.004039b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408a44
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 0x408a65
mov al, byte [esp]
jmp 0x408a67
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414af0
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 0x414af6
ret

Function at 0x416e98
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 0x416ee9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416ed0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416ec0
jmp 0x416ee9
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 0x416ed1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420238
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 [0x44d784], 0
sete dl
or al, dl
jne 0x420378
mov eax, dword [0x44d788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x44d784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x420347
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x44d784]
call fcn.0040dbc8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42033f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42033f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42033f
mov eax, dword [ebp - 0x14]
call fcn.00428570
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42033f
push ebp
call fcn.004201f4
pop ecx
test al, al
jne 0x42033f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4202fb
mov eax, dword [ebp - 0x14]
call fcn.00426ec4
dec eax
jle 0x42033f
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.00402eb4
cmp byte [ebp - 1], 0
je 0x42033f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42033f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44d788]
call fcn.0041fa40
inc edi
dec esi
jne 0x42028e
mov eax, dword [0x44d788]
cmp dword [eax + 8], 0
jle 0x42035f
mov eax, dword [0x44d788]
call fcn.0041fad0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420378
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042005c
pop ecx
test al, al
jne 0x420378
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
Function at 0x425ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x425f01
je 0x425f5b
sub eax, 7
je 0x425f22
dec eax
je 0x425f4c
sub eax, 0x17
je 0x426000
jmp 0x42603e
add eax, 0xffffff00
sub eax, 9
jb 0x425fec
add eax, 0xffffff09
sub eax, 0xb
jb 0x425fb4
jmp 0x42603e
mov eax, ebx
call fcn.00437aec
mov edi, eax
test edi, edi
je 0x42609e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4260a7
jmp 0x42609e
test byte [ebx + 0x44], 0x20
jne 0x4260a7
jmp 0x42609e
mov edx, esi
mov eax, ebx
call fcn.004234d0
cmp dword [esi + 0xc], 0xffffffff
jne 0x4260a7
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406c78
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00422014
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00425da8
test eax, eax
je 0x4260a7
mov dword [esi + 0xc], 1
jmp 0x4260a7
mov edx, esi
mov eax, ebx
call fcn.00425e3c
test al, al
je 0x42609e
cmp dword [esi + 0xc], 0
jne 0x4260a7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00428570
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4260a7
mov eax, ebx
call fcn.00422b6c
test al, al
jne 0x4260a7
jmp 0x42609e
mov eax, ebx
call fcn.00428570
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42609e
cmp dword [0x44c6ac], 0
je 0x42609e
mov eax, dword [0x44c6ac]
cmp ebx, dword [eax + 0x24]
jne 0x42609e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x44c6ac]
call fcn.00423404
jmp 0x42609e
mov eax, dword [0x44d74c]
cmp byte [eax + 0x20], 0
je 0x42609e
mov eax, dword [0x44d74c]
cmp dword [eax + 0x1c], 0
je 0x42609e
mov eax, dword [esi]
mov edx, dword [0x44d74c]
cmp eax, dword [edx + 0x1c]
jne 0x42609e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00437a30
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402eb4
jmp 0x4260a7
mov edx, esi
mov eax, ebx
call fcn.004234d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426568
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x426584
cmp dword [esi + 4], 0
je 0x4265b1
test byte [ebx + 0x45], 1
jne 0x4265a3
mov eax, ebx
call fcn.004254a0
test eax, eax
jne 0x4265a3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4266c1
mov edx, esi
mov eax, ebx
call fcn.004261e0
jmp 0x4266c1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4266ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00428570
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00423404
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00426568
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00428570
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4266c1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fd50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403960
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42fd9f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403b90
pop ebx
mov esp, ebp
pop ebp
ret