Function at 0x40277d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c6f05
call fcn.004c6ae8
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ecx
push 3
pop esi
push esi
lea ecx, [ebp - 0x80]
call fcn.0043852b
push 2
lea ecx, [ebp - 0x98]
call fcn.0043852b
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 0x6b43d271
mov dword [ebp - 0x28], 0xfffffffc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x4027e0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x80]
mov dword [eax + ecx*4], 0xfffffff9
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x4027d0
mov dword [ebp - 0x1c], ebx
jmp 0x4027fd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], 0x9c4c8d3c
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x4027ea
mov dword [ebp - 0x1c], 0x4de9
cmp dword [ebp - 0x1c], 0x4fd8
jle 0x402854
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x28], ebx
mov eax, edi
cdq
idiv ebx
xor edx, esi
mov eax, edx
cdq
push edx
push eax
mov ecx, 0xadaa58
call fcn.00438300
inc ebx
cmp ebx, 0x1bc1
jl 0x40281a
inc edi
cmp edi, 0x6468
push 0
pop ebx
jl 0x402817
inc esi
cmp esi, 0x4a68
jl 0x402815
push 3
pop esi
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov dword [ecx + 4], eax
test eax, eax
je 0x40291f
mov dword [ebp - 0x14], edi
movdqa xmm0, xmmword [0xacb8b0]
movdqu xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x50]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0043b57f
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x14], ebx
mov eax, edi
jne 0x4028b3
mov eax, ebx
mov ecx, dword [ebp - 0x18]
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], eax
xor edx, edx
mov eax, dword [ebp - 0x5c]
cmp ecx, dword [eax + 4]
setne dl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, edx
setne cl
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp ecx, eax
setle dl
xor ecx, ecx
mov eax, dword [ebp - 0x80]
cmp edx, dword [eax + 4]
setl cl
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x5c]
call fcn.004385fd
jmp 0x402934
mov dword [ebp - 0x28], edi
xor eax, eax
cmp dword [ecx + 4], 0xca8c
setle al
mov dword [ecx + 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], 0x4a67
jge 0x40294f
mov edx, 0xabadcc
mov ecx, 0xadaa58
call fcn.0043ab89
or dword [ebp - 4], 0xffffffff
jmp 0x402981
mov byte [ebp - 0x21], bl
cmp byte [ebp - 0x21], 0
je 0x402991
push ebx
call dword [0xade4bc]
lea ecx, [ebp - 0x98]
call fcn.004385fd
lea ecx, [ebp - 0x80]
call fcn.004385fd
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0xf2ee
mov dword [ebp - 0x1c], 0x7e780ca9
mov dword [ebp - 0x18], 0xb7c7
push 4
lea ecx, [ebp - 0x68]
call fcn.0043852b
mov dword [ebp - 0x34], 0x6802
mov dword [ebp - 0x14], ebx
jmp 0x4029e1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x4029d5
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp ecx, eax
setne dl
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 0xe9e84363
setne cl
sub ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp eax, ecx
setg dl
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp edx, eax
setge cl
mov eax, 0xfadf6285
cmp eax, ecx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], ebx
je 0x402be0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], esi
jg 0x402d03
mov dword [ebp - 0x14], 0xfffffff7
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp eax, ecx
setle dl
imul ecx, edx, 0xfffffffa
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp ecx, eax
setg dl
add edx, dword [ebp - 0x1c]
neg edx
cmp dword [ebp - 0x14], edx
jg 0x402a9c
cmp dword [ebp - 0x14], ebx
jne 0x402d03
jmp 0x402bbd
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x30], 0x3007
cmp dword [ebp - 0x30], 0x3193
jle 0x402b56
push 0x1e24
call dword [0xade4b4]
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov ecx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov eax, esi
cdq
idiv ecx
mov ecx, edx
mov dword [ebp - 0x34], ecx
mov eax, ebx
mov esi, ebx
mov edx, ecx
mov ecx, eax
sar edx, cl
mov dword [ebp - 0x28], edx
mov eax, edx
mov ecx, esi
sar eax, cl
cdq
push edx
push eax
lea ecx, [ebp - 0xcc]
call fcn.00401988
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x402b00
mov eax, dword [eax]
push eax
call fcn.004b1347
pop ecx
push ebx
push edi
lea ecx, [ebp - 0xcc]
call fcn.00438ad9
inc esi
cmp esi, 0x21bf
mov edx, dword [ebp - 0x28]
jl 0x402ae2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x6943
mov ecx, dword [ebp - 0x34]
jl 0x402ad7
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x7c0f
mov esi, dword [ebp - 0x18]
jl 0x402ac8
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x302c
jl 0x402ac3
push 3
pop esi
cmp byte [ebp - 0x21], 0
je 0x402b70
push ebx
push ebx
push ebx
push ebx
push 0x11a8
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0xade2d4]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30], 0x2c74
jge 0x402b8b
push 0xabae28
call fcn.004b1347
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x402bbd
mov dword [ebp - 0x18], ebx
jmp 0x402bd2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x56fe
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x402bc2
inc dword [ebp - 0x1c]
jmp 0x402a4b
push esi
lea ecx, [ebp - 0xa4]
call fcn.0043852b
mov dword [ebp - 0x14], 0xd55faf23
mov dword [ebp - 0x40], 0x9b34
mov dword [ebp - 0x20], ebx
jmp 0x402c12
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xa4]
mov dword [eax + ecx*4], 5
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jl 0x402bff
mov dword [ebp - 0x20], 0x10
jmp 0x402c44
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], ebx
jl 0x402c41
mov byte [ebp - 0x21], bl
cmp byte [ebp - 0x21], 0
je 0x402c3c
push 0x18e
call dword [0xade0a4]
dec dword [ebp - 0x1c]
jns 0x402c28
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xffffffee
je 0x402c20
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
test edx, edx
mov ecx, edi
cmovne ecx, ebx
cmp dword [ebp - 0x14], ebx
je 0x402c6d
mov eax, dword [ebp - 0x68]
cmp dword [eax], ebx
jne 0x402c6d
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov edx, 0x9e5faf1b
mov eax, dword [ebp - 0x68]
cmp edx, dword [eax + 4]
sbb eax, eax
inc eax
xor edx, edx
cmp ecx, eax
sete dl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, eax
setg cl
xor edx, edx
cmp ecx, 0x464eb7f0
setne dl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp dword [ebp - 0x28], eax
setge cl
imul eax, ecx, 0x2ac9
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, 0xffffffff
setg cl
xor edx, edx
cmp ecx, 0x632cbeb0
setne dl
add edx, dword [ebp - 0x14]
xor eax, eax
cmp edx, 0x44e4153c
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0xa4]
call fcn.004385fd
mov dword [ebp - 0x1c], 0xfffffff6
lea ecx, [ebp - 0x68]
call fcn.004385fd
mov dword [ebp - 0x18], 0x399841b3
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x38], 0x12bad479
push esi
lea ecx, [ebp - 0x8c]
call fcn.0043852b
mov dword [ebp - 0x30], 0x227283a3
mov dword [ebp - 0x30], 0x51abe719
mov dword [ebp - 0x18], ebx
jmp 0x402d57
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x74], 0x9ed02e88
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x402d49
mov dword [ebp - 0x18], ebx
jmp 0x402d74
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], 0x411e69d0
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x402d61
mov dword [ebp - 0x18], 0xffffffec
jmp 0x402ea3
mov dword [ebp - 0x14], 0x57102d14
mov dword [ebp - 0x20], 0x3cc47d1a
mov dword [ebp - 0x14], ebx
jmp 0x402e96
mov dword [ebp - 0x28], 0xd5a5
mov dword [ebp - 0x40], 0x79b69b2e
mov dword [ebp - 0x34], 0x17473468
mov dword [ebp - 0x30], 0x829ed890
mov dword [ebp - 0x34], 0xffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x402df2
cmp dword [ebp - 0x74], ebx
jne 0x402df2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, edi
setl cl
cmp ecx, 0xffffffff
sbb eax, eax
neg eax
sub eax, 0x21237857
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp ecx, eax
setne dl
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov ecx, 0xb38b4b72
cmp ecx, eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 0x14]
jge 0x402e20
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x20], ebx
jne 0x402e2f
cmp dword [ebp - 0x6c], ebx
mov ecx, ebx
je 0x402e31
mov ecx, edi
mov eax, dword [ebp - 0x8c]
mov dword [eax], ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x14], ebx
jne 0x402e88
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp dword [ecx + 4], eax
setge dl
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp edx, eax
setg cl
imul eax, ecx, 0x56e
test eax, eax
jne 0x402e6f
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x28], ebx
mov ecx, ebx
je 0x402e8a
mov ecx, edi
mov eax, dword [ebp - 0x1c]
imul eax, ecx
mov dword [ebp - 0x20], eax
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffed
je 0x402d9b
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xb
jg 0x402d85
lea ecx, [ebp - 0x8c]
call fcn.004385fd
mov eax, dword [ebp - 0x3c]
mov dword [eax], 2
jmp 0x402fd5
mov dword [ebp - 0x38], 0xaa84cbed
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x28], 0x6cd04cd0
mov dword [ebp - 0x38], 0xfe57b6a6
mov dword [ebp - 0x14], ebx
jmp 0x402ef4
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x4c], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x402eea
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], 0x20859496
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, 0x82ba
setle cl
add ecx, 0x7d2a7e9f
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x48]
xor ecx, ecx
cmp eax, 2
setg cl
mov eax, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebp - 0x48]
add eax, ecx
xor ecx, ecx
cmp eax, 0x218f0ed6
setne cl
xor edx, edx
cmp ecx, 7
setl dl
mov eax, dword [ebp - 0x48]
xor ecx, ecx
cmp edx, eax
setge cl
mov eax, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, eax
mov eax, dword [ebp - 0x48]
xor edx, edx
cmp ecx, eax
setge dl
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp dword [ebp - 0x38], eax
setne cl
xor eax, eax
cmp ecx, 0xfffffffb
setge al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0xf3de0369
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp ecx, eax
setle dl
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, 0x697e
setle cl
sub ecx, 6
imul edx, ecx
mov eax, 0xc3ad3b31
cmp eax, edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x3c]
inc dword [eax]
cmp dword [eax], 0x14
jne 0x402ec6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret