joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442e8d
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x60
mov eax, 0x4a75af
call fcn.004646e0
mov eax, dword [ebp + 0x64]
xor esi, esi
inc esi
push esi
lea ecx, [ebp + 0x1f]
push ecx
xor ebx, ebx
push eax
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x20], ebx
call fcn.004018b0
mov dword [ebp - 4], ebx
push 0x10
lea eax, [ebp]
push ebx
push eax
call fcn.00465a70
push 0x44
pop edi
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00465a70
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3c], ax
cmp dword [ebp + 0x68], ebx
je 0x442efb
mov eax, esi
mov word [ebp - 0x3c], ax
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x442f07
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x14]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp + 0x14], str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeMSISharedSetuputils.cpp
mov dword [ebp + 0x18], 0x4a7
call fcn.004115dc
add esp, 0xc
push dword [ebp + 0x3c]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.00401a00
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00402290
mov eax, dword [eax]
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00402060
cmp edi, ebx
je 0x443012
mov edi, 0xff
push edi
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x442fb8
cmp eax, 1
jne 0x442fbe
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x24], 0x11
je 0x442fbe
cmp dword [ebp - 0x24], 0x10
je 0x442fbe
cmp dword [ebp - 0x24], 0x12
je 0x442fbe
push edi
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
push 1
call esi
cmp eax, ebx
jne 0x442f89
lea eax, [ebp + 0x20]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 0x20]
push dword [ebp]
mov dword [0x4db6d0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x20]
mov dword [ebp + 0x14], str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
lea eax, [ebp + 0x14]
push str.Launch_result__d__exit_code__d
push eax
mov dword [ebp + 0x18], 0x4c8
call fcn.004115dc
mov esi, dword [ebp + 0x20]
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401670
mov eax, esi
jmp 0x443023
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401670
mov eax, 0xcccccccc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x5c
leave
ret 8
Function at 0x443042
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x94
mov eax, 0x4a75df
call fcn.004646e0
mov esi, dword [ebp + 0x80c]
push 0x10
xor edi, edi
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00465a70
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00465a70
mov dword [ebp - 0x6c], ebx
xor ebx, ebx
inc ebx
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp + 0x810], edi
je 0x4430ab
mov eax, ebx
mov word [ebp - 0x3c], ax
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004018b0
mov dword [ebp - 4], edi
cmp dword [eax + 0x1c], 8
jb 0x4430d8
mov eax, dword [eax + 8]
jmp 0x4430db
add eax, 8
push eax
lea eax, [ebp - 0x18]
push str.Attempting_to_launch__no_wait_:__s
mov esi, str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x4e9
call fcn.004115dc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00401670
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push 0x20
push ebx
push edi
push edi
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
push ebx
lea eax, [ebp - 0x18]
push str.Launch_result__d
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x4ee
call fcn.004115dc
add esp, 0xc
cmp ebx, edi
je 0x443155
push 0x3e8
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x804
leave
ret 8
Function at 0x4434f4
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x888
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x888], eax
push 0x10
mov eax, 0x4a7693
call fcn.004646e0
mov eax, dword [ebp + 0x894]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x898]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x89c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x270], ax
xor edi, edi
lea eax, [ebp + 0x272]
push edi
push eax
call fcn.00465a70
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x270]
push eax
push dword [0x4db6d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x270]
push eax
lea ecx, [ebp]
call fcn.0044063f
mov dword [ebp - 4], edi
xor eax, eax
push esi
mov word [ebp + 0x680], ax
lea eax, [ebp + 0x682]
push edi
push eax
call fcn.00465a70
mov edi, 0x4dad94
add esp, 0xc
mov ecx, edi
call fcn.00402d00
push eax
lea eax, [ebp]
push eax
call fcn.00441b9d
pop ecx
pop ecx
test eax, eax
je 0x443617
xor eax, eax
push esi
mov word [ebp + 0x478], ax
xor esi, esi
lea eax, [ebp + 0x47a]
push esi
push eax
mov byte [ebp - 0xd], 1
call fcn.00465a70
add esp, 0xc
lea eax, [ebp + 0x478]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x680]
push eax
push esi
push 0x4b2ae0
lea eax, [ebp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea eax, [ebp + 0x680]
push eax
mov ecx, edi
call fcn.00402d00
push eax
lea ecx, [ebp]
call fcn.0044124d
jmp 0x443674
cmp word [0x4d9d28], 0
je 0x443635
push 0x4d9d28
lea eax, [ebp + 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x443670
lea eax, [ebp + 0x478]
push eax
lea eax, [ebp + 0x680]
push eax
lea eax, [ebp + 0x270]
push eax
call fcn.0044152b
cmp dword [0x4dadb0], 8
mov eax, dword [0x4dad9c]
jae 0x443662
mov eax, 0x4dad9c
push eax
lea eax, [ebp + 0x680]
push eax
push eax
call fcn.00441d63
mov byte [ebp - 0xd], 0
lea ecx, [ebp + 0x234]
call fcn.0040c4ef
mov byte [ebp - 4], 1
lea eax, [ebp + 0x680]
push eax
lea ecx, [ebp + 0x234]
call fcn.0040c4ce
push dword [ebp + 0x8a0]
lea ecx, [ebp + 0x234]
push dword [ebp - 0x1c]
push 0x4bdf40
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00409ec2
cmp byte [ebp - 0xd], 0
je 0x4436c7
lea eax, [ebp + 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x234]
call fcn.0040c510
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004407f8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x888]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x88c
leave
ret
Function at 0x44481a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x444833
push 0x80004005
call fcn.0040d8ae
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x4448a2
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x44489d
cmp dword [ebp + 0x10], ebx
jbe 0x444893
cmp dword [ebp + 0x10], 2
jbe 0x444885
cmp dword [ebp + 0x10], 7
jne 0x444893
test cl, 1
jne 0x444893
shr ecx, 1
cmp ecx, 1
jb 0x444893
cmp word [esi + ecx*2 - 2], bx
jne 0x444893
cmp ecx, 1
jbe 0x4448a2
cmp word [esi + ecx*2 - 4], bx
jmp 0x444891
test cl, 1
jne 0x444893
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x4448a2
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x4448a2
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4448a9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x4448bf
push 0x80004005
call fcn.0040d8ae
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
je 0x4448d2
cmp eax, 0xffffffff
jne 0x4448e1
push 0x57
pop eax
jmp 0x444902
cmp eax, 0xffffffff
jne 0x4448e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
dec eax
and eax, 6
inc eax
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0x10

Function at 0x4464e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00445bce
test al, al
je 0x446545
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x446545
push esi
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x446b93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4b3968
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446bc9
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x446bc9
call eax
jmp 0x446c87
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x14]
push eax
mov ebx, 0xf003f
push ebx
push 0
push str..DefaultControl_PaneldesktopResourceLocale
mov edi, SysStringLen
push edi
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x446c18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4bdf40
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x446c66
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
test esi, esi
jne 0x446c4b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00445d45
test esi, esi
je 0x446c66
lea ecx, [ebp - 0x14]
call fcn.00445d45
mov eax, 0x409
jmp 0x446c84
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00464c3b
add esp, 0xc
lea ecx, [ebp - 0x14]
movzx esi, ax
call fcn.00445d45
mov ax, si
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004646d1
leave
ret
Function at 0x4488c4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x70
mov eax, 0x4a7b0e
call fcn.004646e0
and dword [ebp - 0x14], 0
mov esi, dword [ebp + 0x214]
xor edi, edi
inc edi
cmp dword [ebp + 0x218], edi
jne 0x44896f
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44896f
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d58f4], eax
test eax, eax
je 0x44896f
push 0x104
lea ecx, [ebp]
push ecx
call eax
test eax, eax
je 0x44896f
push 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x4b11ac
mov dword [ebp - 0x1c], 0x4b11a4
call fcn.00409238
and dword [ebp - 4], 0
push edi
push 0x4ae53c
lea ecx, [ebp - 0x48]
call fcn.004480f2
push eax
mov ecx, esi
call fcn.00437208
lea ecx, [ebp - 0x48]
jmp 0x4489d4
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x448998
lea ecx, [ebp - 0x30]
call fcn.00435cbe
push 0x4cd9a8
lea eax, [ebp - 0x30]
push eax
call fcn.004647ea
push 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x4b11ac
mov dword [ebp - 0x50], 0x4b11a4
call fcn.00409238
push edi
push 0x4ae53c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], edi
call fcn.004480f2
push eax
mov ecx, esi
call fcn.00437208
lea ecx, [ebp - 0x7c]
call fcn.004016f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x20c
leave
ret

Function at 0x448a11
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4a7b3e
call fcn.004646e0
and dword [ebp - 4], 0
cmp byte [ebp + 0x3c], 0
je 0x448a4a
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x448a33
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x448a4a
lea ecx, [ebp + 8]
call fcn.004016f0
xor al, al
jmp 0x448a8f
push 0x80
sub esp, 0x34
mov ecx, esp
mov dword [ebp + 0x3c], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.004091ca
call fcn.00447c8f
pop ecx
mov ecx, esp
mov dword [ebp + 0x3c], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.004091ca
call fcn.00447d08
add esp, 0x34
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004016f0
test esi, esi
setne al
call fcn.004647b8
ret

Function at 0x44a8c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44a8df
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44a914
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
push eax
call fcn.004647ea
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x44a91c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44a932
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44a967
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
push eax
call fcn.004647ea
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x44a96f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44a983
xor eax, eax
inc eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44a9b7
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e74
test al, al
jne 0x44a9e6
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caf8c
lea eax, [ebp - 0x58]
push eax
call fcn.004647ea
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a9e6
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
jmp 0x44a9b1
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44a9ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44aa04
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44aa38
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e74
test al, al
jne 0x44aa67
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caf8c
lea eax, [ebp - 0x58]
push eax
call fcn.004647ea
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44aa67
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
jmp 0x44aa32
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44aa6f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44aa85
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44aab9
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e74
test al, al
jne 0x44aae8
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caf8c
lea eax, [ebp - 0x58]
push eax
call fcn.004647ea
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44aae8
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
jmp 0x44aab3
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44aaf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44ab03
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44ab37
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e74
test al, al
jne 0x44ab66
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caf8c
lea eax, [ebp - 0x58]
push eax
call fcn.004647ea
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44ab66
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
jmp 0x44ab31
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44cef2
Capabilities:
Check if file exists

Disassembly:
push 0xd4
mov eax, 0x4a85bc
call fcn.00464749
and dword [ebp - 4], 0
mov bl, 0x10
test byte [ebp + 0x3c], bl
je 0x44cf4a
lea ecx, [ebp + 8]
call fcn.0043d230
test al, al
je 0x44cf4a
push dword [ebp + 0x3c]
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
push eax
call fcn.004091ca
call fcn.0044b65a
add esp, 0x38
mov bl, al
lea ecx, [ebp + 8]
call fcn.004016f0
mov al, bl
jmp 0x44d0ac
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.004091ca
call fcn.00447c1c
add esp, 0x34
cmp eax, 0xffffffff
je 0x44cf89
test byte [ebp + 0x3c], 4
je 0x44cf77
test bl, al
je 0x44cf81
test byte [ebp + 0x3c], 8
je 0x44cf85
test bl, al
je 0x44cf85
mov bl, 1
jmp 0x44cf3b
xor bl, bl
jmp 0x44cf3b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
cmp edi, 2
je 0x44d0a2
cmp edi, 3
je 0x44d0a2
cmp edi, 5
jne 0x44d063
lea ecx, [ebp - 0xa4]
call fcn.004474c8
or dword [ebp - 0xa8], 0xffffffff
lea eax, [ebp - 0xa4]
push eax
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xac], esp
push 1
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.004091ca
call fcn.0044c7ad
add esp, 0x38
push eax
lea ecx, [ebp - 0xa8]
call fcn.00420548
cmp dword [ebp - 0xa8], 0xffffffff
je 0x44d040
test byte [ebp + 0x3c], 4
je 0x44d00c
test byte [ebp - 0xa4], bl
je 0x44d01a
test byte [ebp + 0x3c], 8
je 0x44d01e
test byte [ebp - 0xa4], bl
je 0x44d01e
mov bl, 1
jmp 0x44d020
xor bl, bl
lea ecx, [ebp - 0xa8]
call fcn.0041fd86
lea ecx, [ebp - 0x44]
call fcn.004016f0
lea ecx, [ebp - 0x78]
call fcn.004016f0
jmp 0x44cf3b
call esi
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.0041fd86
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004016f0
lea ecx, [ebp - 0x78]
call fcn.004016f0
test byte [ebp + 0x3c], 0x20
je 0x44cf85
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00437244
push 1
push edi
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0043731f
push 0x4caf7c
lea eax, [ebp - 0x64]
push eax
call fcn.004647ea
lea ecx, [ebp + 8]
call fcn.004016f0
xor al, al
call fcn.004647cc
ret
Function at 0x451e51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 8
jb 0x451e5c
mov ecx, dword [ecx + 8]
jmp 0x451e5f
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4523e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4523ff
mov dword [ebp + 0xc], 4
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452434
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
push eax
call fcn.004647ea
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45243c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x452452
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452487
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
push eax
call fcn.004647ea
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45248f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x4524a3
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4524d7
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e74
test al, al
jne 0x452506
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caf8c
lea eax, [ebp - 0x58]
push eax
call fcn.004647ea
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452506
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caf7c
lea eax, [ebp - 0x54]
jmp 0x4524d1
mov eax, dword [ebp + 8]
pop esi
leave
ret 8