Function at 0x4099f0
Capabilities:
Encode data using xor
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x110
mov dword [ebp - 0x438], ecx
xor edi, edi
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x41c]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x43c], edx
mov word [ebp - 0x88], ax
mov dword [ebp - 0x420], 0x114
call fcn.0042bf70
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x41c]
push eax
push ecx
push edx
push str._d._d._d
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.004280e3
mov ecx, dword [ebx + 0x11878]
push ecx
lea ecx, [ebp - 0x308]
call fcn.004065a0
add esp, 0x1c
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x428], edi
or esi, 0xffffffff
mov dword [ebp - 0x430], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x409af7
mov eax, dword [ebp - 0x430]
dec eax
lea ecx, [ebp - 0x108]
cmp eax, edi
je 0x409aef
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x447628]
dec eax
inc ecx
cmp eax, edi
jne 0x409ad4
not esi
mov dword [ebp - 0x428], esi
mov eax, dword [ebx + 0x17e4]
test eax, eax
je 0x409b56
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b04
sub eax, edx
sar eax, 1
lea esi, [eax + eax*2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042770a
mov edi, eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x17e4]
add esp, 4
mov ebx, esi
call fcn.004067a0
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x409b60
mov dword [ebp - 0x42c], 0x446884
cmp word [ebx + 0x224], 0
lea esi, [ebx + 0x224]
jne 0x409b7e
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
call fcn.00406100
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x428]
mov eax, dword [ebx]
push ecx
push edx
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
push eax
lea eax, [ebx + 0xf3c]
push eax
lea ecx, [ebp - 0x308]
push ecx
lea edx, [ebx + 0x11888]
push edx
lea eax, [ebx + 0x2a4]
push eax
mov eax, dword [ebp - 0x438]
lea ecx, [ebx + 0x134b0]
push ecx
lea edx, [ebp - 0x88]
push edx
push esi
mov esi, dword [ebp - 0x434]
push eax
lea ecx, [ebx + 0xd30]
push ecx
lea edx, [ebx + 0xb28]
push edx
lea eax, [ebx + 0x328]
push eax
push str.guid_ss_user_id_si_user_id_smode_sversion_sos_sinstallId_spid_storrentHash_sserial_sdownloadDate_sappId_duserName_uua_s
push 0x40000
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x44
test edi, edi
je 0x409c04
push edi
call fcn.00427715
add esp, 4
mov ecx, dword [ebp - 0x43c]
test ecx, ecx
je 0x409c3c
mov eax, dword [ebx + 0x11880]
test eax, eax
je 0x409c1d
cmp eax, 1
jne 0x409c3c
mov eax, dword [ecx]
lea ecx, [eax + 0x488]
push ecx
push eax
push esi
push str._spinstall_scampaign_id_s
push 0x40000
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
add ebx, 0x9878
cmp word [ebx], 0
je 0x409c87
push 0x800
call fcn.0042770a
add esp, 4
push ebx
push 0x446b64
mov edi, eax
push 0x400
push edi
call fcn.004280e3
push edi
push esi
push str._serrors_s
push 0x40000
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x24
push edi
call fcn.00427715
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret 8