Function at 0x42b7f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x180
mov ecx, 6
xor eax, eax
push ebx
push ebp
push esi
mov si, word [esp + 0x19c]
push edi
mov edi, dword [esp + 0x19c]
mov ebx, dword [esp + 0x194]
rep stosd dword es:[edi], eax
movsx eax, si
sub eax, 0
je 0x42b83c
sub eax, 2
je 0x42b835
mov ecx, dword [ebx + 0xe50]
xor eax, eax
test ecx, ecx
setne al
jmp 0x42b841
mov eax, 2
jmp 0x42b841
mov eax, 3
lea ecx, [esp + 0x10]
push 2
push ecx
push eax
call fcn.0042ba80
add esp, 0xc
cmp si, 1
jne 0x42ba09
mov esi, dword [esp + 0x198]
push 0x18
push eax
mov ecx, dword [esi + 4]
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 8]
push 7
sub ecx, 0x12
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x2c]
push 2
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0xc]
push 7
sub ecx, 0x12
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x64]
push 2
push eax
push ecx
call fcn.0042ba80
add esp, 0x3c
lea edi, [esi + 0x18]
mov ebp, 4
mov ecx, dword [edi - 4]
lea edx, [ecx + ecx*2]
mov ecx, dword [edi]
lea ecx, [ecx + edx*8]
mov edx, dword [ebx + 0xe50]
test edx, edx
jne 0x42b8cc
mov edx, dword [edi + 8]
shl edx, 0xb
add ecx, edx
push 0xc
push eax
push ecx
call fcn.0042ba80
add esp, 0xc
add edi, 0x1c
dec ebp
jne 0x42b8af
lea ecx, [esi + 0x1c]
mov edx, 4
mov di, word [ecx]
add ecx, 0x1c
mov word [eax], di
add eax, 2
dec edx
jne 0x42b8e6
mov ecx, dword [ebx + 0xe50]
test ecx, ecx
jne 0x42b9cf
mov word [eax], 0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x44]
add eax, 2
sar ecx, 0x10
sar edx, 0xe
lea ecx, [ecx + ecx*8]
push 0xd
add ecx, edx
mov edx, dword [esi + 0x60]
sar edx, 0x10
lea ecx, [ecx + ecx*4]
push eax
lea ecx, [edx + ecx*2]
mov edx, dword [esi + 0x7c]
sar edx, 0xe
lea ecx, [ecx + ecx*8]
add ecx, edx
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x28]
push 0x10
and ecx, 0xffff
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x44]
push 0xe
and ecx, 0x3fff
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x60]
push 0x10
and ecx, 0xffff
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x7c]
push 0xe
and ecx, 0x3fff
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x24]
push 6
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x40]
add esp, 0x48
push 5
push eax
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x5c]
push 6
push eax
push ecx
call fcn.0042ba80
push 5
push eax
mov eax, dword [esi + 0x78]
push eax
call fcn.0042ba80
add esp, 0x24
mov edi, dword [ebx + 0xe50]
neg edi
sbb edi, edi
and edi, 0xffffffe0
add edi, 0xc0
jmp 0x42ba3d
lea edi, [esi + 0x28]
mov ebp, 4
mov ecx, dword [edi]
push 0xc
push eax
push ecx
call fcn.0042ba80
add esp, 0xc
add edi, 0x1c
dec ebp
jne 0x42b9d7
add esi, 0x24
mov edi, 4
mov ecx, dword [esi]
push 4
push eax
push ecx
call fcn.0042ba80
add esp, 0xc
add esi, 0x1c
dec edi
jne 0x42b9f3
jmp 0x42b9ba
cmp si, 2
jne 0x42ba38
mov esi, dword [esp + 0x198]
push 0x18
push eax
mov ecx, dword [esi + 4]
push ecx
call fcn.0042ba80
mov ecx, dword [esi + 0x18]
push 6
push eax
push ecx
call fcn.0042ba80
add esp, 0x18
mov edi, 0x20
jmp 0x42ba3d
mov edi, 2
xor eax, eax
test edi, edi
jle 0x42ba6e
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x19c]
mov edx, eax
sar edx, 3
add ebp, 2
lea esi, [edx + ecx]
mov dl, byte [ebp - 2]
mov ecx, eax
mov bl, byte [esi]
and ecx, 7
shl dl, cl
xor bl, dl
inc eax
cmp eax, edi
mov byte [esi], bl
jl 0x42ba47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret