Function at 0x4075d0
Capabilities:
Encode data using xor
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov ecx, dword [eax + 0xa4]
xor ebx, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0xa8]
movzx eax, word [eax + 0xac]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x409060
push ebx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x40768b
lea eax, [ebp - 4]
push eax
push 0xc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
test eax, eax
js 0x407682
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], ebx
je 0x40767b
movzx eax, word [eax + 8]
add eax, 2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x407678
mov ecx, dword [ebp - 4]
movzx edi, word [ecx + 8]
mov edx, dword [ecx + 0xc]
shr edi, 1
test edx, edx
je 0x407672
lea esi, [edi + edi]
xor ecx, ecx
test esi, esi
je 0x407672
mov al, byte [ecx + edx]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x407667
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x10
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x14], 0x101
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, 0xf
lea edi, [ebp - 0x84]
mov esi, 0x402270
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp byte [ebp - 0x84], 0
je 0x4076eb
nop dword [eax + eax]
inc esi
cmp byte [ebp + esi - 0x84], 0
jne 0x4076e0
xor edi, edi
nop dword [eax]
call fcn.00402420
xor edx, edx
div esi
mov al, byte [ebp + edx - 0x84]
mov byte [ebp + edi - 0x34], al
inc edi
cmp edi, 0x10
jb 0x4076f0
lea edx, [ebp - 0x44]
mov byte [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
call fcn.004073c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x34]
push eax
push 0x4090c4
push 0x6f
lea eax, [ebp - 0x6b0]
push 0x401a9c
push eax
call esi
add esp, 0x14
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0x6b0]
add edi, eax
lea eax, [ebp - 0xa4]
push ebx
push eax
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
push 0x401aa9
push 0x401aac
push edi
call esi
mov esi, eax
add esp, 0x24
xor edx, edx
test esi, esi
je 0x407787
mov ecx, edx
and ecx, 0xf
mov al, byte [ebp + ecx - 0x44]
xor byte [edx + edi], al
inc edx
cmp edx, esi
jb 0x407776
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
lea eax, [ebp - 0x6b0]
push eax
push ecx
mov ecx, 0x409104
call fcn.00406610
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4077c5
push eax
push 0
call edi
push eax
call esi
test ebx, ebx
je 0x4077d1
push ebx
push 0
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret