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

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.00625b7c
add esp, 0x10
cmp eax, 1
jne 0x5e5bc7
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov dword [edx], ecx
xor eax, eax
pop ecx
ret
push esi
call fcn.00628e60
add esp, 4
neg eax
sbb eax, eax
pop ecx
ret

Function at 0x5e5cb0
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.00627d12
add esp, 0xc
test eax, eax
je 0x5e5ce3
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.00627c1a
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
jae 0x5e5cfd
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call fcn.006231bf
mov esi, eax
add esp, 4
test esi, esi
jne 0x5e5d17
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x5e5dc4
jmp 0x5e5d38
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
mov ebx, ebp
cmp eax, ebp
ja 0x5e5d46
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
mov edi, 0x404
cmp eax, 0x404
ja 0x5e5d5c
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.00627d12
add esp, 0xc
test eax, eax
jne 0x5e5dc4
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.00625b7c
add esp, 0x10
cmp eax, 1
jne 0x5e5dc4
lea eax, [edi - 3]
test eax, eax
jle 0x5e5dba
lea ecx, [ecx]
dec eax
cmp byte [eax + esi], 0x50
jne 0x5e5dac
cmp byte [eax + esi + 1], 0x4b
jne 0x5e5dac
cmp byte [eax + esi + 2], 5
jne 0x5e5dac
cmp byte [eax + esi + 3], 6
je 0x5e5db2
test eax, eax
jg 0x5e5d90
jmp 0x5e5dba
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x5e5dc4
cmp ebx, dword [esp + 0x10]
jb 0x5e5d30
push esi
call fcn.006220cc
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5e63d0
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 0x5e63f3
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x5e6403
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x5e6412
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5e6421
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 0x5e6435
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x5e654d
cmp dword [esi + 8], 0
jne 0x5e64a8
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x5e64a8
mov edi, 0x4000
cmp eax, edi
jae 0x5e6462
mov edi, eax
test edi, edi
je 0x5e6559
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.00627d12
add esp, 0xc
test eax, eax
jne 0x5e6563
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.00625b7c
add esp, 0x10
cmp eax, 1
jne 0x5e6563
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 0x5e64fd
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x5e64ba
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x5e64d1
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 0x5e64c0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.005e0260
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 0x5e653c
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.005e3610
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.005e0260
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 0x5e654d
test eax, eax
jne 0x5e656e
cmp dword [esi + 0x14], 0
ja 0x5e6442
cmp dword [esp + 0x14], 0
jne 0x5e656e
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 0x5e6b00
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 0x5e6b46
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 0x5e6b50
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 0x5e6b71
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 0x5e6b9e
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 0x5e6bd5
test ebx, ebx
jne 0x5e6bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e6bd5
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.006254d0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e6c59
push 0
push 4
push ebx
push edi
call fcn.00624b70
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e6c33
mov eax, dword [esi + 0xc]
push eax
call fcn.005f4e52
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.005f4e47
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e6bc9
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 0x5e6bc9
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 0x5e6fa0
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 0x5e6fe5
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 0x5e7000
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 0x5e7021
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 0x5e704e
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 0x5e7085
test ebx, ebx
jne 0x5e7085
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e7085
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.006254d0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e7109
push 0
push 0x10
push ebx
push edi
call fcn.00624b70
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e70e3
mov eax, dword [esi + 0xc]
push eax
call fcn.005f4e52
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.005f4e47
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e7079
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 0x5e7079
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 0x5e71a0
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 0x5e71c1
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 0x5e71ee
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 0x5e7225
test ebx, ebx
jne 0x5e7225
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e7225
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.006254d0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e72a9
push 0
push 8
push ebx
push edi
call fcn.00624b70
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e7283
mov eax, dword [esi + 0xc]
push eax
call fcn.005f4e52
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.005f4e47
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e7219
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 0x5e7219
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 0x5e74e0
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 0x5e7528
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 0x5e7880
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x649c08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x758898]
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 0x678ea8
lea ecx, [edi + 0x64]
call fcn.004021a0
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.004021a0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5e78fd
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005ebc40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
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.00620b8d
add esp, 0x1c
ret 8

Function at 0x5e7f40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x668cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004214e0
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x10]
call fcn.004024f0
mov byte [esp + 0x5c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebp
jle 0x5e7ff8
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005e7940
test al, al
je 0x5e7ff2
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5e7fc6
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5e7fd0
sub eax, edx
sar eax, 1
je 0x5e7ff2
mov eax, edi
test edi, edi
jne 0x5e7feb
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e7fa0
lea ecx, [esi + 0x70]
call fcn.005e6a10
lea ecx, [esi + 0x50]
call fcn.005e6db0
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5e802a
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5e8020
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005e7880
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 0x5e804f
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.00421560
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.00620b8d
add esp, 0x50
ret 4
Function at 0x5e8080
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x668d20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.004214e0
xor ebx, ebx
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x6c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebx
jle 0x5e8129
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005e7940
test al, al
je 0x5e8123
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5e80fe
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5e8101
sub eax, edx
sar eax, 1
je 0x5e8123
mov eax, edi
cmp edi, ebx
jne 0x5e811c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e80d8
lea ecx, [esi + 0x70]
call fcn.005e6a10
lea ecx, [esi + 0x50]
call fcn.005e6db0
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005ebb40
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 0x5e8162
lea eax, [esi + 0x68]
push ebx
push eax
push str._s.cdb2
lea ecx, [esp + 0x28]
call fcn.004021a0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x5e817e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x1c]
call fcn.00401210
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 0x5e81b7
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.00421560
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.00620b8d
add esp, 0x5c
ret
Function at 0x5e87a0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x668d8e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x758898]
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.00623b27
add esp, 0x24
test eax, eax
jne 0x5e88d3
test byte [0x75f904], 1
jne 0x5e8851
or dword [0x75f904], 1
mov dword [esp + 0x48], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x75f900], eax
test eax, eax
je 0x5e883f
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x75f8fc], eax
mov dword [0x75f8f8], 1
test eax, eax
jne 0x5e8849
mov dword [0x75f8f8], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x75f8f8], 0
je 0x5e8887
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 [0x75f8fc]
test eax, eax
je 0x5e88ba
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5e88ba
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 0x5e88ba
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5e88d3
jl 0x5e88c8
cmp esi, dword [esp + 0x54]
ja 0x5e88d3
and esi, edi
cmp esi, 0xffffffff
je 0x5e88d3
xor al, al
jmp 0x5e88d5
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.00620b8d
add esp, 0x40
ret
Function at 0x5e9de0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.006222c0
push 0xffffffffffffffff
push 0x668ec8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x758898]
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.005e8790
mov ecx, esi
call fcn.005e9ab0
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e9f35
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.0043bf60
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021a0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e9e7e
lea eax, [ebp + 4]
push 0x6ba8e4
push eax
call fcn.005e1bd0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5e9f9d
push 0x684f54
push edi
mov ecx, esi
call fcn.0043bf60
push eax
call fcn.0062385d
add esp, 8
mov esi, eax
test esi, esi
jne 0x5e9ed0
push ebx
call fcn.005e18b0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e9f96
lea eax, [ebp + 4]
jmp 0x5e9f96
push esi
call fcn.00628e2c
add esp, 4
test eax, eax
jne 0x5e9f78
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.00625b7c
mov edi, eax
push esi
call fcn.00628e60
add esp, 0x14
test eax, eax
je 0x5e9f5a
push ebx
call fcn.005e18b0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e9f14
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00623537
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
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.00620b8d
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5e9f70
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005e16d0
add esp, 0xc
cmp eax, edi
jne 0x5e9f01
mov edi, dword [ebp - 0x18]
jmp 0x5e9ed0
push ebx
call fcn.005e18b0
push esi
call fcn.00623537
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043bf60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x14]
jmp 0x5e9e38
Function at 0x5e9fe0
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.006222c0
push 0xffffffffffffffff
push 0x668ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
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.005e9ab0
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5ea0ee
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.0043bf60
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021a0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5ea077
lea eax, [ebp + 4]
push 0x684f54
push eax
call fcn.005e1bd0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5ea0b8
call fcn.006263a4
push edi
mov ecx, esi
call fcn.0043bf60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ea0dd
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5ea031
push 0x67c5b0
push edi
mov ecx, esi
call fcn.0043bf60
push eax
call fcn.0062385d
add esp, 8
mov edi, eax
test edi, edi
jne 0x5ea113
push ebx
call fcn.005e18b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
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.00620b8d
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005e1820
add esp, 4
test eax, eax
jne 0x5ea1d9
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005e1bf0
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5ea15c
push edi
call fcn.00623537
push ebx
call fcn.005e18b0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
or eax, esi
jmp 0x5ea0ee
test esi, esi
jle 0x5ea113
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.00623715
add esp, 0x10
cmp eax, esi
je 0x5ea113
call fcn.006263a4
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.0043bf60
push eax
call fcn.005e87a0
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5ea1ae
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005e18b0
push edi
call fcn.00623537
add esp, 8
test esi, esi
jne 0x5ea1c6
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, esi
jmp 0x5ea0ee
push ebx
call fcn.005e18b0
push edi
call fcn.00623537
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5ea1f2
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov edi, dword [ebp - 0x14]
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x18]
jmp 0x5ea031