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

Disassembly:
push 0x24
mov eax, 0x531309
call fcn.00498d88
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x408098
cmp byte [ebx + 0x3e], 0
je 0x408098
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
sete al
test al, al
je 0x407fd2
xor al, al
jmp 0x40809a
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00407baf
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x408030
sub eax, 1
je 0x408034
dec eax
sub eax, 1
je 0x408086
xor bl, bl
jmp 0x408088
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x40806c
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004de5b7
add esp, 0x10
cmp esi, eax
jne 0x40802c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x408086
test esi, esi
jne 0x407ff6
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407d0c
jmp 0x407ff0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c36
mov al, bl
jmp 0x40809a
mov al, 1
call fcn.00498d32
ret
Function at 0x41b7cb
Capabilities:
Accept command line arguments

Disassembly:
push 0xd8
mov eax, 0x5335e8
call fcn.00498d88
mov edi, ecx
mov dword [ebp - 0x44], edi
xor edx, edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x41b7fb
mov eax, dword [edi]
jmp 0x41b7fd
mov eax, edi
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edx
inc ebx
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x41b8af
push ebx
push 2
lea ecx, [ebp - 0xe4]
call fcn.00405b93
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], ebx
push str.couldnt_convert_command_line_to_argv
push eax
call fcn.0040b48c
pop ecx
pop ecx
push str.AdAwareWebInstaller::CommandLine::Parameters
lea ecx, [ebp - 0x28]
call fcn.0040533b
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xe4]
call fcn.00405b34
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0041ca57
push esi
push 0xfa0
push 0x50
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [eax + 4]
call fcn.0040446d
push 0
push ebx
lea ecx, [ebp - 0x40]
call fcn.00401a2d
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401c36
lea ecx, [ebp - 0xe4]
call fcn.00403f0a
jmp 0x41b8ef
cmp dword [ebp - 0x44], ebx
jle 0x41b8ef
push dword [esi + ebx*4]
call fcn.004016d7
pop ecx
push eax
push dword [esi + ebx*4]
mov ecx, edi
call fcn.00401b92
mov eax, dword [ebp - 0x44]
inc ebx
cmp ebx, eax
je 0x41b8ef
push 0x55a270
call fcn.004016d7
pop ecx
push eax
push 0x55a270
mov ecx, edi
call fcn.00401b92
mov eax, dword [ebp - 0x44]
cmp ebx, eax
jl 0x41b8b4
mov eax, edi
call fcn.00498d32
ret
Function at 0x4400e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537060
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push ecx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
je 0x4401a0
push 0x16
push str.Couldnt_get_file_size
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00407bfd
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0045b520
mov dword [ebp - 0x58], vtable.ExceptionHelper::Windows.0
mov dword [ebp - 0x4c], vtable.ExceptionHelper::Windows.1.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], vtable.boost::error_info_struct_ExceptionHelper::TagError__unsigned_long_int_.0
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0045a530
push 0x3a
push str...common_all_srcFile.cpp
push str.__int64___cdecl_FileSystemHelper::File::GetSize_void__
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.00418753
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret
Function at 0x4401c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5370ac
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
cmp dword [ecx + 0x14], 8
jb 0x4401f3
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 1
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x440221
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
push esi
call fcn.004404d0
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004021d0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004400e0
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
or edi, 0xffffffff
test esi, esi
je 0x440306
cmp esi, edi
je 0x440306
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
push esi
call fcn.00440560
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004021d0
add esp, 0xc
push ebx
push 0
push 0
push 4
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4402b8
xor bl, bl
jmp 0x4402d9
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00440350
mov eax, dword [ebp - 0x10]
push ebx
push esi
push dword [eax]
call fcn.004d2190
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x440308
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x440308
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x440308
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
jmp 0x440308
xor bl, bl
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x440335
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x440335
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lock xadd dword [esi + 8], edi
dec edi
jne 0x440335
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov al, bl
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 0x44c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [esi + 8], 1
test ecx, ecx
jne 0x44c56c
xor edx, edx
jmp 0x44c573
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add edx, ecx
mov dword [esi + 0x10], edx
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov ecx, edx
mov eax, dword [edx + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x38]
mov dword [esi + 0x34], eax
movzx eax, word [edx + 0x40]
mov word [esi + 0x38], ax
lea eax, [esi + 0x3c]
push eax
call fcn.00403226
push dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [esi + 0xc], 0x11
call fcn.0044c640
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44e6f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jb 0x44e713
mov edx, dword [edx]
push ebx
push esi
sub esp, 0x14
push edx
push ecx
lea ecx, [ebp - 0x10]
call fcn.0044e670
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x44e72d
xor bl, bl
jmp 0x44e756
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44e738
mov eax, dword [eax]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test esi, esi
je 0x44e761
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edx + 0x14], 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jb 0x44e793
mov edx, dword [edx]
push ebx
push edi
sub esp, 0x14
push edx
push ecx
lea ecx, [ebp - 0xc]
call fcn.0044e670
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x44e7ad
xor bl, bl
jmp 0x44e7fc
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x44e7b8
mov edx, dword [edx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x44e7c4
mov esi, dword [esi]
test edx, edx
jne 0x44e7cd
lea eax, [edx + 0xd]
jmp 0x44e7f6
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e7d2
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
sete bl
test edi, edi
je 0x44e807
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53816b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x56158c
mov dword [ebx + 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00403169
push 8
call fcn.00498000
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.004834b1
mov dword [esi + 4], eax
add esp, 8
lea eax, [ebx + 0x10]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [edi + 0x3c], 0
push eax
call fcn.00403226
push eax
mov dword [ebp - 4], 3
call fcn.0040c592
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4506a6
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4506a6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
push 0x20
call dword [eax + 0x30]
cmp dword [edi + 0x38], 0
mov word [edi + 0x40], ax
jne 0x4506cd
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00403169
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x60]
mov dword [edx + ebx - 4], eax
call fcn.00452950
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
Function at 0x450950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53820b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x56158c
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00403169
push 8
call fcn.00498000
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.004834b1
mov dword [esi + 4], eax
add esp, 8
lea eax, [ebx + 0x10]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [edi + 0x3c], 0
push eax
call fcn.00403226
push eax
mov dword [ebp - 4], 3
call fcn.0042bf20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x450a86
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x450a86
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
push 0x20
mov eax, dword [eax + 0x20]
call eax
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x450aae
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00403169
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x60]
mov dword [edx + ebx - 4], eax
call fcn.00452a40
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
Function at 0x452950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5383be
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00498000
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004834b1
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x452a12
mov eax, dword [eax]
push 2
push ecx
push eax
mov ecx, edi
call fcn.0040997d
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 8

Function at 0x452a40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5383ee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00498000
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004834b1
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x452b02
mov eax, dword [eax]
push 2
push ecx
push eax
mov ecx, edi
call fcn.0042aab9
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 8
Function at 0x457670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5386a8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], esi
mov dword [esi + 0x10], 0
jb 0x4576dd
mov eax, dword [esi]
jmp 0x4576df
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x234], 1
call fcn.004d2710
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x45777a
push 0x16
push str.SHGetFolderPath_FAILED
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
call fcn.00407bfd
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x25c]
call fcn.0045b520
push 0xe
push str...common_all_srcSpecial.cpp
push str.class_boost::filesystem::path___cdecl_PathHelper::Special::FolderPath_int_void__
push eax
mov byte [ebp - 4], 2
call fcn.004187e9
cmp word [ebp - 0x218], 0
jne 0x457788
xor ecx, ecx
jmp 0x4577a0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457791
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401a84
mov eax, esi
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.00497fef
mov esp, ebp
pop ebp
ret
Function at 0x457910
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x15c], ebx
xor esi, esi
lea edx, [ebx + 0x15]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x457933
lea edx, [ebp - 0x13c]
mov esi, 0x40
nop dword [eax]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x457970
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], eax
jmp 0x4579c6
mov edi, dword [ebp - 0x14c]
cmp ebx, 0x14
jae 0x4579e3
mov eax, edx
mov dword [ebp - 0x148], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x457a21
cmp ebx, 0x28
jae 0x4579f4
mov dword [ebp - 0x148], 0x6ed9eba1
jmp 0x457a1b
cmp ebx, 0x3c
jae 0x457a11
mov eax, esi
mov dword [ebp - 0x148], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x457a21
mov dword [ebp - 0x148], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 0x14c]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x144]
inc ebx
add edi, dword [ebp - 0x148]
add edi, eax
mov eax, dword [ebp - 0x154]
add edi, dword [ebp - 0x150]
mov dword [ebp - 0x154], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], edi
cmp ebx, 0x50
jb 0x4579c0
mov eax, dword [ebp - 0x158]
add eax, edi
mov edi, dword [ebp - 0x15c]
add dword [edi + 0xc], ecx
add dword [edi + 8], esi
add dword [edi + 4], edx
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, dword [ebp - 0x150]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
call fcn.00497fef
mov esp, ebp
pop ebp
ret