joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c8270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659b30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
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 - 4], 0
mov bl, byte [ebp + 0xc]
mov byte [esi + 0x174], bl
mov al, byte [ebp + 0x10]
mov byte [esi + 0x173], al
mov eax, dword [ebp + 8]
test eax, eax
je 0x5c8495
cmp dword [esi + 0x478], 0
jne 0x5c82d8
push eax
call fcn.005c2b90
test al, al
je 0x5c8495
xor ecx, ecx
test bl, bl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bGICompl
mov eax, dword [esi + 0x478]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
xor ecx, ecx
cmp byte [ebp + 0x10], cl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bRetAfFR
mov eax, dword [esi + 0x478]
push eax
call edi
lea ecx, [esi + 0x44]
cmp byte [ecx], 0
je 0x5c8354
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5c8330
sub eax, ebx
inc eax
push eax
push ecx
mov ebx, 1
push ebx
push 0
push str.lastTryDate
mov ecx, dword [esi + 0x478]
push ecx
call edi
jmp 0x5c8359
mov ebx, 1
cmp byte [esi + 0x174], 0
je 0x5c848e
cmp byte [esi + 0x345], 0
je 0x5c839e
mov eax, dword [esi + 0x378]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c8378
sub eax, edx
je 0x5c839e
mov dword [ebp + 0xc], ebx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bUseCstmHdrs
mov eax, dword [esi + 0x478]
push eax
call edi
cmp byte [esi + 0x174], 0
je 0x5c848e
cmp byte [esi + 0x346], 0
je 0x5c83cf
mov dword [ebp + 0xc], ebx
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push str.bFGzHdr
mov edx, dword [esi + 0x478]
push edx
call edi
cmp byte [esi + 0x174], 0
je 0x5c848e
cmp byte [esi + 0x348], 0
je 0x5c8400
mov dword [ebp + 0xc], ebx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.bIPV4SsCn
mov ecx, dword [esi + 0x478]
push ecx
call edi
cmp byte [esi + 0x174], 0
je 0x5c848e
mov bl, byte [esi + 0x345]
test bl, bl
je 0x5c842b
mov eax, dword [esi + 0x378]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c8420
sub eax, edx
jne 0x5c843d
cmp byte [esi + 0x346], 0
jne 0x5c843d
cmp byte [esi + 0x348], 0
je 0x5c848e
xor edx, edx
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x346], dl
je 0x5c8452
mov edx, 1
mov dword [ebp - 0x14], edx
test bl, bl
je 0x5c8471
mov eax, dword [esi + 0x378]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c8460
sub eax, edi
je 0x5c8471
or edx, 2
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x348], 0
je 0x5c8480
or edx, 4
mov dword [ebp - 0x14], edx
push 0
push edx
mov edx, dword [esi]
push edx
call fcn.005c7340
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
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 0x5c8e10
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edi + 4]
push edx
push esi
call fcn.005702a0
add esp, 8
test eax, eax
jne 0x5c8e3d
pop edi
pop esi
ret 0xc
push ebp
push esi
call fcn.0054adf0
add esp, 4
xor ebp, ebp
mov ecx, eax
test edi, edi
jbe 0x5c8ed5
lea edx, [edi - 1]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x10]
mov esi, edx
shr esi, 1
inc esi
lea ebp, [esi + esi*2]
push ebx
lea ebx, [ebx]
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 2]
inc ecx
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [eax + 2]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add eax, 3
sub esi, 1
jne 0x5c8e70
pop ebx
lea eax, [edi + 1]
cmp ebp, eax
jne 0x5c8eee
pop ebp
pop edi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc
add edi, 2
cmp ebp, edi
jne 0x5c8efd
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop ebp
pop edi
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc
Function at 0x5c9e40
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x298
push 0xffffffffffffffff
push 0x659c18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x7496c8]
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 0x5c9ed0
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.00613241
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.00613900
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 0x5c9fc8
cmp dword [ebp - 0x18], esi
je 0x5c9fc8
lea eax, [ebp + 0x210]
push eax
call fcn.0061a00e
push str._HTML
lea ecx, [ebp + 0x210]
push ecx
call fcn.006148e0
add esp, 0xc
test eax, eax
jne 0x5c9f50
push str.__HTML
lea edx, [ebp + 0x210]
push edx
call fcn.006148e0
add esp, 8
test eax, eax
je 0x5c9f58
mov esi, 1
mov dword [ebp - 0x14], esi
push str._BODY
lea eax, [ebp + 0x210]
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x5c9f88
push str.__BODY
lea ecx, [ebp + 0x210]
push ecx
call fcn.006148e0
add esp, 8
test eax, eax
je 0x5c9f90
mov esi, 1
mov dword [ebp - 0x14], esi
push str._HEAD
lea edx, [ebp + 0x210]
push edx
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x5c9fc0
push str.__HEAD
lea eax, [ebp + 0x210]
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x5c9fc8
mov esi, 1
mov dword [ebp - 0x14], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5c9ea9

Function at 0x5caa70
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 0x5caaab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5caaab
push eax
push str.GetFileSize___error_in_CFormatParsing::GetFSize____errcode___ld._r_n
mov ecx, edi
call fcn.005ca990
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.00617ef0
xor ecx, ecx
add eax, esi
pop edi
adc edx, ecx
pop esi
ret 4
Function at 0x5cb290
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.00614970
push 0xffffffffffffffff
push 0x659eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7496c8]
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.005cc980
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.005ca710
cmp eax, 2
je 0x5cb326
cmp dword [esi + 0x14], edi
jne 0x5cb31a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005cc990
lea eax, [edi + 3]
wait
jmp 0x5cb486
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 0x5cb440
cmp dword [ebp - 0x20], 0
je 0x5cb440
push edi
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.005ccae0
cmp eax, 0xa
jne 0x5cb453
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 [0x74fd00]
push ecx
push ebx
call fcn.00402f80
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 [0x74eb40]
push ecx
push eax
lea ecx, [ebp]
call fcn.00401980
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
mov eax, dword [ebp]
cmp eax, edi
jne 0x5cb3c6
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 0x5cb417
push edi
lea ecx, [ebp - 0x14]
call fcn.00402850
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5cb3f2
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.00405920
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005cc990
xor eax, eax
wait
jmp 0x5cb486
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.005ca990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.005cc990
mov eax, 1
wait
jmp 0x5cb486
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.00613241
add ebp, 0x2720
mov esp, ebp
pop ebp
ret
Function at 0x5cb4b0
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 0x5cb4f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5cb4ed
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.005ca990
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005caa70
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 0x5cc730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x65a0cc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
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.00402500
xor edi, edi
mov dword [esp + 0x20], edi
lea ebp, [esi + 0x54]
mov ecx, ebp
call fcn.00402500
mov byte [esp + 0x20], 1
lea ecx, [esi + 0x58]
call fcn.00402500
mov byte [esp + 0x20], 2
lea ecx, [esi + 0x5c]
call fcn.00402500
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 0x66b96c
mov ecx, ebx
mov dword [esi + 0x1c], edi
call fcn.00402960
push edi
push 0x66b96c
mov ecx, ebp
call fcn.00402960
push edi
push 0x66b96c
lea ecx, [esi + 0x58]
call fcn.00402960
push edi
push 0x66b96c
lea ecx, [esi + 0x5c]
call fcn.00402960
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 0x5d0c30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a800
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
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 + 0x3468]
xor ebx, ebx
cmp ecx, ebx
je 0x5d0cb3
cmp byte [esi + 0xdb], bl
je 0x5d0c82
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + 0x16c]
jmp 0x5d0c8e
mov edx, dword [esi + 0xc0]
mov eax, dword [edx + 0x168]
cmp eax, 5
jne 0x5d0cb3
push ecx
call dword [0x75064c]
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 + 0xc0]
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [eax + 0x420]
call eax
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jge 0x5d0d09
mov dword [ebp - 4], 0xffffffff
jmp 0x5d0df7
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 + 0xc0]
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 + 0x410]
call edx
mov edi, eax
cmp edi, ebx
jl 0x5d0df7
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x5d0df7
mov edx, dword [ebp - 0x34]
cmp edx, ebx
je 0x5d0df7
mov ecx, dword [esi + 0x194]
cmp ecx, ebx
je 0x5d0da3
cmp byte [ecx + 0x137], bl
je 0x5d0da3
mov ecx, dword [esi + 0x346c]
cmp ecx, ebx
je 0x5d0da3
push edx
push eax
call fcn.005cfe10
test eax, eax
jne 0x5d0df7
jmp 0x5d0dbb
push ebx
push edx
push eax
mov eax, dword [esi + 0x31f0]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5d0ddb
cmp eax, ebx
je 0x5d0ddb
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.005579a0
mov ecx, dword [esi + 0xc0]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 0x438]
call eax
jmp 0x5d0df7
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
jmp 0x5d0df7
mov ecx, dword [esi + 0xc0]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ecx + 0x41c]
call eax
mov ecx, dword [esi + 0xc0]
add esi, 0x3328
push esi
mov edx, dword [ecx + 0x408]
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 0x5d2ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5d2aeb
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x5d2bc9
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 + 0x6aa868]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6aa868]
inc ecx
sub edx, 8
sub esi, 1
jne 0x5d2b05
pop edi
test edx, edx
je 0x5d2beb
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6aa868]
inc ecx
sub edx, 1
jne 0x5d2bd0
not eax
pop esi
ret

Function at 0x5d3d20
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x5d3d73
cmp dword [esi + 4], 0
jne 0x5d3d7c
call fcn.00618a54
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00618228
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x5d3d77
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.0061b4fe
add esp, 4
test eax, eax
je 0x5d3d73
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
ret

Function at 0x5d3f50
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5d3fd7
cmp word [esi + 0x5c], 0x77
jne 0x5d3fd7
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov dword [esi], ebp
mov dword [esi + 4], edi
test edi, edi
je 0x5d3fbd
cmp dword [esi + 0x10], 0
jne 0x5d3f9d
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.00615dc5
add esp, 0x10
cmp eax, 0x4000
jne 0x5d3fb6
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.005d2c70
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x5d3fbd
cmp dword [esi + 4], eax
jne 0x5d3f73
jmp 0x5d3fbd
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.005d2ae0
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x5d3fe0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x5d408a
cmp word [esi + 0x5c], 0x77
jne 0x5d408a
mov dword [esi + 4], ebx
push edi
lea ecx, [ecx]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x5d402e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.00615dc5
add esp, 0x10
cmp eax, edi
jne 0x5d4080
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x5d4070
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.005d2c70
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x5d404f
cmp eax, 0xfffffffb
jne 0x5d404f
mov dword [esi + 0x38], edi
cmp dword [esi + 0x10], 0
jne 0x5d405f
cmp dword [esi + 0x38], 1
je 0x5d405f
xor ebx, ebx
jmp 0x5d4064
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x5d4000
cmp eax, 1
je 0x5d4000
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x5d4470
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ebx
test esi, esi
je 0x5d466e
cmp word [esi + 0x5c], 0x72
jne 0x5d466e
mov eax, dword [esi + 0x38]
cmp eax, 0xfffffffd
je 0x5d4666
cmp eax, 0xffffffff
je 0x5d4666
cmp eax, 1
jne 0x5d44b2
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebp
test ebp, ebp
je 0x5d45cd
lea esp, [esp]
cmp dword [esi + 0x58], 0
jne 0x5d45ee
cmp dword [esi + 4], 0
jne 0x5d452f
cmp dword [esi + 0x3c], 0
jne 0x5d452f
call fcn.00618a54
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00618228
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x5d452a
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.0061b4fe
add esp, 4
test eax, eax
jne 0x5d465a
mov eax, dword [esi + 0x44]
mov dword [esi], eax
push 0
push esi
call fcn.005d5e90
add esp, 8
mov dword [esi + 0x38], eax
cmp eax, 1
jne 0x5d45aa
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x4c]
sub ecx, edi
push ecx
push edi
push edx
call fcn.005d2ae0
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, esi
call fcn.005d40f0
cmp eax, dword [esi + 0x4c]
jne 0x5d45c2
mov eax, esi
call fcn.005d40f0
mov eax, esi
call fcn.005d3d90
cmp dword [esi + 0x38], 0
jne 0x5d45c9
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x14]
push esi
call fcn.005d5cf0
push 0
push 0
push 0
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
call fcn.005d2ae0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x38], 0
jne 0x5d45cd
cmp dword [esi + 0x3c], 0
jne 0x5d45cd
cmp dword [esi + 0x10], 0
jne 0x5d44d0
jmp 0x5d45cd
mov dword [esi + 0x38], 0xfffffffd
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x4c]
sub eax, edi
push eax
push edi
push ecx
call fcn.005d2ae0
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebp
sub eax, dword [esi + 0x10]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov edi, dword [esi + 4]
mov eax, dword [esi + 0x10]
cmp edi, eax
jbe 0x5d45fa
mov edi, eax
test edi, edi
jbe 0x5d4620
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push edi
push ecx
push edx
call fcn.00614de0
add dword [esi], edi
sub dword [esi + 0x10], edi
lea eax, [edi + ebx]
add esp, 0xc
sub dword [esi + 4], edi
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x5d463e
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 1
push edx
call fcn.00618228
add esp, 0x10
sub dword [esi + 0x10], eax
sub ebp, dword [esi + 0x10]
add dword [esi + 8], ebp
add dword [esi + 0x14], ebp
test ebp, ebp
jne 0x5d4652
mov dword [esi + 0x3c], 1
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov dword [esi + 0x38], 0xffffffff
jmp 0x5d45cd
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ecx
ret