Function at 0x4220c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x793d41
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x68], esi
mov eax, 4
mov dword [ebp - 0x4c], 0
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0xeb00f9
mov dword [ebp - 0x34], 0xe400ff
mov dword [ebp - 0x30], 0xad
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x38], ax
inc ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jb 0x422120
xor ecx, ecx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x4222ef
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422170
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004044f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push 1
xor eax, eax
mov dword [ebp - 0x54], 0
push 0x7d77a0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.004044f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
movq qword [esi], xmm0
cmovae eax, dword [ebp - 0x28]
mov dword [esi + 8], 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x2c], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
cmp dword [ebp - 0x50], 8
lea edx, [ebp - 0x2c]
mov ecx, eax
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push edx
push eax
push ecx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4222d0
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x30], 7
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422240
sub eax, edi
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.004044f0
mov dword [ebp - 4], 3
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x422293
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x42229f
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.004081e0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00404490
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ecx
push eax
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x422222
push 2
push dword [ebp - 0x48]
call fcn.0076e8f3
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
jmp 0x422303
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret