joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x4ac5bd
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4ac536
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4ac536
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4ac51d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4ac51d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004ad670
mov ebp, eax
test ebp, ebp
je 0x4ac515
push ebp
mov ecx, esi
call fcn.004aeaf0
test eax, eax
je 0x4ac515
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4ac515
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4ac4d6
xor eax, eax
jmp 0x4ac4de
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004af490
inc ebx
xor ebp, ebp
jmp 0x4ac467
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4ac440
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.004ad980
test eax, eax
pop ebx
je 0x4ac5bd
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004ad670
mov edi, eax
cmp edi, ebp
je 0x4ac5bd
push edi
mov ecx, esi
call fcn.004aeaf0
test eax, eax
je 0x4ac5bd
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004adbc0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004adc30
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004af490
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4b5240
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e7cb1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4b527d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004dc826
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004dbb6e
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.004adf80
lea ecx, [esp + 8]
call fcn.004dcad1
lea ecx, [esp + 0x30]
call fcn.004dbcd2
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004dbb6e
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.004ae3f0
lea ecx, [esp + 0x74]
call fcn.004dbcd2
lea ecx, [esp + 8]
call fcn.004dcad2
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.004abb90
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.004ade90
mov ecx, esi
call fcn.004aea30
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.004ade90
mov ecx, esi
call fcn.004aea30
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.004ade90
mov ecx, esi
call fcn.004aea30
mov ecx, dword [edi + 0x5c]
call fcn.004ab370
push eax
mov ecx, esi
call fcn.004ab380
mov ecx, dword [edi + 0x5c]
call fcn.004ab930
push eax
mov ecx, esi
call fcn.004ab8d0
mov ecx, dword [edi + 0x5c]
call fcn.004aba50
push eax
mov ecx, esi
call fcn.004aba00
mov ecx, dword [edi + 0x5c]
push 0
call fcn.004aac50
push eax
mov ecx, esi
call fcn.004aac60
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004dbc4a
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004dbc4a
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004dc8eb
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4b6ae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e7ed7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004d2912
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004d2912
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004b7600
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4b7650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e7fb0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004dec2c
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4b7683
xor al, al
jmp 0x4b77af
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4b76a5
xor al, al
jmp 0x4b77af
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4b76b8
xor al, al
jmp 0x4b77af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4b76cc
xor al, al
jmp 0x4b77af
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004d29c2
test eax, eax
jne 0x4b7700
xor al, al
jmp 0x4b77af
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x543ec4
mov dword [esp + 0x20], ebp
call fcn.004dec2c
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004db823
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004db87a
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4b7794
mov ax, word [ebx]
test ax, ax
je 0x4b7786
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004b77d0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4b776a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004db87a
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4b7d10
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004dcf0f
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4b7d56
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004c3184
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x563c74
push ecx
call fcn.004c4bcd
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4d6d0c
Capabilities:
Get graphical window text

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

Function at 0x4d8507
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 0x4d8549
call fcn.004dec2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d8549
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d8540
xor eax, eax
jmp 0x4d8551
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d8557
pop edi
pop esi
pop ebx
ret 4

Function at 0x4df15c
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 0x4df18a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4df1a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004df0c2
jmp 0x4df1a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4df1a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004df0c2
test edi, edi
mov eax, edi
jne 0x4df192
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], 0x46f8a0
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.0044f980
mov edx, dword [edi]
push edx
call fcn.0044f980
mov eax, dword [edi - 0x20]
push eax
call fcn.0044f980
mov ecx, dword [edi + 8]
push ecx
call fcn.0044f980
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 0x408562
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.00450830
mov ebp, dword [esp + 0x14]
lea eax, [ebp + 6]
cmp eax, 5
ja case.default.0x408586
jmp dword [eax*4 + 0x408748]
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 0x4085f3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffe
push ecx
mov dword [esi + 0x60], 3
push 0
jmp 0x4085f3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffd
push ecx
mov dword [esi + 0x64], 3
push 1
jmp 0x4085f3
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], 0xfffffffc
push ecx
mov dword [esi + 0x6c], 3
push 5
mov ecx, esi
call fcn.0040aa50
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.0040aa50
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.00453615
mov ebx, dword [esp + 0x18]
test al, 0x40
je 0x408677
test bl, 8
jne 0x408677
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x408687
test al, 0x80
je 0x4086a6
test bl, 8
je 0x4086a6
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4086a6
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 0x4086ad
mov dword [esi + 0x74], 0xfffffffa
mov ecx, esi
call fcn.00453615
test al, 0x10
je 0x4086cc
mov eax, ebx
and eax, 8
je 0x4086cc
push eax
push 1
push ebp
mov ecx, esi
call fcn.0040a8a0
jmp 0x408701
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.0040a9b0
test edi, edi
je 0x408701
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.00408760
mov eax, dword [esi + 0x160]
xor edi, edi
test eax, eax
jle 0x40873c
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 0x408731
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edi
push 1
mov ecx, esi
call fcn.00408760
mov eax, dword [esi + 0x160]
inc edi
cmp edi, eax
jl 0x408711
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x40e8b0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x40e8c6
mov eax, 0x80
jmp 0x40e8c8
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 0x410080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46a8c7
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.00453e60
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0044cbb3
cmp eax, 0xffffffff
jne 0x4100e8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00453e60
mov dword [esp + 0x14], edi
jmp 0x4101aa
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0044cb3b
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0044cbb3
cmp eax, 0xffffffff
jne 0x41011d
push 0x48f088
lea ecx, [esp + 0x10]
call fcn.00454274
jmp 0x410188
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0044cb3b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00454224
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004540eb
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.0044cabf
mov eax, dword [eax]
push 0x487564
push eax
call dword [0x47a1d8]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.004540eb
test bl, bl
je 0x410188
push 0x487564
lea ecx, [esp + 0x10]
call fcn.00454453
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00453e60
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.004540eb
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.004540eb
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.004540eb
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 0x410d80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a93b
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 0x410dd1
mov edi, 0x487564
mov dword [esp + 0x14], edi
jmp 0x410ddd
mov dword [esp + 0x14], 0x48f088
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 0x410e1a
xor al, al
jmp 0x410f64
cmp byte [esp + 0x48], 0x2e
je 0x410f47
test byte [esp + 0x1c], 0x10
je 0x410e5d
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.00410d80
jmp 0x410f47
mov eax, dword [0x48adb4]
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.0044cf5b
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x410ed6
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.0044ed92
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x410ed6
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x410ec2
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.0044cf6e
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00454224
mov eax, dword [esi + 0xac]
test eax, eax
je 0x410f1f
mov dword [eax], edi
jmp 0x410f25
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.004540eb
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 0x410e1a
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