Function at 0x42f890
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
and esp, 0xfffffff8
sub esp, 0x128
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x472c30
mov dword [0x472dac], eax
mov dword [0x472c30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x472ec8], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [eax - 0x4e2]
cmp ecx, 8
ja case.default.0x42f8df
jmp dword [ecx*4 + 0x42ff94]
mov ecx, 0xee
jmp 0x42f920
mov dword [0x470a38], 0xcc
jmp 0x42f955
mov dword [0x470a38], ebx
jmp 0x42f955
mov ecx, 0xa1
jmp 0x42f920
mov ecx, 0xa2
jmp 0x42f920
mov dword [0x470a44], 0xb1
jmp 0x42f955
mov ecx, 0xb2
mov dword [0x470a38], ecx
mov dword [0x470b14], eax
mov dword [0x470b18], ecx
jmp 0x42f955
mov dword [0x470a38], 0xba
jmp 0x42f955
mov dword [0x470a44], 0xa3
jmp 0x42f955
mov dword [0x470a38], 1
mov ecx, dword [str.SoftwareGemtree_SoftwarePeter]
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push ecx
push CreateStatusWindowA
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42f9af
mov eax, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push str.Language
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x42f9c6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xff
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, 0x470a50
mov esi, 0x20
cmp dword [ecx], eax
je 0x42f9e3
add ecx, esi
inc edx
cmp ecx, 0x470d90
jl 0x42f9d2
jmp 0x42f9e9
mov dword [0x470a34], edx
mov ecx, dword [0x470a34]
push ecx
call fcn.0042f7a0
mov eax, dword [0x472c40]
add esp, 4
cmp eax, 1
jne 0x42fa0f
cmp word [0x472c3c], 0x3e8
ja 0x42fa14
jmp 0x42fa39
cmp eax, 2
jne 0x42fa39
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x472ecc], eax
je 0x42fa39
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x472ee8], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x472ee0], eax
call fcn.0042f880
mov eax, dword [0x472c28]
cdq
sub eax, edx
sar eax, 1
mov dword [0x472ef0], eax
mov eax, dword [0x472cc8]
cdq
sub eax, edx
sar eax, 1
mov dword [0x472f08], eax
call fcn.00435ac0
test al, al
jne 0x42fa7d
push 0xfd
call fcn.0042ffc0
add esp, 4
mov ecx, dword [0x472dac]
xor edx, edx
cmp ecx, ebx
lea eax, [esp + 0x20]
setle dl
dec edx
push eax
and edx, 0x1e
add edx, 0x1e
mov dword [0x472d58], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x2a]
and eax, 0xffff
lea ecx, [eax + eax*4]
shl ecx, 6
add ecx, eax
shl ecx, 3
sub ecx, eax
mov eax, dword [esp + 0x2c]
and eax, 0xffff
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x2e]
add ecx, eax
mov eax, dword [esp + 0x26]
and edx, 0xffff
and eax, 0xffff
add ecx, edx
imul eax, eax, 0x4f620aea
imul ecx, ecx, 0x76ddb
sub ecx, eax
mov dword [0x472da4], ecx
call fcn.004300b0
mov ecx, 0x400
call fcn.00435b70
mov edi, eax
mov ecx, 0x100
xor eax, eax
mov dword [0x470264], edi
rep stosd dword es:[edi], eax
mov ecx, 0x400
call fcn.00435b70
mov edi, eax
mov ecx, 0x100
xor eax, eax
mov dword [0x470298], edi
rep stosd dword es:[edi], eax
call fcn.0040e310
call fcn.00407d60
push 0x470168
push section..data
call fcn.0042f770
mov edx, dword [0x472ec8]
add esp, 8
lea ecx, [esp + 0x34]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x34]
mov ecx, 0x472d74
call fcn.004107e0
mov ecx, 0x428
call fcn.00435b70
mov edi, eax
mov ecx, 0x10a
xor eax, eax
mov dword [0x472d70], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x472d70]
mov dword [eax], 0x28
mov ecx, dword [0x472d70]
mov dword [ecx + 4], esi
mov edx, dword [0x472d70]
mov dword [edx + 8], esi
mov eax, dword [0x472d70]
mov word [eax + 0xc], 1
mov ecx, dword [0x472d70]
mov word [ecx + 0xe], 8
mov edx, dword [0x472d70]
mov dword [edx + 0x10], ebx
mov eax, dword [0x472d70]
mov ebx, 0x46e0b8
mov dword [eax + 0x24], 0xe0
mov ecx, dword [0x472d70]
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 [ebx]
mov ebp, 0x46e0a4
mov dword [ecx], edx
lea esi, [ecx + 5]
mov edi, dword [ebp]
xor eax, eax
mov al, byte [ecx + 2]
add ebp, 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 ebp, 0x46e0b8
jl 0x42fc0c
add ebx, 4
add ecx, 0x18
cmp ebx, 0x46e144
jl 0x42fc00
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 0x42fc74
mov ecx, 0x40000
call fcn.00435b70
mov ecx, dword [0x472ec8]
push 0x470fe0
push 0x36
push ecx
mov dword [0x472da8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x472ec8]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebp, ebp
mov edi, eax
cmp esi, ebp
je 0x42fcd7
cmp edi, ebp
jne 0x42fce4
push 0xfb
call fcn.0042ffc0
add esp, 4
mov eax, dword [0x472ec8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x472da8]
add eax, 6
push eax
push 0x40000
push ecx
call fcn.00430450
add esp, 0x10
mov ecx, 0x100
call fcn.00435b70
mov ecx, 0x404
mov dword [0x472eac], eax
call fcn.00435b70
mov edi, eax
mov ecx, 0x101
xor eax, eax
mov dword [0x472ed8], edi
rep stosd dword es:[edi], eax
mov edx, dword [0x472ed8]
mov esi, 0xe0
mov word [edx], 0x300
mov eax, dword [0x472ed8]
mov word [eax + 2], 0xe0
mov ecx, dword [0x472ed8]
mov edx, dword [0x472d70]
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 esi
jne 0x42fd6b
mov eax, dword [0x472ed8]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, 0x400
mov dword [0x472ed4], eax
call fcn.00435b70
mov ecx, dword [0x472d70]
mov dword [0x472db4], eax
lea esi, [ecx + 0x28]
xor ecx, ecx
mov edx, dword [esi]
cmp ecx, ebp
mov dword [eax], edx
mov bl, byte [eax + 2]
mov byte [eax], bl
mov byte [eax + 2], dl
mov byte [eax + 3], 0
jne 0x42fdd0
mov dword [eax], 0xff000000
jmp 0x42fde7
cmp ecx, 1
jne 0x42fddd
mov dword [eax], 0x70000000
jmp 0x42fde7
cmp ecx, 0xe0
jl 0x42fde7
mov dword [eax], ebp
add eax, 4
add esi, 4
inc ecx
cmp ecx, 0x100
jl 0x42fdb4
mov ecx, 0x560
call fcn.00435b70
mov dword [0x472d50], eax
mov dword [eax], ebp
mov eax, dword [0x472d50]
mov dword [eax + 4], ebp
mov ecx, dword [0x472d50]
mov eax, 2
mov dword [ecx + 8], ebp
mov edx, dword [0x472d50]
mov dword [esp + 0x10], eax
mov dword [edx + 0xc], 0x3ff00000
fild dword [esp + 0x10]
mov ecx, dword [0x472d50]
inc eax
cmp eax, 0xab
mov dword [esp + 0x10], eax
fmul qword [ecx + eax*8 - 0x10]
fstp qword [ecx + eax*8 - 8]
jle 0x42fe2e
mov ecx, 0x100
call fcn.00435b70
mov dword [0x472ccc], eax
xor ecx, ecx
cmp ecx, 0xe0
jge 0x42fe9d
cmp ecx, 2
jl 0x42fe9d
lea esi, [ecx + 1]
mov ebx, 6
lea edi, [esi - 2]
mov eax, edi
cdq
idiv ebx
test edx, edx
jne 0x42fe86
cmp ecx, 0xda
jne 0x42fe9d
cmp esi, 0xd4
mov eax, esi
jle 0x42fea2
cmp esi, 0xdf
jge 0x42fea2
lea eax, [edi + 3]
jmp 0x42fea2
mov eax, 0xdf
mov edx, dword [0x472ccc]
inc ecx
cmp ecx, 0x100
mov byte [edx + ecx - 1], al
jl 0x42fe5d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov ecx, 0x472cc4
call fcn.004107e0
mov eax, dword [0x472ec8]
mov ecx, dword [0x470a28]
add ecx, eax
mov eax, dword [0x470a2c]
cmp eax, 0x1f4
mov dword [0x472eb4], ecx
lea edx, [eax + ecx]
mov dword [0x472eb8], eax
mov dword [0x472d98], ecx
mov dword [0x472d9c], eax
mov dword [0x472da0], edx
jge 0x42ff12
push 0xfb
call fcn.0042ffc0
mov ecx, dword [0x472eb4]
add esp, 4
mov ecx, dword [ecx]
cmp ecx, 0x14c4552
jne 0x42ff25
mov byte [0x472ee4], 1
jmp 0x42ff43
cmp ecx, 0x1544550
jne 0x42ff36
mov byte [0x472ee4], 0
jmp 0x42ff43
push 0xfb
call fcn.0042ffc0
add esp, 4
call fcn.00443a30
call fcn.0043fd50
call fcn.00436af3
call fcn.00430d90
test al, al
jne 0x42ff68
push 0xfc
call fcn.0042ffc0
add esp, 4
cmp dword [0x470a40], 9
je 0x42ff76
call fcn.00416980
call fcn.00449850
mov eax, dword [0x472ed0]
push eax
call fcn.0042ffc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret