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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171c2e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x101cfdb0]
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, 0x38
mov esi, dword [0x102710b0]
xor eax, eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x18], 0x4b5d4c38
mov word [ebp - 0x14], 0x644c
mov byte [ebp - 0x12], 0
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 5
jae 0x10064854
mov cl, byte [ebp - 0x18]
jmp 0x10064845
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x17]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.100461a0
sub esp, 0x1c
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10046370
mov byte [ebp - 4], 0
call fcn.100d0670
test al, al
je 0x1006494f
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.10047940
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 0x101aec64
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10046d30
push 0
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.10064500
lea ecx, [ebp + 0xc]
call fcn.100432e0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10064924
inc eax
push eax
push dword [ebp + 0x10]
call fcn.100479d0
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.100479d0
mov eax, ebx
jmp 0x10064c53
mov cl, 0x6c
mov dword [ebp - 0x1c], 0x3025396c
mov dword [ebp - 0x18], 0x4420519
xor eax, eax
mov word [ebp - 0x14], 0x1e08
mov byte [ebp - 0x12], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 9
jae 0x1006497f
mov cl, byte [ebp - 0x1c]
jmp 0x10064970
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 0x10064990
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x1006521a
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x100649b3
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.10047c30
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.10064610
lea ecx, [ebp - 0x38]
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.100432e0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10064a0b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.100479d0
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.100479d0
add esp, 8
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.10065360
mov esi, eax
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x10064a7d
mov ecx, eax
call fcn.100432e0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10064a62
inc eax
push eax
push dword [ebp + 0x10]
call fcn.100479d0
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.10046f40
lea ecx, [ebp - 0x38]
call fcn.100432e0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10064a9a
inc eax
push eax
push dword [ebp - 0x34]
call fcn.100479d0
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.100479d0
add esp, 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push eax
call fcn.10046370
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 0x10064b4e
xor edi, edi
mov dword [ebp - 0xa0], edi
test ecx, ecx
je 0x10064b4e
xor esi, esi
mov bl, 1
test eax, eax
je 0x10064c74
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 0x10064b11
mov edi, dword [ebp - 0xa0]
test bl, bl
jne 0x10064c74
mov ecx, dword [ebp - 0x98]
inc edi
mov dword [ebp - 0xa0], edi
cmp edi, dword [ecx]
jb 0x10064af3
lea ecx, [ebp - 0x38]
call fcn.100432e0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10064b6b
inc eax
push eax
push dword [ebp - 0x34]
call fcn.100479d0
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.100479d0
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.10047940
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 0x101aec64
mov byte [esi + 4], 0
call fcn.10046d30
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 0
call fcn.10064500
lea ecx, [ebp + 0xc]
call fcn.100432e0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10064c2d
inc eax
push eax
push dword [ebp + 0x10]
call fcn.100479d0
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.100479d0
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.101163c0
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.100432e0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10064ca1
inc eax
push eax
push dword [ebp - 0x34]
call fcn.100479d0
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.100479d0
add esp, 8
test esi, esi
je 0x10064b92
mov edi, dword [esi - 4]
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x10064d16
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.10047940
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 0x10064bdd
lea esi, [edi + 1]
push esi
call fcn.10117010
push esi
push 0
push eax
mov dword [ebp - 0xa8], eax
call fcn.101193b0
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
push edi
push esi
push eax
mov byte [eax], 0
call fcn.10118c50
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.10130870
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 0x10064d8b
cmp dword [eax + 0x10], edi
jae 0x10064d81
mov eax, dword [eax + 8]
jmp 0x10064d85
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10064d77
cmp byte [ecx + 0xd], 0
jne 0x10064d96
cmp edi, dword [ecx + 0x10]
jae 0x10064d99
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.10049150
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.10049150
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x10064dee
mov esi, dword [esi]
jmp 0x10064df0
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.100491b0
cmp esi, eax
je 0x10064e40
push str.map_set_iterators_incompatible
push 0x101aeae8
push 0
push 0xe6
push 0x101af938
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x10064e22
int3
push 0
push 0xe6
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101aec28
push str._map_set_iterators_incompatible_
call fcn.1012c080
add esp, 0x14
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x98]
cmp eax, dword [ebp - 0x14]
push 3
setne bl
call fcn.10112de0
lea ecx, [ebp - 0x1c]
call fcn.100491c0
lea ecx, [ebp - 0x98]
call fcn.10112e90
test bl, bl
je 0x10064fb5
mov edi, dword [ebp - 0xbc]
test edi, edi
je 0x10064e86
mov edi, dword [edi]
test edi, edi
jne 0x10064ecc
jmp 0x10064e88
xor edi, edi
push str.cannot_dereference_value_initialized_map_set_iterator
push 0x101aeae8
push 0
push 0xb6
push 0x101af938
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x10064eae
int3
push 0
push 0xb6
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101aec28
push str._cannot_dereference_value_initialized_map_set_iterator_
call fcn.1012c080
add esp, 0x14
mov esi, dword [ebp - 0xb4]
cmp esi, dword [edi + 4]
jne 0x10064f21
push str.cannot_dereference_end_map_set_iterator
push 0x101aeae8
push 0
push 0xb7
push 0x101af938
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x10064efd
int3
push 0
push 0xb7
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includextree
push 0x101aec28
push str._cannot_dereference_end_map_set_iterator_
call fcn.1012c080
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.10046370
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.10112de0
lea ecx, [ebp - 0xbc]
call fcn.100491c0
lea ecx, [ebp - 0x98]
call fcn.10112e90
lea ecx, [ebp + 0xc]
call fcn.100432e0
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10064f8a
inc eax
push eax
push dword [ebp + 0x10]
call fcn.100479d0
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.100479d0
mov eax, ebx
jmp 0x10064c53
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 0x10065197
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 0x10065197
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 0x10065191
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.100461a0
push dword [ebp - 0xac]
lea ecx, [ebp - 0x64]
call fcn.10064500
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.10046370
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.10065ab0
push 3
lea ecx, [ebp - 0x98]
call fcn.10112de0
lea ecx, [ebp - 0x2c]
call fcn.100491c0
lea ecx, [ebp - 0x98]
call fcn.10112e90
lea ecx, [ebp - 0x8c]
call fcn.100432e0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x100650e4
inc eax
push eax
push dword [ebp - 0x88]
call fcn.100479d0
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.100479d0
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x64]
add esp, 8
mov ecx, esi
push eax
call fcn.100652c0
lea ecx, [ebp - 0x60]
call fcn.100432e0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10065142
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.100479d0
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.100479d0
add esp, 8
push 3
lea ecx, [ebp - 0x98]
call fcn.10112de0
lea ecx, [ebp - 0xbc]
call fcn.100491c0
lea ecx, [ebp - 0x98]
call fcn.10112e90
jmp 0x10064c10
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.10047940
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 0x101aec64
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10046d30
mov esi, dword [ebp - 0xa4]
mov ecx, esi
push 0
mov byte [ebp - 4], 6
call fcn.10064500
jmp 0x10065169
call fcn.10043330
int3