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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62fd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.005e7330
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.005ca260
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x5c93f1
jl 0x5c93c4
cmp ecx, edi
jae 0x5c93f1
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x5c93ed
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005ca290
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov ebx, eax
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x2770]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c946f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5c946f
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.005ca2a0
cmp eax, 0xa
jne 0x5c9482
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [0x6d31b8]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.005fc86b
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005ca290
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMpg___r_n
mov ecx, esi
call fcn.005c9900
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005ca290
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c94c0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push bind
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x5c9503
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5c94fd
push eax
push str.CreateFile___error__ld_in_CFormatParsing::Initialize___r_n
mov ecx, esi
call fcn.005c9900
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.005c8300
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 0x5c96b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x62fd66
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.005c9f20
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x5c971e
jl 0x5c96f6
cmp dword [esi + 0x18], 0x80
jae 0x5c971e
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.005ca020
mov eax, esi
jmp 0x5c98da
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 0x5c974c
call edi
test eax, eax
je 0x5c974c
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::GetLastMp3___r_n
jmp 0x5c98be
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 0x5c98b6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c98b6
lea ecx, [esp + 0x14]
call fcn.005ca090
cmp eax, 0x51
jne 0x5c98c5
lea ecx, [esp + 0x64]
call fcn.005fc87e
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5c97bf
lea edi, [esi + 8]
push 0x6d31cc
mov ecx, edi
call fcn.00603d7a
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.00603d7a
lea ecx, [esp + 0x6c]
call fcn.005fc87e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5c97ee
lea edi, [esi + 8]
push 0x6d31c8
mov ecx, edi
call fcn.00603d7a
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.00603d7a
lea ecx, [esp + 0x68]
call fcn.005fc87e
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x5c981d
lea edi, [esi + 8]
push 0x6d31c4
mov ecx, edi
call fcn.00603d7a
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.00603d7a
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00603aaa
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.005fc87e
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x5c9862
lea edi, [esi + 8]
push 0x6c3b2c
mov ecx, edi
call fcn.00603d3e
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00603d7a
lea ecx, [esp + 0x70]
call fcn.005fc87e
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5c9891
add esi, 8
push 0x6d31c0
mov ecx, esi
call fcn.00603d7a
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.00603d7a
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.00603a3c
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005ca020
xor eax, eax
jmp 0x5c98da
call edi
push eax
push str.ReadFile___error__ld_in_CFormatParsing::GetLastMp3___r_n
mov ecx, esi
call fcn.005c9900
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.005ca020
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 0x5ce8e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6302b0
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 + 0xb0]
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 + 0x3d4]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x5cea30
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 + 0xb0]
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 + 0x3c4]
mov edi, eax
cmp edi, ebx
jl 0x5cea30
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x5cea30
mov edx, dword [ebp - 0x30]
cmp edx, ebx
je 0x5cea30
mov ecx, dword [esi + 0x184]
cmp ecx, ebx
je 0x5ce9e5
cmp byte [ecx + 0x137], bl
je 0x5ce9e5
mov ecx, dword [esi + 0x3444]
cmp ecx, ebx
je 0x5ce9e5
push edx
push eax
call fcn.005cd440
test eax, eax
jne 0x5cea30
jmp 0x5ce9fd
mov ecx, dword [esi + 0x31e0]
push ebx
push edx
push eax
push ecx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5cea1b
cmp eax, ebx
je 0x5cea1b
push str.Sending_Close_Notify_n
mov ecx, esi
call fcn.0054d2a0
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3ec]
jmp 0x5cea30
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
jmp 0x5cea30
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3d0]
mov eax, dword [esi + 0xb0]
add esi, 0x3308
push esi
call dword [eax + 0x3bc]
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 0x5ceba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5cebab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5cecae
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
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 + 0x63fa20]
xor eax, edx
inc ecx
dec edi
jne 0x5cebc6
pop edi
test esi, esi
je 0x5cecd0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x63fa20]
xor eax, edx
inc ecx
dec esi
jne 0x5cecb2
pop esi
pop ebx
not eax
ret
Function at 0x5d5ed0
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d5f15
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 0x5d5f20
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d5f41
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d5f68
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 0x5d5f9c
test ebx, ebx
jne 0x5d5f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d5f9c
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.005e9a70
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d601d
push 0
push 4
push ebx
push esi
call fcn.005e9080
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d5ffb
mov eax, dword [edi + 0xc]
push eax
call fcn.005ffe68
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.005ffe3f
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d5ffb
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 0x5d601a
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 0x5d6380
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d63c5
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 0x5d63d0
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d63f1
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d6418
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 0x5d644c
test ebx, ebx
jne 0x5d644c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d644c
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.005e9a70
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d64c9
push 0
push 0x10
push ebx
push esi
call fcn.005e9080
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d64a7
mov eax, dword [edi + 0xc]
push eax
call fcn.005ffe68
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.005ffe3f
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d64a7
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 0x5d64c6
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 0x5d67a0
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_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d67e5
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 0x5d67f0
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d6811
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_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d6838
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 0x5d686c
test ebx, ebx
jne 0x5d686c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d686c
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.005e9a70
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d68ed
push 0
push 8
push ebx
push esi
call fcn.005e9080
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d68cb
mov eax, dword [edi + 0xc]
push eax
call fcn.005ffe68
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.005ffe3f
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d68cb
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 0x5d68ea
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 0x5d7620
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x630470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6cd768]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x50], 1
jle 0x5d76c7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005d6a10
test al, al
je 0x5d76be
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5d76a2
lea eax, [esp + 0x1c]
push eax
call fcn.005e71bf
add esp, 4
test eax, eax
jbe 0x5d76be
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5d76bb
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x5d767e
pop ebp
lea ecx, [esi + 0x70]
call fcn.005d5de0
lea ecx, [esi + 0x50]
call fcn.005d6180
mov al, byte [esp + 0x58]
mov dword [esi + 0x60], ebx
cmp al, bl
je 0x5d76f5
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5d76ec
lea eax, [esi + 0x68]
push ebx
push eax
mov ecx, esi
call fcn.005d71d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], bl
call fcn.00603a3c
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 5
call fcn.00603a3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.00603a3c
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.00603a3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x5d9ad0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x630728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.005db890
mov ecx, esi
call fcn.005db2f0
mov eax, dword [esi + 0xbc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 8], ebx
jle 0x5d9c92
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebp, dword [esi + 0xc4]
mov eax, edi
add eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5d9b2c
mov eax, ecx
jmp 0x5d9b2f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], bx
mov ecx, dword [esi + 0xc4]
mov eax, edi
add eax, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5d9b5c
lea ecx, [eax + 4]
mov eax, str._s.z
test eax, eax
je 0x5d9c50
cmp ecx, ebx
je 0x5d9c50
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00402410
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00401070
push ebx
push str._s.z
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.00402e00
mov eax, dword [esp + 0x28]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x5d9bc3
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
push eax
call fcn.005e71bf
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005ffe3f
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5d9c29
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.00402400
push eax
lea ecx, [esp + 0x38]
call fcn.00402400
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005e714f
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.00401070
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edx, ebx
mov eax, edx
jne 0x5d9c5a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xbc]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jl 0x5d9b18
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x5dbe90
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x2c
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push ecx
call fcn.005e7f83
mov al, byte [0x6d37d4]
add esp, 0x14
test al, 1
jne 0x5dbef8
or al, 1
push str.KERNEL32
mov byte [0x6d37d4], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x6d37cc], eax
je 0x5dbeee
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x6d37c8], eax
mov dword [0x6d37d0], 1
jne 0x5dbef8
mov dword [0x6d37d0], 0
mov eax, dword [0x6d37d0]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x5dbf31
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x6d37c8]
test eax, eax
je 0x5dbf64
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x5dbf64
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5dbf64
mov esi, dword [esp + 0x38]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
xor edi, edi
cmp edi, dword [esp + 0x40]
jg 0x5dbf81
jl 0x5dbf72
cmp esi, dword [esp + 0x3c]
ja 0x5dbf81
and esi, edi
cmp esi, 0xffffffff
je 0x5dbf81
pop edi
xor al, al
pop esi
add esp, 0x2c
ret
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret

Function at 0x5dc020
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005dc350
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
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 0x5dc06b
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 0x5dc09c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.005dc350
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x5dc10f
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 0x5dc0e6
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x5dc0e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5dc0e6
mov ecx, esi
call fcn.005dc350
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.005e9a70
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