joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5db790
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 0x5db7d6
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 0x5db7e0
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 0x5db801
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 0x5db82e
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 0x5db865
test ebx, ebx
jne 0x5db865
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5db865
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.0061a480
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5db8e9
push 0
push 4
push ebx
push edi
call fcn.006197b0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5db8c3
mov eax, dword [esi + 0xc]
push eax
call fcn.005e9ab2
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.005e9aa7
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5db859
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 0x5db859
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 0x5dbc30
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 0x5dbc75
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 0x5dbc80
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 0x5dbca1
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 0x5dbcce
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 0x5dbd05
test ebx, ebx
jne 0x5dbd05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5dbd05
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.0061a480
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5dbd89
push 0
push 0x10
push ebx
push edi
call fcn.006197b0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5dbd63
mov eax, dword [esi + 0xc]
push eax
call fcn.005e9ab2
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.005e9aa7
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5dbcf9
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 0x5dbcf9
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 0x5dc040
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 0x5dc088
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 0x5dc090
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 0x5dc0b1
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 0x5dc0de
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 0x5dc115
test ebx, ebx
jne 0x5dc115
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5dc115
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.0061a480
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5dc199
push 0
push 8
push ebx
push edi
call fcn.006197b0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5dc173
mov eax, dword [esi + 0xc]
push eax
call fcn.005e9ab2
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.005e9aa7
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5dc109
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 0x5dc109
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 0x5dc4f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x646338
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x74d890]
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 0x66dea8
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 0x5dc56d
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005e08b0
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.006157d3
add esp, 0x1c
ret 8
Function at 0x5dcbb0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65d2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.00420ef0
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 0x5dcc68
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005dc5b0
test al, al
je 0x5dcc62
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5dcc36
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5dcc40
sub eax, edx
sar eax, 1
je 0x5dcc62
mov eax, edi
test edi, edi
jne 0x5dcc5b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5dcc10
lea ecx, [esi + 0x70]
call fcn.005db6a0
lea ecx, [esi + 0x50]
call fcn.005db9a0
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5dcc9a
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5dcc90
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005dc4f0
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 0x5dccbf
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.00420f70
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.006157d3
add esp, 0x50
ret 4
Function at 0x5dccf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65d340
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.00420ef0
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 0x5dcd99
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005dc5b0
test al, al
je 0x5dcd93
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5dcd6e
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5dcd71
sub eax, edx
sar eax, 1
je 0x5dcd93
mov eax, edi
cmp edi, ebx
jne 0x5dcd8c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5dcd48
lea ecx, [esi + 0x70]
call fcn.005db6a0
lea ecx, [esi + 0x50]
call fcn.005db9a0
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005e07b0
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 0x5dcdd2
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 0x5dcdee
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 0x5dce27
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.00420f70
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.006157d3
add esp, 0x5c
ret
Function at 0x5dd410
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x65d3ae
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x74d890]
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.00618767
add esp, 0x24
test eax, eax
jne 0x5dd543
test byte [0x7548ac], 1
jne 0x5dd4c1
or dword [0x7548ac], 1
mov dword [esp + 0x48], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x7548a8], eax
test eax, eax
je 0x5dd4af
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7548a4], eax
mov dword [0x7548a0], 1
test eax, eax
jne 0x5dd4b9
mov dword [0x7548a0], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x7548a0], 0
je 0x5dd4f7
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 [0x7548a4]
test eax, eax
je 0x5dd52a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5dd52a
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 0x5dd52a
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5dd543
jl 0x5dd538
cmp esi, dword [esp + 0x54]
ja 0x5dd543
and esi, edi
cmp esi, 0xffffffff
je 0x5dd543
xor al, al
jmp 0x5dd545
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.006157d3
add esp, 0x40
ret
Function at 0x5dea50
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.00616f00
push 0xffffffffffffffff
push 0x65d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74d890]
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.005dd400
mov ecx, esi
call fcn.005de720
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5deba5
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.0043b670
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5deaee
lea eax, [ebp + 4]
push 0x6af2dc
push eax
call fcn.005d6860
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5dec0d
push 0x679b18
push edi
mov ecx, esi
call fcn.0043b670
push eax
call fcn.0061849d
add esp, 8
mov esi, eax
test esi, esi
jne 0x5deb40
push ebx
call fcn.005d6540
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5dec06
lea eax, [ebp + 4]
jmp 0x5dec06
push esi
call fcn.0061da6c
add esp, 4
test eax, eax
jne 0x5debe8
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.0061a7b8
mov edi, eax
push esi
call fcn.0061daa0
add esp, 0x14
test eax, eax
je 0x5debca
push ebx
call fcn.005d6540
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5deb84
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00618177
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.006157d3
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5debe0
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005d6360
add esp, 0xc
cmp eax, edi
jne 0x5deb71
mov edi, dword [ebp - 0x18]
jmp 0x5deb40
push ebx
call fcn.005d6540
push esi
call fcn.00618177
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043b670
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 0x5deaa8
Function at 0x5dec50
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.00616f00
push 0xffffffffffffffff
push 0x65d4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
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.005de720
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5ded5e
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.0043b670
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5dece7
lea eax, [ebp + 4]
push 0x679b18
push eax
call fcn.005d6860
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5ded28
call fcn.0061afe4
push edi
mov ecx, esi
call fcn.0043b670
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ded4d
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5deca1
push 0x6714a4
push edi
mov ecx, esi
call fcn.0043b670
push eax
call fcn.0061849d
add esp, 8
mov edi, eax
test edi, edi
jne 0x5ded83
push ebx
call fcn.005d6540
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.006157d3
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005d64b0
add esp, 4
test eax, eax
jne 0x5dee49
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005d6880
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5dedcc
push edi
call fcn.00618177
push ebx
call fcn.005d6540
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
or eax, esi
jmp 0x5ded5e
test esi, esi
jle 0x5ded83
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.00618355
add esp, 0x10
cmp eax, esi
je 0x5ded83
call fcn.0061afe4
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.0043b670
push eax
call fcn.005dd410
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5dee1e
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005d6540
push edi
call fcn.00618177
add esp, 8
test esi, esi
jne 0x5dee36
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, esi
jmp 0x5ded5e
push ebx
call fcn.005d6540
push edi
call fcn.00618177
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5dee62
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 0x5deca1
Function at 0x5deed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x646338
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
push 0
mov esi, ecx
push edi
push 0x66dea8
lea ecx, [esi + 0xac]
call fcn.004021b0
cmp byte [esp + 0x30], 0
je 0x5def2b
mov ecx, esi
call fcn.005dec50
test eax, eax
jne 0x5def83
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 edi
push str._s.pdb
lea ecx, [esp + 0x18]
call fcn.004021b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5def62
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x50]
call fcn.005e08b0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
xor eax, eax
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.006157d3
add esp, 0x1c
ret 8

Function at 0x5df040
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x649f08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005dd400
mov ecx, esi
call fcn.005de720
xor ebp, ebp
cmp dword [esi + 0xbc], ebp
jle 0x5df10e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
jne 0x5df0a8
lea ecx, [eax + 4]
push ecx
call ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], ax
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, edx
jne 0x5df0d2
lea ecx, [eax + 4]
push edx
push ecx
push str._s.z
lea ecx, [esp + 0x20]
call fcn.004021b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5df0ee
lea eax, [esp + 0x18]
push eax
call ebx
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401210
inc ebp
add edi, 0xc
cmp ebp, dword [esi + 0xbc]
jl 0x5df096
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.006157d3
add esp, 0x1c
ret
Function at 0x5e05c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
push 2
lea eax, [esp + 0x14]
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]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x5e0629
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x24]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8

Function at 0x5e0650
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 0x5e0669
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x5e06b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e06b6
test bl, bl
je 0x5e06ac
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]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e069e
test bl, bl
je 0x5e06e3
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14