joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor edx, edx
push edi
mov eax, dword [esi + 0x14330]
mov dword [ebp - 4], edx
cmp eax, edx
jle 0x460c8a
lea ecx, [esi + 0x13f18]
cmp ebx, dword [ecx]
je 0x460c87
inc edx
add ecx, 4
cmp edx, eax
jl 0x460c79
jmp 0x460c8a
mov dword [ebp - 4], edx
push 1
pop edi
cmp dword [esi + 0x14364], edi
jle 0x460d33
push ebx
mov ecx, esi
call fcn.004632d5
test eax, eax
je 0x460ce1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x460cc1
push ebx
mov ecx, esi
call fcn.00463769
jmp 0x460d4d
mov eax, dword [esi + 0x14338]
mov eax, dword [esi + eax*4 + 0x13f18]
imul eax, eax, 0x134
mov dword [eax + esi + 0xc18], 3
jmp 0x460d4d
mov ecx, dword [esi + 0x14338]
lea eax, [esi + 0x14338]
xor edx, edx
mov ecx, dword [esi + ecx*4 + 0x13f18]
imul ecx, ecx, 0x134
mov dword [ecx + esi + 0xc18], edi
mov ecx, dword [esi + 0x14364]
test ecx, ecx
jle 0x460d4d
mov eax, dword [eax]
mov edi, dword [esi + eax*4 + 0x13f18]
lea eax, [esi + 0x14368]
cmp edi, dword [eax]
je 0x460d2a
inc edx
add eax, 4
cmp edx, ecx
jl 0x460d1c
jmp 0x460d4d
mov dword [esi + edx*4 + 0x14368], ebx
jmp 0x460d4d
mov eax, dword [esi + 0x14338]
mov eax, dword [esi + eax*4 + 0x13f18]
imul eax, eax, 0x134
mov dword [eax + esi + 0xc18], edi
mov eax, dword [esi + 0x14338]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x460d8b
mov eax, dword [esi + eax*4 + 0x13f18]
cmp eax, ebx
je 0x460d8b
imul eax, eax, 0x134
push dword [eax + esi + 0xc20]
add eax, esi
push dword [eax + 0xc24]
push 0xfba
push dword [esi + 0xaec]
call edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0046301a
mov eax, dword [esi + 0x14338]
lea ebx, [esi + 0xaec]
mov eax, dword [esi + eax*4 + 0x13f18]
imul eax, eax, 0x134
mov dword [eax + esi + 0xc18], 2
mov eax, dword [esi + 0x14338]
mov eax, dword [esi + eax*4 + 0x13f18]
imul eax, eax, 0x134
push dword [eax + esi + 0xc20]
add eax, esi
push dword [eax + 0xc24]
push 0xfb9
push dword [ebx]
call edi
push 0
push 0
push 0xfbe
push dword [ebx]
call edi
mov eax, dword [esi + 0x14390]
cmp eax, 0xffffffff
je 0x460e2b
mov edx, dword [esi + 0x14338]
mov ecx, dword [esi + edx*4 + 0x13f18]
imul ecx, ecx, 0x134
cmp dword [ecx + esi + 0xc30], eax
jle 0x460e2b
mov ecx, dword [esi + 0x1433c]
lea eax, [esi + 0x1433c]
cmp ecx, edx
jge 0x460e2b
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x462924
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, eax
lea eax, [esi + 0x1434c]
cmp dword [eax], edi
je 0x462a11
push 2
mov ecx, esi
mov dword [eax], edi
call fcn.00466c99
cmp dword [esi + 0x14330], 0
jle 0x462a11
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00462206
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4629cd
movsx eax, di
shr edi, 0x10
mov dword [ebp - 0xc], eax
push 1
movsx eax, di
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4629ac
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
je 0x4629ac
cmp eax, dword [ebp - 0xc]
je 0x4629ac
mov eax, dword [esi + 0x34]
cmp eax, dword [ebp - 8]
je 0x4629ac
push dword [esi + 0x3c]
mov ecx, esi
call fcn.00462a16
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0x14344], ebx
lea eax, [esi + 0x14344]
je 0x4629c9
mov dword [eax], ebx
push 0xffffffffffffffff
jmp 0x4629e1
mov ecx, dword [esi + 0x14344]
or dword [esi + 0x14344], 0xffffffff
lea eax, [esi + 0x14344]
push ecx
push 0
mov ecx, esi
call fcn.004617eb
cmp dword [esi + 0xb04], ebx
lea eax, [esi + 0xb04]
je 0x462a11
push dword [esi + 4]
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [eax], ebx
call fcn.004663ce
push dword [esi + 4]
mov ecx, edi
call fcn.00466389
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462a16
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x469a3a
call fcn.00466f40
mov eax, 0x1284
call fcn.00466f70
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
pop ecx
cmp eax, edi
je 0x462a51
mov esi, eax
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], 0x401d5c
mov dword [ebp - 0x14], esi
jmp 0x462a56
mov dword [ebp - 0x14], edi
mov esi, edi
cmp esi, edi
je 0x462b91
mov eax, dword [esi]
push esi
call dword [eax + 4]
push 0x24
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x3c], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x462a82
push esi
mov ecx, eax
call fcn.0044d5f5
mov ebx, eax
jmp 0x462a84
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x462b91
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x4128cc
lea edi, [ebp - 0x1290]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
xor eax, eax
pop ecx
or dword [ebp - 0x2c], 0xffffffff
movsw word es:[edi], word [esi]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov ecx, 0x48f
lea edi, [ebp - 0x127e]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov word [ebp - 0x38], 0xd
push eax
push 0xfc5
mov dword [ebp - 0x10], esi
call fcn.0046305e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x10], esi
je 0x462b26
push dword [ebp - 0x10]
lea eax, [ebp - 0x1290]
push 0x41296c
push 0x928
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp - 0x10]
call fcn.00466f25
add esp, 0x14
lea eax, [ebp - 0x1290]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x1290]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push 1
push ecx
lea ecx, [ebp - 0x38]
push ecx
push ebx
call dword [eax + 0x1c]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push 2
push esi
push ebx
call dword [sym.imp.ole32.dll_DoDragDrop]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x463c9c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x463d00
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 0x34]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
add ecx, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0045c029
push ebx
push ebx
push 0x7f
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsZoomed]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x14]
sar edi, 1
mov dword [esi + 0x3fc], edi
lea ebx, [edi + eax]
xor eax, eax
cmp dword [ebp - 4], eax
je 0x463d57
push 3
push eax
push eax
push 0x10
push 0x10
lea eax, [edi + ecx]
push dword [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
lea eax, [ebx + edi + 0x10]
push 0x104
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 2
mov ecx, esi
call fcn.0045eb08
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp + 8], eax
call fcn.00458695
test eax, eax
je 0x463da6
push dword [esi + 0x378]
jmp 0x463dab
push 0x808080
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x14]
push 0x48824
push eax
lea eax, [ebp - 0x23c]
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 8]
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x463e0b
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x469aa5
call fcn.00466f40
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0045ea84
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00466b38
mov dword [esi + 0x14], 0x401d54
mov dword [esi + 0x18], 0x64
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call fcn.0046633f
lea ecx, [esi + 0x28c]
mov byte [ebp - 4], 3
call fcn.0044febb
mov dword [esi + 0x148], edi
mov dword [esi + 0x288], edi
lea ecx, [esi + 0x39c]
mov byte [ebp - 4], 4
call fcn.0044febb
lea ecx, [esi + 0x3b4]
mov byte [ebp - 4], 5
call fcn.0044febb
lea ecx, [esi + 0x3cc]
mov byte [ebp - 4], 6
call fcn.0044febb
lea ecx, [esi + 0x3e4]
mov byte [ebp - 4], 7
call fcn.0044febb
mov dword [esi], 0x403840
mov dword [ebx], 0x403834
push 1
mov dword [esi + 0x14], 0x40382c
mov dword [esi + 0x1c], 0x403828
pop eax
mov dword [esi + 0x20], edi
or ecx, 0xffffffff
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x390], eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov word [esi + 0x78], di
mov word [esi + 0xb8], di
mov word [esi + 0x2e8], di
mov dword [esi + 0x374], edi
mov dword [esi + 0x378], edi
mov dword [esi + 0x54], 0x64
mov dword [esi + 0x37c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x394], edi
mov dword [esi + 0x398], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x380], edi
mov dword [esi + 0x384], edi
mov dword [esi + 0x38c], eax
mov dword [esi + 0x288], edi
mov dword [esi + 0x2ac], ecx
mov dword [esi + 0x2a4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4652a1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46530c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4652d4
push 2
call edi
shr eax, 8
test al, al
je 0x46530c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x465351
mov eax, dword [esi + 0x58]
or dword [esi + 0x58], 0xffffffff
and dword [esi + 0x5c], 0
cmp eax, 0xffffffff
je 0x465324
push eax
mov ecx, esi
call fcn.0046588d
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x13c], 4
call fcn.0046588d
cmp dword [esi + 0x3c], 0
je 0x465351
push dword [esi + 8]
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.004663ce
push dword [esi + 8]
mov ecx, edi
call fcn.00466389
pop edi
pop esi
leave
ret
Function at 0x466717
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov ebx, ecx
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x67
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push 0xd
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0x1132
mov dword [ebp - 0x58], 0xffff0002
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x401a88
Capabilities:
Set registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.004230f0
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
call fcn.00412000
mov edx, dword [esp + 0x20]
lea ecx, [esp + 4]
call fcn.00412000
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push dword [esp + 4]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegCreateKeyW
mov ebx, eax
and ebx, ebx
jne 0x401b0d
mov dword [esp + 0xc], 1
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
and ebx, ebx
jne 0x401b04
mov dword [esp + 0xc], 2
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0xc]
jmp 0x401b15
push dword [esp + 4]
call fcn.00423150
push dword [esp]
call fcn.00423150
add esp, 0x10
pop ebx
ret 0x10

Function at 0x403fc8
Capabilities:
Set registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004230f0
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.00412000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.00412000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 8]
call fcn.00412000
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegCreateKeyW
mov ebx, eax
and ebx, ebx
jne 0x404064
mov dword [esp + 0x10], 1
push dword [esp + 8]
call fcn.00420f90
mov ebx, eax
add ebx, ebx
push ebx
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
push dword [esp + 0x14]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
and ebx, ebx
jne 0x40405b
mov dword [esp + 0x10], 2
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x10]
jmp 0x40406c
push dword [esp + 8]
call fcn.00423150
push dword [esp + 4]
call fcn.00423150
push dword [esp]
call fcn.00423150
add esp, 0x14
pop ebx
ret 0x10

Function at 0x40fba8
Capabilities:
Query service status

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fbaf
call fcn.004230f0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00412000
lea eax, [esp + 4]
push reloc.WS2_32.dll_accept
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerW
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x40fc4c
push closesocket
push dword [esp + 4]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_OpenServiceW
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x40fc48
lea eax, [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.dll_QueryServiceStatus
lea ebp, [esp + 4]
mov ebx, dword [ebp + 4]
cmp ebx, 4
jne 0x40fc39
push dword [esp + 0x24]
call sub.ADVAPI32.dll_CloseServiceHandle
mov eax, 1
jmp 0x40fc4e
push dword [esp + 0x24]
call sub.ADVAPI32.dll_CloseServiceHandle
xor eax, eax
jmp 0x40fc4e
xor eax, eax
jmp 0x40fc4e
xor eax, eax
push dword [esp]
call fcn.00423150
add esp, 0x28
pop ebx
pop ebp
ret 4
Function at 0x413954
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4139ec
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4139e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4139e9
lea eax, [esi - 1]
push eax
push dword [0x784d3c]
call fcn.00422744
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4139eb
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4139e0
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x413ad3
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4139c6
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x413a92
push eax
call esi
test al, al
jns 0x413a92
push 0x11
call esi
test al, al
js 0x413a92
push 0x10
call esi
test al, al
js 0x413a92
push 0x12
call esi
test al, al
js 0x413a92
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x413a92
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x413a66
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x413a7d
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x413add
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x413add
test ebp, ebp
je 0x413ab6
push 0x11
call esi
test al, al
js 0x413aae
push 0x10
call esi
test al, al
js 0x413aae
push 0x12
call esi
test al, al
jns 0x413ab6
push 1
push ebp
call fcn.00413ae9
test ebx, ebx
je 0x413aca
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x413add
test edi, edi
je 0x413add
mov eax, dword [edi + 8]
jmp 0x413adf
and dword [esp + 0x14], 0
jmp 0x4139eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41406e
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x414106
push edi
push 0x784d80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x783a4c]
test edi, edi
je 0x4140da
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4140d3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x783a4c
call fcn.00422e45
pop ecx
pop ecx
jmp 0x4140d5
mov edi, dword [edi]
test edi, edi
jne 0x4140aa
pop ebx
mov eax, dword [0x77dc00]
mov esi, eax
inc eax
push 0x10
push 0x783a4c
mov dword [0x77dc00], eax
call fcn.00422e85
pop ecx
pop ecx
push 0x784d80
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x414241
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x414296
push dword [esp + 0x10]
push 0x4141c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x783a50]
test esi, esi
je 0x4142ef
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41428e
cmp byte [esi + 0x10], 0
je 0x41428e
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41426a
jmp 0x4142ef
mov esi, dword [0x783a50]
test esi, esi
je 0x4142ef
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4142e8
cmp byte [esi + 0x11], 0
je 0x4142c4
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4142db
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x783a50
call fcn.00422e45
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4142a3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41497f
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x784da4]
call fcn.004225a5
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x414a7f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4149d5
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4149cd
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x414a15
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x414a57
push 0x22
pop edx
cmp cx, dx
je 0x414a07
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4149f7
xor ecx, ecx
cmp word [eax], cx
je 0x414a57
mov ecx, eax
add eax, 2
jmp 0x414a59
test dx, dx
je 0x414a5f
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x414a07
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x414a4d
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x414a57
cmp cx, dx
je 0x414a4a
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x414a3a
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x414a1f
jmp 0x414a07
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x414a61
xor edx, edx
cmp dword [ebp], ebx
jne 0x414a6a
test edi, edi
jne 0x414a87
test edx, edx
je 0x414a6f
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4149c3
test edi, edi
jne 0x414a98
mov eax, ebx
jmp 0x414a9c
test esi, esi
je 0x414a98
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x414a9c
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x414ed3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x414f37
cmp dword [ebp + 0x10], 0x18
push esi
jne 0x414ef4
call fcn.0055ba50
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
jmp 0x414f08
cmp dword [ebp + 0x10], 2
jne 0x414f01
call fcn.0055baf0
jmp 0x414eea
call sub.MSVCRT.dll_wcslen
add eax, eax
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x18
jne 0x414f2b
push esi
call fcn.0055ba40
jmp 0x414f37
cmp dword [ebp + 0x10], 2
jne 0x414f37
push esi
call fcn.0055bae0
pop esi
pop ebp
ret 0xc