Function at 0x77cb6e03
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 [0x77d1a0c4]
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 0x77cb6ee0
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 0x77cb6ece
lea eax, [ebp - 0x248]
push eax
push 0x218
lea eax, [ebp - 0x21c]
push eax
push 2
push 0x77cb6ef8
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 0x77cd1348
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10
cmp dword [ebp - 0x218], 1
jne 0x77cb6ece
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 0x77cb6ece
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 0x77cd156f
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 0x77cd1405
jmp 0x77cd1424
mov eax, dword [ebp - 0x234]
add eax, 0xfffffffe
cmp word [eax], 0x5c
je 0x77cd1424
inc dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
cmp eax, ecx
mov dword [ebp - 0x234], eax
ja 0x77cd13ff
mov eax, dword [ebp - 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cd142d
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 0x77cd1446
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 0x77cd156f
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 0x77cd156f
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 0x77cd1660
push dword [ebp - 0x24c]
push 0x77cd1650
push dword [ebp - 0x238]
push 0x77cd1644
push dword [ebp - 0x23c]
push 0x77cd1628
push dword [ebp - 0x254]
push 0x77cd1614
push dword [ebp - 0x234]
push 0x77cd1580
push edi
push eax
call fcn.77c850b1
mov eax, dword [ebp - 0x230]
add esp, 0x60
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x77cd152b
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 0x77cb6ece