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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d75c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x645624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004c9bc0
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x4c9b91
push 0x612788
push edi
call fcn.0058d1ad
mov edi, eax
add esp, 8
test edi, edi
je 0x4c9b91
push 2
push 0
push edi
call fcn.00589ca8
add esp, 0xc
test eax, eax
jne 0x4c9b91
push edi
call fcn.005897a5
cdq
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c9b2a
mov dword [eax], ebx
push edi
call fcn.0059aa8c
push ebx
call fcn.0057b68c
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [ecx], eax
push edi
test eax, eax
jne 0x4c9b52
call fcn.00589953
add esp, 4
mov edi, 0x11
jmp 0x4c9b96
push ebx
push 1
push eax
call fcn.005915f1
add esp, 0x10
cmp eax, ebx
je 0x4c9b84
mov ebx, dword [ebp - 0x10]
push 1
push dword [ebx]
call fcn.0057cb5d
push edi
mov dword [ebx], 0
call fcn.00589953
add esp, 0xc
mov edi, 0xd
jmp 0x4c9b96
push edi
call fcn.00589953
add esp, 4
xor edi, edi
jmp 0x4c9b96
mov edi, 0xc
push 1
push esi
call fcn.0057cb5d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7b08
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
jb 0x4cf5c6
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0x90]
call fcn.004d0f40
add esp, 4
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x90]
call fcn.004d1060
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4cf608
mov eax, dword [esi]
jmp 0x4cf60a
mov eax, esi
lea edx, [ebp - 0x20]
cmp edx, eax
jb 0x4cf645
cmp ecx, 0x10
jb 0x4cf61a
mov edx, dword [esi]
jmp 0x4cf61c
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x20]
cmp eax, edx
jbe 0x4cf645
cmp ecx, 0x10
jb 0x4cf631
mov ecx, dword [esi]
jmp 0x4cf633
mov ecx, esi
push 0x10
lea eax, [ebp - 0x20]
sub eax, ecx
mov ecx, esi
push eax
push esi
call fcn.0045f9d0
jmp 0x4cf680
cmp ecx, 0x10
jae 0x4cf656
push dword [esi + 0x10]
mov ecx, esi
push 0x10
call fcn.004597e0
cmp dword [esi + 0x14], 0x10
jb 0x4cf660
mov eax, dword [esi]
jmp 0x4cf662
mov eax, esi
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0x10
jb 0x4cf67a
mov eax, dword [esi]
jmp 0x4cf67c
mov eax, esi
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push esi
call fcn.004cfab0
mov edi, eax
test edi, edi
je 0x4cf699
push str.Failed_to_Encrypt_checksum.
jmp 0x4cf6c1
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
push esi
call fcn.004d1450
add esp, 4
push esi
call fcn.004cf490
mov edi, eax
test edi, edi
je 0x4cf6cb
push str.Failed_to_scramble_checksum.
push 4
call fcn.004c6e10
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x4cf6e0
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00459720
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
Function at 0x4d1450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, edx
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4d146d
mov eax, dword [edi]
jmp 0x4d146f
mov eax, edi
mov byte [eax], 0
test ecx, ecx
je 0x4d15ca
test ebx, ebx
je 0x4d15ca
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 4], al
inc ecx
mov ah, byte [ebp - 2]
inc esi
mov dl, byte [ebp - 3]
mov dh, byte [ebp - 4]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xb], ah
mov byte [ebp - 9], dl
mov byte [ebp - 0xa], dh
cmp esi, 3
jne 0x4d1507
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 8], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 7], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
xor esi, esi
nop word [eax + eax]
movzx eax, byte [ebp + esi - 8]
mov ecx, edi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0045ff30
inc esi
cmp esi, 4
jl 0x4d14e0
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov dl, byte [ebp - 9]
mov dh, byte [ebp - 0xa]
test ebx, ebx
jne 0x4d1482
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4d15c0
mov eax, esi
cmp esi, 3
jge 0x4d1540
cmp eax, 3
jae 0x4d15d3
mov byte [ebp + eax - 4], 0
inc eax
cmp eax, 3
jl 0x4d1524
mov cl, byte [ebp - 2]
mov dl, byte [ebp - 3]
mov dh, byte [ebp - 4]
jmp 0x4d1543
mov cl, byte [ebp - 0xb]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 8], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 7], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 5], cl
lea eax, [esi + 1]
mov byte [ebp - 6], dl
mov dword [ebp - 4], eax
test eax, eax
jle 0x4d159e
mov esi, eax
nop
movzx eax, byte [ebp + ebx - 8]
mov ecx, edi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0045ff30
inc ebx
cmp ebx, esi
jl 0x4d1580
mov esi, dword [ebp - 0x10]
cmp esi, 3
jge 0x4d15c0
mov ebx, 3
sub ebx, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, edi
call fcn.0045ff30
sub ebx, 1
jne 0x4d15b0
mov eax, dword [edi + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0057bdbe
int3
Function at 0x4d39c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 0xc
test edx, edx
je 0x4d3a48
push ebx
push esi
mov ecx, 0x608fcb
mov byte [edx], 0xda
sub ecx, edx
mov dword [ebp - 4], 0x33
push edi
mov dword [ebp - 8], ecx
lea eax, [edx + 1]
mov esi, 0x608fc8
mov edi, 0x608fc9
mov ebx, 0x608fca
mov ecx, 0x608fcc
sub esi, edx
sub edi, edx
sub ebx, edx
sub ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [esi + eax]
lea eax, [eax + 5]
xor cl, byte [edx]
mov byte [eax - 5], cl
movzx ecx, byte [edi + eax - 5]
xor cl, byte [edx]
mov byte [eax - 4], cl
movzx ecx, byte [ebx + eax - 5]
xor cl, byte [edx]
mov byte [eax - 3], cl
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + eax - 5]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + eax - 5]
xor cl, byte [edx]
sub dword [ebp - 4], 1
mov byte [eax - 1], cl
jne 0x4d3a05
pop edi
pop esi
pop ebx
mov eax, 0x100
mov esp, ebp
pop ebp
ret

Function at 0x4fa6a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4fa6bb
xor eax, eax
jmp 0x4fa79a
push ebx
mov ebx, dword [ebp + 8]
push edi
push 8
push ebx
call fcn.004f6f91
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
pop ecx
test edi, edi
je 0x4fa706
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x4fa6ea
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x4fa6ea
add eax, eax
cmp eax, dword [esi]
jl 0x4fa6e4
imul eax, eax, 0x18
push eax
push ebx
call fcn.004f6f91
mov dword [edi + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x4fa70d
push edi
push ebx
call fcn.004f6f34
pop ecx
pop ecx
xor eax, eax
jmp 0x4fa798
and dword [ebp - 8], 0
cmp dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
jle 0x4fa796
lea edx, [eax + 0x10]
sub eax, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0x10]
push dword [ecx]
push ebx
call fcn.004e4935
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx], eax
push dword [ecx + 4]
push ebx
call fcn.004f717b
mov ecx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.004f717b
mov edx, dword [ebp - 4]
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [edx - 8], eax
mov al, byte [ecx + 0xc]
and dword [edx], 0xfffffffe
mov byte [edx - 4], al
mov eax, dword [ecx + 0x10]
xor eax, dword [edx]
and eax, 2
xor dword [edx], eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
mov dword [edx + 4], eax
add edx, 0x18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [esi]
jl 0x4fa729
mov edi, dword [ebp - 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x514fc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x514fed
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x5e5bc8]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x514fd3
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x53bd55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
push edi
call fcn.0053bcfa
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x53bdda
push 1
push esi
call fcn.0053bcfa
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x53bddd
mov ecx, edx
mov eax, ebx
shr ecx, 2
test ecx, ecx
je 0x53bdaf
mov edx, edi
mov dword [ebp - 4], ecx
sub edx, esi
mov edi, esi
mov eax, dword [edx + edi]
xor eax, dword [edi]
lea edi, [edi + 4]
or ebx, eax
sub ecx, 1
jne 0x53bd97
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
shl eax, 2
sub edx, eax
jne 0x53bdbf
xor eax, eax
test ebx, ebx
sete al
jmp 0x53bdf5
add edi, eax
add esi, eax
mov ecx, ebx
mov eax, ebx
shr eax, 0x10
shr ecx, 0x18
or cl, al
mov eax, ebx
shr eax, 8
or cl, al
or bl, cl
jmp 0x53bddd
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x53bdf0
sub edi, esi
mov al, byte [esi + edi]
xor al, byte [esi]
or bl, al
inc esi
sub edx, 1
jne 0x53bde3
test bl, bl
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53bdfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push ebx
call fcn.0053bcfa
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x53be7f
push 1
push edi
call fcn.0053bcfa
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x53be82
push 1
push esi
call fcn.0053bcfa
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
test al, al
je 0x53be85
mov edx, ecx
xor eax, eax
shr edx, 2
test edx, edx
je 0x53be70
mov ecx, edi
mov dword [ebp - 8], edx
mov eax, ebx
sub ecx, esi
sub eax, esi
mov ebx, esi
mov edi, eax
mov eax, dword [ecx + ebx]
xor eax, dword [ebx]
mov dword [edi + ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x53be54
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
shl eax, 2
sub ecx, eax
je 0x53be9b
add ebx, eax
add edi, eax
add esi, eax
jmp 0x53be85
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x53be9b
sub edi, esi
sub ebx, esi
mov al, byte [esi + edi]
xor al, byte [esi]
mov byte [esi + ebx], al
inc esi
sub ecx, 1
jne 0x53be8d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53bea2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.0053bcfa
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x53bf06
push 1
push edi
call fcn.0053bcfa
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
test al, al
je 0x53bf09
mov edx, ecx
xor eax, eax
shr edx, 2
test edx, edx
je 0x53bef9
mov eax, edi
mov dword [ebp - 8], edx
push ebx
sub eax, esi
mov ebx, esi
mov esi, eax
mov eax, dword [esi + ebx]
xor dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x53bee5
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
pop ebx
shl eax, 2
sub ecx, eax
je 0x53bf1a
add esi, eax
add edi, eax
jmp 0x53bf09
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x53bf1a
sub edi, esi
mov al, byte [esi + edi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x53bf0f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53bf9b
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x53bfc5
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0x20
push 0x5ef5a0
push dword [ebp + 8]
call fcn.00581a60
add esp, 0xc
pop ebp
ret
Function at 0x544990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push esi
push 0x543120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop esi
test eax, eax
jne 0x5449d2
call fcn.00541b50
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x60a7b8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x5454d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x545524
cmp eax, 0xb7
je 0x545524
cmp eax, 0x50
je 0x545524
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00541b50
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_dir._Error____d
push 0x60a7b8
push esi
call dword [edi + 0x24]
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x545db0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x545dde
call fcn.00541b50
push ebx
push str.File_does_not_exist_at__s
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 0xc
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x545dd7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00541b50
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push dword [ebp + 8]
push str.Failed_to_delete_file_at_path:_ls_error:_d
push esi
call dword [edi + 4]
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x545e30
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x545e94
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push dword [ebp + 8]
push str.Failed_to_open_the_file_handle_at__s._Error___d_
push 0x60a7b8
push edi
call dword [ebx + 0x24]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00541b50
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
mov ecx, dword [eax]
push edi
push str.file_size_to_which_we_have_to_extend_is__llu
push eax
call dword [ecx + 4]
add esp, 0x10
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x545f08
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x545ee0
push ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_set_the_end_of_the_file_to_size__llu._Error____d
jmp 0x545f2e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_resize_the_file_to_size__ld._Error____d
push 0x60a7b8
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 8]
add esp, 0x18
mov byte [ebp - 1], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x546210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x546227
xor al, al
pop esi
pop ebp
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x546262
push edi
call fcn.00541b50
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x60a7b8
push esi
call dword [edi + 0x24]
add esp, 0x14
xor al, al
pop edi
pop ebx
pop esi
pop ebp
ret
call fcn.00541b50
push ebx
push esi
push str.The_file_attributes_of_directory____s_is__d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0x10
shr ebx, 4
and bl, 1
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x546290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5462ba
call fcn.00541b50
push dword [ebp + 8]
push str.File_does_not_exist_at__s
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x5463c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x54641f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54641f
push ebx
push eax
call fcn.00597534
add esp, 8
test eax, eax
je 0x54641a
push esi
push edi
call fcn.00593f96
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.00541b50
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp + 0xc]
push str.Failed_to_rename_file_from__s_to__s._The_error_is_:_d
push 0x60a7b8
push esi
call dword [edi + 0x24]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
call fcn.00541b50
push 0x5f1634
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop ebx
pop ebp
ret

Function at 0x5465e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x5465f9
xor al, al
pop edi
pop ebp
ret
lea eax, [edi*2 + 2]
push esi
push eax
call fcn.00594461
mov esi, eax
add esp, 4
test esi, esi
je 0x546625
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
jne 0x54662b
call fcn.00593b50
add esp, 4
pop esi
xor al, al
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004677c0
push esi
call fcn.00593b50
add esp, 4
mov al, 1
pop esi
pop edi
pop ebp
ret
Function at 0x548880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp dword [edi], 0
jne 0x5488ad
call fcn.00541b50
push str.file_handler_to_read_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebx + 8]
push esi
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00546650
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x54892d
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 8]
push 0
push eax
push esi
push dword [ebp + 0x14]
mov dword [ebp + 8], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 8], esi
jb 0x5488f9
test eax, eax
jne 0x548960
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x60a7b8
push edi
call dword [ebx + 0x24]
mov esi, dword [ebp + 0x18]
add esp, 0x10
jmp 0x548962
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x60a7b8
push edi
call dword [ebx + 0x24]
add esp, 0x10
xor esi, esi
jmp 0x548962
mov esi, eax
mov ecx, dword [ebp - 4]
call fcn.00546670
xor eax, eax
cmp esi, 1
pop esi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x5489c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp dword [edi], 0
jne 0x5489ed
call fcn.00541b50
push str.file_handler_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebx + 8]
push esi
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00546650
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x548a5d
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 8]
push 0
push eax
push esi
push dword [ebp + 0x14]
mov dword [ebp + 8], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp + 8], esi
jb 0x548a38
test edi, edi
jne 0x548a8e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x548a80
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00541b50
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x60a7b8
push edi
call dword [ebx + 0x24]
add esp, 0x10
xor edi, edi
mov ecx, dword [ebp - 4]
call fcn.00546670
xor eax, eax
cmp edi, 1
pop esi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x14