Function at 0x4401b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x298
mov ebx, dword [0x4563a4]
mov ebp, dword [0x4563a0]
mov eax, ebp
or eax, ebx
jne 0x4402c0
mov dword [esp + 0x90], 0x1faa19aa
mov dword [esp + 0x94], 0x63ce1db8
mov dword [esp + 0x98], 0x671461cc
mov dword [esp + 0x9c], 0x6bc665c0
mov dword [esp + 0xa0], 0x6f6e69c4
mov dword [esp + 0xa4], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
cmp eax, 0x17
ja 0x440299
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x50]
movzx eax, byte [esp + eax + 0x90]
lea edx, [ecx + ecx]
and edx, 0xd3ecd274
sub ecx, edx
add ecx, 0x69f6693a
mov esi, ecx
and esi, edx
xor ecx, edx
lea edx, [ecx + esi*2]
mov ecx, edx
and ecx, eax
add eax, edx
sub eax, ecx
mov edx, 0xa9a1cfff
sub edx, eax
and edx, ecx
not ecx
and ecx, eax
sub ecx, edx
mov dword [esp + 0x198], ecx
mov eax, dword [esp + 0x198]
add al, 0xde
mov ecx, dword [esp + 0x50]
mov byte [esp + ecx + 0x90], al
inc dword [esp + 0x50]
mov eax, dword [esp + 0x50]
cmp eax, 0x18
jb 0x440230
lea eax, [esp + 0x90]
push eax
call fcn.0043fe60
add esp, 4
mov ebp, eax
mov dword [0x4563a4], edx
mov dword [0x4563a0], eax
or eax, edx
je 0x440391
mov ebx, edx
lea eax, [esp + 0x50]
push 0x40
push eax
push ebx
push ebp
call fcn.0043fc20
add esp, 0x10
test eax, eax
js 0x440391
mov eax, dword [esp + 0x8c]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
lea edx, [esp + 0x90]
push 0x108
push edx
push ecx
push eax
call fcn.0043fc20
add esp, 0x10
xor edi, edi
test eax, eax
js 0x440393
cmp dword [esp + 0x11c], 0
je 0x440393
mov eax, dword [esp + 0x118]
mov esi, 0
test eax, eax
je 0x440395
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.0043fc20
add esp, 0x10
test eax, eax
js 0x440391
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x44035a
mov eax, esi
push eax
call fcn.0040c470
add esp, 4
mov edx, dword [esp + 0x44]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.0043fc20
add esp, 0x10
test eax, eax
js 0x4403a4
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x4403ad
mov eax, 0xffffffff
jmp 0x4403af
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x298
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x4405c2
add eax, eax
push eax
call fcn.0040c470
add esp, 4
mov esi, dword [esp + 0x40]
add esi, esi
mov ecx, dword [esp + 0x4c]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push edx
push ecx
call fcn.0043fc20
add esp, 0x10
test eax, eax
js 0x4405b2
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4403fb
mov eax, esi
push eax
call fcn.0040c470
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x48]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.0043fc20
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x4405a0
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0x440437
mov esi, eax
test esi, esi
je 0x4405a0
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x440476
mov edx, 0xb14a5e2
cmp edx, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0x4405d3
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
je 0x4405a0
mov dword [esp + 0x14], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x19c]
push edx
push ecx
push eax
call fcn.0043fc20
add esp, 0x10
cmp eax, 0xbfffffff
ja 0x440469
mov eax, 0xffffffff
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp byte [esp + eax + 0x199], 0
lea eax, [eax + 1]
lea edx, [edx + 1]
jne 0x4404b0
mov dword [esp + 4], 0x2e2a2c91
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 3
ja 0x440521
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
mov ebp, edx
xor ebp, 0x22ee6537
and edx, 0x22ee6537
lea edx, [edx*2]
add edx, ebp
xor edx, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
add dl, 0xed
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 4
jb 0x4404e0
test eax, eax
je 0x44044f
mov esi, dword [esp + 4]
mov edx, 0xb14a5e2
lea ebp, [esp + 0x198]
cmp eax, 1
je 0x440582
and ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ebx, byte [ebp]
mov edi, edx
and edi, ebx
add edx, ebx
add edi, edi
sub edx, edi
imul edx, esi
movsx edi, byte [ebp + 1]
add ebp, 2
mov ebx, edx
and ebx, edi
add edx, edi
add ebx, ebx
sub edx, ebx
imul edx, esi
add ecx, 0xfffffffe
jne 0x440550
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 8]
test al, 1
je 0x440454
movsx eax, byte [ebp]
mov ecx, edx
and ecx, eax
add edx, eax
add ecx, ecx
sub edx, ecx
imul edx, esi
jmp 0x440454
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040c480
add esp, 4
jmp 0x4405b6
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040c480
add esp, 4
push dword [esp + 0x10]
call fcn.0040c480
add esp, 4
jmp 0x440395
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x10]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x4405a4