joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408217
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 0x14], eax
or eax, 1
push eax
call edi
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 4]
push eax
call fcn.00407ba4
mov esi, eax
cmp esi, ebx
jl 0x40831a
push dword [ebp - 4]
lea eax, [ebp - 8]
push dword [ebp + 8]
push 0x404970
push eax
call fcn.00409288
mov esi, eax
add esp, 0x10
cmp esi, ebx
jl 0x408321
push dword [ebp - 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00409f12
mov esi, eax
cmp esi, ebx
jl 0x408328
mov esi, dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4082b0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4082b0
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, ebx
je 0x4082ba
push esi
call fcn.0040956f
cmp dword [ebp - 4], ebx
je 0x4082c7
push dword [ebp - 4]
call fcn.0040956f
cmp dword [ebp - 8], ebx
je 0x4082d4
push dword [ebp - 8]
call fcn.0040956f
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x408337
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3e8
jl 0x40823d
xor esi, esi
inc esi
cmp dword [ebp - 4], ebx
je 0x4082ff
push dword [ebp - 4]
call fcn.0040956f
cmp dword [ebp - 8], ebx
je 0x40830c
push dword [ebp - 8]
call fcn.0040956f
push dword [ebp - 0x14]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
push 0x404950
jmp 0x40832d
push 0x40497c
jmp 0x40832d
push 0x4049a8
push esi
call fcn.00408c66
pop ecx
pop ecx
jmp 0x4082f2
xor esi, esi
jmp 0x40830c
Function at 0x408782
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
mov edi, dword [0x42b14c]
cmp edi, 1
jne 0x40894e
push ebx
push esi
mov ebx, 0x104
mov eax, ebx
lea esi, [ebp - 4]
call fcn.00408f01
mov edi, eax
test edi, edi
jns 0x4087c1
push 0x404d6c
jmp 0x408944
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4087fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4087e9
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4087f0
mov edi, 0x80004005
push 0x404d94
jmp 0x408944
cmp eax, ebx
jbe 0x408820
lea esi, [ebp - 4]
mov ebx, eax
call fcn.00408f01
mov edi, eax
test edi, edi
js 0x4087b7
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4087cf
cmp eax, ebx
ja 0x4087cf
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0x404db8
push eax
call fcn.00409288
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x408844
push 0x404dd8
jmp 0x408944
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x40887e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40886d
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408874
mov edi, 0x80004005
push 0x404e08
jmp 0x408944
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404e24
push ebx
call esi
mov dword [0x42bf44], eax
test eax, eax
je 0x40891e
push 0x404e30
push ebx
call esi
mov dword [0x42bf40], eax
test eax, eax
je 0x40891e
push 0x404e40
push ebx
call esi
mov dword [0x42bf3c], eax
test eax, eax
je 0x40891e
push 0x404e50
push ebx
call esi
mov dword [0x42bf38], eax
test eax, eax
je 0x40891e
push 0x404e64
push ebx
call esi
mov dword [0x42bf34], eax
test eax, eax
je 0x40891e
push 0x404e70
push ebx
call esi
mov dword [0x42bf30], eax
test eax, eax
je 0x40891e
push 0x404e84
push ebx
call esi
mov dword [0x42bf2c], eax
test eax, eax
je 0x40891e
push 0x404e9c
push ebx
call esi
mov dword [0x42bf28], eax
test eax, eax
je 0x40891e
push 0x404ef0
push 1
call fcn.00408be5
jmp 0x40894a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x408938
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x40893f
mov edi, 0x80004005
push 0x404eb4
push edi
call fcn.00408c66
pop ecx
pop ecx
pop esi
pop ebx
cmp dword [ebp - 4], 0
mov dword [0x42b14c], edi
je 0x408962
push dword [ebp - 4]
call fcn.0040956f
cmp dword [ebp - 8], 0
je 0x408970
push dword [ebp - 8]
call fcn.0040956f
mov eax, edi
pop edi
leave
ret
Function at 0x408ccc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x42b140], 0xffffffff
mov eax, 0x104
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
je 0x408e1a
cmp dword [0x42c120], edi
je 0x408e1a
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x408d42
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041e230
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a047
test eax, eax
jns 0x408d65
xor ebx, ebx
jmp 0x408d71
mov edi, dword [ebp - 0x420]
mov ebx, dword [ebp - 0x41c]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x408d9a
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0041e230
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.0040959a
mov esi, eax
test esi, esi
js 0x408df4
push dword [ebp - 0x418]
push 0x40508c
push 1
call fcn.00408be5
movzx eax, bx
push eax
movzx eax, di
shr ebx, 0x10
push ebx
push eax
shr edi, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4050a8
push 1
call fcn.00408be5
push 0x405038
push 0x405044
push 1
call fcn.00408be5
add esp, 0x34
xor edi, edi
pop ebx
cmp dword [ebp - 0x418], edi
je 0x408e0a
push dword [ebp - 0x418]
call fcn.0040956f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004195c9
leave
ret
xor esi, esi
inc esi
jmp 0x408df7

Function at 0x408e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
lea ebx, [ebp - 4]
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 8], edi
call fcn.004093a0
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x408ebd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 8], eax
cmp eax, edi
jbe 0x408e86
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [0x42b140]
call ebx
test eax, eax
je 0x408ed4
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x408e61
cmp dword [ebp + 0x10], edi
je 0x408ebd
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x405034
push dword [0x42b140]
call ebx
test eax, eax
jne 0x408ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408ebd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x408ecd
push dword [ebp - 4]
call fcn.0040956f
mov eax, dword [ebp + 0xc]
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408eee
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x408ebd
mov dword [ebp + 0xc], 0x80004005
jmp 0x408ebd
Function at 0x4098c3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409f12
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x409991
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4098fa
test al, 0x10
jne 0x409991
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409991
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40998f
movzx eax, word [ebx]
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x40993c
cmp ax, 0x5c
jne 0x40992d
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x409925
test esi, esi
jne 0x409943
mov edi, 0x80070003
jmp 0x409991
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004098c3
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x409991
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40998f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40997d
xor edi, edi
inc edi
jmp 0x409991
test eax, eax
jle 0x40998b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409991
xor edi, edi
test ebx, ebx
je 0x40999b
push ebx
call fcn.0040956f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a047
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.00409f12
mov esi, eax
cmp esi, ebx
jl 0x40a132
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jne 0x40a0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40a0a0
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40a131
mov esi, 0x80004005
jmp 0x40a131
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x40a0c6
mov esi, 0x8007000e
jmp 0x40a131
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a0f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40533c
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40a115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40a10c
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40a128
mov esi, 0x80004005
jmp 0x40a128
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
cmp dword [ebp - 4], ebx
je 0x40a13f
push dword [ebp - 4]
call fcn.0040956f
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
jbe 0x40a1ec
and dword [ebp - 4], edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a1cb
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x40a19f
jmp 0x40a1ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40a1e5
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x40a1ec
mov edi, 0x80004005
test ebx, ebx
je 0x40a1f2
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x40a1ff
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409f12
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x40a267
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a267
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40a267
cmp eax, 3
je 0x40a267
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40a267
call esi
mov edi, eax
test edi, edi
jle 0x40a260
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x40a267
mov edi, 0x80004005
test ebx, ebx
je 0x40a271
push ebx
call fcn.0040956f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a5d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100a4
call fcn.00421370
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
mov esi, ecx
pop ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10090], ebx
lea edi, [ebp - 0x1008c]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10070]
push ebx
push eax
call fcn.0041e230
add esp, 0xc
xor eax, eax
push 7
mov byte [ebp - 0x24], bl
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10094], eax
cmp eax, ebx
jne 0x40a641
mov dword [ebp - 0x10094], 0x403a40
mov eax, fcn.0040682c
test eax, eax
je 0x40a66b
mov eax, dword [esi + 0x10]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp - 0x10094]
push 3
call fcn.0040682c
mov ebx, eax
test ebx, ebx
jne 0x40a7de
lea eax, [ebp - 0x10090]
push eax
call fcn.00423fc0
mov eax, dword [esi + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [esi]
call fcn.0040a14c
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x40a7de
mov eax, fcn.0040682c
test eax, eax
je 0x40a6b6
push edi
push edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.0040682c
mov ebx, eax
cmp ebx, edi
jne 0x40a7de
xor ebx, ebx
mov dword [ebp - 0x1009c], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
sub ecx, edi
sbb eax, dword [ebp - 0x1009c]
cmp eax, ebx
jb 0x40a6e2
ja 0x40a6dd
cmp ecx, 0x10000
jbe 0x40a6e2
mov ecx, 0x10000
push ebx
lea eax, [ebp - 0x100a4]
push eax
push ecx
lea eax, [ebp - 0x10028]
push eax
push dword [esi]
mov dword [ebp - 0x100a4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a76a
push dword [ebp - 0x100a4]
lea eax, [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10090]
push eax
call fcn.00424b30
add edi, dword [ebp - 0x100a4]
push ebx
adc dword [ebp - 0x1009c], ebx
push dword [ebp - 0x1009c]
mov dword [ebp - 0x100a0], edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.0040682c
mov ebx, eax
test ebx, ebx
jne 0x40a7de
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1009c]
cmp ecx, dword [eax + 0x14]
ja 0x40a78d
jb 0x40a763
cmp edi, dword [eax + 0x10]
jae 0x40a78d
xor ebx, ebx
jmp 0x40a6be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x40a784
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
js 0x40a7de
mov ebx, 0x80004005
jmp 0x40a7de
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10090]
push eax
call fcn.00424c40
mov esi, dword [esi + 0x10]
push 0x20
add esi, 0x18
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a7b4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a786
mov eax, fcn.0040682c
test eax, eax
je 0x40a7de
push 0
push dword [ebp - 0x1009c]
push dword [ebp - 0x100a0]
push dword [ebp - 0x10094]
push 5
call fcn.0040682c
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret
Function at 0x40aad3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push esi
push esi
push dword [edi]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.0040a14c
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40ac41
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jne 0x40ab3e
mov eax, 0x20000
push eax
push 8
mov dword [ebp - 0xc], eax
call esi
push eax
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x40ab5a
mov dword [ebp - 4], 0x8007000e
jmp 0x40ac41
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40abcf
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
sub ecx, eax
add eax, dword [ebp - 8]
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40abd8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0040ac4d
mov dword [ebp - 4], eax
cmp eax, 0x8007007a
je 0x40ab0f
test eax, eax
js 0x40ac24
push dword [ebp - 0x10]
push 8
call esi
push eax
call ebx
mov dword [edi + 8], eax
test eax, eax
je 0x40abcf
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
push 8
call esi
push eax
call ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40ac01
mov dword [ebp - 4], 0x8007000e
jmp 0x40ac24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jle 0x40abf2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40ac24
mov dword [ebp - 4], 0x80004005
jmp 0x40ac24
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
push dword [edi + 8]
call fcn.00421500
add esp, 0xc
push dword [ebx + 0x20]
push dword [ebp - 0x1c]
push dword [edi + 0xc]
call fcn.00421500
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40ac41
push dword [ebp - 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40ac41
call fcn.0040a00f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40ac4d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
cmp dword [ebp + 0xc], 0x40
jae 0x40ac77
mov dword [edi], 0x138
mov eax, 0x8007007a
jmp 0x40ad71
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x40ac8b
mov eax, 0x8007000d
jmp 0x40ad71
push esi
mov esi, dword [eax + 0x3c]
cmp dword [ebp + 0xc], esi
jae 0x40aca6
add esi, 0xf8
mov dword [edi], esi
mov eax, 0x8007007a
jmp 0x40ad70
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
je 0x40acbb
mov eax, 0x8007000d
jmp 0x40ad70
movzx eax, word [ecx + 6]
movzx edx, word [ecx + 0x14]
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, esi
lea esi, [ebx + edx + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], esi
jae 0x40acdb
mov dword [edi], esi
jmp 0x40ad51
lea ebx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
je 0x40ad38
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push 8
pop ecx
mov edi, 0x40535c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40acfe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ad0c
add dword [ebp - 4], 0x28
inc edx
cmp edx, dword [ebp - 8]
jb 0x40ace8
cmp dword [ebp - 8], edx
jbe 0x40ad38
imul edx, edx, 0x28
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
add esi, edx
cmp dword [ebp + 0xc], esi
jae 0x40ad2b
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40ad51
mov edi, dword [ebp + 8]
add edx, edi
cmp dword [edx], 0xb0c50003
je 0x40ad3f
mov eax, 0x8007000d
jmp 0x40ad6f
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
add eax, esi
cmp dword [ebp + 0xc], eax
jae 0x40ad58
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 0x8007007a
jmp 0x40ad6f
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
add esi, edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x18
Function at 0x40ad7b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x264], 0xffffffff
push ebx
inc eax
mov dword [ebp - 0x26c], eax
push esi
lea eax, [ebp - 0x260]
xor ebx, ebx
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00409df9
mov esi, eax
cmp esi, ebx
jl 0x40af4c
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408f9b
mov esi, eax
cmp esi, ebx
jl 0x40af37
push ebx
push 0x405368
lea eax, [ebp - 0x25c]
call fcn.004091c7
mov esi, eax
cmp esi, ebx
jl 0x40af37
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40ae3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40ae35
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40af37
test byte [ebp - 0x258], 0x10
jne 0x40aebf
mov eax, dword [ebp - 0x23c]
mov edx, dword [edi + 0x10]
xor ecx, ecx
xor ebx, ebx
add ecx, dword [ebp - 0x238]
adc eax, ebx
cmp ecx, dword [edx + 0x10]
jne 0x40aebf
cmp eax, dword [edx + 0x14]
jne 0x40aebf
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408f9b
mov esi, eax
test esi, esi
js 0x40af0d
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.004091c7
mov esi, eax
test esi, esi
js 0x40af0d
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x25c]
lea edx, [ebp - 0x26c]
call fcn.0040af78
mov esi, eax
test esi, esi
jns 0x40aedc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ae3b
jmp 0x40aef2
push dword [ebp - 0x25c]
lea ecx, [edi + 4]
xor eax, eax
call fcn.00408f9b
mov esi, eax
test esi, esi
js 0x40af0d
mov eax, dword [ebp - 0x264]
cmp eax, 0xffffffff
jne 0x40af04
mov esi, 0x80070002
jmp 0x40af22
or dword [ebp - 0x264], 0xffffffff
mov dword [edi], eax
cmp dword [ebp - 0x264], 0xffffffff
je 0x40af22
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x268], 0xffffffff
je 0x40af37
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x25c], ebx
je 0x40af4c
push dword [ebp - 0x25c]
call fcn.0040956f
cmp dword [ebp - 0x260], ebx
je 0x40af5f
push dword [ebp - 0x260]
call fcn.0040956f
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret 8