joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bac6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1004bad7
xor eax, eax
jmp 0x1004baf3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004baf8
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.10004810
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10074d61
int3

Function at 0x1004bb96
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1004bbc9
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.10004810
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10074d61
int3

Function at 0x1004bca2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1004bccd
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004bcd3
cmp dword [ebp - 4], esi
jne 0x1004bcea
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.10004810
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10074d61
lea ecx, [edi + 0xc]
call fcn.10004810
push eax
push 0xffffffffffffffff
push 0xd
call fcn.100749b7
int3

Function at 0x10059163
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.1002c9c4
mov edi, dword [eax + 0xc]
test edi, edi
je 0x100591b5
push 5
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100591b5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100591b5
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.100593bf
pop esi
jmp 0x100591b7
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x10072ae2
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 0x10072b38
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10072b11
call fcn.10037560
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10072b26
call fcn.10037560
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10072b38
call fcn.10037560
call fcn.1002c9c4
cmp dword [eax + 0x3c], 0
je 0x10072b4d
push esi
mov ecx, ebx
call fcn.100721fe
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10072d37
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10072b76
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10072b82
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 0x10074080
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.1003fbda
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 0x100740bc
call fcn.1007429d
mov dword [esi + 0xc], 1
jmp 0x100740c1
call fcn.1007429d
cmp dword [esi], 0
je 0x1007410c
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 0x100740e7
push edi
call fcn.1003477e
lea ecx, [edi + 1]
push ecx
jmp 0x100740f6
push 0xff
call fcn.10004b10
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1002dcf3
pop edi
jmp 0x10074130
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 0x10074130
push dword [esi]
push dword [ebp - 4]
call fcn.100471e9
pop esi
leave
ret 0xc

Function at 0x100741f4
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.1007429d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1007423c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1003477e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1002dcf3
jmp 0x10074247
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100471e9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10074464
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100745aa
mov ecx, 0x102155ec
call fcn.100450e2
mov esi, eax
test esi, esi
je 0x1007459f
xor eax, eax
cmp word [esi + 8], ax
jne 0x10074569
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x10074525
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x100744eb
push str.MS_UI_Gothic
call fcn.100745e8
pop ecx
test eax, eax
je 0x100744eb
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 0x10074506
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 0x10074525
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 0x1007452b
push ebx
push edi
push eax
call fcn.10058ea5
add esp, 0xc
jmp 0x1007452b
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.10033d6b
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 0x100745a4
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1002df17
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1007456c
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1007457a
push edi
call fcn.10187c3f
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10004bf0
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.100314ce
call fcn.100314e8
int3
Function at 0x10074fce
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10216040]
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.1017cab0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10188245
push eax
call fcn.100042e0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101bf074]
je 0x1007512f
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 0x10075143
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10075143
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 0x1007508a
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1007507e
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.10074d7f
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x10075085
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007508c
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.10051664
test eax, eax
je 0x100750b8
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1005117a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x100750bd
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.10051664
test eax, eax
je 0x100750e5
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1005117a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x100750eb
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.10051664
test eax, eax
je 0x1007510d
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1005117a
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1007510f
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10075121
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1007512f
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.101786e5
leave
ret 4
xor eax, eax
jmp 0x10075132
Function at 0x10084c99
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10216040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x10084cc5
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10084cf0
cmp dword [0x1021e90c], 0
jne 0x10084cf0
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x10084cec
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x10084cec
push edi
call fcn.1018f21d
pop ecx
jmp 0x10084d67
mov eax, edi
jmp 0x10084d67
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1017cab0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x10084d76
push esi
call fcn.1002f109
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.101786e5
leave
ret 4
call fcn.100314ce
int3
Function at 0x100a204d
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 0x100a21ab
push esi
push edi
push 0x101c8018
call fcn.10045df7
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100a20e6
mov edi, dword [ebx + 0x168]
jmp 0x100a20d2
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 0x100a20d2
push esi
call fcn.1003a9ae
push eax
push 0x10215644
call fcn.10045d58
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100a20d2
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100a20d2
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x100a2081
lea ecx, [ebx + 0x164]
call fcn.1004a3f0
jmp 0x100a21a9
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100a21a9
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1003ac09
mov edi, dword [eax]
test edi, edi
jne 0x100a2112
xor esi, esi
jmp 0x100a2115
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 0x100a2199
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100a2199
cmp dword [ebp - 0x10], 0
jne 0x100a216e
push edi
push 0x10215644
call fcn.10045d58
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, edi
call esi
push eax
push 0x101c8fbc
call fcn.10045d58
pop ecx
pop ecx
test eax, eax
je 0x100a2199
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.100a11be
test eax, eax
jne 0x100a2199
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.1009f2f1
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100a20fd
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100ae3ca
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x101ae8d4
call fcn.1017922e
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 0x100ae55b
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x100ae52d
sub eax, 1
je 0x100ae449
sub eax, 1
je 0x100ae421
sub eax, 1
je 0x100ae449
push 0x101f1648
mov ecx, edi
call fcn.1002ab33
mov eax, edi
call fcn.101791dd
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 0x100ae40b
lea eax, [ebp - 0x4e8]
push eax
jmp 0x100ae410
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100ae40b
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.10075147
test eax, eax
je 0x100ae40b
lea ecx, [ebp - 0x700]
call fcn.100041f0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x100ae4e3
test byte [ebp - 0x428], 0x18
jne 0x100ae505
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 [0x101b8a64]
mov ecx, ebx
call esi
jmp 0x100ae505
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 [0x101b8a64]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.1002b350
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10004d90
jmp 0x100ae417
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 0x100ae40b
lea eax, [ebp - 0x6f0]
jmp 0x100ae446
call fcn.100314ce
int3

Function at 0x100ae6d3
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10150bc5
call fcn.1002ca18
cmp dword [eax + 0x14], 0
jne 0x100ae6ee
mov ecx, esi
pop esi
jmp fcn.100ad9dc
pop esi
ret

Function at 0x100afd22
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x100afd58
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.1002b0f0
test eax, eax
je 0x100afd40
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 0x100b036c
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 0x100b0399
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x100b03ae
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100b03ae
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.1003a9ae
jmp 0x100b047f
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.1003a9ae
cmp eax, edi
jne 0x100b0489
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 0x100b041b
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 0x100b045f
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x100b0489
cmp eax, 0x205
je 0x100b0489
cmp eax, 0x201
je 0x100b0489
cmp eax, 0x204
je 0x100b0489
cmp eax, 0x100
jne 0x100b0447
cmp dword [ebp - 0x18], 0x1b
je 0x100b0489
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 0x100b047f
ja 0x100b0478
cmp eax, dword [0x1021fba4]
jbe 0x100b047f
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x100b03d0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100b49f2
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 0x100b4a0b
call fcn.1002c9c4
mov esi, dword [eax + 0xc]
push 0x101c970c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100b4a4d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b4a4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100b4a4d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100b4a56
jmp 0x100b4a4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100c9395
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x102155cc], 0
push esi
push edi
je 0x100c941d
cmp dword [0x10215820], 0xfffffffe
jne 0x100c9409
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x100c941d
mov edi, 0x1021fc4c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1021fc64], 0
jne 0x100c9421
push 0
push 0
push 0x100c9427
call fcn.10187771
add esp, 0xc
mov dword [0x1021fc64], eax
test eax, eax
je 0x100c93f9
cmp eax, 0xffffffff
je 0x100c93f9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x10215820], esi
jmp 0x100c9400
and dword [0x1021fc64], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100c941d
mov eax, dword [ebp + 8]
mov dword [0x10215820], eax
cmp eax, 0xffffffff
jne 0x100c941d
and dword [0x1021fc64], 0
pop edi
pop esi
pop ebp
ret
call fcn.100314ce
int3
Function at 0x100ddff3
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 0x100de17a
je 0x100de1a1
sub eax, 0xa1
je 0x100de1a1
sub eax, 1
je 0x100de1a1
dec eax
sub eax, 1
je 0x100de1a1
sub eax, 1
je 0x100de1a1
dec eax
sub eax, 1
je 0x100de1a1
sub eax, 1
je 0x100de1a1
sub eax, 0x58
jne 0x100de1df
cmp dword [edi + 0xc0], 0xffffffff
je 0x100de1a1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100de1a1
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100de0cf
sub eax, 1
jne 0x100de1a1
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100de0be
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 [0x101b8a64]
mov ecx, edi
call esi
test eax, eax
jne 0x100de11b
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100de094
jmp 0x100de1f9
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100de1f9
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 [0x101b8a64]
mov ecx, edi
call esi
test eax, eax
jne 0x100de11b
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100de0e6
jmp 0x100de1f9
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1003fee8
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101b8a64]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100de1f9
sub eax, 0x200
je 0x100de1a1
sub eax, 1
je 0x100de1a1
sub eax, 1
je 0x100de1a1
dec eax
sub eax, 1
je 0x100de1a1
sub eax, 1
je 0x100de1a1
dec eax
sub eax, 1
je 0x100de1a1
sub eax, 1
jne 0x100de1df
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100de1c0
cmp dword [eax + 0x20], ebx
je 0x100de1c0
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 0x100de1df
cmp dword [eax + 0x20], ebx
je 0x100de1df
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x100de1fe
lea eax, [edi + 0x2250]
test eax, eax
je 0x100de1f5
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100de1fe
xor eax, eax
inc eax
jmp 0x100de206
push esi
mov ecx, edi
call fcn.100d8535
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1010426a
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.1018f5de
pop ecx
test eax, eax
jne 0x101042ac
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.1002df7a
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10104272
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