Function at 0x41a4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4e24
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x52ad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x70], eax
mov esi, ecx
and dword [ebp - 0x20], 0xfffffe00
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x5c], eax
mov eax, dword [0x52fe1c]
mov dword [ebp - 0x58], 0
test al, 1
jne 0x41a53f
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
mov ecx, dword [0x52c374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.success
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00449e90
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004493f0
mov byte [ebp - 4], 3
mov al, byte [esi + 8]
mov dword [ebp - 0x18], 0
test al, al
je 0x41a5aa
cmp al, 7
je 0x41a5aa
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b650c
add esp, 0xc
cmp byte [esi + 8], 0
jne 0x41a5b7
mov ecx, 0x52fad0
jmp 0x41a629
mov dword [ebp - 0x5c], 0x513b40
mov dword [ebp - 0x58], 0
mov edi, dword [esi]
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.0044ab30
mov ecx, dword [edi]
cmp eax, ecx
je 0x41a611
mov esi, dword [eax + 0x10]
mov edx, 0x513b40
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x41a600
test bl, bl
je 0x41a5fc
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x41a600
add edx, 2
add esi, 2
test bl, bl
jne 0x41a5e0
xor edx, edx
jmp 0x41a605
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x4c], eax
test dl, dl
je 0x41a614
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
cmp eax, ecx
mov byte [ebp - 4], 3
mov ecx, 0x52fad0
je 0x41a629
lea ecx, [eax + 0x18]
sub esp, 0x18
push esp
call fcn.00449570
lea ecx, [ebp - 0x18]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.00451060
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xa0]
mov dword [0x52f554], 0
call fcn.00451930
test al, al
jne 0x41aa35
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa0]
mov dword [0x52f554], 1
call fcn.00451930
test al, al
jne 0x41aa35
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x68], eax
mov eax, 0x513b44
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x41a73b
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x41a74a
push esi
push eax
lea ecx, [ebp - 0x68]
call fcn.00404ab0
jmp 0x41a74a
push 0x1d
push 0x513b44
lea ecx, [ebp - 0x68]
call fcn.004046f0
mov byte [ebp - 4], 8
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov eax, str.ki11Proce__
mov byte [ebp - 4], 9
test eax, 0xffff0000
jne 0x41a78b
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x41a79a
push esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404ab0
jmp 0x41a79a
push 0xb
push str.ki11Proce__
lea ecx, [ebp - 0x4c]
call fcn.004046f0
mov byte [ebp - 4], 0xa
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x6c], ebx
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00431540
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xc
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 0xd
test eax, 0xffff0000
jne 0x41a80b
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x41a81a
push esi
push eax
lea ecx, [ebp - 0x54]
call fcn.00404ab0
jmp 0x41a81a
push 9
push str.GlobalLog
lea ecx, [ebp - 0x54]
call fcn.004046f0
push 2
push edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x52f7a4
mov byte [ebp - 4], 0xe
call fcn.004018e0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41a856
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a876
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a893
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a8b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0xb8]
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0
test al, 1
jne 0x41a908
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a913
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.00449e90
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xf
call fcn.004493f0
cmp dword [ebp - 0xa4], 0x10
jb 0x41a963
push dword [ebp - 0xb8]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a983
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x41a99a
push eax
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41a9a7
push eax
call esi
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x41a9ed
mov eax, dword [esi]
test eax, eax
je 0x41a9be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
sub edx, 0x10
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a9da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004b3a0c
add esp, 4
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41aa0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ac7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41ac7f
mov esi, dword [0x52f408]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 3
jne 0x41aada
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
add esi, eax
inc edx
mov dword [0x52f408], esi
cmp edx, 0x100
jl 0x41aa53
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x41aaf1
push eax
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41aafe
push eax
call esi
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x41ab49
mov eax, dword [esi]
test eax, eax
je 0x41ab15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
sub edx, 0x10
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41ab34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004b3a0c
add esp, 4
mov dword [ebp - 0x98], 0
jmp 0x41ab4c
or edi, 0xffffffff
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ab6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ac78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41ac78
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], 0x514aec
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0x18
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.0044c090
mov edx, eax
mov byte [ebp - 4], 0x1a
cmp dword [edx + 0x14], 0x10
jb 0x41acd8
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x41acf7
xor ecx, ecx
jmp 0x41ad0a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ad00
sub ecx, dword [ebp - 0x50]
push ecx
push edx
mov ecx, ebx
call fcn.004012f0
lea ecx, [ebp - 0x6c]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 0x1b
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea ebx, [edx - 0x10]
mov dword [ebp - 0x58], eax
cmp ebx, eax
je 0x41add9
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x50], ecx
jl 0x41adca
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x41adca
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x41ad6c
cmp ecx, dword [ebx]
jne 0x41ad6c
mov esi, ebx
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41ada9
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x41ad80
call fcn.0040c760
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004b4771
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41adc2
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x4c], esi
jmp 0x41add9
push dword [edx - 0xc]
lea ecx, [ebp - 0x4c]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0x4c]
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41adf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0xa4], 0x10
jb 0x41ae14
push dword [ebp - 0xb8]
call fcn.004b3a0c
add esp, 4
mov ecx, dword [0x52f408]
mov ebx, 0x14
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv ebx
cmp edx, 0xd
jne 0x41ae98
mov ebx, ecx
imul ebx, ecx
mov eax, ebx
cdq
mov dword [ebp - 0x50], 0x18
idiv dword [ebp - 0x50]
cmp edx, 3
je 0x41ae6f
mov eax, ebx
cdq
mov ebx, 0x15
idiv ebx
cmp edx, 0xb
jne 0x41ae6f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x52f408]
mov edx, 7
test eax, eax
cmove ecx, edx
mov eax, ecx
sub eax, 0
je 0x41ae8e
dec eax
je 0x41ae82
inc ecx
mov dword [0x52f408], ecx
jmp 0x41ae98
mov dword [0x52f408], 0
jmp 0x41ae98
mov dword [0x52f408], 2
mov ebx, dword [ebp - 0x70]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41aeb6
call fcn.0040c760
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x18
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41aed4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x48], 0x514aec
jb 0x41aeec
push dword [ebp - 0x44]
call fcn.004b3a0c
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0x5186b0
mov dword [ebp - 4], 0xffffffff
call fcn.004493f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b3a11
mov esp, ebp
pop ebp
ret