joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cbd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1440
call fcn.00415be0
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13d8], esi
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1400], esi
mov dword [ebp - 0x13d4], ebx
call fcn.004037b0
xor edi, edi
lea ecx, [ebp - 0x30]
inc edi
mov dword [ebp - 4], edi
call fcn.0040351d
test al, al
je 0x403eea
mov byte [ebp - 0x13d8], bl
lea ecx, [ebp - 0x13fc]
push dword [ebp - 0x13d8]
mov dword [ebp - 0x18], ebx
push 0xd
push str.cryptbase.dll
mov dword [ebp - 0x14], ebx
call fcn.00405ddd
push 8
pop ebx
mov dword [ebp - 0x13d4], ebx
lea ecx, [ebp - 0x1434]
mov byte [ebp - 4], 2
call fcn.00403b94
lea ecx, [ebp - 0x13fc]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x141c]
call fcn.00402eca
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push eax
call fcn.004090b0
lea ecx, [ebp - 0x141c]
call fcn.004046b2
lea ecx, [ebp - 0x1434]
call fcn.004046b2
lea ecx, [ebp - 0x13fc]
mov byte [ebp - 4], bl
call fcn.004046b2
call fcn.004138ee
or dword [ebp - 0x4c], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x13cc], ecx
mov edx, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [ebp + edi*4 - 0x13cc], ecx
inc edi
cmp edi, edx
jb 0x403dc4
or dword [ebp - 0x13dc], 0xffffffff
lea eax, [ebp - 0x13d0]
mov edi, 0x80000000
mov dword [ebp - 0x13d0], edx
push edi
lea ecx, [ebp - 0x13e4]
mov dword [ebp - 0x13e4], eax
mov dword [ebp - 0x13e0], 0x20
call fcn.00405ba4
lea ecx, [eax - 0x80000000]
cmp ecx, edi
jae 0x403e23
lea eax, [ecx - 0x80000000]
mov edx, eax
lea ecx, [ebp - 0x144c]
call fcn.00402571
push eax
mov edx, str.SophosSetup_
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x48]
call fcn.00404dc6
pop ecx
lea ecx, [ebp - 0x144c]
mov byte [ebp - 4], 0xb
call fcn.004046b2
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x13fc]
call fcn.00404a4f
lea eax, [ebp - 0x13fc]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00402eca
pop ecx
lea ecx, [ebp - 0x13fc]
mov dword [ebp - 0x13d4], 9
mov byte [ebp - 4], 0xb
call fcn.004046b2
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x403e9a
mov eax, dword [esi]
push eax
call fcn.00413a6f
test edx, edx
jne 0x403f0b
test al, al
jne 0x403eaf
push str.Failed_to_create_a_fresh_extraction_folder
jmp 0x403eef
lea ecx, [ebp - 0x48]
call fcn.004046b2
cmp dword [ebp - 0x14], 0
je 0x403ec6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x30]
call fcn.004046b2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414aa1
leave
ret
push str.Failed_to_locate_temporary_directory
lea ecx, [ebp - 0x13e4]
call fcn.00402649
push 0x444c6c
lea eax, [ebp - 0x13e4]
push eax
call fcn.004163e1
push esi
mov ecx, str.create_directory
call fcn.00403203
int3
Function at 0x405c83
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x405ccb
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x405c93
jmp 0x405cd8
cmp dword [esi], 0x4e0
jb 0x405cd8
call fcn.00405d12
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x405d12
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x405d24
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x405d69
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x40a680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432380
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x446054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00414c9c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004140d4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4323ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x446054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
call fcn.00406e60
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x3c], 0
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4341b4]
mov ecx, edi
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
call fcn.0040a9f0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x4341b4]
mov ecx, edi
call esi
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x20]
mov byte [ebp - 0x11], al
test edi, edi
je 0x40a838
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4341b4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40a835
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4341b4]
mov ecx, edi
call esi
mov al, byte [ebp - 0x11]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x40a851
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.00406dc0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f29b
Capabilities:
Create process on windows

Disassembly:
push 0xe0
mov eax, 0x432a0c
call fcn.00415339
mov dword [ebp - 0xe4], edx
mov esi, ecx
mov dword [ebp - 0xe0], esi
mov eax, dword [ebp + 8]
lea edi, [ebp - 0xd8]
mov dword [ebp - 0xe8], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 0x18]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40f2e2
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
lea ecx, [ecx + eax*2]
jb 0x40f2ec
mov edi, dword [edi]
xor ebx, ebx
sub ecx, edi
mov dword [ebp - 0xdc], ecx
mov eax, ebx
mov edx, ebx
sar ecx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xec], ecx
je 0x40f33e
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040fddf
push dword [ebp - 0xdc]
mov esi, dword [ebp - 0x1c]
push edi
push esi
call fcn.00416450
mov eax, dword [ebp - 0xec]
add esp, 0xc
mov edx, dword [ebp - 0x14]
lea eax, [esi + eax*2]
mov esi, dword [ebp - 0xe0]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [ebp - 4], ebx
mov word [ebp - 0xda], cx
cmp eax, edx
je 0x40f357
mov word [eax], cx
add dword [ebp - 0x18], 2
jmp 0x40f367
lea ecx, [ebp - 0xda]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fd2b
cmp dword [esi + 0x10], ebx
jne 0x40f370
mov ecx, ebx
jmp 0x40f37a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40f37a
mov ecx, dword [esi]
cmp dword [esi + 0x40], ebx
jne 0x40f383
mov eax, ebx
jmp 0x40f38e
lea eax, [esi + 0x30]
cmp dword [eax + 0x14], 8
jb 0x40f38e
mov eax, dword [eax]
cmp dword [esi + 0x70], 0
lea edx, [ebp - 0xd8]
push edx
push dword [ebp - 0xe4]
push eax
push ebx
push dword [esi + 0x60]
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
push ecx
je 0x40f3b9
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x40f3bf
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp - 0xd8]
mov edi, eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], vtable.StaticRaii_void___void___cdecl_utilities::Raii::CloseHandle_void____unsigned_int__0_.0
mov eax, dword [eax + 8]
cmp eax, esi
je 0x40f3fb
test eax, eax
je 0x40f3f2
push eax
call fcn.00410718
pop ecx
mov eax, dword [ebp - 0xe8]
mov dword [eax + 8], esi
test edi, edi
jne 0x40f464
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0xc8], bl
mov dword [ebp - 0xc4], 0x44080c
call fcn.0040f944
cmp byte [ebp - 0xc8], 0
jne 0x40f457
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040fa3d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe0], eax
mov ecx, esi
lea eax, [ebp - 0xe0]
push eax
call fcn.0040faa1
mov byte [ebp - 0xc8], 1
lea ecx, [ebp - 0xc8]
call fcn.0040f1f5
jmp 0x40f466
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.004043ba
lea ecx, [ebp - 0x1c]
call fcn.00409320
mov al, bl
call fcn.004152e8
ret
Function at 0x40f47e
Capabilities:
Terminate process

Disassembly:
push 0xa8
mov eax, 0x432a36
call fcn.00415339
mov edi, ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x3e8
push 0
push dword [edi]
sar eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40f59e
sub eax, 1
je 0x40f528
sub eax, 0x101
je 0x40f5a6
and dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0x44080c
call fcn.0040f944
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0xb0], 0
jne 0x40f51d
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0040fb05
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov ecx, esi
lea eax, [ebp - 0xb4]
push eax
call fcn.0040faa1
mov byte [ebp - 0xb0], 1
lea ecx, [ebp - 0xb0]
call fcn.0040f1f5
mov eax, dword [edi]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40f59e
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0xb0], al
mov dword [ebp - 0xac], 0x44080c
call fcn.0040f944
cmp byte [ebp - 0xb0], 0
jne 0x40f593
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0040fb69
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
mov ecx, esi
lea eax, [ebp - 0xb4]
push eax
call fcn.0040faa1
mov byte [ebp - 0xb0], 1
lea ecx, [ebp - 0xb0]
call fcn.0040f1f5
mov al, 1
call fcn.004152e8
ret
xor al, al
jmp 0x40f5a0
Function at 0x410fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jg 0x410fce
jl 0x410fc5
test esi, esi
jne 0x410fce
xor eax, eax
xor edx, edx
jmp 0x411087
cmp dword [ebx + 0x38], 0
je 0x410fe1
push eax
push esi
push edx
call fcn.00409dc0
jmp 0x411087
mov eax, dword [ebx + 0x1c]
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x411022
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411022
cmp eax, esi
jb 0x411003
mov eax, esi
mov dword [esp + 0x14], esi
push eax
push ecx
push edx
call fcn.00416450
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
sub edi, ecx
add dword [esp + 0x10], ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x41107d
mov ecx, ebx
call fcn.00411723
mov edx, dword [esp + 0x10]
mov ecx, edi
jmp 0x41105d
push dword [ebx + 0x4c]
push eax
push 1
push edx
call fcn.0041c8e5
mov edx, dword [esp + 0x20]
sub edi, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
mov ecx, edi
cmp eax, 0xfff
jne 0x411090
mov eax, 0xfff
cmp edi, eax
ja 0x411039
test ecx, ecx
je 0x41107d
push dword [ebx + 0x4c]
push edi
push 1
push edx
call fcn.0041c8e5
mov ecx, edi
add esp, 0x10
sub ecx, eax
sub esi, ecx
mov edx, dword [ebp + 0x10]
mov eax, esi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub esi, edi
jmp 0x41107f
Function at 0x4249cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042483c

Function at 0x424d98
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4386bc
push 0x4386b4
push 0x4361b4
push 0x1e
call fcn.00424c81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424dcc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341b4]
call esi
jmp 0x424dd2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x424e16
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4386cc
push 0x4386c4
push 0x4361d8
push 0x20
call fcn.00424c81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424e4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4255e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415be0
mov eax, dword [0x446054]
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.00421764
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x425622
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42577e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004312c0
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 + 0x448040]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004263db
mov ecx, dword [esi*4 + 0x448040]
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 0x425777
cmp eax, dword [edi + ecx + 0x24]
jne 0x425777
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 0x425777
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004263db
add esp, 0x14
test edx, edx
jl 0x425777
jg 0x4256ed
test eax, eax
jb 0x425777
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425777
jl 0x425707
cmp dword [ebp - 0x1008], eax
ja 0x425777
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425725
test ebx, ebx
je 0x42575e
cmp ecx, edi
jae 0x42575e
mov al, byte [ecx]
cmp al, 0xd
jne 0x42573f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42574b
cmp byte [ecx + 1], 0xa
jne 0x42574b
inc ecx
jmp 0x42574b
movzx eax, al
movsx eax, byte [eax + 0x4462e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425725
cmp edx, ebx
jne 0x425725
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42577c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414aa1
leave
ret
Function at 0x425879
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 + 0x448040]
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 0x4258b9
cmp byte [ebx], 0xa
jne 0x4258b9
or byte [eax + edi + 0x28], 4
jmp 0x4258be
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4259bc
mov al, byte [edx]
cmp al, 0x1a
je 0x42599e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4258ed
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425912
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42591c
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 0x4258cf
jmp 0x4259bc
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 0x425999
cmp dword [ebp - 0xc], 0
je 0x425999
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x448040]
test byte [eax + edi + 0x28], 0x48
je 0x425973
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42595e
mov byte [esi], dl
jmp 0x42596f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x448040]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4259bc
cmp byte [ebp - 1], 0xa
jne 0x425982
cmp esi, ebx
jne 0x425982
mov byte [esi], 0xa
jmp 0x4259bb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004263f9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4259bc
mov byte [esi], 0xd
jmp 0x4259bb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x448040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4259b8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4259bc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4259c5
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 + 0x448040]
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 0x425a08
cmp word [esi], dx
jne 0x425a08
or byte [edi + eax + 0x28], 4
jmp 0x425a0d
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 0x425b60
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 0x425b40
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425a4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425a85
cmp eax, edx
jae 0x425a91
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 0x425a27
jmp 0x425b60
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 0x425b3c
cmp dword [ebp - 0x14], 0
je 0x425b3c
mov eax, dword [ebx*4 + 0x448040]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425b14
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425add
mov word [esi], cx
jmp 0x425b10
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x448040]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x448040]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x448040]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425b60
pop ebx
cmp word [ebp - 4], bx
jne 0x425b25
cmp esi, dword [ebp + 0xc]
jne 0x425b25
mov word [esi], bx
jmp 0x425b5d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004263f9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425b60
push 0xd
jmp 0x425b59
mov ecx, dword [ebx*4 + 0x448040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425b57
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425b60
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