Function at 0x10039570
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005df69
call fcn.1005c588
sub esp, 0x48
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
je 0x10039866
mov dword [ebp - 0x28], 0x623b
xor ebx, ebx
cmp dword [ebp - 0x28], 0x6288
jle 0x100395de
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x2c], ebx
lea eax, [edi + esi]
mov ecx, 0x10079cf8
xor eax, ebx
cdq
push edx
push eax
call fcn.1000dad0
inc ebx
cmp ebx, 0x146c
jl 0x100395ab
inc edi
push 0
pop ebx
cmp edi, 0x72bd
jl 0x100395a8
inc esi
cmp esi, 0x1931
jl 0x100395a6
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x28], 0x5ec6
jge 0x100395f9
mov edx, str.izcqrmz_qbdpktq_poudv_bnnf_zlruqfbp_nwajei_sutkz_gsevtn_mvk
mov ecx, 0x10079cf8
call fcn.1001081c
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [ebp + 0x14]
cmp eax, 0xa3a1
setg cl
mov dword [esi], ecx
cmp dword [esi], ebx
jne 0x10039627
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add eax, dword [ecx]
jne 0x10039621
mov eax, dword [ecx]
mov eax, dword [edi]
mov eax, dword [esi]
mov eax, dword [esi]
mov eax, dword [edi]
cmp dword [edi], ebx
je 0x10039854
mov dword [ebp - 0x24], 0x3a41
cmp dword [ebp - 0x24], 0x3a8c
jle 0x10039692
push ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x28], 0x6aac
mov eax, edi
lea ecx, [ebp - 0x54]
cdq
push edx
push eax
call fcn.10001abf
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003966a
mov eax, dword [eax]
push eax
call fcn.10044453
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.1000e569
add edi, esi
dec dword [ebp - 0x28]
jne 0x10039653
inc esi
cmp esi, 0x1643
jl 0x1003964a
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0x7289
cmp dword [ebp - 0x24], 0x36ec
jge 0x100396ad
push str.nlhocwmo_nolgxkq_nveyql
call fcn.10044453
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x22e8
cmp dword [ebp - 0x20], 0x2565
jle 0x100396fe
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebx + edi]
mov ecx, 0x10079cf8
and eax, esi
cdq
push edx
push eax
call fcn.1000dad0
inc ebx
cmp ebx, 0x15ff
jl 0x100396c8
inc edi
push 0
pop ebx
cmp edi, 0x53b7
jl 0x100396c5
inc esi
cmp esi, 0x2d2a
jl 0x100396c3
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 4
cmp dword [ebp - 0x20], 0x1f65
jge 0x10039724
mov edx, str.gsy_yyssma_tbwupdk_svhkknhl_lfsjv_porutpxhe
mov ecx, 0x10079cf8
call fcn.1001081c
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0x2a05008d
push 2
call fcn.1000ddb2
push ebx
push 0x646b
push 0x585a
push 1
push 1
push 0x2855
push 0x63e6
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x3c]
mov edx, 0x3955
push eax
push 0x92a
mov ecx, 0x2e04
call fcn.10038422
add esp, 0x28
cmp dword [esi], ebx
jne 0x100397a6
mov eax, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [edi]
mov eax, dword [esi]
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 0x28]
cmp eax, ecx
mov eax, dword [ebp - 0x24]
setg dl
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebx]
imul eax, dword [ebx]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [esi]
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
mov eax, dword [ebp - 0x3c]
setl dl
xor ecx, ecx
sub edx, dword [eax]
mov eax, dword [ebx]
cmp edx, eax
mov eax, dword [ebp - 0x20]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x28]
setg dl
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [esi], ecx
lea ecx, [ebp - 0x3c]
mov eax, dword [esi]
mov dword [ebx], eax
call fcn.1000de35
jmp 0x10039882
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x10039882
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
jmp 0x10039882
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x10039882
push ecx
push 0
mov edx, 0x17e7
mov ecx, 0x3e55
call fcn.10037e9e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret