joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5e40
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
push 0x80
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b5eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov edi, eax
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b5eeb
shr eax, 4
not al
and al, 1
je 0x4b5eeb
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x14]
push 0
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.004b7750
mov ecx, dword [ebp + 8]
push edi
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
lea ecx, [ebp - 0x14]
push ecx
push 0x4e757c
mov ecx, eax
call fcn.004a71c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b5ee1
push eax
call fcn.00459651
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b69f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x10], ecx
push edi
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [eax + 4], esi
jbe 0x4b6a42
lea ebx, [esi + 4]
mov ecx, dword [eax + 8]
lea esi, [esp + 0x10]
mov eax, edi
and eax, 1
lea esi, [esi + eax*2]
movzx eax, word [ebx + ecx]
push eax
call fcn.0046c280
xor word [esi], ax
inc edi
mov eax, dword [ebp + 0xc]
add esp, 4
add ebx, 2
cmp edi, dword [eax + 4]
jb 0x4b6a13
mov esi, dword [esp + 0x10]
push 4
mov dword [esp + 0x1c], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [eax], 0
push 0x24
push eax
call fcn.00478579
xor ecx, ecx
mov dword [esp + 0x28], eax
push 0x4e7480
push 0x4e3d38
mov dword [eax], 0x10
mov word [eax + 4], cx
lea eax, [esp + 0x28]
push eax
call fcn.004a4cb0
add esp, 0x14
lea eax, [esp + 0x18]
push str.mutex_file_
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
lea eax, [esp + 0x18]
push esi
push str.0x_p
push eax
call fcn.004a4cb0
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
push edi
call fcn.004c2400
test al, al
jne 0x4b6afa
mov ecx, edi
call fcn.004a7c10
push 0x4e74a8
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
xor bl, bl
jmp 0x4b6afc
mov bl, 1
test esi, esi
je 0x4b6b09
push esi
call fcn.00459651
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6bb0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push 4
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [eax], 0
call fcn.004a60e0
lea ecx, [esp + 0x10]
call fcn.004a60e0
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004b6f50
mov ebx, dword [ebp + 8]
test al, al
je 0x4b6c1e
push ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.004b71c0
test al, al
je 0x4b6d17
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 8]
push 0
add eax, 4
mov ecx, dword [ecx + 8]
push eax
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x4b6d1b
push 4
mov dword [esp + 0x34], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 0
mov dword [eax], 0
call fcn.004a60e0
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
add eax, 4
push eax
call fcn.004a5ed0
mov eax, dword [esp + 8]
push 4
mov dword [esp + 0x24], vtable.t_str.0
mov esi, dword [eax + 8]
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [eax], 0
call fcn.004a60e0
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.004a5ed0
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
push 0x4e76c0
call fcn.004a7c10
mov ecx, eax
call fcn.004a7090
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b6d06
push eax
call fcn.00459651
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b6d17
push eax
call fcn.00459651
add esp, 4
xor bl, bl
jmp 0x4b6d44
push 0x80
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 8]
sub esp, 8
add ecx, 4
call fcn.004b9340
add esp, 8
mov ecx, esi
call fcn.004b7110
mov bl, 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b6d55
push eax
call fcn.00459651
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b71c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
push 2
push 0x4e7628
mov eax, dword [esi + 8]
add eax, 4
push eax
call fcn.00459434
add esp, 0xc
test eax, eax
je 0x4b7359
mov ecx, esi
call fcn.004b7370
test al, al
jne 0x4b7359
push 4
mov dword [esp + 0x14], vtable.t_str.0
mov dword [esp + 0x1c], 0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [eax], 0
mov dword [esp + 0x1c], 0
call fcn.004a60e0
lea ecx, [esp + 0x10]
call fcn.004a60e0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004b6f50
mov ebx, dword [ebp + 8]
test al, al
je 0x4b7280
cmp dword [esp + 0x14], 2
jb 0x4b726c
mov eax, dword [esp + 0x18]
cmp word [eax + 6], 0x3a
jne 0x4b726c
cmp word [eax + 8], 0x5c
jne 0x4b726c
cmp word [eax + 0xa], 0
je 0x4b7280
push 0
push ebx
lea ecx, [esp + 0x18]
call fcn.004b71c0
test al, al
je 0x4b731a
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [esi + 8]
test eax, eax
jne 0x4b731e
push 4
mov dword [esp + 0x24], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [eax], 0
call fcn.004a60e0
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.004a5ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.004a7c10
lea ecx, [esp + 0x20]
push ecx
push str.CreateDirectory
mov ecx, eax
call fcn.004a71c0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b731a
push eax
call fcn.00459651
add esp, 4
xor bl, bl
jmp 0x4b7335
sub esp, 8
lea ecx, [edi + 4]
call fcn.004b9340
add esp, 8
mov ecx, esi
call fcn.004b7110
mov bl, 1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], vtable.t_str.0
test ecx, ecx
je 0x4b734e
push ecx
call fcn.00459651
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp word [eax + 6], 0x3a
jne 0x4b7424
cmp word [eax + 8], 0
jne 0x4b7424
push 4
mov dword [esp + 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [eax], 0
call fcn.004a60e0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
add eax, 4
push eax
call fcn.004a5ed0
push 0x4e74dc
lea eax, [esp + 0x14]
push 0x4e3d38
push eax
call fcn.004a4cb0
mov esi, dword [esp + 0x24]
add esp, 0xc
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b7404
xor bl, bl
jmp 0x4b740a
shr ebx, 4
and bl, 1
test esi, esi
je 0x4b74dd
push esi
call fcn.00459651
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov dword [esp + 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [eax], 0
call fcn.004a60e0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
add eax, 4
push eax
call fcn.004a5ed0
mov eax, dword [esi + 8]
cmp word [eax + 6], 0x3a
jne 0x4b7479
cmp word [eax + 8], 0x5c
jne 0x4b7479
cmp word [eax + 0xa], 0
je 0x4b7495
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b7495
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x4b7495
lea eax, [ecx - 1]
push eax
lea ecx, [esp + 0x14]
call fcn.004a53b0
mov edi, dword [esp + 0x18]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b74ae
xor bl, bl
jmp 0x4b74d0
mov eax, dword [esi + 8]
cmp word [eax + 6], 0x3a
jne 0x4b74ca
cmp word [eax + 8], 0x5c
jne 0x4b74ca
cmp word [eax + 0xa], 0
jne 0x4b74ca
mov bl, 1
jmp 0x4b74d0
shr ebx, 4
and bl, 1
test edi, edi
je 0x4b74dd
push edi
call fcn.00459651
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov edi, ecx
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4b7f5e
push esi
test ebx, ebx
je 0x4b7f16
cmp word [ebx], 0
je 0x4b7f16
mov ecx, dword [ebp + 8]
mov edi, dword [edi + 0x14]
push eax
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e91d0
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
push 0x4e91e8
push 0x4e3d38
push esi
call fcn.004a4cb0
push ebx
push 0x4e3d38
push esi
call fcn.004a4cb0
push 0x4e91f0
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0x3c
xor al, al
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov edi, dword [edi + 0x14]
push eax
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e91b8
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0x18
xor al, al
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
pop edi
mov al, 1
pop ebx
pop ebp
ret 0x14
Function at 0x4b7f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp + 0x10], eax
mov esi, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b8059
test ebx, ebx
je 0x4b800c
cmp word [ebx], 0
je 0x4b800c
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 0x14]
push eax
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e9170
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push 0x4e9180
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push ebx
jmp 0x4b8040
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 0x14]
push eax
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e9160
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x4b8108
test ebx, ebx
je 0x4b80cb
cmp word [ebx], 0
je 0x4b80cb
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 0x14]
push 0
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e919c
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push 0x4e91b4
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push ebx
jmp 0x4b8040
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
call fcn.004a7c10
push 0x4e9184
mov edi, eax
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [esi + 4]
push ecx
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4b9b70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
mov edi, edx
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b9bb0
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.0046c3ce
add esp, 4
mov esi, eax
push esi
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4b9c0b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4e9514
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4b9c0b
mov ecx, dword [ebp - 8]
mov bl, 1
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edi + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 6], ax
test esi, esi
je 0x4b9c18
push esi
call fcn.00459651
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0380
Capabilities:
Create thread
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push 4
mov dword [esi], vtable.t_str.0
mov dword [esi + 8], 0
call fcn.0046c3ce
add esp, 4
mov dword [esi + 8], eax
mov ecx, esi
mov dword [eax], 0
mov dword [esi + 0xc], 0
call fcn.004a60e0
push 4
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov dword [eax], 0
call fcn.004a60e0
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.004ad650
test al, al
jne 0x4c0428
lea ecx, [ebp - 8]
call fcn.004a7cc0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0516
push eax
call fcn.00459651
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov ecx, esi
lea eax, [ebx + 4]
push eax
call fcn.004a5ed0
push 0x4ea714
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push str.verify.ini
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
push 0x230
call fcn.0044c480
add esp, 4
push str.Localcs_logsignature
push ecx
mov ecx, eax
call fcn.00418320
cmp byte [0x51bbf1], 0
mov dword [esi + 0x14], eax
jne 0x4c048f
cmp byte [0x51bffd], 0
je 0x4c048f
mov al, 1
jmp 0x4c0491
xor al, al
test al, al
je 0x4c0501
cmp dword [0x503014], 0
je 0x4c04ee
push 0xc
call fcn.0046c3ce
mov edi, eax
add esp, 4
mov dword [edi], 0x4bff00
mov dword [edi + 4], esi
cmp dword [0x503014], 0
jne 0x4c04c0
xor eax, eax
jmp 0x4c04cc
push dword [0x50301c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 8], eax
test eax, eax
je 0x4c04e1
lock inc dword [eax + 4]
push edi
push 0
push 0x41fc70
jmp 0x4c04f6
push edi
call fcn.00459651
add esp, 4
xor eax, eax
jmp 0x4c04fe
push esi
push 0
push 0x4bff00
call fcn.00479707
add esp, 0xc
mov dword [esi + 0x10], eax
lea ecx, [ebp - 8]
call fcn.004a7cc0
test ebx, ebx
je 0x4c0516
push ebx
call fcn.00459651
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
cmp byte [0x51bbf1], 0
push esi
push edi
mov esi, ecx
jne 0x4c0883
call fcn.004a9cd0
test al, al
jne 0x4c0883
call fcn.004b23d0
test al, al
je 0x4c0883
mov ecx, 0x4eac84
call fcn.004c43a0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x10]
call fcn.004b7750
mov edi, dword [ebp - 8]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c0869
shr eax, 4
not al
and al, 1
je 0x4c0869
call fcn.004c4490
cmp byte [0x51dca6], 0
jne 0x4c084c
push 0x114
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0044eee0
add esp, 0xc
lea eax, [ebp - 0x240]
push 0x114
push 0
push eax
call fcn.0044eee0
add esp, 0xc
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x128]
call fcn.004ab0a0
cmp dword [ebp - 0x124], 6
ja 0x4c081e
jne 0x4c0845
mov eax, dword [ebp - 0x120]
cmp eax, 2
jb 0x4c0845
cmp eax, 3
jb 0x4c0825
mov byte [0x51dca5], 1
mov eax, dword [ebp - 0x23c]
cmp eax, 0xa
jae 0x4c083e
cmp eax, 6
jne 0x4c0845
cmp dword [ebp - 0x238], 3
jb 0x4c0845
mov byte [0x51dca5], 1
mov byte [0x51dca6], 1
cmp byte [0x51dca5], 0
mov ecx, esi
je 0x4c0860
call fcn.004c0890
mov esi, eax
jmp 0x4c086e
call fcn.004c0c40
mov esi, eax
jmp 0x4c086e
mov esi, 1
test edi, edi
je 0x4c087b
push edi
call fcn.00459651
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c4b80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x258], esi
test eax, eax
je 0x4c4bc9
push eax
call fcn.00459651
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push ecx
lea ecx, [ebp - 0x250]
call fcn.004c2090
push 0
push esi
push edi
lea ecx, [ebp - 0x250]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x18], vtable.t_fileRead.0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004c1d60
test al, al
je 0x4c4ce1
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c4c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c4c3b
xor esi, esi
lea eax, [ebp - 0x254]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c4c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c4c6e
xor esi, esi
lea eax, [esi + 4]
push eax
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x254], eax
test eax, eax
jne 0x4c4c9b
mov esi, dword [ebp - 0x258]
mov ecx, edi
mov esi, dword [esi + 8]
call fcn.004a7c10
push 0x4f12e8
jmp 0x4c4cbf
push esi
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.004c5000
test al, al
jne 0x4c4d14
mov esi, dword [ebp - 0x258]
mov ecx, edi
mov esi, dword [esi + 8]
call fcn.004a7c10
push 0x4f1328
mov edi, eax
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [esi + 4]
push ecx
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x250]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x18], vtable.t_byteStreamRead.0
call fcn.004c2020
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x250]
call fcn.004c1c80
mov eax, dword [ebp - 0x254]
xor ecx, ecx
push ecx
push esi
push eax
mov dword [eax + esi], ecx
mov ecx, ebx
push edi
call fcn.004c4720
test al, al
jne 0x4c4d53
mov esi, dword [ebp - 0x258]
mov ecx, edi
mov esi, dword [esi + 8]
call fcn.004a7c10
push 0x4f1318
jmp 0x4c4cbf
mov bl, 1
jmp 0x4c4ce3
Function at 0x4c4db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [esi - 0x234]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c4e45
mov edi, dword [esi - 0x224]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4f094c
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], ebx
je 0x4c4ee7
mov ecx, dword [ebp + 8]
mov esi, dword [esi - 0x224]
call fcn.004a7c10
push 0x4f1458
mov edi, eax
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
push 0x4f1478
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
push ebx
push 0x4e3d04
push edi
call fcn.004a4cb0
add esp, 0xc
push 0x4f1468
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
push dword [ebp - 4]
push 0x4e3d04
push edi
call fcn.004a4cb0
add esp, 0xc
push 0x4f1484
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
lea eax, [esi + 4]
push eax
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c5000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4c50dc
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi - 0x234]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c506c
mov eax, dword [esi - 0x224]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004a7c10
mov ecx, eax
call fcn.004a7410
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x4f091c
jmp 0x4c5081
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4c50b7
mov eax, dword [esi - 0x224]
mov edi, 0x4f092c
mov dword [ebp + 0x10], eax
mov ecx, ebx
call fcn.004a7c10
push edi
mov esi, eax
push 0x4e3d38
push esi
call fcn.004a4cb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 4
push ecx
push 0x4e3d38
push esi
call fcn.004a4cb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp ecx, edi
je 0x4c50dc
mov eax, dword [esi - 0x224]
add eax, 4
push eax
push ecx
push edi
push str.penc_rN
push ebx
call fcn.004a7bb0
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc