joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.0040bf20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4012cf
mov eax, dword [ebp - 4]
and eax, 0x10
jne 0x4012cf
mov dword [ebp - 8], 1
jmp 0x4012d6
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4012e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.0040bf20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40130f
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x40130f
mov dword [ebp - 8], 1
jmp 0x401316
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x40134f
xor al, al
jmp 0x4013c1
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4013b2
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004044e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40139b
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4013c1
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401370
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125dc
mov esp, ebp
pop ebp
ret

Function at 0x4014d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x431ff0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40150a
push 0x432008
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
nop
jmp 0x401545
push 0x43202c
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x432044
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40161d
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4015d7
push 0x432074
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
push 0x43205c
push eax
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
jmp 0x401612
push 0x432084
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00408a10
mov dword [ebp - 0x1c], eax
push 0x406870
mov ecx, dword [ebp - 0x1c]
call fcn.00408be0
nop
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esp, ebp
pop ebp
ret

Function at 0x401630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.example.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0xffffffff
je 0x40176b
push 0
lea eax, [ebp - 0x90]
push eax
push 0x80
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401710
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x80
jae 0x4016b3
jmp 0x4016b9
call fcn.004124ff
nop
mov ecx, dword [ebp - 0x8c]
mov byte [ebp + ecx - 0x84], 0
push 0x4320d0
push 0x43f250
call fcn.00403e40
add esp, 8
lea edx, [ebp - 0x84]
push edx
push eax
call fcn.00403e40
add esp, 8
push str.__ReadFile_.
push eax
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x94], eax
push 0x406870
mov ecx, dword [ebp - 0x94]
call fcn.00408be0
nop
jmp 0x40175d
push 0x4320e4
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.00408a10
mov dword [ebp - 0xa0], eax
push 0x406870
mov ecx, dword [ebp - 0xa0]
call fcn.00408be0
nop
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125dc
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x4320fc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40186a
mov dword [ebp - 8], 0x432114
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004170b0
add esp, 4
push eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401824
push 0x432144
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00408a10
push 0x432124
push eax
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x18], eax
push 0x406870
mov ecx, dword [ebp - 0x18]
call fcn.00408be0
nop
jmp 0x40185f
push 0x432150
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00408a10
mov dword [ebp - 0x24], eax
push 0x406870
mov ecx, dword [ebp - 0x24]
call fcn.00408be0
nop
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x432168
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4018ac
push 0x432184
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
nop
jmp 0x4018e7
push 0x4321b4
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
mov esp, ebp
pop ebp
ret

Function at 0x4018f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.NewDirectory
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40192a
push 0x4321f0
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
nop
jmp 0x401965
push 0x432220
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
mov esp, ebp
pop ebp
ret
Function at 0x401970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x4019ed
push 0x432270
push 0x43f3c0
call fcn.00404170
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.00404170
add esp, 8
push str.__GetCurrentDirectory_.
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 0x214], eax
push 0x4068b0
mov ecx, dword [ebp - 0x214]
call fcn.00408be0
nop
jmp 0x401a3a
push 0x43229c
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x21c]
call fcn.00408a10
mov dword [ebp - 0x220], eax
push 0x406870
mov ecx, dword [ebp - 0x220]
call fcn.00408be0
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125dc
mov esp, ebp
pop ebp
ret

Function at 0x401a50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4322c4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x401a8a
push 0x4322dc
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
nop
jmp 0x401ac5
push 0x432318
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
mov esp, ebp
pop ebp
ret

Function at 0x401ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x432340
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x401b52
push 0x432384
push 0x43f3c0
call fcn.00404170
add esp, 8
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.00404170
add esp, 8
push str.__GetEnvironmentVariable_.
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 0x20c], eax
push 0x4068b0
mov ecx, dword [ebp - 0x20c]
call fcn.00408be0
nop
jmp 0x401b9f
push 0x4323bc
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
call fcn.00408a10
mov dword [ebp - 0x218], eax
push 0x406870
mov ecx, dword [ebp - 0x218]
call fcn.00408be0
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125dc
mov esp, ebp
pop ebp
ret
Function at 0x401bb0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4323e4
push str.MY_VAR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x401bef
push 0x432410
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
nop
jmp 0x401c2a
push 0x43245c
push 0x43f310
call fcn.00403e40
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408a10
mov dword [ebp - 0x10], eax
push 0x406870
mov ecx, dword [ebp - 0x10]
call fcn.00408be0
nop
mov esp, ebp
pop ebp
ret

Function at 0x4027b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x432a44
push 0x43f250
call fcn.00403e40
add esp, 8
mov dword [ebp - 4], eax
push 0x406870
mov ecx, dword [ebp - 4]
call fcn.00408be0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4109a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4109c2
jl 0x4109b9
test edi, edi
jne 0x4109c2
xor eax, eax
xor edx, edx
jmp 0x410a83
cmp dword [ebx + 0x38], 0
je 0x4109d7
push eax
push edi
push dword [ebp + 8]
call fcn.00410a89
jmp 0x410a83
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x410a1e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x410a1e
cmp eax, edi
jb 0x4109f8
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00413390
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x410a24
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x410a78
mov ecx, ebx
call fcn.004101f0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x410a63
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041a982
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x410a78
jmp 0x410a36
test edx, edx
je 0x410a78
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041a982
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x413217
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413256
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413256
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413256
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x413256
cmp dword [ecx + 0x74], 0xe
jbe 0x413256
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4249fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00413330
mov eax, dword [0x43e040]
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.00421b78
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x424a3c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x424bb3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042efe0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43fca0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00425c19
mov ecx, dword [esi*4 + 0x43fca0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x424bac
cmp eax, dword [edi + ecx + 0x24]
jne 0x424bac
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x424bac
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425c19
add esp, 0x14
cmp edx, esi
jl 0x424bac
jg 0x424b07
cmp eax, esi
jb 0x424bac
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x424bac
jl 0x424b29
cmp dword [ebp - 0x1008], eax
ja 0x424bac
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x424b4e
cmp ebx, esi
je 0x424b93
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x424b93
mov al, byte [ecx]
cmp al, 0xd
jne 0x424b74
lea eax, [edi - 1]
cmp ecx, eax
jae 0x424b80
cmp byte [ecx + 1], 0xa
jne 0x424b80
inc ecx
jmp 0x424b80
movzx eax, al
movsx eax, byte [eax + 0x43e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424b5a
cmp edx, ebx
jne 0x424b5a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x424bb1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004125dc
leave
ret
Function at 0x425000
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42501a
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x425031
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x425089
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00427c65
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x425089
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x425089
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x425089
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x425083
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x425085
xor bl, bl
mov al, bl
jmp 0x42508b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4250a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43fca0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4250e7
cmp byte [ebx], 0xa
jne 0x4250e7
or byte [edi + eax + 0x28], 4
jmp 0x4250ec
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4251ef
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4251ca
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x42511b
mov eax, dword [ebp - 8]
jmp 0x42513b
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x425157
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x425135
add eax, 2
mov cl, 0xa
jmp 0x425138
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4250fd
jmp 0x4251ef
push 0
lea eax, [ebp - 0x10]
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 0x4251c5
cmp dword [ebp - 0x10], 0
je 0x4251c5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x43fca0]
test byte [eax + edi + 0x28], 0x48
je 0x4251a4
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x425194
mov byte [esi], 0xa
jmp 0x4251ee
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x43fca0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4251ee
cmp byte [ebp - 1], 0xa
jne 0x4251ae
cmp esi, ebx
je 0x42518f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425c37
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4251ef
mov byte [esi], 0xd
jmp 0x4251ee
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x43fca0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4251ec
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4251ef
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4251f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43fca0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42523c
push 0xa
pop esi
cmp word [ebx], si
jne 0x42523c
or byte [eax + edi + 0x28], 4
jmp 0x425241
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4253ac
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x425384
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x42528e
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4252b8
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4252d7
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4252a5
push ebx
add eax, 4
pop edx
jmp 0x4252ad
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x425253
jmp 0x4253ac
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 0x42537f
cmp dword [ebp - 0x14], 0
je 0x42537f
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43fca0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x42535b
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x425323
mov word [esi], ax
jmp 0x4253a9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43fca0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43fca0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43fca0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4253a9
cmp word [ebp - 4], ax
jne 0x425365
cmp esi, ebx
je 0x42531b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00425c37
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4253ac
push 0xd
pop eax
jmp 0x42531b
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43fca0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4253a6
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4253ac
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret