Function at 0x409b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + esi]
mov dword [ebp - 0x110], eax
add eax, ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 4], eax
add eax, 0xfffffffe
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x108], eax
test ebx, ebx
je 0x48bbbe
mov edx, dword [ebp + 0x14]
test edx, 0xe20f5a6f
jne 0x48bbee
test ebx, ebx
je 0x48bc00
test ecx, ecx
je 0x48bc00
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
je 0x48bbf8
test eax, eax
js 0x48bc0a
test edi, edi
js 0x48bc14
test esi, esi
js 0x48c49a
cmp esi, edi
jg 0x48c49a
mov eax, dword [ebx]
cmp eax, 0x50435245
jne 0x48bc1e
test byte [ebx + 0xc], 2
je 0x48bc32
mov ecx, dword [ebx + 8]
test ecx, 0x800
je 0x40a24d
mov eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xa8], eax
test edx, 0x8000000
jne 0x40a254
test edx, 0x8000
jne 0x40a25e
xor eax, eax
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x6c], eax
je 0x409c93
test edx, 0x2000
je 0x48bc3c
test dword [ebx + 0xc], 0x2000
movzx eax, word [ebx + 0x22]
movzx edx, word [ebx + 0x24]
lea eax, [ebx + eax*2]
mov dword [ebp - 0xc8], eax
movzx eax, word [ebx + 0x26]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xf4], 0x989680
mov dword [ebp - 0xf0], 0x989680
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], eax
jne 0x48bcb5
test dword [ebx + 0xc], 0x4000
jne 0x48bcd3
test eax, eax
jne 0x409cfb
mov eax, 0x4ae7e0
mov dword [ebp - 0x14], eax
mov eax, ecx
or eax, dword [ebp + 0x14]
test al, 0x10
jne 0x48bcf4
mov dword [ebp - 0x38], 0
test dword [ebx + 0xc], 0x100
jne 0x48bd00
mov dword [ebp - 0x1c], 0
test ecx, 0x40000
jne 0x48bd0c
mov dword [ebp - 0x30], 0
movzx eax, word [ebx + 0x26]
imul edx, eax
movzx eax, word [ebx + 0x22]
add edx, eax
mov dword [ebp - 0x60], esi
lea eax, [ebx + edx*2]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 8], eax
test cl, 0x20
jne 0x40a268
xor eax, eax
mov dword [ebp - 0x9c], eax
test ecx, 0x20000000
jne 0x40a272
xor eax, eax
mov dword [ebp - 0xa0], eax
test ecx, 0x2000000
jne 0x40a27c
xor eax, eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xcc], 0
test dl, dl
js 0x40a286
xor eax, eax
mov dword [ebp - 0xb0], eax
test edx, 0x100
jne 0x40a290
xor eax, eax
mov dword [ebp - 0xac], eax
test edx, 0x400
jne 0x40a29a
xor eax, eax
mov dword [ebp - 0x98], eax
test edx, 0x10000000
jne 0x40a2a4
xor eax, eax
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0
test esi, 0x1000
jne 0x40a2ae
xor eax, eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xbc], eax
lea edi, [eax + 0x100]
add eax, 0x340
mov dword [ebp - 0xb4], eax
mov eax, edx
mov dword [ebp - 0xb8], edi
and eax, 0x1800000
jne 0x48bd18
test ecx, 0x1800000
jne 0x48bd3d
mov dword [ebp - 0x8c], 1
test edx, 0x700000
jne 0x40a2b8
and ecx, 0x700000
jne 0x48bd50
mov dword [ebp - 0xe0], 2
cmp dword [ebp - 0x6c], 0
jne 0x48bdfc
mov eax, 0x55555556
imul dword [ebp + 0x1c]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax + eax*2]
mov eax, 0x55555556
lea ecx, [edi + edi]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 0x20]
test ax, ax
jne 0x48be12
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xec], esi
lea ecx, [edi + edi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x64], 0
test esi, esi
je 0x409f30
movzx eax, word [ebx + 0x1e]
lea ecx, [esi + edi*4]
shl eax, 2
mov edx, ecx
sub edx, eax
lea eax, [esi + 8]
cmp edx, eax
jb 0x40a2bf
sub ecx, 4
cmp ecx, edx
jae 0x40a110
mov dword [esi + 4], 0xffffffff
mov eax, dword [ebp - 0xec]
mov dword [eax], 0xffffffff
cmp dword [ebp - 0x38], 0
jne 0x409f41
mov eax, dword [ebx + 0xc]
test al, 0x10
jne 0x40a1ef
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
test al, 0x40
jne 0x40a210
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 8]
mov ecx, edi
mov dword [ebp + 0x10], ecx
jne 0x48bf32
mov esi, dword [ebx + 8]
or esi, dword [ebp + 0x14]
and esi, 0x4000000
jne 0x409f87
cmp dword [ebp - 0x24], esi
jne 0x40a1bf
cmp dword [ebp - 0x1c], esi
jne 0x48c09f
mov dword [ebp - 8], ecx
test esi, esi
jne 0x409f9a
cmp dword [ebp - 0x10c], esi
jne 0x40a128
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x84]
push 0
push 0
lea ecx, [ebp - 0xf8]
push ecx
push 2
push eax
mov ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xd0], 0
call fcn.0040a300
add esp, 0x14
cmp dword [ebp - 0x90], 0
mov esi, eax
jne 0x48c29c
test esi, esi
jle 0x40a063
cmp esi, 1
jne 0x48c3aa
cmp dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x14]
jne 0x48c409
test dword [ebp - 0x64], 0x10000
mov ecx, dword [ebp - 0x68]
jne 0x48c44f
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
movzx edi, word [ebx + 0x1e]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, edi
mov eax, dword [ebp + 0x18]
jle 0x48c45e
cmp dword [ebp + 0x1c], 2
jl 0x40a2eb
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x80]
sar ecx, 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x80]
sar ecx, 1
mov dword [eax + 4], ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x48c2ba
mov edx, dword [ebp - 4]
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0xcc], 0
lea edi, [edx + 2]
je 0x40a2d5
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x40a0a3
mov ax, word [edi]
mov esi, 0xfc00
and ax, si
mov esi, 0xdc00
cmp ax, si
je 0x40a2cd
mov eax, dword [ebp - 0xe0]
xor esi, esi
cmp dword [ebp - 0x30], esi
jne 0x48c2f9
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 4], edi
cmp edi, ecx
ja 0x40a195
cmp dword [ebp - 0x38], esi
jne 0x40a195
cmp edi, dword [ebp - 0x104]
jbe 0x40a0dd
cmp word [edi - 2], 0xd
je 0x40a0e5
mov dword [ebp - 0x48], esi
jmp 0x409f55
cmp edi, ecx
jae 0x40a0dd
cmp word [edi], 0xa
jne 0x40a0dd
test dword [ebx + 0xc], 0x800
jne 0x40a0dd
cmp eax, 2
jne 0x48c389
lea eax, [edi + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], esi
jmp 0x409f55
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x40a110
mov esi, dword [ebp - 0xec]
jmp 0x409f1d
cmp dword [ebp - 0x6c], 0
jne 0x409f9a
mov edx, dword [ebp - 4]
mov eax, ecx
sub eax, edx
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x409f9a
cmp dword [ebp - 0x24], 0
je 0x40a2c6
mov eax, 1
lea edx, [edx + eax*2]
cmp edx, dword [ebp - 0x108]
jbe 0x409f9a
mov esi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x18]
cmp si, ax
jne 0x48c26b
cmp edx, ecx
jae 0x40a193
jmp 0x40a180
mov ax, word [edx]
add edx, 2
cmp ax, si
je 0x40a237
cmp edx, ecx
jb 0x40a180
xor esi, esi
cmp dword [ebp - 0x20], 0
jne 0x48c3be
test esi, esi
jne 0x40a2dd
mov esi, dword [ebp - 0x100]
test esi, esi
jne 0x48c3d5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
cmp dx, word [ebp - 0x10]
jne 0x48c071
cmp eax, edi
jae 0x409f87
cmp word [eax], dx
je 0x409f87
add eax, 2
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x40a1d7
jmp 0x409f87
movzx edi, word [ebx + 0x18]
movzx esi, di
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], esi
test al, 0x20
je 0x409f41
jmp 0x48be61
movzx edi, word [ebx + 0x1a]
movzx esi, di
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xfc], esi
test al, al
jns 0x409f55
jmp 0x48bece
sub edx, 2
cmp edx, ecx
jae 0x40a193
mov dword [ebp - 0x108], edx
jmp 0x409f9a
xor eax, eax
jmp 0x409c5b
mov eax, 2
jmp 0x409c7e
mov eax, 1
jmp 0x409c7e
mov eax, 1
jmp 0x409d69
mov eax, 1
jmp 0x409d7d
mov eax, 1
jmp 0x409d91
mov eax, 1
jmp 0x409dae
mov eax, 1
jmp 0x409dc2
mov eax, 1
jmp 0x409dd6
mov eax, 1
jmp 0x409dea
mov eax, 1
jmp 0x409e20
mov ecx, edx
jmp 0x409e75
mov edx, eax
jmp 0x409f12
xor eax, eax
jmp 0x40a156
add edi, 2
jmp 0x40a0a3
mov ecx, dword [ebp + 0x10]
jmp 0x40a0a3
cmp esi, 0xfffffff4
jne 0x40a05a
jmp 0x40a1a7
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add byte [edi - 0x51], ah
dec eax
add bl, dh
scasd eax, dword es:[edi]
dec eax
add byte [0x460048b0], dh
mov ah, 0x48
add byte [ecx - 0x4c], ah
dec eax
add byte [esp + esi*4 + 0x48], bh
add byte [ebx - 0x51ffb74c], dl
mov ah, 0x48
add ch, al
mov ah, 0x48
add byte [ebx], cl
mov dl, 0x48
add dh, bl
mov ah, 0x48
add dh, bl
mov ah, 0x48
add byte [edi], dl
wait
dec eax
add byte [edi], dl
wait
dec eax
add byte [edx - 0x4e], bl
dec eax
mov dl, 0x48
add byte [ecx + 0x450048b2], bh
mov bl, 0x48
add cl, dl
mov bl, 0x48
add byte [ebx], dl
mov ah, 0x48
dec eax
add byte [0x1e850fc9], cl
loopne 0x48bc09
add dword [ecx - 0x7c03e601], 0x2c
jne 0x84409c31
call [ecx]
cld
sub dword [edi + ecx], 0xffffff85
adc ah, al
test dword [ebx - 0x7af008c5], 0x83f7e00a
cmp dword [ebx], 0xfffffff7
cmp esi, edi
jne 0x84409c31
push ecx
push ecx
push ecx
push ecx
push ecx
xor edx, edx
call 0x8c40a34d
dec dword [edi]
adc al, 0xe9
mov edi, edi
unpcklps xmm5, xmm1
outsb dx, byte [esi]
in al, 0xf7
invalid
std
add al, 0x82
pop ebx
shl byte [esp - 9], 0xf
sub edi, ecx
jle 0x84409c5d
test dword [ebx - 0x7dfb0148], 0xe452c05b
test dword [edi], 0x8204f1b8
pop ebx
ror byte [eax - 0x1c], 0xf7
invalid
mov eax, 0x5b8204fe
rcl byte [edx - 0x1c], 0xf7
invalid
jge 0x48bc4b
add dword [eax - 0x77ded19], edi
jg 0x1040a0a9
mov eax, 0x8dfe83f6
jmp 0x1040a0a9
jge 0x48bcfa
mov eax, dword [ebp - 0x14b89e04]
add eax, 0xeb02b445
push ss
mov edx, dword [eax - 0x18]
imul esp, ebp, 0x7d8bfff9
cld
mov dh, 0x55
clc
and byte [edx], cl
mov eax, 0x8dfe83f5
jmp 0x1040a0a9
invalid
mov ecx, dword [ebx + 8]
jmp 0x84409ce0
test dword [ebx - 0x7fef847f], 0xfe89896
and dword [eax], 0xffffffe0
test dword [ebx - 0x76ef8c75], 0xfe830cb5
lea ecx, [ecx + 0x75]
adc cl, ch
pavgb mm6, mm7
add dword [ecx - 0x697feb85], 0xffffff98
call 0xf553ab6
adc byte [esi - 0x7cf01768], 0x20
loopne 0x48bd05
or dword [ebx - 0x4a76ef8d], 0xc
cmp esi, 0xffffff8d
dec ecx
jne 0x48bd2b
jmp 0x84409d2f
or dword [eax], 0xfffffff7
or dword [ebx - 0x4a76eb8d], 0x10
cmp esi, 0xffffff8d
dec ecx
jne 0x48bd4c
jmp 0x84409d3c
sti
fcompi st(7)
add edi, 0x45
enter 0x7e01, 0x60
xor ecx, ebp
pavgb mm6, mm7
add edi, 0x45
in al, 1
add dword [esi + 0x60], edi
jle 0x48bdb3
xor ecx, ebp
pop ss
loopne 0x48bd4f
add edi, 0x45
sar byte [ebp + 0x6a], 1
mov eax, dword [ecx - 0x17]
push ds
loopne 0x48bd5b
cmp dword [0xb7000ffa], 0x3d
test byte [ecx], bh
test dword [ebx - 0x4cf005c3], 0xb5850f01
add byte [ebx], bh
adc byte [ebp + eax*4 + 0x74], dh
cmp esi, 0xffffff8d
add byte [eax], al
add byte [eax], al
jmp 0x84409eb6
and byte [eax], al
jne 0x48be30
mov ecx, 0xc452b0a
jmp 0x48bdca
je 0x48bd51
and byte [ebx + 0x8dfe], al
add byte [eax], al
cmp ecx, 0x2874f685
jle 0x48be06
mov eax, ecx
sar eax, 8
and eax, 0x2874f685
cmp ecx, dword [ecx - 0x7dedc37b]
clc
movzx eax, cl
mov dword [ebp - 0x77deddc], 0x2874f602
cmp ecx, dword [ecx - 0x17cc17b]
invalid
test dword [esi], edi
cmp esi, 0xffffff8d
jmp 0x84409ed8
mov dword [ebp - 0x77deddc], 0x2874f601
cmp ecx, dword [ecx - 0x7dedc373]
clc
jmp 0x84409ed8
lea edi, [edx + edx]
cmp al, 0xe9
mov esp, 0x8183f7e0
stc
add byte [ecx], al
inc eax
add byte [esi + edx - 0x7f], dh
stc
add byte [ecx], al
push eax
mov bh, 0x3d
test byte [esi - 0x477c0820], bl
jmp 0xe9a6481e
mov eax, 0x5d89e8e9
jmp 0x8440a0a9
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x84409f15
lea edi, [ecx + 1]
lea edi, [edi + edi*2]
lea eax, [edi*4 + 0xa1008c]
push eax
call dword [0x4bbddc]
mov esi, eax
mov eax, dword [edi + 0x34]
mov dword [ebp + 0x78ffff14], esi
invalid
retf
retf
test edx, edx
je 0x48c07d
push 0
lea ecx, [ebp - 0x72017cdc]
push ecx
push eax
bswap esi
call 0xa240904b
add byte [eax], al
dec ebx
movzx esi, word [ebp + 0x42]
call dword [ebp - 0x77dede0]
mov edi, dword [ebp - 0x72017cdc]
and byte [edx], dl
cmp al, 0x8b
mov ebp, 0x8dfe8324
jmp 0x48c0a7
mov dword [ebp - 0x7c], ecx
lea eax, [edi + edi]
sub ecx, eax
cmp esi, ecx
ja 0x48c0a7
push ss
mov eax, dword [esi]
mov edi, dword [ebx]
test dword [edx + edx], edi
cmp al, 0x75
adc bl, byte [edi - 1]
add dword [edi + edx + 0x3b], esi
mov eax, dword [esi + 0x78]
mov eax, edx
test dword [esi], edi
cmp esi, 0xffffff8d
je 0x48c0b1
ret 0x3e85
inc ebp
or byte [ebx + eax*4 - 0xfc4fd3a], al
jb 0x48c053
dec ecx
mov ah, 0x10
mov edi, esi
mov dword [ebp - 8], edi
jmp 0xa2409fb4
test eax, eax
je 0x48c252
cmp edi, edx
jbe 0x48c29e
push 0
lea ecx, [ebp - 0x72017cdc]
push ecx
push edx
mov edx, eax
mov ecx, edi
call 0xfebe13a9
jne 0x48c24b
or eax, 0xffffffff
mov eax, dword [ebp - 0x77dede0]
jne 0x48c2a8
adc al, byte [edx - 0x14a78a08]
inc esi
jmp 0x48c298
mov eax, dword [ebp - 0x77deddc]
lea edx, [eax + edx*2]
stc
inc ebp
add byte [ebx], 0xc2
cmp edi, eax
jb 0x48c2b0
mov ecx, edi
sub ecx, edx
push ss
mov eax, dword [ecx]
mov edi, dword [ebx]
test dword [edx + edx], edi
cmp al, 0x75
push ds
cmp dword [ebp - 0x72017cdc], 1
je 0xb758c1da
pop edx
mov eax, dword [ecx + 0x78]
mov eax, edx
test dword [esi], edi
cmp esi, 0xffffff8d
je 0x8e4745da
mov eax, dword [ebp - 0x77dede0]
test dword [eax + edi*8 - 0x75], edi
mov edx, dword [ebp - 0x80]
push ebp
or byte [ecx], 0
or dword [eax], eax
add byte [ebx - 0x6c403fd], cl
jb 0x48c228
dec ecx
mov ah, 0x10
jmp 0x8e4745e3
mov eax, dword [ebp - 0x77dede0]
jmp 0x48c29b
jae 0xb840a1e0
push edi
add bh, dh
movzx esi, word [edx]
add edx, 2
cmp esi, edi
je 0xb840a284
push edi
add al, al
cmp esi, eax
je 0x8440a284
cmp edx, ecx
jae 0xa240a1e0
mov eax, dword [ebp - 0x18]
jmp 0x48c2c3
js 0x48c340
cld
mov dword [ebp + 0x5d89e800], eax
jmp 0xa240a03f
mov eax, dword [0xf7dfdce9]
invalid
dec ecx
jmp 0x12555113
mov eax, dword [ecx + 0x78]
stc
dec ebp
adc byte [ebx - 0x7cc17a3e], cl
dec byte [ebp - 0x21da7bf1]
test dword [ebp + 0x1220858b], 0x3fe9f882
invalid
test dword [eax], esp
adc al, byte [edx - 0x22c01608]
test dword [ebp - 0x74ef4bb7], 0x82122085
clc
jmp 0x40a107
xor ebp, ebx
idiv edi
pop edi
stc
call [edi - 7]
dec dword [edi]
test byte [edi - 0x23], ch
idiv edi
pop edi
cli
add cl, byte [edi]
test dword [edx - 0x23], eax
mul dword [ecx - 0x8229e17]
lea ecx, [ecx - 0x4c]
adc byte [ebx], dh
imul cl
jmp 0x48c3d2
mul dword [ecx - 0xeb4a01]
invalid
sbb byte [ebx - 0x40], 0x53
fdivr st(7), st(0)
add dword [ebx + 0x217c04fe], 0xffffff8d
add al, 0xb5
clc
call 0x8b9921ed
test dword [edi + edi*8], edx
invalid
test dword [ecx - 0x73f031c5], 0x89f7dbc5
xor esi, esi
jmp 0x1040a072