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

Disassembly:
mov eax, dword [ebp - 0x33b4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
xor eax, eax
lea ebx, [ebx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x341
xor cx, word [eax*2 + 0x55a7f0]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 0x11
jl 0x42573d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x33b4]
push edx
push 1
push 0
jmp 0x44bdee
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 7
jl 0x4efd61
lea edx, [ebp - 0x33b0]
push edx
mov edx, dword [ebp - 0x33b4]
lea eax, [ebp - 0x1b74]
push eax
push 0
push 0
lea ecx, [ebp - 0x318c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4425d8
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 9
jl 0x45a6aa
lea edx, [ebp - 0x33b0]
push edx
mov edx, dword [ebp - 0x33b4]
lea eax, [ebp - 0x5f4]
push eax
push 0
push 0
lea ecx, [ebp - 0x318c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4dec6c
test eax, eax
jne 0x425726
lea eax, [ebp - 0x1b74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4425e9
sub eax, edx
inc eax
cmp eax, dword [ebp - 0x33b0]
jae 0x425726
jmp 0x442603
lea eax, [ebp - 0x318c]
push eax
push connect
call ebx
test eax, eax
je 0x44be3b
xor ecx, ecx
lea edx, [ecx + 1]
imul edx, edx, 0x2576
xor dx, word [ecx*2 + 0x55a814]
inc ecx
mov word [ebp + ecx*2 - 0x318e], dx
cmp ecx, 6
jl 0x44be06
push eax
lea eax, [ebp - 0x318c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x33b0], 0x3e8
jmp 0x4f216c
cmp ecx, 6
jl 0x50fad5
push eax
lea eax, [ebp - 0x318c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x33b0], 0x3e8
mov byte [ebp - 0x5f4], 0
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x72a4
xor cx, word [eax*2 + str.OL_a_v1]
jmp 0x437334
lea eax, [ebp - 0x1f5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4abe1d
sub eax, edx
inc eax
cmp eax, dword [ebp - 0x33b0]
jae 0x4abe3c
jmp 0x4abe37
mov dword [ebp - 0x33b0], 0x3e8
mov byte [ebp - 0xfbc], 0
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x61ac
jmp dword [0x4abe69]
test eax, eax
jne 0x4efd4e
lea eax, [ebp - 0x5f4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dec7d
mov esi, dword [ebp - 0x33b0]
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, esi
jae 0x4efd4e
mov bl, 0x20
mov byte [ebp + eax - 0x5f4], bl
lea eax, [ebp - 0x5f4]
lea edx, [eax + 1]
jmp dword [0x4decb7]
mov dword [ebp - 0x33b0], 0x100
mov byte [ebp - 0x1b74], 0
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x2d3
xor cx, word [eax*2 + 0x55a7e0]
jmp 0x4299f0
mov byte [ebp - 0x1f5c], 0
xor eax, eax
jmp 0x4f217a
lea ecx, [eax + 1]
imul ecx, ecx, 0x7109
xor cx, word [eax*2 + 0x55a824]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 0xb
jl 0x4f217a
lea edx, [ebp - 0x33b0]
push edx
mov edx, dword [ebp - 0x33b4]
lea eax, [ebp - 0x1f5c]
push eax
push 0
push 0
lea ecx, [ebp - 0x318c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4abe3c
jmp 0x4abe14
xor cx, word [eax*2 + 0x55a79c]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 0xe
jl 0x51f781
lea edx, [ebp - 0x33b4]
push edx
push 1
push 0
lea eax, [ebp - 0x318c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45a697
xor ecx, ecx
lea edx, [ecx + 1]
imul edx, edx, 0x1991
xor dx, word [ecx*2 + 0x55a7bc]
inc ecx
mov word [ebp + ecx*2 - 0x318e], dx
jmp 0x45a67c
push ebp
mov ebp, esp
mov eax, 0x33d0
call fcn.0044069a
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x33bc], eax
mov dword [ebp - 0x33c4], edi
xor eax, eax
lea ecx, [ecx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x7a6c
jmp 0x50fa94