Function at 0x409500
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x56c0
call fcn.00415110
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x528c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x56ac]
push ecx
mov dword [ebp - 0x56b8], edi
call fcn.00410190
add esp, 0xc
push edi
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteUserProfile__::SW2_WriteUserProfile__s_
mov eax, 0x40000
call fcn.0040b690
add esp, 0xc
cmp dword [0x4285c0], 0
je 0x409585
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteUserProfile__::NOT_storing_information
mov eax, 0x40000
call fcn.0040b690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
mov ecx, str.EAPHOSTXML
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4095b6
test dx, dx
je 0x4095b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4095b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x409590
xor eax, eax
jmp 0x4095bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4095e9
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteUserProfile__::EAPHOSTXML_profile_found__user_credentials_are_ignored
mov eax, 0x40000
call fcn.0040b690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
push 0x410
lea edx, [ebp - 0x41c]
push 0
push edx
call fcn.00410110
lea eax, [ebp - 0x56b4]
add esp, 0xc
push eax
call fcn.0040ca70
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40983f
mov edi, dword [ebp - 0x56b4]
push str.SOFTWARESecureW2MethodsDefaultProfiles
push edi
push str._s_s
lea ecx, [ebp - 0x41c]
push 0x208
push ecx
call fcn.0040f5cc
add esp, 0x14
lea edx, [ebp - 0x56b0]
push edx
push 0x20006
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409686
mov ecx, dword [ebp - 0x56b0]
push str.DataBlob
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x56b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x410
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00410110
add esp, 0xc
cmp dword [ebp - 0x2a44], 0
lea ecx, [ebp - 0x41c]
je 0x4096dd
push str.SOFTWARESecureW2MethodsDefaultProfiles
push edi
push str._s_s
push 0x208
push ecx
call fcn.0040f5cc
add esp, 0x14
lea edx, [ebp - 0x41c]
push edx
push 0x80000002
call ebx
mov esi, eax
cmp esi, 2
jne 0x4096fd
xor esi, esi
jmp 0x4096fd
mov eax, dword [ebp - 0x56b8]
push eax
push str.SOFTWARESecureW2MethodsDefaultProfiles
push edi
push str._s_s_sCredentials
push 0x208
push ecx
call fcn.0040f5cc
add esp, 0x18
lea eax, [ebp - 0x56b4]
call fcn.0040bb70
mov edi, 0x80000003
test esi, esi
jne 0x409a28
push str.SW2_TRACE_LEVEL_DEBUG
push str.__23s::SW2_WriteUserProfile__::storing_information
mov eax, 0x80000
call fcn.0040b690
add esp, 8
lea edx, [ebp - 0x41c]
push edx
push edi
call ebx
cmp dword [ebp - 0x2a44], 0
lea eax, [ebp - 0x56bc]
push eax
lea ecx, [ebp - 0x56b0]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x41c]
push edx
push edi
je 0x409949
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x409a28
push 0x604
lea esi, [ebp - 0x56b4]
call fcn.0040bae0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40991e
mov esi, dword [ebp - 0x56b4]
push 4
lea eax, [ebp - 0x2a70]
push eax
push 0x604
push esi
call fcn.0040f557
push 0x200
lea ecx, [ebp - 0x56a6]
push ecx
lea edx, [esi + 4]
push 0x604
push edx
call fcn.0040f557
push 0x200
lea eax, [ebp - 0x54a6]
push eax
lea ecx, [esi + 0x204]
push 0x604
push ecx
call fcn.0040f557
push 0x200
lea edx, [ebp - 0x52a6]
push edx
lea eax, [esi + 0x404]
push 0x604
push eax
call fcn.0040f557
mov ecx, dword [ebp - 0x56b0]
add esp, 0x40
push 0x604
push esi
push str.DataBlob
push ecx
xor ecx, ecx
call fcn.0040c5c0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x56b4]
call fcn.0040bb70
mov edx, dword [ebp - 0x56b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409a28
push 0x410
lea edx, [ebp - 0x41c]
push 0
push edx
call fcn.00410110
add esp, 0xc
push str.SOFTWARESecureW2MethodsDefaultProfiles
push 0x41dc0c
lea eax, [ebp - 0x41c]
push 0x208
push eax
call fcn.0040f5cc
add esp, 0x10
lea ecx, [ebp - 0x56b0]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x41c]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4098b6
mov eax, dword [ebp - 0x56b0]
push str.DataBlob
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x56b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x410
lea edx, [ebp - 0x41c]
push 0
push edx
call fcn.00410110
add esp, 0xc
cmp dword [ebp - 0x2a44], 0
je 0x4098f9
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea eax, [ebp - 0x41c]
push 0x41dc0c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edi, 0x80000001
jmp 0x409715
push edi
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea ecx, [ebp - 0x41c]
push str._s_sCredentials
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edi, 0x80000001
jmp 0x409715
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR::SW2_WriteUserProfile:_SW2AllocateMemory_failed.__ld
mov eax, 0x10000
call fcn.0040b690
mov edx, dword [ebp - 0x56b0]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409a28
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x409a09
mov ecx, dword [ebp - 0x56b0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
lea eax, [ebp - 0x2a70]
push eax
push 3
push esi
push str.PromptUser
push ecx
call edi
mov eax, dword [ebp - 0x56b0]
push 0x200
lea edx, [ebp - 0x56a6]
push edx
push 2
push esi
push str.UserName
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4099e3
mov edx, dword [ebp - 0x56b0]
push 0x200
lea ecx, [ebp - 0x54a6]
push ecx
push str.UserPassword
push edx
xor ecx, ecx
call fcn.0040c5c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4099e3
mov ecx, dword [ebp - 0x56b0]
push 0x200
lea eax, [ebp - 0x52a6]
push eax
push 2
push esi
push str.UserDomain
push ecx
call edi
mov esi, eax
mov edx, dword [ebp - 0x56b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SW2_TRACE_LEVEL_DEBUG
push str.__23s::SW2_WriteUserProfile__::closed_key
mov eax, 0x80000
call fcn.0040b690
add esp, 8
jmp 0x409a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2_WriteUserProfile__::RegCreateKeyEx_FAILED:__ld___ld
mov eax, 0x10000
call fcn.0040b690
add esp, 0x10
push esi
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_WriteUserProfile__::returning__ld
mov eax, 0x40000
call fcn.0040b690
mov ecx, dword [ebp - 8]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f43d
mov esp, ebp
pop ebp
ret