Function at 0x401840
Capabilities:
Accept command line arguments
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x54], eax
mov eax, 0x6bd
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x7c], 0x5323
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0x15], cl
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x753
mov word [ebp - 0x68], ax
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x78], ecx
mov dx, word [ebp - 0x68]
mov word [ebp - 0x1c], dx
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x4c], ax
mov byte [ebp - 0x61], 0xd4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x14], 0x5f28
movzx edx, word [ebp - 0x68]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x753
je 0x4018f8
cmp dword [ebp - 0x8c], 0xdb8
je 0x4018c9
jmp 0x401aab
movzx eax, word [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
movzx edx, word [ebp - 0x1c]
push edx
movzx eax, byte [ebp - 0x61]
push eax
call fcn.00401ea0
add esp, 0x10
movsx edx, byte [ebp - 0x15]
movsx ecx, byte [ebp + 8]
sar edx, cl
mov eax, dword [ebp - 0x78]
mov byte [eax], dl
jmp 0x401aab
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x5323
je 0x40191a
jmp 0x401a77
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov cx, word [ebp - 0x68]
mov word [ebp - 0x5c], cx
lea edx, [ebp - 0x61]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x80]
xor ecx, dword [eax]
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x7c]
cmp ecx, edx
jne 0x4019f7
mov al, byte [ebp - 0x61]
mov byte [ebp - 0x94], al
cmp byte [ebp - 0x94], 0xd4
je 0x401967
jmp 0x4019d6
mov ecx, dword [ebp - 0x7c]
imul ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
sub eax, dword [ebp - 0x60]
cmp ecx, eax
jl 0x4019b3
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ecx
push 0
push 0x40
push 4
push 0
push 4
push 0xc0000000
push str.C:Defender_thosepestilent
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
jmp 0x4019d4
movzx edx, word [ebp - 0x68]
movzx eax, word [ebp - 0x1c]
add edx, eax
movzx ecx, word [ebp - 0x5c]
cmp edx, ecx
jne 0x4019d4
mov edx, dword [ebp - 0x78]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 0x10]
sub eax, ecx
mov byte [ebp - 0x15], al
jmp 0x4019f5
movzx edx, word [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp - 0x15]
call fcn.004014b0
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
xor ecx, 0xd3
mov byte [ebp - 0x61], cl
jmp 0x401a19
movzx edx, word [ebp - 0x5c]
movzx eax, word [ebp - 0x68]
or edx, eax
mov word [ebp - 0x1c], dx
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cdq
idiv dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x60]
sar edx, cl
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x61]
add eax, ecx
mov edx, dword [ebp - 0x10]
mov byte [edx], al
mov ecx, dword [ebp - 0x7c]
call fcn.00401b30
mov eax, dword [ebp - 0x78]
mov cl, byte [eax]
mov byte [ebp + 0xc], cl
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
sub eax, dword [edx]
mov dword [ebp - 0x80], eax
call section..text
jmp 0x401a7c
call section..text
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
cdq
idiv dword [ebp - 0x7c]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx]
je 0x401aab
mov al, byte [ebp - 0x15]
mov byte [ebp + 0xc], al
mov ecx, dword [ebp - 0x78]
mov dl, byte [ecx]
mov byte [ebp + 0x10], dl
mov eax, dword [ebp - 0x78]
movsx edx, byte [eax]
movsx ecx, byte [ebp - 0x15]
shl edx, cl
mov eax, dword [ebp - 0x78]
mov byte [eax], dl
mov ecx, dword [ebp - 0x7c]
sub ecx, 0xd09
mov edx, dword [ebp - 0x50]
mov dword [edx], ecx
movzx eax, word [ebp - 0x68]
push eax
movzx ecx, byte [ebp - 0x61]
push ecx
movzx edx, word [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004024e0
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
add edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x50]
mov dword [eax], edx
movzx ecx, word [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
movzx eax, word [ebp - 0x1c]
push eax
movzx ecx, byte [ebp - 0x61]
push ecx
call fcn.00401ea0
add esp, 0x10
movzx edx, word [ebp - 0x68]
and edx, 0x473
mov word [ebp - 0x1c], dx
mov al, byte [ebp - 0x15]
mov byte [ebp + 8], al
movsx ecx, word [ebp - 0x6c]
or ecx, 0xf7
mov word [ebp - 0x4c], cx
mov eax, 0xc9
mov esp, ebp
pop ebp
ret