joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dca00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5dca0b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x5dcae9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6b5ca8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x5dca25
pop edi
test edx, edx
je 0x5dcb0b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6b5ca8]
inc ecx
sub edx, 1
jne 0x5dcaf0
not eax
pop esi
ret

Function at 0x5ddc40
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x5ddc93
cmp dword [esi + 4], 0
jne 0x5ddc9c
call fcn.00622b14
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.006222ec
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x5ddc97
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.006255d0
add esp, 4
test eax, eax
je 0x5ddc93
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
ret

Function at 0x5dde70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5ddef7
cmp word [esi + 0x5c], 0x77
jne 0x5ddef7
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov dword [esi], ebp
mov dword [esi + 4], edi
test edi, edi
je 0x5ddedd
cmp dword [esi + 0x10], 0
jne 0x5ddebd
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0061fe85
add esp, 0x10
cmp eax, 0x4000
jne 0x5dded6
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.005dcb90
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x5ddedd
cmp dword [esi + 4], eax
jne 0x5dde93
jmp 0x5ddedd
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.005dca00
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x5ddf00
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x5ddfaa
cmp word [esi + 0x5c], 0x77
jne 0x5ddfaa
mov dword [esi + 4], ebx
push edi
lea ecx, [ecx]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x5ddf4e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0061fe85
add esp, 0x10
cmp eax, edi
jne 0x5ddfa0
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x5ddf90
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.005dcb90
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x5ddf6f
cmp eax, 0xfffffffb
jne 0x5ddf6f
mov dword [esi + 0x38], edi
cmp dword [esi + 0x10], 0
jne 0x5ddf7f
cmp dword [esi + 0x38], 1
je 0x5ddf7f
xor ebx, ebx
jmp 0x5ddf84
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x5ddf20
cmp eax, 1
je 0x5ddf20
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x5de390
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ebx
test esi, esi
je 0x5de58e
cmp word [esi + 0x5c], 0x72
jne 0x5de58e
mov eax, dword [esi + 0x38]
cmp eax, 0xfffffffd
je 0x5de586
cmp eax, 0xffffffff
je 0x5de586
cmp eax, 1
jne 0x5de3d2
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebp
test ebp, ebp
je 0x5de4ed
lea esp, [esp]
cmp dword [esi + 0x58], 0
jne 0x5de50e
cmp dword [esi + 4], 0
jne 0x5de44f
cmp dword [esi + 0x3c], 0
jne 0x5de44f
call fcn.00622b14
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.006222ec
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x5de44a
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.006255d0
add esp, 4
test eax, eax
jne 0x5de57a
mov eax, dword [esi + 0x44]
mov dword [esi], eax
push 0
push esi
call fcn.005dfdb0
add esp, 8
mov dword [esi + 0x38], eax
cmp eax, 1
jne 0x5de4ca
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x4c]
sub ecx, edi
push ecx
push edi
push edx
call fcn.005dca00
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, esi
call fcn.005de010
cmp eax, dword [esi + 0x4c]
jne 0x5de4e2
mov eax, esi
call fcn.005de010
mov eax, esi
call fcn.005ddcb0
cmp dword [esi + 0x38], 0
jne 0x5de4e9
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x14]
push esi
call fcn.005dfc10
push 0
push 0
push 0
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
call fcn.005dca00
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x38], 0
jne 0x5de4ed
cmp dword [esi + 0x3c], 0
jne 0x5de4ed
cmp dword [esi + 0x10], 0
jne 0x5de3f0
jmp 0x5de4ed
mov dword [esi + 0x38], 0xfffffffd
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x4c]
sub eax, edi
push eax
push edi
push ecx
call fcn.005dca00
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebp
sub eax, dword [esi + 0x10]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov edi, dword [esi + 4]
mov eax, dword [esi + 0x10]
cmp edi, eax
jbe 0x5de51a
mov edi, eax
test edi, edi
jbe 0x5de540
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push edi
push ecx
push edx
call fcn.0061eea0
add dword [esi], edi
sub dword [esi + 0x10], edi
lea eax, [edi + ebx]
add esp, 0xc
sub dword [esi + 4], edi
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x5de55e
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 1
push edx
call fcn.006222ec
add esp, 0x10
sub dword [esi + 0x10], eax
sub ebp, dword [esi + 0x10]
add dword [esi + 8], ebp
add dword [esi + 0x14], ebp
test ebp, ebp
jne 0x5de572
mov dword [esi + 0x3c], 1
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov dword [esi + 0x38], 0xffffffff
jmp 0x5de4ed
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ecx
ret
Function at 0x5e2340
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.006222ec
add esp, 0x10
cmp eax, 1
jne 0x5e2367
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov dword [edx], ecx
xor eax, eax
pop ecx
ret
push esi
call fcn.006255d0
add esp, 4
neg eax
sbb eax, eax
pop ecx
ret

Function at 0x5e2450
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.00624482
add esp, 0xc
test eax, eax
je 0x5e2483
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.0062438a
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
jae 0x5e249d
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call fcn.0061f92f
mov esi, eax
add esp, 4
test esi, esi
jne 0x5e24b7
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x5e2564
jmp 0x5e24d8
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
mov ebx, ebp
cmp eax, ebp
ja 0x5e24e6
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
mov edi, 0x404
cmp eax, 0x404
ja 0x5e24fc
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.00624482
add esp, 0xc
test eax, eax
jne 0x5e2564
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.006222ec
add esp, 0x10
cmp eax, 1
jne 0x5e2564
lea eax, [edi - 3]
test eax, eax
jle 0x5e255a
lea ecx, [ecx]
dec eax
cmp byte [eax + esi], 0x50
jne 0x5e254c
cmp byte [eax + esi + 1], 0x4b
jne 0x5e254c
cmp byte [eax + esi + 2], 5
jne 0x5e254c
cmp byte [eax + esi + 3], 6
je 0x5e2552
test eax, eax
jg 0x5e2530
jmp 0x5e255a
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x5e2564
cmp ebx, dword [esp + 0x10]
jb 0x5e24d0
push esi
call fcn.0061e83c
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5e2b70
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 0x5e2b93
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x5e2ba3
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x5e2bb2
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5e2bc1
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 0x5e2bd5
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x5e2ced
cmp dword [esi + 8], 0
jne 0x5e2c48
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x5e2c48
mov edi, 0x4000
cmp eax, edi
jae 0x5e2c02
mov edi, eax
test edi, edi
je 0x5e2cf9
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.00624482
add esp, 0xc
test eax, eax
jne 0x5e2d03
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.006222ec
add esp, 0x10
cmp eax, 1
jne 0x5e2d03
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 0x5e2c9d
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x5e2c5a
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x5e2c71
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 0x5e2c60
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.005dca00
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 0x5e2cdc
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.005dfdb0
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.005dca00
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 0x5e2ced
test eax, eax
jne 0x5e2d0e
cmp dword [esi + 0x14], 0
ja 0x5e2be2
cmp dword [esp + 0x14], 0
jne 0x5e2d0e
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 0x5e32b0
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 0x5e32f6
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 0x5e3300
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 0x5e3321
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 0x5e334e
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 0x5e3385
test ebx, ebx
jne 0x5e3385
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e3385
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.00621c40
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e3409
push 0
push 4
push ebx
push edi
call fcn.006212e0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e33e3
mov eax, dword [esi + 0xc]
push eax
call fcn.005f15b7
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.005f15c2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e3379
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 0x5e3379
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 0x5e3600
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 0x5e3645
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 0x5e37a0
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 0x5e37c1
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 0x5e37ee
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 0x5e3825
test ebx, ebx
jne 0x5e3825
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e3825
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.00621c40
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e38a9
push 0
push 0x10
push ebx
push edi
call fcn.006212e0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e3883
mov eax, dword [esi + 0xc]
push eax
call fcn.005f15b7
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.005f15c2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e3819
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 0x5e3819
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 0x5e3940
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 0x5e3961
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 0x5e398e
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 0x5e39c5
test ebx, ebx
jne 0x5e39c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e39c5
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.00621c40
add edi, eax
adc ebx, edx
mov edx, edi
or edx, ebx
je 0x5e3a49
push 0
push 8
push ebx
push edi
call fcn.006212e0
mov ebp, eax
cmp ebp, dword [esi + 8]
jl 0x5e3a23
mov eax, dword [esi + 0xc]
push eax
call fcn.005f15b7
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.005f15c2
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x5e39b9
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 0x5e39b9
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 0x5e3c80
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 0x5e3cc8
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 0x5e4010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x64ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x755898]
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 0x675ea0
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 0x5e408d
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005e83d0
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.0061d2ff
add esp, 0x1c
ret 8

Function at 0x5e46d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x665288
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004213a0
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 0x5e4788
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005e40d0
test al, al
je 0x5e4782
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5e4756
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5e4760
sub eax, edx
sar eax, 1
je 0x5e4782
mov eax, edi
test edi, edi
jne 0x5e477b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e4730
lea ecx, [esi + 0x70]
call fcn.005e31c0
lea ecx, [esi + 0x50]
call fcn.005e3560
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5e47ba
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5e47b0
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005e4010
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 0x5e47df
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.00421420
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.0061d2ff
add esp, 0x50
ret 4
Function at 0x5e4810
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6652d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.004213a0
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 0x5e48b9
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005e40d0
test al, al
je 0x5e48b3
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5e488e
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5e4891
sub eax, edx
sar eax, 1
je 0x5e48b3
mov eax, edi
cmp edi, ebx
jne 0x5e48ac
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5e4868
lea ecx, [esi + 0x70]
call fcn.005e31c0
lea ecx, [esi + 0x50]
call fcn.005e3560
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005e82d0
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 0x5e48f2
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 0x5e490e
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 0x5e4947
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.00421420
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.0061d2ff
add esp, 0x5c
ret