Function at 0x43141d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522708
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x56d484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
mov edi, dword [ebp + 8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebx]
call dword [eax + 0x58]
mov ecx, edi
xor esi, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
call fcn.00428c80
cmp eax, 0xb
jne 0x43130d
mov ecx, edi
call fcn.00465ce0
test al, al
je 0x43130d
mov ecx, dword [ebp - 0x30]
push edi
push ebx
call fcn.00424d00
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.0046a850
test al, al
je 0x43130d
push edi
push ebx
lea ecx, [ebp - 0x54]
call fcn.00422a40
push edi
push ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], esi
call fcn.00422a40
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00465e30
mov ecx, edi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
call fcn.00465e30
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x14]
add eax, 0x58
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
call dword [eax + 0x14]
mov eax, dword [ebx]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x4312d5
mov ebx, dword [ebp - 0x34]
nop dword [eax]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x30]
call fcn.00432670
lea edi, [eax + 2]
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.00432850
add edi, eax
mov ecx, dword [ebp - 0x50]
mov eax, edi
lea edx, [ebp - 0x54]
or eax, 1
add esp, 0x10
bsr eax, eax
push edx
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, edi
add esi, eax
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x431280
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x6c]
call fcn.00422db0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], 3
mov edx, dword [ecx]
call dword [edx + 0x3c]
lea ecx, [ebp - 0x4c]
call fcn.00422db0
jmp case.default.0x431360
xor ebx, ebx
cmp dword [edi + 0x20], 3
jne 0x431325
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.004245e0
mov ebx, eax
jmp 0x43134f
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x10]
mov al, byte [eax + 0x2f]
test al, al
je 0x431339
mov ebx, 1
jmp 0x43134f
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00425dd0
test al, al
mov ecx, 1
cmovne ebx, ecx
mov ecx, edi
call fcn.00428c80
dec eax
cmp eax, 0x11
ja case.default.0x431360
jmp dword [eax*4 + 0x431764]
cmp dword [edi + 0x20], 3
jne 0x4313a8
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
nop word [eax + eax]
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.004253e0
push eax
call fcn.0041bd90
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431380
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00424bc0
push eax
call fcn.0041bd90
add esp, 4
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x431400
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425480
push edx
push eax
call fcn.0041be10
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x4313d7
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00424c60
push edx
push eax
call fcn.0041be10
add esp, 8
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x431467
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.004253e0
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431430
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00424bc0
push eax
call fcn.0041c150
add esp, 4
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x4314bf
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425480
push edx
push eax
call fcn.0041c170
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431496
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00424c60
push edx
push eax
call fcn.0041c170
add esp, 8
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x43151e
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
nop
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425780
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x4314f0
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00425a60
or eax, 1
bsr eax, eax
lea esi, [eax*8 + 0x49]
add esi, eax
shr esi, 6
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x43157d
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425820
push edx
push eax
call fcn.0041be10
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431554
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00425b00
push edx
push eax
call fcn.0041be10
add esp, 8
mov esi, eax
jmp case.default.0x431360
lea esi, [ebx*4]
jmp case.default.0x431360
lea esi, [ebx*8]
jmp case.default.0x431360
mov esi, ebx
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x4315f6
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
nop dword [eax]
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425530
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
add esi, eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x4315d0
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push 0
push edi
push dword [ebp - 0x34]
call fcn.00424d50
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x43164d
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.00425530
push eax
call fcn.0042c610
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431625
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push 0
push edi
push dword [ebp - 0x34]
call fcn.00424d50
push eax
call fcn.0042c610
add esp, 4
mov esi, eax
jmp case.default.0x431360
cmp dword [edi + 0x20], 3
jne 0x4316aa
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
nop
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.004251f0
push dword [eax + 8]
call fcn.0041bd90
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x431680
jmp case.default.0x431360
mov ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
call fcn.00424960
push dword [eax + 8]
call fcn.0041bd90
add esp, 4
mov esi, eax
jmp case.default.0x431360
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je case.default.0x431360
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [edi + 0x20], 3
mov dword [ebp - 4], 4
jne 0x431703
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call fcn.004256e0
jmp 0x431713
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x34]
call fcn.004259b0
mov ecx, dword [eax + 0x10]
mov eax, ecx
or eax, 1
mov dword [ebp - 4], 0xffffffff
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, ecx
lea ecx, [ebp - 0x28]
add esi, eax
call fcn.004020cc
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x4316d1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dc9c9
mov esp, ebp
pop ebp
ret