joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10920907
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10920934
push esi
call fcn.109288a0
cmp byte [esi + 0x40], 0
pop ecx
je 0x1092092d
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x109209a3
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x10920998
mov eax, dword [esi + 8]
test eax, eax
je 0x10920955
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x10920994
cmp eax, 2
je 0x10920998
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1092094a
cmp eax, 3
je 0x10920979
cmp eax, 1
jne 0x1092094a
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x1092094a
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1092094a
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x109209c1
cmp eax, 0xcc
je 0x109209c1
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.10920666
pop esi
ret

Function at 0x109209c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10947de0
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x10920a20
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10920a20
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x10920a20
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10920a49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x10947de0
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x10920ab7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10947dfc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10920aae
cmp dword [ebp - 0xc], 4
jne 0x10920aae
cmp dword [ebp - 0x10], edi
je 0x10920aae
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [0x109519f4], edi
xor eax, eax
jmp 0x10920adf
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [0x109519f4], edi
jge 0x10920ada
mov dword [0x109519f4], edi
call fcn.10920a24
test eax, eax
je 0x10920ada
emms
mov dword [0x109519f4], 1
mov eax, dword [0x109519f4]
pop edi
leave
ret
Function at 0x10920bbf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
jne 0x10920bf6
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x10920c18
cmp dword [ebp - 0x20], 4
ja 0x10920c22
jne 0x10920c12
cmp dword [ebp - 0x1c], 0xa
jb 0x10920c12
cmp word [ebp - 0x18], 0x55d
jae 0x10920c22
mov byte [ebp + 0x73], 1
jmp 0x10920c22
cmp dword [ebp - 0x14], 2
jne 0x10920c38
test bl, bl
je 0x10920c53
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x10920c43
dec eax
je 0x10920c3c
sub eax, 3
jne 0x10920c38
cmp byte [ebp + 0x73], 0
je 0x10920c64
xor eax, eax
jmp 0x10920c6c
call fcn.10920ae2
jmp 0x10920c6c
cmp byte [ebp + 0x73], 0
jne 0x10920c38
call fcn.10920b1a
and eax, 4
jmp 0x10920c6c
cmp dword [ebp + 0x7c], 0xa
je 0x10920c64
push dword [ebp + 0x7c]
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
jmp 0x10920c6c
call fcn.10920b1a
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1092ad12
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x1092ade6
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1094a0c8]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1094a0c8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1094a0c8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1094a0c8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1094a0c8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1094a0c8]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1094a0c8]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1094a0c8]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x1092ad2f
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1092ae06
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x1094a0c8]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x1092adec
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x10940bd0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x1094adc0
call fcn.10941090
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10940c10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10940c10
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10940c28
cmp eax, 0x20b
je 0x10940c15
mov dword [ebp - 0x1c], ebx
jmp 0x10940c3c
cmp dword [ecx + 0x84], 0xe
jbe 0x10940c10
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10940c36
cmp dword [ecx + 0x74], 0xe
jbe 0x10940c10
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcr71.dll___set_app_type]
pop ecx
or dword [0x10954e08], 0xffffffff
or dword [0x10954e0c], 0xffffffff
call dword [sym.imp.msvcr71.dll___p__fmode]
mov ecx, dword [0x10954dac]
mov dword [eax], ecx
call dword [sym.imp.msvcr71.dll___p__commode]
mov ecx, dword [0x10954da8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcr71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10954e04], eax
call fcn.10940fd0
call fcn.10941079
cmp dword [0x109545d0], ebx
jne 0x10940c9c
push 0x10941076
call dword [sym.imp.msvcr71.dll___setusermatherr]
pop ecx
call fcn.1094105e
push 0x10951018
push 0x10951014
call sub.msvcr71.dll__initterm
push 0x10941014
call fcn.10940b68
mov eax, dword [0x10954da4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x10954da0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.msvcr71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x10940cf0
push 8
call sub.msvcr71.dll__amsg_exit
pop ecx
push 0x10951010
push 0x10951000
call sub.msvcr71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.msvcr71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10940d6e
cmp al, bl
je 0x10940d1a
cmp dword [ebp - 0x20], ebx
jne 0x10940d6e
mov al, byte [esi]
cmp al, bl
je 0x10940d2a
cmp al, 0x20
ja 0x10940d2a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x10940d1a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x10940d46
movzx eax, word [ebp - 0x54]
jmp 0x10940d49
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.10908690
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10940d66
push esi
call dword [sym.imp.msvcr71.dll_exit]
call dword [sym.imp.msvcr71.dll__cexit]
jmp 0x10940dc3
cmp al, 0x22
jne 0x10940d7d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr71.dll__ismbblead]
pop ecx
test eax, eax
je 0x10940d90
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x10940d08
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.109410cb
ret
Function at 0x4582e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42000]
push edi
or ebp, 0xffffffff
jmp 0x458302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4582f8
mov eax, 1
add ebx, ebx
jne 0x45831b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x458310
jne 0x45832c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458310
xor ecx, ecx
sub eax, 3
jb 0x458340
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4583b2
mov ebp, eax
add ebx, ebx
jne 0x45834b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x458358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45837c
inc ecx
add ebx, ebx
jne 0x458368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45835d
jne 0x458379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45835d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45839c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45838d
jmp 0x4582fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45839c
add edi, ecx
jmp 0x4582fe
pop esi
mov edi, esi
mov ecx, 0x767
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4583ba
cmp byte [edi], 5
jne 0x4583ba
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 0x4583bf
lea edi, [esi + 0x56000]
mov eax, dword [edi]
or eax, eax
je 0x458437
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88654]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x886a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4583ec
mov ecx, edi
jns 0x45841b
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 + 0x886ac]
or eax, eax
je 0x458431
mov dword [ebx], eax
add ebx, 4
jmp 0x458409
call dword [esi + 0x886a8]
mov ebp, dword [esi + 0x886b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x45846b
sub esp, 0xffffff80
jmp 0x40cd2f
Function at 0x4016a8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4016ba
mov eax, dword [0x52f09f]
shl eax, 2
mov dword [0x52f0a3], eax
push edx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
call fcn.00513c0c
pop edx
call fcn.00513b50
call fcn.00513d68
push 0
call fcn.00515920
pop ecx
push 0x52f048
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x52f0a7], eax
push 0
jmp fcn.00520efc
Function at 0x4088c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
mov eax, 0x533b60
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00514d34
mov word [ebp - 0x18], 0xc
mov byte [ebp - 0x29], 0x21
mov word [ebp - 0x18], 0xc
push 0
lea edx, [ebp - 0x158]
push 0x25
push edx
push 0
call sub.SHELL32.dll_SHGetSpecialFolderPathA
push 0x5312e7
lea ecx, [ebp - 0x158]
push ecx
call fcn.005148e8
add esp, 8
push 0x5312f5
lea esi, [ebp - 0x158]
push esi
call fcn.00516de8
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x408969
push ebx
push 0x64
push 1
lea eax, [ebp - 0x29]
push eax
call fcn.005171b4
add esp, 0x10
xor esi, esi
cmp edi, esi
jle 0x408962
mov eax, dword [0x53fef8]
mov eax, dword [eax]
call fcn.00460e00
push ebx
push 0x3c
push 1
lea edx, [ebp - 0x29]
push edx
call fcn.005171b4
add esp, 0x10
inc esi
cmp edi, esi
jg 0x408940
push ebx
call fcn.0051665c
pop ecx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x4089c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b34
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov eax, 0x533cc4
push ebx
push esi
push edi
call fcn.00514d34
mov dword [ebp - 0x18], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.00524078
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0xc
mov word [ebp - 0x24], 0x18
mov dword [ebp - 4], edx
mov edx, 0x531327
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
xor ecx, ecx
mov word [ebp - 0x24], 0xc
mov word [ebp - 0x24], 0x24
lea eax, [ebp - 8]
call fcn.00524018
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00524158
sub dword [ebp - 0x18], 2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401c4c
mov word [ebp - 0x24], 0x30
cmp dword [ebp + 0x10], 0
jne 0x408bc6
mov ebx, 0x531328
jmp 0x408bc9
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0051d778
pop ecx
mov ebx, eax
mov word [ebp - 0x24], 0xc
jmp 0x408be7
mov eax, ebx
mov ecx, 0x64
cdq
idiv ecx
push eax
push str._03d
lea eax, [ebp - 0x5c]
push eax
call fcn.00518c6c
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x5c]
add byte [eax], 0xd0
mov dl, 9
sub dl, byte [eax]
mov byte [eax], dl
add byte [eax], 0x30
inc ebx
inc eax
cmp ebx, 3
jl 0x408c08
call fcn.0051de30
mov ecx, 0x64
cdq
idiv ecx
mov ebx, edx
mov word [ebp - 0x24], 0x48
mov edx, 0x53132e
lea eax, [ebp - 0xc]
xor ecx, ecx
call fcn.00524018
inc dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x18]
mov eax, dword [ecx]
push eax
push ebx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00408280
add esp, 0xc
lea eax, [ebp - 0xc]
sub dword [ebp - 0x18], 2
mov edx, 2
call fcn.00401c4c
mov cl, byte [ebp - 0x5c]
lea edx, [ebp - 0x5c]
mov byte [ebp - 0x43], cl
mov cl, byte [ebp - 0x5b]
mov byte [ebp - 0x45], cl
mov al, byte [ebp - 0x5a]
mov byte [ebp - 0x47], al
mov byte [ebp - 0x42], 0
push ebx
push str._02d
push edx
call fcn.00518c6c
mov al, byte [ebp - 0x5c]
add esp, 0xc
mov byte [ebp - 0x46], al
lea eax, [ebp - 0x47]
mov dl, byte [ebp - 0x5b]
mov ebx, 1
mov byte [ebp - 0x44], dl
mov byte [ebp - 0x48], 0
mov dl, byte [eax]
add dl, byte [ebp - 0x48]
add dl, 0xd0
mov byte [ebp - 0x48], dl
inc ebx
inc eax
cmp ebx, 6
jl 0x408ca9
movsx eax, byte [ebp - 0x48]
mov ecx, 0xa
cdq
idiv ecx
mov byte [ebp - 0x48], dl
add byte [ebp - 0x48], 0x30
mov word [ebp - 0x24], 0x54
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x10]
xor ecx, ecx
call fcn.00524018
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00524158
sub dword [ebp - 0x18], 2
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401c4c
mov word [ebp - 0x24], 0x60
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00524158
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x24], 0x6c
push eax
lea eax, [ebp - 4]
sub dword [ebp - 0x18], 2
call fcn.00401c4c
sub dword [ebp - 0x18], 2
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00401c4c
pop eax
mov word [ebp - 0x24], 0x60
add dword [ebp - 0x18], 2
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433a28
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004f16c8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x433a6d
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.004f244c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x43901c
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 0x439155
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 [0x4b4d30]
call fcn.004b5e6c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43912b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004b5f54
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004f244c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x439170
call fcn.004f25fc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004b61d0
test al, al
je 0x439115
lea ecx, [ebp - 4]
mov edx, 0x4391e4
mov eax, dword [ebp - 0xc]
call fcn.004b6a18
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004dd224
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43910e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4391fc
mov eax, dword [ebp - 8]
push eax
call fcn.004eae7c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x537fc4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439115
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439132
mov eax, dword [ebp - 0xc]
call fcn.004efd14
ret

Function at 0x439260
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 0x4392a7
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x43928a
add bx, 0x2000
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x43929b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4392a7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x440b74
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 0x440b7a
ret
Function at 0x44c194
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44c351
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x44c32d
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x44c32d
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x44c160]
call fcn.004f36a4
add esp, 4
lea eax, [ebp - 4]
call fcn.004f4d74
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x53ff2c]
push eax
call fcn.0052e2f0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004f34dc
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.004ef6f8
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x43f4b4]
call fcn.00448b88
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x44c30b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.0044a79c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.004494a8
call fcn.00443b74
push eax
call sub.GDI32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004497ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44c32d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c358
lea eax, [ebp - 8]
mov edx, dword [0x44c160]
call fcn.004f37c8
lea eax, [ebp - 4]
call fcn.004f4d74
ret
Function at 0x454a34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x454a55
test edi, 0x40000
je 0x454a6f
test bl, bl
jne 0x454af0
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x454af0
push esi
call sub.USER32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x454aa2
push 0
push esi
call sub.USER32.dll_ShowWindow
test bl, bl
je 0x454ab7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.dll_SetWindowLongW
jmp 0x454ac6
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x454ad7
cmp byte [esp + 2], 0
je 0x454af0
cmp byte [esp + 2], 0
je 0x454ae8
push 6
push esi
call sub.USER32.dll_ShowWindow
jmp 0x454af0
push 5
push esi
call sub.USER32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x454d9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x454dc2
mov eax, esp
push eax
push 0x454d64
call sub.USER32.dll_EnumWindows
jmp 0x454dd5
mov eax, esp
push eax
push 0x454d44
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.USER32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x454e98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x454ee8]
test bl, 4
je 0x454eac
or si, 1
test bl, 8
je 0x454eb5
or si, 4
test bl, 1
je 0x454ebe
or si, 8
test bl, 2
je 0x454ec7
or si, 0x10
test bl, 0x10
je 0x454ed0
or si, 0x20
push 0x12
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x454ee0
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x454eec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x454f28]
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x454f07
or bx, 1
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x454f17
or bx, 4
test esi, 0x20000000
je 0x454f23
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret