joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e6a10
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 0x5e6a31
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 0x5e6a5e
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 0x5e6a95
test ebx, ebx
jne 0x5e6a95
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e6a95
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.00624ab0
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e6b19
push 0
push 8
push ebx
push edi
call fcn.00624150
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e6af3
mov eax, dword [esi + 0xc]
push eax
call fcn.005f4432
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.005f4427
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e6a89
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 0x5e6a89
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 0x5e6e70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x64dd88
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.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 0x5e6eed
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005eb230
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.0062016f
add esp, 0x1c
ret 8
Function at 0x5e7530
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x668278
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.00421560
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 0x5e75e8
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005e6f30
test al, al
je 0x5e75e2
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5e75b6
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5e75c0
sub eax, edx
sar eax, 1
je 0x5e75e2
mov eax, edi
test edi, edi
jne 0x5e75db
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e7590
lea ecx, [esi + 0x70]
call fcn.005e6020
lea ecx, [esi + 0x50]
call fcn.005e63c0
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5e761a
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5e7610
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005e6e70
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 0x5e763f
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.004215e0
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.0062016f
add esp, 0x50
ret 4
Function at 0x5e7670
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6682c0
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.00421560
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 0x5e7719
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005e6f30
test al, al
je 0x5e7713
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5e76ee
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5e76f1
sub eax, edx
sar eax, 1
je 0x5e7713
mov eax, edi
cmp edi, ebx
jne 0x5e770c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e76c8
lea ecx, [esi + 0x70]
call fcn.005e6020
lea ecx, [esi + 0x50]
call fcn.005e63c0
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005eb130
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 0x5e7752
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 0x5e776e
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 0x5e77a7
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.004215e0
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.0062016f
add esp, 0x5c
ret
Function at 0x5e7d90
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x66832e
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.00623107
add esp, 0x24
test eax, eax
jne 0x5e7ec3
test byte [0x75f904], 1
jne 0x5e7e41
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 0x5e7e2f
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x75f8fc], eax
mov dword [0x75f8f8], 1
test eax, eax
jne 0x5e7e39
mov dword [0x75f8f8], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x75f8f8], 0
je 0x5e7e77
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 0x5e7eaa
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5e7eaa
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 0x5e7eaa
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5e7ec3
jl 0x5e7eb8
cmp esi, dword [esp + 0x54]
ja 0x5e7ec3
and esi, edi
cmp esi, 0xffffffff
je 0x5e7ec3
xor al, al
jmp 0x5e7ec5
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.0062016f
add esp, 0x40
ret
Function at 0x5e93d0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.006218a0
push 0xffffffffffffffff
push 0x668438
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.005e7d80
mov ecx, esi
call fcn.005e90a0
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e9525
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.0043c1c0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e946e
lea eax, [ebp + 4]
push 0x6ba85c
push eax
call fcn.005e11e0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5e958d
push 0x684f0c
push edi
mov ecx, esi
call fcn.0043c1c0
push eax
call fcn.00622e3d
add esp, 8
mov esi, eax
test esi, esi
jne 0x5e94c0
push ebx
call fcn.005e0ec0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e9586
lea eax, [ebp + 4]
jmp 0x5e9586
push esi
call fcn.0062840c
add esp, 4
test eax, eax
jne 0x5e9568
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.0062515c
mov edi, eax
push esi
call fcn.00628440
add esp, 0x14
test eax, eax
je 0x5e954a
push ebx
call fcn.005e0ec0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e9504
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00622b17
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.0062016f
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5e9560
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005e0ce0
add esp, 0xc
cmp eax, edi
jne 0x5e94f1
mov edi, dword [ebp - 0x18]
jmp 0x5e94c0
push ebx
call fcn.005e0ec0
push esi
call fcn.00622b17
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043c1c0
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 0x5e9428
Function at 0x5e95d0
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.006218a0
push 0xffffffffffffffff
push 0x668468
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.005e90a0
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e96de
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.0043c1c0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e9667
lea eax, [ebp + 4]
push 0x684f0c
push eax
call fcn.005e11e0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5e96a8
call fcn.00625984
push edi
mov ecx, esi
call fcn.0043c1c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e96cd
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5e9621
push 0x67c5b0
push edi
mov ecx, esi
call fcn.0043c1c0
push eax
call fcn.00622e3d
add esp, 8
mov edi, eax
test edi, edi
jne 0x5e9703
push ebx
call fcn.005e0ec0
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.0062016f
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005e0e30
add esp, 4
test eax, eax
jne 0x5e97c9
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005e1200
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e974c
push edi
call fcn.00622b17
push ebx
call fcn.005e0ec0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
or eax, esi
jmp 0x5e96de
test esi, esi
jle 0x5e9703
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.00622cf5
add esp, 0x10
cmp eax, esi
je 0x5e9703
call fcn.00625984
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.0043c1c0
push eax
call fcn.005e7d90
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5e979e
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005e0ec0
push edi
call fcn.00622b17
add esp, 8
test esi, esi
jne 0x5e97b6
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, esi
jmp 0x5e96de
push ebx
call fcn.005e0ec0
push edi
call fcn.00622b17
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5e97e2
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 0x5e9621
Function at 0x5e9850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64dd88
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 edi, dword [esp + 0x2c]
push 0
mov esi, ecx
push edi
push 0x678ea8
lea ecx, [esi + 0xac]
call fcn.004021b0
cmp byte [esp + 0x30], 0
je 0x5e98ab
mov ecx, esi
call fcn.005e95d0
test eax, eax
jne 0x5e9903
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 0x5e98e2
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x50]
call fcn.005eb230
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.0062016f
add esp, 0x1c
ret 8

Function at 0x5e99c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x654bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005e7d80
mov ecx, esi
call fcn.005e90a0
xor ebp, ebp
cmp dword [esi + 0xbc], ebp
jle 0x5e9a8e
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 0x5e9a28
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 0x5e9a52
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 0x5e9a6e
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 0x5e9a16
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.0062016f
add esp, 0x1c
ret
Function at 0x5eaf40
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 0x5eafa9
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 0x5eafd0
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 0x5eafe9
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 0x5eb036
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5eb036
test bl, bl
je 0x5eb02c
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 0x5eb01e
test bl, bl
je 0x5eb063
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x5eb070
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
cmp eax, dword [esp + 0x14]
push esi
mov esi, ecx
jg 0x5eb110
push ebx
push ebp
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x20]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x5eb0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5eb0dc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
or edx, eax
pop esi
add esp, 8
ret 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x28]
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
je 0x5eb0c7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 8
ret 0x14
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.005eaf40
pop esi
add esp, 8
ret 0x14

Function at 0x5eb170
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x5eb1c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5eb1c7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x5eb1b7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x5eb230
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005eb130
mov ebp, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
cmp byte [esp + 0x18], al
push 0
setne al
push 0
lea eax, [eax + eax + 2]
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x5eb27a
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
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
jne 0x5eb2ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.005eb130
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp byte [esp + 0x18], 0
je 0x5eb301
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 eax, 0xffffffff
jne 0x5eb2e2
cmp dword [esi + 0xc], 0
jne 0x5eb2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x5eb29b
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.00624ab0
add dword [esi + 8], eax
pop edi
adc dword [esi + 0xc], edx
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