joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c25e
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 0x1002c2a6
call fcn.1001a6cd
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002c2a6
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1002c2b3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1002c2ef
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1002c2d2
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1002c2db
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1002c2ed
test di, di
jne 0x1002c2ed
test dx, dx
je 0x1002c2ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c2f4
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 0x1002c31f
cmp dword [esi + 0x80], 0
jne 0x1002c31f
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.1001a6cd
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002c34f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002c34f
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1002c5bb
jmp 0x1002c351
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002c358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1001a6cd
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002c398
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002c398
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1002c3a0
jmp 0x1002c39a
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1002c690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1017951f
call fcn.1014f584
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.1001a6cd
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1002c6ef
call fcn.1001a6cd
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002c703
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1002c6ff
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1002c70b
or eax, 0xffffffff
jmp 0x1002c85d
mov ecx, edi
call fcn.1002cc9a
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1001b5f8
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1002c797
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1002c797
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1002c797
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10014c8e
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1002c794
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x101879c8]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1002c794
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10021a60
test eax, eax
je 0x1002c794
push 0
mov ecx, esi
call fcn.10021833
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.1001b27b
push ebx
call fcn.1001c9b4
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1002c633
test eax, eax
jne 0x1002c7e0
cmp dword [edi + 0x9c], eax
jne 0x1002c7e0
call fcn.1001a6cd
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.1001c9b4
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1002c633
and dword [edi + 0x9c], 0
jmp 0x1002c80b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1002c81f
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10021833
test esi, esi
je 0x1002c82c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1002c842
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1002c842
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x101879c8]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1002cc51
mov eax, dword [edi + 0x68]
call fcn.1014f4e9
ret
Function at 0x1002e571
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 0x1002e5c7
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1002e5a0
call fcn.100277d4
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1002e5b5
call fcn.100277d4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1002e5c7
call fcn.100277d4
call fcn.1001a6cd
cmp dword [eax + 0x3c], 0
je 0x1002e5dc
push esi
mov ecx, ebx
call fcn.1002dc8d
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.1002e7c6
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1002e605
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1002e611
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 0x1003070d
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101db000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.101517c0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1015a48d
push eax
call fcn.10015aa1
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x1018c0e8]
je 0x1003086e
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 0x10030882
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10030882
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 0x100307c9
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100307bd
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.100304be
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x100307c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100307cb
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100309c4
test eax, eax
je 0x100307f7
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10030345
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x100307fc
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.100309c4
test eax, eax
je 0x10030824
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10030345
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x1003082a
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.100309c4
test eax, eax
je 0x1003084c
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10030345
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1003084e
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10030860
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1003086e
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.1014f4db
leave
ret 4
xor eax, eax
jmp 0x10030871
Function at 0x10038315
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.100218db
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10038351
call fcn.10038532
mov dword [esi + 0xc], 1
jmp 0x10038356
call fcn.10038532
cmp dword [esi], 0
je 0x100383a1
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1003837c
push edi
call fcn.1001ca02
lea ecx, [edi + 1]
push ecx
jmp 0x1003838b
push 0xff
call fcn.1001669b
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10017b2e
pop edi
jmp 0x100383c5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100383c5
push dword [esi]
push dword [ebp - 4]
call fcn.1002390b
pop esi
leave
ret 0xc

Function at 0x10038489
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.10038532
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100384d1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1001ca02
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10017b2e
jmp 0x100384dc
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1002390b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10039a3d
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10039b83
mov ecx, 0x101da4e4
call fcn.1001a041
mov esi, eax
test esi, esi
je 0x10039b78
xor eax, eax
cmp word [esi + 8], ax
jne 0x10039b42
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x10039afe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x10039ac4
push str.MS_UI_Gothic
call fcn.10039bc1
pop ecx
test eax, eax
je 0x10039ac4
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 0x10039adf
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 0x10039afe
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 0x10039b04
push ebx
push edi
push eax
call fcn.10039284
add esp, 0xc
jmp 0x10039b04
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.10019d47
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 0x10039b7d
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.10022c13
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x10039b45
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x10039b53
push edi
call fcn.10159e20
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10016bce
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.100192a9
call fcn.100192c3
int3
Function at 0x1004b808
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x1017adb3
call fcn.1014f54e
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x1004b999
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1004b96b
sub eax, 1
je 0x1004b887
sub eax, 1
je 0x1004b85f
sub eax, 1
je 0x1004b887
push 0x10187f00
mov ecx, edi
call fcn.1001545e
mov eax, edi
call fcn.1014f4fd
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1004b849
lea eax, [ebp - 0x4e8]
push eax
jmp 0x1004b84e
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1004b849
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.10030886
test eax, eax
je 0x1004b849
lea ecx, [ebp - 0x700]
call fcn.10015508
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1004b921
test byte [ebp - 0x428], 0x18
jne 0x1004b943
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x101879c8]
mov ecx, ebx
call esi
jmp 0x1004b943
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x101879c8]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.10015d5a
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10016a5f
jmp 0x1004b855
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1004b849
lea eax, [ebp - 0x6f0]
jmp 0x1004b884
call fcn.100192a9
int3

Function at 0x1004bb11
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10098d00
call fcn.1001a721
cmp dword [eax + 0x14], 0
jne 0x1004bb2c
mov ecx, esi
pop esi
jmp fcn.1004ae1a
pop esi
ret

Function at 0x1004c4a7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x101db000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x1004c511
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x1004c4f6
lea eax, [ebp - 0x2ac]
push eax
jmp 0x1004c4fb
push 0x10192588
call fcn.1001545e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1014f4db
leave
ret 8
call fcn.100192a9
int3
Function at 0x1004c9f6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1001873a
call fcn.1001a721
cmp dword [eax + 0x14], 0
jne 0x1004ca11
mov ecx, esi
pop esi
jmp fcn.1004c251
pop esi
ret
Function at 0x10054cfd
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 0x10054d16
call fcn.1001a6cd
mov esi, dword [eax + 0xc]
push 0x10193400
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10054d58
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10054d58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10054d58
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10054d61
jmp 0x10054d5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1007cbc8
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 0x1007cd4f
je 0x1007cd76
sub eax, 0xa1
je 0x1007cd76
sub eax, 1
je 0x1007cd76
dec eax
sub eax, 1
je 0x1007cd76
sub eax, 1
je 0x1007cd76
dec eax
sub eax, 1
je 0x1007cd76
sub eax, 1
je 0x1007cd76
sub eax, 0x58
jne 0x1007cdb4
cmp dword [edi + 0xc0], 0xffffffff
je 0x1007cd76
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1007cd76
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1007cca4
sub eax, 1
jne 0x1007cd76
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1007cc93
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 [0x101879c8]
mov ecx, edi
call esi
test eax, eax
jne 0x1007ccf0
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x1007cc69
jmp 0x1007cdce
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1007cdce
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 [0x101879c8]
mov ecx, edi
call esi
test eax, eax
jne 0x1007ccf0
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x1007ccbb
jmp 0x1007cdce
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101879c8]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101879c8]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10021be9
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101879c8]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1007cdce
sub eax, 0x200
je 0x1007cd76
sub eax, 1
je 0x1007cd76
sub eax, 1
je 0x1007cd76
dec eax
sub eax, 1
je 0x1007cd76
sub eax, 1
je 0x1007cd76
dec eax
sub eax, 1
je 0x1007cd76
sub eax, 1
jne 0x1007cdb4
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1007cd95
cmp dword [eax + 0x20], ebx
je 0x1007cd95
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x1007cdb4
cmp dword [eax + 0x20], ebx
je 0x1007cdb4
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x1007cdd3
lea eax, [edi + 0x2250]
test eax, eax
je 0x1007cdca
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x1007cdd3
xor eax, eax
inc eax
jmp 0x1007cddb
push esi
mov ecx, edi
call fcn.10074c32
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100993a5
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101db000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100993d1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100993fc
cmp dword [0x101e1cc4], 0
jne 0x100993fc
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x100993f8
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x100993f8
push edi
call fcn.1016270c
pop ecx
jmp 0x10099473
mov eax, edi
jmp 0x10099473
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.101517c0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x10099482
push esi
call fcn.10014cb4
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1014f4db
leave
ret 4
call fcn.100192a9
int3
Function at 0x100b5e30
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 0x100b5f8e
push esi
push edi
push 0x1019ed00
call fcn.10019d18
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100b5ec9
mov edi, dword [ebx + 0x168]
jmp 0x100b5eb5
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 0x100b5eb5
push esi
call fcn.1001c9b4
push eax
push 0x101da890
call fcn.10019c79
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100b5eb5
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x101879c8]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100b5eb5
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x100b5e64
lea ecx, [ebx + 0x164]
call fcn.1002a14b
jmp 0x100b5f8c
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100b5f8c
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1001cc32
mov edi, dword [eax]
test edi, edi
jne 0x100b5ef5
xor esi, esi
jmp 0x100b5ef8
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 0x100b5f7c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100b5f7c
cmp dword [ebp - 0x10], 0
jne 0x100b5f51
push edi
push 0x101da890
call fcn.10019c79
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x101879c8]
mov ecx, edi
call esi
push eax
push 0x101943a8
call fcn.10019c79
pop ecx
pop ecx
test eax, eax
je 0x100b5f7c
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.100b4fa1
test eax, eax
jne 0x100b5f7c
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.100b30d7
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100b5ee0
pop edi
pop esi
pop ebx
leave
ret 4