Function at 0x4022a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov di, cx
mov ebx, edx
test di, di
je 0x402733
push 0x3ff
lea eax, [ebp - 0x817]
push 0
push eax
mov byte [ebp - 0x818], 0
call fcn.004068f0
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x417]
push 0
push ecx
mov byte [ebp - 0x418], 0
call fcn.004068f0
add esp, 0xc
push 0
call fcn.004033c9
mov dword [ebp - 0x81c], edx
lea edx, [ebp - 0x820]
add esp, 4
push edx
mov dword [ebp - 0x820], eax
call fcn.004033a2
mov esi, eax
movzx eax, di
add esp, 4
push eax
lea ecx, [ebp - 0x818]
push ebx
push ecx
call fcn.00409a20
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push str.___LJJK_N_
lea edx, [ebp - 0x18]
push edx
call ebx
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
je 0x402360
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402355
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
add eax, 0x76c
push eax
inc ecx
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x418]
push str._r_nCMD:_s__s__d__d__d__d:_d:_d_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x418]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023a6
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x418]
push ecx
inc eax
push eax
push 0
push edx
mov edx, dword [0x411d08]
mov ecx, 0xa021
call fcn.004012a0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add esp, 0x10
push 0x40e2a3
lea eax, [ebp - 0x818]
push eax
call edi
test eax, eax
je 0x402733
lea ecx, [ebp - 0x824]
push ecx
lea eax, [ebp - 0x818]
call fcn.00401ca0
mov esi, eax
mov eax, dword [esi]
add esp, 4
cmp byte [eax], 0
je 0x402419
jmp 0x402410
xor byte [eax], 0xf
inc eax
cmp byte [eax], 0
jne 0x402410
mov edx, dword [esi]
push str.fajync
push edx
call edi
test eax, eax
jne 0x4024be
push str.Fajync_f_j__
lea eax, [ebp - 0x18]
push eax
call ebx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov esi, eax
imul esi, esi, 0xea60
cmp byte [ebp - 0x18], 0
mov dword [0x410f68], esi
lea eax, [ebp - 0x18]
je 0x40246b
mov ecx, eax
lea esp, [esp]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402460
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x418]
push str._s__d_min_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026f4
mov ecx, dword [esi]
push str.k_xac_nkjwjl
push ecx
call edi
test eax, eax
jne 0x4025b4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.00401dc0
test eax, eax
jne 0x402519
push str.K_xac_nk_infczj
lea edx, [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x418]
call section..text
push 0x40e374
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x418]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026f3
push str.K_xac_nk_zllj
lea ecx, [ebp - 0x418]
push ecx
call ebx
lea eax, [ebp - 0x418]
call section..text
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e374
mov edx, eax
push edx
call ebx
mov edi, dword [esi + 8]
call fcn.00401f10
test eax, eax
lea eax, [ebp - 0x18]
jne 0x402571
push str.Jwjlzf_a_infczj
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x18]
call section..text
push eax
lea ecx, [ebp - 0x418]
push ecx
call ebx
jmp 0x402591
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Jwjlzf_a_zllj
push eax
call esi
lea eax, [ebp - 0x18]
call section..text
push eax
lea ecx, [ebp - 0x418]
push ecx
call esi
push 0x40e374
lea edx, [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x418]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026f3
mov ecx, dword [esi]
push str.jwjl
push ecx
call edi
test eax, eax
jne 0x402671
push 0x20
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x4025de
lea eax, [ebp - 0x18]
jmp 0x4025ed
lea edi, [eax + 1]
call fcn.00401f10
test eax, eax
lea eax, [ebp - 0x18]
jne 0x402630
push str.Jwjlzf_a_infczj
push eax
call ebx
lea eax, [ebp - 0x18]
call section..text
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
lea ecx, [ebp - 0x418]
push ecx
call esi
push 0x40e374
lea edx, [ebp - 0x418]
push edx
call esi
lea eax, [ebp - 0x418]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026f3
push str.Jwjlzf_a_zllj
push eax
call ebx
lea eax, [ebp - 0x18]
call section..text
push eax
lea ecx, [ebp - 0x418]
push ecx
call ebx
push 0x40e374
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x418]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4026f3
mov ecx, dword [esi]
push str.k_xac_nk
push ecx
call edi
test eax, eax
jne 0x402721
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.00401dc0
test eax, eax
jne 0x4026b3
push str.K_xac_nk_infczj
lea edx, [ebp - 0x418]
push edx
call ebx
lea eax, [ebp - 0x418]
call section..text
push 0x40e374
push eax
jmp 0x4026d4
push str.K_xac_nk_zllj
lea ecx, [ebp - 0x418]
push ecx
call ebx
lea eax, [ebp - 0x418]
call section..text
push 0x40e374
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x418]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026e3
lea ecx, [ebp - 0x418]
sub eax, edx
push ecx
inc eax
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [0x411d08]
push eax
mov ecx, 0xa021
call fcn.004012a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x818]
call fcn.00402000
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d39
mov esp, ebp
pop ebp
ret