joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1ad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a68ed
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.16_tKGlobalInfoCollectReg::init_tEnableNetworkPrompt
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallkglobalinfocollectreg.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
xor esi, esi
mov byte [edi], 1
add esp, 0x10
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x2001f
push esi
push str.SoftwarekingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d1b50
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
test eax, eax
jne 0x4d1bc6
cmp dword [0x60e7f4], 8
lea ecx, [ebp - 0x10]
push ecx
mov eax, 0x60e7e0
mov dword [ebp - 0x10], 4
cmovae eax, dword [0x60e7e0]
lea ecx, [ebp - 0x14]
add edi, 4
push edi
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x60e7f8]
test eax, eax
jne 0x4d1b9c
cmp dword [ebp - 0x14], 4
jne 0x4d1b9c
cmp dword [edi], ecx
je 0x4d1be2
cmp dword [0x60e7f4], 8
mov eax, 0x60e7e0
push 4
cmovae eax, dword [0x60e7e0]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4d1be2
push str.35_tKGlobalInfoCollectReg::init_tfail_to_open_HKCU:SoftwarekingsoftOffice6.0Common_reg
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallkglobalinfocollectreg.cpp
push str._WARNING_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x10
test esi, esi
je 0x4d1bed
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d1f00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push str.189_tKClearDataRemanence::clear_tKClearDataRemanence::Clear
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallkcleardataremanence.cpp
push str._INFO_
push 0x63cbb0
mov esi, ecx
call fcn.0046bb20
add esp, 0x10
mov ecx, esi
call fcn.004d1f30
mov ecx, esi
pop esi
jmp fcn.004d2310
Function at 0x4d48f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x18]
push 0x208
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0055c530
add esp, 0xc
mov dword [ebp - 0x210], 0x208
cmp dword [ebx + 0x14], 8
jb 0x4d494f
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x4d4957
mov edi, dword [edi]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push edi
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, esi
test eax, eax
je 0x4d4999
push dword [ebp - 0x214]
call fcn.0043f9e0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e2d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x4dec60
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x63d248], 0
jne 0x4dec6e
call fcn.004f3220
cmp byte [0x63d251], 0
je 0x4dec8c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004f3850
add esp, 0x10
ret
jmp fcn.004dcfe0
Function at 0x4deda0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a77ad
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x63434c]
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 esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4def3a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov ebx, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x24]
mov edi, eax
mov ecx, ebx
mov eax, dword [ebx]
add edi, edi
call dword [eax + 0x20]
mov ebx, dword [esi + 0x14]
add eax, edi
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x64], edi
cmp edi, eax
je 0x4dee88
test eax, eax
jne 0x4dee3e
xor ecx, ecx
jmp 0x4dee4c
push eax
call fcn.004d7c90
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x58]
cmp eax, edi
mov dword [ebp - 0x54], ecx
mov edx, edi
cmovb edx, eax
test ebx, ebx
je 0x4dee6d
test ecx, ecx
je 0x4dee6d
test edx, edx
je 0x4dee6d
push edx
push ebx
push ecx
call fcn.0055bfb0
add esp, 0xc
mov ecx, dword [ebp - 0x64]
xor al, al
mov edi, ebx
rep stosb byte es:[edi], al
push ebx
call fcn.00402a50
mov ebx, dword [ebp - 0x54]
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov edi, dword [ebp - 0x68]
mov dword [esi + 0x14], ebx
mov ebx, dword [ebp - 0x60]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 0xffffffff
cmp edi, ebx
ja 0x4deeb0
push edi
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.0055bfb0
add esp, 0xc
jmp 0x4deecf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
push edi
push dword [ebp - 0x5c]
mov ecx, eax
mov edx, dword [eax]
push dword [esi + 0x14]
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
mov ecx, ebx
sub ecx, edi
push ecx
mov ecx, dword [esi + 0x14]
add ecx, edi
push 0
push ecx
call fcn.0055c530
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x4def1c
nop word [eax + eax]
mov eax, dword [esi + 0x14]
mov ecx, esi
mov bl, byte [eax + edi]
mov eax, dword [esi]
xor bl, 0x5c
call dword [eax + 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov ecx, dword [esi + 0x14]
add ecx, eax
mov byte [ecx + edi], bl
mov eax, dword [esi + 0x14]
xor byte [eax + edi], 0x36
inc edi
cmp edi, dword [ebp - 0x60]
jb 0x4deef0
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.00557e89
mov esp, ebp
pop ebp
ret 0xc
push 0x5c9c38
lea ecx, [ebp - 0x28]
call fcn.004ab220
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.004abd30
push 0x5fffe8
lea eax, [ebp - 0x50]
push eax
call fcn.0055ca0e
int3
Function at 0x4f19a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x63434c]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
call fcn.004d5710
push 0xffffffffffffffff
push dword [0x60e800]
xorps xmm0, xmm0
mov dword [esp + 0x34], vtable.CryptoPP::ByteQueue::Walker.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], vtable.CryptoPP::ByteQueue::Walker.1.0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.004d6cb0
push dword [ebx + 4]
lea ecx, [esp + 0x30]
push dword [ebx]
call fcn.004d7210
mov eax, dword [esp + 0x6c]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x70]
mov edi, eax
sbb ecx, dword [ebx + 4]
mov ebx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov esi, ebx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4f1ad0
mov ebp, dword [esp + 0x4c]
nop word [eax + eax]
mov esi, dword [ecx + 0x18]
xor eax, eax
sub esi, dword [ecx + 0x14]
sub esi, ebp
sbb eax, eax
cmp eax, ebx
ja 0x4f1a76
jb 0x4f1a78
cmp esi, edi
jb 0x4f1a78
mov esi, edi
mov eax, dword [esp + 0x10]
push dword [esp + 0x78]
push 0
mov eax, dword [eax]
push esi
mov edx, dword [eax + 0x8c]
mov eax, dword [ecx + 0x10]
add eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, ebp
push eax
push dword [esp + 0x24]
call edx
mov edx, eax
test edx, edx
jne 0x4f1b10
add dword [esp + 0x44], esi
adc dword [esp + 0x48], eax
sub edi, esi
sbb ebx, eax
mov eax, edi
or eax, ebx
je 0x4f1b10
mov eax, dword [esp + 0x3c]
xor ebp, ebp
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ebp
test ecx, ecx
jne 0x4f1a60
mov ebp, dword [esp + 0x10]
jmp 0x4f1ad6
xor edx, edx
or eax, esi
je 0x4f1b10
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4f1b10
xor eax, eax
cmp eax, ebx
ja 0x4f1aea
jb 0x4f1aec
cmp esi, edi
jb 0x4f1aec
mov esi, edi
push dword [esp + 0x78]
mov eax, dword [ebp]
mov ecx, ebp
push 0
push esi
push dword [esp + 0x5c]
push dword [esp + 0x24]
call dword [eax + 0x8c]
mov edx, eax
test edx, edx
jne 0x4f1b10
sub edi, esi
sbb ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
sub ecx, edi
pop edi
sbb esi, ebx
add dword [eax], ecx
mov ecx, dword [esp + 0x58]
adc dword [eax + 4], esi
mov eax, edx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00557e89
add esp, 0x50
ret 0x18
Function at 0x4f4c30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597240
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00402a50
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4f4c87
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4f4c98
push 0x3c
push esi
call fcn.00558004
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4fa7e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8a6e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ecx], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0xf
mov byte [esi + 0x58], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xf
mov byte [esi + 0x70], 0
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea eax, [edx + 1]
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4fa8d1
sub edx, dword [ebp + 8]
push edx
push edi
call fcn.004385d0
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4fa8f0
sub edx, ecx
lea ecx, [esi + 0x58]
push edx
push edi
call fcn.004385d0
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4fa910
sub edx, ecx
lea ecx, [esi + 0x70]
push edx
push edi
call fcn.004385d0
mov eax, esi
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 0x4fa940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8aa8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xf
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx], vtable.TiXmlDocument.0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0xf
mov byte [ecx + 0x48], 0
mov dword [ecx + 0x68], 0xffffffff
lea edx, [ecx + 0x48]
mov dword [ecx + 0x64], 0xffffffff
mov dword [ecx + 0x60], 4
mov byte [ecx + 0x6c], 0
mov byte [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
cmp dword [ecx + 0x5c], 0x10
jb 0x4faa0d
mov edx, dword [ecx + 0x48]
mov dword [ecx + 0x58], 0
mov eax, ecx
mov byte [edx], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x501a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a900c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x501a94
mov dword [ebx], 0x5cbe30
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 8], esi
call fcn.00501830
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00557fd4
mov esi, eax
add esp, 4
test esi, esi
je 0x501aee
push 1
mov byte [ebp - 4], 2
call fcn.005598ab
add esp, 4
mov dword [esi + 4], eax
jmp 0x501af0
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x511ca0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa265
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x63434c]
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, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.00518dd0
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00438a20
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x511d32
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x511d28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511e80
push edx
push ecx
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0042e2d0
push 0x208
mov byte [ebp - 4], 4
call fcn.00558012
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x5b3734
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511dc0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0042e2d0
push edi
call fcn.0055801b
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x511e17
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x511e0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511e85
push edx
push ecx
call fcn.00558004
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x511e61
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x511e57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511e85
push edx
push ecx
call fcn.00558004
add esp, 8
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.00557e89
mov esp, ebp
pop ebp
ret 4
call fcn.00566a14
call fcn.00566a14
int3
Function at 0x512d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x512edf
push str._ntdll.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0056b327
add esp, 0xc
call fcn.0046a2d0
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x512dda
mov ecx, esi
call fcn.0046a110
test eax, eax
je 0x512dda
push 0x5ba4f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x512edf
push 0
lea ecx, [ebp - 0x20c]
push ecx
call eax
mov ebx, eax
test ebx, ebx
je 0x512edf
push edi
push ebx
call fcn.00558012
add esp, 4
mov esi, eax
call fcn.0046a2d0
mov edi, eax
cmp dword [edi + 8], 0
jne 0x512e2d
mov ecx, edi
call fcn.0046a110
test eax, eax
je 0x512e2d
push 0x5ba4e4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
pop edi
test eax, eax
je 0x512ed6
push esi
push ebx
push 0
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
je 0x512ed6
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x5b4804
push esi
call fcn.0051a470
add esp, 0x10
test eax, eax
je 0x512ed6
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
push esi
movzx eax, word [ecx + 0x12]
mov dword [edx], eax
movzx eax, word [ecx + 0x10]
mov edx, dword [ebp - 0x21c]
mov dword [edx], eax
movzx eax, word [ecx + 0x16]
mov edx, dword [ebp - 0x220]
mov dword [edx], eax
movzx eax, word [ecx + 0x14]
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
call fcn.0055801b
add esp, 4
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
push esi
call fcn.0055801b
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x514220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2c], eax
lea edi, [ecx + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x514260
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0042e2d0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x514307
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x514307
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x514355
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51434b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x514367
jmp 0x51434b
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x5142d4
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x514347
cmp eax, 2
jne 0x5142d4
xor esi, esi
jmp 0x5142d9
push edx
push ecx
call fcn.00558004
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3

Function at 0x514530
Capabilities:
Set 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 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x514564
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x514572
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x14], 8
lea eax, [eax*2 + 2]
jb 0x514588
mov esi, dword [esi]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret