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

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.00618228
add esp, 0x10
cmp eax, 1
jne 0x5d8457
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov dword [edx], ecx
xor eax, eax
pop ecx
ret
push esi
call fcn.0061b4fe
add esp, 4
neg eax
sbb eax, eax
pop ecx
ret

Function at 0x5d8540
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.0061a3df
add esp, 0xc
test eax, eax
je 0x5d8573
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.0061a2e7
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
jae 0x5d858d
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call fcn.0061586f
mov esi, eax
add esp, 4
test esi, esi
jne 0x5d85a7
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x5d8654
jmp 0x5d85c8
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
mov ebx, ebp
cmp eax, ebp
ja 0x5d85d6
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
mov edi, 0x404
cmp eax, 0x404
ja 0x5d85ec
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.0061a3df
add esp, 0xc
test eax, eax
jne 0x5d8654
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.00618228
add esp, 0x10
cmp eax, 1
jne 0x5d8654
lea eax, [edi - 3]
test eax, eax
jle 0x5d864a
lea ecx, [ecx]
dec eax
cmp byte [eax + esi], 0x50
jne 0x5d863c
cmp byte [eax + esi + 1], 0x4b
jne 0x5d863c
cmp byte [eax + esi + 2], 5
jne 0x5d863c
cmp byte [eax + esi + 3], 6
je 0x5d8642
test eax, eax
jg 0x5d8620
jmp 0x5d864a
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x5d8654
cmp ebx, dword [esp + 0x10]
jb 0x5d85c0
push esi
call fcn.0061477c
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5d8c60
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 0x5d8c83
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x5d8c93
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x5d8ca2
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5d8cb1
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 0x5d8cc5
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x5d8ddd
cmp dword [esi + 8], 0
jne 0x5d8d38
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x5d8d38
mov edi, 0x4000
cmp eax, edi
jae 0x5d8cf2
mov edi, eax
test edi, edi
je 0x5d8de9
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.0061a3df
add esp, 0xc
test eax, eax
jne 0x5d8df3
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.00618228
add esp, 0x10
cmp eax, 1
jne 0x5d8df3
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 0x5d8d8d
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x5d8d4a
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x5d8d61
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 0x5d8d50
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.005d2ae0
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 0x5d8dcc
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.005d5e90
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.005d2ae0
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 0x5d8ddd
test eax, eax
jne 0x5d8dfe
cmp dword [esi + 0x14], 0
ja 0x5d8cd2
cmp dword [esp + 0x14], 0
jne 0x5d8dfe
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 0x5d93a0
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 0x5d93e6
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 0x5d93f0
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 0x5d9411
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 0x5d943e
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 0x5d9475
test ebx, ebx
jne 0x5d9475
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d9475
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.00617ef0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5d94f9
push 0
push 4
push ebx
push edi
call fcn.00617220
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5d94d3
mov eax, dword [esi + 0xc]
push eax
call fcn.005e76a7
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.005e76b2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5d9469
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 0x5d9469
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 0x5d95f0
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 0x5d9611
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 0x5d963e
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 0x5d9675
test ebx, ebx
jne 0x5d9675
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d9675
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.00617ef0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5d96f9
push 0
push 0x10
push ebx
push edi
call fcn.00617220
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5d96d3
mov eax, dword [esi + 0xc]
push eax
call fcn.005e76a7
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.005e76b2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5d9669
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 0x5d9669
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 0x5d9960
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 0x5d99a5
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 0x5d9c50
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 0x5d9c98
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
Function at 0x5d9ca0
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 0x5d9cc1
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 0x5d9cee
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 0x5d9d25
test ebx, ebx
jne 0x5d9d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d9d25
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.00617ef0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5d9da9
push 0
push 8
push ebx
push edi
call fcn.00617220
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5d9d83
mov eax, dword [esi + 0xc]
push eax
call fcn.005e76a7
xor ecx, ecx
lea eax, [ebp + 0x2710]
mov dword [esi + 8], eax
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005e76b2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5d9d19
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 0x5d9d19
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 0x5da100
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x640718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
push 0
mov edi, ecx
push esi
push 0x66ae98
lea ecx, [edi + 0x64]
call fcn.004021b0
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push eax
push esi
push str._s.cdb2
lea ecx, [esp + 0x18]
call fcn.004021b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5da17d
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005de4c0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004011f0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 8
Function at 0x5da7c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65ab98
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.00421200
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x10]
call fcn.00402500
mov byte [esp + 0x5c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebp
jle 0x5da878
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005da1c0
test al, al
je 0x5da872
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5da846
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5da850
sub eax, edx
sar eax, 1
je 0x5da872
mov eax, edi
test edi, edi
jne 0x5da86b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5da820
lea ecx, [esi + 0x70]
call fcn.005d92b0
lea ecx, [esi + 0x50]
call fcn.005d9830
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5da8aa
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5da8a0
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005da100
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5da8cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00421280
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00613241
add esp, 0x50
ret 4
Function at 0x5da900
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65abe0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.00421200
xor ebx, ebx
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x6c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebx
jle 0x5da9a9
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005da1c0
test al, al
je 0x5da9a3
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5da97e
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5da981
sub eax, edx
sar eax, 1
je 0x5da9a3
mov eax, edi
cmp edi, ebx
jne 0x5da99c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5da958
lea ecx, [esi + 0x70]
call fcn.005d92b0
lea ecx, [esi + 0x50]
call fcn.005d9830
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005de3c0
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], dx
mov byte [esp + 0x6c], 2
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5da9e2
lea eax, [esi + 0x68]
push ebx
push eax
push str._s.cdb2
lea ecx, [esp + 0x28]
call fcn.004021b0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x5da9fe
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x1c]
call fcn.004011f0
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5daa37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00421280
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00613241
add esp, 0x5c
ret
Function at 0x5db020
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x65ac4e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.006161d7
add esp, 0x24
test eax, eax
jne 0x5db153
test byte [0x7506a4], 1
jne 0x5db0d1
or dword [0x7506a4], 1
mov dword [esp + 0x48], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x7506a0], eax
test eax, eax
je 0x5db0bf
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x75069c], eax
mov dword [0x750698], 1
test eax, eax
jne 0x5db0c9
mov dword [0x750698], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x750698], 0
je 0x5db107
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [0x75069c]
test eax, eax
je 0x5db13a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5db13a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5db13a
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5db153
jl 0x5db148
cmp esi, dword [esp + 0x54]
ja 0x5db153
and esi, edi
cmp esi, 0xffffffff
je 0x5db153
xor al, al
jmp 0x5db155
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00613241
add esp, 0x40
ret
Function at 0x5dc660
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.00614970
push 0xffffffffffffffff
push 0x65adb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x1900c], 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 - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005db010
mov ecx, esi
call fcn.005dc330
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5dc7b5
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b0a0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5dc6fe
lea eax, [ebp + 4]
push 0x6abd5c
push eax
call fcn.005d4450
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5dc81d
push 0x676aec
push edi
mov ecx, esi
call fcn.0043b0a0
push eax
call fcn.00615f0d
add esp, 8
mov esi, eax
test esi, esi
jne 0x5dc750
push ebx
call fcn.005d4130
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5dc816
lea eax, [ebp + 4]
jmp 0x5dc816
push esi
call fcn.0061b4ca
add esp, 4
test eax, eax
jne 0x5dc7f8
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.00618228
mov edi, eax
push esi
call fcn.0061b4fe
add esp, 0x14
test eax, eax
je 0x5dc7da
push ebx
call fcn.005d4130
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5dc794
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00615be7
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.00613241
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5dc7f0
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005d3f50
add esp, 0xc
cmp eax, edi
jne 0x5dc781
mov edi, dword [ebp - 0x18]
jmp 0x5dc750
push ebx
call fcn.005d4130
push esi
call fcn.00615be7
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043b0a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x14]
jmp 0x5dc6b8
Function at 0x5dc860
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.00614970
push 0xffffffffffffffff
push 0x65ade8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x1900c], 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 - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005dc330
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5dc96e
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b0a0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5dc8f7
lea eax, [ebp + 4]
push 0x676aec
push eax
call fcn.005d4450
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5dc938
call fcn.00618a54
push edi
mov ecx, esi
call fcn.0043b0a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5dc95d
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.004011f0
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5dc8b1
push 0x66e49c
push edi
mov ecx, esi
call fcn.0043b0a0
push eax
call fcn.00615f0d
add esp, 8
mov edi, eax
test edi, edi
jne 0x5dc993
push ebx
call fcn.005d4130
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.00613241
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005d40a0
add esp, 4
test eax, eax
jne 0x5dca59
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005d4470
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5dc9dc
push edi
call fcn.00615be7
push ebx
call fcn.005d4130
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
or eax, esi
jmp 0x5dc96e
test esi, esi
jle 0x5dc993
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.00615dc5
add esp, 0x10
cmp eax, esi
je 0x5dc993
call fcn.00618a54
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x2800]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xb8
call fcn.0043b0a0
push eax
call fcn.005db020
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5dca2e
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005d4130
push edi
call fcn.00615be7
add esp, 8
test esi, esi
jne 0x5dca46
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
mov eax, esi
jmp 0x5dc96e
push ebx
call fcn.005d4130
push edi
call fcn.00615be7
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5dca72
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004011f0
mov edi, dword [ebp - 0x14]
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x18]
jmp 0x5dc8b1