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

Disassembly:
push 0xffffffffffffffff
push 0x46d7a8
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.004669a8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b5d0
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.004668d6
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.0046319a
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.0046319a
push 1
push 0
push 0
mov ecx, esi
call fcn.00463142
push 1
push 0
push 1
mov ecx, esi
call fcn.00463142
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466a1a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bdb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d7c8
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.004669a8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b5d0
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.004668d6
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 0x43be74
cmp dword [esp + 0x40], 1
jne 0x43be72
cmp ecx, eax
jge 0x43be74
mov eax, ecx
cmp eax, 0xc8
jge 0x43be80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bc30
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.00466a1a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c5f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d833
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.004615ba
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.00466c50
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046816c
test eax, eax
je 0x43c70c
mov ecx, dword [esp + 0x3c]
call fcn.00466c7d
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 0x43c6d0
push edi
mov ecx, esi
call fcn.004642e5
mov ecx, esi
call fcn.0043c870
cmp dword [esp + 0x38], 1
jne 0x43c705
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.00464420
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 0x43f120
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f153
push esi
call fcn.00442230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f14c
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 0x43f1d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f1c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43f177
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 0x43f1be
cmp eax, 2
je 0x43f1c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f16a
cmp eax, 3
je 0x43f19d
cmp eax, 1
jne 0x43f16a
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 0x43f16a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f16a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f200
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f1e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f200
add esp, 4
pop esi
ret

Function at 0x44ddd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46dfa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x44de13
mov eax, dword [esi]
jmp 0x44de15
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x44de36
push 0x48f530
push edi
push eax
call fcn.0045d891
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x44de96
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x44de96
mov eax, dword [esi]
test eax, eax
je 0x44de7d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x44de8d
push eax
call fcn.0045fd49
add esp, 4
push esi
call fcn.0045fd49
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4623b0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4623e8
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.0046043a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460412
jmp 0x4623f4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463aa2
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 0x463ae4
call fcn.00469552
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463ae4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463adb
xor eax, eax
jmp 0x463aec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463af2
pop edi
pop esi
pop ebx
ret 4

Function at 0x469a82
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 0x469ab0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469ace
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004699e8
jmp 0x469ace
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469ace
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004699e8
test edi, edi
mov eax, edi
jne 0x469ab8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x495ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e000]
push edi
jmp 0x495aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x495af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495ae0
mov eax, 1
add ebx, ebx
jne 0x495b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x495b14
jne 0x495b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b33
dec eax
add ebx, ebx
jne 0x495b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x495af8
add ebx, ebx
jne 0x495b2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x495b85
xor ecx, ecx
sub eax, 3
jb 0x495b4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x495bba
sar eax, 1
mov ebp, eax
jmp 0x495b56
add ebx, ebx
jne 0x495b56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b24
inc ecx
add ebx, ebx
jne 0x495b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x495b24
add ebx, ebx
jne 0x495b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x495b66
jne 0x495b82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x495b66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x495ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x495b96
jmp 0x495ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x495ba4
add edi, ecx
jmp 0x495ae6
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x495bc2
cmp byte [edi], 0x1b
jne 0x495bc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x495bc7
lea edi, [esi + 0x92000]
mov eax, dword [edi]
or eax, eax
je 0x495c3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x969fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x96b14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x495bf4
mov ecx, edi
jns 0x495c23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x96b18]
or eax, eax
je 0x495c39
mov dword [ebx], eax
add ebx, 4
jmp 0x495c11
call dword [esi + 0x96b28]
mov ebp, dword [esi + 0x96b1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x495c73
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.00408f7b
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.00408f7b
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.00408f7b
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.00408f7b
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.00408f7b
mov dword [0x42565c], eax
call fcn.00408f7b
test eax, eax
jns 0x408ea1
push 8
call fcn.00408f7b
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.00408f7b
pop ecx
push 1
call fcn.00408f7b
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.00408f7b
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.00408f7b
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.00408f7b
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4032e0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
push 0x416184
push dword [ebp + 8]
call fcn.0040d87e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x403519
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, 0x80000000
push 0x4178cc
push 0
call fcn.0040d87e
push 0x416214
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0040d87e
push 0x416214
push 0
mov dword [ebp - 4], eax
call fcn.0040d87e
push 0x416214
push 0
mov dword [ebp + 8], eax
call fcn.0040d87e
mov dword [ebp - 8], eax
xor eax, eax
add esp, 0x20
cmp dword [ebp - 4], eax
je 0x403521
cmp dword [ebp + 8], eax
je 0x403521
cmp dword [ebp - 8], eax
je 0x403521
push 0x4178cc
push eax
call fcn.0040d87e
pop ecx
test eax, eax
pop ecx
jne 0x403521
mov eax, dword [ebp - 4]
push eax
cmp byte [eax], 0x2e
jne 0x4033b6
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d330
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x14
jmp 0x4033d8
lea eax, [ebp - 0x21c]
push 0x416208
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x18
movsx eax, byte [ebp - 0x118]
push eax
call fcn.0040d922
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x118]
push eax
call fcn.0040d420
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push dword [ebp - 8]
call fcn.0040d420
pop ecx
push eax
lea eax, [ebp - 0x118]
push dword [ebp - 8]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp + 8]
cmp byte [eax], 0x22
jne 0x40345c
push eax
call fcn.0040d420
pop ecx
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x22
lea eax, [eax + ecx - 1]
mov dword [ebp - 4], eax
je 0x40344f
dec eax
cmp byte [eax], 0x22
jne 0x403446
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 8]
jbe 0x40345c
and byte [eax], 0
inc dword [ebp + 8]
jmp 0x403460
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._sDefaultIcon
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s_0
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d420
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4034b6
dec dword [ebp + 8]
mov byte [eax], 0x22
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s_shellopencommand
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s____1_
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d420
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push 0x416184
push dword [ebp - 0xc]
call fcn.0040d87e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x403317
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40351c
Function at 0x40370b
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x24]
push edi
push eax
push dword [esi + 8]
push 0x148
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x4178e4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x18]
call ebx
test byte [esi + 0x10], 1
mov dword [esp + 0x20], eax
je 0x403764
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 0xe
jmp 0x403779
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 8
call edi
lea edi, [esi + 0x1c]
push ebp
push edi
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [edi]
push dword [esi + 0x18]
neg edi
sbb edi, edi
and edi, 2
add edi, 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov ebp, eax
push dword [esi + 8]
push 0x150
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
mov dword [esp + 0x20], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
shr eax, 0x10
push eax
push ebp
call ebx
push 0x8800c6
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
movzx eax, word [esp + 0x18]
push eax
push ebp
call ebx
mov eax, dword [esi + 0x20]
push 0xee0086
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x10]
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x14]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [esi + 0x18]
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d420
pop ecx
add edi, 0x16
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x20]
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x1c]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x24]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x10]
push dword [esi + 0x18]
call ebp
push dword [esp + 0x20]
push dword [esi + 0x18]
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x403c91
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
xor edi, edi
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x184
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d330
lea eax, [ebp - 0x118]
push 0x416250
push eax
call fcn.0040d340
add esp, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowWord]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403d87
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowWord]
cmp ax, 4
ja 0x403e08
push dword [ebp + 0xc]
call fcn.00404d5a
test eax, eax
pop ecx
jne 0x403d7d
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d330
lea eax, [ebp - 0x118]
push 0x416250
push eax
call fcn.0040d340
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403d1d
cmp dword [ebp - 4], 0xffffffff
je 0x403e82
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [0x4318c0]
mov edi, dword [eax + 0x675c]
imul edi, edi, 0xe
test byte [ebp - 0x258], 0x10
je 0x403e55
lea eax, [ebp - 0x22b]
push eax
call fcn.00413146
dec eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d330
add esp, 0xc
cmp byte [ebp - 0x118], 0x2e
jne 0x403e1a
cmp byte [ebp - 0x117], 0x2e
jne 0x403e11
cmp byte [ebp - 0x116], 0
jne 0x403e1a
push dword [ebp + 0xc]
call fcn.0040d420
cmp eax, 4
pop ecx
jb 0x403e55
lea eax, [ebp - 0x118]
push 0x41624c
push eax
call fcn.0040d330
pop ecx
pop ecx
jmp 0x403e1a
mov eax, dword [ebp + 0xc]
and byte [eax + 3], 0
jmp 0x403e90
cmp byte [ebp - 0x117], 0
je 0x403e55
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d420
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp dword [ebp - 0x10], edi
jle 0x403e42
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x180
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403da0
push eax
push edi
push 0x195
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x186
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebx
leave
ret