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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bace
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 0x10065f14
mov cl, byte [ebp - 0x18]
jmp 0x10065f05
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x17]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10047670
sub esp, 0x1c
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10047840
mov byte [ebp - 4], 0
call fcn.100da050
test al, al
je 0x1006600f
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.10048e10
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.10048200
push 0
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.10065bc0
lea ecx, [ebp + 0xc]
call fcn.100447b0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10065fe4
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048ea0
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.10048ea0
mov eax, ebx
jmp 0x10066313
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 0x1006603f
mov cl, byte [ebp - 0x1c]
jmp 0x10066030
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 0x10066050
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x100668da
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x10066073
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.10049100
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.10065cd0
lea ecx, [ebp - 0x38]
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.100447b0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100660cb
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.10066a20
mov esi, eax
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x1006613d
mov ecx, eax
call fcn.100447b0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10066122
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048ea0
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.10048410
lea ecx, [ebp - 0x38]
call fcn.100447b0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1006615a
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048ea0
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.10048ea0
add esp, 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.10047840
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 0x1006620e
xor edi, edi
mov dword [ebp - 0xa0], edi
test ecx, ecx
je 0x1006620e
xor esi, esi
mov bl, 1
test eax, eax
je 0x10066334
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 0x100661d1
mov edi, dword [ebp - 0xa0]
test bl, bl
jne 0x10066334
mov ecx, dword [ebp - 0x98]
inc edi
mov dword [ebp - 0xa0], edi
cmp edi, dword [ecx]
jb 0x100661b3
lea ecx, [ebp - 0x38]
call fcn.100447b0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1006622b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048ea0
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.10048ea0
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.10048e10
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.10048200
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 0
call fcn.10065bc0
lea ecx, [ebp + 0xc]
call fcn.100447b0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100662ed
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048ea0
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.10048ea0
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.10120250
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.100447b0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10066361
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048ea0
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.10048ea0
add esp, 8
test esi, esi
je 0x10066252
mov edi, dword [esi - 4]
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x100663d6
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.10048e10
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 0x1006629d
lea esi, [edi + 1]
push esi
call fcn.10120ea0
push esi
push 0
push eax
mov dword [ebp - 0xa8], eax
call fcn.10123240
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
push edi
push esi
push eax
mov byte [eax], 0
call fcn.10122ae0
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.1013a720
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 0x1006644b
cmp dword [eax + 0x10], edi
jae 0x10066441
mov eax, dword [eax + 8]
jmp 0x10066445
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10066437
cmp byte [ecx + 0xd], 0
jne 0x10066456
cmp edi, dword [ecx + 0x10]
jae 0x10066459
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.1004a610
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.1004a610
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x100664ae
mov esi, dword [esi]
jmp 0x100664b0
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.1004a670
cmp esi, eax
je 0x10066500
push str.map_set_iterators_incompatible
push 0x101b8af8
push 0
push 0xe6
push 0x101b9948
push 2
call fcn.101275c0
add esp, 0x18
cmp eax, 1
jne 0x100664e2
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.10135f00
add esp, 0x14
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x98]
cmp eax, dword [ebp - 0x14]
push 3
setne bl
call fcn.1011cc50
lea ecx, [ebp - 0x1c]
call fcn.1004a680
lea ecx, [ebp - 0x98]
call fcn.1011cd00
test bl, bl
je 0x10066675
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x10066546
mov edi, dword [edi]
test edi, edi
jne 0x1006658c
jmp 0x10066548
xor edi, edi
push str.cannot_dereference_value_initialized_map_set_iterator
push 0x101b8af8
push 0
push 0xb6
push 0x101b9948
push 2
call fcn.101275c0
add esp, 0x18
cmp eax, 1
jne 0x1006656e
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.10135f00
add esp, 0x14
mov esi, dword [ebp - 0xb4]
cmp esi, dword [edi + 4]
jne 0x100665e1
push str.cannot_dereference_end_map_set_iterator
push 0x101b8af8
push 0
push 0xb7
push 0x101b9948
push 2
call fcn.101275c0
add esp, 0x18
cmp eax, 1
jne 0x100665bd
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.10135f00
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.10047840
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.1011cc50
lea ecx, [ebp - 0xbc]
call fcn.1004a680
lea ecx, [ebp - 0x98]
call fcn.1011cd00
lea ecx, [ebp + 0xc]
call fcn.100447b0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1006664a
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048ea0
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.10048ea0
mov eax, ebx
jmp 0x10066313
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 0x10066857
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 0x10066857
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 0x10066851
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.10047670
push dword [ebp - 0xac]
lea ecx, [ebp - 0x64]
call fcn.10065bc0
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.10047840
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.10067170
push 3
lea ecx, [ebp - 0x98]
call fcn.1011cc50
lea ecx, [ebp - 0x2c]
call fcn.1004a680
lea ecx, [ebp - 0x98]
call fcn.1011cd00
lea ecx, [ebp - 0x8c]
call fcn.100447b0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x100667a4
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10048ea0
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.10048ea0
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x64]
add esp, 8
mov ecx, esi
push eax
call fcn.10066980
lea ecx, [ebp - 0x60]
call fcn.100447b0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10066802
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10048ea0
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.10048ea0
add esp, 8
push 3
lea ecx, [ebp - 0x98]
call fcn.1011cc50
lea ecx, [ebp - 0xbc]
call fcn.1004a680
lea ecx, [ebp - 0x98]
call fcn.1011cd00
jmp 0x100662d0
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.10048e10
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.10048200
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 6
call fcn.10065bc0
jmp 0x10066829
call fcn.10044800
int3