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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5ccb5b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5ccc5e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x6603b8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6603b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6603b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6603b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6603b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x6603b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x6603b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6603b8]
xor eax, edx
inc ecx
dec edi
jne 0x5ccb76
pop edi
test esi, esi
je 0x5ccc80
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6603b8]
xor eax, edx
inc ecx
dec esi
jne 0x5ccc62
pop esi
pop ebx
not eax
ret
Function at 0x5d3e80
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d3ec5
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 2
push ecx
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 0x5d3ed0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d3ef1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d3f18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x5d3f4c
test ebx, ebx
jne 0x5d3f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d3f4c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d3fcd
push 0
push 4
push ebx
push esi
call fcn.005e7060
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d3fab
mov eax, dword [edi + 0xc]
push eax
call fcn.005fdcf6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*4]
push ecx
call fcn.005fdccd
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d3fab
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d3fca
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x5d41c0
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d4205
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 4
push ecx
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 0x5d4210
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d4231
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d4258
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x5d428c
test ebx, ebx
jne 0x5d428c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d428c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d4309
push 0
push 0x10
push ebx
push esi
call fcn.005e7060
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d42e7
mov eax, dword [edi + 0xc]
push eax
call fcn.005fdcf6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
shl eax, 4
push eax
call fcn.005fdccd
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d42e7
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d4306
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x5d4620
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
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5d4665
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push 0
shl edx, 3
push ecx
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 0x5d4670
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d4691
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5d46b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x5d46ec
test ebx, ebx
jne 0x5d46ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d46ec
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
add esi, eax
adc ebx, edx
mov edx, esi
or edx, ebx
je 0x5d476d
push 0
push 8
push ebx
push esi
call fcn.005e7060
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
jl 0x5d474b
mov eax, dword [edi + 0xc]
push eax
call fcn.005fdcf6
lea eax, [ebx + 0x2710]
mov dword [edi + 8], eax
lea ecx, [eax*8]
push ecx
call fcn.005fdccd
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x5d474b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d476a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [edi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x5d55d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x62fb10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6f175c]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x50], 1
jle 0x5d5677
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005d49c0
test al, al
je 0x5d566e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5d5652
lea eax, [esp + 0x1c]
push eax
call fcn.005e519b
add esp, 4
test eax, eax
jbe 0x5d566e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x5d566b
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x5d562e
pop ebp
lea ecx, [esi + 0x70]
call fcn.005d3d90
lea ecx, [esi + 0x50]
call fcn.005d4130
mov al, byte [esp + 0x58]
mov dword [esi + 0x60], ebx
cmp al, bl
je 0x5d56a5
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5d569c
lea eax, [esi + 0x68]
push ebx
push eax
mov ecx, esi
call fcn.005d5180
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], bl
call fcn.006018cc
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 5
call fcn.006018cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.006018cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.006018cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x5d7a80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x62fdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.005d9840
mov ecx, esi
call fcn.005d92a0
mov eax, dword [esi + 0xbc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 8], ebx
jle 0x5d7c42
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebp, dword [esi + 0xc4]
mov eax, edi
add eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5d7adc
mov eax, ecx
jmp 0x5d7adf
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], bx
mov ecx, dword [esi + 0xc4]
mov eax, edi
add eax, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5d7b0c
lea ecx, [eax + 4]
mov eax, str._s.z
test eax, eax
je 0x5d7c00
cmp ecx, ebx
je 0x5d7c00
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.004023c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00401070
push ebx
push str._s.z
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.00402ce0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x5d7b73
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5d7bd9
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.004023b0
push eax
lea ecx, [esp + 0x38]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.00401070
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edx, ebx
mov eax, edx
jne 0x5d7c0a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xbc]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jl 0x5d7ac8
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x5d9e40
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x2c
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push ecx
call fcn.005e5f68
mov al, byte [0x6f77b4]
add esp, 0x14
test al, 1
jne 0x5d9ea8
or al, 1
push str.KERNEL32
mov byte [0x6f77b4], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x6f77ac], eax
je 0x5d9e9e
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x6f77a8], eax
mov dword [0x6f77b0], 1
jne 0x5d9ea8
mov dword [0x6f77b0], 0
mov eax, dword [0x6f77b0]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x5d9ee1
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x6f77a8]
test eax, eax
je 0x5d9f14
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x5d9f14
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5d9f14
mov esi, dword [esp + 0x38]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
xor edi, edi
cmp edi, dword [esp + 0x40]
jg 0x5d9f31
jl 0x5d9f22
cmp esi, dword [esp + 0x3c]
ja 0x5d9f31
and esi, edi
cmp esi, 0xffffffff
je 0x5d9f31
pop edi
xor al, al
pop esi
add esp, 0x2c
ret
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret

Function at 0x5d9fd0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005da300
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
and eax, 2
push 0
add eax, 2
push 0
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x5da01b
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
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x5da04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.005da300
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x5da0bf
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 dword [esi + 8], 0xffffffff
jne 0x5da096
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x5da096
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5da096
mov ecx, esi
call fcn.005da300
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.005e7a50
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esi + 0xc], eax
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
Function at 0x5da0d0
Capabilities:
Write file on windows

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

Function at 0x5da170
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 0x5da189
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x5da1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5da1d6
test bl, bl
je 0x5da203
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]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5da20d
test bl, bl
je 0x5da203
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
test bl, bl
je 0x5da21b
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 0x5da230
Capabilities:
Write file on windows

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

Function at 0x5da340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5da397
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5da397
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]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x5da3c7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x5f1bdb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6f5528
cmp edx, dword [eax]
je 0x5f1bfd
add eax, 8
inc ecx
cmp eax, 0x6f55b8
jl 0x5f1bee
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6f5528]
jne 0x5f1d2b
mov eax, dword [0x6f9928]
cmp eax, 1
je 0x5f1d05
test eax, eax
jne 0x5f1c2e
cmp dword [0x6f2ab4], 1
je 0x5f1d05
cmp edx, 0xfc
je 0x5f1d2b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f1c65
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f0e50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005e9fd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f1ca8
lea eax, [ebp - 0x1a4]
push eax
call fcn.005e9fd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x68b8cc
push edi
call fcn.005e5700
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f0e50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f0e60
lea eax, [ebp - 0xa0]
push 0x6e7640
push eax
call fcn.005f0e60
push dword [esi + 0x6f552c]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f0e60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f4e0b
add esp, 0x2c
pop edi
jmp 0x5f1d2b
lea eax, [ebp + 8]
lea esi, [esi + 0x6f552c]
push 0
push eax
push dword [esi]
call fcn.005e9fd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret