joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045f7fa
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436640
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045f728
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045bfec
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045bfec
push 1
push 0
push 0
mov ecx, esi
call fcn.0045bf94
push 1
push 0
push 1
mov ecx, esi
call fcn.0045bf94
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045f86c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436e20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045f7fa
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436640
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045f728
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436ee4
cmp dword [esp + 0x40], 1
jne 0x436ee2
cmp ecx, eax
jge 0x436ee4
mov eax, ecx
cmp eax, 0xc8
jge 0x436ef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436ca0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045f86c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437670
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466603
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045a40a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045faa2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00460fbe
test eax, eax
je 0x43778c
mov ecx, dword [esp + 0x3c]
call fcn.0045facf
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437750
push edi
mov ecx, esi
call fcn.0045d13c
mov ecx, esi
call fcn.004378f0
cmp dword [esp + 0x38], 1
jne 0x437785
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045d277
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43a1c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a1f3
push esi
call fcn.0043d2b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a1ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a279
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a262
mov eax, dword [esi + 8]
test eax, eax
je 0x43a217
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a25e
cmp eax, 2
je 0x43a262
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a20a
cmp eax, 3
je 0x43a23d
cmp eax, 1
jne 0x43a20a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a20a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a20a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a2a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a288
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a2a0
add esp, 4
pop esi
ret

Function at 0x445db0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x445e53
test eax, eax
jbe 0x445e53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x445e53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x445dfe
xor esi, esi
jmp 0x445e04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x445e2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00447d50
add esi, eax
push esi
mov ebx, esi
call fcn.00447d50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x445e10
pop ebp
test edi, edi
pop edi
jne 0x445e53
test ebx, ebx
je 0x445e53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044a1c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x445f95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4460ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4460ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045a85c
mov esi, eax
test esi, esi
je 0x4460ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4460ad
mov ecx, esi
call fcn.00445f00
cmp edi, eax
jge 0x4460ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x446033
mov dword [esp + 0x34], 1
jmp 0x44608e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4460ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00445500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45b1ff
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45b237
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004592b6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045928e
jmp 0x45b243
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45c8f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45c936
call fcn.004623a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45c936
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45c92d
xor eax, eax
jmp 0x45c93e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045c944
pop edi
pop esi
pop ebx
ret 4
Function at 0x4628d9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x462907
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462925
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046283f
jmp 0x462925
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462925
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046283f
test edi, edi
mov eax, edi
jne 0x46290f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4032be
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4032c5
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x41009f
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call fcn.00409762
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x403374
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x403374
jmp 0x403376
jmp 0x403347
mov eax, dword [esp + 0x4c]
jmp 0x40337e
push dword [esp]
call fcn.0040e0f0
push dword [esp + 4]
call fcn.0040e0f0
push dword [esp + 8]
call fcn.0040e0f0
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4033a0
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040b2e0
mov dword [esp], eax
push dword [0x411750]
push dword [0x411750]
call fcn.0040b48d
lea eax, [esp + 8]
push eax
call fcn.0040dfe0
push dword [esp]
push 0
push 0x41001e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x411750]
push dword [0x411750]
push dword [esp + 8]
call fcn.0040b1f0
lea eax, [0x41144c]
push eax
call fcn.0040dfe0
push dword [esp]
call fcn.0040b300
push dword [0x41144c]
call fcn.0040b51c
push dword [0x41144c]
call fcn.0040b52a
push dword [0x411750]
push dword [0x411750]
call fcn.0040b3c5
lea eax, [0x4113f4]
push eax
call fcn.0040dfe0
push dword [esp + 0x14]
pop eax
call fcn.0040b350
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403479
mov edx, dword [0x41144c]
push dword [0x411750]
call fcn.0040e090
lea eax, [0x4113f4]
push eax
call fcn.0040dfe0
mov dword [esp + 0xc], 2
jmp 0x40348b
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40348b
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040b350
mov dword [0x411418], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040b350
mov dword [0x411380], eax
mov eax, 1
jmp 0x4034be
push dword [esp + 4]
call fcn.0040e0f0
add esp, 0xc
pop ebx
ret 4
Function at 0x403bcf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bd5
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403bfc
mov eax, 1
jmp 0x403bfe
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403c03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403c59
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x411384], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x411394], eax
push dword [esp]
mov edx, 0x41007e
pop ecx
call fcn.0040e060
jne 0x403c8b
push dword [esp]
mov edx, 0x410084
pop ecx
call fcn.0040e060
jne 0x403c8b
push dword [esp]
mov edx, str.NOPSX
pop ecx
call fcn.0040e060
jne 0x403c8b
jmp 0x403c92
mov eax, 1
jmp 0x403c94
xor eax, eax
and eax, eax
je 0x403cff
push dword [0x411394]
call fcn.0040b2e0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x411394]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x403cf5
mov ebx, dword [0x411384]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.0040b350
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040b360
inc dword [esp + 0xc]
jno 0x403caf
push dword [esp + 8]
pop eax
mov dword [0x411384], eax
mov eax, dword [esp + 4]
jmp 0x403d07
push dword [esp]
call fcn.0040e0f0
add esp, 0x18
pop ebx
ret 8
Function at 0x403fc3
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x411418]
cmp ebx, 1
jne 0x404080
push dword [0x411470]
call fcn.004088ab
mov ebx, eax
and ebx, ebx
jle 0x404027
push dword [0x411470]
call fcn.004088b5
push dword [0x411470]
call fcn.004088ca
or eax, eax
je 0x404027
mov ebp, dword [0x411474]
push dword [ebp + 8]
call fcn.0040cb50
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x404025
mov ebp, dword [0x411474]
push dword [ebp + 8]
call fcn.0040b51c
jmp 0x403ff3
push dword [0x411478]
call fcn.004088ab
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x404080
push 5
push 0
push 1
push dword [0x411478]
call fcn.004078e0
push dword [0x411478]
call fcn.004088b5
push dword [0x411478]
call fcn.004088ca
or eax, eax
je 0x404080
mov ebp, dword [0x41147c]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x404061
mov eax, 1
jmp 0x404089
add esp, 4
pop ebx
pop ebp
ret

Function at 0x4081fd
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40824c
push dword [esp + 0x10]
push 0x40817b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x411488]
cmp esi, ebx
je 0x4082a0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x408244
cmp byte [esi + 0x10], bl
je 0x408244
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408221
jmp 0x4082a0
mov esi, dword [0x411488]
cmp esi, ebx
je 0x4082a0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x408299
cmp byte [esi + 0x11], bl
je 0x408276
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40828c
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x411488
call fcn.0040dc0d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x408257
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4092e4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x4117c4]
call fcn.0040d53a
mov edi, eax
test edi, edi
je 0x409346
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40930d
push dword [esp + 0xc]
push edi
call eax
jmp 0x409346
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040e220
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040e350
pop esi
pop ebx
pop edi
ret 8
Function at 0x40966f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x409758
mov eax, dword [ebp - 0xc]
dec eax
je 0x40973b
dec eax
jne 0x409758
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x4096ce
cmp byte [ebp - 0x1e], 1
jne 0x4096ce
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x409737
dec eax
je 0x409733
dec eax
je 0x409711
dec eax
jne 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x409705
dec eax
je 0x4096f9
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40972f
dec eax
je 0x40972b
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x409758
push 0x3c
jmp 0x409757
push 0x32
jmp 0x409757
push 0x14
jmp 0x409757
push 5
jmp 0x409757
cmp dword [ebp - 0x14], 0
je 0x409755
cmp dword [ebp - 0x14], 0xa
je 0x409751
cmp dword [ebp - 0x14], 0x5a
jne 0x409758
push 0x28
jmp 0x409757
push 0x1e
jmp 0x409757
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x40a6c1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40a73d
push 9
call esi
test bl, al
je 0x40a73d
push 0x11
call esi
test bl, al
jne 0x40a73d
push 0x10
call esi
test bl, al
jne 0x40a73d
push 0x12
call esi
test bl, al
jne 0x40a73d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40a73d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40a73d
xor eax, eax
jmp 0x40a7bf
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40a766
push 0x11
call esi
test bl, al
jne 0x40a75e
push 0x10
call esi
test bl, al
jne 0x40a75e
push 0x12
call esi
test bl, al
je 0x40a766
push 1
push ebp
call fcn.0040a67a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40a77c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40a7bc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40a7bc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40a7bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40a7bc
dec esi
push esi
push dword [0x4117cc]
call fcn.0040d53a
test eax, eax
je 0x40a7bc
mov eax, dword [eax + 8]
jmp 0x40a7be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40a881
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4116dc], eax
cmp eax, edi
je 0x40a8b4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4116e0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4116d8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a8f2
cmp dword [ebp - 0xc], 1
je 0x40a903
cmp dword [ebp - 0xc], 2
jne 0x40a8f2
cmp dword [ebp - 0x18], 5
jb 0x40a903
jne 0x40a8f2
cmp dword [ebp - 0x14], edi
jne 0x40a8f2
mov dword [0x4116d8], edi
cmp dword [0x4116d8], edi
je 0x40a909
call fcn.0040a7c8
test eax, eax
jne 0x40a909
mov dword [0x4116d8], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40b4ee
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40b517
test byte [esp + 8], 2
je 0x40b50b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b519
xor eax, eax
ret 8

Function at 0x40b52a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40b59a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40b57c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40b57b
cmp dl, 0x5c
je 0x40b57b
cmp dl, 0x2f
jne 0x40b586
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40b569
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40b59c
xor eax, eax
leave
ret 4

Function at 0x40b670
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40b6a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4