Function at 0x404920
Capabilities:
Create process on windows
Manipulate console buffer

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4843bb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1c70
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c58], esi
cmp byte [esi + 0x60], 0
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x1c64], eax
je 0x405036
mov edx, dword [esi + 0x84]
lea eax, [esi + 0x80]
push ecx
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x1c68], eax
call fcn.0040afa0
mov eax, dword [esi + 0x80]
add esp, 4
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x8c], 0
test eax, eax
je 0x4049fc
cmp dword [eax], 0
je 0x4049fc
push 0x44
call fcn.0046ba01
add esp, 4
mov dword [ebp - 0x1c60], eax
mov ecx, eax
push dword [ebp - 0x1c64]
push 0xffffffffffffffff
push 0x64
push 0
call fcn.004038a0
push 0
push eax
mov eax, dword [esi + 0x7c]
push 0x8064
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
add esi, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x404a09
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x1bd0]
push str.__sdism.exe___s
push eax
call fcn.0040a970
mov edi, dword [ebp - 0x1c58]
add esp, 0x10
add edi, 0x34
cmp dword [edi + 0x10], 0
je 0x404a7d
push str.__logpath:_
lea eax, [ebp - 0x1bd0]
push 0x800
push eax
call fcn.00474974
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x404a4f
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x1bd0]
push 0x800
push eax
call fcn.00474974
add esp, 0xc
lea eax, [ebp - 0x1bd0]
push 0x4920d0
push 0x800
push eax
call fcn.00474974
add esp, 0xc
mov edi, dword [ebp - 0x1c58]
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x404aa6
push 0x4920d4
lea eax, [ebp - 0x1bd0]
push 0x800
push eax
call fcn.00474974
mov eax, dword [edi + 0x6c]
add esp, 0xc
cmp eax, 1
jne 0x404ac4
push str.__loglevel:2
lea eax, [ebp - 0x1bd0]
push 0x800
push eax
call fcn.00474974
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x404acc
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xbd0]
push 0x1f4
push eax
call fcn.00474910
add esp, 0xc
mov dword [ebp - 0x1c38], 0x44
xor eax, eax
mov dword [ebp - 0x1c0c], 1
mov word [ebp - 0x1bf6], ax
xorps xmm0, xmm0
mov word [ebp - 0x1c08], ax
lea eax, [ebp - 0x1c48]
push eax
lea eax, [ebp - 0x1c38]
movlpd qword [ebp - 0x1c34], xmm0
push eax
lea eax, [ebp - 0xbd0]
movlpd qword [ebp - 0x1c2c], xmm0
push eax
push 0
push dword [edi + 0x68]
lea eax, [ebp - 0x1bd0]
movlpd qword [ebp - 0x1c24], xmm0
push 1
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x1c48], xmm0
movlpd qword [ebp - 0x1c1c], xmm0
movlpd qword [ebp - 0x1c14], xmm0
movlpd qword [ebp - 0x1c06], xmm0
movlpd qword [ebp - 0x1bfe], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405036
push 0x7d0
lea eax, [ebp - 0x7e8]
push 0
push eax
call fcn.0046dcc0
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1c54], eax
add esp, 0xc
mov dword [ebp - 0x1bd4], eax
xor al, al
mov dword [ebp - 0x1c5c], edi
xor esi, esi
mov byte [ebp - 0x1c49], al
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c40]
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x404be6
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
inc esi
cmp esi, 0x14
jl 0x404bb4
mov al, byte [ebp - 0x1c49]
jmp 0x404bee
mov al, 1
mov byte [ebp - 0x1c49], al
mov dword [ebp - 0x1c50], edi
test al, al
je 0x404c0e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x1c50], eax
mov dword [ebp - 0x1bd8], edi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x1bd8]
push eax
push dword [ebp - 0x1c48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x1c50]
test edx, edx
je 0x404df0
test di, di
jne 0x404cdb
xor esi, esi
nop dword [eax]
movzx eax, si
mov di, ax
mov ecx, eax
lea eax, [ebp - 0x1bd4]
mov word [ebp - 0x1c52], di
push eax
push dword [ebp - 0x1c54]
lea eax, [ebp - 0x7e8]
mov dword [ebp - 0x1c60], ecx
push 0x46
push eax
push edx
mov dword [ebp - 0x1c5c], edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
test eax, eax
je 0x404c96
cmp word [ebp - 0x7e8], 0x5b
je 0x404cc7
xor edi, edi
mov dword [ebp - 0x1c5c], edi
mov word [ebp - 0x1c52], di
cmp esi, 9
jne 0x404cb5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x1c50]
inc esi
cmp esi, 0xa
jge 0x404df0
jmp 0x404c50
cmp word [ebp - 0x1c60], 0
mov edx, dword [ebp - 0x1c50]
je 0x404df0
lea eax, [ebp - 0x1bd4]
push eax
push dword [ebp - 0x1c54]
lea eax, [ebp - 0x7e8]
push 0x46
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
test eax, eax
je 0x404dd9
xor eax, eax
mov edi, 1
mov word [ebp - 0x75c], ax
nop
cmp word [ebp + edi*2 - 0x7e8], 0x3d
jne 0x404d41
cmp word [ebp + edi*2 - 0x7e6], 0x3d
jne 0x404d40
cmp word [ebp + edi*2 - 0x7e4], 0x3d
jne 0x404d3b
add edi, 3
cmp edi, 0x46
jl 0x404d10
jmp 0x404d41
add edi, 2
jmp 0x404d41
inc edi
mov eax, dword [ebp - 0x1c58]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x404dd9
cmp dword [eax], 0
je 0x404dd9
push 0x44
call fcn.0046ba01
add esp, 4
lea ecx, [ebp - 0x7e8]
lea ecx, [ecx + edi*2]
mov esi, eax
mov dword [ebp - 0x1c60], esi
push ecx
call fcn.00471125
mov dword [esi], 1
xor ecx, ecx
mov dword [esi + 0x14], 0
add esp, 4
mov dword [esi + 0x18], 7
mov word [esi + 4], cx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], cx
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x1c64]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c58]
push ecx
mov dword [esi + 0x38], 0x64
mov dword [esi + 0x3c], 0xffffffff
mov eax, dword [eax + 0x7c]
push esi
push 0x8064
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x1c5c]
mov edx, dword [ebp - 0x1c50]
mov eax, dword [ebp - 0x1bd8]
cmp eax, 0x103
je 0x404c20
mov ecx, dword [ebp - 0x1c58]
mov dword [ecx + 0x8c], eax
test edx, edx
je 0x40500d
lea eax, [ebp - 0x1bf0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40500d
mov dx, word [ebp - 0x1be2]
mov eax, 0x3e7
cmp dx, ax
cmovg edx, eax
mov ax, word [ebp - 0x1be0]
inc ax
inc dx
xor ecx, ecx
mov word [ebp - 0x1be2], dx
xor esi, esi
mov word [ebp - 0x1be0], ax
cmp cx, ax
jge 0x40500d
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x1bd4]
mov word [ebp - 0x1c52], si
push eax
push dword [ebp - 0x1c54]
movsx eax, dx
push eax
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x1c50]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
test eax, eax
je 0x404ff6
mov dx, word [ebp - 0x1be2]
movsx eax, dx
add eax, eax
cmp eax, 0x7d0
jae 0x40505d
xor ecx, ecx
mov word [ebp + eax - 0x7e8], cx
lea ecx, [ebp - 0x7e8]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ed0
sub ecx, edi
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x404f00
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x7e8], 0x20
jne 0x404f00
sub eax, 1
jns 0x404ef0
inc eax
lea ecx, [eax + eax]
cmp ecx, 0x7d0
jae 0x40505d
xor edi, edi
mov word [ebp + ecx - 0x7e8], di
test eax, eax
jle 0x404ffd
xor eax, eax
mov dword [ebp - 0x1c70], edi
lea ecx, [ebp - 0x7e8]
mov dword [ebp - 0x1c6c], 7
mov word [ebp - 0x1c80], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f44
sub ecx, edx
lea eax, [ebp - 0x7e8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c80]
call fcn.00402430
mov ecx, dword [ebp - 0x1c68]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x404fa6
movups xmm0, xmmword [ebp - 0x1c80]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c70]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov word [ebp - 0x1c80], ax
jmp 0x404fb9
lea edx, [ebp - 0x1c80]
push edx
push eax
call fcn.0040aa00
mov edx, dword [ebp - 0x1c6c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x404ff6
mov ecx, dword [ebp - 0x1c80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404fec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405058
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov dx, word [ebp - 0x1be2]
movsx eax, word [ebp - 0x1be0]
inc esi
cmp esi, eax
jl 0x404e70
cmp byte [ebp - 0x1c49], 0
je 0x40501c
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push dword [ebp - 0x1c48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c44]
call esi
mov al, 1
jmp 0x405038
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00471513
call fcn.0046bb60
int3