Function at 0x438470
Capabilities:
Get token membership
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x441180]
push ebx
push esi
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4422c4]
mov ecx, 0x441180
call esi
add eax, 0x10
lea ecx, [ebp - 0x28c]
push 0x42cef8
mov dword [ebp - 0x28c], eax
call fcn.00433e40
test al, al
jne 0x4384ce
push 0x3c
push 0x42cef8
lea ecx, [ebp - 0x28c]
call fcn.00435250
lea eax, [ebp - 0x284]
mov dword [ebp - 0x280], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x280]
mov word [ebp - 0x27c], 0x500
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov edi, dword [ebp - 0x28c]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x438a8f
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x284]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
push dword [ebp - 0x284]
neg eax
sbb eax, eax
and dword [ebp - 0x288], eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
cmp dword [ebp - 0x288], 0
je 0x438a8f
push ecx
lea edx, [ebp - 0x278]
call fcn.00437bc0
mov ebx, eax
test ebx, ebx
jns 0x4385c0
lea edx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x438b06
push 0x42c748
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438b06
push 0xa4
jmp 0x438af0
mov eax, 0x1c
mov dword [ebp - 0x28c], eax
jmp 0x4385d0
push 0x32
lea ecx, [ebp - 0x70]
push ecx
lea eax, [eax + 0x441080]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
test eax, eax
je 0x438a39
mov ebx, dword [edi - 0x10]
test ebx, ebx
je 0x438609
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4422c4]
mov ecx, ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x43862a
mov eax, dword [0x441180]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4422c4]
mov ecx, 0x441180
call esi
mov ebx, eax
test ebx, ebx
je 0x438b3d
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4422c4]
mov ecx, ebx
call esi
add eax, 0x10
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x288], eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438650
sub ecx, edx
lea eax, [ebp - 0x70]
sar ecx, 1
mov edx, edi
push ecx
push eax
push dword [edi - 0xc]
lea ecx, [ebp - 0x288]
call fcn.00434090
mov eax, dword [ebp - 0x28c]
add esp, 0xc
mov edx, dword [eax + 0x441090]
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x438690
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438690
sub ecx, esi
mov esi, dword [ebp - 0x288]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0x42da8c
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test ebx, ebx
jle 0x4386d2
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4389a1
push 4
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 1
push eax
push 4
push 0x42d0f0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test ebx, ebx
jle 0x43870f
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x438909
lea ecx, [ebp - 0x278]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438720
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x278]
push eax
push 2
push 0x42d198
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test ebx, ebx
jle 0x438762
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x438871
lea ecx, [ebp - 0x278]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438771
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x278]
push eax
push 2
push 0x42d28c
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov ebx, eax
test ebx, ebx
jle 0x4387b3
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x438800
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4387e3
mov eax, dword [esi]
mov dword [ebp - 0x284], eax
push esi
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, dword [ebp - 0x284]
call esi
mov eax, dword [ebp - 0x28c]
add eax, 0x1c
mov dword [ebp - 0x28c], eax
cmp eax, 0x54
jb 0x4385d0
jmp 0x438b06
lea edx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x438861
push 0x42d2b0
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438861
push 0xd2
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
lea ecx, [ebp - 0x288]
call fcn.00433d90
jmp 0x438b06
lea edx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x4388d2
push 0x42d1b8
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x4388d2
push 0xc9
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x438b06
mov eax, dword [esi]
mov dword [ebp - 0x284], eax
push esi
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, dword [ebp - 0x284]
call esi
jmp 0x438b06
lea edx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x43896a
push 0x42d100
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x43896a
push 0xc0
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x438b06
mov eax, dword [esi]
mov dword [ebp - 0x284], eax
push esi
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, dword [ebp - 0x284]
call esi
jmp 0x438b06
lea edx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x438a02
push 0x42d010
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438a02
push 0xb6
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x438b06
mov eax, dword [esi]
mov dword [ebp - 0x284], eax
push esi
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, dword [ebp - 0x284]
call esi
jmp 0x438b06
mov ebx, 0x80004005
mov dword [ebp - 0x284], 0
lea edx, [ebp - 0x284]
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x438b06
push 0x42cfb0
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438b06
push 0xab
jmp 0x438af0
push 0x42cf74
push 0xc
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
mov dword [ebp - 0x284], 0
mov ebx, 0x80070005
lea edx, [ebp - 0x284]
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x438b06
push 0x42cf98
push dword [ebp - 0x284]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438b06
push 0xa1
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x438b2a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
mov ecx, 0x80004005
call fcn.00435870
int3