Function at 0x10039d3f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005df95
call fcn.1005c588
sub esp, 0x88
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x1c], dl
mov byte [ebp - 0x20], cl
je 0x10039e72
xor ebx, ebx
test dl, dl
je 0x10039e63
mov dword [ebp - 0x38], 0x42ae
cmp dword [ebp - 0x38], 0x433f
jle 0x10039e14
mov esi, ebx
mov dword [ebp - 0x34], ebx
mov edi, ebx
mov dword [ebp - 0x30], ebx
mov ecx, edi
mov dword [ebp + 0xc], esi
mov edi, esi
mov eax, ebx
sar edi, cl
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0xc], edi
mov ecx, eax
mov dword [ebp - 0x40], edi
mov esi, ebx
sar edi, cl
mov eax, edi
lea ecx, [ebp - 0x90]
or eax, esi
cdq
push edx
push eax
call fcn.10001abf
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10039dc3
mov eax, dword [eax]
push eax
call fcn.10044453
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.1000e569
inc esi
cmp esi, 0x337e
jl 0x10039da7
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x57e7
jl 0x10039d9e
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
inc edi
mov dword [ebp - 0x30], edi
cmp edi, 0x26e9
jl 0x10039d8d
inc esi
mov dword [ebp - 0x34], esi
cmp esi, 0x4357
jl 0x10039d88
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0xf], 0
je 0x10039e46
push ecx
push 0x5787
push 0x5109
push 0x32cd
push 0x3fe0
push 0x1ed5
push 1
mov edx, 0x636e
call fcn.100385d7
add esp, 0x1c
cmp dword [ebp - 0x38], 0x40e2
jge 0x1003a15b
push str.fbchzn_fggmgofi_xlog_dqcmlrn_fzqbvh_zkrug_gcbj_pyui_xqhy_rjajqc_juiqot_cxin_nfamsbg_bdlu
call fcn.10044453
pop ecx
jmp 0x1003a15b
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jmp 0x1003a15b
test cl, cl
je 0x10039e97
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x1003a15b
push ecx
push 0x3ca7
push 0
call fcn.10038d7c
add esp, 0xc
jmp 0x1003a15b
push 2
lea ecx, [ebp - 0x60]
call fcn.1000ddb2
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 2
push eax
sub esp, 0x10
mov dword [ebp - 0x3c], 5
lea eax, [ebp - 0x48]
push eax
sub esp, 0x14
call fcn.10038ea7
add esp, 0x2c
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x60]
mov ecx, 0x47d9
push 0x4638
push eax
push 0x72fe
push 1
push 0x6677
push 0x44d3
push 1
call fcn.100356ee
add esp, 0x1c
lea eax, [ebp - 0x3c]
xor ebx, ebx
mov edx, 0x459b
mov ecx, 0x20f1
push 0x1a94
push ebx
push 0x2e95
push 1
push 0x5da6
push eax
push 0x3f07
push 0x3ef1
push 0x5c90
push ebx
push 0x5bf1
call fcn.100387ab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
add esp, 0x2c
call fcn.1000de35
mov dword [ebp + 0xc], 0x62ed
cmp dword [ebp + 0xc], 0x64d8
jle 0x10039f86
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x40], ebx
mov ecx, ebx
mov eax, edi
sar eax, cl
mov ecx, 0x10079cf8
xor eax, esi
cdq
push edx
push eax
call fcn.1000dad0
inc ebx
cmp ebx, 0x424
jl 0x10039f53
inc edi
push 0
pop ebx
cmp edi, 0x7e0f
jl 0x10039f50
inc esi
cmp esi, 0x1d7c
jl 0x10039f4e
mov dword [ebp - 4], 3
cmp dword [ebp + 0xc], 0x62e3
jge 0x10039fa5
mov edx, str.ymi_oycdlaf_emxvdgey_dvouaf
mov ecx, 0x10079cf8
call fcn.1001081c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x6c]
push 2
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
call fcn.1000ddb2
push 1
push 0x7473
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 5
push eax
push 0x2f0c
mov dword [ebp - 0x24], 0xbb743d83
lea ecx, [ebp - 0x6c]
push 0x73a6
mov dword [ebp + 0xc], 0x69ec4279
xor dl, dl
mov dword [ebp + 0xc], 0xfffffffd
push ebx
call fcn.10037cbd
add esp, 0x18
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], ebx
jl 0x1003a03d
mov dword [ebp - 0x44], 0xe96673e7
lea edx, [ebp - 0x6c]
mov dword [ebp + 0xc], ebx
mov ecx, 0x5b2b
mov eax, dword [ebp + 0xc]
inc eax
neg eax
push 1
sbb eax, eax
inc eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10036386
add esp, 0x10
dec dword [ebp - 0x24]
jns 0x1003a007
mov dword [ebp + 0xc], ebx
jmp 0x1003a089
push 0x429b
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], bl
push ebx
push eax
mov edx, 0x48d2
mov ecx, 0x4a16
call fcn.10039552
add esp, 0xc
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 1
jle 0x1003a067
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1000de35
push 1
lea ecx, [ebp - 0x78]
call fcn.1000ddb2
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 6
push eax
push ecx
push ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0xba2d3c5e
push eax
push 0x3a47
push ecx
mov edx, 0x4143
call fcn.10036998
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
add esp, 0x18
mov dword [eax], 0xfffffff2
call fcn.1000de35
mov esi, ebx
mov cl, byte [ebp + esi - 0x28]
mov dl, 0xeb
call fcn.1003dee8
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, 2
jb 0x1003a0e7
xor eax, eax
lea ecx, [ebp - 0x16]
inc eax
xor dl, dl
push 0x3832
push eax
push eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0xc], 0x3f23e93d
push 0x6fde
mov dword [ebp + 0xc], 0xfffd
push 0x4547
mov byte [ebp - 0x16], bl
call fcn.1003735a
add esp, 0x14
mov dl, 1
mov ecx, 0x2546
push ebx
push ebx
push 0x5413
push 0x4c1e
push 0x6035
call fcn.10039919
mov ecx, dword [ebp + 0x14]
add esp, 0x14
mov ax, word [ebp - 0x28]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret