Function at 0x10003120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x56c], eax
mov esi, dword [eax + 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x598], edi
mov dword [ebp - 0x574], esi
test esi, esi
je 0x100037cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
mov dword [ebp - 0x578], ecx
test ecx, ecx
je 0x100037cb
xor eax, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
push eax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push 0x1c
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x144]
push eax
movd eax, xmm0
push 0
movups xmmword [ebp - 0x144], xmm0
push eax
push ecx
movq qword [ebp - 0x134], xmm0
mov dword [ebp - 0x144], eax
call esi
test eax, eax
js 0x10003763
nop
test dword [ebp - 0x134], 0x1000
jne 0x100031fd
mov eax, dword [ebp - 0x138]
add dword [ebp - 0x144], eax
jmp 0x1000373a
push 0
push 0x210
lea eax, [ebp - 0x354]
push eax
push 2
push dword [ebp - 0x144]
push dword [ebp - 0x578]
call esi
test eax, eax
jns 0x10003230
mov eax, dword [ebp - 0x138]
add dword [ebp - 0x144], eax
jmp 0x1000373a
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x138]
mov dword [ebp - 0x570], edi
lea eax, [edi + esi]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x56c]
mov edx, dword [eax + 0x10]
mov al, byte [eax + 0x18]
mov byte [ebp - 0x565], al
test al, al
je 0x10003284
test edi, edi
je 0x100032b3
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
mov eax, dword [ebp - 0x56c]
xor edx, dword [eax + ecx*4 + 0x1c]
sub edi, 1
jne 0x10003265
jmp 0x100032a7
test edi, edi
je 0x100032b3
movzx eax, byte [esi]
lea esi, [esi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, eax
mov eax, dword [ebp - 0x56c]
xor edx, dword [eax + ecx*4 + 0x1c]
sub edi, 1
jne 0x10003288
mov al, byte [ebp - 0x565]
mov edi, dword [ebp - 0x570]
mov ecx, dword [ebp - 0x56c]
cmp al, byte [ecx + 0x19]
je 0x100032d5
mov ecx, edx
xor edx, edx
lea esi, [edx + 0x20]
mov eax, ecx
add edx, edx
and eax, 1
shr ecx, 1
or edx, eax
sub esi, 1
jne 0x100032c5
mov eax, dword [ebp - 0x56c]
mov esi, dword [ebp - 0x574]
push 0
push 0x1c
mov eax, dword [eax + 0x14]
xor eax, edx
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x144]
push eax
push 0
push dword [ebp - 0x144]
push dword [ebp - 0x578]
call esi
test eax, eax
js 0x100033aa
nop
push 0
push 0x210
lea eax, [ebp - 0x564]
push eax
push 2
push dword [ebp - 0x144]
push dword [ebp - 0x578]
call esi
test eax, eax
js 0x100033aa
mov esi, dword [ebp - 0x350]
mov ecx, esi
mov eax, dword [ebp - 0x560]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10003366
test dx, dx
je 0x10003362
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10003366
add ecx, 4
add eax, 4
test dx, dx
jne 0x10003340
xor eax, eax
jmp 0x1000336b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100033b0
mov ecx, dword [ebp - 0x144]
add ecx, dword [ebp - 0x138]
add edi, dword [ebp - 0x138]
mov esi, dword [ebp - 0x574]
push eax
push 0x1c
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], ecx
push eax
push 0
push ecx
push dword [ebp - 0x578]
call esi
test eax, eax
jns 0x10003310
mov esi, dword [ebp - 0x350]
mov eax, dword [ebp - 0x56c]
push esi
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x10003734
push dword [ebp - 0x570]
lea eax, [ebp - 0x90]
push 0x10007394
push eax
call fcn.100039e0
push edi
lea eax, [ebp - 0x110]
push 0x10007394
push eax
call fcn.100039e0
mov edx, dword [ebp - 0x350]
add esp, 0x18
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003400
mov eax, dword [ebp - 0x114]
sub ecx, esi
mov esi, dword [ebp - 0x118]
sub eax, esi
sar ecx, 1
mov dword [ebp - 0x570], esi
cmp ecx, eax
ja 0x10003463
cmp dword [ebp - 0x114], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x118], edi
push eax
mov eax, dword [ebp - 0x570]
lea esi, [ebp - 0x128]
cmovae esi, dword [ebp - 0x128]
push edx
lea eax, [esi + eax*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1000347e
push ecx
push edx
mov byte [ebp - 0x57c], 0
push dword [ebp - 0x57c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.10003b70
mov edx, dword [ebp - 0x114]
mov eax, edx
mov ecx, dword [ebp - 0x118]
sub eax, ecx
cmp eax, 1
jb 0x100034c7
cmp edx, 8
lea esi, [ebp - 0x128]
push 2
cmovae esi, dword [ebp - 0x128]
lea edi, [ecx + 1]
push str.____
mov dword [ebp - 0x118], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100034e8
push 1
push str.____
mov byte [ebp - 0x580], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x580]
push 1
call fcn.10003b70
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100034f1
mov eax, dword [ebp - 0x114]
sub ecx, edx
mov edx, dword [ebp - 0x118]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x1000354e
cmp dword [ebp - 0x114], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x128]
cmovae esi, dword [ebp - 0x128]
lea eax, [ebp - 0x90]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x118], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1000356f
push ecx
lea eax, [ebp - 0x90]
mov byte [ebp - 0x584], 0
push eax
push dword [ebp - 0x584]
push ecx
lea ecx, [ebp - 0x128]
call fcn.10003b70
mov edx, dword [ebp - 0x114]
mov eax, edx
mov ecx, dword [ebp - 0x118]
sub eax, ecx
cmp eax, 1
jb 0x100035b8
cmp edx, 8
lea esi, [ebp - 0x128]
push 2
cmovae esi, dword [ebp - 0x128]
lea edi, [ecx + 1]
push 0x100073a0
mov dword [ebp - 0x118], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100035d9
push 1
push 0x100073a0
mov byte [ebp - 0x588], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x588]
push 1
call fcn.10003b70
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100035e2
mov eax, dword [ebp - 0x114]
sub ecx, edx
mov edx, dword [ebp - 0x118]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x1000363f
cmp dword [ebp - 0x114], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x128]
cmovae esi, dword [ebp - 0x128]
lea eax, [ebp - 0x110]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x118], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10003660
push ecx
lea eax, [ebp - 0x110]
mov byte [ebp - 0x58c], 0
push eax
push dword [ebp - 0x58c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.10003b70
mov edx, dword [ebp - 0x114]
mov eax, edx
mov ecx, dword [ebp - 0x118]
sub eax, ecx
cmp eax, 1
jb 0x100036a9
cmp edx, 8
lea esi, [ebp - 0x128]
push 2
cmovae esi, dword [ebp - 0x128]
lea edi, [ecx + 1]
push 0x100073a4
mov dword [ebp - 0x118], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x100036ca
push 1
push 0x100073a4
mov byte [ebp - 0x590], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x590]
push 1
call fcn.10003b70
mov edx, dword [ebp - 0x114]
mov eax, edx
mov ecx, dword [ebp - 0x118]
sub eax, ecx
cmp eax, 1
jb 0x10003713
cmp edx, 8
lea esi, [ebp - 0x128]
push 2
cmovae esi, dword [ebp - 0x128]
lea edi, [ecx + 1]
push 0x100073a8
mov dword [ebp - 0x118], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x10003734
push 1
push 0x100073a8
mov byte [ebp - 0x594], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x594]
push 1
call fcn.10003b70
mov esi, dword [ebp - 0x574]
push 0
push 0x1c
lea eax, [ebp - 0x144]
push eax
push 0
push dword [ebp - 0x144]
push dword [ebp - 0x578]
call esi
test eax, eax
jns 0x100031e0
mov edi, dword [ebp - 0x598]
lea eax, [ebp - 0x128]
cmp edi, eax
je 0x10003789
cmp dword [ebp - 0x114], 8
mov ecx, edi
push dword [ebp - 0x118]
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.10003850
mov edx, dword [ebp - 0x114]
cmp edx, 8
jb 0x100037cb
mov ecx, dword [ebp - 0x128]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100037c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100037c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100052f7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004f70
mov esp, ebp
pop ebp
ret 4