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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x4211f0
push eax
call fcn.00402700
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.00409ec8
push dword [esi]
call fcn.0040a43a
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42d954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409ec8
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.0040983b
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.00409b5e
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.00409967
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401860
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x4037f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.004076b0
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x4211f0
push eax
call fcn.00402700
push esi
push edi
mov ebx, eax
call fcn.00403c10
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x4038ec
push ebx
test esi, esi
je 0x4038f1
call fcn.0040993c
add esp, 4
test eax, eax
jne 0x4038c3
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409b5e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403882
push ebx
call fcn.00409967
add esp, 4
test eax, eax
je 0x4038a8
push ebx
jmp 0x4038b8
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a67d
add esp, 0x10
test eax, eax
jle 0x4038b7
push esi
call fcn.00409967
add esp, 4
test eax, eax
jne 0x4038b7
push ebx
call fcn.0040993c
add esp, 4
test eax, eax
je 0x403858
jmp 0x4038c3
push esi
call fcn.0040fbb7
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.004098bc
push esi
call fcn.004098bc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040769e
add esp, 0x1004
ret
test esi, esi
je 0x4038f9
push esi
call fcn.004098bc
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040769e
add esp, 0x1004
ret
Function at 0x424930
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
push esi
call fcn.00424a30
add esp, 4
mov ebp, eax
push dword [ebp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
movzx ecx, word [ebp + 8]
push 0
push ebp
push eax
push ecx
push 0
push esi
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, 0x4d42
mov word [esp + 0x18], ax
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x20]
push 0
push 0x80
push 2
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
add ecx, 0xe
add eax, ecx
mov dword [esp + 0x26], eax
xor eax, eax
mov dword [esp + 0x2a], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp]
push 0
push 0
push 0xc0000000
lea eax, [eax + ecx*4]
add eax, 0xe
push ebx
mov dword [esp + 0x3e], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push 0
lea eax, [esp + 0x14]
push eax
push 0xe
lea eax, [esp + 0x24]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push ebp
push edi
call esi
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push dword [ebp + 0x14]
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x1c
ret
Function at 0x427f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
push 0x40
push 0x3000
push 0x5d
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov ecx, dword [esp + 0xc]
mov eax, ecx
mov edx, fcn.0047d750
shr eax, 8
sub edx, esi
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 4], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 7], cl
mov ecx, fcn.0047ddb0
mov byte [esi + 6], al
sub ecx, esi
sub ecx, 0xd
mov dword [esi], 0x68e58955
mov eax, ecx
mov byte [esi + 9], cl
shr eax, 8
mov byte [esi + 0xa], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 0xc], cl
mov ecx, fcn.0047dab0
mov byte [esi + 0xb], al
sub ecx, esi
sub ecx, 0x15
mov byte [esi + 8], 0xe8
mov eax, ecx
mov byte [esi + 0x11], cl
shr eax, 8
mov byte [esi + 0x12], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x13], al
mov byte [esi + 0x14], cl
lea ecx, [edx - 0x1e]
mov eax, ecx
mov byte [esi + 0x1a], cl
shr eax, 8
mov byte [esi + 0x1b], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], cl
lea ecx, [edx - 0x2a]
mov eax, ecx
mov byte [esi + 0x26], cl
shr eax, 8
mov byte [esi + 0x27], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov dword [esi + 0xd], 0xe804c483
mov dword [esi + 0x15], 0x5008458b
mov byte [esi + 0x19], 0xe8
mov dword [esi + 0x1e], 0x8b04c483
mov dword [esi + 0x22], 0xe8500c45
mov dword [esi + 0x2a], 0x8b04c483
mov dword [esi + 0x2e], 0xe8501045
mov dword [esi + 0x36], 0x8b04c483
mov dword [esi + 0x3a], 0xe8501445
mov dword [esi + 0x42], 0x6a04c483
mov word [esi + 0x46], 0xe804
mov dword [esi + 0x4c], 0x6a04c483
mov word [esi + 0x50], 0xe8ff
mov dword [esi + 0x56], 0x5d04c483
mov word [esi + 0x5a], 0x10c2
mov byte [esi + 0x5c], 0
mov byte [esi + 0x28], al
mov byte [esi + 0x29], cl
lea ecx, [edx - 0x36]
mov eax, ecx
mov byte [esi + 0x32], cl
shr eax, 8
mov byte [esi + 0x33], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x34], al
mov byte [esi + 0x35], cl
lea ecx, [edx - 0x42]
mov eax, ecx
mov byte [esi + 0x3e], cl
shr eax, 8
mov byte [esi + 0x3f], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x41], cl
mov ecx, fcn.00476330
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x40], al
sub ecx, 0x4c
mov eax, ecx
mov byte [esi + 0x48], cl
shr eax, 8
mov byte [esi + 0x49], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x4b], cl
mov ecx, fcn.0046fba0
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x4a], al
sub ecx, 0x56
mov eax, ecx
mov byte [esi + 0x52], cl
shr eax, 8
mov byte [esi + 0x53], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0x54], al
lea eax, [esp + 4]
push eax
push 0x10
push 0x5d
shr ecx, 0x18
push esi
mov byte [esi + 0x55], cl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ecx
ret
Function at 0x4280f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
push 0x40
push 0x3000
push 0x63
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov ecx, dword [esp + 0xc]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, dword [esp + 0x10]
mov byte [esi + 4], cl
shr ecx, 0x18
mov byte [esi + 7], cl
mov dword [esi + 8], 0xe8
mov dword [esi + 0x10], 0x68
mov dword [esi + 0x14], 0xe800
mov dword [esi + 0x18], 0xc4830000
mov dword [esi + 0x20], 0xe850
mov dword [esi + 0xc], 0x4c48300
mov dword [esi], 0x68e58955
mov dword [esi + 0x1c], 0x8458b04
mov dword [esi + 0x24], 0xc4830000
mov dword [esi + 0x28], 0xc458b04
mov dword [esi + 0x2c], 0xe850
mov dword [esi + 0x30], 0xc4830000
mov dword [esi + 0x34], 0x10458b04
mov dword [esi + 0x38], 0xe850
mov dword [esi + 0x3c], 0xc4830000
mov dword [esi + 0x40], 0xe8036a04
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0x6a04c483
mov dword [esi + 0x4c], 0xe8ff
mov dword [esi + 0x50], 0xc4830000
mov dword [esi + 0x54], 0xcc25d04
mov byte [esi + 0x58], 0
mov ecx, dword [eax + 8]
mov eax, ecx
shr eax, 8
mov byte [esi + 0x12], al
mov eax, ecx
mov byte [esi + 0x11], cl
shr ecx, 0x18
mov byte [esi + 0x14], cl
mov ecx, fcn.0047ddb0
shr eax, 0x10
sub ecx, esi
sub ecx, 0xd
mov byte [esi + 0x13], al
mov eax, ecx
mov byte [esi + 9], cl
shr eax, 8
mov byte [esi + 0xa], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0xc], cl
mov ecx, fcn.004613c0
shr eax, 0x10
sub ecx, esi
sub ecx, 0x1a
mov byte [esi + 0xb], al
mov eax, ecx
mov byte [esi + 0x16], cl
shr eax, 8
mov byte [esi + 0x17], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x19], cl
mov ecx, fcn.0047d750
shr eax, 0x10
sub ecx, esi
sub ecx, 0x26
mov byte [esi + 0x18], al
mov eax, ecx
mov byte [esi + 0x22], cl
shr eax, 8
mov byte [esi + 0x23], al
mov eax, ecx
mov edx, fcn.0047d750
shr eax, 0x10
sub edx, esi
mov byte [esi + 0x24], al
shr ecx, 0x18
mov byte [esi + 0x25], cl
lea ecx, [edx - 0x32]
mov eax, ecx
mov byte [esi + 0x2e], cl
shr eax, 8
mov byte [esi + 0x2f], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x30], al
mov byte [esi + 0x31], cl
lea ecx, [edx - 0x3e]
mov eax, ecx
mov byte [esi + 0x3a], cl
shr eax, 8
mov byte [esi + 0x3b], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x3d], cl
mov ecx, fcn.0047f220
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x3c], al
sub ecx, 0x48
mov eax, ecx
mov byte [esi + 0x44], cl
shr eax, 8
mov byte [esi + 0x45], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x47], cl
mov ecx, fcn.0046fba0
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x46], al
sub ecx, 0x52
mov eax, ecx
mov byte [esi + 0x4e], cl
shr eax, 8
mov byte [esi + 0x4f], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0x50], al
lea eax, [esp + 4]
push eax
push 0x10
push 0x63
shr ecx, 0x18
push esi
mov byte [esi + 0x51], cl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ecx
ret
Function at 0x4282e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
push 0x40
push 0x3000
push 0x51
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov ecx, dword [esp + 0xc]
mov eax, ecx
mov edx, fcn.0047d750
shr eax, 8
sub edx, esi
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 4], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 7], cl
mov ecx, fcn.0047ddb0
mov byte [esi + 6], al
sub ecx, esi
sub ecx, 0xd
mov dword [esi], 0x68e58955
mov eax, ecx
mov byte [esi + 9], cl
shr eax, 8
mov byte [esi + 0xa], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 0xc], cl
mov ecx, fcn.0047dab0
mov byte [esi + 0xb], al
sub ecx, esi
sub ecx, 0x15
mov byte [esi + 8], 0xe8
mov eax, ecx
mov byte [esi + 0x11], cl
shr eax, 8
mov byte [esi + 0x12], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x13], al
mov byte [esi + 0x14], cl
lea ecx, [edx - 0x1e]
mov eax, ecx
mov byte [esi + 0x1a], cl
shr eax, 8
mov byte [esi + 0x1b], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x1d], cl
lea ecx, [edx - 0x2a]
mov byte [esi + 0x1c], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0x27], al
mov eax, ecx
mov byte [esi + 0x26], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0x29], cl
lea ecx, [edx - 0x36]
mov dword [esi + 0xd], 0xe804c483
mov dword [esi + 0x15], 0x5008458b
mov byte [esi + 0x19], 0xe8
mov dword [esi + 0x1e], 0x8b04c483
mov dword [esi + 0x22], 0xe8500c45
mov dword [esi + 0x2a], 0x8b04c483
mov dword [esi + 0x2e], 0xe8501045
mov dword [esi + 0x36], 0x6a04c483
mov word [esi + 0x3a], 0xe803
mov dword [esi + 0x40], 0x6a04c483
mov word [esi + 0x44], 0xe8ff
mov dword [esi + 0x4a], 0x5d04c483
mov word [esi + 0x4e], 0xcc2
mov byte [esi + 0x50], 0
mov byte [esi + 0x28], al
mov byte [esi + 0x32], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 0x33], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x35], cl
mov ecx, fcn.00476330
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x34], al
sub ecx, 0x40
mov eax, ecx
mov byte [esi + 0x3c], cl
shr eax, 8
mov byte [esi + 0x3d], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi + 0x3f], cl
mov ecx, fcn.0046fba0
shr eax, 0x10
sub ecx, esi
mov byte [esi + 0x3e], al
sub ecx, 0x4a
mov eax, ecx
mov byte [esi + 0x46], cl
shr eax, 8
mov byte [esi + 0x47], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0x48], al
lea eax, [esp + 4]
push eax
push 0x10
push 0x51
shr ecx, 0x18
push esi
mov byte [esi + 0x49], cl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ecx
ret
Function at 0x433e30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push 0x24
call fcn.00534e65
mov ebx, eax
push 0x6dd0f4
push dword [esp + 0x14]
mov dword [ebx], 0
call fcn.0052fcf1
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x433ea6
push esi
push edi
push 2
push 0
push ebp
call fcn.00535c75
push ebp
call fcn.005362d4
push ebp
mov esi, eax
call fcn.005363ea
push esi
call fcn.00534e65
push ebp
push esi
mov edi, eax
push 1
push edi
call fcn.005358d2
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [ebx + 0x14]
push ecx
push esi
push edi
call fcn.00433d90
push ebp
mov dword [ebx], eax
call fcn.0052fb49
push edi
call fcn.00534e4a
add esp, 0x40
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x448580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
mov ebp, 0x108
mov eax, edi
xor ebx, ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebp
jbe 0x4485cd
lea eax, [esi + esi]
mov ebp, esi
push eax
call fcn.0047f870
add esp, 4
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
test esi, esi
push 0
setne cl
push ecx
call fcn.004541f0
add esp, 8
cmp esi, 2
jb 0x44860c
cmp esi, ebp
jae 0x44860c
cmp word [edi + 2], 0x3a
jne 0x44860c
movzx eax, word [edi]
mov edx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ebx, ebx
lea eax, [ecx - 0x41]
cmp eax, 0x19
cmovbe ebx, eax
lea eax, [esp + 0x10]
cmp edi, eax
je 0x44861d
push edi
call fcn.0047f840
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x214
ret

Function at 0x448640
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
test eax, eax
js 0x44869c
cmp eax, 0x19
jg 0x44869c
push esi
push edi
add eax, 0x41
mov dword [esp + 0xa], 0x3a
push 1
mov word [esp + 0xc], ax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
push edi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push esi
call fcn.004541f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00529c8c
add esp, 0xc
ret

Function at 0x448700
Capabilities:
Set current directory

Disassembly:
push ebx
push ebp
push esi
push dword [esp + 0x10]
call fcn.004495b0
add esp, 4
mov ebp, eax
call fcn.0044b580
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
push esi
sbb ebx, ebx
neg ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push ebx
call fcn.004541f0
add esp, 8
call fcn.0044b580
test ebp, ebp
je 0x448751
push ebp
call fcn.0047f840
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x448760
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
call fcn.0044b580
call fcn.00448580
mov ebp, dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebp, ebp
js 0x4487cf
cmp ebp, 0x19
jg 0x4487cf
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp + 0x41]
push edi
push 1
mov word [esp + 0x18], cx
mov dword [esp + 0x1a], 0x3a
call ebx
mov edi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
push edi
sbb esi, esi
neg esi
call ebx
push 0
push esi
call fcn.004541f0
mov ebx, dword [esp + 0x18]
add esp, 8
pop edi
call fcn.00448580
cmp ebp, eax
jne 0x4487dc
xor esi, esi
jmp 0x4487e8
push ebx
call fcn.00448640
add esp, 4
or esi, 0xffffffff
push esi
call fcn.004541d0
add esp, 4
call fcn.0044b580
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x10
ret

Function at 0x448910
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 0xc], ebp
mov byte [ebx], 0
push esi
push edi
test ebp, ebp
jle 0x448959
call fcn.0044b580
call fcn.00448580
push 0
mov esi, eax
call fcn.004541d0
add esp, 4
call fcn.0044b580
lea eax, [esi + 1]
mov dword [esp + 0x14], eax
cmp ebp, eax
je 0x448959
lea eax, [ebp - 1]
push eax
call fcn.00448760
add esp, 4
call fcn.0044b580
mov esi, dword [esp + 0x1c]
add esi, esi
push esi
call fcn.0047f870
add esp, 4
mov edi, eax
xor eax, eax
push eax
push edi
push dword [esp + 0x24]
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004541f0
xor eax, eax
mov word [esi + edi - 2], ax
mov eax, dword [esp + 0x24]
dec eax
push eax
push ebx
push edi
call fcn.0046f560
push edi
call fcn.0047f840
add esp, 0x18
call fcn.0044b580
call fcn.004541a0
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp ebp, eax
je 0x4489d3
lea ecx, [eax - 1]
push ecx
call fcn.00448760
push esi
call fcn.004541d0
add esp, 8
mov eax, dword [esp + 0x1c]
mov byte [ebx + eax - 1], 0
test esi, esi
jne 0x448a5d
mov cl, byte [ebx]
test cl, cl
je 0x448a5d
mov esi, ebx
lea edx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4489f0
sub esi, edx
mov edi, ebx
cmp byte [ebx + 1], 0x3a
jne 0x448a0a
mov cl, byte [ebx + 2]
lea edi, [ebx + 2]
sub esi, 2
movzx eax, cl
push eax
push 0x70cbb8
call fcn.0052bc00
add esp, 8
test eax, eax
je 0x448a21
inc edi
dec esi
test esi, esi
je 0x448a50
movzx eax, byte [edi + esi - 1]
push eax
push 0x70cbb8
call fcn.0052bc00
add esp, 8
test eax, eax
je 0x448a3d
dec esi
test esi, esi
je 0x448a50
cmp ebx, edi
je 0x448a50
push esi
push edi
push ebx
call fcn.0052ae60
add esp, 0xc
mov eax, dword [esp + 0x18]
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x448a70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
call fcn.0044b580
lea edi, [esp + 0x10]
mov ebp, 0x108
mov eax, edi
xor ebx, ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebp
jbe 0x448ac2
lea eax, [esi + esi]
mov ebp, esi
push eax
call fcn.0047f870
add esp, 4
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
test esi, esi
push 0
setne cl
push ecx
call fcn.004541f0
add esp, 8
cmp esi, 2
jb 0x448b01
cmp esi, ebp
jae 0x448b01
cmp word [edi + 2], 0x3a
jne 0x448b01
movzx eax, word [edi]
mov edx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ebx, ebx
lea eax, [ecx - 0x41]
cmp eax, 0x19
cmovbe ebx, eax
lea eax, [esp + 0x10]
cmp edi, eax
je 0x448b12
push edi
call fcn.0047f840
add esp, 4
push 0
call fcn.004541d0
add esp, 4
call fcn.0044b580
mov ecx, dword [esp + 0x220]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x214
ret

Function at 0x448b40
Capabilities:
Delete file

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004495b0
add esp, 4
mov edi, eax
call fcn.0044b580
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004541f0
add esp, 8
call fcn.0044b580
test edi, edi
je 0x448b7f
push edi
call fcn.0047f840
add esp, 4
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
call fcn.0044b580
mov ebx, dword [esp + 0x14]
xor esi, esi
push dword [esp + 0x10]
mov dword [ebx], 0
call fcn.004495b0
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x448fde
push eax
call fcn.004eb690
add esp, 4
mov dword [ebx], eax
mov esi, 1
push 0
push esi
call fcn.004541f0
add esp, 8
test edi, edi
je 0x448ff6
push edi
call fcn.0047f840
add esp, 4
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4492d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4492e6
jmp dword [ecx*4 + 0x449360]
xor eax, eax
jmp case.default.0x4492e6
push 0xfffffffffffffff6
jmp 0x4492fb
push 0xfffffffffffffff5
jmp 0x4492fb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449324
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x449324
xor esi, esi
jmp 0x449329
mov esi, 1
push 0
push esi
call fcn.004541f0
add esp, 8
test esi, esi
je 0x449346
mov edx, dword [esp + 8]
xor eax, eax
or eax, edi
pop edi
pop esi
add esp, 8
ret
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret