Function at 0x10066000
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bd6e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x101dadb0]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 4], 0
mov cl, 0x1b
mov esi, dword [0x1027c0b0]
xor eax, eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x18], 0x687e6f1b
mov word [ebp - 0x14], 0x476f
mov byte [ebp - 0x12], 0
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 5
jae 0x10066074
mov cl, byte [ebp - 0x18]
jmp 0x10066065
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x17]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10047780
sub esp, 0x1c
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10047950
mov byte [ebp - 4], 0
call fcn.100da1e0
test al, al
je 0x1006616f
push 0
push 0
push 0
sub esp, 0x1c
lea eax, [ebp - 0x99]
mov esi, esp
mov dword [ebp - 0x14], eax
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10048f80
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov byte [ebp - 4], 2
mov ecx, esi
push 0
push 0x101b8c74
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10048350
push 0
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.10065d20
lea ecx, [ebp + 0xc]
call fcn.100448c0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10066144
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10049010
add esp, 8
mov ecx, dword [ebp + 0xc]
push 8
push ecx
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
call fcn.10049010
mov eax, ebx
jmp 0x10066473
mov cl, 0x18
mov dword [ebp - 0x1c], 0x44514d18
mov dword [ebp - 0x18], 0x7036716d
xor eax, eax
mov word [ebp - 0x14], 0x6a7c
mov byte [ebp - 0x12], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 9
jae 0x1006619f
mov cl, byte [ebp - 0x1c]
jmp 0x10066190
mov edx, dword [esi + 0x1c]
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x12], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100661b0
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x10066a3a
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x100661d3
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x1b]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x38]
call fcn.10049270
mov byte [ebp - 4], 3
lea ebx, [esi + 4]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov edx, ebx
mov dword [ebp - 0x98], ebx
cmovae ecx, dword [ebp - 0x34]
call fcn.10065e30
lea ecx, [ebp - 0x38]
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.100448c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1006622b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.10049010
add esp, 8
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.10066b80
mov esi, eax
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x1006629d
mov ecx, eax
call fcn.100448c0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10066282
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10049010
add esp, 8
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
call fcn.10048560
lea ecx, [ebp - 0x38]
call fcn.100448c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100662ba
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.10049010
add esp, 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.10047950
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov ecx, dword [ebx]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x24]
cmp eax, ecx
ja 0x1006636e
xor edi, edi
mov dword [ebp - 0xa0], edi
test ecx, ecx
je 0x1006636e
xor esi, esi
mov bl, 1
test eax, eax
je 0x10066494
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0xac], eax
mov edi, eax
mov cl, byte [edi + esi]
xor edx, edx
movzx eax, bl
mov ebx, dword [ebp - 0xb0]
cmp cl, byte [ebx + esi]
cmove edx, eax
mov eax, dword [ebp - 0x24]
inc esi
mov bl, dl
cmp esi, eax
jb 0x10066331
mov edi, dword [ebp - 0xa0]
test bl, bl
jne 0x10066494
mov ecx, dword [ebp - 0x98]
inc edi
mov dword [ebp - 0xa0], edi
cmp edi, dword [ecx]
jb 0x10066313
lea ecx, [ebp - 0x38]
call fcn.100448c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1006638b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.10049010
add esp, 8
push 0
push 0
push 0
sub esp, 0x1c
lea eax, [ebp - 0x99]
mov esi, esp
mov dword [ebp - 0x14], eax
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10048f80
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov byte [ebp - 4], 4
push 0
mov dword [esi + 0x14], 0
mov ecx, esi
mov dword [esi + 0x18], 0xf
push 0x101b8c74
mov byte [esi + 4], 0
call fcn.10048350
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 0
call fcn.10065d20
lea ecx, [ebp + 0xc]
call fcn.100448c0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1006644d
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0xc]
push 8
push eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
call fcn.10049010
mov eax, esi
add esp, 8
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.101204c0
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp - 0xa8]
lea ecx, [ebp - 0x38]
mov esi, dword [ebx]
add esi, edi
mov dword [ebp - 0x98], esi
call fcn.100448c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100664c1
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.10049010
add esp, 8
test esi, esi
je 0x100663b2
mov edi, dword [esi - 4]
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x10066536
push edi
push edi
push edi
sub esp, 0x1c
lea eax, [ebp - 0x99]
mov esi, esp
mov dword [ebp - 0x14], eax
push 8
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.10048f80
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [esi], eax
mov byte [ebp - 4], 5
jmp 0x100663fd
lea esi, [edi + 1]
push esi
call fcn.10121110
push esi
push 0
push eax
mov dword [ebp - 0xa8], eax
call fcn.101234b0
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
push edi
push esi
push eax
mov byte [eax], 0
call fcn.10122d50
mov eax, dword [ebp - 0xac]
push dword [ebx]
mov edi, dword [esi + edi]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0xa0], eax
call fcn.1013a990
mov ecx, dword [ebx + 0x28]
add ebx, 0x24
add esp, 0x20
mov dword [ebp - 0xb0], ebx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x100665ab
cmp dword [eax + 0x10], edi
jae 0x100665a1
mov eax, dword [eax + 8]
jmp 0x100665a5
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10066597
cmp byte [ecx + 0xd], 0
jne 0x100665b6
cmp edi, dword [ecx + 0x10]
jae 0x100665b9
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0xbc]
push ebx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
call fcn.1004a780
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 4]
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
call fcn.1004a780
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x1006660e
mov esi, dword [esi]
jmp 0x10066610
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.1004a7e0
cmp esi, eax
je 0x10066660
push str.map_set_iterators_incompatible
push 0x101b8af8
push 0
push 0xe6
push 0x101b9948
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x10066642
int3
push 0
push 0xe6
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101b8c38
push str._map_set_iterators_incompatible_
call fcn.10136180
add esp, 0x14
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x98]
cmp eax, dword [ebp - 0x14]
push 3
setne bl
call fcn.1011cee0
lea ecx, [ebp - 0x1c]
call fcn.1004a7f0
lea ecx, [ebp - 0x98]
call fcn.1011cf90
test bl, bl
je 0x100667d5
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x100666a6
mov edi, dword [edi]
test edi, edi
jne 0x100666ec
jmp 0x100666a8
xor edi, edi
push str.cannot_dereference_value_initialized_map_set_iterator
push 0x101b8af8
push 0
push 0xb6
push 0x101b9948
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x100666ce
int3
push 0
push 0xb6
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101b8c38
push str._cannot_dereference_value_initialized_map_set_iterator_
call fcn.10136180
add esp, 0x14
mov esi, dword [ebp - 0xb4]
cmp esi, dword [edi + 4]
jne 0x10066741
push str.cannot_dereference_end_map_set_iterator
push 0x101b8af8
push 0
push 0xb7
push 0x101b9948
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x1006671d
int3
push 0
push 0xb7
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101b8c38
push str._cannot_dereference_end_map_set_iterator_
call fcn.10136180
mov esi, dword [ebp - 0xb4]
add esp, 0x14
mov ebx, dword [ebp - 0xa4]
mov eax, dword [esi + 0x14]
mov dword [ebx], eax
lea ecx, [ebx + 4]
lea eax, [esi + 0x18]
push eax
call fcn.10047950
mov eax, dword [esi + 0x34]
lea ecx, [ebp - 0x98]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x3c]
push 3
mov dword [ebx + 0x28], eax
call fcn.1011cee0
lea ecx, [ebp - 0xbc]
call fcn.1004a7f0
lea ecx, [ebp - 0x98]
call fcn.1011cf90
lea ecx, [ebp + 0xc]
call fcn.100448c0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100667aa
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0xc]
push 8
push eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
call fcn.10049010
mov eax, ebx
jmp 0x10066473
mov eax, dword [ebp - 0xa0]
push 0x40
push 0x1000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x100669b7
push 0
push 0x80
push 3
push 0
push 1
push 1
push str.UIui.src
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100669b7
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xa0]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x100669b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0xa0]
push edi
sub esp, 0x1c
mov ecx, esp
push dword [ebp - 0xa8]
call fcn.10047780
push dword [ebp - 0xac]
lea ecx, [ebp - 0x64]
call fcn.10065d20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x60]
push eax
call fcn.10047950
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push eax
call fcn.100672d0
push 3
lea ecx, [ebp - 0x98]
call fcn.1011cee0
lea ecx, [ebp - 0x2c]
call fcn.1004a7f0
lea ecx, [ebp - 0x98]
call fcn.1011cf90
lea ecx, [ebp - 0x8c]
call fcn.100448c0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10066904
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
call fcn.10049010
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x64]
add esp, 8
mov ecx, esi
push eax
call fcn.10066ae0
lea ecx, [ebp - 0x60]
call fcn.100448c0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10066962
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x60]
push 8
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.10049010
add esp, 8
push 3
lea ecx, [ebp - 0x98]
call fcn.1011cee0
lea ecx, [ebp - 0xbc]
call fcn.1004a7f0
lea ecx, [ebp - 0x98]
call fcn.1011cf90
jmp 0x10066430
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
sub esp, 0x1c
lea eax, [ebp - 0x99]
mov esi, esp
mov dword [ebp - 0x14], eax
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10048f80
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov byte [ebp - 4], 9
mov ecx, esi
push 0
push 0x101b8c74
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10048350
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 6
call fcn.10065d20
jmp 0x10066989
call fcn.10044910
int3