Function at 0x412a50
Capabilities:
Encode data using xor
Get process image filename

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x790c5f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x26c], esi
xor eax, eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x250], eax
cmp dword [esi + 0x10], eax
jne 0x412b99
movaps xmm0, xmmword [0x7e3820]
xor ecx, ecx
mov eax, 0x18
mov dword [ebp - 0x27c], 0xaaa7bba7
mov dword [ebp - 0x290], eax
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x278], 0xa1a1a4b8
mov byte [ebp - 0x274], 0xd0
mov word [ebp - 0x273], cx
mov byte [ebp - 0x271], cl
lea eax, [ecx - 0x48]
xor byte [ebp + ecx - 0x28c], al
inc ecx
mov eax, dword [ebp - 0x290]
cmp ecx, eax
jb 0x412af3
mov byte [ebp + eax - 0x28c], 0
xor ecx, ecx
mov dword [ebp - 0x268], 9
mov dword [ebp - 0x264], 0xcd00d6
mov dword [ebp - 0x260], 0xd700de
mov dword [ebp - 0x25c], 0x9300d0
mov dword [ebp - 0x258], 0xd300da
mov dword [ebp - 0x254], 0xc100ac
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x264], ax
inc ecx
mov eax, dword [ebp - 0x268]
cmp ecx, eax
jb 0x412b50
xor ecx, ecx
mov word [ebp + eax*2 - 0x264], cx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
test eax, eax
je 0x412ed6
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x29c], edi
test edi, edi
je 0x412ed6
mov ecx, dword [ebp - 0x26c]
mov esi, edi
push 0
push 0x100000
push edi
mov ecx, dword [ecx + 0x10]
push 5
mov dword [ebp - 0x270], esi
call ecx
test eax, eax
js 0x412ec8
cmp dword [edi], 0
je 0x412ec8
nop dword [eax + eax]
push dword [esi + 0x44]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x298], edi
test edi, edi
je 0x412eb1
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
xor eax, eax
mov dword [ebp - 0x22c], 0
xorps xmm0, xmm0
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x258], 0
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x254], 7
lea edx, [eax + 2]
movups xmmword [ebp - 0x23c], xmm0
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412c80
sub eax, edx
lea ecx, [ebp - 0x268]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004044f0
lea eax, [ebp - 0x268]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00412f00
xor ecx, ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], cx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.00403b80
lea ecx, [ebp - 0x288]
call fcn.00404490
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.00404490
xorps xmm0, xmm0
push 0x44
movlpd qword [ebp - 0x228], xmm0
call fcn.0076d2e3
mov edi, eax
add esp, 4
mov dword [ebp - 0x2a4], edi
push 0x44
push 0
push edi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x2ac], 0
add esp, 0xc
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], ax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x250]
mov ecx, dword [esi + 0x48]
or eax, 1
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x294], eax
mov eax, dword [esi + 0x44]
lea esi, [edi + 8]
mov dword [edi], eax
lea eax, [ebp - 0x24c]
mov dword [edi + 4], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x2a0], esi
call fcn.00404120
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 9
lea ecx, [esi + 0x18]
push eax
call fcn.00403f00
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0xa
lea ecx, [edi + 0x2c]
push eax
call fcn.00404120
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x228]
push dword [ebp - 0x2a0]
mov dword [ebp - 0x228], 0
push edi
mov dword [ebp - 0x224], 0
call fcn.00413bd0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x2bc]
and dword [ebp - 0x250], 0xfffffffe
call fcn.00404490
mov edx, dword [ebp - 0x26c]
mov ecx, dword [edx + 8]
cmp dword [edx + 0xc], ecx
je 0x412e43
mov esi, dword [ebp - 0x224]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x412e32
lock inc dword [esi + 4]
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ecx + 4], esi
add dword [edx + 8], 8
jmp 0x412e59
lea eax, [ebp - 0x228]
push eax
push ecx
lea ecx, [edx + 4]
call fcn.00413880
mov esi, dword [ebp - 0x224]
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xe
test esi, esi
je 0x412e8e
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x412e8e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x412e8e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00404220
lea ecx, [ebp - 0x24c]
call fcn.00404490
mov esi, dword [ebp - 0x270]
add esi, dword [esi]
mov dword [ebp - 0x270], esi
cmp dword [esi], 0
jne 0x412bf0
mov edi, dword [ebp - 0x29c]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret