Function at 0x5b23a0
Capabilities:
Query or enumerate registry key
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716bcd
mov eax, dword fs:[0]
push eax
mov eax, 0x333c4
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x33360]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x333c4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x333b4], eax
xor eax, eax
push eax
push 0x790eb0
mov dword [ebp - 0x333bc], ebx
mov dword [ebp - 0x3334c], 7
mov dword [ebp - 0x33350], 0
mov word [ebp - 0x33360], ax
call fcn.00424cc0
xor eax, eax
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x333b8], eax
xor edi, edi
mov esi, 0x11
cmp word [0x748d9c], cx
mov eax, esi
cmove eax, ecx
push eax
push 0x748d9c
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, SysReAllocStringLen
mov eax, dword [ebp - 0x333ac]
cmove eax, ecx
mov ecx, ebx
mov dword [ebp - 0x333ac], eax
xor eax, eax
cmp word [0x74df78], ax
cmove esi, eax
push esi
push 0x74df78
push dword [ebx + 0x10]
push eax
call fcn.00427df0
mov esi, dword [ebp - 0x333ac]
test eax, eax
mov ecx, SysReAllocStringLen
mov eax, 0x12
cmove esi, ecx
xor ecx, ecx
cmp word [0x748dc0], cx
cmove eax, ecx
push eax
push 0x748dc0
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0xa
cmove esi, ecx
xor ecx, ecx
cmp word [0x74df9c], cx
cmove eax, ecx
push eax
push 0x74df9c
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, reloc.WS2_32.dll_closesocket
mov eax, 0x15
cmove esi, ecx
xor ecx, ecx
cmp word [0x74dfb4], cx
cmove eax, ecx
push eax
push 0x74dfb4
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
mov eax, 0x13
cmove esi, ecx
xor ecx, ecx
cmp word [0x74dffc], cx
cmove eax, ecx
push eax
push 0x74dffc
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, VariantCopy
mov eax, 0xd
cmove esi, ecx
xor ecx, ecx
cmp word [0x74dfe0], cx
cmove eax, ecx
push eax
push 0x74dfe0
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.00427df0
test eax, eax
mov ecx, reloc.OLEAUT32.dll_SysStringLen
mov eax, dword [ebp - 0x333b4]
cmove esi, ecx
mov dword [ebp - 0x333ac], esi
cmp dword [eax + 0x14], 8
jb 0x5b2583
mov eax, dword [eax]
push 0x740db8
push eax
call fcn.006b57a3
mov ebx, eax
add esp, 8
mov dword [ebp - 0x333b4], ebx
test ebx, ebx
jne 0x5b25a4
xor bl, bl
jmp 0x5b2c34
mov esi, dword [ebp - 0x333c4]
cmp dword [esi + 0x14], 8
jb 0x5b25b4
mov eax, dword [esi]
jmp 0x5b25b6
mov eax, esi
lea ecx, [ebp - 0x333b0]
push ecx
push 8
push 0
push eax
mov eax, dword [ebp - 0x333ac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x333bc]
cmp dword [esi + 0x10], edi
jne 0x5b25f7
lea ecx, [ebp - 0x33360]
cmp ecx, eax
je 0x5b26b8
push 0xffffffffffffffff
push 0
push eax
call fcn.00424900
jmp 0x5b26b8
push 0x7856e8
push eax
lea eax, [ebp - 0x333a8]
push eax
call fcn.0047def0
push esi
push eax
lea eax, [ebp - 0x33348]
mov byte [ebp - 4], 1
push eax
call fcn.00428180
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x33360]
cmp eax, esi
je 0x5b266a
cmp dword [ebp - 0x3334c], 8
jb 0x5b2641
push dword [ebp - 0x33360]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x3334c], 7
push esi
lea ecx, [ebp - 0x33360]
mov dword [ebp - 0x33350], 0
mov word [ebp - 0x33360], ax
call fcn.004248a0
cmp dword [ebp - 0x33334], 8
jb 0x5b2681
push dword [ebp - 0x33348]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x33334], 7
cmp dword [ebp - 0x33394], 8
mov dword [ebp - 0x33338], 0
mov word [ebp - 0x33348], ax
mov byte [ebp - 4], al
jb 0x5b26b8
push dword [ebp - 0x333a8]
call fcn.00428680
add esp, 4
push ebx
push 2
lea eax, [ebp - 0x333c0]
mov word [ebp - 0x333c0], 0xfeff
push 1
push eax
call fcn.006b5539
add esp, 0x10
mov dword [ebp - 0x3337c], 7
xor eax, eax
mov dword [ebp - 0x33380], 0
lea ecx, [ebp - 0x33390]
mov word [ebp - 0x33390], ax
push 0x25
push str.Windows_Registry_Editor_Version_5.00_n
call fcn.00424cc0
mov eax, dword [ebp - 0x33380]
lea ecx, [ebp - 0x33390]
cmp dword [ebp - 0x3337c], 8
push ebx
cmovae ecx, dword [ebp - 0x33390]
lea eax, [eax*2 - 2]
mov byte [ebp - 4], 2
push eax
push 1
push ecx
call fcn.006b5539
add esp, 0x10
mov dword [ebp - 0x33334], 7
xor eax, eax
mov dword [ebp - 0x33338], 0
lea ecx, [ebp - 0x33348]
mov word [ebp - 0x33348], ax
push eax
push 0x790eb0
call fcn.00424cc0
lea eax, [ebp - 0x33360]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x33348]
push eax
push dword [ebp - 0x333b0]
call fcn.005b1fa0
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x33334], 8
jb 0x5b27a0
push dword [ebp - 0x33348]
call fcn.00428680
add esp, 4
lea ecx, [ebp - 0x33010]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x333ac], ecx
mov ebx, ecx
mov esi, eax
sub ebx, eax
mov eax, ecx
sub esi, eax
xor eax, eax
mov edi, edi
push 0x800
lea ecx, [ebp - 0x810]
push ecx
push eax
push dword [ebp - 0x333b0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor edx, edx
jmp 0x5b27e0
movzx ecx, word [ebp + edx - 0x810]
lea edx, [edx + 2]
test cx, cx
jne 0x5b27e0
cmp eax, 0x103
je 0x5b295a
cmp eax, 6
je 0x5b295f
mov eax, dword [ebp - 0x333b0]
lea ecx, [ebp - 0x810]
mov dword [ebp + edi*4 - 0x331a0], eax
mov eax, dword [ebp - 0x333b8]
mov dword [ebp + edi*4 - 0x33330], eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x5b2824
push 1
push 0x7856e8
lea ecx, [ebp - 0x33360]
call fcn.004267c0
cmp word [ebp - 0x810], 0
jne 0x5b2854
xor eax, eax
jmp 0x5b286f
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b2860
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x33360]
call fcn.004267c0
xor eax, eax
mov dword [ebp - 0x33334], 7
mov dword [ebp - 0x33338], 0
mov word [ebp - 0x33348], ax
cmp word [ebp - 0x810], ax
jne 0x5b28ac
xor ecx, ecx
jmp 0x5b28c4
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b28b5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x33348]
call fcn.00424cc0
lea eax, [ebp - 0x33360]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x333b4]
lea eax, [ebp - 0x33348]
push eax
push dword [ebp - 0x333b0]
call fcn.005b1fa0
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x33334], 8
jb 0x5b2918
push dword [ebp - 0x33348]
call fcn.00428680
add esp, 4
lea eax, [ebp - 0x333b0]
push eax
push 8
push 0
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x333b0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add dword [ebp - 0x333ac], 0xc8
inc edi
sub esi, 0xc8
add ebx, 0xc8
xor eax, eax
mov dword [ebp - 0x333b8], eax
jmp 0x5b27c0
cmp eax, 6
jne 0x5b29d8
push 9
xor eax, eax
mov dword [ebp - 0x33334], 7
push str._n_nError_n_n
lea ecx, [ebp - 0x33348]
mov dword [ebp - 0x33338], 0
mov word [ebp - 0x33348], ax
call fcn.00424cc0
mov eax, dword [ebp - 0x33338]
lea ecx, [ebp - 0x33348]
push dword [ebp - 0x333b4]
cmp dword [ebp - 0x33334], 8
cmovae ecx, dword [ebp - 0x33348]
lea eax, [eax*2 - 2]
push eax
push 1
push ecx
call fcn.006b5539
add esp, 0x10
cmp dword [ebp - 0x33334], 8
jb 0x5b29d8
push dword [ebp - 0x33348]
call fcn.00428680
add esp, 4
sub dword [ebp - 0x333ac], 0xc8
dec edi
add esi, 0xc8
mov dword [ebp - 0x333c8], edi
sub ebx, 0xc8
mov dword [ebp - 0x333cc], esi
mov dword [ebp - 0x333d0], ebx
test edi, edi
js 0x5b2bf0
xor eax, eax
mov dword [ebp - 0x33334], 7
mov dword [ebp - 0x33338], 0
mov word [ebp - 0x33348], ax
cmp word [ebp - 0x810], ax
jne 0x5b2a33
xor ecx, ecx
jmp 0x5b2a4f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b2a40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x33348]
call fcn.00424cc0
lea eax, [ebp - 0x33360]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x333b4]
lea eax, [ebp - 0x33348]
push eax
push dword [ebp - 0x333b0]
call fcn.005b1fa0
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x33334], 8
jb 0x5b2aa3
push dword [ebp - 0x33348]
call fcn.00428680
add esp, 4
mov eax, dword [ebp + edi*4 - 0x331a0]
mov ecx, dword [ebp - 0x333ac]
mov dword [ebp - 0x333b0], eax
mov eax, dword [ebp + edi*4 - 0x33330]
inc eax
mov dword [ebp - 0x333b8], eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x5b2ac4
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x333c4]
mov dword [ebp - 0x333c4], 0x5c
push eax
lea ecx, [ebp - 0x33360]
call fcn.0047e9a0
mov dword [ebp - 0x333bc], eax
lea ecx, [ebp - 0x33378]
xor eax, eax
mov dword [ebp - 0x33364], 7
push eax
push 0x790eb0
mov dword [ebp - 0x33368], 0
mov word [ebp - 0x33378], ax
call fcn.00424cc0
cmp dword [ebp - 0x333bc], 0xffffffff
mov byte [ebp - 4], 5
je 0x5b2baa
cmp dword [ebp - 0x3334c], 8
lea ecx, [ebp - 0x33360]
mov esi, dword [ebp - 0x333bc]
lea ebx, [ebp - 0x33360]
cmovae ecx, dword [ebp - 0x33360]
lea edx, [ebp - 0x33378]
cmovae ebx, dword [ebp - 0x33360]
cmp dword [ebp - 0x33364], 8
mov eax, dword [ebp - 0x33368]
cmovae edx, dword [ebp - 0x33378]
lea ecx, [ecx + esi*2]
push ecx
push ebx
lea ecx, [ebp - 0x33378]
lea eax, [edx + eax*2]
lea edx, [ebp - 0x33378]
cmovae edx, dword [ebp - 0x33378]
push eax
push edx
call fcn.00426650
mov ebx, dword [ebp - 0x333d0]
mov esi, dword [ebp - 0x333cc]
mov edi, dword [ebp - 0x333c8]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x33378]
push eax
lea ecx, [ebp - 0x33360]
call fcn.00424900
cmp dword [ebp - 0x33364], 8
mov eax, dword [ebp - 0x333b8]
mov byte [ebp - 4], 2
jb 0x5b27c0
push dword [ebp - 0x33378]
call fcn.00428680
mov eax, dword [ebp - 0x333b8]
add esp, 4
jmp 0x5b27c0
push dword [ebp - 0x333b4]
call fcn.006b5369
add esp, 4
mov bl, 1
cmp dword [ebp - 0x3337c], 8
jb 0x5b2c17
push dword [ebp - 0x33390]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x3337c], 7
mov dword [ebp - 0x33380], 0
mov word [ebp - 0x33390], ax
cmp dword [ebp - 0x3334c], 8
jb 0x5b2c4b
push dword [ebp - 0x33360]
call fcn.00428680
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret