Function at 0x1000465f
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 - 0x2096]
push esi
push edi
lea edi, [eax - 0x1e36]
mov esi, ecx
lea eax, [edx - 0x325]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
lea edx, [ecx + 0x2fb]
mov eax, dword [esp + 0x1c]
xor esi, 0x3e71
add eax, 0x752
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], eax
xor ebp, 0x3f22
mov eax, dword [esp + 0x2c]
add eax, 0xfffffa2e
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x1bd4]
cmp esi, eax
jl 0x10004a12
mov eax, edi
xor eax, 0x2096
cmp ebp, eax
jle 0x10004839
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 0x1000473c
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esi + 0xe8], eax
jmp 0x10004748
mov eax, dword [eax + 0xdc]
or dword [esi + 0x110], eax
mov eax, dword [esi + 0xec]
cmp eax, dword [0x10280b14]
ja 0x10004769
mov eax, dword [esi + 0x4c]
add eax, 0xa5aaa
add eax, dword [esi + 0x84]
mov dword [esi + 0x34], eax
jmp 0x1000477a
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 0x100047c8
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 0x100047e1
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 0x10004a12
mov ecx, dword [0x10247e84]
mov eax, ebp
mov edi, dword [esp + 0x24]
sub eax, dword [ecx + 0x38]
cmp ebx, eax
jne 0x10004954
mov esi, dword [esp + 0x30]
mov eax, dword [ecx + 0x128]
add esi, 0xffffe87c
add eax, esi
mov esi, dword [esp + 0x28]
cmp ebx, eax
jae 0x1000492c
push 0x20
push 0x2a26
push 0x3806
push 0x1442
push 0x2a20
push 0x1130
push 0x24c1
push 0x1e3c
call fcn.10001c06
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, 0x23d7
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.1000321f
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 0x10004958
mov eax, dword [edi + 0x20]
xor eax, dword [edi + 4]
or eax, 0x1944
cmp ebx, eax
jae 0x10004954
lea eax, [edx - 0x17c5]
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 0x10004a12
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, 0x2162
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], 0x199d
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x10247e84]
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0xa0]
xor eax, dword [edi + 0xfc]
cmp edx, eax
mov edx, dword [esp + 0x2c]
jae 0x10004976
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x17c5]
pop ebx
pop ecx
pop ecx
ret