Function at 0x43dc93
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push ecx
mov edi, edx
mov dword [ebp - 8], ecx
push 3
push 0x49156c
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.0043b6e0
mov esi, eax
test esi, esi
je 0x43e48a
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43dcc9
mov ecx, 0x4934ec
push 0x5c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
je 0x43e48a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], 0x2001f
cmp dword [eax + 0x10], 0
je 0x43dd22
push ecx
push 5
push str.Wow64
mov ecx, edi
call fcn.0043b6e0
test eax, eax
je 0x43dd22
mov eax, dword [eax + 4]
test eax, eax
jne 0x43dd0b
mov eax, 0x4934ec
push 0x491870
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x43dd22
mov dword [ebp - 0x10], 0x2021f
and dword [ebp - 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x43dd32
mov ecx, 0x4934ec
mov eax, ecx
mov edx, ebx
sub edx, eax
sar edx, 1
call fcn.0041f598
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp - 0x10]
mov edx, dword [edx + 0x48]
lea ecx, [ebx + 2]
push ecx
push eax
push edx
mov esi, dword [edx]
call dword [esi + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x43e47e
push ecx
push 4
push 0x4916c8
mov ecx, edi
call fcn.0043b6e0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x43e47e
push ecx
push 5
push str.Value
mov ecx, edi
call fcn.0043b6e0
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x43dda8
push ecx
push 4
push str.Data
mov ecx, edi
call fcn.0043b6e0
test eax, eax
jne 0x43ddb2
mov ebx, 0x80004005
jmp 0x43e47e
mov edi, dword [eax + 4]
test edi, edi
je 0x43ddc1
mov esi, dword [eax + 0xc]
mov dword [ebp - 0xc], esi
jmp 0x43ddca
and dword [ebp - 0xc], 0
mov edi, 0x4934ec
mov esi, dword [ebp - 0x18]
push ecx
push 3
push 0x49aa8c
mov ecx, esi
call fcn.0043b6e0
mov dword [ebp - 0x1c], eax
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0x14]
call fcn.0043bbe8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43de57
mov eax, dword [eax + 4]
test eax, eax
jne 0x43de00
mov eax, 0x4934ec
push 0x491870
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x43de57
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
push 0x4934ec
call fcn.0043c2b8
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.0043eb33
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43e473
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], 1
jle 0x43de4e
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0043d715
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push ecx
push 8
push str.Operator
mov ecx, esi
call fcn.0043b6e0
mov ecx, dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x43de7a
mov ecx, 0x4934ec
call fcn.0043dbda
sub eax, 1
je 0x43e45b
sub eax, 1
je 0x43e43c
sub eax, 1
je 0x43e1dd
sub eax, 1
je 0x43e0ab
sub eax, 3
je 0x43e08f
sub eax, 4
je 0x43debb
mov ebx, 0x80004002
jmp 0x43e473
push 0x10
push 0
push edi
call dword [sym.imp.msvcrt.dll__wcstoui64]
mov edi, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0xc], eax
test esi, esi
je 0x43e061
mov eax, dword [esi + 4]
test eax, eax
jne 0x43dee4
mov eax, 0x4934ec
push 0x49aaa8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x43e05e
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
test eax, eax
jne 0x43df0c
mov eax, 0x4934ec
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 8
push ecx
lea ecx, [ebp - 0x28]
push ecx
push edx
push 0x40
push eax
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test ebx, ebx
je 0x43df86
cmp ebx, 2
jne 0x43e473
push ecx
mov ecx, dword [ebp - 0x18]
push 7
push str.Default
call fcn.0043b6e0
test eax, eax
jne 0x43df66
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x43df5b
mov eax, 0x4934ec
push eax
push 0x49aaac
jmp 0x43e030
mov eax, dword [eax + 4]
test eax, eax
jne 0x43df72
mov eax, 0x4934ec
push 0x10
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcstoui64]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 4]
test eax, eax
jne 0x43df92
mov eax, 0x4934ec
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4934e8
push eax
call ebx
test eax, eax
jne 0x43dfb2
mov eax, dword [ebp - 0xc]
or edi, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
jmp 0x43e061
mov eax, dword [esi + 4]
test eax, eax
jne 0x43dfbe
mov eax, 0x4934ec
push 0x49aae8
push eax
call ebx
test eax, eax
jne 0x43dfd8
mov eax, dword [ebp - 0xc]
and edi, dword [ebp - 0x28]
and eax, dword [ebp - 0x24]
jmp 0x43e061
mov eax, dword [esi + 4]
test eax, eax
jne 0x43dfe4
mov eax, 0x4934ec
push 0x49aaec
push eax
call ebx
test eax, eax
jne 0x43dffb
mov eax, dword [ebp - 0xc]
xor edi, dword [ebp - 0x28]
xor eax, dword [ebp - 0x24]
jmp 0x43e061
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e007
mov eax, 0x4934ec
push 0x49aaf0
push eax
call ebx
test eax, eax
jne 0x43e01e
add edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x24]
jmp 0x43e061
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e02a
mov eax, 0x4934ec
push eax
push 0x49aaf4
lea eax, [ebp - 0x20]
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push 0x49aadc
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043d912
push 0x57
pop ebx
jmp 0x43e473
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x43e070
mov ecx, 0x4934ec
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x28], edi
push 0xb
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x43e471
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x43e09b
mov ecx, 0x4934ec
mov eax, dword [ebp - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
jmp 0x43e07e
push 0x10
push 0
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov edi, eax
test esi, esi
je 0x43e1c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e0cf
mov eax, 0x4934ec
push 0x49aaa8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x43e1c0
and dword [ebp - 8], 0
mov edx, dword [ebx + 4]
test edx, edx
jne 0x43e0f3
mov edx, 0x4934ec
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044dcd7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43e144
cmp ebx, 2
jne 0x43e473
push ecx
mov ecx, dword [ebp - 0x18]
push 7
push str.Default
call fcn.0043b6e0
test eax, eax
je 0x43df4c
mov eax, dword [eax + 4]
test eax, eax
jne 0x43e133
mov eax, 0x4934ec
push 0x10
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e150
mov eax, 0x4934ec
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4934e8
push eax
call ebx
test eax, eax
jne 0x43e167
or edi, dword [ebp - 8]
jmp 0x43e1c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e173
mov eax, 0x4934ec
push 0x49aae8
push eax
call ebx
test eax, eax
jne 0x43e184
and edi, dword [ebp - 8]
jmp 0x43e1c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e190
mov eax, 0x4934ec
push 0x49aaec
push eax
call ebx
test eax, eax
jne 0x43e1a1
xor edi, dword [ebp - 8]
jmp 0x43e1c0
mov eax, dword [esi + 4]
test eax, eax
jne 0x43e1ad
mov eax, 0x4934ec
push 0x49aaf0
push eax
call ebx
test eax, eax
jne 0x43e01e
add edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x43e1cf
mov edx, 0x4934ec
mov ecx, dword [ebp - 4]
push edi
call fcn.0044dcc0
jmp 0x43e470
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.0044b1a9
test esi, esi
je 0x43e3f9
mov eax, dword [esi + 4]
mov edi, 0x4934ec
test eax, eax
jne 0x43e1fd
mov eax, edi
push 0x49aaa8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x43e3f9
call fcn.0043d5bb
push eax
lea ecx, [ebp - 8]
call fcn.0043bbe8
mov edx, dword [ebx + 4]
test edx, edx
jne 0x43e228
mov edx, edi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044df6e
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
test eax, eax
je 0x43e2c9
push ecx
mov ecx, dword [ebp - 0x18]
push 7
push str.Default
call fcn.0043b6e0
test eax, eax
jne 0x43e292
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43e262
mov eax, edi
push eax
lea eax, [ebp - 0x20]
push 0x49aaac
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push 0x49aadc
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043d912
push 0x57
jmp 0x43e2d1
mov edx, dword [eax + 4]
test edx, edx
jne 0x43e29b
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0044b1a9
push eax
lea ecx, [ebp - 8]
call fcn.0043b635
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov edi, dword [ebp - 8]
mov eax, dword [edi - 0xc]
cmp eax, dword [esi - 0xc]
je 0x43e2d9
push 0xb
jmp 0x43e3ee
cmp dword [ebp - 0x1c], 3
je 0x43e2b7
push 0xb
mov edi, dword [ebp - 8]
jmp 0x43e3ee
cmp dword [esi - 4], 1
jle 0x43e2ed
push dword [esi - 0xc]
lea ecx, [ebp - 0xc]
call fcn.0043bb69
mov esi, dword [ebp - 0xc]
cmp dword [edi - 4], 1
jle 0x43e301
push dword [edi - 0xc]
lea ecx, [ebp - 8]
call fcn.0043bb69
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43e316
mov eax, 0x4934ec
push 0x4934e8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x43e340
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43e3aa
mov ebx, edi
mov edx, esi
sub ebx, esi
mov al, byte [ebx + edx]
or byte [edx], al
inc edx
sub ecx, 1
jne 0x43e333
jmp 0x43e3aa
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43e34c
mov eax, 0x4934ec
push 0x49aae8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x43e376
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43e3aa
mov ebx, edi
mov edx, esi
sub ebx, esi
mov al, byte [edx + ebx]
and byte [edx], al
inc edx
sub ecx, 1
jne 0x43e369
jmp 0x43e3aa
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43e382
mov eax, 0x4934ec
push 0x49aaec
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x43e3b4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43e3aa
mov ebx, edi
mov edx, esi
sub ebx, esi
mov al, byte [edx + ebx]
xor byte [edx], al
inc edx
sub ecx, 1
jne 0x43e39f
lea ecx, [edi - 0x10]
call fcn.0043d912
jmp 0x43e3fc
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43e3c0
mov eax, 0x4934ec
push eax
lea eax, [ebp - 0x24]
push 0x49aaf4
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push 0x49aadc
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0043d912
push 0x57
pop ebx
lea ecx, [edi - 0x10]
call fcn.0043d912
jmp 0x43e432
mov esi, dword [ebp - 0xc]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x43e411
push edi
lea ecx, [ebp - 0xc]
call fcn.0043bb69
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x43e420
mov eax, 0x4934ec
push edi
push esi
push 3
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.0043d912
jmp 0x43e473
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x43e448
mov ecx, 0x4934ec
mov eax, dword [ebp - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push 2
jmp 0x43e07e
mov edx, dword [ebx + 4]
test edx, edx
jne 0x43e467
mov edx, 0x4934ec
mov ecx, dword [ebp - 4]
push edi
call fcn.0044ddbc
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0043d912
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov eax, ebx
jmp 0x43e48f
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret