Function at 0x4158e0
Capabilities:
Encode data using base64 via winapi
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x63c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x3c], edx
push 0x190
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
call fcn.0045669c
push 0x190
push 0
push eax
mov dword [ebp - 0x28], eax
call fcn.0044f970
add esp, 0x10
mov word [ebp - 8], 0
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
test ebx, ebx
jne 0x415956
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0x101
push 0
push str.SoftwareMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415989
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push str.MachineGuid
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x4159d6
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [ebx + 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0
push str.MachineGuid
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x415a24
push ebx
call fcn.004533f0
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x14]
push eax
push 0x101
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415a6e
push ebx
call fcn.004533f0
add esp, 4
mov eax, 5
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push str.ProductId
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.0045669c
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x415aba
push ebx
call fcn.004533f0
add esp, 4
push dword [ebp - 0x14]
call esi
pop esi
lea eax, [edi + 6]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 0
push edi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push 0
push str.ProductId
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415b0f
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
push dword [ebp - 0x14]
call esi
pop esi
pop edi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push str.InstallDate
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x415b5e
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
push dword [ebp - 0x14]
call esi
pop esi
pop edi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push 0xa
push 0x190
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.004564c6
add esp, 0x10
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0xa
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x5c]
call fcn.004564c6
movaps xmm0, xmmword [0x636a60]
push 0x40
movups xmmword [ebp - 0x4c], xmm0
call fcn.0045669c
push 0x40
push 0
push eax
mov dword [ebp - 0x1c], eax
call fcn.0044f970
add esp, 0x20
lea edi, [ebp - 0x4c]
mov eax, SysReAllocString
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov edi, SysReAllocString
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
nop word [eax + eax]
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x4c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ebx, dword [ebp - 0x1c]
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x415c0c
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebx], xmm0
jmp 0x415c2e
cmp edi, reloc.WS2_32.dll_closesocket
jne 0x415c1e
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebx + 0x10], xmm0
jmp 0x415c2e
cmp edi, reloc.WS2_32.dll_connect
jne 0x415c2e
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebx + 0x20], xmm0
mov eax, dword [ebp - 0x20]
inc edi
cmp edi, eax
jle 0x415be0
cmp eax, reloc.WS2_32.dll_connect
jae 0x415c48
push ebx
call fcn.004533f0
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415c60
sub ecx, edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x415c72
sub edx, esi
mov esi, ebx
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x415c80
sub esi, edi
mov edi, dword [ebp - 0x24]
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
mov al, byte [edi]
inc edi
test al, al
jne 0x415c92
mov ecx, dword [ebp - 0x30]
sub edi, dword [ebp - 0x20]
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415ca5
sub ecx, dword [ebp - 0x20]
lea eax, [ecx + edi]
mov ecx, dword [ebp - 0x1c]
add eax, esi
add ecx, 5
add eax, edx
add eax, ecx
mov dword [ebp - 0x18], eax
add eax, 0xa
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x415d05
push ebx
call fcn.004533f0
push dword [ebp - 0x30]
call fcn.004533f0
push dword [ebp - 0x24]
call fcn.004533f0
add esp, 0xc
mov eax, 9
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0xa]
push eax
push 0
push ecx
call fcn.0044f970
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push edi
push str._s_s_s_s_s
push esi
push dword [ebp - 0x1c]
call fcn.00415660
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 0x24]
call fcn.004533f0
push dword [ebp - 0x28]
call fcn.004533f0
mov ebx, dword [ebp - 0x1c]
add esp, 0x3c
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415d58
mov edi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x40000001
sub ecx, edx
push ecx
push ebx
call edi
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x415da6
push ebx
call fcn.004533f0
add esp, 4
lea eax, [esi + 0xa]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push 0
push esi
call fcn.0044f970
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415dc0
lea eax, [ebp - 0x2c]
sub ecx, edx
push eax
push esi
push 0x40000001
push ecx
push ebx
call edi
push ebx
call fcn.004533f0
mov eax, dword [ebp - 0x38]
add esp, 4
mov edx, dword [ebp - 0x3c]
mov dword [eax], esi
test edx, edx
je 0x415dfb
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x415df0
sub esi, ecx
mov dword [edx], esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0044daed
mov esp, ebp
pop ebp
ret