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

Disassembly:
push 0x4c
mov eax, 0x5736eb
call fcn.00523c97
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x4c], eax
call esi
cmp dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x50], eax
je 0x4591be
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
je 0x4591be
cmp eax, 0xffffffff
je 0x4591be
cmp eax, ebx
je 0x4591be
push 3
pop edi
push edi
call fcn.004929e4
push 0x20
call fcn.00515ac7
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x459117
lea ecx, [esi + 4]
mov dword [esi], vtable.GFE::MemoryTraceHandler.0
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], ax
mov eax, 0x10000
mov byte [ebp - 4], 2
call fcn.0041032f
jmp 0x459119
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00492ad6
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0047ab4c
lea ecx, [ebp - 0x48]
mov eax, esi
mov dword [ebp - 4], edi
call fcn.00492e90
mov byte [ebp - 4], 4
call fcn.00492a3b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
jae 0x459151
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x459189
xor ebx, ebx
inc ebx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404145
push 1
lea esi, [ebp - 0x2c]
call fcn.00404145
mov eax, ebx
jmp 0x4591c1
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4591a0
lea eax, [ebp - 0x48]
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
mov esi, eax
call edi
cmp esi, ebx
jne 0x45916f
jmp 0x45916c
xor eax, eax
inc eax
call fcn.00523d1a
ret
Function at 0x45aaf2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55f68d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x10], esi
push 0x64
setne al
movzx eax, al
push eax
mov edi, str.srcPackageManager.cpp
call fcn.0049231b
pop ecx
xor edi, edi
pop ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], 3
push dword [ebx + 0x10]
lea esi, [esp + 0x1c]
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.0045d17a
add esp, 0xc
mov esi, eax
mov byte [esp + 0x38], 1
cmp esi, edi
jae 0x45aba8
cmp dword [esp + 0x1c], esi
ja 0x45aba8
sub esi, dword [esp + 0x1c]
sar esi, 2
cmp edi, dword [esp + 0x24]
jne 0x45ab94
lea ecx, [esp + 0x1c]
call fcn.0045cf05
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea eax, [eax + esi*4]
test edi, edi
je 0x45abc6
mov ecx, dword [eax]
and dword [eax], 0
mov dword [edi], ecx
jmp 0x45abc6
cmp edi, dword [esp + 0x24]
jne 0x45abbb
lea ecx, [esp + 0x1c]
call fcn.0045cf05
mov edi, dword [esp + 0x20]
test edi, edi
je 0x45abc6
mov eax, dword [esi]
and dword [esi], 0
mov dword [edi], eax
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x18]
add edi, 4
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x45abe0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi - 4]
call fcn.0049255d
dec dword [esp + 0x14]
jne 0x45ab54
xor esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
call fcn.00492733
inc esi
cmp esi, 3
jb 0x45abf4
or dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x45ac33
mov esi, ebx
cmp ebx, edi
je 0x45ac2c
mov ecx, dword [esi]
test ecx, ecx
je 0x45ac25
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 4
cmp esi, edi
jne 0x45ac19
push ebx
call fcn.00515a19
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46eac1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5522a3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
and dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
call fcn.0046eb32
push dword [ebp + 8]
and dword [esp + 0x3c], 0
mov esi, eax
call fcn.0046ef8a
pop ecx
lea esi, [esp + 0x1c]
call fcn.00426e9d
lea esi, [esp + 0xc]
call fcn.00426e9d
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x471833
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b754
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ebx, [esp + 0xb0]
call fcn.00471975
and dword [esp + 0xf8], 0
mov eax, ebx
call fcn.004954de
test al, al
je 0x471941
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x4718a9
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x471941
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call fcn.004036c8
mov esi, eax
push str.Cannot_delete_ShadowPlayStatistics_file:
push esi
mov byte [esp + 0x100], 1
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [esp + 0xcc]
push eax
mov eax, esi
call fcn.00403732
push 2
pop ecx
mov byte [esp + 0xf8], cl
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x471919
lea eax, [esp + 0xcc]
push eax
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.00404145
lea eax, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.00402669
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.00404145
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret
Function at 0x4752a2
Capabilities:
Enumerate processes

Disassembly:
push 0x278
mov eax, 0x554da7
call fcn.00523c97
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x27c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x280], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x4752e5
xor ecx, ecx
push str.CreateToolhelp32Snapshot_failed
inc ecx
call fcn.00492b4d
pop ecx
jmp 0x47531e
lea eax, [ebp - 0x278]
push eax
push ebx
mov dword [ebp - 0x278], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x475326
xor ecx, ecx
push str.Process32First_failed
inc ecx
call fcn.00492b4d
pop ecx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x47531e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.00523d1a
ret
lea eax, [ebp - 0x254]
push eax
lea esi, [ebp - 0x48]
call fcn.0040338f
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0048f8e2
pop ecx
push 1
xor edi, edi
mov byte [ebp - 4], 3
call fcn.00404145
mov eax, dword [ebp - 0x1c]
push str.BARCLIENTVIEW.EXE
push 0x11
pop edi
lea ecx, [ebp - 0x2c]
call fcn.00410731
test eax, eax
je 0x4753c2
mov eax, dword [ebp - 0x1c]
push str.HINTCLIENT.EXE
push 0xe
pop edi
lea ecx, [ebp - 0x2c]
call fcn.00410731
test eax, eax
je 0x4753f4
mov eax, dword [ebp - 0x1c]
push str.EYOORUN.EXE
push 0xb
pop edi
lea ecx, [ebp - 0x2c]
call fcn.00410731
test eax, eax
je 0x4753fb
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404145
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x475326
jmp 0x47530f
push str.Shunwang
push dword [ebp - 0x27c]
call fcn.0040411c
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404145
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4753ed
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x475320
push str.Hintsoft
jmp 0x4753c7
push str.Eyou
jmp 0x4753c7
Function at 0x48599c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b754
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ebx, [esp + 0xb0]
call fcn.0048595a
and dword [esp + 0xf8], 0
mov eax, ebx
call fcn.004954de
test al, al
je 0x485aaa
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x485a12
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x485aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call fcn.004036c8
mov esi, eax
push str.Cannot_delete_VRDevicesInfo_file:
push esi
mov byte [esp + 0x100], 1
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [esp + 0xcc]
push eax
mov eax, esi
call fcn.00403732
push 2
pop ecx
mov byte [esp + 0xf8], cl
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x485a82
lea eax, [esp + 0xcc]
push eax
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.00404145
lea eax, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.00402669
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.00404145
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret
Function at 0x48612c
Capabilities:
Access the windows event log

Disassembly:
push 0xb4
mov eax, 0x55a4ed
call fcn.00523c97
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], ebx
jne 0x48617c
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xac], str.No_callback_provided
call fcn.00515200
mov dword [ebp - 0xbc], vtable.std::invalid_argument.0
push 0x5c9800
lea eax, [ebp - 0xbc]
push eax
call fcn.0051ed55
push str.System
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x4861cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4861aa
and eax, 0xffff
or eax, 0x80070000
push 0x14
push str.srcWindowsEventLogReader.cpp
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.004983b8
push 0x5c983c
lea eax, [ebp - 0xa4]
jmp 0x486176
mov esi, 0x10000
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
call fcn.0043df7a
mov byte [ebp - 4], 2
jmp 0x48624f
xor ebx, ebx
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xac]
push ecx
sub eax, esi
push eax
push esi
push ebx
push 9
push dword [ebp - 0xa8]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
cmp eax, ebx
jne 0x486257
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x26
je 0x486299
cmp eax, 0x7a
jne 0x486282
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0xc0]
call fcn.0043df7a
mov esi, dword [ebp - 0xc0]
jmp 0x4861f5
mov eax, dword [ebp - 0xac]
lea ebx, [esi + eax]
mov edi, esi
cmp esi, ebx
jae 0x4861f3
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4862c4
mov eax, dword [ecx]
push edi
call dword [eax + 4]
test al, al
je 0x4862c9
add edi, dword [edi]
cmp edi, ebx
jb 0x486266
jmp 0x4861f3
call edi
cmp eax, ebx
jle 0x486292
and eax, 0xffff
or eax, 0x80070000
push 0x2e
jmp 0x4861ac
cmp esi, ebx
je 0x4862a4
push esi
call fcn.00515a19
pop ecx
cmp dword [ebp - 0xa8], 0xffffffff
je 0x4862b9
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
jmp 0x4862f2
call fcn.00536082
test esi, esi
je 0x4862d4
push esi
call fcn.00515a19
pop ecx
cmp dword [ebp - 0xa8], 0xffffffff
je 0x4862e9
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x486305
mov eax, dword [ecx]
lea edx, [ebp + 8]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call dword [eax + 0xc]
call fcn.00523d1a
ret
Function at 0x486514
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x21c], edi
call fcn.00517e90
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
cmp edx, edi
jge 0x486576
push 0x18
mov eax, str.srcClientPaths.cpp
call fcn.0042ca65
lea eax, [ebp - 0x218]
push eax
call fcn.0040338f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051497f
leave
ret
Function at 0x4875f0
Capabilities:
Read file via mapping

Disassembly:
push 0x40
mov eax, 0x55eb10
call fcn.00523c2e
push str.AA45D379_DBB1_4AF4_833B_39E697EDCCA4
xor ebx, ebx
push ebx
push 4
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x18], eax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x487641
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x487630
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0x95
mov eax, str.srcClientRpc.cpp
call fcn.0042ca65
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x487671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x487668
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0xa1
jmp 0x487637
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x48769f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x487696
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0xac
jmp 0x487637
mov eax, dword [ebp - 0x40]
shr eax, 1
lea ecx, [ebp - 0x1c]
inc eax
push ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004276c3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
mov ecx, eax
and ecx, edi
sub eax, ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call fcn.00517f10
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
mov esi, dword [ebp + 8]
call fcn.0040338f
lea esi, [ebp - 0x30]
mov dword [ebp - 0x20], edi
call fcn.00426e9d
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0xffffffff
je 0x48770a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.00523d06
ret

Function at 0x48795a
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0x55a402
call fcn.00523c97
and dword [ebp - 0x258], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov esi, ecx
call fcn.00517e90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4879c8
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x238]
call fcn.0040338f
and dword [ebp - 4], 0
push 0x12
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
call fcn.004025fb
push 0x5a2b8c
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x487a01
push str.PathCombineW_failed
lea esi, [ebp - 0x254]
call fcn.0040338f
mov dword [ebp - 4], 1
push 0x16
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
jmp 0x4879c3
lea eax, [ebp - 0x21c]
push eax
call fcn.0040338f
mov eax, esi
call fcn.00523d1a
ret
Function at 0x488820
Capabilities:
Get common file path

Disassembly:
push 0x320
mov eax, 0x55a2a2
call fcn.00523ccd
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x280], edx
xor edx, edx
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x10], edx
jne 0x488882
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x268], str.File_path_must_not_be_empty
call fcn.00515200
push 0x5c9800
lea eax, [ebp - 0x28c]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::invalid_argument.0
call fcn.0051ed55
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], edx
push eax
mov dword [ebp - 4], edx
push ebx
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00488bcf
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x278]
cmp eax, edi
je 0x4888e1
mov esi, eax
call fcn.00426e9d
mov eax, dword [edi]
mov dword [ebp - 0x278], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x274], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x270], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea esi, [ebp - 0x23c]
call fcn.00426e9d
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x208
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push edi
push eax
call fcn.00517e90
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push edi
push edi
push 0x28
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x268], eax
cmp eax, edi
jge 0x4889bc
lea eax, [ebp - 0x32c]
push eax
call fcn.004036c8
mov esi, eax
push str.GFE::Feedback::Builder::AddFile:_SHGetFolderPath_failed_with
push esi
mov byte [ebp - 4], 6
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x268]
push esi
call fcn.00410478
lea eax, [ebp - 0x248]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 7
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x488981
lea eax, [ebp - 0x248]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x248]
call fcn.00404145
lea eax, [ebp - 0x32c]
mov byte [ebp - 4], 0
call fcn.00402669
lea esi, [ebp - 0x278]
call fcn.00426e9d
call fcn.00523d29
ret 0xc
push ebx
lea esi, [ebp - 0x264]
call fcn.0040d93e
lea eax, [ebp - 0x22c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0040ff8d
pop ecx
test al, al
je 0x488a04
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4889e8
sub eax, edx
sar eax, 1
push 0xd
lea ecx, [ebp - 0x264]
call fcn.0040ec73
push dword [ebp - 0x280]
mov eax, dword [ebp - 0x274]
sub eax, dword [ebp - 0x278]
lea edx, [ebp - 0x264]
push eax
push dword [ebp - 0x278]
push dword [ebp - 0x27c]
call fcn.00489022
push 1
xor edi, edi
lea esi, [ebp - 0x264]
call fcn.00404145
jmp 0x4889a9
Function at 0x48e571
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x48e579
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x48e5d1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48e5e3
shr eax, 4
and al, 1
ret
xor al, al
ret

Function at 0x48e5e6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55675c
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.0051fee0
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x5a3dac
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x2000
lea eax, [ebp - 0x2018]
push 0
push eax
mov dword [ebp - 0x2038], 0x5c
movsw word es:[edi], word [esi]
call fcn.00517e90
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
lea eax, [ebp - 0x2018]
push 0x1000
push eax
call fcn.005184a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.00515066
add esp, 0x18
push 0x584a64
lea esi, [ebp - 0x2034]
mov edi, eax
call fcn.0040338f
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x48e6fe
push edi
lea eax, [ebp - 0x2034]
push eax
call fcn.0040d964
cmp dword [ebp - 0x2024], esi
jbe 0x48e6dd
lea eax, [ebp - 0x2034]
call fcn.0048e571
test al, al
je 0x48e6bc
lea eax, [ebp - 0x2034]
call fcn.0048e5c9
test al, al
jmp 0x48e6db
cmp dword [ebp - 0x2020], 8
mov eax, dword [ebp - 0x2034]
jae 0x48e6d1
lea eax, [ebp - 0x2034]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x48e715
lea eax, [ebp - 0x2038]
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.0040d964
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00515066
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x48e689
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00404145
mov al, 1
jmp 0x48e726
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00404145
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051497f
leave
ret
Function at 0x490e4e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x4a8
mov eax, 0x5655c9
call fcn.00523c97
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x380], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x374], eax
setne al
movzx eax, al
push 0x1e1
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x37c], esi
call fcn.0049231b
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x378]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x378], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x490f34
lea eax, [ebp - 0x41c]
push eax
call fcn.004036c8
mov esi, eax
push str.RegQueryInfoKey_failed_with
push esi
mov dword [ebp - 4], 1
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.00410478
lea eax, [ebp - 0x24c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 2
cmp edi, ebx
jle 0x490f03
and edi, 0xffff
or edi, 0x80070000
push 1
push 0x1f7
push str.srcwindows_registry.cpp
push edi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0049844a
push 0x5c983c
lea eax, [ebp - 0x36c]
push eax
call fcn.0051ed55
mov edi, dword [ebp - 0x374]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x380], 1
mov dword [ebp - 0x370], ebx
cmp dword [ebp - 0x378], ebx
ja 0x490f6d
mov eax, edi
call fcn.00523d1a
ret 4
mov esi, dword [ebp - 0x37c]
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x370]
mov dword [ebp - 0x384], 0x100
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x490f5d
cmp esi, ebx
jne 0x491003
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.0040338f
mov dword [ebp - 4], 5
mov edi, dword [ebp - 0x374]
mov ecx, esi
call fcn.0040de6b
push 1
xor edi, edi
mov byte [ebp - 4], bl
call fcn.00404145
inc dword [ebp - 0x370]
mov eax, dword [ebp - 0x370]
mov edi, dword [ebp - 0x374]
cmp eax, dword [ebp - 0x378]
jb 0x490f67
jmp 0x490f5d
lea eax, [ebp - 0x4b4]
push eax
call fcn.004036c8
mov edi, eax
push str.RegEnumKeyEx_failed_with
push edi
mov dword [ebp - 4], 3
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.00410478
lea eax, [ebp - 0x230]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 4
cmp esi, ebx
jle 0x49104e
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x21a
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0049844a
push 0x5c983c
lea eax, [ebp - 0x2dc]
jmp 0x490f2e