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

Disassembly:
push 0xffffffffffffffff
push 0x4927c8
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.0048b37e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00453640
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.0048b2ac
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.00487b75
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.00487b75
push 1
push 0
push 0
mov ecx, esi
call fcn.00487b1d
push 1
push 0
push 1
mov ecx, esi
call fcn.00487b1d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b3f0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x453e20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4927e8
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.0048b37e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00453640
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.0048b2ac
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 0x453ee4
cmp dword [esp + 0x40], 1
jne 0x453ee2
cmp ecx, eax
jge 0x453ee4
mov eax, ecx
cmp eax, 0xc8
jge 0x453ef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00453ca0
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.0048b3f0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x454660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492853
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.00485f90
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.0048b626
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048cb42
test eax, eax
je 0x45477c
mov ecx, dword [esp + 0x3c]
call fcn.0048b653
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 0x454740
push edi
mov ecx, esi
call fcn.00488cbf
mov ecx, esi
call fcn.004548e0
cmp dword [esp + 0x38], 1
jne 0x454775
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.00488dfa
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 0x4571a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4571d3
push esi
call fcn.0045a2a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4571cc
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 0x457259
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457242
mov eax, dword [esi + 8]
test eax, eax
je 0x4571f7
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 0x45723e
cmp eax, 2
je 0x457242
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4571ea
cmp eax, 3
je 0x45721d
cmp eax, 1
jne 0x4571ea
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 0x4571ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4571ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00457280
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457268
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00457280
add esp, 4
pop esi
ret

Function at 0x4632b0
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 0x463353
test eax, eax
jbe 0x463353
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x463353
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 0x4632fe
xor esi, esi
jmp 0x463304
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46332f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041a550
add esi, eax
push esi
mov ebx, esi
call fcn.0041a550
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x463310
pop ebp
test edi, edi
pop edi
jne 0x463353
test ebx, ebx
je 0x463353
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00475850
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x463495
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 0x4635ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4635ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004863e2
mov esi, eax
test esi, esi
je 0x4635ad
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 0x4635ad
mov ecx, esi
call fcn.00463400
cmp edi, eax
jge 0x4635ad
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 0x463533
mov dword [esp + 0x34], 1
jmp 0x46358e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4635ad
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.004629b0
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 0x486d86
Capabilities:
Get graphical window text

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

Function at 0x488479
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 0x4884bb
call fcn.0048df2d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4884bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4884b2
xor eax, eax
jmp 0x4884c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004884c9
pop edi
pop esi
pop ebx
ret 4
Function at 0x48e45d
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 0x48e48b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e4a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e3c3
jmp 0x48e4a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e4a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e3c3
test edi, edi
mov eax, edi
jne 0x48e493
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x46f8a8
test al, al
je 0x40114c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x401125
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401186
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x40116b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call fcn.0044f9d0
mov edx, dword [edi]
push edx
call fcn.0044f9d0
mov eax, dword [edi - 0x20]
push eax
call fcn.0044f9d0
mov ecx, dword [edi + 8]
push ecx
call fcn.0044f9d0
add esp, 0x10
add edi, 4
dec ebx
jne 0x40118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x4012d5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x401430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x401320
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec ebp
jne 0x40132a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x408552
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0045087f
mov ebp, dword [esp + 0x14]
lea eax, [ebp + 6]
cmp eax, 5
ja case.default.0x408576
jmp dword [eax*4 + 0x408738]
mov dword [esi + 0x74], 0xfffffffa
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xffffffff
push ecx
mov dword [esi + 0x68], 3
push 4
jmp 0x4085e3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffe
push ecx
mov dword [esi + 0x60], 3
push 0
jmp 0x4085e3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffd
push ecx
mov dword [esi + 0x64], 3
push 1
jmp 0x4085e3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffc
push ecx
mov dword [esi + 0x6c], 3
push 5
mov ecx, esi
call fcn.0040aa40
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x1c]
push 0
push 0x64
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffb
push ecx
push 7
mov ecx, esi
mov dword [esi + 0x70], 3
call fcn.0040aa40
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, esi
call fcn.00453665
mov ebx, dword [esp + 0x18]
test al, 0x40
je 0x408667
test bl, 8
jne 0x408667
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x408677
test al, 0x80
je 0x408696
test bl, 8
je 0x408696
mov eax, dword [esi + 0x40]
test eax, eax
je 0x408696
mov eax, dword [esi + 0x1c]
push 0
push 0x12c
push 2
push eax
mov dword [esi + 0x74], ebp
mov dword [esi + 0x5c], 0xfffffffa
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40869d
mov dword [esi + 0x74], 0xfffffffa
mov ecx, esi
call fcn.00453665
test al, 0x10
je 0x4086bc
mov eax, ebx
and eax, 8
je 0x4086bc
push eax
push 1
push ebp
mov ecx, esi
call fcn.0040a890
jmp 0x4086f1
mov edx, dword [esi + 0x54]
xor ecx, ecx
cmp ebp, edx
setne cl
and ebx, 8
mov edi, ecx
push ebx
push 1
push ebp
mov ecx, esi
call fcn.0040a9a0
test edi, edi
je 0x4086f1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x54]
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.00408750
mov eax, dword [esi + 0x160]
xor edi, edi
test eax, eax
jle 0x40872c
mov ebx, dword [esp + 0x20]
mov edx, dword [esi + 0x15c]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x408721
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edi
push 1
mov ecx, esi
call fcn.00408750
mov eax, dword [esi + 0x160]
inc edi
cmp edi, eax
jl 0x408701
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x40e8a0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x40e8b6
mov eax, 0x80
jmp 0x40e8b8
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x410070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46a917
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.00453eb0
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0044cc03
cmp eax, 0xffffffff
jne 0x4100d8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00453eb0
mov dword [esp + 0x14], edi
jmp 0x41019a
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0044cb8b
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0044cc03
cmp eax, 0xffffffff
jne 0x41010d
push 0x48f098
lea ecx, [esp + 0x10]
call fcn.004542c4
jmp 0x410178
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0044cb8b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00454274
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0045413b
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.0044cb0f
mov eax, dword [eax]
push 0x487564
push eax
call dword [0x47a1e0]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0045413b
test bl, bl
je 0x410178
push 0x487564
lea ecx, [esp + 0x10]
call fcn.004544a3
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00453eb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.0045413b
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0045413b
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0045413b
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x410d70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a98b
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
je 0x410dc1
mov edi, 0x487564
mov dword [esp + 0x14], edi
jmp 0x410dcd
mov dword [esp + 0x14], 0x48f098
mov edi, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x164]
push str._s_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x410e0a
xor al, al
jmp 0x410f54
cmp byte [esp + 0x48], 0x2e
je 0x410f37
test byte [esp + 0x1c], 0x10
je 0x410e4d
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push edi
push ebx
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x260]
mov ecx, esi
push edx
call fcn.00410d70
jmp 0x410f37
mov eax, dword [0x48adc4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edi
push ebx
push str._s_s_s
push edx
mov dword [esp + 0x380], 0
call fcn.0044cfab
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x410ec6
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.0044ede2
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x410ec6
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x410eb2
mov edi, dword [esi + 0xb4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xb0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xb0], edx
call fcn.0044cfbe
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00454274
mov eax, dword [esi + 0xac]
test eax, eax
je 0x410f0f
mov dword [eax], edi
jmp 0x410f15
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.0045413b
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410e0a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4
Function at 0x411da0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00402f10
mov ecx, dword [esi + 0x654]
push 1
add ecx, 0x24
mov ebp, eax
call fcn.00402f10
mov edi, dword [eax + 4]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
or ecx, edi
or edx, ebx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x654]
mov edx, dword [eax + 4]
add ecx, 0x24
mov dword [esp + 0x1c], edx
call fcn.00402d50
push ebx
push 0x80
push 3
push ebx
push 2
mov edi, eax
push 0x40000000
lea ecx, [esi + 0x60]
push ebx
sub edi, 9
call fcn.004544f7
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x18]
push 0
push edx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x411e63
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x10], ecx
jl 0x411e41
cmp dword [esp + 0x10], 0xf
jne 0x411e9e
test eax, eax
jg 0x411e9e
lea eax, [esi + 0x60]
push 0x4875f8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004543d0
mov ecx, dword [eax]
mov edx, dword [esi + 0x1c]
push 0x30
push 0x4875ac
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.0045413b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x80]
add edx, eax
mov dword [esi + 0x80], edx
mov ecx, dword [esi + 0x84]
adc ecx, 0
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.00412190
mov al, byte [esi + 0x5c]
test al, al
je 0x411ee3
mov ecx, esi
call fcn.00412160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], edx
mov edx, dword [esi + 0x654]
lea ecx, [esp + 0x20]
push 9
push ecx
mov ecx, dword [esi + 0x658]
push edx
mov byte [esp + 0x2c], 7
call fcn.0041c270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret