Function at 0x10003970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], 0
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x218], edi
jb 0x100039be
mov edx, dword [edi]
jmp 0x100039c0
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.1000cf30
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x38]
cmp dword [ebp - 8], 0x10
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0xf
push 0x100ab684
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.10002cf0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x208]
cmp dword [ebp - 0x24], 0x10
mov edx, 0x100
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x21c], eax
xor eax, eax
nop word [eax + eax]
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x10003a30
xor dl, dl
mov word [ebp - 0x108], 0
xor ebx, ebx
lea esi, [ebp - 0x208]
mov edi, 0x100
mov eax, dword [ebp - 0x21c]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
movzx edx, dl
mov al, byte [eax + edx]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x208]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x214]
mov byte [ebp + ebx - 0x208], cl
sub edi, 1
jne 0x10003a53
mov ebx, dword [ebp - 0x20c]
xor esi, esi
mov edi, dword [ebp - 0x218]
test ebx, ebx
jle 0x10003b07
movzx edx, byte [ebp - 0x108]
movzx ebx, byte [ebp - 0x107]
mov edi, dword [ebp - 0x210]
inc dl
movzx edx, dl
mov cl, byte [ebp + edx - 0x208]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x208]
mov byte [ebp + edx - 0x208], al
mov byte [ebp + ebx - 0x208], cl
movzx eax, cl
add al, byte [ebp + edx - 0x208]
movzx eax, al
movzx eax, byte [ebp + eax - 0x208]
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp - 0x20c]
jl 0x10003ab3
mov edi, dword [ebp - 0x218]
mov ebx, dword [ebp - 0x20c]
lea ecx, [ebp - 0x38]
call fcn.100026f0
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x210], eax
call fcn.10055475
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x20c], 0
cmp dword [ebp - 8], 0x10
mov esi, eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], esi
cmovae ecx, dword [ebp - 0x1c]
push eax
push 0
call fcn.1000b760
mov eax, dword [ebp - 0x20c]
inc eax
push eax
call fcn.10055475
add esp, 0xc
lea edx, [ebp - 0x20c]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [edi + 0x10]
push eax
call fcn.1000b760
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
cmovae ecx, dword [ebp - 0x1c]
push esi
call fcn.1000b760
push 0xb0
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.1006cd80
add esp, 0x18
mov dword [ebp - 0xe8], 0x100abe8c
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], 0x100ab760
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push eax
call fcn.10004c30
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xd0]
call fcn.10004d70
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0xd0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
cmp dword [ebx + 0x14], 0x10
jb 0x10003c37
mov eax, dword [ebx]
jmp 0x10003c39
mov eax, ebx
push esi
mov esi, dword [ebp - 0x224]
push ecx
push esi
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10004ed0
add esp, 0xc
push eax
call fcn.10005100
add esp, 0xc
push eax
call fcn.10004ed0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.1000d400
push 1
push 0x100abe88
mov ecx, eax
call fcn.100025a0
push eax
lea ecx, [ebp - 0x38]
call fcn.10002420
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
call fcn.100107a0
lea ecx, [ebp - 0x38]
call fcn.100026f0
lea ecx, [ebp - 0x100]
call fcn.100026f0
mov ecx, str.Request:
call fcn.100107a0
cmp dword [ebx + 0x14], 0x10
jb 0x10003cbc
mov ebx, dword [ebx]
mov ecx, ebx
call fcn.100107a0
cmp dword [esi + 0x14], 0x10
jb 0x10003ccb
mov esi, dword [esi]
mov ecx, esi
call fcn.100107a0
cmp dword [edi + 0x14], 0x10
jb 0x10003cda
mov edi, dword [edi]
mov ecx, edi
call fcn.100107a0
mov ecx, 0x100abef8
call fcn.100107a0
push dword [ebp - 0x214]
call fcn.10054c86
mov esi, dword [ebp - 0x228]
lea ecx, [ebp - 0xd0]
add esp, 4
push esi
call fcn.10004b50
lea ecx, [ebp - 0x80]
call fcn.10003e80
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], vtable.std::ios_base.0
push eax
call fcn.1008dac9
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.100026f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054c42
mov esp, ebp
pop ebp
ret 0x10