Function at 0x1003f840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100670c6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
cmp dword [0x1007a234], 0
je 0x1003ff81
push dword [ebp - 0x70]
mov edx, dword [esi + 0x160]
lea ebx, [esi + 0x15c]
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x58], ebx
call fcn.10041340
mov eax, dword [ebx]
xor edi, edi
mov dword [ebx + 4], eax
add esp, 8
mov ecx, dword [esi + 0x154]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi + 0x150]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
imul ecx
mov dword [ebp - 0x30], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1003fa12
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [ebp - 0x34]
mov ebx, dword [edx + 0x150]
cmp byte [esi + ebx + 0x63], 0
je 0x1003f956
cmp byte [0x1007a242], 0
mov eax, dword [0x1007a234]
mov dword [ebp - 0x38], eax
je 0x1003f949
mov ecx, 0xd78c9c
call fcn.10015280
mov edi, eax
test edi, edi
je 0x1003f940
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003f940
push 4
add edi, 0xb7c
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1003f943
mov ecx, dword [ebp - 0x38]
mov al, byte [edi]
mov byte [ecx + 0x3a], al
mov eax, ecx
jmp 0x1003f946
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov al, byte [eax + 0x3a]
cmp byte [esi + ebx + 0x63], al
jne 0x1003f9da
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x54], eax
mov al, byte [esi + eax + 0x63]
cmp al, 1
je 0x1003f96b
cmp al, 2
jne 0x1003f9c3
cmp byte [0x1007a242], 0
mov ebx, dword [0x1007a234]
je 0x1003f9b7
mov ecx, 0xd78c9c
call fcn.10015280
mov edi, eax
test edi, edi
je 0x1003f9b4
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003f9b4
push 4
add edi, 0x6a0
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1003f9b7
mov al, byte [edi]
mov byte [ebx + 0x34], al
jmp 0x1003f9b7
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
mov al, byte [ebx + 0x34]
cmp byte [esi + ecx + 0x63], al
jne 0x1003f9d7
mov eax, dword [edx + 0x150]
lea ecx, [edx + 0x15c]
add eax, esi
push eax
call fcn.10040d20
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
inc edi
add esi, 0x68
mov dword [ebp - 0x30], edi
mov ecx, dword [eax + 0x154]
sub ecx, dword [eax + 0x150]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x1003f8e0
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x15c]
cmp eax, dword [esi + 0x160]
jne 0x1003fa84
lea edi, [esi + 0xc]
mov ebx, 4
mov esi, dword [edi]
test esi, esi
je 0x1003fa44
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003fa44
push eax
mov ecx, esi
call dword [0x1006ebec]
add edi, 4
sub ebx, 1
jne 0x1003fa28
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x148]
test esi, esi
je 0x1003fa75
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003fa75
push edi
mov ecx, esi
call dword [0x1006ec50]
mov dword [ebx + 0x14c], 1
jmp 0x1003ff81
mov ecx, dword [esi + 0x160]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1006fb10]
mulsd xmm0, qword [0x1006f090]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
call fcn.100415f0
cvttsd2si eax, xmm0
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x148], eax
jbe 0x1003faf8
mov dword [esi + 0x148], 1
movzx eax, byte [ebp + 8]
lea ecx, [esi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x78], eax
add eax, 0xfffffffc
imul edi, eax, 0x68
mov dword [ebp - 0x6c], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x54], edi
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
cmp edx, 4
jg 0x1003ff54
mov esi, dword [ebp - 0x58]
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x6c], eax
jle 0x1003fb77
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx]
test esi, esi
je 0x1003ff38
push 4
push esi
call ebx
test eax, eax
jne 0x1003ff35
push eax
mov ecx, esi
call dword [0x1006ebec]
jmp 0x1003ff35
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x54]
mov edi, 0xffc4fc03
push 0xffffffffffffffff
add eax, esi
mov dword [ebp - 0x18], 0xf
push 0
push eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10002480
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp byte [esi + eax + 0x64], 2
jne 0x1003fc0e
movaps xmm0, xmmword [str.jJ1_]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x31e0b19
mov dword [ebp - 0x3c], 0x370405
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x1003fbd0
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x39], 0
jne 0x1003fbeb
xor ecx, ecx
jmp 0x1003fbfa
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fbf1
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000b4b0
mov edi, 0xff5cb9fe
jmp 0x1003fc69
mov cl, 0x3d
mov dword [ebp - 0x68], 0x68661d3d
mov dword [ebp - 0x64], 0x4f585953
xor eax, eax
mov dword [ebp - 0x60], 0x445c4a1d
mov word [ebp - 0x5c], 0x60
nop dword [eax]
xor byte [ebp + eax - 0x67], cl
inc eax
cmp eax, 0xc
jae 0x1003fc3f
mov cl, byte [ebp - 0x68]
jmp 0x1003fc30
cmp byte [ebp - 0x67], 0
mov byte [ebp - 0x5b], 0
jne 0x1003fc4d
xor ecx, ecx
jmp 0x1003fc5c
lea ecx, [ebp - 0x67]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fc53
sub ecx, edx
push ecx
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000b4b0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x3c], 0xf
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1003fc8f
xor ecx, ecx
jmp 0x1003fc9d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fc94
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100028c0
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
mov ecx, dword [esi]
call fcn.10014f70
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x1003fcd2
mov ecx, dword [ebp - 0x50]
inc edx
push 1
call fcn.10002790
add esp, 4
mov esi, dword [esi]
test esi, esi
je 0x1003fcea
push 4
push esi
call ebx
test eax, eax
jne 0x1003fcea
push edi
mov ecx, esi
call dword [0x1006ec54]
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
movaps xmm0, xmmword [0x1006f0e0]
mov ecx, dword [eax]
movzx eax, byte [edi + ecx + 0x62]
push eax
movzx eax, byte [edi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
nop
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0xe
jb 0x1003fd10
sub esp, 0x18
mov byte [ebp - 0x79], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1003fd44
mov eax, dword [edx]
jmp 0x1003fd46
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x87], 0
jne 0x1003fd56
xor ecx, ecx
jmp 0x1003fd69
lea ecx, [ebp - 0x87]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fd60
sub ecx, esi
push ecx
lea eax, [ebp - 0x87]
mov ecx, edx
push eax
call fcn.100028c0
lea eax, [ebp - 0xa0]
push eax
call fcn.100061b0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x1003fd95
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1003fdb0
xor ecx, ecx
jmp 0x1003fdbe
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fdb5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100028c0
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov ecx, dword [esi - 4]
call fcn.10014f70
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x1003fdf0
mov ecx, dword [ebp - 0x50]
inc edx
push 1
call fcn.10002790
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x1003fe22
mov ecx, dword [ebp - 0xa0]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xa0]
mov eax, dword [eax]
movzx edx, byte [eax + edi + 0x63]
call fcn.1003a0d0
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x1003fe45
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1003fe60
xor ecx, ecx
jmp 0x1003fe71
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fe65
sub ecx, esi
mov esi, dword [ebp - 0x38]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100028c0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x50]
mov ecx, dword [esi + 8]
call fcn.10014f70
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x1003fea0
mov ecx, dword [ebp - 0x50]
inc edx
push 1
call fcn.10002790
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x1003fed2
mov ecx, dword [ebp - 0xa0]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov eax, dword [eax]
mov byte [ebp - 0xa0], 0
mov eax, dword [edi + eax + 0x18]
mov dword [esi - 8], eax
mov esi, dword [ecx]
test esi, esi
je 0x1003ff18
push 4
push esi
call ebx
test eax, eax
jne 0x1003ff15
push 1
mov ecx, esi
call dword [0x1006ebec]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1003ff38
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
add edi, 0x68
mov edx, dword [ebp - 0x70]
inc eax
cmp eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], edi
jl 0x1003fb17
mov esi, dword [ebp - 0x34]
mov edi, dword [esi + 0x148]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1003ff79
push 4
push esi
call ebx
test eax, eax
jne 0x1003ff79
push edi
mov ecx, esi
call dword [0x1006ec50]
mov ecx, dword [ebp - 0x34]
call fcn.1003f0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
ret 4