joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100547fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov dword [ebp - 4], ecx
call fcn.10028f1a
mov edi, dword [eax + 0xc]
test edi, edi
je 0x1005484d
push 5
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1005484d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005484d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.10054a57
pop esi
jmp 0x1005484f
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x10054c46
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10054d8c
mov ecx, 0x1020e51c
call fcn.1003e2a2
mov esi, eax
test esi, esi
je 0x10054d81
xor eax, eax
cmp word [esi + 8], ax
jne 0x10054d4b
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x10054d07
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x10054ccd
push str.MS_UI_Gothic
call fcn.10054dca
pop ecx
test eax, eax
je 0x10054ccd
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 0x10054ce8
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 0x10054d07
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 0x10054d0d
push ebx
push edi
push eax
call fcn.1005453d
add esp, 0xc
jmp 0x10054d0d
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.10038d3d
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 0x10054d86
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1002aad1
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x10054d4e
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x10054d5c
push edi
call fcn.10180e40
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10025992
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.1003cfbd
call fcn.1003cfd7
int3
Function at 0x100575a2
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1020f040]
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.10176a90
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.101816c3
push eax
call fcn.10024f69
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101b9d08]
je 0x10057703
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 0x10057717
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10057717
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 0x1005765e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10057652
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.10057353
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x10057659
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10057660
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1004aa91
test eax, eax
je 0x1005768c
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004a5a7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x10057691
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.1004aa91
test eax, eax
je 0x100576b9
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004a5a7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x100576bf
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.1004aa91
test eax, eax
je 0x100576e1
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004a5a7
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x100576e3
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x100576f5
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10057703
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.10172731
leave
ret 4
xor eax, eax
jmp 0x10057706
Function at 0x1005f549
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x101a3155
call fcn.1017340b
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 0x1005f6da
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1005f6ac
sub eax, 1
je 0x1005f5c8
sub eax, 1
je 0x1005f5a0
sub eax, 1
je 0x1005f5c8
push 0x101b46a8
mov ecx, edi
call fcn.10024e5f
mov eax, edi
call fcn.101733ba
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 0x1005f58a
lea eax, [ebp - 0x4e8]
push eax
jmp 0x1005f58f
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1005f58a
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.1005771b
test eax, eax
je 0x1005f58a
lea ecx, [ebp - 0x700]
call fcn.10024ebc
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1005f662
test byte [ebp - 0x428], 0x18
jne 0x1005f684
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 [0x101b1a54]
mov ecx, ebx
call esi
jmp 0x1005f684
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 [0x101b1a54]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.10024fe7
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.100258e0
jmp 0x1005f596
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 0x1005f58a
lea eax, [ebp - 0x6f0]
jmp 0x1005f5c5
call fcn.1003cfbd
int3

Function at 0x1005f852
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100a3433
call fcn.10028f6e
cmp dword [eax + 0x14], 0
jne 0x1005f86d
mov ecx, esi
pop esi
jmp fcn.1005eb33
pop esi
ret

Function at 0x1006dec0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x1020f040]
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 0x1006df2a
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 0x1006df0f
lea eax, [ebp - 0x2ac]
push eax
jmp 0x1006df14
push 0x101bfb00
call fcn.10024e5f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10172731
leave
ret 8
call fcn.1003cfbd
int3
Function at 0x1006e40f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10002d40
call fcn.10028f6e
cmp dword [eax + 0x14], 0
jne 0x1006e42a
mov ecx, esi
pop esi
jmp fcn.1006dc6a
pop esi
ret
Function at 0x100773ff
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 0x10077418
call fcn.10028f1a
mov esi, dword [eax + 0xc]
push 0x101c11c8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1007745a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1007745a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1007745a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10077463
jmp 0x1007745c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1009f3d8
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 0x1009f55f
je 0x1009f586
sub eax, 0xa1
je 0x1009f586
sub eax, 1
je 0x1009f586
dec eax
sub eax, 1
je 0x1009f586
sub eax, 1
je 0x1009f586
dec eax
sub eax, 1
je 0x1009f586
sub eax, 1
je 0x1009f586
sub eax, 0x58
jne 0x1009f5c4
cmp dword [edi + 0xc0], 0xffffffff
je 0x1009f586
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1009f586
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1009f4b4
sub eax, 1
jne 0x1009f586
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1009f4a3
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 [0x101b1a54]
mov ecx, edi
call esi
test eax, eax
jne 0x1009f500
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x1009f479
jmp 0x1009f5de
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1009f5de
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 [0x101b1a54]
mov ecx, edi
call esi
test eax, eax
jne 0x1009f500
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x1009f4cb
jmp 0x1009f5de
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1003599c
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1009f5de
sub eax, 0x200
je 0x1009f586
sub eax, 1
je 0x1009f586
sub eax, 1
je 0x1009f586
dec eax
sub eax, 1
je 0x1009f586
sub eax, 1
je 0x1009f586
dec eax
sub eax, 1
je 0x1009f586
sub eax, 1
jne 0x1009f5c4
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1009f5a5
cmp dword [eax + 0x20], ebx
je 0x1009f5a5
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 0x1009f5c4
cmp dword [eax + 0x20], ebx
je 0x1009f5c4
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x1009f5e3
lea eax, [edi + 0x2250]
test eax, eax
je 0x1009f5da
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x1009f5e3
xor eax, eax
inc eax
jmp 0x1009f5eb
push esi
mov ecx, edi
call fcn.10097341
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100bdb2b
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100bdb57
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100bdb82
cmp dword [0x10217bb4], 0
jne 0x100bdb82
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x100bdb7e
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x100bdb7e
push edi
call fcn.10188d70
pop ecx
jmp 0x100bdbf9
mov eax, edi
jmp 0x100bdbf9
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10176a90
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100bdc08
push esi
call fcn.100245c9
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.10172731
leave
ret 4
call fcn.1003cfbd
int3
Function at 0x100da5b2
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 0x100da710
push esi
push edi
push 0x101cd0b0
call fcn.1003ef9d
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100da64b
mov edi, dword [ebx + 0x168]
jmp 0x100da637
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 0x100da637
push esi
call fcn.1003079c
push eax
push 0x1020e910
call fcn.1003eefe
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100da637
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100da637
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x100da5e6
lea ecx, [ebx + 0x164]
call fcn.10044dad
jmp 0x100da70e
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100da70e
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10030a1a
mov edi, dword [eax]
test edi, edi
jne 0x100da677
xor esi, esi
jmp 0x100da67a
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 0x100da6fe
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100da6fe
cmp dword [ebp - 0x10], 0
jne 0x100da6d3
push edi
push 0x1020e910
call fcn.1003eefe
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
push eax
push 0x101c2170
call fcn.1003eefe
pop ecx
pop ecx
test eax, eax
je 0x100da6fe
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.100d9723
test eax, eax
jne 0x100da6fe
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.100d7859
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100da662
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10112e19
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10112e46
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x10112e5b
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10112e5b
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.1003079c
jmp 0x10112f2c
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.1003079c
cmp eax, edi
jne 0x10112f36
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10112ec8
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10112f0c
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x10112f36
cmp eax, 0x205
je 0x10112f36
cmp eax, 0x201
je 0x10112f36
cmp eax, 0x204
je 0x10112f36
cmp eax, 0x100
jne 0x10112ef4
cmp dword [ebp - 0x18], 0x1b
je 0x10112f36
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x10112f2c
ja 0x10112f25
cmp eax, dword [0x10219008]
jbe 0x10112f2c
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x10112e7d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1011330e
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x10113344
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.100245a3
test eax, eax
je 0x1011332c
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10119bcd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1020e804], 0
push esi
push edi
je 0x10119c55
cmp dword [0x1020eb40], 0xfffffffe
jne 0x10119c41
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x10119c55
mov edi, 0x10219034
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1021904c], 0
jne 0x10119c59
push 0
push 0
push 0x10119c5f
call fcn.101808fc
add esp, 0xc
mov dword [0x1021904c], eax
test eax, eax
je 0x10119c31
cmp eax, 0xffffffff
je 0x10119c31
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1020eb40], esi
jmp 0x10119c38
and dword [0x1021904c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10119c55
mov eax, dword [ebp + 8]
mov dword [0x1020eb40], eax
cmp eax, 0xffffffff
jne 0x10119c55
and dword [0x1021904c], 0
pop edi
pop esi
pop ebp
ret
call fcn.1003cfbd
int3
Function at 0x10123238
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 0x101232d7
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101232d3
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101232d3
cmp dword [ebx], eax
jne 0x101232d3
mov eax, dword [ebx + 4]
sub eax, 1
je 0x101232ad
sub eax, 1
je 0x1012327d
sub eax, 1
jne 0x101232d3
mov edi, 0x428e
jmp 0x101232b2
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x101232b2
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x101232b2
add edi, 3
jmp 0x101232b2
mov edi, 0x3ea0
push edi
mov ecx, 0x10219090
call fcn.100256b3
test eax, eax
je 0x101232d7
mov eax, dword [0x10219090]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101232cc
call fcn.1003cfbd
int3

Function at 0x1012d1a1
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.10188da0
pop ecx
test eax, eax
jne 0x1012d1e3
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.10011da0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1012d1a9
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x10133f14
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x101a0abb
call fcn.101733d8
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10133ffb
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10133ffb
cmp esi, 0x43
je 0x10133f56
cmp esi, 0x2d
jne 0x10133ffb
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10133ffb
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10024ebc
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10026f27
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10133fe9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10133fe9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 0xd
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.100258e0
push ebx
mov ecx, edi
call fcn.1013139a
call fcn.101733a6
ret 4