Function at 0x10044009
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x58]
push edi
cmp byte [0x100c8fe8], 0
jne 0x10043b51
call fcn.1004c360
cmp byte [0x100c8ff1], 0
je 0x10043bba
cmp ebx, 8
jb 0x10043bba
mov edi, dword [esp + 0x70]
mov eax, dword [esi + 0x30]
not eax
cmp eax, 8
jbe 0x10043bb2
mov ebx, dword [esp + 0x58]
mov eax, 0
push dword [esp + 0x68]
shr ebx, 2
not bl
and bl, 1
push ebp
cmovne eax, edi
push eax
push esi
call fcn.1004d180
add dword [esi + 0x30], 8
add esp, 0x10
movzx eax, bl
add ebp, 0x200
mov ebx, dword [esp + 0x74]
shl eax, 9
sub ebx, 8
add edi, eax
mov dword [esp + 0x74], ebx
cmp ebx, 8
jae 0x10043b63
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
cmp byte [0x100c8fe8], 0
jne 0x10043bc8
call fcn.1004c360
cmp byte [0x100c8fe9], 0
je 0x10043c37
cmp ebx, 4
jb 0x10043c37
mov edi, dword [esp + 0x70]
nop word [eax + eax]
mov eax, dword [esi + 0x30]
not eax
cmp eax, 4
jbe 0x10043c2f
mov ebx, dword [esp + 0x58]
mov eax, 0
push dword [esp + 0x68]
shr ebx, 2
not bl
and bl, 1
push ebp
cmovne eax, edi
push eax
push esi
call fcn.1004de70
add dword [esi + 0x30], 4
add esp, 0x10
movzx eax, bl
add ebp, 0x100
mov ebx, dword [esp + 0x74]
shl eax, 8
sub ebx, 4
add edi, eax
mov dword [esp + 0x74], ebx
cmp ebx, 4
jae 0x10043be0
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
test ebx, ebx
je 0x1004422e
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edi
test eax, eax
jle 0x10043ef5
mov ebx, dword [esp + 0x34]
dec eax
shr eax, 1
mov ebp, ecx
inc eax
mov ecx, edx
mov edx, edi
mov esi, eax
mov edi, dword [esp + 0x24]
nop
add ecx, dword [esp + 0x38]
add ebp, ebx
mov ebx, dword [esp + 0x1c]
xor edx, ebp
rol edx, 0x10
add ebx, edx
add edi, dword [esp + 0x3c]
mov eax, ebx
xor eax, dword [esp + 0x34]
rol eax, 0xc
add ebp, eax
xor edx, ebp
rol edx, 8
add ebx, edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov dword [esp + 0x1c], ebx
xor ebx, eax
rol edx, 0x10
mov eax, dword [esp + 0x28]
add eax, edx
rol ebx, 7
mov dword [esp + 0x28], eax
xor eax, dword [esp + 0x38]
rol eax, 0xc
add ecx, eax
xor edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x28]
rol edx, 8
add ecx, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
xor edx, edi
mov dword [esp + 0x28], ecx
xor ecx, eax
rol edx, 0x10
mov eax, dword [esp + 0x18]
add eax, edx
rol ecx, 7
mov dword [esp + 0x18], eax
add ebp, ecx
xor eax, dword [esp + 0x3c]
rol eax, 0xc
add edi, eax
xor edx, edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
rol edx, 8
add edi, edx
mov dword [esp + 0x2c], edx
mov edx, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x30]
xor edx, eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x40]
xor edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
rol edi, 0x10
add eax, edi
rol edx, 7
mov dword [esp + 0x20], eax
xor eax, dword [esp + 0x40]
rol eax, 0xc
add dword [esp + 0x10], eax
xor edi, dword [esp + 0x10]
rol edi, 8
add dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x20]
xor edi, eax
mov eax, dword [esp + 0x30]
xor eax, ebp
rol edi, 7
rol eax, 0x10
add dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
add dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x30]
rol eax, 0xc
add ebp, eax
xor ecx, ebp
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x18]
rol ecx, 8
add ebp, ecx
mov dword [esp + 0x30], ecx
mov ecx, ebp
mov dword [esp + 0x18], ebp
xor ecx, eax
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
rol ecx, 7
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x48]
add ecx, edx
xor eax, ecx
rol eax, 0x10
add ebp, eax
mov dword [esp + 0x44], eax
mov eax, ebp
xor eax, edx
mov edx, dword [esp + 0x44]
rol eax, 0xc
add ecx, eax
xor edx, ecx
mov dword [esp + 0x48], ecx
rol edx, 8
add ebp, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], ebp
xor ebp, eax
mov eax, dword [esp + 0x24]
add eax, edi
rol ebp, 7
xor dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
rol eax, 0x10
add dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
xor eax, edi
mov dword [esp + 0x3c], ebp
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
rol eax, 0xc
add edi, eax
xor dword [esp + 0x14], edi
rol dword [esp + 0x14], 8
add ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
xor ebp, eax
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x10]
rol ebp, 7
rol eax, 0x10
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x28]
add ebp, eax
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esp + 0x24], edi
xor eax, ebx
mov ebx, dword [esp + 0x2c]
rol eax, 0xc
add dword [esp + 0x10], eax
xor ebx, dword [esp + 0x10]
rol ebx, 8
add ebp, ebx
mov dword [esp + 0x2c], ebx
mov ebx, ebp
mov dword [esp + 0x28], ebp
xor ebx, eax
rol ebx, 7
sub esi, 1
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x4c]
jne 0x10043cd0
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
cmp eax, 5
ja case.default.0x10043f02
jmp dword [eax*4 + 0x10044248]
mov eax, dword [esi]
add eax, ecx
test ebp, ebp
je 0x10043f14
mov dword [ebp], eax
mov eax, dword [esi + 4]
lea ecx, [ebp + 4]
add eax, edx
test ecx, ecx
je 0x10043f22
mov dword [ecx], eax
mov eax, dword [esi + 8]
lea ecx, [ebp + 8]
add eax, dword [esp + 0x24]
test ecx, ecx
je 0x10043f32
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
lea ecx, [ebp + 0xc]
add eax, dword [esp + 0x10]
test ecx, ecx
je 0x10043f42
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x10]
add eax, dword [esp + 0x34]
test ecx, ecx
je 0x10043f52
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
lea ecx, [ebp + 0x14]
add eax, dword [esp + 0x38]
test ecx, ecx
je 0x10043f62
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
lea ecx, [ebp + 0x18]
add eax, dword [esp + 0x3c]
test ecx, ecx
je 0x10043f72
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp + 0x1c]
add eax, dword [esp + 0x40]
test ecx, ecx
je 0x10043f82
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x20]
add eax, dword [esp + 0x1c]
test ecx, ecx
je 0x10043f92
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 0x24]
add eax, dword [esp + 0x28]
test ecx, ecx
je 0x10043fa2
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
lea ecx, [ebp + 0x28]
add eax, dword [esp + 0x18]
test ecx, ecx
je 0x10043fb2
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
lea ecx, [ebp + 0x2c]
add eax, dword [esp + 0x20]
test ecx, ecx
je 0x10043fc2
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
lea ecx, [ebp + 0x30]
add eax, edi
test ecx, ecx
je 0x10043fd0
mov dword [ecx], eax
mov eax, dword [esi + 0x34]
lea ecx, [ebp + 0x34]
add eax, dword [esp + 0x14]
test ecx, ecx
je 0x10043fe0
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
lea ecx, [ebp + 0x38]
add eax, dword [esp + 0x2c]
test ecx, ecx
je 0x10043ff0
mov dword [ecx], eax
mov eax, dword [esi + 0x3c]
lea ecx, [ebp + 0x3c]
add eax, dword [esp + 0x30]
test ecx, ecx
je case.default.0x10043f02
mov dword [ecx], eax
jmp case.default.0x10043f02
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x1004403b
mov edi, dword [eax]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x44]
jmp 0x1004403b
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x1004403b
mov ebx, dword [eax]
mov dword [esp + 0x4c], ebx
add ecx, dword [esi]
xor ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x74]
test ebp, ebp
je 0x1004404c
mov dword [ebp], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x74], 0
test ecx, ecx
je 0x10044061
mov ecx, dword [ecx]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 4]
add ecx, edx
lea edx, [ebp + 4]
xor ecx, dword [esp + 0x74]
test edx, edx
je 0x10044073
mov dword [edx], ecx
lea ecx, [eax + 8]
xor edx, edx
test ecx, ecx
je 0x1004407e
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, dword [esp + 0x24]
xor ecx, edx
lea edx, [ebp + 8]
test edx, edx
je 0x10044090
mov dword [edx], ecx
lea ecx, [eax + 0xc]
xor edx, edx
test ecx, ecx
je 0x1004409b
mov edx, dword [ecx]
mov ecx, dword [esi + 0xc]
add ecx, dword [esp + 0x10]
xor ecx, edx
lea edx, [ebp + 0xc]
test edx, edx
je 0x100440ad
mov dword [edx], ecx
lea ecx, [eax + 0x10]
xor edx, edx
test ecx, ecx
je 0x100440b8
mov edx, dword [ecx]
mov ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x34]
xor ecx, edx
lea edx, [ebp + 0x10]
test edx, edx
je 0x100440ca
mov dword [edx], ecx
lea ecx, [eax + 0x14]
xor edx, edx
test ecx, ecx
je 0x100440d5
mov edx, dword [ecx]
mov ecx, dword [esi + 0x14]
add ecx, dword [esp + 0x38]
xor ecx, edx
lea edx, [ebp + 0x14]
test edx, edx
je 0x100440e7
mov dword [edx], ecx
lea ecx, [eax + 0x18]
xor edx, edx
test ecx, ecx
je 0x100440f2
mov edx, dword [ecx]
mov ecx, dword [esi + 0x18]
add ecx, dword [esp + 0x3c]
xor ecx, edx
lea edx, [ebp + 0x18]
test edx, edx
je 0x10044104
mov dword [edx], ecx
lea ecx, [eax + 0x1c]
xor edx, edx
test ecx, ecx
je 0x1004410f
mov edx, dword [ecx]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esp + 0x40]
xor ecx, edx
lea edx, [ebp + 0x1c]
test edx, edx
je 0x10044121
mov dword [edx], ecx
lea ecx, [eax + 0x20]
xor edx, edx
test ecx, ecx
je 0x1004412c
mov edx, dword [ecx]
mov ecx, dword [esi + 0x20]
add ecx, dword [esp + 0x1c]
xor ecx, edx
lea edx, [ebp + 0x20]
test edx, edx
je 0x1004413e
mov dword [edx], ecx
lea ecx, [eax + 0x24]
xor edx, edx
test ecx, ecx
je 0x10044149
mov edx, dword [ecx]
mov ecx, dword [esi + 0x24]
add ecx, dword [esp + 0x28]
xor ecx, edx
lea edx, [ebp + 0x24]
test edx, edx
je 0x1004415b
mov dword [edx], ecx
lea ecx, [eax + 0x28]
xor edx, edx
test ecx, ecx
je 0x10044166
mov edx, dword [ecx]
mov ecx, dword [esi + 0x28]
add ecx, dword [esp + 0x18]
xor ecx, edx
lea edx, [ebp + 0x28]
test edx, edx
je 0x10044178
mov dword [edx], ecx
lea ecx, [eax + 0x2c]
xor edx, edx
test ecx, ecx
je 0x10044183
mov edx, dword [ecx]
mov ecx, dword [esi + 0x2c]
add ecx, dword [esp + 0x20]
xor ecx, edx
lea edx, [ebp + 0x2c]
test edx, edx
je 0x10044195
mov dword [edx], ecx
lea ecx, [eax + 0x30]
xor edx, edx
test ecx, ecx
je 0x100441a0
mov edx, dword [ecx]
mov ecx, dword [esi + 0x30]
add ecx, edi
xor ecx, edx
lea edx, [ebp + 0x30]
test edx, edx
je 0x100441b0
mov dword [edx], ecx
lea ecx, [eax + 0x34]
xor edx, edx
test ecx, ecx
je 0x100441bb
mov edx, dword [ecx]
mov ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x14]
xor ecx, edx
lea edx, [ebp + 0x34]
test edx, edx
je 0x100441cd
mov dword [edx], ecx
lea ecx, [eax + 0x38]
xor edx, edx
test ecx, ecx
je 0x100441d8
mov edx, dword [ecx]
mov ecx, dword [esi + 0x38]
add ecx, dword [esp + 0x2c]
xor ecx, edx
lea edx, [ebp + 0x38]
test edx, edx
je 0x100441ea
mov dword [edx], ecx
lea ecx, [eax + 0x3c]
xor edx, edx
test ecx, ecx
je 0x100441f5
mov edx, dword [ecx]
mov ecx, dword [esi + 0x3c]
add ecx, dword [esp + 0x30]
xor ecx, edx
lea edx, [ebp + 0x3c]
test edx, edx
je 0x10044207
mov dword [edx], ecx
add eax, 0x40
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x60]
add ebp, 0x40
mov dword [esp + 0x6c], ebp
add dword [eax], 1
jne 0x1004422e
mov eax, dword [esp + 0x64]
inc dword [eax]
dec ebx
mov dword [esp + 0x74], ebx
jmp 0x10043b43
mov eax, ebx
dec ebx
mov dword [esp + 0x74], ebx
test eax, eax
jne 0x10043b43
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret