Function at 0x408eb0
Capabilities:
Accept command line arguments
Encrypt data using rc4 ksa
Extract resource via kernel32 functions
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0x431f38
mov dword [0x4320b4], eax
mov dword [0x431f38], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4321b0], eax
call dword [sym.imp.KERNEL32.DLL_GetACP]
lea ecx, [eax - 0x4e2]
cmp ecx, 7
ja case.0x408efb.1255
jmp dword [ecx*4 + 0x4095cc]
mov ecx, 0xee
jmp 0x408f30
mov dword [0x431188], 0xcc
jmp 0x408f59
mov dword [0x431188], esi
jmp 0x408f59
mov ecx, 0xa1
jmp 0x408f30
mov ecx, 0xa2
jmp 0x408f30
mov ecx, 0xb2
mov dword [0x431188], ecx
mov dword [0x431244], eax
mov dword [0x431248], ecx
jmp 0x408f59
mov dword [0x431188], 0xba
jmp 0x408f59
mov dword [0x431188], 1
mov ecx, dword [0x431480]
lea eax, [ebp - 8]
push eax
push 1
push esi
push ecx
push CreateStatusWindowA
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x408faa
mov eax, 4
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push edx
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
push esi
push 0x43171c
push edx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x408fbf
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
and eax, 0xff
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, 0x4311a0
mov ebx, 0x20
cmp dword [ecx], eax
je 0x408fdc
add ecx, ebx
inc edx
cmp ecx, 0x431480
jl 0x408fcb
jmp 0x408fe2
mov dword [0x431184], edx
mov ecx, dword [0x431184]
push ecx
call fcn.00408dc0
mov eax, dword [0x431f48]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
add esp, 4
cmp eax, 1
jne 0x409014
cmp word [0x431f44], 0x3e8
ja 0x409019
jmp 0x409031
cmp eax, 2
jne 0x409031
push 0x43170c
call esi
test eax, eax
je 0x409031
push 0x4316f8
push eax
call edi
mov dword [0x4321c8], eax
push 0x4316ec
call esi
test eax, eax
je 0x409049
push 0x4316d8
push eax
call edi
mov dword [0x4321cc], eax
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.DLL_GetSystemMetrics]
push 0x10
mov dword [0x4321c0], eax
call esi
push 0x11
mov dword [0x431f30], eax
call esi
push 0
mov dword [0x431fd0], eax
call esi
push 1
mov dword [0x43205c], eax
call esi
mov dword [0x432198], eax
mov eax, dword [0x431f30]
cdq
sub eax, edx
sar eax, 1
mov dword [0x4321d0], eax
mov eax, dword [0x431fd0]
cdq
sub eax, edx
sar eax, 1
mov dword [0x4321e8], eax
call fcn.0040c370
test al, al
jne 0x4090b2
push 0xfd
call fcn.004095f0
add esp, 4
mov ecx, dword [0x4320b4]
xor edx, edx
test ecx, ecx
setle dl
dec edx
lea eax, [ebp - 0x24]
and edx, 0x1e
push eax
add edx, 0x1e
mov dword [0x432060], edx
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
lea ecx, [eax + eax*4]
shl ecx, 6
add ecx, eax
shl ecx, 3
sub ecx, eax
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x16]
add ecx, eax
mov eax, dword [ebp - 0x1e]
and edx, 0xffff
and eax, 0xffff
add ecx, edx
imul eax, eax, 0x4f620aea
imul ecx, ecx, 0x76ddb
sub ecx, eax
mov dword [0x4320ac], ecx
wait
fnstcw word [ebp - 2]
wait
mov ax, word [ebp - 2]
and ah, 0xf3
or ah, 3
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov ecx, 0x400
call fcn.0040c420
mov edi, eax
mov ecx, 0x100
xor eax, eax
mov dword [0x431104], edi
rep stosd dword es:[edi], eax
mov ecx, 0x400
call fcn.0040c420
mov edi, eax
mov ecx, 0x100
xor eax, eax
mov dword [0x431134], edi
rep stosd dword es:[edi], eax
call fcn.004057a0
call fcn.00401cd0
push 0x4310ec
push section..xvlk_2
call fcn.00408d90
mov edx, dword [0x4321b0]
add esp, 8
lea ecx, [ebp - 0x128]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [ebp - 0x128]
mov ecx, 0x432078
call fcn.004079a0
mov ecx, 0x428
call fcn.0040c420
mov edi, eax
mov ecx, 0x10a
xor eax, eax
mov dword [0x432074], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x432074]
mov dword [eax], 0x28
mov ecx, dword [0x432074]
mov dword [ecx + 4], ebx
mov edx, dword [0x432074]
mov dword [edx + 8], ebx
mov eax, dword [0x432074]
mov word [eax + 0xc], 1
mov ecx, dword [0x432074]
mov word [ecx + 0xe], 8
mov edx, dword [0x432074]
mov dword [ebp - 4], 0x42fb40
mov dword [edx + 0x10], 0
mov eax, dword [0x432074]
mov dword [eax + 0x24], 0xe0
mov ecx, dword [0x432074]
add ecx, 0x28
mov byte [ecx + 2], 0x95
mov byte [ecx + 1], 0x22
mov byte [ecx], 0x8c
add ecx, 4
mov byte [ecx + 2], 0x61
mov byte [ecx + 1], 0x1e
mov byte [ecx], 0x6f
add ecx, 4
mov edx, dword [ebp - 4]
mov ebx, 0x42fb2c
lea esi, [ecx + 5]
mov eax, dword [edx]
mov dword [ecx], eax
mov edi, dword [ebx]
xor eax, eax
mov al, byte [ecx + 2]
add ebx, 4
imul eax, edi
cdq
and edx, 0xff
add esi, 4
add eax, edx
sar eax, 8
mov byte [esi - 3], al
xor eax, eax
mov al, byte [ecx + 1]
imul eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [esi - 4], al
xor eax, eax
mov al, byte [ecx]
imul eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [esi - 5], al
cmp ebx, 0x42fb40
jl 0x40925a
mov eax, dword [ebp - 4]
add ecx, 0x18
add eax, 4
cmp eax, 0x42fbcc
mov dword [ebp - 4], eax
jl 0x40924b
mov esi, 0xaf5
mov eax, 0x2e8ba2e9
add ecx, 4
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
sub esi, 0xff
mov byte [ecx - 2], dl
mov byte [ecx - 3], dl
mov byte [ecx - 4], dl
jns 0x4092c6
mov ecx, 0x40000
call fcn.0040c420
mov ecx, dword [0x4321b0]
push 0x4316d0
push 0x36
push ecx
mov dword [0x4320b0], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edx, dword [0x4321b0]
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
xor esi, esi
mov ebx, eax
cmp edi, esi
je 0x409329
cmp ebx, esi
jne 0x409336
push 0xfb
call fcn.004095f0
add esp, 4
mov eax, dword [0x4321b0]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
sub eax, 6
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [0x4320b0]
add eax, 6
push eax
push 0x40000
push ecx
call fcn.00409a00
add esp, 0x10
mov ecx, 0x100
call fcn.0040c420
mov ecx, 0x404
mov dword [0x432194], eax
call fcn.0040c420
mov edi, eax
mov ecx, 0x101
xor eax, eax
mov dword [0x4321bc], edi
rep stosd dword es:[edi], eax
mov edx, dword [0x4321bc]
mov edi, 0xe0
mov word [edx], 0x300
mov eax, dword [0x4321bc]
mov word [eax + 2], di
mov ecx, dword [0x4321bc]
mov edx, dword [0x432074]
lea eax, [ecx + 4]
lea ecx, [edx + 0x28]
mov dl, byte [ecx + 2]
add ecx, 4
mov byte [eax], dl
mov dl, byte [ecx - 3]
mov byte [eax + 1], dl
mov dl, byte [ecx - 4]
mov byte [eax + 2], dl
mov byte [eax + 3], 0
add eax, 4
dec edi
jne 0x4093bb
mov eax, dword [0x4321bc]
push eax
call dword [sym.imp.GDI32.DLL_CreatePalette]
mov ecx, 0x400
mov dword [0x4321b8], eax
call fcn.0040c420
mov ecx, dword [0x432074]
mov dword [0x4320bc], eax
lea edi, [ecx + 0x28]
xor ecx, ecx
mov edx, dword [edi]
cmp ecx, esi
mov dword [eax], edx
je 0x409419
cmp ecx, 1
je 0x409419
cmp ecx, 0xe0
jl 0x40941b
mov dword [eax], esi
mov dl, byte [eax]
mov bl, byte [eax + 2]
mov byte [eax + 3], 0
mov byte [eax], bl
mov byte [eax + 2], dl
add eax, 4
add edi, 4
inc ecx
cmp ecx, 0x100
jl 0x409404
mov ecx, 0x560
call fcn.0040c420
mov dword [0x432058], eax
mov dword [eax], esi
mov eax, dword [0x432058]
mov dword [eax + 4], esi
mov ecx, dword [0x432058]
mov eax, 2
mov dword [ecx + 8], esi
mov edx, dword [0x432058]
mov dword [ebp - 8], eax
mov dword [edx + 0xc], 0x3ff00000
fild dword [ebp - 8]
mov ecx, dword [0x432058]
inc eax
cmp eax, 0xab
mov dword [ebp - 8], eax
fmul qword [ecx + eax*8 - 0x10]
fstp qword [ecx + eax*8 - 8]
jle 0x40946f
mov ecx, 0x100
call fcn.0040c420
mov dword [0x431fd4], eax
xor ecx, ecx
cmp ecx, 0xe0
jge 0x4094dc
cmp ecx, 2
jl 0x4094dc
lea esi, [ecx + 1]
mov ebx, 6
lea edi, [esi - 2]
mov eax, edi
cdq
idiv ebx
test edx, edx
jne 0x4094c5
cmp ecx, 0xda
jne 0x4094dc
cmp esi, 0xd4
mov eax, esi
jle 0x4094e1
cmp esi, 0xdf
jge 0x4094e1
lea eax, [edi + 3]
jmp 0x4094e1
mov eax, 0xdf
mov edx, dword [0x431fd4]
inc ecx
cmp ecx, 0x100
mov byte [edx + ecx - 1], al
jl 0x40949c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edx, eax
mov ecx, 0x431fcc
call fcn.004079a0
mov eax, dword [0x431178]
mov ecx, dword [0x4321b0]
add ecx, eax
mov eax, dword [0x43117c]
pop edi
pop esi
lea edx, [eax + ecx]
cmp eax, 0x1f4
mov dword [0x43219c], ecx
mov dword [0x4321a0], eax
mov dword [0x4320a0], ecx
mov dword [0x4320a4], eax
mov dword [0x4320a8], edx
pop ebx
jge 0x409554
push 0xfb
call fcn.004095f0
mov ecx, dword [0x43219c]
add esp, 4
mov ecx, dword [ecx]
cmp ecx, 0x14c4552
jne 0x409567
mov byte [0x4321c4], 1
jmp 0x409585
cmp ecx, 0x1544550
jne 0x409578
mov byte [0x4321c4], 0
jmp 0x409585
push 0xfb
call fcn.004095f0
add esp, 4
call fcn.00413ae0
call fcn.0040d3a3
call fcn.0040a300
test al, al
jne 0x4095a5
push 0xfc
call fcn.004095f0
add esp, 4
cmp dword [0x431190], 9
je 0x4095b3
call fcn.00408e40
call fcn.00419600
mov eax, dword [0x4321b4]
push eax
call fcn.004095f0
add esp, 4
mov esp, ebp
pop ebp
ret