joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 8]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x10]
push 0x359
push str..._.._base_files_file_util_win.cc
push 0x5e3087
push eax
call fcn.004dea80
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.004e60a0
cmp byte [edi + 0xb], 0
jns 0x45bf08
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5e2f70]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x45bf4d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x45bfbb
call fcn.004deab0
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebx + 1]
mov dword [esp + 0xc], eax
cmp eax, 2
jb 0x45bfbf
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor edi, edi
dec edi
mov dword [esp + 0x10], edi
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
cmove edi, ecx
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, edi
cmp dword [esp + 0xc], 2
jb 0x45bf9d
call fcn.004deab0
push ebx
call fcn.004e84d0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x45bf46
xor esi, esi
dec esi
jmp 0x45bf88

Function at 0x45bfd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x391
push str..._.._base_files_file_util_win.cc
push 0x5e3091
push ebx
call fcn.004dea80
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004e60a0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00508060
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x45c09c
push ebx
call fcn.0051f544
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004dd130
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.00454570
mov ecx, dword [ebp + 8]
push ebx
call fcn.004dd210
mov ecx, ebx
call fcn.004dd1f0
mov ecx, edi
call fcn.004dd1f0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.004e6100
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45c0d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x3a1
push str..._.._base_files_file_util_win.cc
push 0x5e30a6
push ebx
call fcn.004dea80
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004e60a0
cmp byte [edi + 0xb], 0
jns 0x45c131
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.004e6100
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45c160
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.00508060
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.00460d10
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.00460ec0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x45c1cd
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
je 0x45c29d
lea ebx, [ebp - 0x4f4]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.00508060
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00460e40
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x45c330
mov ecx, ebx
call fcn.00460c60
test al, al
jne 0x45c2ca
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x45c230
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45c299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.0042a540
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00460ec0
lea ecx, [ebp - 0x500]
push ebx
call fcn.004dd210
mov ecx, ebx
call fcn.004dd1f0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x45c28d
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
jne 0x45c1df
jmp 0x45c29d
xor esi, esi
jmp 0x45c251
lea ecx, [ebp - 0x500]
call fcn.004dd1f0
lea ecx, [ebp - 0x2a4]
call fcn.00460dd0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
cmp byte [ebp + 8], 0
lea ecx, [ebp - 0x500]
je 0x45c251
mov edx, dword [ebp - 0x504]
push 1
call fcn.0045c160
add esp, 4
test eax, eax
jne 0x45c38c
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x45c309
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45c251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x45c251
cmp byte [ebp + 8], 0
je 0x45c34a
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x45c371
mov ecx, dword [ebp - 0x500]
jmp 0x45c377
lea ecx, [ebp - 0x4f4]
call fcn.00460c60
test al, al
je 0x45c384
lea ecx, [ebp - 0x4f4]
call fcn.00460c60
test al, al
je 0x45c21b
jmp 0x45c299
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x45c20c
mov eax, dword [ebp - 0x4f4]
jmp 0x45c336
mov esi, eax
jmp 0x45c251
Function at 0x45c3a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004dea80
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e60a0
cmp dword [ebp + 0xc], 0
js 0x45c467
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004ee660
test al, al
jne 0x45c46c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004ee700
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x45c447
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.00566930
jmp 0x45c41c

Function at 0x45c490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 4], ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004dea80
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.004e60a0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004ee660
test al, al
jne 0x45c54d
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004ee700
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.00566930
jmp 0x45c4ff
Function at 0x45c570
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xa9
push str..._.._base_files_file_win.cc
push str.SetLength
push esi
call fcn.004dea80
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.004e60a0
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.004ee660
test al, al
jne 0x45c6d2
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45c6a6
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45c6a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x45c6a6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.004ee700
lea ecx, [esp + 0x40]
call fcn.004e6100
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.00566930
jmp 0x45c5e9
Function at 0x45c940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x160
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004dea80
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004e60a0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
mov dword [esp + 4], eax
test eax, eax
je 0x45cb5a
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
shl eax, 8
mov ebx, eax
and ebx, 0x2000000
or ebx, esi
and eax, 0x8000000
or eax, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x45ca7e
mov esi, dword [esi]
xor ebx, ebx
push ebx
push eax
push dword [esp + 0xc]
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x45cb0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jae 0x45cb38
mov ecx, edi
inc ecx
cmp ecx, 2
jb 0x45cac2
mov dword [esi], edi
mov edi, eax
call fcn.004deab0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x45cb13
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x45cb27
test bl, 0xa
je 0x45caf0
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x45cacb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045c800
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x45caf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x45caf0
mov dword [esp + 4], eax
call fcn.004deab0
push dword [esi]
call fcn.004e84d0
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi], 0
jmp 0x45caaf
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x45caf0
Function at 0x45cc30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x45cc65
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45cc6c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45cc5e
mov dword [esi], ebx
call fcn.004deab0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004deab0
push dword [esi]
call fcn.004e84d0
add esp, 4
mov dword [esi], 0
jmp 0x45cc4f

Function at 0x45ccb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1a
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.004dea80
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e60a0
mov ecx, esi
call fcn.004e7f50
test al, al
je 0x45cdec
mov ecx, esi
call fcn.00435e80
sub esp, 0x18
movdqa xmm0, xmmword [0x5e3230]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x45cd6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x45cdd0
mov eax, edi
inc eax
cmp eax, 2
jb 0x45cd65
mov dword [esi + 0x24], edi
call fcn.004deab0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x45cdec
sub esp, 0x14
movdqa xmm0, xmmword [0x5e3240]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x45cdec
mov ecx, esp
mov dword [ecx], fcn.0053b0d0
mov dword [ecx + 4], eax
call fcn.00482eb0
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004e6100
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004deab0
push dword [esi + 0x24]
call fcn.004e84d0
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x45cd55
xor ebx, ebx
jmp 0x45cdb0
Function at 0x45cdf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x39
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapFileRegionToMemory
push ebx
call fcn.004dea80
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e60a0
mov ecx, esi
call fcn.004e7f50
xor ebx, ebx
test al, al
je 0x45cf25
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45cf45
mov edi, 2
mov ecx, esi
call fcn.00435e80
xor ecx, ecx
push ecx
push ebx
push ecx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp dword [esi + 0x24], eax
je 0x45ceb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x24]
inc ecx
cmp ecx, 2
jae 0x45cf5c
mov ecx, ebx
inc ecx
cmp ecx, 2
jb 0x45ceab
mov dword [esi + 0x24], ebx
mov ebx, eax
call fcn.004deab0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0x24]
inc ebx
cmp ebx, 2
jb 0x45cfc8
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x5e2860
call fcn.00454b20
test al, al
je 0x45cf80
mov ecx, esi
call fcn.0045c490
xor ebx, ebx
cmp eax, 1
mov ecx, edx
sbb ecx, 0
jl 0x45cf25
test edx, edx
jne 0x45cf25
mov dword [esi + 0x20], eax
xor ecx, ecx
xor eax, eax
xor edx, edx
and edi, 2
add edi, 2
push edx
push ecx
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x45cfc8
add eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.004e6100
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp eax, 3
jne 0x45cfcf
sub esp, 4
mov ecx, esi
call fcn.0045ccb0
mov ebx, eax
jmp 0x45cf25
mov dword [esp + 4], eax
call fcn.004deab0
push dword [esi + 0x24]
call fcn.004e84d0
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x45ce97
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.00454c70
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
js 0x45cfc8
mov ebx, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add edx, ebx
mov dword [esi + 0x20], ebx
jmp 0x45cefe
xor ebx, ebx
jmp 0x45cf25
cmp eax, 2
jne 0x45cfe4
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, 4
jmp 0x45ce68
cmp eax, 1
je 0x45cfda
xor edi, edi
jmp 0x45ce68
Function at 0x45d760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x18], xmm0
cmp dword [ebp + 8], 0
je 0x45d7e8
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
mov edi, eax
call ebx
xor ecx, ecx
push ecx
push ecx
push 0x400
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 0x14]
mov ebx, dword [eax]
cmp dword [esi], ebx
je 0x45d7e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45d7fe
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45d7e1
mov dword [esi], ebx
call fcn.004deab0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004deab0
push dword [esi]
call fcn.004e84d0
add esp, 4
mov dword [esi], 0
jmp 0x45d7d2
Function at 0x45e7a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov ebx, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x45e7d3
mov eax, dword [0x600e94]
cmp eax, 0xffffffff
je 0x45e829
mov ebx, 0x100000
test eax, eax
jne 0x45e7d3
mov ebx, 0x80000
push 0xc
call fcn.00503d75
add esp, 4
mov edi, eax
mov dword [eax], esi
mov esi, dword [ebp + 8]
test esi, esi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
xor eax, eax
push eax
push 0x10000
push edi
push 0x45ead0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45e84d
test esi, esi
je 0x45e887
mov dword [esi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x600e94
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x45e8ef
mov eax, dword [0x600e94]
jmp 0x45e7c5
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x45e869
mov esi, eax
cmp eax, 0x5af
je 0x45e869
cmp esi, 0xe
jne 0x45e897
push ebx
call fcn.005696b0
add esp, 4
test edi, edi
mov eax, dword [ebp - 0x20]
je 0x45e810
push edi
call fcn.00503da5
mov eax, dword [ebp - 0x20]
add esp, 4
jmp 0x45e810
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x45e810
mov eax, dword [0x606d04]
mov ecx, dword [0x6033f4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45e8fe
lea ebx, [ebp - 0x1c]
push esi
push ebx
call fcn.00457a50
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x45e8cf
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x606d00]
call fcn.004f2820
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x45e872
push dword [ebp - 0x1c]
call fcn.00503da5
jmp 0x45e86f
mov dword [0x600e94], 0
jmp 0x45e7ce
push 0x606d04
call fcn.00503e17
add esp, 4
cmp dword [0x606d04], 0xffffffff
jne 0x45e8b4
push 0x20
push str.create_thread_last_error
call fcn.00483b70
add esp, 8
mov dword [0x606d00], eax
push 0x606d04
call fcn.00503e8d
add esp, 4
jmp 0x45e8b4

Function at 0x45ee40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4