joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1ef0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x6047f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
test esi, esi
je 0x4b20b1
test edi, edi
je 0x4b20b1
mov eax, dword [esp + 0x2c]
add eax, 0x40
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, str.Tmp_SkinPack.dat
call fcn.0040aab0
add esp, 8
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x10]
push 0x534b4e50
push edx
push esi
call fcn.004b3910
test eax, eax
je 0x4b2089
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.00570b30
add esp, 4
test eax, eax
je 0x4b2089
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00409dd0
mov byte [esp + 0x24], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4b1fb7
lea ecx, [eax - 1]
lea eax, [esp + 0x2c]
call fcn.0040af70
cmp ax, 0x5c
je 0x4b1fb7
mov edx, 0x62454c
lea edi, [esp + 0x2c]
call fcn.0040ae60
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x63118c
call fcn.0040aab0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00403870
test esi, esi
je 0x4b205d
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040aab0
mov esi, eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x34], 2
call fcn.0040aab0
mov byte [esp + 0x34], 3
mov eax, dword [eax]
mov edx, dword [esi]
push 1
mov ecx, eax
call fcn.00571350
add esp, 0x14
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x2c]
call fcn.00403870
lea ecx, [esp + 0x10]
call fcn.00403870
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
lea ecx, [esp + 0x2c]
call fcn.00403870
lea ecx, [esp + 0x10]
call fcn.00403870
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b20b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x4b2d40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60b98b
mov eax, dword fs:[0]
push eax
sub esp, 0xdb8
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xdb0], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xdc8]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x44]
mov dword [esp + 0x14], eax
call fcn.004bec50
test byte [0x6809d0], 1
jne 0x4b2dc7
or dword [0x6809d0], 1
cmp dword [0x678ec4], 0
jne 0x4b2dba
cmp dword [0x678ec8], 0
jne 0x4b2dba
mov dword [0x678ec4], 0x6790b8
push 0x6131e0
call fcn.005d268a
add esp, 4
call fcn.004077f0
mov esi, dword [0x678ec4]
mov ecx, 0x368
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x20]
mov dword [0x678ec0], 1
call fcn.004b4020
push esi
lea eax, [ebx + 0x50]
push eax
call fcn.004be370
lea esi, [ebx + 0x1c]
lea ecx, [esp + 0x10]
push esi
push ecx
mov ebx, str.CompressCfg.ini
call fcn.0040aab0
lea edx, [esp + 0x20]
push esi
push edx
mov ebx, str.Compress_
mov dword [esp + 0xde0], 0
call fcn.0040aab0
mov eax, dword [eax]
add esp, 0x10
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b2e5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004be9a0
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push 0x46534353
push edx
push eax
call fcn.004b3770
mov esi, eax
mov dword [esp + 0xdd0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b2eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xdc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdb0]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3770
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f8588
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], edi
push esi
push 0x80
push 3
push esi
push 1
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x60]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4b37d7
call fcn.0040f010
cmp eax, esi
jge 0x4b37dd
xor eax, eax
jmp 0x4b38f7
mov edi, eax
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x4b3803
call fcn.0040f010
test eax, eax
jl 0x4b380d
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x20], edx
lea eax, [esi + esi + 8]
push eax
call fcn.005d3435
mov ebp, eax
add esp, 4
test ebp, ebp
lea ebx, [esi + ebp]
je 0x4b38dd
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b3848
call fcn.0040f010
test edi, edi
je 0x4b3859
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [0x678fc8]
test eax, eax
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], esi
mov dword [ebx], edx
mov dword [ebx + 4], esi
je 0x4b38dd
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x58]
push ecx
lea edx, [ebx + 8]
push edx
call eax
add esp, 0x14
test eax, eax
jne 0x4b38dd
push eax
push 0x80
push 2
push eax
mov eax, dword [esp + 0x60]
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4b38d5
call fcn.0040f010
test eax, eax
jne 0x4b38dd
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x18]
push edx
add ecx, 8
mov edx, ebx
call fcn.00433ec0
test edi, edi
je 0x4b38ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov esi, 1
jmp 0x4b38e1
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x4b38ae
mov esi, dword [esp + 0x28]
push ebp
call fcn.005d27e0
add esp, 4
test edi, edi
je 0x4b38f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc
Function at 0x4b3910
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5f8558
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
push esi
push 0x80
push 3
push esi
push 1
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4b39d0
call fcn.0040f010
cmp eax, esi
jl 0x4b3ad9
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x4b399c
call fcn.0040f010
cmp eax, esi
jl 0x4b3ace
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp ebx, esi
ja 0x4b39ad
cmp edi, 8
jbe 0x4b3ace
mov esi, 8
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
call fcn.00417460
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x4c]
je 0x4b39d8
test ebp, ebp
jmp 0x4b3ad0
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x4b3974
add edi, 0xfffffff8
adc ebx, 0xffffffff
push edi
mov dword [esp + 0x24], ebx
call fcn.005d1ef5
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
mov byte [esp + 0x3c], 1
je 0x4b3ab4
mov esi, edi
mov ecx, ebx
lea edx, [esp + 0x14]
call fcn.00417460
test eax, eax
jne 0x4b3ab4
lea esi, [esp + 0x14]
call fcn.0044b230
mov eax, dword [esp + 0x2c]
cmp eax, 0xa00000
mov dword [esp + 0x44], eax
jbe 0x4b3a34
mov eax, 0xa00000
mov dword [esp + 0x44], eax
push eax
call fcn.005d1ef5
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
mov byte [esp + 0x3c], 2
je 0x4b3aa7
lea eax, [esp + 0x44]
push eax
push ebp
mov ecx, edi
mov edx, ebx
call fcn.004746f0
add esp, 8
test eax, eax
jne 0x4b3aa7
mov ecx, dword [esp + 0x48]
push 1
push 0x40000000
push ecx
lea edx, [esp + 0x20]
push edx
xor edx, edx
mov eax, 0x80
lea ecx, [edx + 2]
call fcn.0040f030
test eax, eax
jne 0x4b3aa7
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
mov edx, ebp
call fcn.00433ec0
lea esi, [esp + 0x14]
call fcn.0044b230
mov dword [esp + 0x18], 1
push ebp
call fcn.005d28c2
mov ebp, dword [esp + 0x18]
add esp, 4
push ebx
call fcn.005d28c2
add esp, 4
test ebp, ebp
je 0x4b3ac8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x4b3adb
cmp ebp, esi
je 0x4b3ad9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x4b3b00
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5fc718
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
test esi, esi
mov dword [esp + 0x14], ecx
je 0x4b3b4f
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00409dd0
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov ecx, 1
je 0x4b3b4f
xor bl, bl
jmp 0x4b3b51
mov bl, 1
test cl, 1
je 0x4b3b76
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3b76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4b3b94
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409dd0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x4b3ca7
cmp eax, ecx
jg 0x4b3ca7
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4b3bd7
push 0x5c
lea edi, [esp + 0x14]
call fcn.0040af90
push 2
push 0x632bdc
lea edx, [esp + 0x18]
push edx
call fcn.0040aee0
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
push 0
lea ebx, [eax - 1]
lea edi, [esp + 0x14]
call fcn.004b3cc0
xor eax, eax
cmp dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
mov word [esp + 0x28], 0x414
jne 0x4b3c34
mov word [esp + 0x28], 0x494
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x32], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
push 0x80070057
call fcn.00403650
int3
Function at 0x4c5d90
Capabilities:
Delete file

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
push esi
push edi
lea edi, [ecx + 4]
je 0x4c5dbb
mov edx, dword [edi + 0x14]
cmp eax, edx
je 0x4c5dbb
mov ecx, eax
mov eax, dword [eax + 0xc]
cmp eax, edx
je 0x4c5dbd
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0xc]
cmp eax, edx
jne 0x4c5db0
jmp 0x4c5dbd
xor ecx, ecx
test ecx, ecx
mov esi, ecx
je 0x4c5e31
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c5dd0
test esi, esi
mov ebx, esi
je 0x4c5e26
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 0x14]
cmp edx, ecx
je 0x4c5e03
test edx, edx
je 0x4c5dfd
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4c5dff
jmp 0x4c5df0
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4c5df0
mov esi, edx
jmp 0x4c5e26
xor edx, edx
mov esi, edx
jmp 0x4c5e26
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x4c5e22
lea ebx, [ebx]
cmp esi, dword [eax + 0x10]
jne 0x4c5e1e
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x4c5e10
cmp eax, ecx
jne 0x4c5e24
xor eax, eax
mov esi, eax
mov eax, dword [ebx]
push eax
call ebp
test esi, esi
jne 0x4c5dd0
pop ebp
pop ebx
call fcn.004c6cd0
call fcn.004c6cd0
mov eax, dword [edi + 0x14]
test eax, eax
pop edi
pop esi
je 0x4c5e4b
push eax
call fcn.005d27e0
pop ecx
ret
Function at 0x4c5f50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x600a31
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], 1
call eax
mov edi, eax
mov dword [esp + 0x20], 1
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x106
or eax, ecx
jge 0x4c5fe5
mov ecx, 0x106
mov eax, esi
call fcn.00403540
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov edi, dword [edi]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c601b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, 0x104
cmp dword [eax - 8], ecx
jl 0x4c6085
mov dword [eax - 0xc], ecx
mov ecx, dword [esi]
mov word [ecx + 0x208], bx
mov edx, dword [esi]
cmp edx, ebx
jne 0x4c603d
xor eax, eax
jmp 0x4c6053
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6042
sub eax, edi
sar eax, 1
js 0x4c6085
cmp eax, dword [edx - 8]
jg 0x4c6085
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], bx
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c5e50
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00403650
int3
Function at 0x4c6090
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f8520
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x40]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x54], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c6173
call fcn.0040f010
cmp eax, ebp
jl 0x4c628e
lea ecx, [esp + 0x28]
push ecx
push esi
xor edi, edi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x4c611c
call fcn.0040f010
cmp eax, ebp
jl 0x4c6126
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebp
lea eax, [edi + edi + 0x20]
push eax
mov byte [esp + 0x3c], 1
call fcn.005d1ef5
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x20], ebx
jne 0x4c617e
push ebx
call fcn.005d2367
add esp, 4
cmp esi, ebp
je 0x4c615a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x4c60f4
push 0
lea ecx, [esp + 0x28]
push ecx
lea ebp, [edi + 0x20]
mov dword [esp + 0x24], ebp
push edi
add ebp, ebx
push ebp
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c61a8
call fcn.0040f010
test esi, esi
je 0x4c61b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [0x678fc8]
test eax, eax
je 0x4c6278
push 0xffffffffffffffff
push edi
push ebp
lea edx, [esp + 0x28]
push edx
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x4c6278
push eax
push 0x80
push 2
push eax
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
push 0x40000000
push eax
mov dword [esp + 0x40], 0x46534353
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c6242
call fcn.0040f010
mov edi, eax
test edi, edi
jge 0x4c6248
push ebx
call fcn.005d2367
add esp, 4
test esi, esi
je 0x4c622c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, 8
lea edx, [esp + 0x28]
call fcn.00433ec0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov edx, ebx
call fcn.00433ec0
test esi, esi
je 0x4c6278
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push ebx
call fcn.005d2367
add esp, 4
test esi, esi
je 0x4c628c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4c6510
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f84e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x44]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x58], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c65f7
call fcn.0040f010
cmp eax, ebp
jl 0x4c66ea
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x1c], ebp
xor esi, esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x4c65a0
call fcn.0040f010
cmp eax, ebp
jl 0x4c65aa
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebp
push esi
mov byte [esp + 0x40], 1
call fcn.005d1ef5
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x20], esi
jne 0x4c6602
push esi
call fcn.005d2367
add esp, 4
cmp ebx, ebp
je 0x4c65de
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x4c6574
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x4c661e
call fcn.0040f010
cmp ebx, ebp
je 0x4c662f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x48]
mov eax, dword [edi]
push eax
call fcn.005d2367
mov edx, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0x14], 8
mov dword [edi], ebp
mov dword [edx], ebp
jbe 0x4c66c0
mov eax, dword [esi]
cmp eax, 0x46534353
je 0x4c665d
cmp eax, 0x44534353
jne 0x4c66c0
mov eax, dword [esi + 4]
cmp eax, 0x2000000
ja 0x4c66c0
push eax
mov dword [esp + 0x20], eax
call fcn.005d1ef5
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, ebp
mov byte [esp + 0x3c], 2
je 0x4c66b3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
add ecx, 0xfffffff8
lea edx, [esi + 8]
call fcn.004746f0
add esp, 8
test eax, eax
jne 0x4c66b3
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov eax, edi
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
xor edi, edi
mov dword [eax], edx
push edi
call fcn.005d2367
mov edi, dword [esp + 0x4c]
add esp, 4
cmp dword [edi], ebp
jne 0x4c66d4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov eax, esi
mov dword [edi], eax
xor esi, esi
mov dword [edx], ecx
push esi
call fcn.005d2367
add esp, 4
cmp ebx, ebp
je 0x4c66e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4c6bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fa388
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [esi], 0
jne 0x4c6c09
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
lea edi, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.0044c480
push 2
push 0x628d84
mov ecx, edi
push ecx
call fcn.0044c560
mov eax, dword [esi]
push 2
lea edx, [esp + 0x1c]
xor ebx, ebx
push edx
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4c6c6b
call fcn.0040f010
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
mov edx, dword [esi]
push ebx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x4c6c8e
call fcn.0040f010
mov ebx, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6cb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c7890
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fa360
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
movzx ecx, byte [eax + 0x4c7a74]
jmp dword [ecx*4 + 0x4c7a6c]