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

Disassembly:
push 0xffffffffffffffff
push 0x4686a8
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.004615a0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a6d0
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.004614ce
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.0045dd92
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.0045dd92
push 1
push 0
push 0
mov ecx, esi
call fcn.0045dd3a
push 1
push 0
push 1
mov ecx, esi
call fcn.0045dd3a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461612
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43aeb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4686c8
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.004615a0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a6d0
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.004614ce
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 0x43af74
cmp dword [esp + 0x40], 1
jne 0x43af72
cmp ecx, eax
jge 0x43af74
mov eax, ecx
cmp eax, 0xc8
jge 0x43af80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ad30
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.00461612
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b6f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468733
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.0045c1b0
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.00461848
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462d64
test eax, eax
je 0x43b80c
mov ecx, dword [esp + 0x3c]
call fcn.00461875
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 0x43b7d0
push edi
mov ecx, esi
call fcn.0045eedd
mov ecx, esi
call fcn.0043b970
cmp dword [esp + 0x38], 1
jne 0x43b805
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.0045f018
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 0x43e230
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e263
push esi
call fcn.00441330
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e25c
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 0x43e2e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e2d2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e287
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 0x43e2ce
cmp eax, 2
je 0x43e2d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e27a
cmp eax, 3
je 0x43e2ad
cmp eax, 1
jne 0x43e27a
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 0x43e27a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e27a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e310
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e2f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e310
add esp, 4
pop esi
ret

Function at 0x45cfa5
Capabilities:
Get graphical window text

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

Function at 0x45e69a
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 0x45e6dc
call fcn.0046414f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e6dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e6d3
xor eax, eax
jmp 0x45e6e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e6ea
pop edi
pop esi
pop ebx
ret 4

Function at 0x46467f
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 0x4646ad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4646cb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004645e5
jmp 0x4646cb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4646cb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004645e5
test edi, edi
mov eax, edi
jne 0x4646b5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401310
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x414a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
xor ebx, ebx
call fcn.00402720
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.0040e380
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], esi
push ecx
lea ecx, [esp + 0x10]
call fcn.0040e380
lea edx, [esp + 0x10]
mov ecx, edi
push edx
mov byte [esp + 0x48], 1
call fcn.00402830
test eax, eax
je 0x401532
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00402830
test eax, eax
je 0x401532
push ebp
lea ecx, [esp + 0x2c]
call fcn.0040d057
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x54], 2
call fcn.004020c0
mov ebx, eax
cmp ebx, esi
je 0x401523
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004016e0
mov ebx, eax
cmp ebx, esi
je 0x401523
mov ebp, dword [esp + 0x34]
test ebp, ebp
jle 0x401523
mov ecx, dword [0x41b2ac]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 3
lea eax, [edx + esi*4]
push eax
call fcn.0040e6da
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x401401
mov edx, dword [esp + 0x50]
push edx
call fcn.0040eb24
lea eax, [esp + 0x50]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0040e7d0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov byte [esp + 0x54], 4
call fcn.0040e7d0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
mov byte [esp + 0x54], 5
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
test ebx, ebx
jne 0x4014f0
lea edx, [esp + 0x50]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0040e7d0
push 0x41b0f8
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x54], 6
call fcn.0040e836
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x54], 7
call fcn.0040e7d0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x54], 8
call fcn.0040e7d0
push eax
mov byte [esp + 0x4c], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00402730
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 8
call fcn.0040e5ed
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 7
call fcn.0040e5ed
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 6
call fcn.0040e5ed
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 5
call fcn.0040e5ed
mov esi, ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 4
call fcn.0040e5ed
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.0040e5ed
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call fcn.0040e5ed
inc esi
cmp esi, ebp
jl 0x4013d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.0040d08a
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.0040e5ed
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x401570
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x414a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00402720
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ebx
call fcn.0040e380
mov eax, dword [ebx]
xor esi, esi
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4015e9
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004028c0
mov esi, eax
test esi, esi
je 0x4015f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x4015f0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00402730
jmp 0x4015f0
mov ecx, edi
call fcn.00402810
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x401620
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414a6b
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov esi, ecx
call fcn.00402720
mov eax, dword [esp + 0x120]
xor edi, edi
mov ecx, dword [eax]
cmp dword [ecx - 8], edi
je 0x4016b8
push eax
lea ecx, [esp + 0xc]
call fcn.0040e380
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x11c], edi
call fcn.00402830
test eax, eax
je 0x4016a2
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call esi
test eax, eax
je 0x40169b
mov edi, 1
lea edx, [esp + 0xc]
push edx
call esi
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.0040e5ed
jmp 0x4016bf
mov ecx, esi
call fcn.00402810
mov ecx, dword [esp + 0x110]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x401bd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x414b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.00402720
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
call fcn.0040e380
lea ecx, [esp + 8]
mov dword [esp + 0x34], esi
push ecx
mov ecx, edi
call fcn.00402830
test eax, eax
je 0x401d0d
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040d057
lea edx, [esp + 0x1c]
push esi
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.004020c0
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x401cfa
mov ebx, dword [esp + 0x24]
cmp ebx, esi
jle 0x401cfa
push ebp
mov ecx, dword [esp + 0x24]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x44]
push edx
call fcn.0040e380
mov ecx, dword [edi + 4]
mov byte [esp + 0x3c], 2
test ecx, ecx
je 0x401c7a
mov eax, dword [esp + 0x44]
push eax
call fcn.0040eb24
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0040e7d0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.0040e5ed
test ebp, ebp
jne 0x401ce2
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0040e7d0
push eax
mov byte [esp + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00402730
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.0040e5ed
mov esi, ebx
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.0040e5ed
inc esi
cmp esi, ebx
jl 0x401c53
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.0040d08a
mov esi, dword [esp + 0x10]
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x401d40
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x414b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00402720
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
call fcn.0040e380
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x401ddb
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.00402830
mov esi, eax
test esi, esi
je 0x401de4
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.00401bd0
mov esi, eax
test esi, esi
je 0x401de4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x401db5
mov edx, dword [esp + 8]
push edx
call fcn.0040eb24
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
jne 0x401de4
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00402730
jmp 0x401de4
mov ecx, edi
call fcn.00402810
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x401f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
xor edi, edi
call fcn.00402720
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xc]
push eax
call fcn.0040e380
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], esi
push ecx
lea ecx, [esp + 0x14]
call fcn.0040e380
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
mov byte [esp + 0x3c], 1
call fcn.00402830
test eax, eax
je 0x402086
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00402830
test eax, eax
je 0x402086
lea ecx, [esp + 0x1c]
call fcn.0040d057
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 2
call fcn.0040d25f
lea eax, [esp + 0x1c]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.00402390
mov edi, eax
cmp edi, esi
je 0x402078
mov eax, dword [esp + 0x24]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x402078
push ebx
mov bl, 4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
lea eax, [edx + esi*4]
push eax
call fcn.0040e380
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x3c], 3
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
sub eax, edi
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040cde5
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov byte [esp + 0x48], bl
call fcn.0040e7d0
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x44], 5
call fcn.00401310
mov edi, eax
test edi, edi
jne 0x402041
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call fcn.0040e5ed
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.0040e5ed
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 2
call fcn.0040e5ed
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x401fd4
pop ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0040d08a
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0040e5ed
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x402140
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x414c2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebp
push esi
mov ebp, ecx
call fcn.00402720
mov eax, dword [esp + 0x178]
lea ecx, [esp + 0xc]
push eax
call fcn.0040e380
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0
push ecx
mov ecx, ebp
call fcn.00402830
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40232f
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.00401620
test eax, eax
je 0x40232f
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040e7d0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x174], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x4022ff
push ebx
push edi
mov edi, dword [esp + 0x184]
test byte [esp + 0x2c], 0x10
jne 0x4022cf
lea edx, [esp + 0x58]
lea ecx, [esp + 0x10]
push edx
call fcn.0040e65b
mov eax, dword [esp + 0x188]
mov byte [esp + 0x174], 2
cmp eax, 1
jne 0x402259
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0040e7d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 3
call fcn.0040e6da
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 2
call fcn.0040e5ed
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x402299
lea eax, [esp + 0x20]
push esi
push eax
mov ecx, edi
call fcn.00402360
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call fcn.00403c1a
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setg bl
call fcn.0040e5ed
test bl, bl
jne 0x4022ee
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x402262
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0040d25f
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4022ba
mov edx, dword [esp + 0x10]
push edx
call fcn.0040eb24
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 1
call fcn.0040e5ed
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4021f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
jmp 0x40231a
lea edx, [esp + 0x10]
push 1
push edx
push esi
mov ecx, edi
call fcn.0040d301
jmp 0x4022a9
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.00402730
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 0
call fcn.0040e5ed
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x164]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret 0x10
Function at 0x402390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
push edi
push ebx
lea ecx, [esp + 0x10]
call fcn.0040e380
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x34], 0
call fcn.00402830
mov edi, eax
test edi, edi
je 0x402500
mov edi, dword [esp + 0x3c]
mov ecx, esi
push edi
push ebx
call fcn.00402530
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4024fc
push ebp
lea ecx, [esp + 0x18]
call fcn.0040d057
mov ebp, dword [edi + 8]
xor esi, esi
test ebp, ebp
mov byte [esp + 0x34], 1
jle 0x4024c0
mov bl, 2
mov ecx, dword [edi + 4]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x3c]
push edx
call fcn.0040e380
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], bl
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.0040cde5
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 3
call fcn.0040e6da
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], bl
call fcn.0040e5ed
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0040ce61
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 4
call fcn.0040e6da
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call fcn.0040e5ed
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0040d25f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.0040e5ed
inc esi
cmp esi, ebp
jl 0x402414
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0040d0ea
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
pop ebp
jle 0x4024ee
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi*4]
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
call fcn.0040d25f
inc esi
cmp esi, ebx
jl 0x4024d6
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0040d08a
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x413c50
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 0x413c7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413c9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413bb6
jmp 0x413c9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413c9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413bb6
test edi, edi
mov eax, edi
jne 0x413c86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8