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

Disassembly:
push 0xffffffffffffffff
push 0x476dc8
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.0046f6ab
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441960
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.0046f5d9
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.0046be9d
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.0046be9d
push 1
push 0
push 0
mov ecx, esi
call fcn.0046be45
push 1
push 0
push 1
mov ecx, esi
call fcn.0046be45
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046f71d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442140
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476de8
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.0046f6ab
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441960
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.0046f5d9
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 0x442204
cmp dword [esp + 0x40], 1
jne 0x442202
cmp ecx, eax
jge 0x442204
mov eax, ecx
cmp eax, 0xc8
jge 0x442210
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441fc0
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.0046f71d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x442980
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476e53
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.0046a2bb
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.0046f953
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470e6f
test eax, eax
je 0x442a9c
mov ecx, dword [esp + 0x3c]
call fcn.0046f980
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 0x442a60
push edi
mov ecx, esi
call fcn.0046cfeb
mov ecx, esi
call fcn.00442c00
cmp dword [esp + 0x38], 1
jne 0x442a95
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.0046d126
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 0x4454b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4454e3
push esi
call fcn.004485b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4454dc
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 0x445569
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445552
mov eax, dword [esi + 8]
test eax, eax
je 0x445507
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 0x44554e
cmp eax, 2
je 0x445552
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4454fa
cmp eax, 3
je 0x44552d
cmp eax, 1
jne 0x4454fa
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 0x4454fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4454fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445590
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445578
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445590
add esp, 4
pop esi
ret

Function at 0x451100
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 0x4511a3
test eax, eax
jbe 0x4511a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4511a3
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 0x45114e
xor esi, esi
jmp 0x451154
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45117f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00405e50
add esi, eax
push esi
mov ebx, esi
call fcn.00405e50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x451160
pop ebp
test edi, edi
pop edi
jne 0x4511a3
test ebx, ebx
je 0x4511a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00459d70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4512e5
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 0x4513fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4513fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a70d
mov esi, eax
test esi, esi
je 0x4513fd
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 0x4513fd
mov ecx, esi
call fcn.00451250
cmp edi, eax
jge 0x4513fd
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 0x451383
mov dword [esp + 0x34], 1
jmp 0x4513de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4513fd
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.004507f0
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 0x454bf0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x454c3a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x454c69
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x454cab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46b0b0
Capabilities:
Get graphical window text

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

Function at 0x46c7a5
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 0x46c7e7
call fcn.0047227e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c7e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c7de
xor eax, eax
jmp 0x46c7ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c7f5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4727ae
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 0x4727dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4727fa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00472714
jmp 0x4727fa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4727fa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00472714
test edi, edi
mov eax, edi
jne 0x4727e4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov eax, dword [0x40418c]
sub esp, 0x24
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x401d95
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x14]
mov dword [0x40418c], ecx
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ebp, [edx + edi]
cmp edi, ebp
jae 0x401ebd
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x401eae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ecx]
cmp esi, ebp
jbe 0x401dd6
mov esi, ebp
cmp dword [esp + 0x20], 0x1000
jne 0x401e5f
mov ecx, dword [esp + 0x24]
test ch, 1
jne 0x401e5d
cmp ecx, 1
je 0x401e5d
cmp ecx, 8
je 0x401e29
cmp ecx, 0x80
je 0x401e29
lea edx, [esp + 0x38]
mov ecx, esi
push edx
sub ecx, eax
push 0x40
push ecx
push eax
call ebx
test eax, eax
je 0x401e94
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x401e75
mov eax, dword [esp + 0x10]
mov edx, 1
jmp 0x401e2b
xor edx, edx
cmp eax, esi
jae 0x401e47
mov ecx, dword [eax]
mov dword [eax], ecx
mov edi, dword [0x40418c]
add eax, edi
cmp eax, esi
jb 0x401e2f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x401e5d
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, esi
sub ecx, eax
push ecx
push eax
call ebx
test eax, eax
je 0x401e94
mov edi, esi
cmp edi, ebp
jb 0x401dae
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x18]
sub esi, eax
push esi
push eax
call ebx
mov eax, 0x8000ffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, 0x8000ffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x401ed0
Capabilities:
Enumerate pe sections
Get disk information
Inspect section memory permissions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x402022
lea eax, [esp + 0x10]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402022
mov ebx, dword [esp + 0x20]
mov ecx, ebx
and ecx, 0x1f
cmp cl, 0x1f
jne 0x401f0e
mov eax, 4
jmp 0x401f3b
cmp byte [esp + 0x10], 0x5c
jne 0x401f1c
mov eax, 4
jmp 0x401f3b
lea edx, [esp + 0x10]
mov byte [esp + 0x13], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, eax
mov eax, 1
sub ecx, 2
shl eax, cl
and eax, 0x1f
test ebx, eax
je 0x402013
mov esi, dword [edi + 0x3c]
add esi, edi
test bh, 0x10
je 0x401f61
mov eax, dword [esi + 0x54]
push eax
push edi
call fcn.00401d70
test eax, eax
jl 0x402027
jmp 0x401f65
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp word [esi + 6], bx
jbe 0x402027
xor edi, edi
xor edx, edx
lea ecx, [esi + edi]
mov dx, word [esi + 0x14]
lea edx, [ecx + edx + 0x18]
mov ecx, dword [edx + 0x24]
test ecx, 0x20000000
je 0x401f92
mov ecx, 0x100
jmp 0x401fd8
mov ebp, dword [esi + 0x88]
cmp ebp, dword [edx + 0xc]
jne 0x401fa4
mov ecx, 0x800
jmp 0x401fd8
test ecx, 0x2000000
je 0x401fb3
mov ecx, 0x1000
jmp 0x401fd8
test ecx, 0x80000000
je 0x401fc2
mov ecx, 0x400
jmp 0x401fd8
and ecx, 0x40000000
neg ecx
sbb ecx, ecx
and ecx, 0xfffff200
add ecx, 0x1000
mov ebp, dword [esp + 0x20]
test ebp, ecx
je 0x401ff7
mov ecx, dword [edx + 0xc]
mov ebp, dword [esp + 0x1c]
mov eax, dword [edx + 8]
add ecx, ebp
push eax
push ecx
call fcn.00401d70
test eax, eax
jl 0x402027
xor edx, edx
inc ebx
mov dx, word [esi + 6]
add edi, 0x28
cmp ebx, edx
jb 0x401f73
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x401660
Capabilities:
Create process on windows
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40167b
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
cmp dword [esi], eax
je 0x401680
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x401670
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x1c]
sub eax, 1
je 0x40170d
sub eax, 1
je 0x4016c5
sub eax, 1
jne 0x401731
push 0x411060
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0x20]
push 0
push eax
push 0
call fcn.00402684
add esp, 0xc
push 1
push 0
push 0
mov esi, eax
push esi
push str.explore
jmp 0x4016eb
push 0x411060
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esi + 0x20]
push 0
push ecx
push 0
call fcn.00402684
add esp, 0xc
push 1
push 0
push 0
mov esi, eax
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x401700
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push esi
call fcn.004025f6
add esp, 4
xor eax, eax
pop esi
ret
push 0x411060
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esi + 0x20]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x401731
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
pop esi
ret
Function at 0x401790
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
mov eax, dword [0x40f348]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebp
push esi
push edi
push ebx
push 0x100
lea ecx, [esp + 0x118]
push ecx
push 0x40c2c4
xor ebp, ebp
push ebp
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x28
lea edi, [esp + 0x114]
call fcn.00402a05
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4018eb
mov eax, dword [section..data]
add eax, 1
mov dword [esi], eax
mov dword [section..data], eax
mov eax, 0x40c2c4
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebp
cmp byte [esp + 0x110], 0
je 0x4018e9
call fcn.00401760
mov ebp, eax
test ebp, ebp
je 0x40184e
mov eax, dword [esp + 0xc]
push ebx
push 0x100
lea edx, [esp + 0x18]
push edx
push 0x40c2c4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 1]
cmp eax, 6
ja case.default.0x401856
jmp dword [eax*4 + 0x401904]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x18]
call fcn.00401620
add esp, 8
jmp case.default.0x401856
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
lea edx, [esp + 0x18]
call fcn.00401620
add esp, 8
jmp case.default.0x401856
lea ecx, [esp + 0x10]
push ecx
call fcn.0040278c
add esp, 4
test eax, eax
je case.default.0x401856
mov dword [esi + 0x14], eax
jmp case.default.0x401856
lea edx, [esp + 0x10]
push edx
call fcn.0040278c
mov dword [esi + 0x18], eax
jmp 0x4018c1
push 1
jmp 0x4018b8
push 2
jmp 0x4018b8
push 3
lea eax, [esp + 0x14]
call fcn.00401740
add esp, 4
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4018d0
sub eax, edx
cmp byte [edi + eax + 1], cl
lea edi, [edi + eax + 1]
jne 0x401827
mov eax, esi
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004022fe
add esp, 0x208
ret
Function at 0x401920
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40f348]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0x100
lea eax, [esp + 0x18]
push eax
push 0x40c2c4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
cmp byte [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x4019e5
push ebp
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov eax, str.button
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401978
sub eax, edx
push eax
push str.button
push esi
call fcn.00402bb8
add esp, 0xc
test eax, eax
jne 0x4019b0
push esi
call fcn.00401790
add esp, 4
test eax, eax
je 0x4019ca
test edi, edi
jne 0x4019ab
mov edi, eax
jmp 0x4019ae
mov dword [ebp + 0x24], eax
mov ebp, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4019b5
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x401970
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004022fe
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004022fe
add esp, 0x108
ret

Function at 0x402110
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40f348]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push edi
mov edi, dword [esp + 0x11c]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402140
lea eax, [esp + 0x10]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402153
mov ecx, dword [str.Mutex]
mov dx, word [0x40c2d4]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4104b0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021de
lea ecx, [esp + 8]
push ecx
push 0x402090
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [0x4104b0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4104b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004022fe
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004022fe
add esp, 0x10c
ret

Function at 0x402200
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x402249
cmp byte [eax], 0
je 0x402249
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4104b0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402249
mov eax, dword [0x4104b0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x4104b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
xor eax, eax
ret
Function at 0x402250
Capabilities:
Read .ini file

Disassembly:
push esi
push 0x350
call fcn.00402a05
mov esi, eax
add esp, 4
test esi, esi
je 0x4022fc
push ebx
push edi
mov edi, dword [esp + 0x10]
push edi
push 0
push str.Product
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x40
mov dword [esi], eax
lea eax, [esi + 4]
push eax
push 0x40c2c4
push str.Name
push str.ProductInfo
call ebx
push edi
push 0x104
lea ecx, [esi + 0x44]
push ecx
push str.autorun.bmp
push str.Background
push str.ProductInfo
call ebx
push edi
push 0x104
lea edx, [esi + 0x148]
push edx
push str.autorun.wav
push str.Sound
push str.ProductInfo
call ebx
push edi
push 0x104
lea eax, [esi + 0x24c]
push eax
push 0x40c2c4
push str.Mutex
push str.ProductInfo
call ebx
pop edi
mov eax, esi
pop ebx
pop esi
ret

Function at 0x4022fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f348]
jne 0x402308
repz ret
jmp fcn.00402e63