Function at 0x100018d7
Capabilities:
Allocate or change rwx memory
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x6c
call fcn.100147b7
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x1b
rep stosd dword es:[edi], eax
add ebx, 0x68
push ebx
push 0x88
call fcn.100147b7
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1002e2fb
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
push 8
call fcn.100147b7
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov esi, 0x1002e2cb
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push 0x14
call fcn.100147b7
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
push 8
call fcn.100147b7
add esp, 4
mov dword [ebp - 0x34], eax
mov edi, eax
mov esi, 0x1002e2cb
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [0x1002ebac]
call fcn.10001587
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10002344
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 3
jg 0x10002341
cmp dword [ebp - 4], 1
jne 0x10001a0d
mov eax, str.ntdll.dll
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001a04
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x10001a64
cmp dword [ebp - 4], 2
jne 0x10001a36
mov eax, str.user32.dll
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001a2d
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x10001a64
cmp dword [ebp - 4], 3
jne 0x10001a5f
mov eax, str.gdi32.dll
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001a56
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x10001a64
jmp 0x10002344
push 1
lea eax, [ebp - 8]
push eax
call fcn.1000247f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.100035e8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10001aa4
push ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x10001ab4
push ebx
call fcn.100147b1
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001ac8
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
call fcn.10003707
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
push 0x1002e2f9
push dword [ebp - 0x38]
mov ecx, 3
call fcn.1000187b
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x10001aff
push ebx
call fcn.100147b1
add esp, 4
mov dword [ebp - 0x40], esp
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x10001b33
push 0x2cc
push 0x4012ad0
push 6
call fcn.100147bd
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10001b43
push ebx
call fcn.100147b1
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10001b56
mov eax, 0x1002e2d3
push eax
push 1
mov ebx, 0x268
call fcn.10015280
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001b80
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100037b8
mov dword [ebp - 0x18], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10001ba3
mov eax, 0x1002e2d3
push eax
push 1
mov ebx, 0x244
call fcn.100152f0
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.100037dc
test eax, eax
je 0x10001bec
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
cmp word [ebx], 0x10b
jne 0x10001bec
mov eax, 1
jmp 0x10001bf1
mov eax, 0
test eax, eax
je 0x1000233a
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x1c]
add ebx, 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 0x2000
push 0x1000
call fcn.10003b7d
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esp
push 0x40
push dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x38]
push dword [ebx]
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x10001c8b
push 0x498
push 0x4012ad0
push 6
call fcn.100147bd
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
add ebx, 0x40
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.10003ba0
push 8
call fcn.100147b7
add esp, 4
mov dword [ebp - 0x38], eax
mov edi, eax
mov esi, 0x1002e2cb
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call fcn.10003ccd
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.100147b1
add esp, 4
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10001e58
mov ebx, dword [ebp - 0x24]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10001d30
push 0x592
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001d4d
push 0x592
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
push dword [ebx]
push dword [ebp - 0x20]
call fcn.1000154a
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x24]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10001d9d
push 0x5c3
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001dba
push 0x5c3
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.1000154a
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x24]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10001e0a
push 0x5c3
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001e27
push 0x5c3
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
push dword [ebx]
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
call fcn.10003ba0
pop eax
pop ebx
pop ecx
jmp 0x10001cfb
add esp, 0xc
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.100042cc
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10001e86
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10001e82
imul eax, dword [ebx]
jmp 0x10001e77
mov ecx, eax
test ecx, ecx
je 0x10001eae
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100147b1
add esp, 4
pop ebx
call fcn.100147b1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10001e8c
call fcn.100147b1
add esp, 4
mov eax, 0x1002e2cb
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0xc], 0
je 0x10001f1a
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call fcn.100051f1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0
jmp 0x10001f2f
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call fcn.10005217
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1000231e
mov ebx, dword [ebp - 0x34]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10001f79
push 0x7ce
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001f96
push 0x7ce
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x38], ebx
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
test eax, eax
jne 0x10001fc4
mov eax, 0x1002e2d3
push eax
push 2
mov ebx, 0x144
call fcn.10015300
add esp, 0x1c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x4e
jne 0x1000207d
mov ebx, dword [ebp - 0x34]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x1000200b
push 0x81d
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002028
push 0x81d
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x48], ebx
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebx]
test eax, eax
jne 0x10002056
mov eax, 0x1002e2d3
push eax
push 2
mov ebx, 0x144
call fcn.10015300
add esp, 0x1c
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x74
jne 0x1000207d
mov eax, 1
jmp 0x10002082
mov eax, 0
test eax, eax
je 0x1000208f
jmp 0x10002316
mov ebx, dword [ebp - 0x34]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x100020b6
push 0x8a9
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100020d3
push 0x8a9
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x38], ebx
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
test eax, eax
jne 0x10002101
mov eax, 0x1002e2d3
push eax
push 2
mov ebx, 0x144
call fcn.10015300
add esp, 0x1c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x23
jne 0x10002126
jmp 0x10002316
mov ebx, dword [ebp - 0x30]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x34]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x10002156
push 0x90f
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002173
push 0x90f
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x1000219e
push eax
mov ebx, eax
call fcn.10001810
inc eax
push eax
call fcn.100147b7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x38]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100021b1
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x30]
add ebx, 0xc
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x30]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x34]
call fcn.1000128a
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x100021f9
push 0x997
push 0x4012ad0
push 4
call fcn.100147bd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002216
push 0x997
push 0x4012ad0
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x3c]
push dword [ebx]
call fcn.10002e53
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
push 0x1002ebac
push 4
mov eax, 2
call fcn.10014b80
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov ebx, dword [0x1002ebac]
mov dword [ebp - 0x3c], ebx
call fcn.1000128a
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x3c]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x100022ac
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x3c]
call fcn.100147cf
add esp, 8
mov dword [0x1002ebac], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x40]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x38]
push edi
push eax
push 0x14
call fcn.100147b7
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10002308
push eax
mov ebx, eax
call fcn.10001810
inc eax
push eax
call fcn.100147b7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
pop eax
pop edi
mov dword [edi], eax
pop eax
pop ebx
pop ecx
jmp 0x10001f44
add esp, 0xc
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x20]
push 0xffffffff
call fcn.10005e2d
pop ebx
pop ecx
jmp 0x100019d6
add esp, 8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10002354
push ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002364
push ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10002374
push ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
add ebx, 0x68
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100147b1
add esp, 4
pop ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100023ae
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100023aa
imul eax, dword [ebx]
jmp 0x1000239f
mov ecx, eax
test ecx, ecx
je 0x100023d6
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100147b1
add esp, 4
pop ebx
call fcn.100147b1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100023b4
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x30]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x100023f5
push ebx
call fcn.100147b1
add esp, 4
pop ebx
call fcn.100147b1
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000241c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10002418
imul eax, dword [ebx]
jmp 0x1000240d
mov ecx, eax
test ecx, ecx
je 0x10002473
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000243a
push ebx
call fcn.100147b1
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000244e
push ebx
call fcn.100147b1
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10002462
push ebx
call fcn.100147b1
add esp, 4
pop ebx
call fcn.100147b1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10002422
call fcn.100147b1
add esp, 4
mov esp, ebp
pop ebp
ret