Function at 0x4022d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41103c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov di, cx
mov ebx, edx
test di, di
je 0x402a81
push 0x3ff
lea eax, [ebp - 0x817]
push 0
push eax
mov byte [ebp - 0x818], 0
call fcn.00407160
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x417]
push 0
push ecx
mov byte [ebp - 0x418], 0
call fcn.00407160
add esp, 0xc
push 0
call fcn.004039eb
mov dword [ebp - 0x81c], edx
lea edx, [ebp - 0x820]
add esp, 4
push edx
mov dword [ebp - 0x820], eax
call fcn.004039c4
mov esi, eax
movzx eax, di
add esp, 4
push eax
lea ecx, [ebp - 0x818]
push ebx
push ecx
call fcn.0040a2d0
mov edx, dword [str.___LJJK_N_]
mov eax, dword [0x40f2d8]
mov ecx, dword [0x40f2dc]
mov dword [ebp - 0x18], edx
mov dl, byte [0x40f2e0]
add esp, 0xc
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], dl
lea eax, [ebp - 0x18]
je 0x4023a2
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x402397
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 fcn.004030b5
lea eax, [ebp - 0x418]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023e7
mov ebx, dword [ebp + 8]
sub eax, edx
mov edx, dword [0x412d08]
lea ecx, [ebp - 0x418]
push ecx
inc eax
push eax
push 0
push ebx
mov ecx, 0xa021
call fcn.004012a0
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x818]
call fcn.00401cd0
mov edi, eax
mov eax, dword [edi]
add esp, 0x14
push eax
call fcn.0040c302
mov eax, dword [edi]
add esp, 4
cmp byte [eax], 0
je 0x402441
xor byte [eax], 0xf
inc eax
cmp byte [eax], 0
jne 0x402438
mov esi, dword [edi]
mov ecx, str.fajync
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402470
test dl, dl
je 0x40246c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402470
add eax, 2
add ecx, 2
test dl, dl
jne 0x402450
xor eax, eax
jmp 0x402475
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40253e
mov ecx, dword [str.Fajync_f_j__]
mov edx, dword [0x40f314]
mov eax, dword [0x40f318]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x40f31c]
mov dword [ebp - 0x14], edx
mov dx, word [0x40f320]
mov dword [ebp - 0x10], eax
mov al, byte [0x40f322]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov byte [ebp - 6], al
mov ecx, dword [edi + 4]
push ecx
call fcn.00403384
mov esi, eax
imul esi, esi, 0xea60
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [0x411f68], esi
lea eax, [ebp - 0x18]
je 0x4024e3
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4024d8
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 fcn.004030b5
lea eax, [ebp - 0x418]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402530
sub eax, edx
jmp 0x402a41
mov ecx, str.k_xac_nkjwjl
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402565
test dl, dl
je 0x402561
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402565
add eax, 2
add ecx, 2
test dl, dl
jne 0x402545
xor eax, eax
jmp 0x40256a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402751
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
call fcn.00401df0
test eax, eax
jne 0x4025d4
mov eax, dword [str.K_xac_nk_infczj]
mov ecx, dword [0x40f344]
mov edx, dword [0x40f348]
mov dword [ebp - 0x418], eax
mov eax, dword [0x40f34c]
mov dword [ebp - 0x414], ecx
mov cl, byte [0x40f350]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x410], edx
mov byte [ebp - 0x408], cl
call section..text
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025c7
jmp 0x4026b9
mov eax, dword [0x40f35c]
mov edx, dword [str.K_xac_nk_zllj]
mov ecx, dword [0x40f360]
mov dword [ebp - 0x414], eax
mov al, byte [0x40f368]
mov dword [ebp - 0x418], edx
mov edx, dword [0x40f364]
mov byte [ebp - 0x408], al
lea eax, [ebp - 0x418]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], edx
call section..text
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402620
mov cx, word [0x40f354]
mov dl, byte [0x40f356]
mov word [eax], cx
mov byte [eax + 2], dl
mov edi, dword [edi + 8]
call fcn.00401f40
test eax, eax
jne 0x4026ce
mov eax, dword [str.Jwjlzf_a_infczj]
mov ecx, dword [0x40f370]
mov edx, dword [0x40f374]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40f378]
mov dword [ebp - 0x14], ecx
mov cx, word [0x40f37c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov word [ebp - 8], cx
call section..text
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402682
lea edi, [ebp - 0x418]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402692
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x418]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026b1
mov dx, word [0x40f354]
mov cl, byte [0x40f356]
mov word [eax], dx
mov byte [eax + 2], cl
jmp 0x40273c
mov eax, dword [0x40f384]
mov edx, dword [str.Jwjlzf_a_zllj]
mov ecx, dword [0x40f388]
mov dword [ebp - 0x14], eax
mov ax, word [0x40f390]
mov dword [ebp - 0x18], edx
mov edx, dword [0x40f38c]
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
call section..text
lea edx, [ebp - 0x418]
sub edx, eax
jmp 0x402710
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402710
lea eax, [ebp - 0x418]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402721
mov cx, word [0x40f354]
mov dl, byte [0x40f356]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x418]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402745
jmp 0x402a3e
mov ecx, str.jwjl
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402778
test dl, dl
je 0x402774
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402778
add eax, 2
add ecx, 2
test dl, dl
jne 0x402758
xor eax, eax
jmp 0x40277d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402921
lea eax, [ebp - 0x818]
push 0x20
push eax
call fcn.004032b0
add esp, 8
test eax, eax
jne 0x40280e
mov ecx, dword [str.Jwjlzf_a_infczj]
mov edx, dword [0x40f370]
mov eax, dword [0x40f374]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x40f378]
mov dword [ebp - 0x14], edx
mov dx, word [0x40f37c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
call section..text
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027d2
lea edi, [ebp - 0x418]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4027e2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x418]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402801
jmp 0x4028f9
lea edi, [eax + 1]
call fcn.00401f40
test eax, eax
jne 0x4028a1
mov eax, dword [str.Jwjlzf_a_infczj]
mov ecx, dword [0x40f370]
mov edx, dword [0x40f374]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40f378]
mov dword [ebp - 0x14], ecx
mov cx, word [0x40f37c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov word [ebp - 8], cx
call section..text
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402855
lea edi, [ebp - 0x418]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402865
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x418]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402884
mov dx, word [0x40f354]
mov cl, byte [0x40f356]
mov word [eax], dx
mov byte [eax + 2], cl
jmp 0x40290c
mov eax, dword [0x40f384]
mov edx, dword [str.Jwjlzf_a_zllj]
mov ecx, dword [0x40f388]
mov dword [ebp - 0x14], eax
mov ax, word [0x40f390]
mov dword [ebp - 0x18], edx
mov edx, dword [0x40f38c]
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
call section..text
lea edx, [ebp - 0x418]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4028e0
lea eax, [ebp - 0x418]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4028f1
mov cx, word [0x40f354]
mov dl, byte [0x40f356]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x418]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402915
jmp 0x402a3e
mov ecx, str.k_xac_nk
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402948
test dl, dl
je 0x402944
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402948
add eax, 2
add ecx, 2
test dl, dl
jne 0x402928
xor eax, eax
jmp 0x40294d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402a72
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
call fcn.00401df0
test eax, eax
jne 0x4029cd
mov eax, dword [str.K_xac_nk_infczj]
mov ecx, dword [0x40f344]
mov edx, dword [0x40f348]
mov dword [ebp - 0x418], eax
mov eax, dword [0x40f34c]
mov dword [ebp - 0x414], ecx
mov cl, byte [0x40f350]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x410], edx
mov byte [ebp - 0x408], cl
call section..text
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4029b0
mov dx, word [0x40f354]
mov cl, byte [0x40f356]
mov word [eax], dx
mov byte [eax + 2], cl
jmp 0x402a2e
mov eax, dword [0x40f35c]
mov edx, dword [str.K_xac_nk_zllj]
mov ecx, dword [0x40f360]
mov dword [ebp - 0x414], eax
mov al, byte [0x40f368]
mov dword [ebp - 0x418], edx
mov edx, dword [0x40f364]
mov byte [ebp - 0x408], al
lea eax, [ebp - 0x418]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], edx
call section..text
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402a13
mov cx, word [0x40f354]
mov dl, byte [0x40f356]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x418]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a37
sub eax, edx
inc eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x418]
push ecx
push eax
push edx
mov edx, dword [0x412d08]
push ebx
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.004030a6
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x818]
call fcn.00402030
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030a6
mov esp, ebp
pop ebp
ret