Function at 0x100395c9
Capabilities:
Accept command line arguments
Encode data using xor

Disassembly:
mov eax, 0x10061b2c
call fcn.100600a0
sub esp, 0x84
push ebx
push esi
mov dword [ebp - 0x24], 0x508
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x24], 0x863
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x28], eax
jle 0x10039662
push ebx
push ebx
push ebx
push 0x1246
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov edi, ebx
mov eax, ebx
mov dword [ebp - 0x18], ebx
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
and esi, eax
and esi, edi
mov eax, esi
mov ecx, 0x1007bb98
or eax, ebx
cdq
push edx
push eax
call fcn.100042e3
inc ebx
cmp ebx, 0x1328
jl 0x1003961c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x1c], ecx
push 0
pop ebx
cmp ecx, 0x3331
jl 0x10039613
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x23d8
jl 0x1003960e
inc edi
cmp edi, 0x26cd
jl 0x10039609
mov eax, dword [ebp - 0x28]
cmp byte [ebp + 0x10], 0
je 0x100399cd
mov dword [ebp - 0x28], 0x193c
cmp dword [ebp - 0x28], 0x711
jge 0x100398f9
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 1
push eax
push 0x5e
lea ecx, [ebp - 0x7c]
call fcn.1002e3db
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x48], ebx
and dword [ecx], 0xfffffffd
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
lea ecx, [ebp - 0x4c]
shr eax, 1
and al, 1
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
call fcn.1002e4a3
movsd xmm0, qword [0x1006f150]
mov esi, ebx
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.10049ae4
fld1
faddp st(1)
pop ecx
pop ecx
push 0x5d
pop edi
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
comisd xmm0, xmmword [0x1006f118]
jb 0x10039763
mov ebx, dword [ebp - 0x7c]
xor eax, eax
mov edx, esi
mov dword [ebp - 0x1c], ebx
mov ecx, esi
shr edx, 5
and ecx, 0x1f
inc eax
shl eax, cl
test dword [ebx + edx*4], eax
je 0x10039730
lea ebx, [esi + esi]
cmp esi, 0x2e
jg 0x10039730
xor eax, eax
mov ecx, ebx
and ecx, 0x1f
inc eax
mov edx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x1c]
not eax
shr edx, 5
add ebx, esi
and dword [ecx + edx*4], eax
cmp ebx, edi
jg 0x10039730
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
jmp 0x1003970b
movsd xmm0, qword [0x1006f150]
inc esi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.10049ae4
fld1
faddp st(1)
movd xmm1, esi
cvtdq2pd xmm1, xmm1
pop ecx
pop ecx
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
comisd xmm0, xmm1
jae 0x100396e9
xor ebx, ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call fcn.10042f52
xor ecx, ecx
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x7c]
xor eax, eax
inc eax
mov esi, ecx
shr esi, 5
and ecx, 0x1f
shl eax, cl
mov ecx, dword [ebp - 0x1c]
and eax, dword [edx + esi*4]
neg eax
sbb eax, eax
neg eax
add eax, dword [ebx + ecx*4 - 4]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, edi
jle 0x10039789
lea eax, [ebp - 0x12]
xor ebx, ebx
push eax
push 0x5e
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x12], bl
call fcn.1002e3db
xor esi, esi
mov byte [ebp - 4], 2
inc esi
mov eax, dword [ebp - 0x8c]
mov ecx, esi
shr ecx, 5
lea ecx, [eax + ecx*4]
mov eax, esi
and eax, 0x1f
mov dword [ebp - 0x54], ecx
mov ecx, esi
mov dword [ebp - 0x50], eax
call fcn.100394cc
movzx eax, al
lea ecx, [ebp - 0x54]
push eax
call fcn.1002e4a3
inc esi
cmp esi, edi
jle 0x100397d1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.10042f52
mov ebx, dword [ebp - 0x6c]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x8c]
xor eax, eax
inc eax
mov esi, ecx
shr esi, 5
and ecx, 0x1f
shl eax, cl
mov ecx, dword [ebp - 0x1c]
and eax, dword [edx + esi*4]
neg eax
sbb eax, eax
neg eax
add eax, dword [ebx + ecx*4 - 4]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, edi
jle 0x10039824
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push str._ld__ld_n
call fcn.10049b8a
mov esi, dword [ebp - 0x60]
add esp, 0xc
lea eax, [esi + 0x174]
mov dword [ebp - 0x28], eax
mov eax, ebx
sub eax, esi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov ecx, dword [eax + esi]
mov eax, dword [esi]
imul ecx, dword [ebp - 0x34]
imul eax, dword [ebp - 0x38]
cmp ecx, eax
jl 0x1003989d
push edi
push str._ld_n
call fcn.10049603
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
dec edi
sub esi, 4
cmp edi, 1
jge 0x1003987f
push str.Palindromic_tree_is_better_than_splay_tree
call fcn.10049c2a
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x60]
pop ecx
test eax, eax
je 0x100398ce
push eax
call fcn.100497d9
pop ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
lea ecx, [ebp - 0x8c]
call fcn.1002e43c
test esi, esi
je 0x100398ed
push esi
call fcn.100497d9
pop ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.1002e43c
mov dword [ebp - 0x20], 0x6380
cmp dword [ebp - 0x20], 0x64ce
jle 0x10039973
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, edi
mov dword [ebp - 0x28], esi
cdq
idiv ecx
mov dword [ebp - 0x3c], ebx
mov ecx, edx
shl esi, cl
mov eax, esi
mov ecx, 0x1007bb98
xor eax, ebx
cdq
push edx
push eax
call fcn.100042e3
inc ebx
cmp ebx, 0x69f6
jl 0x10039924
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x1c], ecx
push 0
pop ebx
cmp ecx, 0x55c0
jl 0x10039915
inc edi
cmp edi, 0x7f1f
jl 0x10039910
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x593c
jl 0x1003990e
push 1
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [ebp - 0x44]
mov dword [edx], ebx
cmp dword [edx], 1
jge 0x10039992
mov esi, dword [ebp + 0x18]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x8e356ec7
inc dword [edx]
cmp dword [edx], 1
jl 0x10039980
mov dword [ebp - 4], 3
cmp dword [ebp - 0x20], 0x6104
jge 0x100399b1
mov edx, str.xwn_bsgzh_qbrotywjs_xmjdylh_jub_epr
mov ecx, 0x1007bb98
call fcn.100067dc
jmp 0x100399d8
cmp byte [eax], 0
je 0x100399d8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], 5
cmp dword [ebp - 0x24], 0x3f5
jge 0x100399f7
mov edx, str.xrybrjf_mwascywly_stqqq_otrruccw_kqc_knqcqsn_jfq_bgziwekky
mov ecx, 0x1007bb98
call fcn.100067dc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret