Function at 0x10043b70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x250
xor ecx, ecx
xor edx, edx
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0x25c]
mov word [esp + 0xe], dx
mov edx, dword [ecx*4 + 0x1007d4d4]
push ebx
xor ebx, ebx
mov dword [esp + 0x34], edx
or edx, 0xffffffff
cmp eax, ebx
mov ecx, 0x1000
mov dword [esp + 8], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
jl 0x10043bef
lea esp, [esp]
mov ecx, dword [esp + 0x264]
movzx edx, word [ecx + eax*2]
mov ecx, dword [esp + 0x258]
cmp word [ecx + edx*2], bx
jne 0x10043be7
sub eax, 1
jns 0x10043bc0
xor eax, eax
pop ebx
add esp, 0x250
ret
cmp eax, ebx
mov dword [esp + 0x3c], eax
jge 0x10043bf9
xor eax, eax
pop ebx
add esp, 0x250
ret
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x2c], ebx
jl 0x10044042
push ebp
mov dword [esp + 0x18], ebx
lea esp, [esp]
mov edx, dword [esp + 0x270]
movzx ecx, word [edx + ebx*2]
mov eax, dword [esp + 0x274]
add ecx, ecx
movzx eax, word [ecx + eax]
imul eax, dword [esp + 0x26c]
sar eax, 4
lea edx, [eax - 1]
lea edi, [eax + eax]
or edx, 1
lea eax, [edx + edi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x268]
movsx esi, word [ecx + eax]
mov eax, dword [esp + 0x264]
movsx ebp, word [ecx + eax]
mov eax, esi
imul eax, esi
imul eax, dword [esp + 0x40]
add dword [esp + 0x20], eax
lea ecx, [ebp + 1]
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], 0xf0000000
cmp ecx, 3
jae 0x10043d81
mov eax, dword [esp + 0x18]
lea eax, [esp + eax + 0x15e]
mov dword [esp + 0x34], eax
test esi, esi
jge 0x10043ca0
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov word [eax], cx
add esi, edx
jmp 0x10043cb0
mov ecx, 1
mov word [eax], cx
mov eax, dword [esp + 0x24]
sub eax, esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov edi, esi
imul edi, esi
imul edi, dword [esp + 0x40]
mov edx, 1
mov word [esp + eax + 0x15c], dx
mov eax, dword [esp + eax + 0x58]
lea ecx, [eax + edi + 0x1800]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov eax, ebx
sub eax, ecx
test eax, eax
jle 0x10043d66
mov edx, ebx
sub edx, eax
lea edx, [esp + edx*4 + 0x5c]
mov dword [esp + 0x10], edx
mov ecx, 0x1007d420
dec ecx
mov edx, 0x1007d320
sub edx, ecx
dec edx
lea ebp, [ecx + eax]
mov dword [esp + 0x24], edx
jmp 0x10043d10
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [ecx + ebp]
movzx esi, byte [ebp]
add edx, edi
shl ecx, 0xb
shl esi, 0xb
add ecx, edx
add esi, edx
cmp ecx, dword [esp + 0x28]
jae 0x10043d44
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov word [esp + edx + 0x15c], ax
cmp esi, dword [esp + 0x20]
jae 0x10043d57
mov dword [esp + 0x20], esi
mov word [esp + 0x1c], ax
mov dword [esp + 0x3c], ebx
add dword [esp + 0x10], 4
dec eax
dec ebp
test eax, eax
jg 0x10043d10
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x3c], ebx
jne 0x10043f78
mov eax, dword [esp + 0x34]
mov dx, word [eax]
mov word [esp + 0x1e], dx
jmp 0x10043f78
lea eax, [ebp + 0x19]
cmp eax, 0x33
jae 0x10043fa0
mov eax, ebp
imul eax, edi
sub eax, esi
cmp ebp, 1
mov esi, 0x1007ce20
jle 0x10043df9
add eax, edx
mov ebx, eax
sub ebx, edi
cmp ebp, 0x18
lea ecx, [ebp - 1]
mov dword [esp + 0x34], ecx
jg 0x10043dbd
mov edx, dword [ebp*4 + 0x1007d45c]
mov dword [esp + 0x38], edx
jmp 0x10043dc1
mov dword [esp + 0x38], esi
cmp ecx, 0x18
jg 0x10043dcf
mov edx, dword [ecx*4 + 0x1007d45c]
jmp 0x10043dd1
mov edx, esi
cmp ebp, 6
jg 0x10043de3
mov edi, dword [ebp*4 + 0x1007d4bc]
mov dword [esp + 0x2c], edi
jmp 0x10043de7
mov dword [esp + 0x2c], esi
cmp ecx, 6
jg 0x10043e5e
mov ecx, dword [ecx*4 + 0x1007d4bc]
mov dword [esp + 0x10], ecx
jmp 0x10043e62
sub eax, edx
cmp ebp, 0xffffffe8
lea ebx, [eax + edi]
mov dword [esp + 0x34], ecx
jl 0x10043e18
mov edx, ebp
not edx
mov edx, dword [edx*4 + 0x1007d460]
mov dword [esp + 0x38], edx
jmp 0x10043e1c
mov dword [esp + 0x38], esi
cmp ecx, 0xffffffe8
jl 0x10043e2e
mov edx, ecx
not edx
mov edx, dword [edx*4 + 0x1007d460]
jmp 0x10043e30
mov edx, esi
cmp ebp, 0xfffffffa
jl 0x10043e46
mov edi, ebp
not edi
mov edi, dword [edi*4 + 0x1007d4c0]
mov dword [esp + 0x2c], edi
jmp 0x10043e4a
mov dword [esp + 0x2c], esi
cmp ecx, 0xfffffffa
jl 0x10043e5e
not ecx
mov ecx, dword [ecx*4 + 0x1007d4c0]
mov dword [esp + 0x10], ecx
jmp 0x10043e62
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
imul ebx, ebx
imul ebx, dword [esp + 0x40]
sub esi, dword [esp + 0x14]
mov ecx, eax
imul ecx, eax
imul ecx, dword [esp + 0x40]
sub ebx, ecx
mov dword [esp + 0x54], ecx
test esi, esi
jle 0x10043f70
lea eax, [edx - 1]
mov edx, dword [esp + 0x30]
sub edx, esi
lea edx, [esp + edx*4 + 0x5c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
sub edx, eax
dec edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
sub edx, eax
dec edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
sub edx, eax
dec edx
lea edi, [esi + eax]
mov dword [esp + 0x4c], edx
jmp 0x10043ec5
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
movzx eax, byte [edi]
add edx, ecx
mov ecx, dword [esp + 0x38]
movzx ecx, byte [ecx + edi]
shl eax, 0xb
shl ecx, 0xb
add eax, edx
add ecx, edx
add eax, ebx
cmp eax, ecx
jae 0x10043ef4
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jmp 0x10043ef8
mov dword [esp + 0x10], ebp
cmp ecx, dword [esp + 0x28]
jae 0x10043f1b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov cx, word [esp + 0x10]
mov word [esp + eax + 0x15c], si
mov word [esp + eax + 0x15e], cx
mov ecx, dword [esp + 0x4c]
movzx ecx, byte [ecx + edi]
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + edi]
shl ecx, 0xb
shl eax, 0xb
add ecx, edx
add eax, edx
add ecx, ebx
cmp ecx, eax
jae 0x10043f43
mov eax, ecx
mov ecx, dword [esp + 0x34]
jmp 0x10043f45
mov ecx, ebp
cmp eax, dword [esp + 0x20]
jae 0x10043f61
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], si
mov word [esp + 0x1e], cx
mov dword [esp + 0x3c], edx
add dword [esp + 0x24], 4
dec esi
dec edi
test esi, esi
jg 0x10043ec1
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + edx + 0x5c], edi
mov edx, dword [esp + 0x50]
lea esi, [edx + eax]
cmp edi, esi
jae 0x10043ffc
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], ebx
jmp 0x10044025
mov ecx, ebx
sub ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10043f74
mov eax, ebx
sub eax, ecx
lea esi, [esp + eax*4 + 0x5c]
mov eax, dword [esi]
add eax, 0xf000
cmp eax, dword [esp + 0x28]
jae 0x10043fd7
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov word [esp + edx + 0x15c], cx
mov word [esp + edx + 0x15e], bp
cmp eax, dword [esp + 0x20]
jae 0x10043fef
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], bp
mov dword [esp + 0x3c], ebx
dec ecx
add esi, 4
test ecx, ecx
jg 0x10043fb2
jmp 0x10043f74
add eax, 0x800
cmp dword [esp + ecx*4 + 0x5c], eax
jbe 0x10044012
inc ecx
cmp dword [esp + ecx*4 + 0x5c], eax
ja 0x10044007
mov dword [esp + 0x14], ecx
cmp ecx, ebx
mov eax, ecx
jge 0x10044021
add dword [esp + eax*4 + 0x5c], edx
inc eax
cmp eax, ebx
jl 0x10044018
mov dword [esp + 0x44], esi
add dword [esp + 0x18], 4
inc ebx
cmp ebx, dword [esp + 0x48]
mov dword [esp + 0x30], ebx
jle 0x10043c10
mov esi, dword [esp + 0x3c]
pop ebp
test esi, esi
jge 0x10044053
mov eax, dword [esp + 0x274]
pop edi
pop esi
pop ebx
add esp, 0x250
ret
mov edi, dword [esp + 0x260]
push 0x80
push 0
push edi
call fcn.100113d0
mov ebx, dword [esp + 0x278]
movzx ecx, word [ebx + esi*2]
mov ax, word [esp + 0x26]
movsx edx, word [esp + 0x24]
mov word [edi + ecx*2], ax
sub esi, edx
cwde
mov ecx, esi
cdq
mov esi, eax
xor esi, edx
add esp, 0xc
sub esi, edx
test ecx, ecx
jl 0x100440c4
jmp 0x100440a0
movzx eax, word [esp + ecx*4 + 0x15a]
movzx edx, word [ebx + ecx*2]
mov word [edi + edx*2], ax
cwde
cdq
xor eax, edx
sub eax, edx
add esi, eax
movsx eax, word [esp + ecx*4 + 0x158]
sub ecx, eax
jns 0x100440a0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x250
ret