joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b288
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101b7e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.1013ec40
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10146a0d
push eax
call fcn.10003b2f
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x10170c3c]
je 0x1001b3e9
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1001b3fd
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001b3fd
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x1001b344
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1001b338
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.1001b039
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x1001b33f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001b346
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1001b53e
test eax, eax
je 0x1001b372
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1001aec0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x1001b377
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.1001b53e
test eax, eax
je 0x1001b39f
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1001aec0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x1001b3a5
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.1001b53e
test eax, eax
je 0x1001b3c7
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1001aec0
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1001b3c9
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1001b3db
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1001b3e9
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013c98c
leave
ret 4
xor eax, eax
jmp 0x1001b3ec
Function at 0x1001d13a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x1001d182
call fcn.10003072
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001d182
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001d18f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1001d1cb
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1001d1ae
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1001d1b7
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1001d1c9
test di, di
jne 0x1001d1c9
test dx, dx
je 0x1001d1cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x1001d1fb
cmp dword [esi + 0x80], 0
jne 0x1001d1fb
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.10003072
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001d22b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001d22b
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1001d492
jmp 0x1001d22d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001d234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.10003072
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001d274
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001d274
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1001d27c
jmp 0x1001d276
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1001d567
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1015e65e
call fcn.1013d0e3
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.10003072
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1001d5c6
call fcn.10003072
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001d5da
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1001d5d6
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1001d5e2
or eax, 0xffffffff
jmp 0x1001d734
mov ecx, edi
call fcn.1001db71
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.100111ed
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1001d66e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1001d66e
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1001d66e
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10003b59
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1001d66b
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x1016c964]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1001d66b
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1001755b
test eax, eax
je 0x1001d66b
push 0
mov ecx, esi
call fcn.1001732e
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10010eba
push ebx
call fcn.100124ed
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001d50a
test eax, eax
jne 0x1001d6b7
cmp dword [edi + 0x9c], eax
jne 0x1001d6b7
call fcn.10003072
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.100124ed
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001d50a
and dword [edi + 0x9c], 0
jmp 0x1001d6e2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1001d6f6
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1001732e
test esi, esi
je 0x1001d703
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1001d719
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1001d719
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1001db28
mov eax, dword [edi + 0x68]
call fcn.1013d048
ret
Function at 0x1001f43e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x1001f494
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1001f46d
call fcn.1000f7fc
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1001f482
call fcn.1000f7fc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1001f494
call fcn.1000f7fc
call fcn.10003072
cmp dword [eax + 0x3c], 0
je 0x1001f4a9
push esi
mov ecx, ebx
call fcn.1001eb5a
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.1001f693
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1001f4d2
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1001f4de
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10021c1c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.100173d6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10021c58
call fcn.10021e39
mov dword [esi + 0xc], 1
jmp 0x10021c5d
call fcn.10021e39
cmp dword [esi], 0
je 0x10021ca8
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10021c83
push edi
call fcn.1000a7e2
lea ecx, [edi + 1]
push ecx
jmp 0x10021c92
push 0xff
call fcn.10003242
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006da4
pop edi
jmp 0x10021ccc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x10021ccc
push dword [esi]
push dword [ebp - 4]
call fcn.1000bbfc
pop esi
leave
ret 0xc

Function at 0x10021d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10021e39
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10021dd8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000a7e2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006da4
jmp 0x10021de3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000bbfc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100246fe
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10024844
mov ecx, 0x101b7368
call fcn.10008e23
mov esi, eax
test esi, esi
je 0x10024839
xor eax, eax
cmp word [esi + 8], ax
jne 0x10024803
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x100247bf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x10024785
push str.MS_UI_Gothic
call fcn.10024882
pop ecx
test eax, eax
je 0x10024785
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x100247a0
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100247bf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x100247c5
push ebx
push edi
push eax
call fcn.10023f2d
add esp, 0xc
jmp 0x100247c5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.100088d5
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1002483e
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.10009359
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x10024806
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x10024814
push edi
call fcn.10142370
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10004da3
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.1000859a
call fcn.100085b4
int3
Function at 0x10033af8
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x1015f812
call fcn.1013d0ad
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x10033c89
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x10033c5b
sub eax, 1
je 0x10033b77
sub eax, 1
je 0x10033b4f
sub eax, 1
je 0x10033b77
push 0x1016cc74
mov ecx, edi
call fcn.10003427
mov eax, edi
call fcn.1013d05c
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x10033b39
lea eax, [ebp - 0x28c]
push eax
jmp 0x10033b3e
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x10033b39
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.1001b401
test eax, eax
je 0x10033b39
lea ecx, [ebp - 0x3a0]
call fcn.10002c66
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x10033c11
test byte [ebp - 0x21c], 0x18
jne 0x10033c33
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x1016c964]
mov ecx, ebx
call esi
jmp 0x10033c33
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x1016c964]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10003e47
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.100032c0
jmp 0x10033b45
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x10033b39
lea eax, [ebp - 0x390]
jmp 0x10033b74
call fcn.1000859a
int3

Function at 0x10033e01
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10083a66
call fcn.100030c6
cmp dword [eax + 0x14], 0
jne 0x10033e1c
mov ecx, esi
pop esi
jmp fcn.1003310a
pop esi
ret

Function at 0x10034797
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x101b7e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x10034801
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x100347e6
lea eax, [ebp - 0x158]
push eax
jmp 0x100347eb
push 0x10175280
call fcn.10003427
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1013c98c
leave
ret 8
call fcn.1000859a
int3
Function at 0x10034ce6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10002520
call fcn.100030c6
cmp dword [eax + 0x14], 0
jne 0x10034d01
mov ecx, esi
pop esi
jmp fcn.10034541
pop esi
ret
Function at 0x1003dc6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x1003dc86
call fcn.10003072
mov esi, dword [eax + 0xc]
push 0x101767e8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1003dcc8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003dcc8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1003dcc8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1003dcd1
jmp 0x1003dcca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10065cb5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x10065e3c
je 0x10065e63
sub eax, 0xa1
je 0x10065e63
sub eax, 1
je 0x10065e63
dec eax
sub eax, 1
je 0x10065e63
sub eax, 1
je 0x10065e63
dec eax
sub eax, 1
je 0x10065e63
sub eax, 1
je 0x10065e63
sub eax, 0x58
jne 0x10065ea1
cmp dword [edi + 0xc0], 0xffffffff
je 0x10065e63
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10065e63
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x10065d91
sub eax, 1
jne 0x10065e63
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x10065d80
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
test eax, eax
jne 0x10065ddd
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x10065d56
jmp 0x10065ebb
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x10065ebb
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
test eax, eax
jne 0x10065ddd
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x10065da8
jmp 0x10065ebb
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
mov ecx, eax
call fcn.100176e4
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x10065ebb
sub eax, 0x200
je 0x10065e63
sub eax, 1
je 0x10065e63
sub eax, 1
je 0x10065e63
dec eax
sub eax, 1
je 0x10065e63
sub eax, 1
je 0x10065e63
dec eax
sub eax, 1
je 0x10065e63
sub eax, 1
jne 0x10065ea1
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x10065e82
cmp dword [eax + 0x20], ebx
je 0x10065e82
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x10065ea1
cmp dword [eax + 0x20], ebx
je 0x10065ea1
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x10065ec0
lea eax, [edi + 0x2250]
test eax, eax
je 0x10065eb7
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x10065ec0
xor eax, eax
inc eax
jmp 0x10065ec8
push esi
mov ecx, edi
call fcn.1005dc1d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100840fa
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101b7e80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x10084126
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10084151
cmp dword [0x101be504], 0
jne 0x10084151
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x1008414d
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1008414d
push edi
call fcn.1014e6f2
pop ecx
jmp 0x100841c6
mov eax, edi
jmp 0x100841c6
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100841d5
push esi
call fcn.10005fe8
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1013c98c
leave
ret 4
call fcn.1000859a
int3
Function at 0x100a0b7f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x100a0cdd
push esi
push edi
push 0x1018075c
call fcn.1000a6d0
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100a0c18
mov edi, dword [ebx + 0x168]
jmp 0x100a0c04
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100a0c04
push esi
call fcn.100124ed
push eax
push 0x101b7700
call fcn.1000a631
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100a0c04
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x1016c964]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100a0c04
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x100a0bb3
lea ecx, [ebx + 0x164]
call fcn.1000a1a2
jmp 0x100a0cdb
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100a0cdb
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1000a129
mov edi, dword [eax]
test edi, edi
jne 0x100a0c44
xor esi, esi
jmp 0x100a0c47
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100a0ccb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100a0ccb
cmp dword [ebp - 0x10], 0
jne 0x100a0ca0
push edi
push 0x101b7700
call fcn.1000a631
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x1016c964]
mov ecx, edi
call esi
push eax
push 0x101776bc
call fcn.1000a631
pop ecx
pop ecx
test eax, eax
je 0x100a0ccb
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.1009fcf0
test eax, eax
jne 0x100a0ccb
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.1009de26
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100a0c2f
pop edi
pop esi
pop ebx
leave
ret 4