Function at 0x40c55a
Capabilities:
Encode data using xor

Disassembly:
push 0x130
mov eax, 0x4e5d0d
call fcn.004bed19
mov esi, ecx
mov dword [ebp - 0x80], esi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040228a
lea ebx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
lea edi, [ebp - 0x3c]
call fcn.004072d6
add esi, 8
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40c5e1
push dword [ebp - 0x3c]
xor ecx, ecx
call fcn.004072a5
cmp eax, 0xffffffff
je 0x40c5e1
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
xor al, al
call fcn.004bed9c
ret 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040228a
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040228a
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebx - 0xc]
cmp eax, 0x17
je 0x40c623
lea ecx, [ebx - 0x10]
jmp 0x40cd82
call fcn.00499991
push eax
lea ecx, [ebp - 0x48]
call fcn.004727f7
mov byte [ebp - 4], 4
call fcn.00499991
push eax
lea ecx, [ebp - 0x64]
call fcn.004727f7
mov byte [ebp - 4], 5
call fcn.00499991
push eax
lea ecx, [ebp - 0x5c]
call fcn.004727f7
mov byte [ebp - 4], 6
call fcn.00499991
push eax
lea ecx, [ebp - 0x58]
call fcn.004727f7
mov edi, 0x5267d0
push edi
xor ecx, ecx
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40cc23
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
push dword [ebx - 0xc]
inc esi
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
push edi
xor ecx, ecx
lea esi, [ebp - 0x40]
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40c964
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x40]
push dword [eax - 0xc]
inc esi
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
push edi
xor ecx, ecx
lea esi, [ebp - 0x40]
call fcn.004072a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40c964
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x40]
push dword [eax - 0xc]
inc esi
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040731f
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.0040257e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004027b0
push 6
pop edi
push 2
xor ecx, ecx
pop esi
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
sub ecx, eax
movzx edx, word [eax]
mov word [eax + ecx], dx
add eax, esi
test dx, dx
jne 0x40c7e6
xor ecx, ecx
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov edx, eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], edx
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, esi
test cx, cx
jne 0x40c814
xor ecx, ecx
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov ebx, eax
mov eax, dword [ebp - 0x5c]
mov edx, ebx
pop ecx
mov dword [ebp - 0xac], ebx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, esi
test cx, cx
jne 0x40c847
xor ecx, ecx
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov edx, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], edx
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, esi
test cx, cx
jne 0x40c875
xor ecx, ecx
mov eax, edi
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004985df
mov edx, dword [ebp - 0x70]
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x78]
sub eax, edx
mov dword [ebp - 0x4c], edx
sub dword [ebp - 0x4c], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], 5
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
or dword [ebp - 0x6c], 0xffffffff
or dword [ebp - 0x68], 0xffffffff
add eax, ecx
mov dl, byte [eax + edx]
mov al, byte [eax]
mov byte [ebp - 0x51], al
xor edi, edi
cmp byte [edi + str.9PHVYB7EM6TW5SFZ8KUA3CNX4G2DRJ], dl
jne 0x40c8db
mov dword [ebp - 0x6c], edi
mov al, byte [ebp - 0x51]
cmp byte [edi + str.23456789ABCDEFGHJKMNPRSTUVWXYZ], al
jne 0x40c8e9
mov dword [ebp - 0x68], edi
inc edi
cmp edi, 0x1e
jl 0x40c8d0
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x68]
jns 0x40c8fa
add eax, 0x1e
movsx ax, byte [eax + str.23456789ABCDEFGHJKMNPRSTUVWXYZ]
mov word [ecx], ax
add ecx, esi
dec dword [ebp - 0x50]
jne 0x40c8b6
mov edi, dword [ebp - 0x7c]
xor eax, eax
push edi
mov ecx, 0x584a60
mov word [edi + 0xa], ax
call fcn.0040f54b
test eax, eax
je 0x40c99b
mov eax, 0x5267c4
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, esi
test cx, cx
jne 0x40c92d
push dword [ebp - 0x70]
call fcn.004985ea
pop ecx
push dword [ebp - 0x78]
call fcn.004985ea
pop ecx
push edi
call fcn.004985ea
pop ecx
push ebx
call fcn.004985ea
pop ecx
push dword [ebp - 0x74]
call fcn.004985ea
pop ecx
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
jmp 0x40cd82
mov al, byte [ebx]
xor esi, esi
mov dword [ebp - 0x60], esi
xor ecx, ecx
cmp byte [ecx + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4], al
je 0x40c9b4
inc ecx
cmp ecx, 0xb
jl 0x40c9a4
jmp 0x40c9b7
mov dword [ebp - 0x60], ecx
mov al, byte [ebx + 2]
push 0xb
pop edx
mov ecx, edx
cmp byte [edx + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4], al
je 0x40c9cf
inc edx
cmp edx, 0x17
jl 0x40c9bf
jmp 0x40c9d1
mov ecx, edx
add ecx, 0xfffffff5
or edi, 0xffffffff
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov al, byte [esi + str.VE9WMBCX8SP3DJT7A5GZUNHF2R6KY4]
cmp al, byte [ebx + 4]
jne 0x40c9eb
mov dword [ebp - 0x4c], esi
cmp al, byte [ebx + 6]
jne 0x40c9f2
mov edi, esi
cmp al, byte [ebx + 8]
jne 0x40c9fa
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x4c], 0
jl 0x40ca0a
test edi, edi
jl 0x40ca0a
cmp dword [ebp - 0x50], 0
jge 0x40ca10
inc esi
cmp esi, 0x1e
jl 0x40c9dd
mov eax, dword [ebp - 0x4c]
cdq
sub eax, edx
mov esi, eax
mov eax, edi
cdq
sar esi, 1
add esi, 0xe
sub eax, edx
sar eax, 1
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], eax
jne 0x40ca33
mov dword [ebp - 0x68], 0xc
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0x1e
test eax, eax
je 0x40ca44
mov dword [ebp - 0x4c], eax
cmp esi, 0x64
jae 0x40ca52
add esi, 0x7d0
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp - 0x60]
imul ecx, ecx, 0x1e
imul eax, eax, 0x16d
lea eax, [eax + ecx + 4]
mov dword [ebp - 0x44], eax
call fcn.00499991
push eax
lea ecx, [ebp - 0x84]
call fcn.004727f7
mov byte [ebp - 4], 0xe
xor edi, edi
mov eax, dword [ebp - 0x74]
mov al, byte [eax + edi*2]
xor esi, esi
cmp byte [esi + str.9PHVYB7EM6TW5SFZ8KUA3CNX4G2DRJ], al
je 0x40ca92
inc esi
cmp esi, 0xa
jl 0x40ca84
call fcn.00499991
push eax
lea ecx, [ebp - 0x60]
call fcn.004727f7
push esi
lea eax, [ebp - 0x60]
push 0x526688
push eax
mov byte [ebp - 4], 0xf
call fcn.00402967
mov esi, dword [ebp - 0x60]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x84]
push esi
call fcn.0040f682
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.004027b0
inc edi
cmp edi, 5
jl 0x40ca7c
mov esi, dword [ebp - 0x84]
push esi
call fcn.004ba70f
pop ecx
push 8
mov dword [ebp - 0x60], eax
pop ecx
xor eax, eax
mov word [ebp - 0x38], ax
push ebx
push dword [ebp - 0x7c]
lea edi, [ebp - 0x36]
push dword [ebp - 0x70]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push 0x5267d4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x12
call fcn.004985df
mov ebx, eax
pop ecx
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], eax
push 3
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00406d5a
mov edx, dword [ebp - 0x13c]
mov edi, ebx
mov eax, edx
sub edi, edx
mov cl, byte [eax]
mov byte [eax + edi], cl
inc eax
test cl, cl
jne 0x40cb49
lea eax, [ebp - 0x138]
cmp edx, eax
je 0x40cb64
push edx
call fcn.004b9cc0
pop ecx
mov dword [ebp - 0x50], 0x11
mov eax, ebx
xor edi, edi
movzx edx, byte [eax]
mov ecx, edi
shr ecx, 8
shl edi, 8
xor ecx, edx
xor edi, dword [ecx*4 + 0x57d608]
and edi, 0xffff
inc eax
dec dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0
jg 0x40cb6f
push ebx
call fcn.004985ea
movzx eax, di
cmp dword [ebp - 0x60], eax
pop ecx
push dword [ebp - 0x70]
sete bl
call fcn.004985ea
pop ecx
push dword [ebp - 0x78]
call fcn.004985ea
pop ecx
push dword [ebp - 0x7c]
call fcn.004985ea
pop ecx
push dword [ebp - 0xac]
call fcn.004985ea
pop ecx
push dword [ebp - 0x74]
call fcn.004985ea
pop ecx
lea ecx, [esi - 0x10]
call fcn.004027b0
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004027b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x40cc68
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004027b0
lea ecx, [ebx - 0x10]
call fcn.004027b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
xor bl, bl
test bl, bl
je 0x40cd92
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x80]
call fcn.0040c4be
mov byte [ebp - 4], 0x10
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.0040f54b
test eax, eax
jne 0x40cdc2
push 2
lea eax, [ebp - 0x48]
push eax
call fcn.0040b964
fldz
push 0x400
fstp qword [ebp - 0x90]
xor esi, esi
push esi
push dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x88], esi
call fcn.0040f756
test al, al
je 0x40cdba
cmp dword [ebp - 0x88], esi
jne 0x40cdba
lea eax, [ebp - 0xa8]
call fcn.0040fbce
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f98f
test al, al
je 0x40cd37
lea eax, [ebp - 0xa8]
push eax
lea esi, [ebp - 0x9c]
lea eax, [ebp - 0x90]
call fcn.0040f90d
mov ecx, esi
call fcn.0040f8dd
fcomp qword [0x559620]
fnstsw ax
test ah, 5
jp 0x40cdba
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x40c5c1
lea esi, [ebp - 0x90]
lea edi, [ebp - 0xa8]
call fcn.0040f702
test al, al
je 0x40cdba
mov eax, esi
push eax
lea esi, [ebp - 0x9c]
mov eax, edi
call fcn.0040f90d
mov ecx, esi
call fcn.0040f8dd
fild dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
test eax, eax
jge 0x40cd73
fadd qword [0x559618]
mov ecx, dword [ebp - 0x48]
fcompp
add ecx, 0xfffffff0
fnstsw ax
test ah, 5
jp 0x40cda6
call fcn.004027b0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
xor bl, bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov al, bl
jmp 0x40c5d9
call fcn.004027b0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004027b0
mov bl, 1
jmp 0x40cd94
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
jmp 0x40cda6
lea eax, [ebp - 0xb8]
call fcn.0040fbce
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0040f9d9
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f98f
test al, al
je 0x40cdab
lea eax, [ebp - 0xb8]
push eax
lea esi, [ebp - 0xa8]
lea eax, [ebp - 0x9c]
call fcn.0040f90d
mov ecx, esi
call fcn.0040f8dd
fcomp qword [0x559620]
fnstsw ax
test ah, 0x41
jne 0x40cdab
jmp 0x40cd87