Function at 0x647ba11c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x130
mov esi, eax
mov edi, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0x28], edx
nop
mov ecx, dword [eax]
inc dword [esp + ecx*4 + 0xb0]
add eax, 4
dec edx
jne 0x647ba1e4
mov dword [esp + 0x28], edx
mov ebp, dword [esp + 0xb0]
cmp ebp, edi
je 0x647ba819
mov ebx, dword [esp + 0x150]
mov edx, dword [ebx]
mov ebx, dword [esp + 0xb4]
test ebx, ebx
jne 0x647ba87c
mov eax, dword [esp + 0xb8]
test eax, eax
jne 0x647ba8f3
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x647ba8d7
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x647ba8fd
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x647ba932
mov eax, dword [esp + 0xc8]
test eax, eax
jne 0x647ba91c
mov eax, dword [esp + 0xcc]
test eax, eax
jne 0x647ba948
mov ecx, dword [esp + 0xd0]
test ecx, ecx
jne 0x647ba952
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x647ba974
mov eax, dword [esp + 0xd8]
test eax, eax
jne 0x647ba98a
mov eax, dword [esp + 0xdc]
test eax, eax
jne 0x647ba872
mov eax, dword [esp + 0xe0]
test eax, eax
jne 0x647ba9c2
mov eax, dword [esp + 0xe4]
test eax, eax
jne 0x647ba994
mov eax, dword [esp + 0xe8]
test eax, eax
jne 0x647ba71c
mov ecx, dword [esp + 0xec]
mov eax, 0xf
test ecx, ecx
jne 0x647ba724
mov dword [esp + 0x1c], 0x10000
mov dword [esp + 0x2c], 0x10
mov eax, 0x10
cmp edx, eax
jae 0x647ba312
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x647ba886
mov edx, dword [esp + 0xe8]
test edx, edx
jne 0x647ba8e1
mov edx, dword [esp + 0xe4]
test edx, edx
jne 0x647ba8ea
mov edx, dword [esp + 0xe0]
test edx, edx
jne 0x647ba907
mov edx, dword [esp + 0xdc]
test edx, edx
jne 0x647ba910
mov edx, dword [esp + 0xd8]
test edx, edx
jne 0x647ba926
mov edx, dword [esp + 0xd4]
test edx, edx
jne 0x647ba93c
mov edx, dword [esp + 0xd0]
test edx, edx
jne 0x647ba95c
mov edx, dword [esp + 0xcc]
test edx, edx
jne 0x647ba968
mov edx, dword [esp + 0xc8]
test edx, edx
jne 0x647ba97e
mov edx, dword [esp + 0xc4]
test edx, edx
jne 0x647ba99e
mov edx, dword [esp + 0xc0]
test edx, edx
jne 0x647ba9aa
mov edx, dword [esp + 0xbc]
test edx, edx
jne 0x647ba9b6
mov edx, dword [esp + 0xb8]
test edx, edx
jne 0x647ba9cc
test ebx, ebx
jne 0x647ba9d8
xor ecx, ecx
mov dword [esp + 0x50], 0
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
cmp ebx, ecx
jbe 0x647ba412
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x150]
mov dword [ebx], edx
cmp ecx, eax
jbe 0x647ba450
mov edx, dword [esp + 0x1c]
jmp 0x647ba433
inc eax
shl edx, 1
cmp eax, ecx
jae 0x647ba44c
sub edx, dword [esp + eax*4 + 0xb0]
jns 0x647ba42c
mov eax, 0xfffffffd
add esp, 0x130
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x1c]
sub ebx, ebp
mov dword [esp + 0x6c], ebx
js 0x647ba43c
mov ebp, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0xb0], ebp
mov dword [esp + 0xf4], 0
dec ecx
je 0x647ba490
xor eax, eax
xor edx, edx
lea ebx, [esp + 0xf0]
add edx, dword [esp + eax*4 + 0xb4]
mov dword [ebx + eax*4 + 8], edx
inc eax
cmp eax, ecx
jne 0x647ba480
xor eax, eax
mov ebx, dword [esp + 0x15c]
lea esi, [esi]
mov edx, dword [esi + eax*4]
test edx, edx
je 0x647ba4b5
mov ecx, dword [esp + edx*4 + 0xf0]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [esp + edx*4 + 0xf0], ecx
inc eax
cmp edi, eax
ja 0x647ba49c
mov edx, dword [esp + 0x50]
mov eax, dword [esp + edx*4 + 0xf0]
mov dword [esp + 0xf0], 0
mov ebx, dword [esp + 0x20]
neg ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x74], 0
cmp dword [esp + 0x2c], edx
jg 0x647ba8b8
mov edi, dword [esp + 0x15c]
lea eax, [edi + eax*4]
mov dword [esp + 0x64], eax
mov ebp, dword [esp + 0x2c]
lea ebp, [esp + ebp*4 + 0xb0]
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x20]
shl edx, 2
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x1c], 0
xor eax, eax
mov dword [esp + 0x54], 0
mov edi, 0xffffffff
mov ebx, edi
mov edi, dword [esp + 0x48]
mov edi, dword [edi]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x2c]
dec ecx
mov ebp, 1
shl ebp, cl
mov dword [esp + 0x5c], ebp
neg edi
mov dword [esp + 0x44], edi
mov esi, ebx
mov ebx, eax
mov ebp, dword [esp + 0x30]
dec ebp
mov dword [esp + 0x60], ebp
mov eax, dword [esp + 0x44]
test eax, eax
je 0x647ba899
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 8], edx
mov eax, edx
neg eax
mov ebp, dword [esp + 0x48]
lea edi, [ebp + eax*4]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x18], eax
jge 0x647ba6c7
nop
lea ebp, [esi + 1]
mov edx, 1
mov cl, byte [esp + 8]
shl edx, cl
mov eax, dword [esp + 8]
cmp dword [esp + 0x30], edx
jae 0x647ba61c
add eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
cmp ebx, eax
jbe 0x647ba5da
mov ebx, eax
mov eax, dword [esp + 8]
cmp ebx, dword [esp + 8]
jbe 0x647ba61c
inc eax
cmp ebx, eax
jbe 0x647ba61c
mov ecx, dword [esp + 0x44]
add ecx, edx
lea edi, [ecx + ecx]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
cmp edi, edx
jbe 0x647ba61c
mov ecx, edi
mov edi, dword [esp + 0x68]
jmp 0x647ba611
shl ecx, 1
mov edx, dword [edi + eax*4]
cmp ecx, edx
jbe 0x647ba618
sub ecx, edx
inc eax
cmp ebx, eax
ja 0x647ba608
mov dword [esp + 0x68], edi
mov ebx, 1
mov cl, al
shl ebx, cl
mov edi, dword [esp + 0x158]
mov edx, dword [edi]
lea ecx, [ebx + edx]
cmp ecx, 0x5a0
ja 0x647ba43c
mov edi, dword [esp + 0x154]
lea edx, [edi + edx*8]
mov dword [esp + ebp*4 + 0x74], edx
mov edi, dword [esp + 0x158]
add dword [edi], ebx
test ebp, ebp
je 0x647ba70c
mov edi, dword [esp + 0x28]
mov dword [esp + ebp*4 + 0xf0], edi
mov cl, byte [esp + 0x24]
shr edi, cl
mov dword [esp + 0x24], edi
mov esi, dword [esp + esi*4 + 0x74]
mov edi, edx
sub edi, esi
sar edi, 3
mov ecx, dword [esp + 0x24]
sub edi, ecx
mov dword [esp + 0x1c], edi
lea ecx, [esi + ecx*8]
mov byte [ecx], al
mov al, byte [esp + 0x20]
mov byte [ecx + 1], al
mov dword [ecx + 4], edi
mov esi, ebp
mov ebp, dword [esp + 0x38]
add dword [esp + 8], ebp
mov eax, dword [esp + 0x3c]
add dword [esp + 0x68], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
add edi, eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x18], eax
jl 0x647ba5b4
mov dword [esp + 0x54], edx
sub eax, dword [esp + 0x24]
mov byte [esp + 0x30], al
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x4c], edx
jae 0x647ba73b
mov edi, dword [esp + 0x4c]
mov edi, dword [edi]
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x58]
cmp edi, ecx
jae 0x647ba840
cmp edi, 0x100
sbb eax, eax
not eax
and eax, 0x60
mov byte [esp + 8], al
add dword [esp + 0x4c], 4
jmp 0x647ba740
mov edi, dword [esp + 0x14c]
mov dword [edi], edx
xor esi, esi
jmp 0x647ba697
mov eax, 0xe
lea esi, [esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 1
mov cl, al
shl dword [esp + 0x1c], cl
jmp 0x647ba30a
mov byte [esp + 8], 0xc0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edi, 1
shl edi, cl
mov eax, dword [esp + 0x28]
mov cl, byte [esp + 0x24]
shr eax, cl
cmp eax, ebx
jae 0x647ba7a4
lea edx, [edi + eax]
lea ecx, [edi*8]
mov ebp, dword [esp + 0x54]
lea eax, [ebp + eax*8]
mov dword [esp + 0x68], esi
mov dword [esp], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x30]
mov bl, byte [esp + 8]
nop
mov byte [eax], bl
mov byte [eax + 1], cl
mov dword [eax + 4], ebp
add eax, dword [esp + 0x18]
mov esi, edx
add edx, edi
cmp dword [esp], esi
ja 0x647ba788
mov esi, dword [esp + 0x68]
mov ebx, dword [esp]
mov eax, dword [esp + 0x5c]
test dword [esp + 0x28], eax
je 0x647ba7c0
mov edx, dword [esp + 0x28]
nop
xor edx, eax
shr eax, 1
test eax, edx
jne 0x647ba7b4
mov dword [esp + 0x28], edx
xor dword [esp + 0x28], eax
mov eax, 1
mov cl, byte [esp + 0x24]
shl eax, cl
dec eax
and eax, dword [esp + 0x28]
cmp eax, dword [esp + esi*4 + 0xf0]
je 0x647ba806
lea eax, [esp + 0xf0]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
dec esi
sub ecx, ebp
mov edx, 1
shl edx, cl
dec edx
and edx, edi
cmp edx, dword [eax + esi*4]
jne 0x647ba7f0
mov dword [esp + 0x24], ecx
inc dword [esp + 0x44]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x30], edi
mov ebp, edi
jmp 0x647ba569
mov eax, dword [esp + 0x14c]
mov dword [eax], 0
mov edx, dword [esp + 0x150]
mov dword [edx], 0
xor eax, eax
add esp, 0x130
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
sub eax, dword [esp + 0x58]
shl eax, 2
mov edx, dword [esp + 0x148]
mov edx, dword [edx + eax]
add edx, 0x50
mov byte [esp + 8], dl
mov ecx, dword [esp + 0x144]
mov eax, dword [ecx + eax]
mov dword [esp + 0x1c], eax
add dword [esp + 0x4c], 4
jmp 0x647ba740
mov eax, 0xb
jmp 0x647ba724
mov eax, 1
jmp 0x647ba724
mov ebp, edx
mov ecx, 0xf
lea esi, [esi]
mov dword [esp + 0x50], ecx
jmp 0x647ba3fa
mov eax, ebx
mov ebx, esi
inc dword [esp + 0x2c]
add dword [esp + 0x48], 4
dec dword [esp + 0x40]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x2c], edx
jle 0x647ba541
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x647ba9e4
xor eax, eax
cmp dword [esp + 0x50], 1
sete al
lea eax, [eax + eax*4 - 5]
jmp 0x647ba441
mov eax, 3
jmp 0x647ba724
mov ebp, edx
mov ecx, 0xe
jmp 0x647ba890
mov ebp, edx
mov ecx, 0xd
jmp 0x647ba890
mov eax, 2
jmp 0x647ba724
mov eax, 4
jmp 0x647ba724
mov ebp, edx
mov ecx, 0xc
jmp 0x647ba890
mov ebp, edx
mov ecx, 0xb
jmp 0x647ba890
mov eax, 6
jmp 0x647ba724
mov ebp, edx
mov ecx, 0xa
jmp 0x647ba890
mov eax, 5
jmp 0x647ba724
mov ebp, edx
mov ecx, 9
jmp 0x647ba890
mov eax, 7
jmp 0x647ba724
mov eax, 8
jmp 0x647ba724
mov ebp, edx
mov ecx, 8
jmp 0x647ba890
mov ebp, edx
mov ecx, 7
jmp 0x647ba890
mov eax, 9
jmp 0x647ba724
mov ebp, edx
mov ecx, 6
jmp 0x647ba890
mov eax, 0xa
jmp 0x647ba724
mov eax, 0xd
jmp 0x647ba724
mov ebp, edx
mov ecx, 5
jmp 0x647ba890
mov ebp, edx
mov ecx, 4
jmp 0x647ba890
mov ebp, edx
mov ecx, 3
jmp 0x647ba890
mov eax, 0xc
jmp 0x647ba724
mov ebp, edx
mov ecx, 2
jmp 0x647ba890
mov ebp, ebx
mov ecx, 1
jmp 0x647ba890
xor eax, eax
jmp 0x647ba441