joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080541
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 0x1008055a
call fcn.10060697
mov esi, dword [eax + 0xc]
push 0x101c0448
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1008059c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1008059c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1008059c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100805a5
jmp 0x1008059e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1009e3e7
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 0x1009e545
push esi
push edi
push 0x101cec50
call fcn.1006160f
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x1009e480
mov edi, dword [ebx + 0x168]
jmp 0x1009e46c
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 0x1009e46c
push esi
call fcn.1004e2af
push eax
push 0x1020a5e8
call fcn.10061570
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x1009e46c
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x1009e46c
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x1009e41b
lea ecx, [ebx + 0x164]
call fcn.1005be2e
jmp 0x1009e543
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1009e543
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1004e82c
mov edi, dword [eax]
test edi, edi
jne 0x1009e4ac
xor esi, esi
jmp 0x1009e4af
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 0x1009e533
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1009e533
cmp dword [ebp - 0x10], 0
jne 0x1009e508
push edi
push 0x1020a5e8
call fcn.10061570
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, edi
call esi
push eax
push 0x101c3998
call fcn.10061570
pop ecx
pop ecx
test eax, eax
je 0x1009e533
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.1009d558
test eax, eax
jne 0x1009e533
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.1009b68e
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x1009e497
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100ddedb
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 0x100ddf7a
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x100ddf76
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100ddf76
cmp dword [ebx], eax
jne 0x100ddf76
mov eax, dword [ebx + 4]
sub eax, 1
je 0x100ddf50
sub eax, 1
je 0x100ddf20
sub eax, 1
jne 0x100ddf76
mov edi, 0x428e
jmp 0x100ddf55
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100ddf55
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x100ddf55
add edi, 3
jmp 0x100ddf55
mov edi, 0x3ea0
push edi
mov ecx, 0x10212e1c
call fcn.10045010
test eax, eax
je 0x100ddf7a
mov eax, dword [0x10212e1c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x100ddf6f
call fcn.1005462c
int3

Function at 0x100e5d6a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x100e5d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e5d9a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.10045b20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100f4397
int3

Function at 0x100e6075
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x100e6086
xor eax, eax
jmp 0x100e60a2
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 0x100e60a7
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.10045b20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100f4397
int3

Function at 0x100e6119
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 [fcn.101b7954]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x100e614c
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.10045b20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100f4397
int3
Function at 0x100e6225
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 0x100e6250
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 0x100e6256
cmp dword [ebp - 4], esi
jne 0x100e626d
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.10045b20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100f4397
lea ecx, [edi + 0xc]
call fcn.10045b20
push eax
push 0xffffffffffffffff
push 0xd
call fcn.100f3fed
int3

Function at 0x100eee8d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1016298e
call fcn.100606eb
cmp dword [eax + 0x14], 0
jne 0x100eeea8
mov ecx, esi
pop esi
jmp fcn.100ee191
pop esi
ret

Function at 0x100eefa3
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.10053e63
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 0x100eefdf
call fcn.100ef1c0
mov dword [esi + 0xc], 1
jmp 0x100eefe4
call fcn.100ef1c0
cmp dword [esi], 0
je 0x100ef02f
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 0x100ef00a
push edi
call fcn.1004e5fc
lea ecx, [edi + 1]
push ecx
jmp 0x100ef019
push 0xff
call fcn.100457c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10050db5
pop edi
jmp 0x100ef053
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 0x100ef053
push dword [esi]
push dword [ebp - 4]
call fcn.10070e5d
pop esi
leave
ret 0xc

Function at 0x100ef117
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.100ef1c0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100ef15f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1004e5fc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10050db5
jmp 0x100ef16a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10070e5d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100f4727
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1020b000]
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.10189ce0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10190484
push eax
call fcn.10044f80
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101c8f48]
je 0x100f4885
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 0x100f4899
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100f4899
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 0x100f47e3
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100f47d7
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.100f452e
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x100f47de
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100f47e5
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100f49d8
test eax, eax
je 0x100f480c
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f43b5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100f4810
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.100f49d8
test eax, eax
je 0x100f4837
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f43b5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100f483b
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.100f49d8
test eax, eax
je 0x100f4863
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f43b5
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x100f4865
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x100f4877
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x100f4885
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.10187a72
leave
ret 4
xor eax, eax
jmp 0x100f4888
Function at 0x100f6ba8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1020b000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100f6bd4
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100f6bff
cmp dword [0x10211b8c], 0
jne 0x100f6bff
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x100f6bfb
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x100f6bfb
push edi
call fcn.101986c6
pop ecx
jmp 0x100f6c76
mov eax, edi
jmp 0x100f6c76
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10189ce0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100f6c85
push esi
call fcn.1006eaa7
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.10187a72
leave
ret 4
call fcn.1005462c
int3
Function at 0x1011762e
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 0x1011765b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x10117670
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10117670
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.1004e2af
jmp 0x10117741
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.1004e2af
cmp eax, edi
jne 0x1011774b
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 0x101176dd
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 0x10117721
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x1011774b
cmp eax, 0x205
je 0x1011774b
cmp eax, 0x201
je 0x1011774b
cmp eax, 0x204
je 0x1011774b
cmp eax, 0x100
jne 0x10117709
cmp dword [ebp - 0x18], 0x1b
je 0x1011774b
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 0x10117741
ja 0x1011773a
cmp eax, dword [0x10212f98]
jbe 0x10117741
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x10117692
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10118744
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x1011877a
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.1004afc8
test eax, eax
je 0x10118762
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 0x1011fb59
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1020a858], 0
push esi
push edi
je 0x1011fbe1
cmp dword [0x1020a99c], 0xfffffffe
jne 0x1011fbcd
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x1011fbe1
mov edi, 0x10212fc8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10212fe0], 0
jne 0x1011fbe5
push 0
push 0
push 0x1011fbeb
call fcn.10190dd7
add esp, 0xc
mov dword [0x10212fe0], eax
test eax, eax
je 0x1011fbbd
cmp eax, 0xffffffff
je 0x1011fbbd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1020a99c], esi
jmp 0x1011fbc4
and dword [0x10212fe0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1011fbe1
mov eax, dword [ebp + 8]
mov dword [0x1020a99c], eax
cmp eax, 0xffffffff
jne 0x1011fbe1
and dword [0x10212fe0], 0
pop edi
pop esi
pop ebp
ret
call fcn.1005462c
int3
Function at 0x101270a2
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 0x10127229
je 0x10127250
sub eax, 0xa1
je 0x10127250
sub eax, 1
je 0x10127250
dec eax
sub eax, 1
je 0x10127250
sub eax, 1
je 0x10127250
dec eax
sub eax, 1
je 0x10127250
sub eax, 1
je 0x10127250
sub eax, 0x58
jne 0x1012728e
cmp dword [edi + 0xc0], 0xffffffff
je 0x10127250
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10127250
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x1012717e
sub eax, 1
jne 0x10127250
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x1012716d
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 [fcn.101b7954]
mov ecx, edi
call esi
test eax, eax
jne 0x101271ca
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x10127143
jmp 0x101272a8
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x101272a8
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 [fcn.101b7954]
mov ecx, edi
call esi
test eax, eax
jne 0x101271ca
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x10127195
jmp 0x101272a8
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10054171
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [fcn.101b7954]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x101272a8
sub eax, 0x200
je 0x10127250
sub eax, 1
je 0x10127250
sub eax, 1
je 0x10127250
dec eax
sub eax, 1
je 0x10127250
sub eax, 1
je 0x10127250
dec eax
sub eax, 1
je 0x10127250
sub eax, 1
jne 0x1012728e
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x1012726f
cmp dword [eax + 0x20], ebx
je 0x1012726f
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 0x1012728e
cmp dword [eax + 0x20], ebx
je 0x1012728e
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x101272ad
lea eax, [edi + 0x2250]
test eax, eax
je 0x101272a4
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x101272ad
xor eax, eax
inc eax
jmp 0x101272b5
push esi
mov ecx, edi
call fcn.100bc94f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10151052
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x101aac5c
call fcn.10188215
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x1015113e
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1015113e
cmp esi, 0x43
je 0x10151094
cmp esi, 0x2d
jne 0x1015113e
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1015113e
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10044e50
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 0x101d9138
push eax
call fcn.100459d0
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
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 0x1015112c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1015112c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.10041a50
push ebx
mov ecx, edi
call fcn.1006fc80
call fcn.101881e3
ret 4

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

Disassembly:
push esi
mov esi, ecx
call sym.WndResizerApp.dll_EkagfgMklgEXIHJPETq
call fcn.100606eb
cmp dword [eax + 0x14], 0
jne 0x10160385
mov ecx, esi
pop esi
jmp fcn.1015fbc5
pop esi
ret
Function at 0x101901d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10190218
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10190218
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10190218
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10190218
cmp dword [ecx + 0x74], 0xe
jbe 0x10190218
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1019c06a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e8018
push 0x101e8010
push 0x101e5ac4
push 0x1f
call fcn.1019bee9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019c09e
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.101b7954]
call esi
jmp 0x1019c0a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1019c0e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e8028
push 0x101e8020
push 0x101e5ae8
push 0x21
call fcn.1019bee9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019c11f
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.101b7954]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1019c127
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e8030
push 0x101e8028
push 0x101e5afc
push 0x22
call fcn.1019bee9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1019c161
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [fcn.101b7954]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101a087b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101a0918
push ebx
push esi
call fcn.101a0844
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101a07d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101a08c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101a0917
push edi
push eax
call fcn.1019a082
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101a08e5
call fcn.1019a048
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101a0916
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101a07d8
add esp, 0x20
test eax, eax
jne 0x101a0904
push edi
call fcn.1019a048
jmp 0x101a090c
push ebx
call fcn.1019a048
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101a091b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101a092c
pop esi
ret
push ebx
push edi
push esi
call fcn.101a0844
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1019a082
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101a0954
push ebx
push esi
push edi
call fcn.10189760
add esp, 0xc
push 0
call fcn.1019a048
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101a0d24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a0969

Function at 0x101a61e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101a620d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101a620d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret