joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.3.1
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0040a440
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401234
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402340
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00412589
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401268
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00402470
add esp, 0xc
jmp 0x40138e
push 0x2000
call fcn.00412589
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00402470
add esp, 0xc
jmp 0x40138e
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x4012c9
ja 0x4012c2
cmp eax, 0x2000
jbe 0x4012c9
mov esi, 0x2000
jmp 0x4012cb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040e482
add esp, 0x10
cmp eax, esi
jne 0x401389
push dword [esp + 0x5c]
call fcn.0040e27d
add esp, 4
test eax, eax
jne 0x401389
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
nop
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00408950
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40133e.1
movzx ecx, byte [ecx + 0x401414]
jmp dword [ecx*4 + 0x401408]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013b2
push ebp
push esi
push 1
push ebx
call fcn.0040eba5
add esp, 0x10
cmp eax, esi
jne 0x401370
push ebp
call fcn.0040e27d
add esp, 4
test eax, eax
je 0x4013c3
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402340
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040a230
push dword [esp + 0x14]
call fcn.0041256e
push ebx
call fcn.0041256e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013c7
push esi
push ebx
push edi
call fcn.0040b960
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401310
cmp eax, 1
je 0x401401
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4013e5
cmp dword [esp + 0x10], ecx
jbe 0x401373
mov eax, dword [esp + 0x10]
jmp 0x4012b5
mov eax, 0xfffffffd
jmp 0x401373
cmp eax, 1
jne 0x401373
xor esi, esi
jmp 0x40138c
Function at 0x401420
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
push 0x427590
push esi
call fcn.00403b10
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
test edi, edi
jne 0x401462
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402340
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040e8a6
add esp, 0x10
test eax, eax
jns 0x4014b2
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402470
add esp, 0xc
push edi
call fcn.0040e221
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
push dword [ebx + 0xc]
call fcn.00412589
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4014f3
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402470
add esp, 0x10
push edi
call fcn.0040e221
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x401508
push ebp
push 0
push ebx
push edi
call fcn.004011e0
add esp, 0x10
jmp 0x401577
mov esi, dword [ebx + 0xc]
xor ebx, ebx
test esi, esi
je 0x40154e
test ebx, ebx
jb 0x401526
ja 0x40151f
cmp esi, 0x2000
jbe 0x401526
mov edi, 0x2000
jmp 0x401528
mov edi, esi
push dword [esp + 0x10]
push 1
push edi
push ebp
call fcn.0040e482
add esp, 0x10
cmp eax, 1
jb 0x401552
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x40151f
jb 0x40154e
test esi, esi
jne 0x401511
xor eax, eax
jmp 0x40156f
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402470
add esp, 0xc
or eax, 0xffffffff
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x401586
push ebp
call fcn.0041256e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040e221
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x406dd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x1c], xmm0
call fcn.00412589
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x406f3a
mov ebx, dword [esp + 0x2c]
push 2
push 0
push 0
push ebx
call fcn.0040e8a6
add esp, 0x10
test eax, eax
js 0x406f3a
push ebx
call fcn.00414b02
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x34]
test edx, edx
jb 0x406f3a
ja 0x406e56
cmp edi, eax
jb 0x406f3a
test edx, edx
jne 0x406e56
cmp edi, 0x2000
jae 0x406e56
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x406e63
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x406f3a
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.0040e8a6
add esp, 0x10
test eax, eax
js 0x406f3a
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040e482
add esp, 0x10
cmp eax, edi
jne 0x406f3a
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x406f19
lea ebx, [esi - 1]
add ebx, edi
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x406ed1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x406eda
add edx, 4
add esi, 4
sub eax, 4
jae 0x406ec0
cmp eax, 0xfffffffc
je 0x406f5a
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x406f07
cmp eax, 0xfffffffd
je 0x406f5a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x406f07
cmp eax, 0xfffffffe
je 0x406f5a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x406f07
cmp eax, 0xffffffff
je 0x406f5a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x406f5a
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x406eb1
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, 0
add edi, ebp
adc edx, ebx
add edi, 0xffffffff
adc edx, 0xffffffff
test ebx, ebx
jne 0x406e37
test ebp, ebp
jne 0x406e37
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0041256e
add esp, 4
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
add edi, ebp
adc esi, dword [esp + 0x10]
add edi, 0xffffffff
adc esi, 0xffffffff
jmp 0x406f42
Function at 0x4071b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x2254
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2260]
lea eax, [esp + 0x258]
push esi
push edi
push ebp
push 0x4292f8
push 0x1000
push eax
call fcn.00402300
mov ebx, eax
add esp, 0x10
cmp ebx, 0x1000
jge 0x407330
lea eax, [esp + 0x10]
mov esi, 0x1001
push eax
lea eax, [esp + 0x264]
sub esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407330
mov edx, 0x429304
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407256
test ax, ax
je 0x407252
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407256
add ecx, 4
add edx, 4
test ax, ax
jne 0x407230
xor eax, eax
jmp 0x40725b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407307
mov ecx, 0x429308
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407296
test dx, dx
je 0x407292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407296
add eax, 4
add ecx, 4
test dx, dx
jne 0x407270
xor eax, eax
jmp 0x40729b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407307
lea eax, [esp + 0x3c]
push eax
push 0x429310
lea eax, [esp + ebx*2 + 0x266]
push esi
push eax
call fcn.00402300
add esp, 0x10
cmp eax, esi
jge 0x407307
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x4072f9
test eax, 0x400
je 0x4072e7
cmp dword [esp + 0x34], 0xa000000c
jne 0x4072e7
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407307
lea eax, [esp + 0x260]
push eax
call fcn.004071b0
add esp, 4
jmp 0x407307
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407221
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
jmp 0x407333
or eax, 0xffffffff
mov ecx, dword [esp + 0x2260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ac53
add esp, 0x2254
ret
Function at 0x407770
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
lea ecx, [esp + 0x64]
push 0x1000
push ecx
add eax, 8
push eax
call fcn.00407d60
add esp, 0xc
push 1
push 0x407350
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [esp + 0x20]
mov dword [esp + 4], 0xc
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0x68], eax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0x78], eax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
add esp, 0x24
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4078bf
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040ac53
add esp, 0x2068
ret
push str.Failed_to_create_child_process__n
push 0x42935c
call fcn.00402690
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.0040ac53
add esp, 0x2068
ret
Function at 0x407940
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x4014
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x4010], eax
push ebx
push esi
mov esi, dword [esp + 0x4020]
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0
push 0
push ebx
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x407ac9
mov eax, dword [esp + 8]
test eax, eax
je 0x407ac9
push ebp
push 1
push eax
call fcn.00412563
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x407ac8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebp
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x407abf
push 0x1000
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x2012]
push eax
call fcn.00407d60
add esp, 0xc
test eax, eax
je 0x407abf
lea esi, [esp + 0x1c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4079f2
mov eax, dword [esp + 0xc]
sub esi, ecx
shr eax, 2
xor ebx, ebx
push edi
sar esi, 1
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x407abe
nop dword [eax]
push 0x1000
lea eax, [esp + 0x2024]
push eax
push dword [ebp + edi*4]
push dword [esp + 0x20]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x407a61
push esi
lea eax, [esp + 0x2024]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00414c30
add esp, 0xc
test eax, eax
jne 0x407a61
mov eax, dword [ebp + edi*4]
mov dword [ebp + ebx*4], eax
inc ebx
inc edi
cmp edi, dword [esp + 0x18]
jl 0x407a20
test ebx, ebx
jle 0x407abe
mov edi, ebp
mov ebp, dword [esp + 0x14]
push 0x1000
lea eax, [esp + 0x2024]
push eax
push dword [edi]
push ebp
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x407ab2
push dword [edi]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x407ab2
nop dword [eax]
cmp esi, 0x20
jge 0x407ab2
push dword [edi]
inc esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x407aa0
add edi, 4
sub ebx, 1
jne 0x407a72
mov ebp, dword [esp + 0x1c]
pop edi
push ebp
call fcn.0041256e
add esp, 4
pop ebp
mov ecx, dword [esp + 0x4018]
pop esi
pop ebx
xor ecx, esp
call fcn.0040ac53
add esp, 0x4014
ret
Function at 0x40b7ea
Capabilities:
Parse pe header

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

Function at 0x4123b6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00410f39
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4123d5
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x41241e
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4123c8
call fcn.00410fc8
jle 0x412469
inc esi
dec ecx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00410fc8
into
fdivr qword [eax]
test eax, 0xf8d4858d
invalid
clc
invalid
Function at 0x414906
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040af90
mov eax, dword [0x435040]
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.0041715f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414948
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414aa4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426290
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 + 0x43b330]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418bac
mov ecx, dword [esi*4 + 0x43b330]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x414a9d
cmp eax, dword [ecx + edi + 0x24]
jne 0x414a9d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414a9d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418bac
add esp, 0x14
test edx, edx
jl 0x414a9d
jg 0x414a13
test eax, eax
jb 0x414a9d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414a9d
jl 0x414a2d
cmp dword [ebp - 0x1008], eax
ja 0x414a9d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414a4b
test ebx, ebx
je 0x414a84
cmp ecx, edi
jae 0x414a84
mov al, byte [ecx]
cmp al, 0xd
jne 0x414a65
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414a71
cmp byte [ecx + 1], 0xa
jne 0x414a71
inc ecx
jmp 0x414a71
movzx eax, al
movsx eax, byte [eax + 0x435250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414a4b
cmp edx, ebx
jne 0x414a4b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414aa2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ac53
leave
ret
Function at 0x417eaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x43b330]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417eea
cmp byte [ebx], 0xa
jne 0x417eea
or byte [edi + eax + 0x28], 4
jmp 0x417eef
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x417fee
mov dl, byte [eax]
cmp dl, 0x1a
je 0x417fd1
inc eax
cmp dl, 0xd
je 0x417f1b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x417f41
cmp eax, ecx
jae 0x417f4f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x417f03
jmp 0x417fee
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 0x417fcc
cmp dword [ebp - 0x10], 0
je 0x417fcc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43b330]
test byte [eax + edi + 0x28], 0x48
je 0x417fa6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417f91
mov byte [esi], dl
jmp 0x417fa2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43b330]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417fee
cmp byte [ebp - 1], 0xa
jne 0x417fb5
cmp esi, ebx
jne 0x417fb5
mov byte [esi], 0xa
jmp 0x417fed
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418bca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417fee
mov byte [esi], 0xd
jmp 0x417fed
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43b330]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417feb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417fee
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417ff7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43b330]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41803d
cmp word [ebx], dx
jne 0x41803d
or byte [eax + edi + 0x28], 4
jmp 0x418042
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4181a5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418185
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418083
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4180b9
cmp eax, edx
jae 0x4180c7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41805e
jmp 0x4181a5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418180
cmp dword [ebp - 0x18], 0
je 0x418180
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43b330]
test byte [eax + edi + 0x28], 0x48
je 0x418156
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41811a
mov word [esi], cx
jmp 0x418151
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43b330]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43b330]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43b330]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4181a5
pop eax
cmp word [ebp - 4], ax
jne 0x418166
cmp esi, ebx
jne 0x418166
mov word [esi], ax
jmp 0x4181a2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418bca
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4181a5
push 0xd
pop eax
jmp 0x418161
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43b330]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41819f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4181a5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret