joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105ef450
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105ef63d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x362000]
push edi
or ebp, 0xffffffff
jmp 0x105ef47a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105ef481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105ef470
mov eax, 1
add ebx, ebx
jne 0x105ef493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105ef4a4
jne 0x105ef4c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105ef4c3
dec eax
add ebx, ebx
jne 0x105ef4b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105ef488
add ebx, ebx
jne 0x105ef4bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105ef515
xor ecx, ecx
sub eax, 3
jb 0x105ef4db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105ef54a
sar eax, 1
mov ebp, eax
jmp 0x105ef4e6
add ebx, ebx
jne 0x105ef4e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105ef4b4
inc ecx
add ebx, ebx
jne 0x105ef4f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105ef4b4
add ebx, ebx
jne 0x105ef501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105ef4f6
jne 0x105ef512
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105ef4f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105ef534
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105ef526
jmp 0x105ef476
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105ef534
add edi, ecx
jmp 0x105ef476
pop esi
mov edi, esi
mov ecx, 0x6d0d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105ef552
cmp byte [edi], 0x22
jne 0x105ef552
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x105ef557
lea edi, [esi + 0x5e4000]
mov eax, dword [edi]
or eax, eax
je 0x105ef5cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5fc0f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5fc224]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105ef584
mov ecx, edi
jns 0x105ef5b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5fc228]
or eax, eax
je 0x105ef5c9
mov dword [ebx], eax
add ebx, 4
jmp 0x105ef5a1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105ef600
cmp al, 0xef
ja 0x105ef5f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105ef5d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105ef5e2
mov ebp, dword [esi + 0x5fc22c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x105ef634
sub esp, 0xffffff80
jmp 0x1010c6c2
Function at 0x40892d
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
call fcn.00408951
dec eax
xor dword [ebx], edi
inc ebx
sub ecx, eax
cmp ebx, edx
jne fcn.0040892d
and ecx, ecx
push 0xe16061f9
pop eax
ret
Function at 0x4033bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405bc4
test esi, esi
jne 0x4033f4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405d00
jmp 0x403412
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a0
mov edi, eax
test esi, esi
je 0x403412
cmp dword [ebx], 0
je 0x403412
dec esi
jmp 0x4033fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f4020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bb8
xor eax, eax
push ebp
push 0x403bb1
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 0x403c10
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 0x403bb8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4f4020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f4020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ccc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x503054], 0
je 0x404d2d
cmp word [0x503330], 0xd7b2
jne 0x404cf5
cmp dword [0x503338], 0
jbe 0x404cf5
mov eax, 0x50332c
call dword [0x503348]
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 0x404d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f402c], 0
jne 0x404d49
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ef8
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 [0x4f4030], 0
je 0x404f1e
mov edx, esi
mov eax, ebx
call dword [0x4f4030]
jmp 0x404f2d
mov eax, 8
call fcn.00402fe8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x503055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ec0
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 0x408404
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 0x40a008
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x505b60
push 0xa
push 0x40a09c
mov eax, dword [0x505b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a02c
call fcn.004160c4
push ebx
mov eax, dword [0x505b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a043
call fcn.004160c4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a055
call fcn.004160c4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x505b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x505b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x505b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x505b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x505b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x505b78], edx
pop esi
pop ebx
ret

Function at 0x40ba50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40baf9
test eax, edx
je 0x40bafc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ba79
push edx
mov edx, eax
mov eax, esp
call fcn.00405dc8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ba8f
push eax
lea eax, [esp + 8]
call fcn.00405dc8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ba9e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40bac5
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 0x40badf
add ecx, 4
js 0x40bab6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40badc
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f98
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40bac3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40bac5
xor eax, eax
ret
test eax, eax
je 0x40bb0c
test edx, edx
jne 0x40ba60
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40cba4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405c50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cbc2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cbe3
cmp ebx, 3
je 0x40cbe3
cmp ebx, 0x7b
je 0x40cbe3
mov eax, esi
call fcn.0040cb64
test al, al
jne 0x40cbe7
xor eax, eax
jmp 0x40cbe9
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cbec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cc05
test al, 0x10
jne 0x40cc09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40cd24
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405c50
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40cd38
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405c50
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40cd5a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412f58
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 0x412f91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405d00
jmp 0x412f9a
mov eax, ebx
mov edx, esi
call fcn.00405bc4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412fa4
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 0x412fc6
movzx eax, word [esp]
jmp 0x412fc8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41389c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4139c1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004136b0
mov esi, eax
mov eax, dword [0x502ac8]
cmp byte [eax], 0
je 0x413969
mov eax, dword [0x5025f0]
call fcn.0040350c
call fcn.00403150
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413878]
call fcn.004075b8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4139dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4139a5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x502550]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x505b50]
call fcn.004076ac
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4139c8
lea eax, [ebp - 4]
mov edx, dword [0x413878]
call fcn.004075c4
ret
Function at 0x4145ec
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 0x4146c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c18
lea eax, [ebp - 4]
call fcn.0040661c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405c50
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4146ac
mov eax, ebx
call fcn.00402fe8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4146a5
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.00405c50
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41468f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4146d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41468f
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 0x4146ac
mov eax, dword [ebp - 0x10]
call fcn.00403004
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4146c9
lea eax, [ebp - 4]
call fcn.00405bb4
ret

Function at 0x415f3c
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.00405344
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 0x415ee6
mov eax, edi
add eax, eax
call fcn.00402fe8
mov esi, eax
jmp 0x415ee8
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 0x415f21
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 0x415f0b
mov eax, esp
cmp esi, eax
je 0x415f2e
mov eax, esi
call fcn.00403004
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 0x415f68
cmp bl, 0
je 0x415f64
cmp bl, 0x41
jl 0x415f5f
cmp bl, 0x5a
jg 0x415f5f
or bl, 0x20
xor al, bl
inc esi
jmp 0x415f43
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415ea8

Function at 0x42a658
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.0042a35c
dec esi
jne 0x42a67a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42b824
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x507e94
cmp dword [edi], 0
jne 0x42b8a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x507e90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f4ce4
mov ecx, 2
call fcn.004031a0
mov edx, 0x42b7fc
lea eax, [esi + 5]
call fcn.0042b81c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b81c
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 0x42b875
mov dword [0x507e90], 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 0x430f94
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.00405c50
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x430fec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x502d84]
mov dl, 1
mov eax, dword [0x4308ec]
call fcn.00413ad8
call fcn.0040474c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00430a74
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 0x43203c
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 0x432042
ret
Function at 0x43ee84
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.00405bc4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x43eecb
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.00405dac
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4442e4
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 0x44441d
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 [0x430960]
call fcn.00430a9c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4443f3
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00430b3c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405dac
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x444438
call fcn.00406080
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00430cc8
test al, al
je 0x4443dd
lea ecx, [ebp - 4]
mov edx, 0x4444ac
mov eax, dword [ebp - 0xc]
call fcn.00430f14
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00416740
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4443d6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4444c4
mov eax, dword [ebp - 8]
push eax
call fcn.00408bd4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4f56d8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4443dd
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 0x4443fa
mov eax, dword [ebp - 0xc]
call fcn.00403d70
ret

Function at 0x444528
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 0x44456f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444552
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444563
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x44456f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x449c44
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 [0x508114], 0
je 0x449d85
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5029b8]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x449d85
mov eax, dword [0x508118]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x508114]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x449d54
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x508114]
call fcn.00422c08
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x449d4c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x449d4c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x449d4c
mov eax, dword [ebp - 0x14]
call fcn.00454d20
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x449d4c
push ebp
call fcn.00449c00
pop ecx
test al, al
jne 0x449d4c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403f80
test al, al
je 0x449d4c
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.00403f80
cmp byte [ebp - 1], 0
je 0x449d4c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004087ec
test al, al
je 0x449d4c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x508118]
call fcn.00449378
inc edi
dec ebx
jne 0x449ca9
mov eax, dword [0x508118]
cmp dword [eax + 8], 0
jle 0x449d6c
mov eax, dword [0x508118]
call fcn.00449430
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x449d85
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00449a64
pop ecx
test al, al
jne 0x449d85
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