Function at 0x1000a95c
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov esi, dword [ebp + 0x14]
mov edx, 0x400000
mov eax, dword [ebp + 0x18]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
and esi, 1
je 0x1000a9a2
mov ecx, 0xffffff00
mov edx, 0xff
jmp 0x1000a9ac
mov ecx, 0xfffff800
mov edx, 0x7ff
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x40], edi
lea edi, [ebp - 0x249]
and eax, 1
mov dword [ebp - 0x20], eax
and edi, 0xffffffc0
mov dword [ebp - 0x48], edi
mov esi, edi
lea edi, [ebp - 0x149]
and edi, 0xffffffc0
sub edx, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1000aa06
mov ecx, dword [ebp - 0x40]
mov edx, esi
lea eax, [esi + 0x80]
mov word [edx], cx
mov word [edx + 2], cx
mov word [edx + 4], cx
mov word [edx + 6], cx
add edx, 8
cmp eax, edx
ja 0x1000a9ee
jmp 0x1000aa31
mov dword [ebp - 0x10], ebx
mov eax, esi
lea edi, [esi + 0x80]
mov esi, dword [ebp - 0x1c]
mov ebx, eax
call fcn.100768f8
cdq
idiv esi
add edx, dword [ebp - 0x18]
mov word [ebx], dx
add ebx, 2
cmp edi, ebx
ja 0x1000aa16
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov edx, dword [esi]
mov edi, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [esi + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [esi + 0x38]
mov dword [eax + 0x38], edx
mov edx, dword [esi + 0x3c]
mov dword [eax + 0x3c], edx
mov edx, dword [esi + 0x40]
mov dword [eax + 0x40], edx
mov edx, dword [esi + 0x44]
mov dword [eax + 0x44], edx
mov edx, dword [esi + 0x48]
mov dword [eax + 0x48], edx
mov edx, dword [esi + 0x4c]
mov dword [eax + 0x4c], edx
mov edx, dword [esi + 0x50]
mov dword [eax + 0x50], edx
mov edx, dword [esi + 0x54]
mov dword [eax + 0x54], edx
mov edx, dword [esi + 0x58]
mov dword [eax + 0x58], edx
mov edx, dword [esi + 0x5c]
mov dword [eax + 0x5c], edx
mov edx, dword [esi + 0x60]
mov dword [eax + 0x60], edx
mov edx, dword [esi + 0x64]
mov dword [eax + 0x64], edx
mov edx, dword [esi + 0x68]
mov dword [eax + 0x68], edx
mov edx, dword [esi + 0x6c]
mov dword [eax + 0x6c], edx
mov edx, dword [esi + 0x70]
mov dword [eax + 0x70], edx
mov edx, dword [esi + 0x7c]
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000ab48
rdtsc
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x3c]
push esi
call eax
pop ecx
rdtsc
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edx
rdtsc
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
push edx
call eax
pop ecx
rdtsc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
sub ebx, edi
sbb eax, edx
add ebx, dword [ebp - 0x4c]
adc eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
jmp 0x1000ab9b
rdtsc
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x3c]
push esi
call eax
pop ecx
rdtsc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], edx
rdtsc
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
push edx
call eax
pop ecx
rdtsc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
sub ebx, edi
sbb eax, edx
add ebx, dword [ebp - 0x6c]
adc eax, dword [ebp - 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], ebx
xor edi, edi
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
movsx ebx, word [edx + ecx*2]
movsx edx, word [esi + ecx*2]
sub ebx, edx
mov eax, ebx
cdq
xor ebx, edx
sub ebx, edx
movsx edx, word [esi + ecx*2 + 2]
add ebx, edi
mov edi, dword [ebp - 0x48]
movsx edi, word [edi + ecx*2 + 2]
sub edi, edx
mov eax, edi
cdq
add ecx, 2
xor edi, edx
sub edi, edx
add edi, ebx
cmp ecx, 0x40
jl 0x1000aba2
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
mov edx, edi
sar edx, 5
shr edx, 0x1a
add edx, edi
mov edi, dword [ebp - 0x2c]
sar edx, 6
cmp edx, eax
jle 0x1000abfd
mov eax, edx
cmp edx, edi
mov dword [ebp - 0x30], eax
mov eax, edx
jl 0x1000ac08
mov eax, edi
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 1]
add ecx, 1
cmp ecx, 0x1000
mov dword [ebp - 0x40], ecx
jl 0x1000a9dc
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add esp, 0xffffffec
mov dword [esp + 4], esi
cdq
mov dword [esp], 0x10321270
push edx
push eax
push ecx
push ebx
call fcn.10076af0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
call fcn.10076b9a
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret