Function at 0x46c080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63768d
mov eax, dword fs:[0]
push eax
mov eax, 0x1d7c
call fcn.0062f130
mov eax, dword [0x6d3f68]
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 edi, ecx
mov dword [ebp - 0x1d6c], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1d84], edi
mov dword [ebp - 0x1d70], 0
mov esi, dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
movq qword [ebp - 0x9e0], xmm0
mov dword [ebp - 0x9d8], 0
call esi
mov dword [ebp - 0x1d80], eax
call esi
mov dword [ebp - 0x1d7c], eax
call esi
mov dword [ebp - 0x1d78], eax
call esi
mov dword [ebp - 0x1d74], eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x9e0], 0
mov dword [ebp - 0x9dc], eax
mov dword [ebp - 0x9d8], edx
mov dword [ebp - 4], 1
lea esi, [ebp - 0x1d80]
mov ecx, dword [esi]
mov dword [ebp - 0x9d4], ecx
cmp eax, edx
je 0x46c14c
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x9dc], eax
jmp 0x46c16b
lea ecx, [ebp - 0x9d4]
push ecx
push eax
lea ecx, [ebp - 0x9e0]
call fcn.0047a2b0
mov edx, dword [ebp - 0x9d8]
mov eax, dword [ebp - 0x9dc]
add esi, 4
lea ecx, [ebp - 0x1d70]
cmp esi, ecx
jne 0x46c133
mov dword [ebp - 4], 2
mov edx, 0x1571
mov dword [ebp - 0x9e4], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x1d64], 0x1571
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x1d64], edx
inc ecx
cmp ecx, 0x270
jb 0x46c1a0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9d0]
push eax
lea ecx, [ebp - 0x9e0]
call fcn.004797c0
xor edx, edx
lea ebx, [ebp - 0x9d0]
xor esi, esi
nop
mov eax, dword [ebx]
lea ebx, [ebx + 4]
mov ecx, eax
mov dword [ebp + esi*4 - 0x1d64], eax
or ecx, edx
mov edx, eax
shr edx, 0x1f
test esi, esi
cmovne edx, ecx
inc esi
cmp esi, 0x270
jb 0x46c1e0
mov eax, dword [ebp - 0x1d64]
or ecx, 0xffffffff
test edx, edx
mov dword [edi], 0
push 0x1d
cmove eax, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
push str.__cpp_httplib_multipart_data_
mov dword [ebp - 0x1d64], eax
mov dword [ebp - 0x1d68], 0x270
mov byte [edi], 0
call fcn.0044e760
mov esi, 0x10
mov dword [ebp - 0x1d70], 1
lea ebx, [esi + 0x2e]
nop dword [eax + eax]
lea ecx, [ebp - 0x1d68]
call fcn.00472730
xor edx, edx
mov ecx, dword [edi + 0x10]
div ebx
mov bl, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov edx, dword [edi + 0x14]
mov byte [ebp - 0x9d4], bl
cmp ecx, edx
jae 0x46c29e
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x46c294
mov eax, dword [edi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x46c2b9
push dword [ebp - 0x9d4]
mov byte [ebp - 0x1d6c], 0
push dword [ebp - 0x1d6c]
push ecx
mov ecx, edi
call fcn.0044fe40
mov ebx, 0x3e
sub esi, 1
jne 0x46c260
mov edx, dword [ebp - 0x9e0]
test edx, edx
je 0x46c302
mov ecx, dword [ebp - 0x9d8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x46c2f8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46c2f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0062ea39
add esp, 8
mov eax, edi
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.0062e5ad
mov esp, ebp
pop ebp
ret