joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468af0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5807e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0042f1a0
mov ecx, eax
test ecx, ecx
je 0x468cc7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.eDB1Gcw1eaHh0XRRxs
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042f410
test al, al
jne 0x468b55
push 0x13
push str.eDB1Gcw1eaHh0XRRxs
lea ecx, [ebp - 0x14]
call fcn.0042f740
mov dword [ebp - 4], 1
call fcn.0042f1a0
mov ecx, eax
test ecx, ecx
je 0x468cd1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x596844
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042f410
test al, al
jne 0x468b9a
push 0
push 0x596844
lea ecx, [ebp - 0x10]
call fcn.0042f740
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x468c1d
push 0x228
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0x22c
push 0
push eax
call fcn.005518b0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x468c16
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x248], edi
je 0x468c08
lea eax, [ebp - 0x250]
push eax
push esi
call ebx
test eax, eax
jne 0x468bf0
jmp 0x468c16
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x10]
call fcn.00468990
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x468c72
mov ebx, dword [ebp - 0x14]
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov ecx, ebx
mov dword [ebp - 0x1c], edi
call fcn.0042eab0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
call fcn.00445630
lea edx, [esi - 0x10]
add esp, 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468c63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x468cb3
mov ecx, dword [ebx]
push ebx
jmp 0x468cae
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.0042eab0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
or esi, 0xffffffff
mov dword [ecx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x468c9b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x468cb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042f720
push 0x80004005
call fcn.0042f720
int3
Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x404679
cmp word [0x418328], 0xd7b2
jne 0x404641
cmp dword [0x418330], 0
jbe 0x404641
mov eax, 0x418324
call dword [0x418340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x404695
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x41118c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411140
test al, al
jne 0x4111ad
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4111f9
xor eax, eax
push ebp
push 0x4111e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f58
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4111f0
lea eax, [ebp - 0xc]
call fcn.0041117c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x41165a
inc esi
xor edi, edi
cmp edi, 1
jne 0x411626
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x411634
cmp edi, 1
jle 0x411634
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0041118c
test eax, eax
jne 0x41165a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x41165a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x41165a
inc edi
dec esi
jne 0x411616
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x411664
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411688
mov eax, dword [ebp - 4]
jmp 0x41168b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x408960
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x408981
jl 0x408977
test esi, esi
jne 0x408981
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x408a34
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004043d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x4089f1
jg 0x4089b9
test esi, esi
je 0x4089f1
cmp ebp, eax
jg 0x4089c9
jl 0x4089c3
cmp edi, esi
jae 0x4089c9
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040c8a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x408a10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x408a20
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x4089a0
jl 0x408a20
test edi, edi
jne 0x4089a0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x408a79
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x408a80
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040c8a0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x408a80
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x408ae9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408aaa
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x408ad4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00414b71
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408ae9
cmp edi, eax
ja 0x408ab2
test edi, edi
je 0x408ae9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00414b71
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x408ea0
Capabilities:
Create thread

Disassembly:
sub esp, 0x64
mov eax, dword [0x481b40]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push edi
call fcn.004069c0
push 0
push 0
push 0
push 0x4083a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push str.Black_John
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
call fcn.004015e0
push 0xb
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
push str.Agent_Smith
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x40], xmm0
call fcn.004015e0
push 7
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
push str.Alister
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x58], xmm0
call fcn.004015e0
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x24]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push eax
sub ecx, edx
mov dword [esp + 0x1c], 0
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [esp + 0x14]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00401680
mov edi, 3
lea esi, [esp + 0x68]
nop dword [eax]
mov ecx, dword [esi - 4]
lea esi, [esi - 0x18]
dec edi
cmp ecx, 7
jbe 0x408fed
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x408fe3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090c6
mov eax, edx
push ecx
push eax
call fcn.0040b544
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
jne 0x408fb0
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
cmp esi, ebp
je 0x40909d
push ebx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x409020
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 0x4830c8
call fcn.00401e80
mov ebx, eax
add esp, 0xc
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x24], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x20]
push eax
call fcn.00402610
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x409082
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40907e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00407e00
mov ecx, ebx
call fcn.00406870
add esi, 0x18
cmp esi, ebp
jne 0x409016
pop ebx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
lea ecx, [esp + 0x10]
call fcn.00404e30
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.0040b557
add esp, 0x64
ret 0x10
call fcn.0041006f
int3
Function at 0x40c198
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c1d7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c1d7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c1d7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c1d7
cmp dword [ecx + 0x74], 0xe
jbe 0x40c1d7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41cc8a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430760
push 0x430758
push str.FlsAlloc
push 0x1e
call fcn.0041cb54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ccbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c140]
call esi
jmp 0x41ccc4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41cd08
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430770
push 0x430768
push str.FlsGetValue
push 0x20
call fcn.0041cb54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cd3f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41e5b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e25a

Function at 0x41e5c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e3e9

Function at 0x41e9bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c300
mov eax, dword [0x481b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041d2bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e9ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b580
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x483b10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fb8d
mov ecx, dword [esi*4 + 0x483b10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41eb54
cmp eax, dword [edi + ecx + 0x24]
jne 0x41eb54
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eb54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fb8d
add esp, 0x14
test edx, edx
jl 0x41eb54
jg 0x41eaca
test eax, eax
jb 0x41eb54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb54
jl 0x41eae4
cmp dword [ebp - 0x1008], eax
ja 0x41eb54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb02
test ebx, ebx
je 0x41eb3b
cmp ecx, edi
jae 0x41eb3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb28
cmp byte [ecx + 1], 0xa
jne 0x41eb28
inc ecx
jmp 0x41eb28
movzx eax, al
movsx eax, byte [eax + 0x481e00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb02
cmp edx, ebx
jne 0x41eb02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b557
leave
ret
Function at 0x41f02b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x483b10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f06b
cmp byte [ebx], 0xa
jne 0x41f06b
or byte [eax + edi + 0x28], 4
jmp 0x41f070
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f16e
mov al, byte [edx]
cmp al, 0x1a
je 0x41f150
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f09f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f0c4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f0ce
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41f081
jmp 0x41f16e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f14b
cmp dword [ebp - 0xc], 0
je 0x41f14b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483b10]
test byte [eax + edi + 0x28], 0x48
je 0x41f125
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f110
mov byte [esi], dl
jmp 0x41f121
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483b10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f16e
cmp byte [ebp - 1], 0xa
jne 0x41f134
cmp esi, ebx
jne 0x41f134
mov byte [esi], 0xa
jmp 0x41f16d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fbab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f16e
mov byte [esi], 0xd
jmp 0x41f16d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483b10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f16a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f16e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f177
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x483b10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f1ba
cmp word [esi], dx
jne 0x41f1ba
or byte [edi + eax + 0x28], 4
jmp 0x41f1bf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f312
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f2f2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f201
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f237
cmp eax, edx
jae 0x41f243
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f1d9
jmp 0x41f312
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f2ee
cmp dword [ebp - 0x14], 0
je 0x41f2ee
mov eax, dword [ebx*4 + 0x483b10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f2c6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f28f
mov word [esi], cx
jmp 0x41f2c2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483b10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483b10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483b10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f312
pop ebx
cmp word [ebp - 4], bx
jne 0x41f2d7
cmp esi, dword [ebp + 0xc]
jne 0x41f2d7
mov word [esi], bx
jmp 0x41f30f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fbab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f312
push 0xd
jmp 0x41f30b
mov ecx, dword [ebx*4 + 0x483b10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f309
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f312
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4229e7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x481b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x422a32
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00422b86
test al, al
jne 0x422a2c
sub edx, 2
cmp edx, edi
jne 0x422a12
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x422a54
lea eax, [edi + 2]
cmp edx, eax
je 0x422a54
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00422933
add esp, 0x10
jmp 0x422b4e
push esi
lea ecx, [ebp - 0x255]
call fcn.00422b86
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422a97
push dword [ebp - 0x25c]
jmp 0x422a44
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x422ad4
cmp word [ebp - 0x226], 0
je 0x422af5
cmp word [ebp - 0x226], ax
jne 0x422ad4
cmp word [ebp - 0x224], 0
je 0x422af5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00422933
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x422b41
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x422aae
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x422b29
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x422b4e
push 0x422763
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004298e0
add esp, 0x10
jmp 0x422b1e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b557
leave
ret