Function at 0x40a43f
Capabilities:
Create thread
Encode data using xor
Get common file path
Terminate process

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x34]
mov ecx, 0x1595
mov dword [0x679c2c], eax
mov eax, 0x13d6
mov dword [esp + 0x34], 0xe54
mov dword [esp + 0x24], eax
xor ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov eax, dword [0x584ab4]
mov dword [esp + 0x18], 0x1038
mov dword [esp + 0x1c], ecx
xor ecx, ecx
inc ecx
mov dword [0x679afc], ebp
mov dword [0x679b04], ecx
mov dword [0x679b0c], ebp
mov dword [0x679b2c], ebp
mov dword [0x679b30], ebp
mov dword [0x679b38], ecx
mov dword [0x679b60], 0x22
mov dword [0x679b64], 0x21
mov dword [0x679b6c], ebp
mov dword [eax + 0x80], ecx
mov eax, dword [0x584ab4]
mov dword [0x679b74], ebp
mov dword [eax + 0x90], ecx
mov eax, dword [0x584ab4]
push 0x10
mov dword [eax + 0xa8], ecx
pop eax
mov dword [0x679b9c], eax
mov dword [0x679bc4], eax
mov eax, dword [0x584ab4]
mov dword [0x679ba4], ecx
mov dword [0x679bb0], ebp
mov dword [0x679bb4], 0xb
mov dword [0x679bb8], 0x14
mov dword [0x679bc8], 7
mov dword [eax + 0xe0], ebp
mov eax, dword [0x584ab4]
mov dword [eax + 0xec], ebp
cmp dword [0x679b9c], 0x116e8
mov dword [0x679bf4], ebp
mov dword [0x679c08], ebp
mov dword [0x679c0c], ecx
mov dword [0x679c18], ecx
mov dword [0x679c1c], 8
mov dword [0x679c24], ecx
jae 0x40a572
xor dword [0x679b04], 0x6a1f
mov edi, dword [esp + 0x18]
mov ebx, 0x679af0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor esi, 0x1f24
mov ecx, dword [esp + 0x1c]
xor edx, 0x5e0
mov eax, dword [esp + 0x18]
sub ecx, 0x8a3
xor eax, 0x150
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.0040a098
mov ecx, dword [0x679bec]
mov dword [esp + 0x2c], eax
mov eax, dword [0x584ab4]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add edi, 0x449
mov edx, dword [esp + 0x34]
sub esi, 0x520
mov dword [eax + 0x68], ecx
sub edx, 0x778
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
sub ecx, 0x55d
push ebx
xor eax, 0xe21
push eax
push ecx
push edx
push esi
push edi
call fcn.004018e2
mov edx, dword [0x679bb0]
add esp, 0x30
mov dword [esp + 0x24], eax
cmp edx, dword [0x679bf4]
jae 0x40a628
mov eax, dword [0x679b64]
mov ecx, dword [0x584ab4]
add eax, edx
add eax, dword [0x679b30]
add dword [ecx + 0x1c], eax
jmp 0x40a637
mov eax, dword [0x679ba4]
xor eax, 0xc10c9714
mov dword [0x679b50], eax
mov ebx, 0x5903e0
mov edi, ebp
mov dword [0x679b68], ebx
mov ebx, dword [edi + ebx]
add edi, 4
imul ebx, dword [0x679b50]
mov ecx, dword [0x679b70]
mov eax, dword [0x679ba4]
dec ecx
add eax, ecx
mov ecx, dword [0x679b54]
mov dword [0x679b70], eax
mov eax, dword [0x679b78]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [0x679b54]
mov ecx, dword [0x584ab4]
mov eax, dword [0x679c24]
dec eax
xor dword [ecx + 0x11c], eax
mov ecx, dword [0x679b80]
sub ecx, dword [0x679ba4]
mov eax, dword [0x584ab4]
sub ecx, 0x28b1d1
imul ecx, dword [0x679ba4]
mov eax, dword [eax + 0x14]
sub eax, 0x158ef8
xor dword [0x679bb8], eax
mov eax, dword [0x679b78]
mov dword [0x679ba4], ecx
mov ecx, dword [0x679b54]
mov byte [ecx + eax], bl
mov ecx, dword [0x584ab4]
inc dword [0x679b54]
mov eax, dword [0x679b30]
or dword [0x679b74], eax
mov eax, dword [ecx + 0xc]
sub dword [ecx + 0x74], eax
mov eax, dword [0x679b98]
add eax, dword [0x679ba4]
mov edx, dword [0x584ab4]
xor eax, 2
sub dword [edx + 0x118], eax
mov esi, dword [0x584ab4]
mov edx, dword [0x679c24]
mov eax, dword [0x679c08]
dec eax
mov ecx, dword [esi + 0x84]
xor ecx, edx
add eax, ecx
mov dword [0x679c08], eax
mov eax, dword [esi + 0x7c]
sub dword [0x679b30], eax
lea eax, [edx - 1]
add eax, dword [0x679b98]
imul eax, dword [0x679b64]
sub edx, dword [0x679b98]
mov dword [0x679b64], eax
or dword [esi + 0x90], edx
mov eax, dword [0x679b0c]
inc eax
imul eax, dword [0x679b74]
mov dword [0x679b74], eax
cmp edi, 0xe2a40
jge 0x40a776
mov ebx, dword [0x679b68]
jmp 0x40a644
mov eax, dword [0x584ab4]
mov ecx, dword [0x679bc4]
cmp ecx, dword [eax + 0x104]
ja 0x40a795
add dword [eax + 0x84], 0xffff2789
jmp 0x40a7a0
lea eax, [ecx + 0xf39]
mov dword [0x679b50], eax
mov eax, dword [esp + 0x24]
add eax, 0x33
cmp dword [esp + 0x18], eax
je 0x40aa34
mov ebx, dword [0x679b50]
mov ecx, 0x51b3e0
sub ebx, 0x3333427c
mov dword [0x679b68], ecx
mov dword [0x679b50], ebx
mov edi, ebp
mov esi, dword [0x584ab4]
mov ecx, dword [edi + ecx]
add edi, 4
mov eax, dword [0x679c1c]
add eax, 0xfffffff8
imul ebx, ecx
mov edx, dword [esi + 0xd8]
xor dword [0x679c0c], eax
xor edx, 6
imul edx, dword [0x679b60]
mov dword [0x679b60], edx
mov eax, dword [esi + 0xd8]
xor eax, dword [esi + 0xec]
sub eax, 0xbdc8
xor edx, eax
mov eax, dword [0x679b04]
sub eax, dword [0x679b9c]
sub eax, 0x158ee8
mov dword [0x679b60], edx
xor dword [0x679bc4], eax
mov eax, dword [0x679b70]
dec eax
or dword [esi + 0xec], eax
mov edx, dword [0x679c08]
sub edx, dword [0x679b80]
add edx, 0x28b1d4
imul edx, dword [0x679bf4]
mov eax, edx
xor eax, dword [0x679bb4]
xor eax, 0xa
imul eax, dword [0x679c1c]
mov dword [0x679c1c], eax
mov eax, dword [0x679c18]
add eax, dword [0x679b70]
xor eax, 0x8b834
add dword [0x679b38], eax
mov eax, dword [0x679ba4]
dec eax
add eax, edx
xor edx, eax
mov eax, dword [0x584ab4]
mov dword [0x679bf4], edx
mov edx, ebx
shr edx, 0x10
mov ecx, dword [eax + 0x64]
mov eax, dword [0x679b78]
mov byte [eax + ecx], dl
mov edx, ebx
mov eax, dword [0x584ab4]
shr edx, 8
inc dword [eax + 0x64]
mov eax, dword [0x584ab4]
mov ecx, dword [eax + 0x64]
mov eax, dword [0x679b78]
mov byte [eax + ecx], dl
mov eax, dword [0x584ab4]
inc dword [eax + 0x64]
mov eax, dword [0x679b38]
imul eax, dword [0x679b70]
mov dword [0x679b70], eax
mov eax, dword [0x584ab4]
mov ecx, dword [eax + 0x64]
mov eax, dword [0x679b78]
mov byte [eax + ecx], bl
mov eax, dword [0x584ab4]
inc dword [eax + 0x64]
cmp edi, 0x665b0
jge 0x40a910
mov ecx, dword [0x679b68]
mov ebx, dword [0x679b50]
jmp 0x40a7d0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
xor edi, 0xd4a
mov edx, dword [esp + 0x14]
sub esi, 0x118
mov ecx, dword [esp + 0x18]
sub edx, 0x314
mov eax, dword [esp + 0x10]
add ecx, 0x39e
push 0x679af0
add eax, 0xe54
push eax
push ecx
push edx
push esi
push edi
call section..text
mov edx, dword [0x584ab4]
add esp, 0x18
mov dword [esp + 0x18], eax
mov esi, ebp
mov eax, dword [0x679b68]
push 0x14
mov ebx, dword [esi + eax]
add esi, 4
mov eax, dword [0x679b30]
sub dword [edx + 0xc0], eax
mov eax, dword [0x679bc8]
mov edx, dword [0x584ab4]
add eax, 0xfffffff9
xor dword [0x679b38], eax
mov eax, dword [0x679b74]
sub dword [0x679b0c], eax
mov eax, dword [0x679b70]
imul ebx, dword [0x679b50]
dec eax
add eax, dword [edx + 0xa8]
mov dword [0x679b70], eax
mov ecx, dword [edx + 0x88]
mov eax, dword [0x679b54]
mov byte [eax + ecx], bl
mov edx, dword [0x584ab4]
mov eax, dword [0x679c18]
mov ecx, dword [0x679b2c]
add eax, 0xfff747cd
xor dword [0x679bb8], eax
xor dword [0x679b98], ecx
inc dword [0x679b54]
mov eax, dword [edx + 0xe0]
sub eax, 0x84f68
imul eax, dword [0x679b6c]
mov dword [0x679b6c], eax
pop eax
sub eax, dword [edx + 0xc8]
add ecx, eax
mov eax, dword [0x679b74]
add eax, 0xfc803596
mov dword [0x679b2c], ecx
add eax, dword [0x679b64]
or dword [0x679bb4], eax
cmp esi, 0x27120
jl 0x40a95f
add dword [esp + 0x10], 0xd4a
mov eax, dword [esp + 0x20]
add eax, 0xfffffd4b
cmp dword [esp + 0x24], eax
je 0x40aea4
mov eax, dword [esp + 0x34]
add eax, 0xffffffc9
cmp dword [esp + 0x24], eax
je 0x40ada9
mov eax, dword [esp + 0x34]
add eax, 0xffffffc9
cmp dword [esp + 0x20], eax
jl 0x40abba
mov eax, dword [0x679c0c]
mov edx, 0x584ab8
mov ecx, dword [0x679bc8]
add eax, 0x677d46c7
add ecx, eax
mov esi, ebp
mov eax, dword [0x584ab4]
mov dword [eax + 0x60], ecx
mov dword [0x679b68], edx
mov eax, dword [0x679c08]
xor eax, dword [0x679bb0]
mov ecx, dword [0x679b70]
sub ecx, eax
xor ecx, dword [0x679afc]
mov dword [0x679b70], ecx
mov ecx, dword [0x584ab4]
mov eax, dword [ecx + 0xec]
sub eax, 0xbdcf
or dword [0x679bb4], eax
mov edx, dword [esi + edx]
add esi, 4
mov eax, dword [0x679bdc]
xor eax, dword [0x679b64]
xor eax, 0x37fca6a
mov dword [0x679bdc], eax
mov eax, 0x158ef8
sub eax, dword [0x679b04]
add dword [ecx + 0x11c], eax
mov ecx, dword [0x584ab4]
mov eax, dword [0x679bd0]
add eax, 0xffea7100
mov ebx, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x12c]
add ecx, dword [0x679b04]
add eax, ecx
imul ebx, edx
mov ecx, dword [0x679b54]
mov dword [0x679bd0], eax
mov eax, dword [0x679b78]
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov eax, dword [0x679b04]
mov edx, dword [0x679b54]
add eax, 0xffea7109
imul eax, dword [0x679b80]
inc edx
mov dword [0x679b54], edx
mov dword [0x679b80], eax
mov eax, dword [0x584ab4]
mov ecx, dword [eax + 0x134]
mov eax, dword [0x679bb0]
xor ecx, eax
dec eax
add eax, ecx
mov ecx, ebx
mov dword [0x679bb0], eax
mov eax, dword [0x679b78]
shr ecx, 8
mov byte [edx + eax], cl
mov ecx, dword [0x584ab4]
inc dword [0x679b54]
mov eax, dword [0x679afc]
xor dword [ecx + 0x118], eax
mov ecx, dword [0x679b54]
mov eax, dword [0x679b78]
mov byte [ecx + eax], bl
inc dword [0x679b54]
cmp esi, 0xb580
jge 0x40ada9
mov edx, dword [0x679b68]
jmp 0x40aa90
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
imul ecx, eax
mov eax, dword [esp + 0x34]
xor eax, ecx
mov ecx, dword [0x584ab4]
cmp dword [ecx + 0x50], eax
ja 0x40ad39
mov eax, dword [esp + 0x10]
and eax, 0x20
or eax, 0x13d6
xor dword [0x679bc8], eax
mov eax, dword [esp + 0x24]
imul eax, dword [0x679b94]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
and edx, dword [esp + 0x14]
push 0x679af0
and esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [0x584ab4]
xor ecx, 0x12e0
mov eax, dword [eax + 0xd0]
xor eax, dword [0x679b00]
push eax
push ecx
push edx
push esi
call fcn.004098d8
add esp, 0x14
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
add ebx, 0x1595
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
sub edx, eax
mov eax, dword [0x679c04]
add ecx, dword [0x679b04]
add eax, 0xfffff1df
imul edi, dword [0x679b64]
sub esi, dword [0x679ba8]
push eax
push ecx
push edx
push esi
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
call ebx
push 0x3aad
push 0x2c6d
push 0x1443
push 0x1918
push 0xfc
call fcn.0040965a
mov esi, dword [esp + 0x30]
add esp, 0x14
xor esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
sub edx, dword [0x679bbc]
mov dword [0x67a384], eax
mov eax, dword [0x584ab4]
mov edi, dword [eax + 0xb8]
mov eax, dword [esp + 0x1c]
sub edx, eax
mov eax, dword [0x679bbc]
mov ecx, dword [0x679b04]
or edi, dword [0x679b3c]
imul eax, ecx
and ecx, 0x12e0
push eax
mov eax, dword [0x679b00]
imul eax, dword [0x679b60]
and eax, dword [0x679c1c]
push eax
push ecx
push edx
push esi
push edi
call ebx
imul eax, dword [0x679c24], 0x13279d1
mov ecx, dword [0x584ab4]
mov dword [0x679b8c], eax
imul eax, dword [0x679b60], 0xd4a
sub eax, 0x13d6
or dword [ecx + 0x114], eax
mov ecx, dword [0x584ab4]
mov eax, dword [esp + 0x10]
or eax, dword [ecx + 0xa4]
sub eax, dword [0x679b70]
add dword [0x679b60], eax
mov eax, dword [0x584ab4]
mov ecx, dword [esp + 0x24]
xor ecx, dword [eax + 0x108]
sub ecx, dword [0x679b6c]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [0x679c18]
cmp eax, dword [0x679c0c]
jne 0x40adc3
mov eax, dword [0x679bc4]
or dword [0x679c1c], eax
jmp 0x40adcd
mov dword [0x679c00], 0x679af0
mov ecx, dword [0x679b98]
mov edx, dword [0x584ab4]
add ecx, 0xfffffffe
mov eax, dword [0x679b38]
add eax, ecx
xor dword [edx + 0x90], eax
mov eax, dword [0x679bb8]
sub eax, dword [0x679b38]
mov ecx, dword [0x679bcc]
sub eax, 0x13
xor dword [0x679b6c], eax
mov eax, dword [0x584ab4]
mov eax, dword [eax + 0x68]
xor dword [ecx + ebp], eax
add ebp, 4
mov ecx, dword [0x584ab4]
mov eax, dword [ecx + 0xf8]
add dword [ecx + 0x68], eax
mov ecx, dword [0x584ab4]
mov eax, dword [ecx + 0x12c]
imul eax, dword [0x679c0c]
mov dword [ecx + 0x12c], eax
cmp ebp, 0x16d58c
jl 0x40adcd
mov ecx, dword [0x679b30]
cmp ecx, 0x6ae4
jb 0x40ae64
mov eax, dword [0x679b2c]
sub eax, dword [0x679c0c]
add eax, ecx
xor dword [0x679b38], eax
jmp 0x40ae73
mov ecx, dword [0x584ab4]
mov eax, dword [ecx + 0xdc]
mov dword [ecx + 0x6c], eax
add dword [esp + 0x34], 0x582
mov ecx, dword [0x584ab4]
push dword [0x679c2c]
mov eax, dword [ecx + 0x88]
add eax, dword [0x679c28]
push eax
push dword [0x679c00]
call dword [ecx + 0x6c]
mov dword [0x679bfc], eax
jmp 0x40aea9
mov eax, dword [0x679bfc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]