Function at 0x442380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x278
mov ebx, dword [0x45850c]
mov ebp, dword [0x458508]
mov eax, ebp
or eax, ebx
jne 0x44243f
mov dword [esp + 0x48], 0xb11a8f62
mov dword [esp + 0x4c], 0xb55eb354
mov dword [esp + 0x50], 0xb998b758
mov dword [esp + 0x54], 0xbd56bb5c
mov dword [esp + 0x58], 0xa1bebf50
mov eax, 0x5d
mov ecx, 0xa2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x15]
lea edx, [edi + edi]
not edx
add edx, edi
mov esi, ecx
and esi, edi
and edi, 0xffffffae
and edx, 0x6419ce51
or edx, edi
xor edx, 0x6419ce51
mov ebx, edx
xor ebx, eax
sub ebx, edx
and edx, eax
add ebx, edx
or ebx, esi
add bl, 0x2f
mov byte [esp + eax - 0x15], bl
inc eax
dec ecx
cmp eax, 0x71
jne 0x4423e0
lea eax, [esp + 0x48]
push eax
call fcn.00441f80
add esp, 4
mov ebp, eax
mov dword [0x45850c], edx
mov dword [0x458508], eax
or eax, edx
je 0x44252b
mov ebx, edx
lea eax, [esp + 0x148]
push 0x40
push eax
push ebx
push ebp
call fcn.00441d60
add esp, 0x10
test eax, eax
js 0x44252b
mov eax, dword [esp + 0x184]
mov ecx, eax
sar ecx, 0x1f
mov edx, ebp
and edx, eax
mov esi, ebx
and esi, ecx
shld esi, edx, 1
add edx, edx
xor ecx, ebx
xor eax, ebp
add eax, edx
adc ecx, esi
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x188]
push 0xf0
push edx
push ecx
push eax
call fcn.00441d60
add esp, 0x10
xor edi, edi
test eax, eax
js 0x44252d
cmp dword [esp + 0x1fc], 0
je 0x44252d
mov eax, dword [esp + 0x1f8]
mov esi, 0
test eax, eax
je 0x44252f
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x20]
push 0x28
push edx
push ecx
push eax
call fcn.00441d60
add esp, 0x10
test eax, eax
js 0x44252b
mov ecx, dword [esp + 0x34]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4424f4
mov eax, esi
push eax
call fcn.0040c8b0
add esp, 4
mov edx, dword [esp + 0x3c]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.00441d60
add esp, 0x10
test eax, eax
js 0x44253e
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x442547
mov eax, 0xffffffff
jmp 0x442549
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x278
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x442752
add eax, eax
push eax
call fcn.0040c8b0
add esp, 4
mov esi, dword [esp + 0x38]
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x44]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 8], eax
push eax
push edx
push ecx
call fcn.00441d60
add esp, 0x10
test eax, eax
js 0x442742
mov esi, dword [esp + 0x38]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x4425a9
lea eax, [esi*4]
push eax
call fcn.0040c8b0
add esp, 4
mov edx, 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 + 0x40]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x18], edx
push edx
push ecx
push eax
call fcn.00441d60
add esp, 0x10
test eax, eax
js 0x442730
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jb 0x4425fd
mov esi, eax
test esi, esi
je 0x442730
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x442640
mov edx, 0x36c0b43e
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x10]
cmp edx, dword [esp + 0x28c]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
je 0x442763
inc edi
cmp edi, esi
je 0x442730
mov eax, dword [esp + 0x14]
mov eax, dword [eax + edi*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
call fcn.00441d60
add esp, 0x10
test eax, eax
jns 0x44266d
cmp eax, 0x8000000d
jne 0x442637
mov dword [esp + 0x10], edi
mov eax, 0xffffffff
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp byte [esp + eax + 0x49], 0
lea eax, [eax + 1]
lea edx, [edx + 1]
jne 0x442680
mov dword [esp], 0x8e8e881f
mov edx, 0xdd
mov esi, 0x23
movzx ebx, byte [esp + esi - 0x23]
mov ebp, ebx
not ebp
or ebp, edx
lea edi, [esi + ebp]
add ebx, ebp
inc ebx
or ebx, edi
add bl, 0x56
mov byte [esp + esi - 0x23], bl
dec edx
inc esi
cmp edx, 0xd9
jne 0x4426a0
test eax, eax
je 0x442615
mov esi, dword [esp]
mov edx, 0x36c0b43e
lea ebp, [esp + 0x48]
cmp eax, 1
je 0x44270a
and ecx, 0xfffffffe
movsx edi, byte [ebp]
mov ebx, edx
and ebx, edi
add edx, edi
add ebx, ebx
sub edx, ebx
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 0x4426e0
test al, 1
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x10]
je 0x442622
movsx eax, byte [ebp]
mov ecx, edx
and ecx, eax
add edx, eax
add ecx, ecx
sub edx, ecx
imul edx, esi
jmp 0x442622
xor edi, edi
xor esi, esi
push dword [esp + 0x14]
call fcn.0040c8c0
add esp, 4
jmp 0x442746
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.0040c8c0
add esp, 4
push dword [esp + 0xc]
call fcn.0040c8c0
add esp, 4
jmp 0x44252f
mov eax, dword [esp + 4]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x442734