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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017b0de
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, 0x14
mov esi, dword [0x1027c0b0]
xor eax, eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x18], 0x67716014
mov word [ebp - 0x14], 0x4860
mov byte [ebp - 0x12], 0
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 5
jae 0x100655a4
mov cl, byte [ebp - 0x18]
jmp 0x10065595
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x17]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10046d00
sub esp, 0x1c
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10046ed0
mov byte [ebp - 4], 0
call fcn.100d96b0
test al, al
je 0x1006569f
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.100484a0
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.10047890
push 0
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.10065250
lea ecx, [ebp + 0xc]
call fcn.10043e40
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10065674
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048530
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.10048530
mov eax, ebx
jmp 0x100659a3
mov cl, 0x7d
mov dword [ebp - 0x1c], 0x2134287d
mov dword [ebp - 0x18], 0x15531408
xor eax, eax
mov word [ebp - 0x14], 0xf19
mov byte [ebp - 0x12], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 9
jae 0x100656cf
mov cl, byte [ebp - 0x1c]
jmp 0x100656c0
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 0x100656e0
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x10065f6a
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x10065703
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.10048790
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.10065360
lea ecx, [ebp - 0x38]
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.10043e40
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1006575b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048530
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.10048530
add esp, 8
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.100660b0
mov esi, eax
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x100657cd
mov ecx, eax
call fcn.10043e40
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x100657b2
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048530
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.10047aa0
lea ecx, [ebp - 0x38]
call fcn.10043e40
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100657ea
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048530
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.10048530
add esp, 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.10046ed0
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 0x1006589e
xor edi, edi
mov dword [ebp - 0xa0], edi
test ecx, ecx
je 0x1006589e
xor esi, esi
mov bl, 1
test eax, eax
je 0x100659c4
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 0x10065861
mov edi, dword [ebp - 0xa0]
test bl, bl
jne 0x100659c4
mov ecx, dword [ebp - 0x98]
inc edi
mov dword [ebp - 0xa0], edi
cmp edi, dword [ecx]
jb 0x10065843
lea ecx, [ebp - 0x38]
call fcn.10043e40
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100658bb
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048530
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.10048530
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.100484a0
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.10047890
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 0
call fcn.10065250
lea ecx, [ebp + 0xc]
call fcn.10043e40
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1006597d
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048530
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.10048530
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.1011f880
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.10043e40
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100659f1
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10048530
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.10048530
add esp, 8
test esi, esi
je 0x100658e2
mov edi, dword [esi - 4]
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x10065a66
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.100484a0
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 0x1006592d
lea esi, [edi + 1]
push esi
call fcn.101204d0
push esi
push 0
push eax
mov dword [ebp - 0xa8], eax
call fcn.10122870
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
push edi
push esi
push eax
mov byte [eax], 0
call fcn.10122110
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.10139d20
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 0x10065adb
cmp dword [eax + 0x10], edi
jae 0x10065ad1
mov eax, dword [eax + 8]
jmp 0x10065ad5
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10065ac7
cmp byte [ecx + 0xd], 0
jne 0x10065ae6
cmp edi, dword [ecx + 0x10]
jae 0x10065ae9
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.10049ca0
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.10049ca0
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x10065b3e
mov esi, dword [esi]
jmp 0x10065b40
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.10049d00
cmp esi, eax
je 0x10065b90
push str.map_set_iterators_incompatible
push 0x101b8af8
push 0
push 0xe6
push 0x101b9948
push 2
call fcn.10126bf0
add esp, 0x18
cmp eax, 1
jne 0x10065b72
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.10135530
add esp, 0x14
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x98]
cmp eax, dword [ebp - 0x14]
push 3
setne bl
call fcn.1011c2a0
lea ecx, [ebp - 0x1c]
call fcn.10049d10
lea ecx, [ebp - 0x98]
call fcn.1011c350
test bl, bl
je 0x10065d05
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x10065bd6
mov edi, dword [edi]
test edi, edi
jne 0x10065c1c
jmp 0x10065bd8
xor edi, edi
push str.cannot_dereference_value_initialized_map_set_iterator
push 0x101b8af8
push 0
push 0xb6
push 0x101b9948
push 2
call fcn.10126bf0
add esp, 0x18
cmp eax, 1
jne 0x10065bfe
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.10135530
add esp, 0x14
mov esi, dword [ebp - 0xb4]
cmp esi, dword [edi + 4]
jne 0x10065c71
push str.cannot_dereference_end_map_set_iterator
push 0x101b8af8
push 0
push 0xb7
push 0x101b9948
push 2
call fcn.10126bf0
add esp, 0x18
cmp eax, 1
jne 0x10065c4d
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.10135530
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.10046ed0
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.1011c2a0
lea ecx, [ebp - 0xbc]
call fcn.10049d10
lea ecx, [ebp - 0x98]
call fcn.1011c350
lea ecx, [ebp + 0xc]
call fcn.10043e40
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10065cda
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10048530
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.10048530
mov eax, ebx
jmp 0x100659a3
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 0x10065ee7
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 0x10065ee7
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 0x10065ee1
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.10046d00
push dword [ebp - 0xac]
lea ecx, [ebp - 0x64]
call fcn.10065250
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.10046ed0
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.10066800
push 3
lea ecx, [ebp - 0x98]
call fcn.1011c2a0
lea ecx, [ebp - 0x2c]
call fcn.10049d10
lea ecx, [ebp - 0x98]
call fcn.1011c350
lea ecx, [ebp - 0x8c]
call fcn.10043e40
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10065e34
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10048530
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.10048530
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x64]
add esp, 8
mov ecx, esi
push eax
call fcn.10066010
lea ecx, [ebp - 0x60]
call fcn.10043e40
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10065e92
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10048530
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.10048530
add esp, 8
push 3
lea ecx, [ebp - 0x98]
call fcn.1011c2a0
lea ecx, [ebp - 0xbc]
call fcn.10049d10
lea ecx, [ebp - 0x98]
call fcn.1011c350
jmp 0x10065960
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.100484a0
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.10047890
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 6
call fcn.10065250
jmp 0x10065eb9
call fcn.10043e90
int3