joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10083dc8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x100c3678]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10083e09
cmp byte [edx], 0xa
jne 0x10083e09
or byte [eax + edi + 0x28], 4
jmp 0x10083e0e
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x10083eff
mov al, byte [ebx]
cmp al, 0x1a
je 0x10083ee0
cmp al, 0xd
je 0x10083e37
mov byte [esi], al
inc esi
inc ebx
jmp 0x10083ed5
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x10083e57
cmp byte [eax], 0xa
jne 0x10083e4c
push 2
mov byte [esi], 0xa
pop eax
jmp 0x10083e52
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x10083ed5
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10083ece
cmp dword [ebp - 0x14], 0
je 0x10083ece
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c3678]
test byte [eax + edi + 0x28], 0x48
je 0x10083ea5
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x10083e95
mov byte [esi], dl
jmp 0x10083ed1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c3678]
mov byte [eax + edi + 0x2a], dl
jmp 0x10083ed1
cmp byte [ebp - 1], 0xa
jne 0x10083eb7
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10083eb7
mov byte [esi], 0xa
jmp 0x10083e54
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007bc9c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10083ed2
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x10083e20
jmp 0x10083eff
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c3678]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10083efa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10083eff
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10083f0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x100c3678]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x10083f4e
cmp word [edx], bx
jne 0x10083f4e
or byte [edi + eax + 0x28], 4
jmp 0x10083f53
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x100840a7
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x10084087
cmp ax, word [ebp - 0x10]
je 0x10083f8c
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x1008407c
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x10083fb2
push 0xa
pop ecx
cmp word [eax], cx
jne 0x10083fa2
push ecx
pop eax
push 4
jmp 0x10083fa7
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x10084076
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008406d
cmp dword [ebp - 0x18], 0
je 0x1008406d
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x100c3678]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x10084039
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10083ffd
mov word [esi], ax
jmp 0x10084031
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x100c3678]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x100c3678]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x100c3678]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x1008407c
cmp word [ebp - 4], ax
jne 0x1008404e
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1008404e
mov word [esi], ax
add esi, 2
jmp 0x1008407c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007bc9c
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10084079
jmp 0x10084070
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x10083f6c
jmp 0x100840a7
mov ecx, dword [ecx*4 + 0x100c3678]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1008409e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100840a7
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10087d60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x10087def
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.10063b20
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10087dbf
sub eax, esi
jmp 0x10087dc1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x10087db0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10087de0
sub eax, esi
jmp 0x10087de2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x10087dd1
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x10087ea4
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x10087e1c
xor eax, eax
jmp 0x10087e68
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x10087e39
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.1008ba30
jmp 0x10087e49
cmp eax, 2
jne 0x10087e52
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.10089c80
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.10063b20
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x10087e90
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x10087ea4
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x10087d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10089c80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10089c8c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.10089ca0
Function at 0x403894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40392c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40390c
xor eax, eax
push ebp
push 0x403905
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 0x403964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4c6020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c8050], 0
je 0x404ad1
cmp word [0x4c832c], 0xd7b2
jne 0x404a99
cmp dword [0x4c8334], 0
jbe 0x404a99
mov eax, 0x4c8328
call dword [0x4c8344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404afc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c602c], 0
jne 0x404aed
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c6030], 0
je 0x404c76
mov edx, esi
mov eax, ebx
call dword [0x4c6030]
jmp 0x404c85
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c8051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c18
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40721c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4089dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4cab2c
push 0xa
push 0x408a70
mov eax, dword [0x4cab1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408a00
call fcn.00410430
push ebx
mov eax, dword [0x4cab1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408a17
call fcn.00410430
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408a29
call fcn.00410430
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4cab30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4cab34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4cab38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4cab3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4cab40], ecx
add edx, dword [eax + 0x14]
mov dword [0x4cab44], edx
pop esi
pop ebx
ret

Function at 0x40a090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a139
test eax, edx
je 0x40a13c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a0b9
push edx
mov edx, eax
mov eax, esp
call fcn.00405630
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a0cf
push eax
lea eax, [esp + 8]
call fcn.00405630
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a0de
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a105
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a11f
add ecx, 4
js 0x40a0f6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a11c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404cf0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a103
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a105
xor eax, eax
ret
test eax, eax
je 0x40a14c
test edx, edx
jne 0x40a0a0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e054
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e08d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405598
jmp 0x40e096
mov eax, ebx
mov edx, esi
call fcn.0040545c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e0a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e0c2
movzx eax, word [esp]
jmp 0x40e0c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e828
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e660
mov eax, dword [0x4c7d14]
cmp byte [eax], 0
je 0x40e8ba
mov eax, dword [0x4c7ae8]
call fcn.00403300
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040af3c
push eax
lea eax, [esp + 0x890]
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 0x40e908
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e8f3
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c7a90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cab1c]
call fcn.00406564
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40f4d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f5a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004054b0
lea eax, [ebp - 4]
call fcn.00405d2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054e8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f590
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f589
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 - 4]
call fcn.004054e8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f573
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f5b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f573
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f590
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5ad
lea eax, [ebp - 4]
call fcn.0040544c
ret
Function at 0x4102d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404f8c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x410282
mov eax, edi
add eax, eax
call fcn.00402f9c
mov esi, eax
jmp 0x410284
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4102bd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4102a7
mov eax, esp
cmp esi, eax
je 0x4102ca
mov eax, esi
call fcn.00402fb8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x410304
cmp bl, 0
je 0x410300
cmp bl, 0x41
jl 0x4102fb
cmp bl, 0x5a
jg 0x4102fb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4102df
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410244

Function at 0x41fc08
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f90c
dec esi
jne 0x41fc2a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x420dd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cce60
cmp dword [edi], 0
jne 0x420e50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cce5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c6c54
mov ecx, 2
call fcn.00403154
mov edx, 0x420dac
lea eax, [esi + 5]
call fcn.00420dcc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420dcc
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 0x420e25
mov dword [0x4cce5c], 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 0x423bdc
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.004054e8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x423c34
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c7e3c]
mov dl, 1
mov eax, dword [0x423664]
call fcn.0040ea04
call fcn.004044f4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004237ec
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 0x424b74
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 0x424b7a
ret
Function at 0x431b70
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040545c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x431bb7
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405614
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x436fd0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437109
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4236d8]
call fcn.00423814
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4370df
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004238b4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405614
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x437124
call fcn.004057e8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423918
test al, al
je 0x4370c9
lea ecx, [ebp - 4]
mov edx, 0x437198
mov eax, dword [ebp - 0xc]
call fcn.00423b64
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00410aac
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4370c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4371b0
mov eax, dword [ebp - 8]
push eax
call fcn.004078fc
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4c7694]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4370c9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4370e6
mov eax, dword [ebp - 0xc]
call fcn.00403abc
ret

Function at 0x437214
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43725b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43723e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43724f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43725b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43c930
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
cmp dword [0x4cd124], 0
je 0x43ca71
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4c7cac]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x43ca71
mov eax, dword [0x4cd128]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4cd124]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ca40
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4cd124]
call fcn.00418d70
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ca38
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x43ca38
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43ca38
mov eax, dword [ebp - 0x14]
call fcn.00447a0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ca38
push ebp
call fcn.0043c8ec
pop ecx
test al, al
jne 0x43ca38
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ccc
test al, al
je 0x43ca38
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 si, 0xffbc
call fcn.00403ccc
cmp byte [ebp - 1], 0
je 0x43ca38
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00407604
test al, al
je 0x43ca38
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4cd128]
call fcn.0043c064
inc edi
dec ebx
jne 0x43c995
mov eax, dword [0x4cd128]
cmp dword [eax + 8], 0
jle 0x43ca58
mov eax, dword [0x4cd128]
call fcn.0043c11c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ca71
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c750
pop ecx
test al, al
jne 0x43ca71
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