Function at 0x100387c0
Capabilities:
Acquire debug privileges
Encode data using xor
Get mac address on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2220
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e0
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3e8], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3ec], eax
call dword [sym.imp.HttpClient.dll_HTTPAPI_InitializeSdk]
call fcn.1002fed0
cmp dword [0x1010eea8], 0
jne 0x10038866
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x1010eeac], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
push 0x1010eeb4
mov dword [0x1010eeb0], eax
call esi
push 0x1010eec8
call esi
mov dword [0x1010eea8], 1
lea eax, [ebp - 0x3dc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100388e0
lea eax, [ebp - 0x3e4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100388d4
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3e0]
push 0
push 0
push 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 0x3dc]
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100388e0
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x3dc]
push eax
push 0
mov dword [ebp - 0x3dc], 0
call edi
cmp eax, 0x6f
jne 0x100389ec
push dword [ebp - 0x3dc]
call fcn.100a7ef7
mov esi, eax
add esp, 4
mov dword [ebp - 0x3e0], esi
test esi, esi
je 0x100389ec
lea eax, [ebp - 0x3dc]
push eax
push esi
call edi
test eax, eax
jne 0x10038972
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X__02X__02X__02X__02X__02X
push str.00_00_00_00_00_00
call fcn.100208f0
add esp, 0x20
mov edi, esi
mov esi, dword [edi + 0x19c]
lea eax, [ebp - 0x3d8]
push 0x35c
push 0
push eax
call fcn.10097780
add esp, 0xc
mov dword [ebp - 0x1d8], esi
lea eax, [ebp - 0x3d8]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
test eax, eax
jne 0x100389d7
mov eax, dword [ebp - 0x1b8]
cmp eax, 5
je 0x100389b7
cmp eax, 4
jne 0x100389d7
mov ecx, dword [ebp - 0x3e0]
xor edx, edx
movzx eax, byte [0x10105e2c]
cmp dword [ecx + 0x1a0], 0x47
cmove eax, edx
mov byte [0x10105e2c], al
jmp 0x100389dd
mov ecx, dword [ebp - 0x3e0]
mov edi, dword [edi]
test edi, edi
jne 0x10038974
push ecx
call fcn.100a21a6
add esp, 4
call fcn.1001bd70
call fcn.100393c0
mov esi, dword [ebp - 0x3e8]
mov ecx, esi
call fcn.10038c20
mov edi, dword [ebp - 0x3ec]
xorps xmm0, xmm0
mov ecx, edi
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038a23
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.1000ad50
lea ecx, [esi + 0xd8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x10038a5b
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10008f60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10038a96
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038a8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038c09
push ecx
push edx
call fcn.1009517b
add esp, 8
call fcn.1003d860
call fcn.1003dc90
mov edx, 0xafc8
xor ecx, ecx
call fcn.1006ddc0
push ecx
lea ecx, [ebp - 0x130]
call fcn.100045c0
mov edx, str._TID:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001ec80
mov edx, 0x100ec450
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100f0000]
mov esi, eax
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0xb1142
mov byte [ebp - 4], 2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x12
jb 0x10038b05
lea edx, [ebp - 0x60]
mov byte [ebp - 0x4e], 0
mov ecx, esi
call fcn.10006770
movzx ecx, byte [0x10105e2c]
push ecx
mov ecx, eax
call fcn.10049460
movaps xmm0, xmmword [0x100efbe0]
mov esi, eax
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4b]
xor al, byte [ebp - 0x4c]
mov byte [ebp + ecx - 0x3c], al
inc ecx
cmp ecx, 0xe
jb 0x10038b50
lea edx, [ebp - 0x3c]
mov byte [ebp - 0x2e], 0
mov ecx, esi
call fcn.10006770
mov edx, str.00_00_00_00_00_00
mov ecx, eax
call fcn.10006770
mov byte [ebp - 4], 1
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x130]
lea eax, [ebp - 0x48]
push eax
call fcn.100044d0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10038ba1
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003ef0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10038bde
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038bd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038c0e
push ecx
push edx
call fcn.1009517b
add esp, 8
lea ecx, [ebp - 0x130]
call fcn.10004400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100a129f
call fcn.100a129f
int3