Function at 0x4077e1
Capabilities:
Check os version
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x64]
or edi, eax
lea ebx, [eax - 8]
mov dword [ebp - 0x80], ebx
xor eax, esi
cmp dword [ebp - 0x38], 0x14
jne 0x4077fe
push ecx
push ebx
call edx
push dword [ebp - 0x80]
mov edx, dword [ebp - 0x40]
and eax, edi
or ebx, esi
mov ebx, dword [ebp - 0x44]
add ebx, 0x5b0
call dword [ebx]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
add eax, ebx
and ecx, eax
mov esi, dword [ebp - 0x80]
or eax, dword [ebp - 0x4c]
and dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0x64]
or eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], 1
je 0x40783b
mov edi, dword [ecx]
test edi, edi
je 0x4077fc
lea esi, [edi - 0x10]
mov dword [ebp - 0x80], esi
push dword [ebp - 0x80]
cmp dword [ebp - 0x38], 1
je 0x407856
int3
add dword [ebp - 0x78], 7
mov ebx, dword [ebp - 0x80]
cmp dword [ebp - 0x48], 0x400002
jne 0x40786f
push ebx
lea eax, [ebp - 0xc]
push 1
mov eax, dword [ebp - 0x64]
and edi, ecx
lea ebx, [eax - 8]
mov dword [ebp - 0x80], ebx
add dword [ebp - 0x48], 0
je 0x40788d
mov byte [eax + 8], 0
pop ebp
mov eax, dword [ecx + 4]
test eax, eax
push dword [ebp - 0x80]
push 0
and esi, dword [ebp - 0x84]
lea ecx, [edx - 0x40]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
add eax, 0x620
call dword [eax]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x48], 0x400002
jne 0x4078c2
jmp 0x407b04
xor ecx, ebx
mov ebx, dword [ebp - 0x80]
add edx, eax
or dword [ebp - 0x80], ebx
jne 0x407d2b
and esi, ebx
push 0
xor edi, dword [ebp - 0x60]
and dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x64]
xor ebx, dword [ebp - 0x50]
sub esi, ecx
push dword [ecx - 0x1c]
cmp dword [ebp - 0x38], 1
je 0x407b38
push 0x800
cmp dword [ebp - 0x38], 0x400002
jne 0x407b4b
push 2
mov ebx, dword [ebp - 0x64]
add dword [ebp - 0x34], 0xfffffff6
push dword [ebx - 0xc]
lea ebx, [ecx + edi + 0x137d]
mov ebx, 0x7c548e01
mov ebx, edi
mov edx, dword [ebp - 0x40]
add word [ebp - 0x34], 0x4ce
add esi, eax
mov esi, dword [ebp - 0x44]
add esi, 0x624
call dword [esi]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x38], 0x400002
jne 0x407b94
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x64]
push dword [ecx - 0x1c]
call fcn.00403812
sub edx, eax
cmp dword [ebp - 0x48], 0x400002
jne 0x407bbd
cmp byte [ebp - 1], 0
jne 0x414324
mov eax, dword [edi]
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x48], 0x400002
jne 0x407bd1
mov eax, 0x41953b
push edx
xor eax, dword [ebp - 0x84]
test dword [ebp - 0x48], 0
je 0x407be9
add ecx, 4
int3
push dword [ebp - 0x80]
call fcn.00403853
sub eax, dword [ebp - 0x4c]
xor dword [ebp - 0x6c], ecx
sub dword [ebp - 0x40], 2
or ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x38], 1
je 0x407c12
call 0x41368c
add esp, 8
and ecx, edi
add eax, ebx
mov ebx, dword [ebp - 0x40]
cmp dword [ebx], 0x5c
je 0x407c72
xor esi, dword [ebp - 0x34]
and edx, dword [ebp - 0x34]
add dword [ebp - 0x40], 2
cmp dword [ebp - 0x38], 0x400002
jne 0x407c42
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor dword [ebp - 0x60], 0x27
mov dword [ebp - 0x80], 0x5c
or ebx, dword [ebp - 0x84]
lea ecx, [eax + 0x7f2]
push dword [ebp - 0x40]
push dword [ebp - 0x80]
call fcn.00403812
add dword [ebp - 0x48], 0
je 0x407c72
xor edx, dword [ebp - 0x6c]
sub edx, eax
mov edi, dword [ebp - 0x64]
cmp dword [edi - 0x24], 1
jne 0x407d2b
add esi, ebx
cmp dword [ebp - 0x38], 0x400002
jne 0x407ca1
push 0x419571
mov eax, dword fs:[0]
push eax
mov eax, dword [ebp - 0x80]
and ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x48], 0xffffffc1
jne 0x407cc8
call dword [0x419174]
test eax, eax
je 0x40c1cd
cmp dword [ebp - 0x18], 5
ja 0x4179c5
mov esi, dword [ebp - 0x44]
add ecx, ebx
lea eax, [esi + 0xf24]
mov dword [ebp - 0x80], eax
or ebx, dword [ebp - 0x54]
cmp dword [ebp - 0x38], 0x400002
jne 0x407ced
push edx
call fcn.0041101a
mov esi, eax
push dword [ebp - 0x80]
cmp dword [ebp - 0x38], 1
je 0x407d04
mov edi, dword [ebp - 0x64]
and edx, dword [ebp - 0x84]
sub esi, dword [ebp - 0x34]
push dword [edi - 0x1c]
cmp dword [ebp - 0x38], 1
je 0x407d26
mov eax, dword [ecx + 0x14]
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
call fcn.00411cbb
lea ebx, [ebp - 0x24]
push ebx
push dword [ebp - 0x80]
xor ebx, dword [ebp - 0x7c]
or ecx, edi
call fcn.00403812
cmp dword [ebp - 0x38], 1
je 0x407d51
xor eax, eax
push 0x41936f
push 0x41983b
xor dword [ebp - 0x4c], 0xffffff8e
cmp dword [ebp - 0x38], 1
je 0x407d6b
mov eax, dword [ebp - 0x64]
xor dword [ebp - 0x6c], 0x4f
mov dword [eax - 0x18], 0
add dword [ebp - 0x84], edi
add dword [ebp - 0x48], 0
je 0x407d97
push eax
call fcn.00411b0a
add esp, 0xc
push 0x8000
add word [ebp - 0x60], 0xd80
sub esi, dword [ebp - 0x68]
and dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x80]
or edx, ebx
mov eax, ecx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], 0xa7d
lea esi, [eax - 0x18]
mov dword [ebp - 0x80], esi
sub esi, ebx
push dword [ebp - 0x80]
cmp dword [ebp - 0x38], 0xfffffff4
jne 0x407dd0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x64]
lea edx, [ebx - 0x14]
mov dword [ebp - 0x80], edx
add ebx, esi
xor ebx, esi
push dword [ebp - 0x80]
or word [ebp - 0x2c], 0xfd9
sub ebx, dword [ebp - 0x7c]
push 0xffffffff
or dword [ebp - 0x2c], 0xffffffd8
xor dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x40]
xor word [ebp - 0x54], 0x7c6
mov eax, dword [ebp - 0x44]
add eax, 0x5a4
call dword [eax]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x40], edx
add edi, eax
mov byte [ebp - 0x34], 0x76
lea esi, [ebp - 0x80]
or ecx, ebx
mov ecx, ebx
add dword [ebp - 0x48], 0
je 0x407e2d
mov edi, edi
push ebp
mov ebp, esp
push esi
mov dword [ebp - 0x68], ebx
add edx, dword [ebp - 0x68]
push dword [ebp - 0x24]
or dword [ebp - 0x54], ecx
add dword [ebp - 0x68], ebx
call fcn.00403812
lea ecx, [edx + 0x6d]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x64]
push dword [eax - 0x1c]
call fcn.00403812
add dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x38], 0x7e
jne 0x407e76
call fcn.0040bd71
push dword [esi + 0x8c]
call fcn.00405f58
push dword [esi + 0x90]
pop dword [ebp - 0x3c]
pop dword [ebp - 0x44]
add ebx, 0x2f81
pop dword [ebp - 0x24]
sub esi, dword [ebp - 0x2c]
mov dword [ebp - 0x68], edx
mov edi, dword [ebp - 0x64]
mov esp, edi
add edi, edx
pop dword [ebp - 0x64]
add dword [ebp - 0x54], ebx
add edi, dword [ebp - 0x68]
cmp dword [ebp - 0x48], 0
je 0x407eaa
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 8]
ret 4
sub edx, eax
push dword [ebp - 0x44]
and ecx, dword [ebp - 0x7c]
call fcn.00403968
cmp dword [ebp - 0x38], 0x7f
jne 0x414354
mov dword [esi + 0x250], eax