Function at 0x1017a120
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
push esi
mov esi, dword [edx]
mov dword [esp + 0x2c], eax
inc esi
mov eax, dword [edx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push esi
push dword [eax + 0xc]
mov dword [esp + 0x34], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
call fcn.10107120
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test eax, eax
jne 0x1017a1da
call fcn.101073a0
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
call fcn.10106cb0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x24]
mov edx, dword [eax + 0x14]
call fcn.1016db90
add esp, 0x14
test eax, eax
jne 0x1017a823
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], 0xffffffff
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x78], 0
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x58]
push dword [esp + 0x54]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1017a77e
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x6c], ecx
jl 0x1017a211
cmp dword [esp + 0x10], eax
jne 0x1017a525
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, ebx
or eax, dword [esp + 0x18]
je 0x1017a441
mov eax, ebx
mov dword [esp + 0x10], esi
and eax, 1
or eax, esi
jne 0x1017a2d0
mov edi, dword [esp + 0x18]
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, edi
or edx, ecx
je 0x1017a2a8
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov ebx, dword [ebp + 0x10]
xor edx, edx
dec ebx
mov dword [esp + 0x68], 0
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x1c]
and ecx, dword [esp + 0x18]
or edx, ecx
jne 0x1017a336
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
dec ebx
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
inc edi
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [esp + 0x18]
or edx, ecx
je 0x1017a307
mov esi, dword [esp + 0x10]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x68]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x1017a441
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
push dword [esp + 0x78]
push dword [esp + 0x68]
mov edx, dword [eax + 0x14]
call fcn.1016db90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1017a38b
mov ecx, dword [esp + 0xc]
jmp 0x1017a447
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x68], ebx
jge 0x1017a3e0
lea ecx, [esp + 0x68]
mov dword [esp + 0x64], 0
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x68], 0
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x6c]
push ecx
push eax
mov eax, dword [edi + 0x14]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x34]
test esi, esi
je 0x1017a396
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x1017a3fe
cmp esi, 0x65
je 0x1017a3fe
mov ecx, dword [esp + 0xc]
jmp 0x1017a447
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x68]
test eax, eax
jle 0x1017a445
movq xmm1, qword [esp + 0x48]
add ecx, eax
movd xmm0, eax
psrlq xmm1, xmm0
mov dword [esp + 0xc], ecx
movq qword [esp + 0x48], xmm1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x1017a445
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x10], 1
test esi, esi
jne 0x1017a811
test ecx, ecx
jg 0x1017a48a
cmp dword [ebp + 8], esi
jg 0x1017a48a
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x1017a513
mov edx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.1017a070
mov esi, eax
add esp, 4
test esi, esi
jne 0x1017a811
jmp 0x1017a513
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017a491
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1017a4f3
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call fcn.10160610
test eax, eax
jne 0x1017a774
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100dfe70
add esp, 8
test eax, eax
je 0x1017a774
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [edi]
push esi
push dword [esp + 0x28]
add eax, edx
push eax
call fcn.101ec960
add dword [edi + 4], esi
add esp, 0xc
mov ecx, dword [edi + 4]
xor esi, esi
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x6c], ecx
jl 0x1017a211
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
add eax, ecx
cmp edx, eax
jge 0x1017a6fb
sub edx, ecx
xor eax, eax
xor ecx, ecx
bts ecx, edx
cmp edx, 0x20
cmovae eax, ecx
xor ecx, eax
cmp edx, 0x40
cmovae eax, ecx
and ecx, ebx
and eax, dword [esp + 0x18]
or ecx, eax
je 0x1017a55e
mov ebx, 1
jmp 0x1017a560
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jle 0x1017a594
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, edi
call fcn.1017a070
mov esi, eax
add esp, 4
test esi, esi
jne 0x1017a6e2
test ebx, ebx
je 0x1017a627
mov esi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017a5a3
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1017a609
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call fcn.10160610
test eax, eax
jne 0x1017a774
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100dfe70
add esp, 8
test eax, eax
je 0x1017a774
mov edx, dword [edi + 4]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [edi]
push esi
push dword [esp + 0x3c]
add eax, edx
push eax
call fcn.101ec960
mov eax, dword [edi]
add esp, 0xc
add dword [edi + 4], esi
mov ecx, dword [edi + 4]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
sub eax, ecx
push eax
lea edx, [ecx + edx]
mov ecx, edi
call fcn.1017a070
mov esi, eax
add esp, 4
test esi, esi
jne 0x1017a6e2
test ebx, ebx
je 0x1017a6e2
mov esi, dword [esp + 0x3c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017a660
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1017a6c2
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call fcn.10160610
test eax, eax
jne 0x1017a774
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100dfe70
add esp, 8
test eax, eax
je 0x1017a774
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [edi]
push esi
push dword [esp + 0x40]
add eax, edx
push eax
call fcn.101ec960
add dword [edi + 4], esi
add esp, 0xc
mov ecx, dword [edi + 4]
xor esi, esi
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
test esi, esi
jne 0x1017a811
mov ebx, dword [esp + 0x1c]
jmp 0x1017a211
cmp dword [ebp + 0xc], 0
je 0x1017a811
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017a710
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1017a76a
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call fcn.10160610
test eax, eax
jne 0x1017a774
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100dfe70
add esp, 8
test eax, eax
je 0x1017a774
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
push esi
push dword [esp + 0x28]
jmp 0x1017a7f6
mov esi, 7
jmp 0x1017a811
cmp esi, 0x65
jne 0x1017a811
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017a792
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1017a7ec
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call fcn.10160610
test eax, eax
jne 0x1017a774
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100dfe70
add esp, 8
test eax, eax
je 0x1017a774
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
push esi
push eax
mov eax, dword [edi]
add eax, edx
push eax
call fcn.101ec960
add dword [edi + 4], esi
add esp, 0xc
mov eax, dword [edi]
xor esi, esi
mov ecx, dword [edi + 4]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret