joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400df780
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400df8a4
cmp r8d, 0xff
jne 0x1400df7e1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400df7cb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x104a90]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400bc1b0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400bc1b0
cmp r8d, 0xfb
jne 0x1400df7f3
lea r9, str.WILL
jmp 0x1400df831
cmp r8d, 0xfc
jne 0x1400df805
lea r9, str.WONT
jmp 0x1400df831
cmp r8d, 0xfd
jne 0x1400df817
lea r9, [0x1401054b4]
jmp 0x1400df831
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400df88d
cmp r10d, 0x27
jg 0x1400df864
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x1050b0]
test r8, r8
jne 0x1400df874
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400bc1b0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400df84b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400bc1b0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400bc1b0
add rsp, 0x38
ret

Function at 0x1400dfbf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400dfc4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400bc030
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400df780
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dfe00
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400dffa8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400dfe65
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400dfe65
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400dfe65
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400dfe9c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400dfef2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400dfef2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400dfef2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400dfef2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400dfef2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400df8b0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400dff54
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400bc030
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400dfc80
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400dffa0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400bc030
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400e1710
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140443080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400e17a5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400e1806
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400bc030
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400f4820
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400e18c1
sub ecx, 1
je 0x1400e1934
sub ecx, 1
je 0x1400e1870
cmp ecx, 1
je 0x1400e1853
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140108a30]
call fcn.1400bc030
jmp 0x1400e1934
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400e1440
test eax, eax
je 0x1400e1934
jmp 0x1400e17da
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400e1934
sub rax, rsi
cmp rax, rbp
jae 0x1400e1934
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400bc1b0
jmp 0x1400e1934
cmp r8d, 4
jle 0x1400e1934
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400e1934
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400bbf50
mov esi, eax
test eax, eax
je 0x1400e1913
mov edx, 5
mov rcx, rbx
call fcn.1400e2400
mov eax, esi
jmp 0x1400e17da
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400ca830
mov rcx, r14
call fcn.1400cab10
test eax, eax
je 0x1400e17d8
mov edx, 5
mov rcx, rbx
call fcn.1400e2400
mov eax, Ordinal_46
jmp 0x1400e17da
Function at 0x1400f46d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400f4712
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400f4759
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400f47b2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400f4770
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400f47f3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140108652]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140108653]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400f47c0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400f57a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f57f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f57f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f57f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f57f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f57f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f57f4
xor al, al
add rsp, 0x28
ret
Function at 0x1400f5a28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400f5a62
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f5a67
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400f5ab0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400f5ab0
dec r8
sub rdx, 1
jne 0x1400f5a96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140014410
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Execute command

Disassembly:
jmp 0x140012b10
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1400240a4]
call fcn.1400113a2
mov dword [rbp + 0x28], 0
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x44], 1
mov r8d, 0x169
mov edx, 0x20
lea rcx, [rbp + 0x70]
call fcn.1400112e9
xor eax, eax
cmp eax, 1
je 0x140012cdf
lea rcx, [0x14001be08]
call fcn.1400111b3
lea rcx, [0x14001be18]
call fcn.1400111b3
lea rcx, [0x14001be58]
call fcn.1400111b3
lea rcx, [0x14001be98]
call fcn.1400111b3
call qword [sym.imp.ucrtbased.dll__getch]
mov byte [rbp + 4], al
lea rcx, [0x14001bec0]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [rbp + 0x70]
call fcn.1400112cb
lea rcx, [0x14001bec8]
call fcn.1400111b3
lea rcx, [0x14001bf00]
call fcn.1400111b3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp eax, 1
je 0x140012cda
call qword [sym.imp.ucrtbased.dll__getch]
mov byte [rbp + 0x1f4], al
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x1b
jne 0x140012c22
xor eax, eax
jmp 0x140012ce1
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x20
jne 0x140012c67
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x28]
mov ecx, dword [rbp + 0x44]
call fcn.140011302
cmp dword [rbp + 0x44], 1
jne 0x140012c50
mov dword [rbp + 0x384], 2
jmp 0x140012c5a
mov dword [rbp + 0x384], 1
mov eax, dword [rbp + 0x384]
mov dword [rbp + 0x44], eax
jmp 0x140012cda
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x48
jne 0x140012c83
cmp dword [rbp + 0x2c], 0
jle 0x140012c83
mov eax, dword [rbp + 0x2c]
dec eax
mov dword [rbp + 0x2c], eax
jmp 0x140012cd5
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x50
jne 0x140012c9f
cmp dword [rbp + 0x2c], 0x12
jge 0x140012c9f
mov eax, dword [rbp + 0x2c]
inc eax
mov dword [rbp + 0x2c], eax
jmp 0x140012cd5
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x4b
jne 0x140012cbb
cmp dword [rbp + 0x28], 0
jle 0x140012cbb
mov eax, dword [rbp + 0x28]
dec eax
mov dword [rbp + 0x28], eax
jmp 0x140012cd5
movsx eax, byte [rbp + 0x1f4]
cmp eax, 0x4d
jne 0x140012cd5
cmp dword [rbp + 0x28], 0x12
jge 0x140012cd5
mov eax, dword [rbp + 0x28]
inc eax
mov dword [rbp + 0x28], eax
jmp 0x140012bf3
jmp 0x140012b76
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bdd0]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015760
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015780
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015793
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400157bd
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400157d1
xor al, al
jmp 0x140015801
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400157e3
xor al, al
jmp 0x140015801
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400157ff
xor al, al
jmp 0x140015801
mov al, 1
add rsp, 0x38
ret
Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400024da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400024da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400024da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400024da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400024da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400024dc
xor al, al
add rsp, 0x28
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001000
Capabilities:
Persist via run registry key
Power down monitor
Set registry value

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rdx, [0x140003390]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001110
mov rcx, rax
lea rdx, [0x1400012c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
xor r8d, r8d
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
xor ebx, ebx
nop word [rax + rax]
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010e7
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x104
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.krutaya_shtuka
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x112
mov r9d, 2
mov r8d, 0xf170
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001070

Function at 0x140001c48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c92
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c94
xor al, al
add rsp, 0x28
ret
Function at 0x14012d160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, 0x76736b50
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
je 0x14012d17c
jne 0x14012d17c
rcr ebp, 0x6b
test r12, rdi
call rax
movabs r12, 0x339ae10e120020eb
test r8, rdi
div rdi
jp 0x14012cc47
jmp 0x14012d19e
xchg rdi, rcx
mov qword [rsp + 8], rdi
xchg rdi, rcx
sub rsp, 0x28
lea rax, [0x14012d380]
jne 0x14012d1ba
je 0x14012d1ba
movabs r15, 0x7cbc955404bb20eb
lea ecx, [rcx + 0x5ecb]
ja 0x14012da93
jmp 0x14012d1dc
lea r12d, [rbp - 0x3cfe]
jmp rax
xchg r14, rax
mov qword [rsp + 0x18], r14
xchg r14, rax
mov dword [rsp + 8], 0
xchg rdi, rax
mov rdi, qword [rsp + 0x30]
xchg rdi, rax
Function at 0x140020970
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1402ca280], rbx
je 0x1400209bc
cmp rax, rbx
jne 0x1400209af
mov ebx, 1
mov esi, ebx
jmp 0x1400209c1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140020994
mov ebx, 1
mov eax, dword [0x1402ca288]
cmp eax, ebx
jne 0x1400209d7
mov ecx, 0x1f
call fcn.140365000
jmp 0x140020a3c
mov eax, dword [0x1402ca288]
test eax, eax
jne 0x140020a36
mov dword [0x1402ca288], ebx
lea r15, [0x140022830]
lea rdi, [0x140022818]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140020a28
test eax, eax
jne 0x140020a2c
cmp qword [rdi], 0
je 0x140020a1d
mov rax, qword [rdi]
mov rcx, qword [0x1400227d0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400209fe
test eax, eax
je 0x140020a3c
mov eax, 0xff
jmp 0x140020b18
mov dword [0x1402c95c4], ebx
mov eax, dword [0x1402ca288]
cmp eax, ebx
jne 0x140020a63
lea rdx, [0x140022810]
lea rcx, [0x1400227d8]
call sub.msvcrt.dll__initterm
mov dword [0x1402ca288], 2
test esi, esi
jne 0x140020a70
xor eax, eax
xchg qword [0x1402ca280], rax
cmp qword [0x1402ca2a0], 0
je 0x140020aa4
lea rcx, [0x1402ca2a0]
call fcn.140021090
test eax, eax
je 0x140020aa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1402ca2a0]
mov r9, qword [0x1400227d0]
call r9
mov r8, qword [0x1402c95d8]
mov rdx, qword [0x1402c95d0]
mov ecx, dword [0x1402c95c8]
call fcn.140002c2c
mov dword [0x1402c95c0], eax
cmp dword [0x1402c95e0], 0
jne 0x140020ad4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1402c95c4], 0
jne 0x140020ae9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1402c95c0]
jmp 0x140020b18
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140021124
add rsp, 0x28
jmp 0x140020970

Function at 0x140020f7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140020fc8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020fc0
cmp dword [rcx + 0x3c], edx
jl 0x140020fc0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140020fc0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140020fc8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180002308
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rdx
mov edi, ecx
xor ebx, ebx
mov qword [rax + 0x18], rbx
mov r15d, ebx
lea rcx, [rax + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x180002474
lea r8, [rsp + 0x70]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180002474
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call fcn.180001900
mov r15d, eax
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + ILClone]
cmp byte [0x1801691b8], bl
jne 0x1800023e2
mov byte [0x1801691b8], 1
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002474
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x180002474
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1801691b4]
call r14
test eax, eax
je 0x180002474
cmp dword [0x1801691b4], ebx
je 0x180002474
cmp edi, 0x26
je 0x180002437
cmp edi, 0x2b
je 0x180002437
cmp edi, 0x25
jne 0x180002474
lea rdx, [0x180089db8]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x180002474
mov word [rax], bx
lea r8, [0x180089dd0]
mov edx, 0x104
mov rcx, rsi
call fcn.1800703c0
test eax, eax
je 0x180002431
xor eax, eax
jmp 0x180002479
jmp 0x180002474
lea rdx, str.__x86_
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x180002474
mov word [rax], bx
cmp word [rax + 0xc], bx
je 0x180002474
lea r8, [rax + 0xc]
mov edx, 0x104
mov rcx, rsi
call fcn.1800703c0
test eax, eax
je 0x18000246e
xor eax, eax
jmp 0x180002479
jmp 0x180002474
mov ebx, r15d
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x18000332c
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
add rcx, 0x18
call fcn.1800055b8
lea rcx, [rbx + 0x30]
call fcn.1800055b8
lea rcx, [rbx + 0x38]
call fcn.1800055b8
xor edi, edi
lea rcx, [rbx + 0x58]
mov dword [rbx + 0x54], edi
call fcn.1800055b8
lea rcx, [rbx + 0x68]
mov word [rbx + 0x60], di
mov dword [rbx + 0x64], edi
call fcn.1800055b8
lea rcx, [rbx + 0x70]
call fcn.1800055b8
cmp dword [rbx + 0x28], 0x10000
jbe 0x18000339b
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx + 0x28], rdi
test rsi, rsi
je 0x1800033b3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1800033a8
mov edi, eax
mov r8d, edi
lea rcx, [rbx + 0x70]
mov rdx, rsi
call fcn.180005498
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1800033e0