joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c46a
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 0x1007c495
cmp dword [edi + 0x80], 0
jne 0x1007c495
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.1007d95f
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.1007c709
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1007c4c2
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.1007d95f
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 0x1007c4f5
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.1007c508
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1007daa6
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.1007bdbd
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 0x1007dae2
call fcn.1007dd65
mov dword [esi + 0xc], 1
jmp 0x1007dae7
call fcn.1007dd65
cmp dword [esi], 0
je 0x1007db30
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1007db0a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.100707d3
jmp 0x1007db1b
push 0xff
mov ecx, esi
call fcn.10068160
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100707f6
jmp 0x1007db54
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 0x1007db54
push dword [esi]
push dword [ebp - 4]
call fcn.10080e68
pop esi
leave
ret 0xc

Function at 0x1007dcbc
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.1007dd65
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1007dd04
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100707d3
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100707f6
jmp 0x1007dd0f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10080e68
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1007f494
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101cad46
call fcn.101a6639
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x1007f59e
cmp ebx, dword [esi + 0xc]
jge 0x1007f59e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x1007f4eb
cmp ebx, dword [edi + 8]
jl 0x1007f58c
cmp dword [ebp + 0xc], 0
je 0x1007f58c
xor ebx, ebx
jmp 0x1007f525
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.1007eef2
mov edi, eax
test edi, edi
je 0x1007f505
mov dword [edi], vtable.CThreadData.0
jmp 0x1007f507
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.1007f3c0
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x1007f540
push 4
push dword [esi + 0xc]
call fcn.100709a4
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1007f558
push 2
push 4
push dword [esi + 0xc]
call fcn.100709a4
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1007f5c5
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.101abd10
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1007f59e
cmp ebx, dword [edi + 8]
jge 0x1007f59e
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.101a6597
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1006f538
int3
Function at 0x1008c3b4
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 0x1008c40a
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1008c3e3
call fcn.10085f6c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1008c3f8
call fcn.10085f6c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1008c40a
call fcn.10085f6c
call fcn.1007d95f
cmp dword [eax + 0x3c], 0
je 0x1008c41f
push edi
mov ecx, ebx
call fcn.1008bae4
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1008c5f1
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1008c448
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1008c454
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 0x1008e925
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10234e38]
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.101abd10
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.101b1bba
push eax
call fcn.1006c8c0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101df05c]
je 0x1008ea8f
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 0x1008eaa3
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1008eaa3
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 0x1008e9be
mov eax, edi
jmp 0x1008e9ed
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1008e9db
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.1008e6ca
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x1008e9e4
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.1007e6a6
test eax, eax
je 0x1008ea12
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007dedc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1008ea16
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.1007e6a6
test eax, eax
je 0x1008ea3d
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007dedc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1008ea41
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1007e6a6
test eax, eax
je 0x1008ea69
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007dedc
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1008ea6b
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1008ea7d
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1008ea8f
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.101a6152
leave
ret 4
xor eax, eax
jmp 0x1008ea92
Function at 0x1009fd15
Capabilities:
Get file system object information

Disassembly:
push 0x394
mov eax, 0x101cc637
call fcn.101a6602
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1009feac
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x1009fe7e
sub eax, 1
je 0x1009fd94
sub eax, 1
je 0x1009fd6c
sub eax, 1
je 0x1009fd94
push 0x101da8fd
mov ecx, edi
call fcn.100678a0
mov eax, edi
call fcn.101a65ac
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 0x1009fd56
lea eax, [ebp - 0x28c]
push eax
jmp 0x1009fd5b
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1009fd56
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.1008eaa7
test eax, eax
je 0x1009fd56
call fcn.10070b55
push eax
lea ecx, [ebp - 0x3a0]
call fcn.10067830
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1009fe34
test byte [ebp - 0x21c], 0x18
jne 0x1009fe56
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 [0x101d8ab4]
mov ecx, ebx
call esi
jmp 0x1009fe56
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 [0x101d8ab4]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.1006ca00
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10068230
jmp 0x1009fd62
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 0x1009fd56
lea eax, [ebp - 0x390]
jmp 0x1009fd91
call fcn.1006f51e
int3

Function at 0x100a003f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100ee88d
call fcn.1007d9b3
cmp dword [eax + 0x14], 0
jne 0x100a005a
mov ecx, esi
pop esi
jmp fcn.1009f364
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.100740ef
call fcn.1007d9b3
cmp dword [eax + 0x14], 0
jne 0x100a0f45
mov ecx, esi
pop esi
jmp fcn.100a07a0
pop esi
ret
Function at 0x100a963e
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 0x100a9657
call fcn.1007d95f
mov esi, dword [eax + 0xc]
push 0x101e3e78
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x100a9699
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100a9699
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100a9699
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100a96a2
jmp 0x100a969b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100d094c
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 0x100d0adf
je 0x100d0b05
cmp eax, 0xa1
jb 0x100d0b43
cmp eax, 0xa2
jbe 0x100d0b05
cmp eax, 0xa3
jbe 0x100d0b43
cmp eax, 0xa5
jbe 0x100d0b05
cmp eax, 0xa6
jbe 0x100d0b43
cmp eax, 0xa8
jbe 0x100d0b05
cmp eax, 0x100
jne 0x100d0b43
cmp dword [edi + 0xc0], 0xffffffff
je 0x100d0b05
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100d0b05
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100d0a34
sub eax, 1
jne 0x100d0b05
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100d0a23
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 [0x101d8ab4]
mov ecx, edi
call esi
test eax, eax
jne 0x100d0a80
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100d09f9
jmp 0x100d0b5d
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100d0b5d
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 [0x101d8ab4]
mov ecx, edi
call esi
test eax, eax
jne 0x100d0a80
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100d0a4b
jmp 0x100d0b5d
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101d8ab4]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101d8ab4]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1007c0cf
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101d8ab4]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100d0b5d
cmp eax, 0x200
jb 0x100d0b43
cmp eax, 0x202
jbe 0x100d0b05
cmp eax, 0x203
jbe 0x100d0b43
cmp eax, 0x205
jbe 0x100d0b05
add eax, 0xfffffdf9
cmp eax, 1
ja 0x100d0b43
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100d0b24
cmp dword [eax + 0x20], ebx
je 0x100d0b24
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 0x100d0b43
cmp dword [eax + 0x20], ebx
je 0x100d0b43
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100d0b62
lea eax, [edi + 0x2250]
test eax, eax
je 0x100d0b59
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100d0b62
xor eax, eax
inc eax
jmp 0x100d0b6a
push esi
mov ecx, edi
call fcn.100c8a23
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100eef47
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10234e38]
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 0x100eef76
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100eefa3
cmp dword [0x1023d934], 0
jne 0x100eefa3
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x100eef9f
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x100eef9f
push esi
call fcn.101ba593
pop ecx
jmp 0x100ef010
mov eax, esi
jmp 0x100ef010
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.100716d6
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.101a6152
leave
ret 4
Function at 0x10154411
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 0x101544c5
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101544c1
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101544c1
cmp dword [ebx], eax
jne 0x101544c1
mov eax, dword [ebx + 4]
sub eax, 1
je 0x10154490
sub eax, 1
je 0x1015445e
sub eax, 1
jne 0x101544c1
mov edi, 0x428e
jmp 0x10154495
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10154495
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101d8ab4]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x10154495
add edi, 3
jmp 0x10154495
mov edi, 0x3ea0
push edi
call fcn.1007076e
test eax, eax
je 0x101544c5
push edi
push eax
mov ecx, 0x1023ee30
call fcn.10067ec0
test eax, eax
je 0x101544c5
mov eax, dword [0x1023ee30]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101544ba
call fcn.1006f51e
int3

Function at 0x1015e2c6
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.101ba5c3
pop ecx
test eax, eax
jne 0x1015e308
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.10073e48
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1015e2ce
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 0x101653c4
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x101cbfc9
call fcn.101a65ce
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101654a4
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101654a4
cmp edi, 0x43
je 0x10165409
cmp edi, 0x2d
jne 0x101654a4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101654a4
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.10070b55
push eax
lea ecx, [ebp - 0x10]
call fcn.10067830
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.100688a0
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.10068230
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10162836
call fcn.101a6597
ret 4
Function at 0x4042d0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.0040a900
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x458588]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45858c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.004042c0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x458590]
mov edx, dword [0x458594]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x45fd1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40435c
mov dword [0x45fd18], 0xedeb2e40
jmp 0x404377
cmp eax, 0x3eb
jne 0x404377
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45f7a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45fd1c], 0x9e6
mov dword [0x45fd14], 0xf4ea3dee
jne 0x4043b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x45fd1c], 0x213
jne 0x40444b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x8c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0x403f58
push 0x403fa8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x45fd1c], 0xc
jne 0x40445f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Set file attributes
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45fd1c]
mov ecx, dword [0x45f7ac]
shr eax, 3
sub esp, 0xc08
test eax, eax
jbe 0x4045a2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x45fd1c], 0x959
jne 0x404588
push 0
push 0
push 0
call edi
push 0
lea eax, [ebp - 0xc08]
push eax
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.004042d0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret