joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43db50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43db83
push esi
call fcn.00440c40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43db7c
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 0x43dc09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43dbf2
mov eax, dword [esi + 8]
test eax, eax
je 0x43dba7
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 0x43dbee
cmp eax, 2
je 0x43dbf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43db9a
cmp eax, 3
je 0x43dbcd
cmp eax, 1
jne 0x43db9a
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 0x43db9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43db9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dc30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43dc18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dc30
add esp, 4
pop esi
ret

Function at 0x44a8e8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b58c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0046e982
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x4a9364
call fcn.0044cb20
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.0044cb20
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.0044cb20
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.0044cb20
mov dword [edi], 0x4a935c
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.0046be22
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x4a942c
mov eax, dword [0x4c8dc0]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.0044cb20
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.0046be22
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44a9d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b614
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.0046be4b
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x4a9358
call fcn.0044cd20
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.0046d3d4
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.00474072
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.0046be4b
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x4a9358
call fcn.0044cd20
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x4a9358
call fcn.0044cd20
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x4a9358
call fcn.0044cd20
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4a9358
call fcn.0044cd20
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0046ba84
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44b600
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 0x44b6a3
test eax, eax
jbe 0x44b6a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44b6a3
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 0x44b64e
xor esi, esi
jmp 0x44b654
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44b67f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044cf90
add esi, eax
push esi
mov ebx, esi
call fcn.0044cf90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44b660
pop ebp
test edi, edi
pop edi
jne 0x44b6a3
test ebx, ebx
je 0x44b6a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045d7d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44b7e5
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 0x44b8fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44b8fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046edd4
mov esi, eax
test esi, esi
je 0x44b8fd
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 0x44b8fd
mov ecx, esi
call fcn.0044b750
cmp edi, eax
jge 0x44b8fd
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 0x44b883
mov dword [esp + 0x34], 1
jmp 0x44b8de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44b8fd
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.00449490
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 0x457400
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45744c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45744c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x457436
push eax
call ebp
test ax, ax
jl 0x457444
inc esi
add edi, 4
cmp esi, 6
jb 0x457428
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00457100
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x459af0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x459b50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x459b50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x459b50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x459b50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x459b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46f778
Capabilities:
Get graphical window text

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

Function at 0x470e6a
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 0x470eac
call fcn.00476aad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x470eac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470ea3
xor eax, eax
jmp 0x470eb4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00470eba
pop edi
pop esi
pop ebx
ret 4

Function at 0x476fdd
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 0x47700b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477029
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476f43
jmp 0x477029
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477029
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476f43
test edi, edi
mov eax, edi
jne 0x477013
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREAdobeAcrobat_Reader7.0AcroSpeedLaunch]
sub esp, 0x10
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401064
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401059
cmp dword [esp + 0xc], 4
jne 0x401059
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401090
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 1
push str.ServicesActive
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4010fb
push esi
push edi
xor edi, edi
cmp edi, 0xc
jae 0x4010f2
mov eax, dword [edi + 0x408020]
push 4
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4010eb
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010e4
cmp dword [esp + 0x14], 4
jne 0x4010e4
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
test bl, bl
je 0x4010b0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x401520
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [str.AdobeReaderSpeedLaunchCmdWnd]
sub esp, 0x28
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4016e3
mov ecx, dword [str.Mode]
push esi
push ecx
call fcn.00401000
mov esi, eax
add esp, 4
cmp esi, 3
jae 0x4016da
cmp esi, 2
je 0x4016da
push ebx
mov ebx, dword [esp + 0x34]
lea edx, [esp + 8]
push edx
call fcn.00401210
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [0x4083f8], eax
je 0x4016d0
call fcn.00401070
test al, al
jne 0x4016a8
push edi
push 0x401110
push 0x1f4
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4016a7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [0x4083fc], eax
je 0x40169f
push 0x4083e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, 1
lea eax, [esp + 0x14]
push eax
sete cl
push ebx
movzx edx, cl
push edx
push 0x401350
push ebx
push ebx
mov byte [0x408404], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x408400], eax
je 0x401681
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call esi
cmp eax, ebx
je 0x401646
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, 0xffffffff
je 0x401641
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
call ebp
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, ebx
jne 0x401620
mov edi, dword [esp + 0x14]
pop ebp
call fcn.00401140
mov ecx, dword [0x408400]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40166f
mov edx, dword [0x408400]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x408400]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x408400], ebx
mov ecx, dword [0x4083fc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4083e0
mov dword [0x4083fc], ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
mov eax, dword [0x4083f8]
cmp eax, ebx
je 0x4016b8
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [esp + 8], bx
je 0x4016d0
mov edx, dword [esp + 0x34]
mov eax, dword [str.AdobeReaderSpeedLaunchCmdWnd]
push edx
push eax
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop ebx
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
add esp, 0x28
ret 0x10

Function at 0x401820
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40183c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401920
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x401961
cmp dword [esi + 0x20], 0xffffffff
jne 0x401961
cmp dword [esi + 0x18], 0x10
jb 0x40193c
mov eax, dword [esi + 4]
jmp 0x40193f
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
sete al
mov byte [esi + 0x1d], al
mov esi, dword [esi + 0x20]
cmp esi, 0xffffffff
je 0x401a28
cmp byte [ebx], 0
jne 0x401a28
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4019a9
mov cl, byte [esp + 0xc]
test cl, cl
mov eax, 2
je 0x40198f
mov eax, 0x1000002
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x4019a9
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401a28
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x401a28
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x4019da
mov ecx, eax
test ecx, ecx
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.004018a0
add esp, 8
test al, al
pop edi
je 0x401a14
mov eax, dword [esp + 4]
test eax, eax
je 0x401a14
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
mov ecx, edx
test ecx, ecx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
setne al
pop esi
pop ecx
ret

Function at 0x401a40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x401a60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
cmp dword [ebp + 0xc], 0
jbe 0x401ae4
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
je 0x401ae4
mov dword [ebp - 0x148], 1
jmp 0x401ab0
mov ecx, dword [ebp - 0x148]
add ecx, 1
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
cmp edx, dword [ebp + 0xc]
jae 0x401ad7
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ad5
jmp 0x401ad7
jmp 0x401aa1
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jg 0x401dbe
jl 0x401da2
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x7fffffff
ja 0x401dbe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jg 0x401dc3
jl 0x401dbe
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x80000001
jae 0x401dc3
jmp 0x401e55
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401e55
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401e55
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.00401ce0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e48
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x401e4a
jmp 0x401e55
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x401df8
mov esp, ebp
pop ebp
ret
Function at 0x402e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x403c31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x50]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x28], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x402f97
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x50], edi
jbe 0x402f2f
lea ecx, [edx + 0xc]
mov edx, eax
jmp 0x402f10
mov eax, dword [ecx]
cmp eax, edi
jbe 0x402f18
mov edi, eax
add ecx, 0x10
dec edx
jne 0x402f10
cmp edi, 0x100000
mov dword [esp + 0x50], edi
mov eax, 0x406470
ja 0x402f33
lea eax, [esp + 0x50]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00403593
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x402f59
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
jne 0x402f97
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x406b40
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x406474
call sub.MSVCR71.dll__CxxThrowException
mov ecx, ebp
imul ecx, ecx, 0x44
add ecx, 4
push ecx
call fcn.00403593
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebx
mov byte [esp + 0x28], 2
je 0x402fcf
push 0x402240
push 0x402200
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.004036c8
jmp 0x402fd1
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x403001
cmp eax, ebx
je 0x402ffe
mov edx, dword [eax - 4]
lea ebp, [eax - 4]
push 0x402240
push edx
push 0x44
push eax
call fcn.00403668
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x2c], ebx
jne 0x403034
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x406b40
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x406474
call sub.MSVCR71.dll__CxxThrowException
mov ecx, esi
call fcn.00402ba0
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x24