joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a27d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6473f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.004a6570
mov edi, eax
cmp edi, 1
je 0x4a2828
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4a2828
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4a28a9
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a289e
cmp dword [ebp - 0x14], 0
jne 0x4a2871
cmp edi, 1
jne 0x4a289e
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, eax
call fcn.00545b61
add esp, 4
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
xor al, al
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 0x4a28c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64eb38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a6570
mov edi, eax
cmp edi, 1
je 0x4a2913
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4a2913
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4a2992
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a2987
cmp dword [ebp - 0x14], 0
jne 0x4a295c
cmp edi, 1
jne 0x4a2987
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
mov edi, eax
call fcn.00545b61
add esp, 4
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a29b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654350
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004a6570
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.004a6570
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4a2a20
cmp edi, 1
je 0x4a2a20
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4a2a1d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4a2a2c
test edi, edi
je 0x4a2b17
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
mov word [eax], cx
push 8
mov dword [ebp - 4], ecx
call fcn.00545b74
mov esi, eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x24], esi
add esp, 8
mov dword [ebp - 0x1c], 3
mov word [esi], ax
cmp dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
je 0x4a2a81
mov byte [ebp - 0xd], 1
cmp edi, 1
jne 0x4a2a85
mov byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.004a6640
test al, al
je 0x4a2b06
lea edx, [ebp - 0x24]
mov ecx, ebx
call fcn.004a6640
test al, al
je 0x4a2b03
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x20]
jne 0x4a2ac0
test esi, esi
jne 0x4a2ab7
cmp byte [ebp - 0xd], 0
jne 0x4a2b03
push edi
lea ecx, [ebp - 0x30]
call fcn.0049f520
test esi, esi
jne 0x4a2acd
push ebx
lea ecx, [ebp - 0x24]
call fcn.0049f520
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
mov ebx, eax
call fcn.00545b61
push edi
call fcn.00545b61
add esp, 8
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24]
push esi
call fcn.00545b61
push dword [ebp - 0x30]
call fcn.00545b61
add esp, 8
xor al, al
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 0x4a2ca0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64eb38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a6570
mov edi, eax
cmp edi, 1
je 0x4a2d06
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a2cf5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a2d87
test edi, edi
je 0x4a2d87
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a2d7c
cmp dword [ebp - 0x14], 0
jne 0x4a2d4f
cmp edi, 1
jne 0x4a2d7c
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov edi, eax
call fcn.00545b61
add esp, 4
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a2da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65438b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a6570
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 1
je 0x4a2e0a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a2dfd
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
cmp eax, 0xb7
je 0x4a2ed2
test ebx, ebx
je 0x4a2ed2
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a2ec0
cmp dword [ebp - 0x14], 0
jne 0x4a2e57
cmp ebx, 1
jne 0x4a2ec0
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a2e6f
mov bl, 1
push esi
jmp 0x4a2f21
call edi
cmp eax, 0xb7
je 0x4a2e80
xor bl, bl
push esi
jmp 0x4a2f21
lea ecx, [ebp - 0x50]
call fcn.00415d50
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004a4300
test al, al
jne 0x4a2ea9
push dword [ebp - 0x28]
xor bl, bl
call fcn.00545b61
add esp, 4
push esi
jmp 0x4a2f21
mov ebx, dword [ebp - 0x30]
push dword [ebp - 0x28]
shr ebx, 4
and bl, 1
call fcn.00545b61
add esp, 4
push esi
jmp 0x4a2f21
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
call edi
cmp eax, 0xb7
je 0x4a2eef
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x88]
call fcn.00415d50
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.004a4300
test al, al
jne 0x4a2f15
xor bl, bl
jmp 0x4a2f1e
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00545b61
mov al, bl
add esp, 4
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 0x4a31d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64eb38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a4220
cmp eax, 0xffffffff
je 0x4a3221
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4a3221
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.004a27d0
test al, al
je 0x4a32cc
mov ecx, esi
call fcn.004a6570
mov edi, eax
cmp edi, 1
je 0x4a324d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4a324d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4a32cc
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a32c1
cmp dword [ebp - 0x14], 0
jne 0x4a3296
cmp edi, 1
jne 0x4a32c1
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov edi, eax
call fcn.00545b61
add esp, 4
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a3520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0049f520
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x4a36a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0049f520
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4a3b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654496
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
mov ebx, dword [ebp + 8]
je 0x4a3b84
lea ecx, [edi + 4]
call fcn.004a32e0
test al, al
sete al
test al, al
mov byte [edi], al
sete al
test al, al
je 0x4a3c45
push 8
call fcn.00545b74
add esp, 4
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], 3
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
push eax
push 0x105
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
call fcn.0049f520
lea eax, [esi - 1]
cmp eax, 0x103
ja 0x4a3c33
push ebx
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x238]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 1
mov dl, 1
mov ecx, dword [eax]
lea eax, [edi + 4]
push 0
push eax
call fcn.004a3710
push dword [ebp - 0x238]
test al, al
sete bl
call fcn.00545b61
add esp, 0xc
test bl, bl
jne 0x4a3c33
mov byte [edi], 1
mov bl, 1
jmp 0x4a3c35
xor bl, bl
push dword [ebp - 0x22c]
call fcn.00545b61
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4

Function at 0x4a4220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64eb38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a6570
mov edi, eax
cmp edi, 1
je 0x4a4261
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a42e0
test edi, edi
je 0x4a42dd
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004a6640
test al, al
je 0x4a42d2
cmp dword [ebp - 0x14], 0
jne 0x4a42aa
cmp edi, 1
jne 0x4a42d2
push esi
lea ecx, [ebp - 0x18]
call fcn.0049f520
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
call fcn.00545b61
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00545b61
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a4b50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x649d80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
call fcn.004066d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
jne 0x4a4ba8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push esi
push ebx
mov dword [ebp - 4], 0
call edi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4a4c6f
cmp edi, ebx
ja 0x4a4c6f
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 3
mov word [eax], cx
xor ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x4a4c5f
mov eax, dword [ebp - 0x10]
mov edi, 2
nop dword [eax + eax]
cmp word [esi + edi - 2], 0
jne 0x4a4c4e
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0049f520
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00406580
mov eax, dword [ebp - 0x10]
mov ecx, edi
inc ebx
add edi, 2
cmp ebx, eax
jb 0x4a4c20
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
push eax
sete bl
call fcn.00545b61
add esp, 4
jmp 0x4a4c71
xor bl, bl
push esi
call fcn.00545b61
add esp, 4
mov al, bl
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 0x4a4df0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
je 0x4a4e16
cmp byte [ecx + 5], 0
je 0x4a4e16
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a4e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a4e3d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov eax, esi
push edi
mov edi, dword [ecx + 8]
sar eax, 0x1f
and edi, 0xffffc000
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push edi
push dword [ecx]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a4f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a50a6
push 4
push 0x1000
push 0x4000
push 0
call dword [0x661fe8]
mov ebx, eax
mov byte [ebp - 1], 1
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ebp - 0xc]
push 0x4000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4fff
nop
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a4ff4
mov edx, dword [ebp - 0xc]
xor ecx, ecx
add eax, edi
mov byte [ebp - 1], 0
adc ecx, esi
cmp dword [ebp - 8], 0x4000
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jne 0x4a5094
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x4000
push ebx
push dword [edx]
add edi, 0x4000
adc esi, 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a4fa0
jmp 0x4a5094
mov al, byte [ebp - 1]
test al, al
je 0x4a5094
mov eax, edi
or eax, esi
je 0x4a5094
add edi, 0xffffc000
push 0
adc esi, 0xffffffff
mov eax, esi
mov dword [ebp - 8], esi
sar eax, 0x1f
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a503b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a5094
test ebx, ebx
jne 0x4a5058
push 4
push 0x1000
push 0x4000
push ebx
call dword [0x661fe8]
mov ebx, eax
test ebx, ebx
je 0x4a50a6
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ebp - 0xc]
push 0x4000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5094
mov edx, dword [ebp - 8]
test edx, edx
je 0x4a4fff
mov ecx, dword [ebp - 0xc]
xor eax, eax
add edx, edi
adc eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test ebx, ebx
je 0x4a50a6
push 0x8000
push 0
push ebx
call dword [0x661fec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a52c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x4a5328
test ecx, ecx
je 0x4a531d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x4a52e0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a5340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x4a53a8
test ecx, ecx
je 0x4a539d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x4a5360
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a8a30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x6f5ea0], ecx
inc eax
cmp eax, 0x100
jb 0x4a8a32
cmp eax, 0x800
jae 0x4a8b03
nop
mov edx, dword [eax*4 + 0x6f5aa0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6f5ea0]
mov dword [eax*4 + 0x6f5ea0], edx
inc eax
cmp eax, 0x800
jb 0x4a8ae0
mov dword [0x6f7ea0], 0x4a8b30
call fcn.004a8e00
mov ecx, dword [0x6f7ea0]
test eax, eax
mov edx, 0x4a8bd0
cmove ecx, edx
mov dword [0x6f7ea0], ecx
ret

Function at 0x4a8f90
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 dword [ebp + 8]
push edx
push 0
push 0
call fcn.005e7638
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x4a8fba
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ad060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40003c]
push esi
push 0
mov esi, dword [eax + 0x400008]
call fcn.005eee69
add esp, 4
sub eax, esi
sbb edx, 0
mov dword [ebp - 4], edx
js 0x4ad0bc
jg 0x4ad08f
cmp eax, 0xd2f00
jb 0x4ad0bc
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4ab720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4ad0bc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret