Function at 0x442980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x280
mov ebp, dword [0x4578dc]
mov edi, dword [0x4578d8]
mov eax, edi
or eax, ebp
jne 0x442a65
mov dword [esp + 0x78], 0xd96edb76
mov dword [esp + 0x7c], 0xdd62df7c
mov dword [esp + 0x80], 0xd120d360
mov dword [esp + 0x84], 0xd56ad774
mov dword [esp + 0x88], 0xa9aaab68
mov byte [esp + 0x8c], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cmp eax, 0x14
ja 0x442a41
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx ecx, byte [esp + ecx + 0x78]
mov edx, eax
xor edx, 0xf3f0912f
and eax, 0xf3f0912f
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x180]
mov ecx, eax
xor ecx, 0xeb
and eax, 0x14
add eax, eax
sub eax, ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0x78], al
inc dword [esp + 0x38]
mov eax, dword [esp + 0x38]
cmp eax, 0x15
jb 0x4429f0
lea eax, [esp + 0x78]
push eax
call fcn.004427c0
add esp, 4
mov edi, eax
mov dword [0x4578dc], edx
mov dword [0x4578d8], eax
or eax, edx
je 0x442b30
mov ebp, edx
lea eax, [esp + 0x38]
push 0x40
push eax
push ebp
push edi
call fcn.004425a0
add esp, 0x10
test eax, eax
js 0x442b30
mov eax, dword [esp + 0x74]
mov ecx, eax
sar ecx, 0x1f
add eax, edi
adc ecx, ebp
lea edx, [esp + 0x78]
push 0x108
push edx
push ecx
push eax
call fcn.004425a0
add esp, 0x10
xor ebx, ebx
test eax, eax
js 0x442b32
cmp dword [esp + 0x104], 0
je 0x442b32
mov eax, dword [esp + 0x100]
mov esi, 0
test eax, eax
je 0x442b34
add eax, edi
mov ecx, ebp
adc ecx, 0
lea edx, [esp + 0x10]
push 0x28
push edx
push ecx
push eax
call fcn.004425a0
add esp, 0x10
test eax, eax
js 0x442b30
mov ecx, dword [esp + 0x24]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x442af9
mov eax, esi
push eax
call fcn.0040d6d0
add esp, 4
mov edx, dword [esp + 0x2c]
add edx, edi
mov ecx, ebp
adc ecx, 0
push esi
mov dword [esp + 8], eax
push eax
push ecx
push edx
call fcn.004425a0
add esp, 0x10
test eax, eax
js 0x442b43
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x442b4c
mov eax, 0xffffffff
jmp 0x442b4e
xor ebx, ebx
xor esi, esi
mov eax, ebx
mov edx, esi
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
xor esi, esi
jmp 0x442c6d
add eax, eax
push eax
call fcn.0040d6d0
add esp, 4
mov esi, dword [esp + 0x28]
add esi, esi
mov ecx, dword [esp + 0x34]
add ecx, edi
mov edx, ebp
adc edx, 0
push esi
mov dword [esp + 4], eax
push eax
push edx
push ecx
call fcn.004425a0
add esp, 0x10
test eax, eax
js 0x442c5e
mov ecx, dword [esp + 0x28]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x442b9a
mov eax, esi
push eax
call fcn.0040d6d0
add esp, 4
mov edx, dword [esp + 0x30]
add edx, edi
mov ecx, ebp
adc ecx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push ecx
push edx
call fcn.004425a0
add esp, 0x10
test eax, eax
js 0x442c4c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jb 0x442bd4
mov ecx, eax
test ecx, ecx
je 0x442c4c
xor ebx, ebx
lea esi, [esp + 0x180]
mov dword [esp + 0xc], ecx
jmp 0x442bf9
inc ebx
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x442c4c
mov eax, dword [esp + 8]
mov eax, dword [eax + ebx*4]
add eax, edi
mov ecx, ebp
adc ecx, 0
push 0x100
push esi
push ecx
push eax
call fcn.004425a0
add esp, 0x10
cmp eax, 0xbfffffff
ja 0x442bf0
push 0xb14a5e2
push esi
call fcn.00442c80
add esp, 8
cmp eax, dword [esp + 0x294]
jne 0x442bf0
mov eax, dword [esp]
movzx eax, word [eax + ebx*2]
mov ecx, dword [esp + 4]
add edi, dword [ecx + eax*4]
adc ebp, 0
mov ebx, edi
mov esi, ebp
jmp 0x442c50
xor ebx, ebx
xor esi, esi
push dword [esp + 8]
call fcn.0040d6e0
add esp, 4
jmp 0x442c62
xor ebx, ebx
xor esi, esi
push dword [esp]
call fcn.0040d6e0
add esp, 4
push dword [esp + 4]
call fcn.0040d6e0
add esp, 4
jmp 0x442b34