Function at 0x447870
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x288
mov ebx, dword [0x45cf54]
mov ebp, dword [0x45cf50]
mov eax, ebp
or eax, ebx
jne 0x44792e
mov dword [esp + 0x58], 0x2396219e
mov dword [esp + 0x5c], 0x279a2580
mov dword [esp + 0x60], 0x3b443984
mov dword [esp + 0x64], 0x3f823d98
mov dword [esp + 0x68], 0x3332318c
mov dword [esp + 0x158], 0
mov eax, dword [esp + 0x158]
cmp eax, 0x13
ja 0x44790a
nop
mov eax, dword [esp + 0x158]
movzx eax, byte [esp + eax + 0x58]
push dword [esp + 0x158]
push eax
call fcn.00448300
add esp, 8
mov ecx, dword [esp + 0x158]
mov byte [esp + ecx + 0x58], al
inc dword [esp + 0x158]
mov eax, dword [esp + 0x158]
cmp eax, 0x14
jb 0x4478d0
lea eax, [esp + 0x58]
push eax
call fcn.004474c0
add esp, 4
mov ebp, eax
mov dword [0x45cf54], edx
mov dword [0x45cf50], eax
or eax, edx
je 0x447a08
mov ebx, edx
lea eax, [esp + 0x248]
push 0x40
push eax
push ebx
push ebp
call fcn.004472c0
add esp, 0x10
test eax, eax
js 0x447a08
mov eax, dword [esp + 0x284]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x158]
push 0xf0
push edx
push ecx
push eax
call fcn.004472c0
add esp, 0x10
xor edi, edi
test eax, eax
js 0x447a0a
cmp dword [esp + 0x1cc], 0
je 0x447a0a
mov eax, dword [esp + 0x1c8]
mov esi, 0
test eax, eax
je 0x447a0c
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x30]
push 0x28
push edx
push ecx
push eax
call fcn.004472c0
add esp, 0x10
test eax, eax
js 0x447a08
mov ecx, dword [esp + 0x44]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4479d1
mov eax, esi
push eax
call fcn.0040c7b0
add esp, 4
mov edx, dword [esp + 0x4c]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.004472c0
add esp, 0x10
test eax, eax
js 0x447a1b
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x447a24
mov eax, 0xffffffff
jmp 0x447a26
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x288
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x447c66
add eax, eax
push eax
call fcn.0040c7b0
add esp, 4
mov esi, dword [esp + 0x48]
add esi, esi
mov ecx, dword [esp + 0x54]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push edx
push ecx
call fcn.004472c0
add esp, 0x10
test eax, eax
js 0x447c56
mov esi, dword [esp + 0x48]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x447a70
lea eax, [esi*4]
push eax
call fcn.0040c7b0
add esp, 4
mov edi, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x50]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.004472c0
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x447c44
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
cmp esi, eax
jb 0x447ac4
mov esi, eax
test esi, esi
je 0x447c44
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
jmp 0x447b07
mov edx, 0xb14a5e2
cmp edx, dword [esp + 0x29c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
je 0x447c77
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
je 0x447c44
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 + 0x5c]
push edx
push ecx
push eax
call fcn.004472c0
add esp, 0x10
test eax, eax
jns 0x447b34
cmp eax, 0x8000000d
jne 0x447afa
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x59], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x447b40
mov dword [esp + 0x18], 0x968a9461
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x447b96
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x18]
push dword [esp]
push eax
call fcn.00448370
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x447b70
test ebx, ebx
je 0x447adc
mov ecx, dword [esp + 0x18]
mov eax, ecx
not eax
mov edx, 0xb14a5e2
lea ebp, [esp + 0x58]
cmp ebx, 1
je 0x447c18
and esi, 0xfffffffe
mov dword [esp + 4], eax
nop
nop
nop
nop
nop
mov dword [esp + 0x2c], ebp
movsx edi, byte [ebp]
xor edi, edx
mov edx, edi
not edx
and edx, ecx
mov eax, edi
and eax, dword [esp + 4]
mov ebp, dword [esp + 0x2c]
imul eax, edx
mov edx, edi
and edx, ecx
or edi, ecx
imul edi, edx
add edi, eax
movsx edx, byte [ebp + 1]
add ebp, 2
xor edx, edi
mov eax, edx
not eax
and eax, ecx
mov edi, edx
and edi, dword [esp + 4]
imul edi, eax
mov eax, edx
and eax, ecx
or edx, ecx
imul edx, eax
add edx, edi
add esi, 0xfffffffe
jne 0x447bc0
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
test bl, 1
je 0x447ae1
mov esi, eax
movsx eax, byte [ebp]
xor edx, eax
mov eax, edx
not eax
and eax, ecx
and esi, edx
imul esi, eax
mov eax, edx
and eax, ecx
or edx, ecx
imul edx, eax
add edx, esi
jmp 0x447ae1
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040c7c0
add esp, 4
jmp 0x447c5a
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040c7c0
add esp, 4
push dword [esp + 0x10]
call fcn.0040c7c0
add esp, 4
jmp 0x447a0c
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 0x447c48