joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67dc08
Capabilities:
Receive http response

Disassembly:
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov esi, eax
mov ebx, eax
cmp ebx, 5
jge 0x67dd3d
cmp dword [edi + 0x24], 2
je 0x67dc3a
cmp dword [edi + 0x24], 4
je 0x67dc3a
cmp dword [edi + 0x24], 1
je 0x67dc3a
push eax
push dword [edi + 0x44]
push dword [edi + 0x44]
push dword [edi + 0x38]
jmp 0x67dc3e
push eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x67dcc2
push 0
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x67dd3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2f00
jne 0x67dc94
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Resending_the_data_to_the_server__s
call fcn.006778de
pop ecx
pop ecx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x67dcbc
cmp esi, 0x2eef
je 0x67dca4
cmp esi, 0x2f78
jne 0x67dcfc
push esi
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__S_as_the_error_code_received_is__d
call fcn.006778de
xor eax, eax
add esp, 0xc
cmp dword [edi + 0x48], eax
je 0x67dd04
inc ebx
jmp 0x67dc13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2eef
je 0x67dcda
cmp esi, 0x2ef1
jne 0x67dd0d
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__s
call fcn.006778de
xor eax, eax
pop ecx
pop ecx
cmp dword [edi + 0x48], eax
jne 0x67dd2a
mov dword [edi + 0x48], 1
jmp 0x67dc11
push esi
push str.InternetSendRequestEx_:__Error___WinHttpReceiveResponse______d
jmp 0x67dd30
mov dword [edi + 0x48], 1
jmp 0x67dd3d
mov ebx, 0x2f8f
cmp esi, ebx
jne 0x67dd2a
push ebx
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_ERROR_WINHTTP_SECURE_FAILURE_:_Secure_data_decode_warning_:__s___LastError____d
call fcn.006778de
add esp, 0xc
push ebx
jmp 0x67dd38
push esi
push str.InternetSendRequestEx_:__Error_in_WinHttpSendRequest_____d
call fcn.006778de
pop ecx
pop ecx
push esi
call fcn.0067e75e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x67dea9
Capabilities:
Set http header

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, str.Connection:_Keep_Alive
cmp dword [ebp + 4], ebx
jne 0x67dec5
mov eax, str.Connection:_close
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, 0x20000000
push edi
push 0xffffffffffffffff
push eax
push dword [ebp + 0x80]
call esi
test eax, eax
jne 0x67def3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_WinHttpAddRequestHeaders______d
jmp 0x67dfa3
cmp dword [ebp + 0x24], 5
jne 0x67df25
push edi
push 0xffffffffffffffff
push str.Content_Type:_multipart_form_data
push dword [ebp + 0x80]
call esi
test eax, eax
jne 0x67df25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_WinHttpAddRequestHeaders______d__n
call fcn.00677763
jmp 0x67dfa8
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x67dfb0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x67df33
sub esi, ecx
lea ecx, [esp + 0x10]
sar esi, 1
add esi, 0x15
mov edx, esi
call fcn.0067ef65
mov edi, dword [esp + 0x10]
push str.If_Modified_Since:
push esi
push edi
call fcn.005145bf
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
call fcn.00517586
add esp, 0xc
push edi
push str.DCInitializeHTTPHeaders_:__s
call fcn.006778de
pop ecx
pop ecx
push 0x20000000
push 0xffffffffffffffff
push edi
push dword [ebp + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x67dfb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_IF_MODIFIED_SINCE_WinHttpAddRequestHeaders______d
call fcn.006778de
pop ecx
pop ecx
push ebx
call fcn.0067e75e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x67dfbf
Capabilities:
Prepare http request

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
xor edx, edx
mov esi, edx
mov ecx, 0x750660
mov eax, dword [edi + 0x24]
cmp eax, 2
je 0x67e008
cmp eax, 4
je 0x67e008
cmp eax, 1
je 0x67e001
cmp eax, 6
je 0x67e001
cmp eax, 3
jne 0x67dff0
mov ecx, 0x76395c
jmp 0x67e00d
cmp eax, 7
jne 0x67dffc
mov ecx, 0x764068
jmp 0x67e00d
push 0xd
pop esi
jmp 0x67e00d
mov ecx, 0x769478
jmp 0x67e00d
mov ecx, 0x763ce8
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x30], edx
je 0x67e01d
or eax, 0x800000
mov dword [edi + 0x20], eax
push eax
push edx
push edx
push edx
push dword [edi + 0x34]
push ecx
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x80], eax
test eax, eax
jne 0x67e058
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPRequest_:__Error_in_WinHttpOpenRequest______d
call fcn.006778de
pop ecx
pop ecx
push esi
call fcn.0067e75e
jmp 0x67e081
mov ecx, edi
call fcn.0067de20
test eax, eax
jne 0x67e079
mov ecx, edi
call fcn.0067dea9
test eax, eax
jne 0x67e079
mov ecx, edi
call fcn.0067dd4a
test eax, eax
je 0x67e081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x67e08e
Capabilities:
Initialize winhttp library

Disassembly:
push 8
mov eax, 0x6a187b
call fcn.0049be25
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x54], esi
je 0x67e0c7
cmp dword [edi + 0x64], esi
je 0x67e0c7
cmp dword [edi + 0x68], esi
je 0x67e0c7
push dword [edi + 0x64]
push str.DCInitializeHTTPSession_:_Proxy_Server_Name_:__s
call fcn.006778de
pop ecx
pop ecx
push esi
push dword [edi + 0x68]
push dword [edi + 0x64]
push 3
jmp 0x67e0cc
push esi
push esi
push esi
push 1
push dword [0x7af114]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x7c], eax
cmp eax, esi
je 0x67e195
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x800
push eax
push 0x54
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x67e113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeHTTPSession_::_WinHttpSetOption_WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2____Failed_with_error___d
call fcn.00677869
pop ecx
jmp 0x67e11d
push str.InitializeHTTPSession_::_WinHttpSetOption_WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2____Succeeded
call fcn.00677869
pop ecx
push dword [edi + 0x28]
lea ecx, [ebp - 0x10]
call fcn.004514db
push esi
push str.cloudfront
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004513db
test eax, eax
je 0x67e151
push dword [edi + 0x2c]
push dword [edi + 0x28]
push str.Server_Name__s___Server_Port__d
call fcn.006778de
add esp, 0xc
movzx eax, word [edi + 0x2c]
push esi
push eax
push dword [edi + 0x28]
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x67e188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPSession_:__Error_in_WinHttpConnect______d
call fcn.006778de
pop ecx
pop ecx
push esi
call fcn.0067e75e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0044ec01
jmp 0x67e1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPSession_:__Error_in_WinHttpOpen______d
call fcn.006778de
pop ecx
pop ecx
push esi
call fcn.0067e75e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
call fcn.0049bdee
ret
Function at 0x67eee7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
mov dword [esp + 0x28], edi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
test ebp, ebp
je 0x67ef3f
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 1
call fcn.0050e2b0
pop ecx
pop ecx
push edi
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
jne 0x67ef47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00451497
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x67f22b
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x274
mov eax, dword [0x79b544]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
push 0x118
xor ebp, ebp
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.00506c70
add esp, 0xc
mov dword [esp + 0x3c], 0x11c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x14]
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.0067f40e
push 3
pop ebx
test al, al
je 0x67f299
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
jmp 0x67f2f9
cmp dword [esp + 0x40], 6
jne 0x67f2f9
cmp dword [esp + 0x44], 2
jne 0x67f2f9
push 1
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov edi, eax
mov esi, edx
lea eax, [esp + 0x160]
push ebp
push eax
call fcn.00506c70
add esp, 0xc
mov dword [esp + 0x15c], 0x11c
lea eax, [esp + 0x15c]
mov dword [esp + 0x164], ebx
push esi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x67f2f9
mov dword [esp + 0x44], ebx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x67f319
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x18]
push ecx
call eax
mov eax, dword [esp + 0x40]
mov cx, word [esp + 0x18]
cmp eax, 0xa
jne 0x67f343
xor ebx, ebx
cmp byte [esp + 0x156], 1
setne bl
add ebx, 0xd
jmp 0x67f3dc
cmp eax, 6
jne 0x67f3a5
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x67f362
xor ebx, ebx
cmp byte [esp + 0x156], 1
setne bl
add ebx, 0xb
jmp 0x67f3dc
cmp eax, 2
jne 0x67f379
xor ebx, ebx
cmp byte [esp + 0x156], 1
setne bl
add ebx, 9
jmp 0x67f3dc
cmp eax, 1
jne 0x67f38f
xor ebx, ebx
cmp byte [esp + 0x156], al
setne bl
add ebx, 7
jmp 0x67f3dc
test eax, eax
jne 0x67f3da
xor ebx, ebx
cmp byte [esp + 0x156], 1
setne bl
add ebx, 5
jmp 0x67f3dc
cmp eax, 5
jne 0x67f3da
mov eax, dword [esp + 0x44]
cmp eax, 2
jne 0x67f3c7
cmp byte [esp + 0x156], 1
jne 0x67f3dc
cmp cx, 9
jne 0x67f3dc
push 4
jmp 0x67f3ce
cmp eax, 1
jne 0x67f3d1
push 2
pop ebx
jmp 0x67f3dc
test eax, eax
jne 0x67f3da
xor ebx, ebx
inc ebx
jmp 0x67f3dc
mov ebx, ebp
pop edi
movzx ecx, cx
xor eax, eax
pop esi
mov dword [0x7a19dc], ecx
inc eax
mov ecx, dword [esp + 0x278]
pop ebp
mov dword [0x7aeed4], ebx
pop ebx
xor ecx, esp
mov byte [0x7af11c], 1
call fcn.0049b511
add esp, 0x274
ret
Function at 0x67f45a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x138c]
mov eax, 0x138c
call fcn.0049bfd0
push 0xffffffffffffffff
push 0x6a1a82
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp + 0x1388], 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 + 0x1394]
push 0x7ffe
mov dword [ebp - 0x18], eax
call fcn.00512439
mov cx, word [0x750660]
mov edi, eax
mov dword [esp], 0x1386
lea eax, [ebp + 2]
xor ebx, ebx
mov dword [ebp - 0x14], 7
push ebx
push eax
mov word [ebp], cx
call fcn.00506c70
add esp, 0xc
mov dword [ebp - 0x10], 0x9c4
push esi
cmp dword [esi + 0x10], ebx
je 0x67f4ea
push 0x101
jmp 0x67f4ec
push 1
push ebx
push dword [esi + 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x67f514
push eax
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.006778de
add esp, 0xc
xor eax, eax
jmp 0x67f58f
push 0x750660
lea ecx, [ebp - 0x1c]
call fcn.004514db
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
inc dword [esi + 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00474c39
mov ecx, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0x18]
push ecx
mov dword [eax], ecx
lea eax, [ebp]
push eax
push ebx
call fcn.00506640
add esp, 0x10
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x67f582
push edi
call fcn.00512434
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1388]
xor ecx, ebp
call fcn.0049b511
add ebp, 0x138c
leave
ret 4
Function at 0x67f60b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov eax, dword [0x79b544]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x230]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
push esi
mov dword [esp + 0x20], ecx
call ebx
test eax, eax
je 0x67f663
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x20019
push ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x67f681
cmp eax, 2
jne 0x67f732
xor eax, eax
inc eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049b511
add esp, 0x218
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x67f69f
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x67f712
mov ebx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0067f8ce
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.0067f60b
test eax, eax
je 0x67f70c
xor ecx, ecx
mov dword [esp + 0x10], 0x104
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push dword [esp + 0x30]
call ebp
test eax, eax
je 0x67f6ca
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov word [esi - 2], ax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x67f663
xor eax, eax
jmp 0x67f666
Function at 0x67f739
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x6a1ab2
call fcn.0049be25
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x3ffe
mov dword [ebp - 0x10], ebx
test eax, eax
jne 0x67f760
mov eax, reloc.OLEAUT32.dll_SysReAllocString
cmp dword [ecx + 0x10], ebx
lea edi, [ecx + 4]
lea ecx, [ebp - 0x10]
push ecx
je 0x67f773
push 0x101
jmp 0x67f775
push 1
push ebx
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x67f7e7
push ebx
push str.writeValue:__Key_found_..._:__d
call fcn.006778de
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.006778de
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x67f7d7
push str.value_is_found
call fcn.006778de
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x67f7d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
jmp 0x67f7fd
cmp dword [ebp - 0x10], ebx
je 0x67f7fd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x67f7fd
mov ecx, edi
call fcn.0045156f
push eax
push esi
push str.writeValue:__Key_open_failure___d__s
call fcn.006778de
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov al, bl
call fcn.0049bdee
ret 0x10

Function at 0x67f9e9
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x6a1b0d
call fcn.0049be25
mov esi, ecx
xor ebx, ebx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push dword [edi]
push str.DeleteRegistryFolder___SubkeyValue___s
call fcn.006778de
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0045207b
add eax, 0x10
add esp, 0xc
mov dword [ebp - 0x14], eax
push 1
push 0x7516bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0045234c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.0045234c
lea eax, [ebp - 0x10]
push eax
cmp dword [esi + 0x10], ebx
je 0x67fa51
push 0x102
jmp 0x67fa53
push 2
push ebx
push dword [edi]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x67fa7c
mov ecx, edi
call fcn.0045156f
push eax
push esi
push str.failed_accessing_key:_:__d____s
call fcn.006778de
add esp, 0xc
jmp 0x67facb
push ebx
lea ecx, [ebp + 8]
call fcn.00451c69
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x67fac8
mov ecx, dword [ebp + 8]
cmp dword [ecx - 4], 1
jle 0x67fab5
push dword [ecx - 0xc]
lea ecx, [ebp + 8]
call fcn.00451ca4
mov ecx, dword [ebp + 8]
push ecx
push esi
push str.Failed_Delete_key:__d____s
call fcn.006778de
add esp, 0xc
mov esi, ebx
jmp 0x67facb
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, esi
call fcn.0049bdee
ret 4
Function at 0x67faeb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xbcc
mov eax, 0x6a1b30
call fcn.0049be59
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xbd8], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ax, word [0x750660]
push 0xbb6
mov word [ebp - 0xbcc], ax
lea eax, [ebp - 0xbca]
push ebx
push eax
mov dword [ebp - 0xbd4], 0x3ffe
call fcn.00506c70
add esp, 0xc
mov dword [ebp - 0xbd0], ebx
test esi, esi
jne 0x67fb48
mov esi, reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0xbd0]
push eax
cmp dword [edi + 0x10], ebx
je 0x67fb5b
push 0xf013f
jmp 0x67fb60
push 0xf003f
push ebx
push dword [edi + 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x67fc04
push ebx
push str.writeValue:__Key_found_..._:__d
call fcn.006778de
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.006778de
add esp, 0xc
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xbcc]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0xbd0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x67fbee
push str.value_is_found
call fcn.006778de
pop ecx
lea eax, [ebp - 0xbcc]
push eax
push 0x75734c
push dword [ebp - 0xbd8]
call fcn.00452465
add esp, 0xc
cmp dword [ebp - 0xbd0], ebx
je 0x67fbea
push dword [ebp - 0xbd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x67fc11
cmp dword [ebp - 0xbd0], ebx
je 0x67fc11
push dword [ebp - 0xbd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x67fc11
push eax
push str.writeValue:__Key_open_failure___d
call fcn.006778de
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov al, bl
call fcn.0049be03
ret 0x10
Function at 0x680198
Capabilities:
Check if file exists
Move file

Disassembly:
push 0x1c
mov eax, 0x6a1c83
call fcn.0049be25
mov ebx, 0x7516bc
lea eax, [ebp - 0x20]
push ebx
mov edi, 0x7af264
push edi
push eax
call fcn.00451281
and dword [ebp - 4], 0
push str.Fallback
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00451281
add esp, 0x18
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
lea eax, [ebp - 0x24]
push eax
call fcn.0066ff9b
mov esi, eax
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push edi
push eax
call fcn.00451281
push esi
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call fcn.004512d9
add esp, 0x18
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
lea eax, [ebp - 0x28]
push eax
call fcn.0066fec3
mov esi, eax
push ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push edi
push eax
call fcn.00451281
push esi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push eax
call fcn.004512d9
add esp, 0x18
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
call fcn.00689233
cmp eax, 0xb
jne 0x680280
xor ecx, ecx
call fcn.006889c8
jmp 0x680352
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.006890f3
mov byte [ebp - 4], 0xd
mov edi, str.CJoinSessionApp::PostUpdateHandling
push dword [eax]
push edi
push str._s_::_Update_status_:__s
call fcn.00677869
mov byte [ebp - 4], 0xc
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0044ec01
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x680310
cmp byte [0x7af258], 0
je 0x680310
mov esi, dword [ebp - 0x18]
cmp dword [esi - 4], 1
jle 0x6802df
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00451ca4
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x6802f6
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00451ca4
mov eax, dword [ebp - 0x14]
push esi
push eax
call fcn.00512407
pop ecx
pop ecx
test eax, eax
je 0x680310
push edi
push str._s_::_Rename_new_connect_exe_failed
call fcn.00677869
pop ecx
pop ecx
push ecx
mov esi, esp
mov dword [ebp - 0x24], esi
mov eax, dword [0x7af264]
add eax, 0xfffffff0
push eax
call fcn.0045207b
add eax, 0x10
push ecx
lea ecx, [ebp - 0xe]
mov dword [esi], eax
call fcn.0067be26
mov ecx, eax
call fcn.0067b601
test al, al
jne 0x680352
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_::_RevertParentFolderAfterUpdateFailure__failed_Error:__s
call fcn.00677869
add esp, 0xc
push ecx
mov esi, esp
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.0045207b
add eax, 0x10
push ecx
lea ecx, [ebp - 0xe]
mov dword [esi], eax
call fcn.0067be26
call fcn.0067bc04
call fcn.00689233
mov ecx, dword [ebp - 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, esi
call fcn.0049bdee
ret