Function at 0x77cb793b
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x24c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x264], ebx
lea edi, [ebp - 0x260]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x77cb7a18
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x224], 0xff
mov byte [ebp - 0x223], 0xfe
mov dword [ebp - 0x248], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cb7a06
lea eax, [ebp - 0x248]
push eax
push 0x218
lea eax, [ebp - 0x21c]
push eax
push 2
push 0x77cb7a30
push dword [ebp - 0x22c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x22c]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
jge 0x77cdfdc0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x10
cmp dword [ebp - 0x218], 1
jne 0x77cb7a06
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x228], eax
je 0x77cb7a06
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push eax
call edi
push ebx
lea eax, [ebp - 0x240]
push eax
push 2
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push dword [ebp - 0x228]
call edi
lea eax, [ebp - 0x220]
push eax
push 0x218
lea eax, [ebp - 0x21c]
push eax
push 0x1b
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x77cdffe7
mov eax, dword [ebp - 0x220]
lea eax, [ebp + eax - 0x21e]
lea ecx, [ebp - 0x21c]
cmp eax, ecx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x220], 1
ja 0x77cdfe7d
jmp 0x77cdfe9c
mov eax, dword [ebp - 0x234]
add eax, 0xfffffffe
cmp word [eax], 0x5c
je 0x77cdfe9c
inc dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
cmp eax, ecx
mov dword [ebp - 0x234], eax
ja 0x77cdfe77
mov eax, dword [ebp - 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cdfea5
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x238]
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x77cdfebe
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebp - 0x220]
lea edi, [ecx + eax*2 + 0xf2]
lea eax, [ebp - 0x244]
push eax
push 0x18
lea eax, [ebp - 0x264]
push eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x77cdffe7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 0x230], eax
je 0x77cdffe7
movzx ecx, byte [esi + 0xf]
push ecx
movzx ecx, byte [esi + 0xe]
push ecx
movzx ecx, byte [esi + 0xd]
push ecx
movzx ecx, byte [esi + 0xc]
push ecx
movzx ecx, byte [esi + 0xb]
push ecx
movzx ecx, byte [esi + 0xa]
push ecx
movzx ecx, byte [esi + 9]
push ecx
movzx ecx, byte [esi + 8]
push ecx
movzx ecx, word [esi + 6]
push ecx
movzx ecx, word [esi + 4]
push ecx
push dword [esi]
shr edi, 1
push 0x77ce00d8
push dword [ebp - 0x24c]
push 0x77ce00c8
push dword [ebp - 0x238]
push 0x77ce00bc
push dword [ebp - 0x23c]
push 0x77ce00a0
push dword [ebp - 0x254]
push 0x77ce008c
push dword [ebp - 0x234]
push 0x77cdfff8
push edi
push eax
call fcn.77c965e5
mov eax, dword [ebp - 0x230]
add esp, 0x60
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x77cdffa3
sub eax, ecx
push ebx
sar eax, 1
lea ecx, [ebp - 0x240]
push ecx
add eax, eax
push eax
push dword [ebp - 0x230]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x230]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77cb7a06