joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400467b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14008c010]
mov rdi, rax
test rax, rax
je 0x14004682d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140046858
cmp ebx, esi
je 0x140046858
cmp ebx, 0x8000
ja 0x140046858
cmp ebx, esi
jb 0x140046853
mov edx, ebx
mov rcx, rdi
call qword [0x14008c010]
mov rdi, rax
test rax, rax
jne 0x1400467f0
mov rcx, rbp
call qword [0x14008c008]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140046838
mov rcx, rdi
jmp 0x140046830

Function at 0x14004d070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14008c070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1d8]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004d0eb
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.14002c950
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14004d113
lea rdx, str.Error_accept__ing_server_connect
call fcn.14002bf50
lea eax, [rbx + 0x1f]
jmp 0x14004d18f
lea rdx, str.Connection_accepted_from_server
call fcn.14002c0c0
mov edx, 1
mov byte [rsi + 0x3b1], 0
mov rcx, rbx
mov qword [rsi + 0x1d8], rbx
call fcn.14005d740
mov byte [rsi + 0x3c2], 1
cmp qword [rdi + 0x280], 0
je 0x14004d18d
mov dl, 1
mov rcx, rdi
call fcn.14001b670
mov rcx, qword [rdi + 0x288]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x280]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14001b670
test ebx, ebx
je 0x14004d18d
mov rdx, rsi
mov rcx, rdi
call fcn.14004d690
mov eax, Ordinal_46
jmp 0x14004d18f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006cd00
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004ec20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x14004ec56
mov dword [rdx + 0x7a0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.14004ed40
cmp byte [rcx + 0xac5], 0
je 0x14004ec6b
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14004f7b0
cmp byte [rcx + 0xac8], 0
je 0x14004ecec
mov r9, qword [rdx + 0x760]
test r9, r9
jne 0x14004ecae
mov r9, qword [rcx + 0x780]
test r9, r9
jne 0x14004eca5
cmp byte [rbx + 0x1310], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14004ecc5
cmp byte [rcx + 0xad5], 0
lea r8, str.PRET_STOR__s
jne 0x14004ecc5
lea r8, str.PRET_RETR__s
add rdx, 0x6d0
mov rcx, rbx
call fcn.140068340
test eax, eax
jne 0x14004ecf6
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004f700
add rsp, 0x20
pop rbx
ret

Function at 0x14004f010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x6d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x14004f05e
cmp qword [rdx + 0x90], 0
je 0x14004f05e
xor r9d, r9d
lea r8, str.REST__d
call fcn.140068340
test eax, eax
jne 0x14004f068
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004ec20
add rsp, 0x20
pop rbx
ret
Function at 0x14004f330
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14004f36f
lea rdx, str.Couldnt_set_desired_mode
call fcn.14002bf50
lea eax, [rdi + 0x11]
jmp 0x14004f4d5
cmp edx, 0xc8
je 0x14004f386
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14002c0c0
cmp esi, 0x13
jne 0x14004f39b
mov rdx, rbp
mov rcx, rbx
call fcn.14004f230
jmp 0x14004f4d1
cmp esi, 0x14
jne 0x14004f4b3
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x14004f418
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004f418
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140017e30
test eax, eax
jne 0x14004f4d1
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14004f40d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14004f418
mov rcx, qword [rsp + 0x40]
call qword [0x14008c008]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x14004f43d
cmp byte [rbx + 0x1310], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140080558]
test rdi, rdi
mov r9, r8
lea rax, [0x140072b7c]
cmovne r9, rdi
lea rcx, [0x140073304]
cmovne r8, rax
call fcn.14003ee70
mov rcx, rdi
mov rsi, rax
call qword [0x14008c008]
test rsi, rsi
jne 0x14004f47b
lea edi, [rsi + 0x1b]
jmp 0x14004f4d3
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x140071e10]
mov rcx, rbx
call fcn.140068340
mov rcx, rsi
mov edi, eax
call qword [0x14008c008]
test edi, edi
jne 0x14004f4d3
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x14004f4d3
cmp esi, 0x15
jne 0x14004f4be
lea r8d, [rsi - 8]
jmp 0x14004f4c7
cmp esi, 0x16
jne 0x14004f4d3
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.14004ed40
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140056030
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1d0]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005608f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14002bf50
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140055bd0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1400563d9
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x140056297
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140056297
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140056297
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 ebp, 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 0x1400562cd
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x140056323
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056323
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056323
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056323
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140056323
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.140055d00
mov rcx, qword [r15 + 0x1d0]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140056385
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14002bf50
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1400560c0
mov rcx, qword [r15 + 0x1d0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400563d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14002bf50
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x140057b10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14008c070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x140057ba7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x140057c0d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14002bf50
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006cd00
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x140057c43.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x57d5c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x140057c43.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x140057c43.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002be70
mov ebx, eax
test eax, eax
je 0x140057ca2
mov edx, 5
mov rcx, rdi
call fcn.140058770
mov eax, ebx
jmp 0x140057bdc
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14003c590
jmp case.0x140057c43.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400587e0
cmp rax, rbx
jae case.0x140057c43.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.14002c0c0
jmp case.0x140057c43.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.140057850
test eax, eax
je case.0x140057c43.4
jmp 0x140057bdc
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140071e10]
call fcn.14002bf50
mov rcx, rsi
call fcn.14003c8a0
test eax, eax
je 0x140057bda
mov edx, 5
mov rcx, rdi
call fcn.140058770
mov eax, Ordinal_46
jmp 0x140057bdc
Function at 0x14006b080
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x14006b0c2
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 0x14006b109
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 0x14006b162
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 0x14006b120
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006b1a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007fec0]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007fec1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006b170
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 0x14000c8c0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rcx
test edx, edx
je 0x14000c8f6
mov r9, rcx
mov rax, r9
lea rcx, [0x140069980]
sub rax, r10
and eax, 0xf
mov cl, byte [rax + rcx]
xor cl, byte [r9]
xor cl, r8b
inc r8d
not cl
mov byte [r9], cl
inc r9
cmp r8d, edx
jb 0x14000c8cd
ret
Function at 0x14005a288
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r14d, 1
cmp qword [0x1400b8778], r12
jne 0x14005a3e9
xor ecx, ecx
call fcn.140061048
mov rcx, rax
mov rdi, rax
call fcn.14005afc8
test al, al
jne 0x14005a2d9
mov eax, r14d
jmp 0x14005a452
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14005a2ed
mov eax, 2
jmp 0x14005a452
cmp dword [rdi + 0x3c], 0x400
jl 0x14005a300
mov eax, 3
jmp 0x14005a452
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x14005a319
mov eax, 4
jmp 0x14005a452
mov qword [0x1400b8778], r12
movzx r15d, r12w
movzx esi, word [rbx + 0x14]
add rsi, rbx
cmp r12w, word [rbx + 6]
jae 0x14005a407
movsx rax, r15w
lea rbp, [rax + rax*4]
mov eax, dword [rsi + rbp*8 + 0x3c]
test eax, 0x22000020
jne 0x14005a371
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x14005a371
cmp dword [rsi + rbp*8 + 0x20], 0x10
jb 0x14005a371
mov eax, dword [rsi + rbp*8 + 0x24]
test eax, eax
je 0x14005a371
lea rcx, [rdi + rax]
call fcn.14005afc8
test al, al
jne 0x14005a3a0
movzx ecx, word [rbx + 6]
add r15w, r14w
movsx eax, r15w
cmp eax, ecx
jl 0x14005a336
mov rcx, qword [0x1400b8778]
test rcx, rcx
je 0x14005a407
call fcn.14005afc8
test al, al
jne 0x14005a3bb
mov eax, 6
jmp 0x14005a452
mov eax, dword [rsi + rbp*8 + 0x24]
mov ecx, dword [rsi + rbp*8 + 0x20]
add rax, rdi
add rcx, 0xfffffffffffffff0
add rcx, rax
mov qword [0x1400b8778], rcx
jmp 0x14005a388
mov rdx, qword [0x1400b8778]
lea rcx, [0x1400b8768]
mov r8d, 0x10
call sub.ntdll.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [0x1400b8780], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x4000
call fcn.14005a4b4
test eax, eax
jne 0x14005a40e
mov eax, 7
jmp 0x14005a452
mov eax, 5
jmp 0x14005a452
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, r14d
call fcn.14005a504
test eax, eax
jne 0x14005a42a
mov eax, 8
jmp 0x14005a452
mov rax, qword [0x1400b8778]
movabs rcx, 0xcc873400686c0082
mov qword [rax], rcx
lea rcx, [0x1400b86f0]
mov rax, qword [0x1400b8778]
mov qword [rax + 8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005cde0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
lea rdx, [rsp + 0x40]
mov rbx, rcx
call fcn.14000c6c8
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call fcn.140046b64
mov rdx, rax
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp rdx, 0xffffffffffffffff
jne 0x14005ce62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14005ce5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14005ce5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x14005ce7d
xor al, al
jmp 0x14005ce6c
mov rcx, rdx
call fcn.140009e18
mov al, 1
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x1400a1830]
mov r8d, eax
call fcn.14005eb18
call fcn.140062124
int3

Function at 0x140061240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rdx
mov rdi, rcx
mov edx, dword [rax + rcx + 0x88]
test edx, edx
je 0x140061344
cmp dword [rax + rcx + 0x8c], 0
je 0x140061344
call fcn.14006294c
mov esi, eax
mov rcx, rdi
add rsi, rdi
mov edx, dword [rsi + 0x20]
call fcn.14006294c
mov edx, dword [rsi + 0x24]
mov rcx, rdi
mov r13d, eax
add r13, rdi
call fcn.14006294c
mov edx, dword [rsi + 0x1c]
mov rcx, rdi
mov r12d, eax
add r12, rdi
call fcn.14006294c
mov r14d, eax
add r14, rdi
cmp rbx, 0x10000
jae 0x140061303
mov edx, dword [rsi + 0x10]
cmp rbx, rdx
jb 0x140061356
mov ecx, dword [rsi + 0x14]
add ecx, edx
cmp rbx, rcx
jae 0x140061356
sub rbx, rdx
mov eax, dword [r14 + rbx*4]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ebp, ebp
cmp dword [rsi + 0x18], ebp
jbe 0x140061356
mov edx, dword [r13 + rbp*4]
mov rcx, rdi
call fcn.14006294c
mov edx, eax
mov rcx, rbx
add rdx, rdi
call fcn.1400472a4
test al, al
jne 0x140061331
inc ebp
cmp ebp, dword [rsi + 0x18]
jae 0x140061356
jmp 0x14006130a
movzx edx, word [r12 + rbp*2]
mov rcx, rdi
mov edx, dword [r14 + rdx*4]
call fcn.14006294c
jmp 0x1400612e6
lea rcx, [0x1400a1a5e]
call fcn.14005eb18
call fcn.140062124
int3
mov rdx, rbx
lea rcx, [0x1400a1ad4]
call fcn.14005eb18
call fcn.140062124
int3
Function at 0x14006136c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rdi, rdx
lea rdx, [rsp + 0x20]
call fcn.14000c6f0
lea rcx, [rsp + 0x20]
call fcn.1400610d8
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x140061450
cmp dword [rax + rsi + 0x8c], 0
je 0x140061450
lea rbx, [rsi + rcx]
mov r15d, dword [rbx + 0x24]
mov r14d, dword [rbx + 0x1c]
add r15, rsi
add r14, rsi
cmp rdi, 0x10000
jae 0x14006141b
mov edx, dword [rbx + 0x10]
cmp rdi, rdx
jb 0x140061462
mov ecx, dword [rbx + 0x14]
add ecx, edx
cmp rdi, rcx
jae 0x140061462
sub rdi, rdx
mov eax, dword [r14 + rdi*4]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r12d, dword [rbx + 0x20]
xor ebp, ebp
add r12, rsi
cmp dword [rbx + 0x18], ebp
jbe 0x140061462
mov edx, dword [r12 + rbp*4]
mov rcx, rdi
add rdx, rsi
call sub.ntdll.dll_strcmp
test eax, eax
je 0x140061445
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x140061462
jmp 0x140061429
movzx eax, word [r15 + rbp*2]
mov eax, dword [r14 + rax*4]
jmp 0x1400613fa
lea rcx, [0x1400a1b3a]
call fcn.14005eb18
call fcn.140062124
int3
lea rcx, [0x1400a1bb6]
call fcn.14005eb18
call fcn.140062124
int3

Function at 0x140061588
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x150
and dword [rcx], 0
xor edx, edx
mov r15, rcx
mov dword [rsp + 0x20], 0x130
xor r14d, r14d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140061682
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14006169c
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc r14d
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400615e5
mov eax, r14d
imul rcx, rax, 0x130
call fcn.14005e42c
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r12, rax
xor ebp, ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400616b6
mov eax, ebp
lea rsi, [rsp + 0x20]
imul rdi, rax, 0x130
inc ebp
mov ecx, 0x130
add rdi, r12
rep movsb byte [rdi], byte [rsi]
cmp ebp, r14d
jae 0x140061652
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140061622
mov rcx, rbx
call fcn.140009e18
lea r11, [rsp + 0x150]
mov dword [r15], ebp
mov rbx, qword [r11 + 0x20]
mov rax, r12
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a195e]
call fcn.14005eb18
call fcn.140062124
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a19a0]
call fcn.14005eb18
call fcn.140062124
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a19e2]
call fcn.14005eb18
call fcn.140062124
int3
Function at 0x180002c10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
add rcx, 2
mov ebp, 4
nop dword [rax]
movzx esi, byte [rcx - 2]
movzx r9d, byte [rcx - 1]
movzx edi, byte [rcx + 1]
movzx r11d, byte [rcx]
movzx r8d, sil
movzx r10d, dil
xor r8b, r9b
xor r10b, r11b
mov al, 0x1b
movzx edx, r8b
add r8b, r8b
movzx ebx, r10b
shr dl, 7
xor bl, sil
lea rcx, [rcx + 4]
xor bl, r9b
imul dl
xor al, r8b
movzx r8d, r9b
xor al, sil
xor r8b, r11b
xor sil, dil
xor al, bl
movzx edx, r8b
add r8b, r8b
mov byte [rcx - 6], al
shr dl, 7
mov al, 0x1b
imul dl
xor al, r8b
movzx edx, r10b
xor al, r9b
shr dl, 7
add r10b, r10b
xor al, bl
mov byte [rcx - 5], al
mov al, 0x1b
imul dl
xor al, r10b
movzx edx, sil
xor al, r11b
shr dl, 7
add sil, sil
xor al, bl
mov byte [rcx - 4], al
mov al, 0x1b
imul dl
xor al, sil
xor al, dil
xor al, bl
mov byte [rcx - 3], al
dec rbp
jne 0x180002c30
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret