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

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x298
push 0xffffffffffffffff
push 0x63e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2a0]
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b8d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x298
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], esi
push 0x81
push esi
lea eax, [ebp + 0x210]
push eax
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0x80
lea edx, [ebp + 0x210]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x5b8e78
cmp dword [ebp - 0x18], esi
je 0x5b8e78
lea eax, [ebp + 0x210]
push eax
call fcn.005ff3be
push str._HTML
lea ecx, [ebp + 0x210]
push ecx
call fcn.005f9c10
add esp, 0xc
test eax, eax
jne 0x5b8e00
push str.__HTML
lea edx, [ebp + 0x210]
push edx
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x5b8e08
mov esi, 1
mov dword [ebp - 0x14], esi
push str._BODY
lea eax, [ebp + 0x210]
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x5b8e38
push str.__BODY
lea ecx, [ebp + 0x210]
push ecx
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x5b8e40
mov esi, 1
mov dword [ebp - 0x14], esi
push str._HEAD
lea edx, [ebp + 0x210]
push edx
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x5b8e70
push str.__HEAD
lea eax, [ebp + 0x210]
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x5b8e78
mov esi, 1
mov dword [ebp - 0x14], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5b8d59

Function at 0x5b9830
Capabilities:
Get file size

Disassembly:
push esi
push edi
lea eax, [esp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b986b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b986b
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.005bb4f0
pop edi
xor eax, eax
xor edx, edx
pop esi
ret 4
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
xor ecx, ecx
add eax, esi
pop edi
adc edx, ecx
pop esi
ret 4
Function at 0x5ba060
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x63e648
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x271c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
wait
lea ecx, [ebp - 0x68]
call fcn.005bb820
mov byte [ebp - 4], 1
mov ebx, 0x2710
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push edi
push ebx
mov ecx, esi
call fcn.005b95b0
cmp eax, 2
je 0x5ba0f6
cmp dword [esi + 0x14], edi
jne 0x5ba0ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005bb830
lea eax, [edi + 3]
wait
jmp 0x5ba256
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x18], ebx
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x14], edi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ba210
cmp dword [ebp - 0x20], 0
je 0x5ba210
push edi
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.005bb980
cmp eax, 0xa
jne 0x5ba223
lea ebx, [esi + 8]
mov ecx, dword [ebp - 0x50]
push ecx
sub esp, 8
fld qword [ebp - 0x30]
fstp qword [esp]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [0x710818]
push ecx
push ebx
call fcn.00402f60
add esp, 0x1c
xor edi, edi
mov dword [ebp], edi
mov dword [ebp + 8], edi
xor edx, edx
mov word [ebp + 4], dx
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [0x70f730]
push ecx
push eax
lea ecx, [ebp]
call fcn.00401960
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 3
mov eax, dword [ebp]
cmp eax, edi
jne 0x5ba196
lea eax, [ebp + 4]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x5ba1e7
push edi
lea ecx, [ebp - 0x14]
call fcn.00402830
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5ba1c2
lea ecx, [ebp + 4]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + 0xc], 1
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00405800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005bb830
xor eax, eax
wait
jmp 0x5ba256
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.005bb4f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005bb830
mov eax, 1
wait
jmp 0x5ba256
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x271c]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x2720
mov esp, ebp
pop ebp
ret
Function at 0x5ba280
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x5ba2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5ba2bd
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.005bb4f0
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005b9830
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ecx
mov al, 1
pop esi
ret 8
Function at 0x5bb5d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x63e88c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x50]
mov ecx, ebx
mov dword [esi], vtable.CMp3Format.0
call fcn.004024e0
xor edi, edi
mov dword [esp + 0x20], edi
lea ebp, [esi + 0x54]
mov ecx, ebp
call fcn.004024e0
mov byte [esp + 0x20], 1
lea ecx, [esi + 0x58]
call fcn.004024e0
mov byte [esp + 0x20], 2
lea ecx, [esi + 0x5c]
call fcn.004024e0
mov byte [esp + 0x20], 3
fldz
fstp dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x44], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
xor eax, eax
mov word [esi + 0x40], ax
mov byte [esi + 0x42], al
mov dword [esi + 0x48], eax
mov byte [esi + 0x4c], al
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
push edi
mov dword [esi + 0x3c], eax
push 0x64f8bc
mov ecx, ebx
mov dword [esi + 0x1c], edi
call fcn.00402940
push edi
push 0x64f8bc
mov ecx, ebp
call fcn.00402940
push edi
push 0x64f8bc
lea ecx, [esi + 0x58]
call fcn.00402940
push edi
push 0x64f8bc
lea ecx, [esi + 0x5c]
call fcn.00402940
mov dword [esp + 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5bf9a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ef60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ecx, dword [esi + 0x3450]
xor ebx, ebx
cmp ecx, ebx
je 0x5bfa23
cmp byte [esi + 0xcb], bl
je 0x5bf9f2
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x164]
jmp 0x5bf9fe
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x160]
cmp eax, 5
jne 0x5bfa23
push ecx
call dword [0x711110]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0xb0]
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [eax + 0x408]
call eax
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jge 0x5bfa79
mov dword [ebp - 4], 0xffffffff
jmp 0x5bfb67
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], ebx
mov edx, dword [esi + 0xb0]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [edx + 0x3f8]
call edx
mov edi, eax
cmp edi, ebx
jl 0x5bfb67
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x5bfb67
mov edx, dword [ebp - 0x34]
cmp edx, ebx
je 0x5bfb67
mov ecx, dword [esi + 0x184]
cmp ecx, ebx
je 0x5bfb13
cmp byte [ecx + 0x137], bl
je 0x5bfb13
mov ecx, dword [esi + 0x3454]
cmp ecx, ebx
je 0x5bfb13
push edx
push eax
call fcn.005beb60
test eax, eax
jne 0x5bfb67
jmp 0x5bfb2b
push ebx
push edx
push eax
mov eax, dword [esi + 0x31e0]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5bfb4b
cmp eax, ebx
je 0x5bfb4b
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.0054c540
mov ecx, dword [esi + 0xb0]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 0x420]
call eax
jmp 0x5bfb67
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
jmp 0x5bfb67
mov ecx, dword [esi + 0xb0]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ecx + 0x404]
call eax
mov ecx, dword [esi + 0xb0]
add esi, 0x3310
push esi
mov edx, dword [ecx + 0x3f0]
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5c17d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5c17db
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x5c18b9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68d398]
inc ecx
sub edx, 8
sub esi, 1
jne 0x5c17f5
pop edi
test edx, edx
je 0x5c18db
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x68d398]
inc ecx
sub edx, 1
jne 0x5c18c0
not eax
pop esi
ret

Function at 0x5c7120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.005fd808
add esp, 0x10
cmp eax, 1
jne 0x5c7147
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov dword [edx], ecx
xor eax, eax
pop ecx
ret
push esi
call fcn.0060086e
add esp, 4
neg eax
sbb eax, eax
pop ecx
ret
Function at 0x5c7230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push 2
push 0
mov ebp, 0xffff
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
call fcn.005ff78f
add esp, 0xc
test eax, eax
je 0x5c7263
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.005ff697
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
jae 0x5c727d
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call fcn.005fac1f
mov esi, eax
add esp, 4
test esi, esi
jne 0x5c7297
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x5c7344
jmp 0x5c72b8
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
mov ebx, ebp
cmp eax, ebp
ja 0x5c72c6
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
mov edi, 0x404
cmp eax, 0x404
ja 0x5c72dc
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.005ff78f
add esp, 0xc
test eax, eax
jne 0x5c7344
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.005fd808
add esp, 0x10
cmp eax, 1
jne 0x5c7344
lea eax, [edi - 3]
test eax, eax
jle 0x5c733a
lea ecx, [ecx]
dec eax
cmp byte [eax + esi], 0x50
jne 0x5c732c
cmp byte [eax + esi + 1], 0x4b
jne 0x5c732c
cmp byte [eax + esi + 2], 5
jne 0x5c732c
cmp byte [eax + esi + 3], 6
je 0x5c7332
test eax, eax
jg 0x5c7310
jmp 0x5c733a
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x5c7344
cmp ebx, dword [esp + 0x10]
jb 0x5c72b0
push esi
call fcn.005f9aa9
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5c7950
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
test eax, eax
jne 0x5c7973
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x5c7983
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x5c7992
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5c79a1
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x14], ecx
cmp ecx, eax
jbe 0x5c79b5
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x5c7acd
cmp dword [esi + 8], 0
jne 0x5c7a28
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x5c7a28
mov edi, 0x4000
cmp eax, edi
jae 0x5c79e2
mov edi, eax
test edi, edi
je 0x5c7ad9
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.005ff78f
add esp, 0xc
test eax, eax
jne 0x5c7ae3
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.005fd808
add esp, 0x10
cmp eax, 1
jne 0x5c7ae3
mov edx, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], edx
mov dword [esi + 8], edi
cmp dword [esi + 0x64], 0
jne 0x5c7a7d
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x5c7a3a
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x5c7a51
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x5c7a40
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.005c17d0
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [esp + 0x10], edi
mov dword [esi + 0x50], eax
jmp 0x5c7abc
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.005c4b80
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
sub edi, ebx
push edi
push ebp
push edx
mov dword [esp + 0x28], eax
call fcn.005c17d0
sub dword [esi + 0x5c], edi
add dword [esp + 0x24], edi
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 1
je 0x5c7acd
test eax, eax
jne 0x5c7aee
cmp dword [esi + 0x14], 0
ja 0x5c79c2
cmp dword [esp + 0x14], 0
jne 0x5c7aee
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x5c8090
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5c80d6
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
add edx, edx
add edx, edx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4

Function at 0x5c80e0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c8101
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebp
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
jne 0x5c812e
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebx
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x5c8165
test ebx, ebx
jne 0x5c8165
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c8165
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0
push ecx
call fcn.005fd4d0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5c81e9
push 0
push 4
push ebx
push edi
call fcn.005fc580
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5c81c3
mov eax, dword [esi + 0xc]
push eax
call fcn.005cfa9b
xor ecx, ecx
lea eax, [ebp + 0x2710]
mov dword [esi + 8], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5c8159
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c8159
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4

Function at 0x5c8340
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5c8385
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
shl edx, 4
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x5c8390
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c83b1
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebp
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
jne 0x5c83de
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebx
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x5c8415
test ebx, ebx
jne 0x5c8415
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c8415
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0
push ecx
call fcn.005fd4d0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5c8499
push 0
push 0x10
push ebx
push edi
call fcn.005fc580
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5c8473
mov eax, dword [esi + 0xc]
push eax
call fcn.005cfa9b
xor ecx, ecx
lea eax, [ebp + 0x2710]
mov dword [esi + 8], eax
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5c8409
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c8409
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4

Function at 0x5c8860
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5c88a8
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
push 0
add edx, edx
lea ecx, [esp + 0x10]
push ecx
add edx, edx
add edx, edx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4