Function at 0x10021a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0x14]
push ebx
lea ecx, [eax + 0x25e]
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], ecx
cmp eax, ecx
ja 0x10021e09
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
lea esp, [esp]
mov eax, dword [ebp - 0x14]
cmp eax, 0x179b
ja 0x10021d4f
je 0x10021c5a
add eax, 0xffffffc3
cmp eax, 0x24
ja case.0x10021a57.62
movzx eax, byte [eax + 0x10021fac]
jmp dword [eax*4 + 0x10021f8c]
mov ecx, dword [ebx]
mov edx, dword [ebp + 0x10]
not ecx
mov dword [ebx], ecx
cmp dword [edx], 8
mov dword [ebp - 0x2c], 0
jb case.0x10021a57.62
movzx eax, byte [edi]
mov ecx, dword [ebx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a158]
shr ecx, 8
xor eax, ecx
mov dword [ebx], eax
movzx ecx, byte [edi + 1]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a158]
shr eax, 8
xor ecx, eax
mov dword [ebx], ecx
movzx eax, byte [edi + 2]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a158]
shr ecx, 8
xor eax, ecx
mov dword [ebx], eax
movzx ecx, byte [edi + 3]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a158]
shr eax, 8
xor ecx, eax
mov dword [ebx], ecx
movzx eax, byte [edi + 4]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a158]
shr ecx, 8
xor eax, ecx
mov dword [ebx], eax
movzx ecx, byte [edi + 5]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a158]
shr eax, 8
xor ecx, eax
mov dword [ebx], ecx
movzx eax, byte [edi + 6]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a158]
shr ecx, 8
xor eax, ecx
mov dword [ebx], eax
movzx ecx, byte [edi + 7]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x1007a158]
add edi, 8
mov dword [ebx], eax
add dword [edx], 0xfffffff8
cmp dword [edx], 8
jae 0x10021a77
mov dword [ebp + 0xc], edi
jmp case.0x10021a57.62
mov byte [ebp + 0x17], 1
jmp case.0x10021a57.62
test edi, edi
je 0x10021f53
mov edx, dword [section..data]
test edx, edx
je case.0x10021a57.62
push 0x5e64
push 0
call fcn.10011360
add esp, 8
jmp case.0x10021a57.62
mov dword [ebp - 0x28], 0
jmp case.0x10021a57.62
mov esi, 0x4206
lea ecx, [ecx]
mov eax, esi
sub eax, 0x4206
je 0x10021bb9
sub eax, 0xe
jne 0x10021bd5
mov eax, dword [ebx]
pop edi
pop esi
not eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x17], 0
je 0x10021bd5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
add esi, 0xe
cmp esi, 0x4214
jbe 0x10021ba0
mov eax, 0x2ffc
cmp eax, eax
je 0x10021f5c
add eax, 0x43
cmp eax, 0x2ffc
jbe 0x10021be7
mov dword [ebp - 0x30], 0
jmp 0x10021f34
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
mov ecx, eax
mov dword [ebp - 0x3c], ecx
je 0x10021c4a
movzx edx, byte [edi]
mov eax, dword [ebx]
xor edx, eax
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x1007a158]
inc edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
dec dword [eax]
jne 0x10021c26
mov dword [ebp + 0xc], edi
test ecx, ecx
jne case.0x10021a57.62
mov byte [ebp + 0x17], cl
jmp case.0x10021a57.62
lea eax, [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0xffffff40
add eax, 0x100
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
test eax, eax
jle 0x10021d36
jmp 0x10021c90
mov edx, 0x7fdd
mov dword [ebp - 0x34], edx
jmp 0x10021ca0
mov eax, edx
sub eax, 0x7fdd
je 0x10021d0b
sub eax, 0x2d
je 0x10021cfb
sub eax, 0x2d
jne 0x10021d17
cmp esi, dword [esi]
je 0x10021d17
mov edx, 0x1da7
cmp edx, edx
jne 0x10021ce4
mov eax, dword [esi]
mov ecx, dword [eax]
cmp eax, ecx
je 0x10021cdd
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov esi, dword [ebp - 8]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 0x18], 0
add edx, 0x1f
cmp edx, 0x1da7
jbe 0x10021cbe
cmp esi, dword [esi]
jne 0x10021cb7
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x10021d17
cmp dword [ebp - 0x10], 0
jle 0x10021d17
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
lea esi, [eax + ecx*8]
jmp 0x10021d14
retf
mov dword [ebp - 8], esi
add edx, 0x2d
mov dword [ebp - 0x34], edx
cmp edx, 0x8037
jbe 0x10021ca0
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x40]
jl 0x10021c90
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], 4
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 5
jl 0x10021c67
jmp case.0x10021a57.62
cmp eax, 0x2d18
ja 0x10021df4
je 0x10021de4
sub eax, 0x18d5
je 0x10021dab
sub eax, 6
je 0x10021d7a
sub eax, 6
je 0x10021e09
jmp case.0x10021a57.62
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
push eax
push 0x696a
lea edx, [ebp - 0x40]
push 0
push edx
mov dword [ebp - 0x40], 0
call fcn.100190a0
mov ecx, dword [ebp + 0x10]
add esp, 0x10
mov dword [ecx], eax
mov dword [ebp - 0xc], 0
jmp case.0x10021a57.62
mov edx, dword [edi]
push ebx
lea eax, [ebp - 0x44]
push eax
push 0
push 0x6140
push 0
mov dword [ebp - 0x44], edx
call fcn.10064dc0
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x48], eax
mov dword [ecx], 0
test eax, eax
jne case.0x10021a57.62
ror byte [edi], 0x85
pop ebp
add dword [eax], eax
add byte [edi + 0x5e], bl
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
jmp case.0x10021a57.62
sub eax, 0x2d1e
je 0x10021e13
sub eax, 6
jne case.0x10021a57.62
ja 0x10021dd3
int3
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jle 0x10021f18
mov ecx, dword [ebp - 4]
mov edi, 0x3639
mov eax, edi
sub eax, 0x3639
je 0x10021ea6
sub eax, 0x44
je 0x10021e46
sub eax, 0x44
jne 0x10021ee0
add dword [ebp - 0x24], ecx
jmp 0x10021ee0
cmp ecx, 0xffffffff
jne 0x10021ee0
mov esi, 0x308e
mov eax, esi
sub eax, 0x308e
je 0x10021e85
sub eax, 0x1e
je 0x10021e6d
sub eax, 0x1e
je 0x10021f18
jmp 0x10021e99
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x2733
jne 0x10021f05
mov dword [ebp - 4], 0
jmp 0x10021e99
push 0
push 0
push 0x187d
call fcn.100432e0
add esp, 0xc
mov dword [ebp - 0x4c], eax
add esi, 0x1e
cmp esi, 0x30ca
jbe 0x10021e54
jmp 0x10021ee0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebx]
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x20]
push 0x1e75
mov dword [ebp - 0x1c], edx
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x34], 0
call fcn.1003f760
add esp, 0x18
mov dword [ebp - 4], eax
test eax, eax
je 0x10021f11
mov ecx, dword [ebp - 4]
add edi, 0x44
cmp edi, 0x36c1
jbe 0x10021e27
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x20], ecx
sub dword [eax], ecx
cmp dword [eax], 0
jg 0x10021e22
jmp 0x10021f18
mov eax, 0xfffffc18
sub eax, ecx
mov dword [ebp - 4], eax
jmp 0x10021f18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x2d1e
test eax, eax
jns 0x10021f2e
mov dword [ebp - 0xc], eax
jmp 0x10021f34
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add eax, 6
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x50]
jbe 0x10021a30
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebx]
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push 0x77b8
push eax
mov dword [ebp - 0x10], ecx
call fcn.1001fdf0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret