Function at 0x409de0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
movsx edx, byte [0x40e001]
mov dword [esp + 8], 0xbc
mov dword [esp + 0x1c], 0x76
mov dword [esp + 0xc], 0x4d
mov ecx, 0xfc4
jmp 0x409e10
mov eax, edx
and eax, 7
xor eax, 0xf2
sub ecx, 1
mov word [0x40e02c], ax
jne 0x409e10
push ebx
push ebp
push esi
push edi
mov edi, dword [0x40e024]
mov ecx, edi
imul ecx, ecx, 0x4d
movsx ebp, word [0x40e014]
mov esi, dword [0x40e020]
mov eax, 0x42776e9b
mul ecx
shr edx, 7
movzx ecx, dx
movsx edx, byte [section..data_1]
movsx ecx, cx
lea esi, [ecx + esi + 0x76]
movsx ecx, word [0x40e02c]
mov ebx, dword [0x40e00c]
mov dword [esp + 0x3c], edx
imul edx, edx, 0x1a
mov eax, ebp
or eax, 1
lea eax, [eax + ecx + 0x13f]
mov dword [0x40e028], eax
mov eax, 0xbbc8408d
mul edx
mov al, byte [0x40e028]
sar esi, 0xf9
xor esi, edi
mov dword [esp + 0x20], ecx
mov edi, edx
shr edi, 9
mov word [0x40e01c], si
add ebx, 0xfffffff9
movsx esi, si
mov ecx, edi
shl ebx, cl
xor ecx, ecx
sub al, 0x44
cmp esi, 0x160
sete cl
mov edx, 0xbc
mov dword [esp + 0x14], esi
mov esi, dword [0x40e010]
or ebp, edi
or dword [0x40e008], ebp
mov dword [0x40e018], 0
sub ebx, ecx
movsx ecx, al
shl edx, cl
mov dword [esp + 0x34], ecx
mov cl, byte [0x40e02c]
add cl, 0x52
xor edx, dword [esp + 0x20]
mov dword [esp + 0x48], edi
xor esi, edx
cmp dword [0x40e004], 0
mov byte [esp + 0x13], al
mov dword [0x40e010], esi
mov byte [esp + 0x12], cl
je 0x409f1a
test al, al
jns 0x409f1a
mov eax, 1
jmp 0x409f1c
xor eax, eax
xor dword [0x40e020], eax
mov ecx, 0xf2
mov dword [esp + 0x28], 0x37e
nop
mov eax, dword [0x40e020]
add eax, 0x4d
movzx edx, ax
mov dword [esp + 0x30], edx
mov eax, ecx
cdq
mov ecx, 0x191
idiv ecx
mov ebp, 0xd8
add edx, dword [0x40e02c]
movzx eax, dx
movsx ecx, ax
mov dword [esp + 0x24], eax
mov eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x14]
sar eax, cl
mov dword [0x40e020], eax
add edx, dword [0x40e008]
sub dword [esp + 0x28], 1
movzx edx, dx
jne 0x409f30
mov cx, word [esp + 0x24]
mov ebp, dword [0x40e024]
sar cx, 0xf
movsx ecx, cx
mov eax, ebp
shl eax, 0x1a
xor ecx, eax
movsx eax, byte [0x40e001]
or ecx, eax
mov eax, dword [esp + 0x3c]
or ebx, ecx
xor ecx, ecx
test dx, dx
setne cl
shl eax, cl
mov dword [0x40e00c], ebx
sub dword [0x40e004], eax
test esi, esi
je 0x409fd7
mov eax, dword [esp + 0x34]
lea ecx, [edi + 0x4d]
shl eax, cl
mov dword [esp + 0x28], 1
cmp eax, dword [esp + 0x20]
je 0x409fdf
mov dword [esp + 0x28], 0
mov cl, byte [esp + 0x28]
or byte [0x40e001], cl
jne 0x40a001
cmp word [esp + 0x30], 0
je 0x409ff7
test edi, edi
jne 0x40a001
xor eax, eax
mov word [0x40e014], ax
jmp 0x40a00d
mov ecx, 1
mov word [0x40e014], cx
or ebp, 0xdf
je 0x40a026
cmp dword [0x40e028], 0
mov dword [esp + 0x28], 1
jne 0x40a02e
mov dword [esp + 0x28], 0
movsx ebp, word [esp + 0x30]
mov al, byte [esp + 0x28]
or byte [0x40e001], al
mov ecx, ebp
or ecx, dword [0x40e004]
or ecx, 0x4d
je 0x40a05a
cmp dword [0x40e018], 0
je 0x40a05a
mov eax, 1
jmp 0x40a05c
xor eax, eax
and dword [0x40e020], eax
movsx eax, word [esp + 0x24]
movsx ecx, dx
lea edx, [eax + ebp]
add edx, ecx
cmp dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
sete al
xor byte [section..data_1], al
test ebx, ebx
je 0x40a0a4
movsx edx, byte [section..data_1]
mov eax, 0x1a
sub eax, edx
mov edx, 0xbc
shl edx, cl
xor eax, edx
je 0x40a0a4
mov eax, 1
jmp 0x40a0a6
xor eax, eax
sub dword [0x40e008], eax
movsx ecx, byte [esp + 0x12]
xor eax, eax
cmp word [0x40e014], 1
sete al
imul ecx, dword [0x40e018]
or dword [0x40e004], eax
mov eax, 0x19453809
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 9
cmp byte [section..data_1], 0
movzx ecx, cx
mov dword [esp + 0x20], ecx
jne 0x40a0fa
mov edx, dword [esp + 0x28]
xor edx, 0x76
or edx, edi
jne 0x40a0fa
xor eax, eax
jmp 0x40a0ff
mov eax, 1
or byte [0x40e001], al
mov dword [esp + 0x3c], 0x4e5
lea ecx, [ecx]
test ebx, ebx
je 0x40a3d3
xor eax, eax
cmp dword [esp + 0x34], esi
setne al
cmp dword [esp + 0x18], eax
jae 0x40a3d3
movsx eax, word [esp + 0x2c]
cdq
mov ecx, 0x2ed
idiv ecx
mov eax, dword [esp + 0x20]
mov cx, di
sar ax, cl
xor ebx, ebx
movsx ecx, ax
mov eax, dword [0x40e004]
add edx, dword [0x40e01c]
cmp dword [0x40e018], ecx
mov ecx, dword [esp + 0x34]
movzx edx, dx
sete bl
mov dword [esp + 0x2c], edx
xor edx, edx
cmp dword [esp + 0x28], eax
sete dl
xor ebx, edx
add ecx, edi
jne 0x40a17f
cmp byte [esp + 0x12], cl
jne 0x40a17f
xor eax, eax
jmp 0x40a184
mov eax, 1
movzx ecx, byte [0x40e018]
xor edx, edx
cmp ebx, eax
mov al, byte [esp + 0x1c]
sete dl
xor cl, al
mov dword [esp + 0x38], 0x41
mov word [0x40e01c], dx
mov dl, bl
add dl, 0x1a
or cl, dl
or cl, al
xor byte [section..data_1], cl
mov cx, word [esp + 0x20]
xor eax, eax
cmp cx, word [esp + 0x24]
mov ecx, dword [esp + 0x18]
sete al
xor eax, ebx
sub dword [0x40e028], eax
mov eax, 0x4c346405
mul ecx
shr edx, 8
imul edx, edx, 0x35c
mov eax, esi
sub eax, edx
add eax, ecx
movzx ecx, byte [esp + 0x13]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
sar ax, cl
mov cx, di
sar ax, cl
mov word [esp + 0x14], ax
cmp dword [0x40e018], 0
jne 0x40a216
cmp byte [esp + 0x12], 0
je 0x40a358
mov edx, dword [esp + 0x24]
mov eax, dword [0x40e004]
and eax, edx
mov cl, 0x1a
sub cl, dl
mov word [0x40e014], ax
mov edx, dword [0x40e014]
sar dx, cl
add byte [section..data_1], dl
cmp word [0x40e02c], 0
jne 0x40a24f
cmp byte [esp + 0x13], 0
jne 0x40a24f
xor ecx, ecx
jmp 0x40a254
mov ecx, 1
movsx esi, word [0x40e01c]
add esi, dword [esp + 0x28]
sub ax, cx
movsx edx, ax
movsx eax, byte [esp + 0x12]
mov bl, byte [section..data_1]
xor ecx, ecx
cmp dword [esp + 0x18], eax
mov eax, ebp
sete cl
xor bl, byte [esp + 0x2c]
xor eax, edi
movsx ebx, bl
mov dword [esp + 0x44], ebx
and esi, ecx
xor esi, edx
neg eax
sbb eax, eax
neg eax
or al, byte [0x40e018]
mov dword [esp + 0x2c], 0x7c
movsx ecx, al
add ecx, dword [esp + 0x1c]
mov byte [section..data_1], al
mov eax, ebp
sub eax, edi
shr eax, cl
mov edi, dword [0x40e020]
xor edi, dword [esp + 0x1c]
mov ecx, ebp
and eax, edx
sub dword [0x40e024], eax
movsx eax, byte [esp + 0x12]
and eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, 0x6bf790a9
imul dword [esp + 0x28]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x40e018]
shr edx, cl
or edx, ebx
mov ecx, dword [0x40e004]
or ecx, dword [esp + 0x40]
jne 0x40a30b
movsx ecx, word [esp + 0x20]
add ecx, dword [esp + 0x44]
jne 0x40a30b
xor ebx, ebx
jmp 0x40a310
mov ebx, 1
cmp dword [0x40e018], 0
je 0x40a32b
cmp word [esp + 0x20], 0
mov dword [0x40e008], 1
jne 0x40a335
mov dword [0x40e008], 0
mov ecx, dword [0x40e028]
or dword [0x40e004], edi
add ecx, eax
sub dword [esp + 0x2c], 1
mov dword [esp + 0x18], ecx
mov dword [0x40e028], edx
jne 0x40a2f0
mov edi, dword [esp + 0x48]
mov eax, 0xeebf2f19
mul dword [esp + 0x18]
mov al, byte [0x40e024]
sub al, byte [esp + 0x14]
shr edx, 9
add edx, dword [0x40e01c]
mov byte [0x40e001], al
movsx eax, byte [esp + 0x12]
movzx edx, dx
mov dword [esp + 0x2c], edx
mov edx, dword [0x40e028]
mov ecx, ebp
shl edx, cl
add eax, esi
or eax, edx
or eax, dword [esp + 0x18]
add dword [0x40e024], eax
cmp byte [0x40e001], 0
je 0x40a3b4
cmp word [esp + 0x30], 0
je 0x40a3b4
mov eax, 1
jmp 0x40a3b6
xor eax, eax
xor ebx, eax
mov eax, ebx
shl eax, cl
sub dword [esp + 0x38], 1
mov dword [0x40e00c], ebx
mov word [0x40e014], ax
jne 0x40a202
sub dword [esp + 0x3c], 1
jne 0x40a110
mov dword [0x40e010], esi
call fcn.00409b70
mov ax, word [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret