joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445aa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cef5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x445c55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x445b21
test edi, 0xffff0000
jne 0x445b03
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d90
jmp 0x445b2d
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x445b10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445b10
sub ecx, edx
sar ecx, 1
jmp 0x445b23
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a060
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x445c22
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x445c22
cmp eax, 0xb7
je 0x445c22
push eax
push str.496_tKFuncAux::CreateDeepDirectory_tCreateDirectory_failed__error_code:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
lea eax, [ebp - 0x10]
push eax
call fcn.00448aa0
mov esi, dword [ebp - 0x10]
add esp, 0x18
cmp dword [esi - 0xc], 0
jne 0x445bb9
push 0
push str.501_tKFuncAux::CreateDeepDirectory_tpath_is_empty_after_Remove_File_Spec__retCode:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
xor edi, edi
jmp 0x445c2a
push esi
call fcn.00445aa0
add esp, 4
push 0
test eax, eax
jne 0x445be9
push esi
push str.509_tKFuncAux::CreateDeepDirectory_tCreate_Deep_Directory_failed__path:__ws__retCode:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x18
xor edi, edi
jmp 0x445c2a
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x445c25
cmp eax, 0xb7
je 0x445c25
push eax
push str.517_tKFuncAux::CreateDeepDirectory_tCreateDirectory_failed__error_code:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
jmp 0x445c2a
mov esi, dword [ebp - 0x10]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x445c42
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x445c60
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ec5d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x445ca2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445cc3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x445d7f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [edi]
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.0042c720
add esp, 0x10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x445d1b
mov edi, 1
jmp 0x445d41
cmp dword [ebp + 0xc], 0
je 0x445d3f
push esi
push dword [edi]
call fcn.0056b9b4
add esp, 8
push 4
push 0
test eax, eax
jne 0x445d6c
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x445d78
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x445d59
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x445d3f
mov edi, 1
jmp 0x445d41
push 0x80004005
call fcn.00429b60
int3
Function at 0x4461c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ed05
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwarekingsoftOffice6.0Common
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44634f
mov byte [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x44638d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4462fd
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.hostprocname
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x446275
cmp eax, 2
jne 0x4462fd
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x446397
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4462ab
push edx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.hostprocname
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4462fd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x4462d7
xor eax, eax
jmp 0x4462eb
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x446397
cmp eax, dword [esi - 8]
jg 0x446397
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
cmp dword [esi + 4], 0
je 0x446336
push esi
call fcn.00429b80
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44632c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44637a
push eax
jmp 0x446374
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44634f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
push 0
push str.hostprocname
push str.SoftwarekingsoftOffice6.0Common
push 0x80000002
push edi
call fcn.00463be0
mov ecx, dword [ebp - 0x10]
add esp, 0x14
test ecx, ecx
je 0x44637a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3
Function at 0x447bb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f065
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
je 0x447cd9
push 0x5b8734
push str.GetWinSpecialFoldersFromReg
push str.Support
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00460d80
push str.True
push dword [ebp - 0x10]
call fcn.0056b422
mov edx, dword [ebp - 0x10]
add esp, 0x1c
test eax, eax
mov byte [ebp - 4], 0
mov ecx, 1
mov eax, esi
cmove edi, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x447c46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x447cd9
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov ecx, 2
mov eax, edi
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0055c532
mov esi, eax
add esp, 4
test esi, esi
je 0x447c80
push ebx
push 0
push esi
call fcn.00560a80
add esp, 0xc
jmp 0x447c82
xor esi, esi
push 0xa
push 0xffffffffffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
call fcn.00447d20
mov edi, eax
add esp, 0x18
test edi, edi
je 0x447cb8
push edi
push str.1290_tKFuncAux::GetSpecialFolders_t_KFuncAux::GetSpecialFolders__GetWinSpecialFoldersFromReg_Failed:_0x_08x.
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.0056fa05
push esi
call fcn.0055c53b
xor ebx, ebx
add esp, 0x10
test edi, edi
sete bl
or esi, 0xffffffff
jmp 0x447ceb
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x447d03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f1fd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 0x400
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push 0x800
mov dword [ebp - 0x30], eax
call fcn.0055c532
mov esi, eax
mov dword [ebp - 0x38], esi
push 0x800
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00560a80
add esp, 0x10
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x448bb5
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, esi
cmp eax, 0xea
jne 0x448c51
mov dword [ebp - 0x34], esi
mov edx, 2
lea ecx, [ecx]
add ebx, 0x800
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055c532
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
test eax, eax
je 0x448c11
push eax
call fcn.0055c53b
add esp, 4
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.00560a80
add esp, 0xc
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x448c2d
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x34], esi
mov edx, 2
cmp eax, 0xea
je 0x448be0
mov edx, esi
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448c71
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e330
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae edi, dword [ebp - 0x28]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x448d68
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
test edi, edi
je 0x448ce8
test edi, 0xffff0000
jne 0x448cd2
movzx eax, di
mov ecx, ebx
push eax
call fcn.00429d90
jmp 0x448cf3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448cd7
sub ecx, edx
sar ecx, 1
jmp 0x448cea
xor ecx, ecx
push ecx
push edi
mov ecx, ebx
call fcn.0042a060
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x448d29
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x448d1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448d72
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x448d4a
push esi
call fcn.0055c53b
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
call fcn.0056af64
int3
Function at 0x4493a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingRuntimeExceptionHelperModules
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4493ed
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4493ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x449400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f307
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4494ad
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4494a0
jmp 0x4494fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x44950e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44950e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4494f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042e330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x44a330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f41d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0055c4f4
mov edi, eax
add esp, 4
test edi, edi
je 0x44a3cd
push 1
mov dword [ebp - 4], 0
call fcn.0055ddcb
add esp, 4
mov dword [edi + 4], eax
jmp 0x44a3cf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00444320
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x44a42b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x44a42b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x44a448
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x44a46b
cmp byte [ebp + 0xc], 0
je 0x44a457
push esi
call fcn.0055e4a4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x44a477
mov esi, str.ios_base::badbit_set
jmp 0x44a487
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0044a4b0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00444e00
push 0x5fc4a4
lea eax, [ebp - 0x28]
push eax
call fcn.00560f5e
int3
Function at 0x45f070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f0e6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x45f0e6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45f0e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45f0e6
mov ecx, dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebx + 1]
push eax
call fcn.0044f070
push eax
call fcn.00560500
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ebx
call fcn.004585c0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x45f0f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0945
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x45f257
mov dword [ebp - 4], ebx
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x45f26d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push dword [ebp + 8]
push dword [esi]
push str._s_d._s
push eax
call fcn.0042c720
mov esi, dword [ebp - 0x10]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
je 0x45f234
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x45f22d
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0xa]
push eax
mov dword [ebp + 0x10], 0
call fcn.0044f070
push 0
lea ecx, [ebp + 0x10]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x45f211
cmp dword [ebp + 0x10], ebx
jne 0x45f211
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.004585c0
mov byte [ebp - 4], 3
test edi, edi
je 0x45f1f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004296c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jl 0x45f277
mov ebx, dword [ebp + 8]
mov dword [ecx - 0xc], 0
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x45f22f
xor ebx, ebx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
test edi, edi
je 0x45f23f
push edi
call eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f257
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3
Function at 0x460950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a09ee
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [edi], vtable.KProductConfig.0
xor ecx, ecx
mov dword [edi + 4], eax
mov dword [ebp - 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 7
mov word [edi + 4], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], cx
lea esi, [edi + 0x34]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x2c], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.0055c4f4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 3
mov word [edi + 0x3c], 0
mov byte [edi + 0x3e], 0
cmp ecx, ebx
je 0x460a1e
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x460a17
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0042e330
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x1c]
cmp ecx, eax
je 0x460a30
push 0
push eax
call fcn.0042e330
mov ecx, edi
call fcn.00443950
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x460a6d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460a63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460a93
push edx
push ecx
call fcn.0055c524
add esp, 8
mov dword [edi], vtable.KOemRWConfig.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 4
call fcn.0056af64
int3
Function at 0x4626f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d19d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x462735
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push dword [0x641b9c]
lea eax, [ebp - 0x10]
push eax
call fcn.00448a10
add esp, 0xc
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0
call ebx
push str..new
lea eax, [ebp + 8]
push edi
push eax
call fcn.00429810
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46278c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..old
lea eax, [ebp + 8]
push edi
push eax
call fcn.00429810
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4627bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4627d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret