Function at 0x10002160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019d838
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esi + 0x74], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov eax, dword [0x102a8048]
push ecx
push 0xf02a
mov eax, dword [eax + 0x2fc]
call eax
add esp, 8
test eax, eax
js 0x10002443
push 0x10007800
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.10007280
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x5c]
mov dword [esi + 0x5c], ecx
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], edi
mov dword [esi + 0x60], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000223a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10002237
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10002237
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp - 0x54]
mov eax, dword [0x102a8048]
lea ecx, [ebp - 0x64]
push ecx
push 0xf102
mov eax, dword [eax + 0x2fc]
call eax
add esp, 8
test eax, eax
js 0x10002443
push 0x10007800
push dword [ebp - 0x64]
lea ecx, [esi + 0x50]
call fcn.10006ba0
lea eax, [esi + 0x10]
push eax
push dword [0x102a8048]
call fcn.10003b80
test eax, eax
js 0x10002443
mov eax, dword [0x102a8048]
lea ecx, [ebp - 0x68]
push ecx
push 0xf00f
mov eax, dword [eax + 0x2fc]
call eax
add esp, 8
test eax, eax
js 0x10002443
push 0x10007800
push dword [ebp - 0x68]
lea ecx, [esi + 0x64]
call fcn.10006c50
mov eax, dword [0x102a8048]
lea ecx, [ebp - 0x6c]
push ecx
push 0xf001
mov eax, dword [eax + 0x2fc]
call eax
add esp, 8
test eax, eax
js 0x10002443
push 0x10007800
push dword [ebp - 0x6c]
lea ecx, [esi + 0x6c]
call fcn.10006d00
test ebx, ebx
je 0x100023f7
mov edi, dword [esi + 0x6c]
mov ebx, 0x7cbb
mov dword [ebp - 0x50], 0x7cc3
mov eax, 0x7cf0
mov word [ebp - 0x4c], bx
mov ecx, 0x7ce3
mov word [ebp - 0x4a], ax
mov edx, 0x7ce6
mov eax, 0x7ca1
mov esi, 0x7cbb
mov word [ebp - 0x48], ax
mov eax, 0x7cf9
mov word [ebp - 0x46], ax
mov word [ebp - 0x44], ax
mov eax, 0x7caa
mov word [ebp - 0x42], cx
mov word [ebp - 0x40], ax
mov eax, 0x7ca6
mov word [ebp - 0x3e], ax
mov eax, 0x7cfb
mov word [ebp - 0x3c], bx
mov word [ebp - 0x3a], cx
mov ecx, 0x7cf3
mov word [ebp - 0x38], dx
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], bx
mov ebx, 0x7ce3
mov word [ebp - 0x30], bx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], ax
mov word [ebp - 0x28], si
mov word [ebp - 0x26], bx
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], cx
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], si
mov word [ebp - 0x1c], bx
mov ebx, dword [ebp - 0x54]
mov word [ebp - 0x1a], dx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], ax
mov eax, esi
mov esi, dword [ebp - 0x70]
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
xor edx, edx
mov ax, word [ebp - 0x4c]
nop word [eax + eax]
mov ax, word [ebp + edx*2 - 0x4c]
movzx ecx, ax
movzx eax, word [ebp - 0x50]
xor ecx, eax
mov word [ebp + edx*2 - 0x4c], cx
inc edx
cmp edx, 0x1d
jb 0x100023c0
push dword [ebx + 0xc]
xor eax, eax
lea ecx, [ebp - 0x4c]
push dword [ebx + 8]
mov word [ebp - 0x12], ax
push dword [ebx + 4]
mov eax, dword [edi]
push dword [ebx]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0x18
cmp dword [ebp + 0x1c], 1
mov dword [esi + 0x98], 0
jb 0x10002412
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [esi + 0x98], eax
mov edx, dword [ebp - 0x74]
test edx, edx
je 0x1000242c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000242c
mov eax, dword [esi]
push ecx
push edx
push esi
call dword [eax + 0x34]
test eax, eax
js 0x10002443
lea ecx, [ebp - 0x78]
call fcn.10013758
test eax, eax
js 0x10002443
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x94], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret 0x1c