joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025170
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.1002567f
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 0x100251ac
call fcn.1002538b
mov dword [esi + 0xc], 1
jmp 0x100251b1
call fcn.1002538b
cmp dword [esi], 0
je 0x100251fa
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x100251d4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.100188ac
jmp 0x100251e5
push 0xff
mov ecx, esi
call fcn.10004530
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100188cf
jmp 0x1002521e
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 0x1002521e
push dword [esi]
push dword [ebp - 4]
call fcn.10025c32
pop esi
leave
ret 0xc

Function at 0x100252e2
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.1002538b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1002532a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100188ac
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100188cf
jmp 0x10025335
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10025c32
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10025756
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1017d575
call fcn.10153db6
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1002577c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100257dc
call fcn.10018c9e
push eax
lea ecx, [ebp - 0x10]
call fcn.10003820
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x1018c968]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1016403c
push eax
call fcn.10017604
add esp, 0x14
test esi, esi
je 0x100257cf
push esi
call fcn.10161260
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10004600
mov eax, ebx
call fcn.10153d7f
ret 8
Function at 0x100290ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1002913e
call fcn.1001fa76
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1002913e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029146
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10035971
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10029b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10029bc8
cmp dword [esi + 0x20], 0
je 0x10029bc8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10029bc8
cmp dword [ebp + 8], 0
je 0x10029bc8
xor edi, edi
mov ebx, edi
call fcn.1001fa76
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x10029bac
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029bc8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.10036472
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10029bc4
mov ecx, esi
call fcn.100298de
mov eax, edi
jmp 0x10029bca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10036b78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x10036ba3
cmp dword [edi + 0x80], 0
jne 0x10036ba3
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.1001fa76
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.10036e17
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10036bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.1001fa76
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10036c03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.10036c16
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10038d31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x10038d87
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10038d60
call fcn.10032652
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10038d75
call fcn.10032652
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10038d87
call fcn.10032652
call fcn.1001fa76
cmp dword [eax + 0x3c], 0
je 0x10038d9c
push edi
mov ecx, ebx
call fcn.10038461
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10038f6e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10038dc5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10038dd1
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10039de4
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101e6e34]
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.1015e1d0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1016403c
push eax
call fcn.10017604
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x10193e4c]
je 0x10039f4e
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 0x10039f62
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10039f62
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x10039e7d
mov eax, edi
jmp 0x10039eac
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10039e9a
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.10039b89
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x10039ea3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1003a0a4
test eax, eax
je 0x10039ed1
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10039a15
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10039ed5
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003a0a4
test eax, eax
je 0x10039efc
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10039a15
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10039f00
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1003a0a4
test eax, eax
je 0x10039f28
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10039a15
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x10039f2a
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10039f3c
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10039f4e
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015362e
leave
ret 4
xor eax, eax
jmp 0x10039f51
Function at 0x1004d2b9
Capabilities:
Get file system object information

Disassembly:
push 0x394
mov eax, 0x1017fbb4
call fcn.10153dea
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1004d450
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x1004d422
sub eax, 1
je 0x1004d338
sub eax, 1
je 0x1004d310
sub eax, 1
je 0x1004d338
push 0x10190a58
mov ecx, edi
call fcn.100038b0
mov eax, edi
call fcn.10153d94
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 0x1004d2fa
lea eax, [ebp - 0x28c]
push eax
jmp 0x1004d2ff
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1004d2fa
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.10039f66
test eax, eax
je 0x1004d2fa
call fcn.10018c9e
push eax
lea ecx, [ebp - 0x3a0]
call fcn.10003820
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1004d3d8
test byte [ebp - 0x21c], 0x18
jne 0x1004d3fa
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 [0x1018c968]
mov ecx, ebx
call esi
jmp 0x1004d3fa
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 [0x1018c968]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10004040
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10004600
jmp 0x1004d306
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 0x1004d2fa
lea eax, [ebp - 0x390]
jmp 0x1004d335
call fcn.10017660
int3

Function at 0x1004d5e3
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1009bd98
call fcn.1001faca
cmp dword [eax + 0x14], 0
jne 0x1004d5fe
mov ecx, esi
pop esi
jmp fcn.1004c908
pop esi
ret

Function at 0x1004e4ce
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1001f7b5
call fcn.1001faca
cmp dword [eax + 0x14], 0
jne 0x1004e4e9
mov ecx, esi
pop esi
jmp fcn.1004dd44
pop esi
ret
Function at 0x10057114
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 0x1005712d
call fcn.1001fa76
mov esi, dword [eax + 0xc]
push 0x10199998
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1005716f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005716f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1005716f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10057178
jmp 0x10057171
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1007e420
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 0x1007e5b3
je 0x1007e5d9
cmp eax, 0xa1
jb 0x1007e617
cmp eax, 0xa2
jbe 0x1007e5d9
cmp eax, 0xa3
jbe 0x1007e617
cmp eax, 0xa5
jbe 0x1007e5d9
cmp eax, 0xa6
jbe 0x1007e617
cmp eax, 0xa8
jbe 0x1007e5d9
cmp eax, 0x100
jne 0x1007e617
cmp dword [edi + 0xc0], 0xffffffff
je 0x1007e5d9
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1007e5d9
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1007e508
sub eax, 1
jne 0x1007e5d9
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1007e4f7
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 [0x1018c968]
mov ecx, edi
call esi
test eax, eax
jne 0x1007e554
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x1007e4cd
jmp 0x1007e631
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1007e631
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 [0x1018c968]
mov ecx, edi
call esi
test eax, eax
jne 0x1007e554
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x1007e51f
jmp 0x1007e631
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x1018c968]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x1018c968]
mov ecx, edi
call esi
mov ecx, eax
call fcn.100259ae
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x1018c968]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1007e631
cmp eax, 0x200
jb 0x1007e617
cmp eax, 0x202
jbe 0x1007e5d9
cmp eax, 0x203
jbe 0x1007e617
cmp eax, 0x205
jbe 0x1007e5d9
add eax, 0xfffffdf9
cmp eax, 1
ja 0x1007e617
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1007e5f8
cmp dword [eax + 0x20], ebx
je 0x1007e5f8
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 0x1007e617
cmp dword [eax + 0x20], ebx
je 0x1007e617
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x1007e636
lea eax, [edi + 0x2250]
test eax, eax
je 0x1007e62d
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x1007e636
xor eax, eax
inc eax
jmp 0x1007e63e
push esi
mov ecx, edi
call fcn.100764f8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1009c452
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101e6e34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x1009c481
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1009c4ae
cmp dword [0x101ed764], 0
jne 0x1009c4ae
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x1009c4aa
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x1009c4aa
push esi
call fcn.1016c373
pop ecx
jmp 0x1009c51b
mov eax, esi
jmp 0x1009c51b
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.10020498
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
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]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1015362e
leave
ret 4
Function at 0x1010190d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x101019c1
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101019bd
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101019bd
cmp dword [ebx], eax
jne 0x101019bd
mov eax, dword [ebx + 4]
sub eax, 1
je 0x1010198c
sub eax, 1
je 0x1010195a
sub eax, 1
jne 0x101019bd
mov edi, 0x428e
jmp 0x10101991
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10101991
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x1018c968]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x10101991
add edi, 3
jmp 0x10101991
mov edi, 0x3ea0
push edi
call fcn.10018847
test eax, eax
je 0x101019c1
push edi
push eax
mov ecx, 0x101eec48
call fcn.10004400
test eax, eax
je 0x101019c1
mov eax, dword [0x101eec48]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101019b6
call fcn.10017660
int3

Function at 0x1010b7c2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1016c3a3
pop ecx
test eax, eax
jne 0x1010b804
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10022c15
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1010b7ca
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x10112dae
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1017f546
call fcn.10153db6
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10112e8e
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10112e8e
cmp edi, 0x43
je 0x10112df3
cmp edi, 0x2d
jne 0x10112e8e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10112e8e
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.10018c9e
push eax
lea ecx, [ebp - 0x10]
call fcn.10003820
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.100169f0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10004600
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10110220
call fcn.10153d7f
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x40b0e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x401050
Capabilities:
Move file

Disassembly:
mov eax, dword [0x40c09c]
sub esp, 0x104
test eax, eax
je 0x4010a6
push str..disable
push 0x40bf90
lea eax, [esp + 8]
push str._s_s
push eax
call fcn.00402ce2
add esp, 0x10
lea ecx, [esp]
push 0x40bf90
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40109c
push str.Unable_to_put_back_SafeDiscShim__r_n
call fcn.004024e0
add esp, 4
mov dword [0x40c09c], 0
add esp, 0x104
ret

Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x3e8
lea eax, [esp + 0x3f0]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00402e36
add esp, 0xc
lea eax, [esp]
push 0x10
push 0x40b11c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401050
push 0xffffffffffffffff
call fcn.00402d61

Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
and eax, 0xffff
push 0x40b144
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40111c
push str.Could_not_LoadResource
call fcn.004010b0
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
ret