Function at 0x401320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc0], ecx
test eax, eax
je 0x401587
push ebx
push pe_nt_image_headers32
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0xb8], ebx
test ebx, ebx
je 0x401570
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_GetSystemDefaultLCID]
lea ecx, [ebp - 0xb0]
push ecx
mov dword [ebx + 4], eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x401399
mov edx, dword [ebp - 0xb0]
mov dword [ebx + 8], edx
push edi
lea eax, [ebx + 0xc]
push esi
push eax
call fcn.0040cb70
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
push 0x64
xor esi, esi
push 0x414ed4
mov dword [ebp - 0xbc], esi
call dword [sym.imp.netapi32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x401484
mov edx, dword [ebp - 0xbc]
cmp dword [edx + 8], esi
je 0x4013f3
mov eax, dword [edx + 8]
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4013e0
sub eax, ebx
sar eax, 1
lea esi, [eax + eax + 2]
cmp dword [edx + 4], 0
je 0x401415
mov eax, dword [edx + 4]
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401400
sub eax, ebx
sar eax, 1
lea ebx, [eax + eax + 2]
jmp 0x401417
xor ebx, ebx
test esi, esi
je 0x401444
mov eax, 0xe4
sub eax, edi
cmp esi, eax
ja 0x401444
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0xb8]
push esi
push ecx
lea eax, [edi + edx + 0xc]
push eax
call fcn.0040cb70
mov edx, dword [ebp - 0xbc]
add esp, 0xc
test ebx, ebx
je 0x401475
mov ecx, 0xe4
sub ecx, edi
sub ecx, esi
cmp ebx, ecx
ja 0x401475
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0xb8]
push ebx
add edi, esi
push edx
lea ecx, [edi + eax + 0xc]
push ecx
call fcn.0040cb70
mov edx, dword [ebp - 0xbc]
add esp, 0xc
push edx
call dword [sym.imp.netapi32.dll_NetApiBufferFree]
mov ebx, dword [ebp - 0xb8]
xor esi, esi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc4]
push edx
push ebx
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xb4], esi
call fcn.00401160
add esp, 0xc
test eax, eax
je 0x40155b
mov edi, dword [ebp - 0xb4]
add edi, 9
push edi
push 0x40
mov dword [ebp - 0xcc], edi
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40155b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc4]
mov dword [esi + 1], ecx
mov byte [esi], 0x64
mov edx, dword [ebp - 0xb4]
push edx
push eax
lea ecx, [esi + 5]
push ecx
call fcn.0040cb70
mov ebx, dword [ebp - 0xb4]
lea ecx, [ebx + 5]
add esp, 0xc
or eax, 0xffffffff
mov edx, esi
test ecx, ecx
je 0x40152f
lea esp, [esp]
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419100]
inc edx
dec ecx
jne 0x401510
mov edi, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xc8]
not eax
mov dword [esi + ebx + 5], eax
push edx
mov eax, edi
mov ebx, esi
call fcn.00401220
add esp, 4
push esi
mov dword [ebp - 0xc0], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ebx, dword [ebp - 0xb8]
mov ecx, pe_nt_image_headers32
mov eax, ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x401562
push ebx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 0xc0]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405c9f
mov esp, ebp
pop ebp
ret