joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c4e9
Capabilities:
Get common file path
Terminate process

Disassembly:
push 0x454
mov eax, 0x59f61f
call fcn.0056beab
xor eax, eax
mov edi, 0x206
xor ebx, ebx
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 0x441], bl
call fcn.0055fda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42c54a
push str.GetSystemDirectory_failed.
push 2
pop ecx
call fcn.0047feaf
pop ecx
xor al, al
jmp 0x42c725
lea eax, [ebp - 0x44c]
push eax
mov dword [ebp - 0x44c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x42c56f
push str.IsWow64Process_failed.
jmp 0x42c53a
lea eax, [ebp - 0x21c]
push eax
lea esi, [ebp - 0x440]
call fcn.004037ae
push str._nvcoproc.bin
mov eax, esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040dc78
cmp dword [ebp - 0x44c], 1
jne 0x42c6da
xor eax, eax
push edi
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.0055fda0
add esp, 0xc
push str.kernel32.dll
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x42c5f7
push str.PathCombine_failed.
push 2
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x440]
call fcn.00404589
jmp 0x42c543
lea eax, [ebp - 0x424]
call fcn.00401133
mov edi, eax
mov dword [ebp - 0x460], edi
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x42c619
push str.Failed_to_load_kernel32.dll.
jmp 0x42c5da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push edi
call esi
mov dword [ebp - 0x450], eax
cmp eax, ebx
jne 0x42c64b
push str.Wow64RevertWow64FsRedirection_not_supported.
push 2
pop ecx
call fcn.0047feaf
pop ecx
push edi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42c5e3
push str.Wow64DisableWow64FsRedirection
push edi
call esi
cmp eax, ebx
jne 0x42c65e
push str.Wow64DisableWow64FsRedirection_not_supported.
jmp 0x42c636
lea ecx, [ebp - 0x448]
push ecx
mov dword [ebp - 0x448], ebx
call eax
cmp eax, 1
jne 0x42c6ce
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00482edd
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x454]
call fcn.00483248
push dword [ebp - 0x448]
mov byte [ebp - 0x441], al
call dword [ebp - 0x450]
test eax, eax
jne 0x42c6bf
push str.Enabling_back_Wow64_redirection_failed._Exiting.
xor ecx, ecx
call fcn.0047feaf
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 1
call fcn.00482f34
push edi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42c710
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00482edd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x454]
call fcn.00483248
lea ecx, [ebp - 0x45c]
mov byte [ebp - 0x441], al
mov byte [ebp - 4], bl
call fcn.00482f34
push 1
xor edi, edi
lea esi, [ebp - 0x440]
call fcn.00404589
mov al, byte [ebp - 0x441]
call fcn.0056bf2e
ret
Function at 0x432685
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a355c
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x174], eax
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x4326d0
mov eax, dword [edi]
jmp 0x4326d2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x432763
lea eax, [esp + 0xac]
push eax
call fcn.00403aba
mov esi, eax
and dword [esp + 0x190], 0
push str.Feedback_erased:
push esi
call fcn.0040635f
push esi
mov ecx, edi
call fcn.00411d36
add esp, 0xc
lea eax, [esp + 0x164]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x190], 1
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x43273d
lea eax, [esp + 0x164]
push eax
push 3
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.00404589
lea eax, [esp + 0xac]
jmp 0x4327fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
call fcn.00403aba
mov esi, eax
push str.Cannot_erase_file
push esi
mov dword [esp + 0x198], 2
call fcn.0040635f
push esi
mov ecx, edi
call fcn.00411d36
add esp, 0xc
push 0x5ca284
push esi
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x10]
push esi
call fcn.004109e7
lea eax, [esp + 0x148]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x190], 3
cmp dword [esp + 0x15c], 8
mov eax, dword [esp + 0x148]
jae 0x4327e0
lea eax, [esp + 0x148]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x14c]
call fcn.00404589
lea eax, [esp + 0x14]
or dword [esp + 0x190], 0xffffffff
call fcn.004027ed
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
Function at 0x439d14
Capabilities:
Get geographical location

Disassembly:
push 4
mov eax, 0x5a72af
call fcn.0056be42
mov edi, ecx
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call fcn.004739f7
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
setne byte [ebp - 0x10]
mov dword [ebx], vtable.GFESUGARClient.0
mov dword [ebx + 0xb4], esi
push 8
push dword [ebp - 0x10]
mov dword [ebx + 0xb8], edi
mov edi, str.srcGeoLocation.cpp
call fcn.0047f667
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0xc0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0xc4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0xc8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0xcc], eax
pop ecx
mov dword [ebx + 0xd0], esi
mov word [ebx + 0xd4], 1
mov byte [ebx + 0xd6], 0
pop ecx
lea esi, [ebx + 0xdc]
mov byte [ebx + 0xd8], 0
call fcn.0047ef18
push 0x26
push dword [ebp - 0x10]
mov edi, str.srcGFESugarClient.cpp
mov byte [ebp - 4], 1
call fcn.0047f667
xor esi, esi
cmp dword [ebp + 0xc], esi
push 0x27
setne al
movzx eax, al
push eax
call fcn.0047f667
cmp dword [ebp + 0x18], esi
push 0x28
setne al
movzx eax, al
push eax
call fcn.0047f667
cmp dword [ebp + 0x14], esi
push 0x29
setne al
movzx eax, al
push eax
call fcn.0047f667
cmp dword [ebp + 0x10], esi
push 0x2a
setne al
movzx eax, al
push eax
call fcn.0047f667
add esp, 0x28
mov eax, ebx
call fcn.0056bf1a
ret 0x20
Function at 0x445634
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x59a50e
call fcn.0056beab
mov ebx, ecx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x34], ebx
je 0x445724
cmp byte [ebx + 0x49], 0
je 0x445724
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x44566c
xor al, al
jmp 0x445726
push 0
push 8
pop edi
lea esi, [ebp - 0x2c]
call fcn.0044538e
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4456c3
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push eax
push edx
push dword [ebp - 0x38]
call dword [esi + 0x18]
xor edi, edi
sub eax, edi
je 0x4456c8
dec eax
je 0x4456cc
dec eax
dec eax
je 0x445720
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040443a
mov al, bl
jmp 0x445726
mov edx, dword [ebp - 0x2c]
jmp 0x445691
mov byte [ebx + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4456d8
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x4456fe
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4456eb
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.0055eaea
add esp, 0x10
cmp esi, eax
jne 0x4456b2
cmp byte [ebx + 0x49], 0
je 0x445720
cmp esi, edi
jne 0x445683
push edi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.004042b1
mov ebx, dword [ebp - 0x34]
jmp 0x445683
mov bl, 1
jmp 0x4456b4
mov al, 1
call fcn.0056bf2e
ret

Function at 0x44630b
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push edi
xor edx, edx
push 0xa
mov eax, ecx
pop ebx
div ebx
xor edi, edi
mov dword [ebp - 4], 0x811c9dc5
inc eax
test ecx, ecx
je 0x44634f
cmp dword [esi + 0x14], 0x10
jb 0x446335
mov edx, dword [esi]
jmp 0x446337
mov edx, esi
mov ebx, dword [ebp - 4]
movsx edx, byte [edx + edi]
imul ebx, ebx, 0x1000193
xor edx, ebx
add edi, eax
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x44632b
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
mov eax, ecx
and eax, dword [ebp - 4]
pop edi
pop ebx
cmp dword [edx + 0x24], eax
ja 0x44636a
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
leave
ret 4
Function at 0x44fa69
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x5b6dc7
call fcn.0056beab
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 0x44fb9e
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
je 0x44fb9e
cmp eax, 0xffffffff
je 0x44fb9e
cmp eax, ebx
je 0x44fb9e
push 3
pop edi
push edi
call fcn.0047fd46
push 0x20
call fcn.0055db17
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x44faf5
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.004107aa
jmp 0x44faf7
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
call fcn.0047fe38
lea eax, [ebp - 0x2c]
push eax
call fcn.0046e575
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
mov eax, esi
mov dword [ebp - 4], edi
call fcn.004888a0
mov byte [ebp - 4], 4
call fcn.0047fd9d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
jae 0x44fb31
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 0x44fb69
xor ebx, ebx
inc ebx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404589
push 1
lea esi, [ebp - 0x2c]
call fcn.00404589
mov eax, ebx
jmp 0x44fba1
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 0x44fb80
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 0x44fb4f
jmp 0x44fb4c
xor eax, eax
inc eax
call fcn.0056bf2e
ret
Function at 0x451608
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6dac
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x631350]
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.0047f69c
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.00453d48
add esp, 0xc
mov esi, eax
mov byte [esp + 0x38], 1
cmp esi, edi
jae 0x4516be
cmp dword [esp + 0x1c], esi
ja 0x4516be
sub esi, dword [esp + 0x1c]
sar esi, 2
cmp edi, dword [esp + 0x24]
jne 0x4516aa
lea ecx, [esp + 0x1c]
call fcn.00453a88
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea eax, [eax + esi*4]
test edi, edi
je 0x4516dc
mov ecx, dword [eax]
and dword [eax], 0
mov dword [edi], ecx
jmp 0x4516dc
cmp edi, dword [esp + 0x24]
jne 0x4516d1
lea ecx, [esp + 0x1c]
call fcn.00453a88
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4516dc
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 0x4516f6
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi - 4]
call fcn.0047f8bf
dec dword [esp + 0x14]
jne 0x45166a
xor esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
call fcn.0047fa95
inc esi
cmp esi, 3
jb 0x45170a
or dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x451749
mov esi, ebx
cmp ebx, edi
je 0x451742
mov ecx, dword [esi]
test ecx, ecx
je 0x45173b
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 4
cmp esi, edi
jne 0x45172f
push ebx
call fcn.0055da69
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 0x464c07
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a47e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x631350]
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
push dword [ebp + 8]
call fcn.00464c7b
push dword [ebp + 0xc]
and dword [esp + 0x3c], 0
mov esi, eax
call fcn.00465097
pop ecx
lea esi, [esp + 0x1c]
call fcn.0043460f
lea esi, [esp + 0xc]
call fcn.0043460f
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4667de
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5acc9c
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea ebx, [esp + 0xb0]
call fcn.00466920
and dword [esp + 0xf8], 0
mov eax, ebx
call fcn.00483248
test al, al
je 0x4668ec
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x466854
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4668ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call fcn.00403aba
mov esi, eax
push str.Cannot_delete_ShadowPlayStatistics_file:
push esi
mov byte [esp + 0x100], 1
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [esp + 0xcc]
push eax
mov eax, esi
call fcn.00403b24
push 2
pop ecx
mov byte [esp + 0xf8], cl
cmp dword [esp + 0xe0], 8
mov eax, dword [esp + 0xcc]
jae 0x4668c4
lea eax, [esp + 0xcc]
push eax
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd0]
call fcn.00404589
lea eax, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.004027ed
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.00404589
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.0055c9d4
mov esp, ebp
pop ebp
ret
Function at 0x475cf9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x631350]
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.0055fda0
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 0x475d5b
push 0x18
mov eax, str.srcClientPaths.cpp
call fcn.00402807
lea eax, [ebp - 0x218]
push eax
call fcn.004037ae
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055c9d4
leave
ret
Function at 0x476d28
Capabilities:
Read file via mapping

Disassembly:
push 0x40
mov eax, 0x5a63ac
call fcn.0056be42
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 0x476d79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x476d68
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0x95
mov eax, str.srcClientRpc.cpp
call fcn.00402807
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 0x476da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x476da0
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0xa1
jmp 0x476d6f
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x476dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x476dce
and eax, 0xffff
or eax, 0x80070000
mov edx, eax
push 0xac
jmp 0x476d6f
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.0042fbac
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.0055fe20
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.004037ae
lea esi, [ebp - 0x30]
mov dword [ebp - 0x20], edi
call fcn.0043460f
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0xffffffff
je 0x476e42
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.0056bf1a
ret

Function at 0x476e4b
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0x5a2065
call fcn.0056beab
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.0055fda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x476eb9
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x238]
call fcn.004037ae
and dword [ebp - 4], 0
push 0x12
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
call fcn.0040277f
push 0x5e181c
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x476ef2
push str.PathCombineW_failed
lea esi, [ebp - 0x254]
call fcn.004037ae
mov dword [ebp - 4], 1
push 0x16
mov ecx, str.srcClientCommon_MergeWhitelist.cpp
mov eax, esi
jmp 0x476eb4
lea eax, [ebp - 0x21c]
push eax
call fcn.004037ae
mov eax, esi
call fcn.0056bf2e
ret
Function at 0x477c3f
Capabilities:
Get common file path

Disassembly:
push 0x314
mov eax, 0x5a1fc7
call fcn.0056bee1
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x10], esi
jne 0x477c9a
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x264], str.File_path_must_not_be_empty
call fcn.0055d255
push 0x607704
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::invalid_argument.0
call fcn.00566ed2
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
push eax
mov dword [ebp - 4], esi
push ebx
lea edi, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.004794ce
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x274]
cmp eax, edi
je 0x477cfb
mov esi, eax
call fcn.0043460f
mov eax, dword [edi]
mov dword [ebp - 0x274], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x270], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x26c], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor esi, esi
cmp dword [ebp - 0x238], esi
je 0x477d0f
push dword [ebp - 0x238]
call fcn.0055da69
pop ecx
xor eax, eax
mov dword [ebp - 4], esi
push 0x208
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push esi
push eax
call fcn.0055fda0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push 0x28
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jge 0x477ddd
lea eax, [ebp - 0x320]
push eax
call fcn.00403aba
mov esi, eax
push str.GFE::FeedbackBuilder::AddFile:_SHGetFolderPath_failed_with
push esi
mov byte [ebp - 4], 6
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004108f3
lea eax, [ebp - 0x244]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 7
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x244]
jae 0x477d99
lea eax, [ebp - 0x244]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x244]
call fcn.00404589
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0
call fcn.004027ed
cmp dword [ebp - 0x274], edi
je 0x477dd5
push dword [ebp - 0x274]
call fcn.0055da69
pop ecx
call fcn.0056bf3d
ret 8
push ebx
lea esi, [ebp - 0x260]
call fcn.0040dc52
lea eax, [ebp - 0x228]
push eax
lea esi, [ebp - 0x244]
mov byte [ebp - 4], 8
call fcn.004037ae
push ebx
call fcn.00410505
pop ecx
push 1
xor edi, edi
mov bl, al
call fcn.00404589
test bl, bl
je 0x477e3a
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477e1e
sub eax, edx
sar eax, 1
push 0xd
lea ecx, [ebp - 0x260]
call fcn.0040ecd2
mov ebx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
sub eax, ebx
push eax
push ebx
push dword [ebp - 0x264]
lea edx, [ebp - 0x260]
call fcn.00477f90
push 1
xor edi, edi
lea esi, [ebp - 0x260]
call fcn.00404589
test ebx, ebx
je 0x477dd5
push ebx
jmp 0x477dcf