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

Disassembly:
push 0xffffffffffffffff
push 0x5ade16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0054f230
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x54ea2e
jl 0x54ea06
cmp dword [esi + 0x18], 0x80
jae 0x54ea2e
mov esi, dword [esi + 0x14]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
mov dword [esp + 0x164], 0xffffffff
and esi, 0xfffffffe
add esi, 3
call fcn.0054f330
mov eax, esi
jmp 0x54ebea
mov eax, dword [esi + 0x10]
push 2
push 0
push 0xffffffffffffff80
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x54ea5c
call edi
test eax, eax
je 0x54ea5c
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x54ebce
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xcc]
push 0x80
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54ebc6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x54ebc6
lea ecx, [esp + 0x14]
call fcn.0054f3a0
cmp eax, 0x51
jne 0x54ebd5
lea ecx, [esp + 0x64]
call fcn.0057f90e
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x54eacf
lea edi, [esi + 8]
push 0x66202c
mov ecx, edi
call fcn.00586ee5
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.00586ee5
lea ecx, [esp + 0x6c]
call fcn.0057f90e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x54eafe
lea edi, [esi + 8]
push 0x662028
mov ecx, edi
call fcn.00586ee5
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.00586ee5
lea ecx, [esp + 0x68]
call fcn.0057f90e
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x54eb2d
lea edi, [esi + 8]
push 0x662024
mov ecx, edi
call fcn.00586ee5
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.00586ee5
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00586ba1
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.0057f90e
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x54eb72
lea edi, [esi + 8]
push 0x6536ac
mov ecx, edi
call fcn.00586ea9
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00586ee5
lea ecx, [esp + 0x70]
call fcn.0057f90e
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x54eba1
add esi, 8
push 0x662020
mov ecx, esi
call fcn.00586ee5
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.00586ee5
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.00586b33
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.0054f330
xor eax, eax
jmp 0x54ebea
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.0054ec10
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.0054f330
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x553330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push edi
mov eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x80]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0x354]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x553453
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [esi + 0x80]
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ebx
call dword [ecx + 0x344]
mov edi, eax
cmp edi, ebx
jl 0x553453
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x553453
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x553453
push ebx
push ecx
mov ecx, dword [esi + 0x30c4]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x55343e
cmp eax, ebx
je 0x55343e
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.004f73c0
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x36c]
jmp 0x553453
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
jmp 0x553453
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x350]
mov eax, dword [esi + 0x80]
add esi, 0x31e4
push esi
call dword [eax + 0x33c]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5535c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5535cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5536ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5da580]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5da580]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5da580]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5da580]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5da580]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5da580]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5da580]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5da580]
xor eax, edx
inc ecx
dec edi
jne 0x5535e6
pop edi
test esi, esi
je 0x5536f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5da580]
xor eax, edx
inc ecx
dec esi
jne 0x5536d2
pop esi
pop ebx
not eax
ret
Function at 0x55a9b0
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55a9f5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 2
push ecx
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 0x55aa00
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55aa21
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x55aa48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x55aa7c
test ebx, ebx
jne 0x55aa7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55aa7c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.0056d280
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x55aafd
push 0
push 4
push ebx
push esi
call fcn.0056c820
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x55aadb
mov eax, dword [edi + 0xc]
push eax
call fcn.00582ef5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.00582ecc
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x55aadb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55aafa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x55aca0
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55ace5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 4
push ecx
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 0x55aeb0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55aed1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x55aef8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x55af2c
test ebx, ebx
jne 0x55af2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55af2c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.0056d280
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x55afa9
push 0
push 0x10
push ebx
push esi
call fcn.0056c820
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x55af87
mov eax, dword [edi + 0xc]
push eax
call fcn.00582ef5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.00582ecc
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x55af87
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55afa6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x55b1a0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55b1c1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x55b1e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x55b21c
test ebx, ebx
jne 0x55b21c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55b21c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.0056d280
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x55b29d
push 0
push 8
push ebx
push esi
call fcn.0056c820
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x55b27b
mov eax, dword [edi + 0xc]
push eax
call fcn.00582ef5
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.00582ecc
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x55b27b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55b29a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x55b3a0
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55b3e5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 3
push ecx
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 0x55bec0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ae4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x65ca8c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
mov byte [esp + 0x44], 1
jle 0x55bf45
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0055b4f0
test al, al
je 0x55bf3c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x55bf3c
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x55bf16
pop ebp
lea ecx, [esi + 0x68]
call fcn.0055a8c0
lea ecx, [esi + 0x50]
call fcn.0055ad80
mov al, byte [esp + 0x4c]
mov dword [esi + 0x60], 0
test al, al
je 0x55bf71
mov eax, dword [esi + 0x64]
push 0
push eax
mov ecx, esi
call fcn.0055bc30
lea ecx, [esp + 8]
mov byte [esp + 0x44], 0
call fcn.00586b33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 5
call fcn.00586b33
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.00586b33
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.00586b33
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.00586b33
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x55bfe0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ae528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x65ca8c]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x60]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
mov byte [esp + 0x4c], 1
test eax, eax
jle 0x55c064
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0055b4f0
test al, al
je 0x55c05c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x55c05c
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x55c036
lea ecx, [esi + 0x68]
call fcn.0055a8c0
lea ecx, [esi + 0x50]
call fcn.0055ad80
lea ecx, [esi + 8]
mov dword [esi + 0x60], 0
call fcn.0055fd60
mov edx, dword [0x65ca8c]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0xc]
push eax
push str._s.cdb
push ecx
mov byte [esp + 0x58], 2
call fcn.0057f8fb
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 1
call fcn.00586b33
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.00586b33
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 6
call fcn.00586b33
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 5
call fcn.00586b33
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call fcn.00586b33
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call fcn.00586b33
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret

Function at 0x55dda0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ae748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.0055f1a0
mov ecx, edi
call fcn.0055ef20
mov eax, dword [edi + 0xb8]
xor esi, esi
test eax, eax
jle 0x55de37
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0xb4]
mov eax, dword [eax + esi*4]
push eax
call ebx
mov ecx, dword [0x65ca8c]
mov dword [esp + 0xc], ecx
mov edx, dword [edi + 0xb4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov eax, dword [edx + esi*4]
push eax
push str._s.z
push ecx
call fcn.0057f8fb
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00586b33
mov eax, dword [edi + 0xb8]
inc esi
cmp esi, eax
jl 0x55ddd9
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x55f8a0
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push 0
push 0
push 0
push eax
push ecx
call fcn.0056b52c
mov al, byte [0x6626b8]
add esp, 0x14
test al, 1
jne 0x55f908
or al, 1
push str.KERNEL32
mov byte [0x6626b8], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x6626b0], eax
je 0x55f8fe
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x6626ac], eax
mov dword [0x6626b4], 1
jne 0x55f908
mov dword [0x6626b4], 0
mov eax, dword [0x6626b4]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x55f941
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [0x6626ac]
test eax, eax
je 0x55f974
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x55f974
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x55f974
mov esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x3c]
jg 0x55f991
jl 0x55f982
cmp esi, dword [esp + 0x38]
ja 0x55f991
and esi, edi
cmp esi, 0xffffffff
je 0x55f991
pop edi
xor al, al
pop esi
add esp, 0x28
ret
pop edi
mov al, 1
pop esi
add esp, 0x28
ret

Function at 0x55fa30
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0055fd60
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
and eax, 2
push 0
add eax, 2
push 0
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x55fa7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x55faac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0055fd60
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x55fb1f
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp dword [esi + 8], 0xffffffff
jne 0x55faf6
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x55faf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x55faf6
mov ecx, esi
call fcn.0055fd60
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.0056d280
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esi + 0xc], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x55fb30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push 2
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x55fb9a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, 0xffffffff
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
add edx, eax
push edi
mov dword [esi + 8], edx
mov ecx, dword [esi + 0xc]
adc ecx, 0
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x55fbd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
push esi
mov esi, ecx
test bl, bl
je 0x55fbe9
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x55fc36
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55fc36
test bl, bl
je 0x55fc63
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55fc6d
test bl, bl
je 0x55fc63
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
test bl, bl
je 0x55fc7b
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14