joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098cd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x140098d48
or rax, rdi
jmp 0x140098d90
cmp esi, 0x17
jne 0x140098d72
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.1400cdd90
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140099279
mov dword [rsp + 0x20], 0x2719
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x1400992de
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [r14]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov dword [rsp + 0x30], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rcx, dword [rsp + 0x30]
mov esi, eax
mov qword [r14], rcx
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x1400992dc
mov dword [rsp + 0x20], esi
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140099400
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14009942a
cmp byte [rdx], 0
jne 0x14009942c
xor edi, edi
test rbx, rbx
je 0x140099437
cmp byte [r8], 0
jne 0x140099439
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140099300
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax]
mov rax, rsi
movups xmmword [rsi], xmm0
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140099490
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1400994dd
mov dword [rsp + 0x20], 0x2719
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x50
pop rsi
ret
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x30]
mov qword [rsp + 0x48], rbp
mov edx, 0x4004667f
xor ebp, ebp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], ebp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
test edi, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jne 0x140099547
mov dword [rsp + 0x20], ebp
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0x19
jne 0x140099566
mov dword [rsp + 0x20], 0x2736
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
cmp dword [rsi], ebp
jne 0x14009956e
mov ebp, dword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x50
pop rsi
ret
Function at 0x1400999a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r8d, esi
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x50], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x140099a2f
mov dword [rsp + 0x40], 0x2746
jmp 0x140099a3f
cmp ecx, 0x4d2
jne 0x140099a52
mov dword [rsp + 0x40], 0x274d
call fcn.1400cdd90
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x140099a5b
or eax, 0xffffffff
jmp 0x140099a76
mov dword [rsp + 0x40], ebp
call fcn.1400cdd90
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140099c90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140099cd8
mov dword [rbp - 0x10], 0x2719
call fcn.1400cdd90
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
or eax, esi
jmp 0x140099db5
cmp r8d, 0xa5100000
jne 0x140099d45
cmp ebx, 2
jne 0x140099d09
mov dword [rbp - 0x10], 0x2726
call fcn.1400cdd90
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
or eax, 0xffffffff
jmp 0x140099db5
cmp ebx, 1
jne 0x140099d59
cmp qword [rbp + 0x38], 4
jne 0x140099ce6
mov rax, qword [rbp + 0x30]
cmp dword [rax], 0
je 0x140099d23
or byte [rdx], 4
jmp 0x140099d26
and byte [rdx], 0xfb
mov dword [rbp - 0x10], 0
call fcn.1400cdd90
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
xor eax, eax
jmp 0x140099db5
cmp r8d, 0xffff
jne 0x140099d59
cmp ebx, 0x80
jne 0x140099d59
or byte [rdx], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [rbp + 0x38]
mov r8d, ebx
mov r9, qword [rbp + 0x30]
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 8], rbx
mov rbx, qword [rbp + 0x40]
mov dword [rbp - 0x10], eax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x140099db3
mov dword [rbp - 0x10], edi
call fcn.1400cdd90
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x140099dd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x140099efe
test r8b, r8b
je 0x140099e50
test byte [rdx], 8
je 0x140099e50
mov dword [rsp + 0x40], r15d
call fcn.1400cdd90
lea rax, [rsp + 0x48]
mov r9d, 0x80
mov qword [rsp + 0x30], rax
mov r8d, 0xffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 4
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rbp
call fcn.140099c90
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
test esi, esi
je 0x140099efe
call fcn.1400cdd90
cmp qword [rdi + 8], rax
jne 0x140099e99
cmp dword [rdi], 0x2733
je 0x140099eac
call fcn.1400cdd90
cmp qword [rdi + 8], rax
jne 0x140099efa
cmp dword [rdi], 0x4d5
jne 0x140099efa
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x140099f15
mov dword [rsp + 0x48], r15d
call fcn.1400cdd90
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca980
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009a320
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x58], rbp
xor r8d, r8d
mov rbp, rcx
mov qword [rsp + 0x50], rsi
mov rsi, rdx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x14009a3a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.1400cdd90
lea rdx, str.thread.entry_event
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140085410
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14009a402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.1400cdd90
lea rdx, str.thread.exit_event
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140085410
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x14009a280]
mov r9, rsi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x40], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14009a48a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14009a455
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14009a464
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.1400cdd90
lea rdx, str.thread
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140085410
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x80]
test rdi, rdi
je 0x14009a4b6
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x60
pop rdi
ret
Function at 0x14009ad10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14009ad6c
call fcn.14009b0c0
mov dword [rsp + 0x20], ebx
call fcn.1400cdd90
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14009adfd
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401ae85c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1401ae85c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.14009aa50
test rax, rax
je 0x14009add9
nop word [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x14009adc9
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.14009aa50
test rax, rax
jne 0x14009adc0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1401ae85c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14009adfa
call fcn.1400cad54
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14009b930
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1401ae808], eax
test eax, eax
je 0x14009b9a7
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.14000ff90]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x40
pop rbx
ret
Function at 0x1400a2e10
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rcx + 0x10], 0
cmp qword [rcx + 0x18], 0x10
jb 0x1400a2e4a
mov rax, qword [rcx]
jmp 0x1400a2e4d
mov rax, rcx
mov byte [rax], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400a2f71
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400a2f68
mov edx, dword [rsp + 0x48]
mov rax, qword [rdi + 0x10]
cmp rdx, rax
ja 0x1400a2ee2
mov qword [rdi + 0x10], rdx
cmp qword [rdi + 0x18], 0x10
jb 0x1400a2ed9
mov rax, qword [rdi]
jmp 0x1400a2edc
mov rax, rdi
mov byte [rax + rdx], 0
jmp 0x1400a2ef0
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.140019260
cmp qword [rdi + 0x18], 0x10
jb 0x1400a2efc
mov rax, qword [rdi]
jmp 0x1400a2eff
mov rax, rdi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400a2f68
mov r8, qword [rdi + 0x18]
cmp r8, 0x10
jb 0x1400a2f3b
mov rcx, qword [rdi]
jmp 0x1400a2f3e
mov rcx, rdi
mov rdx, qword [rdi + 0x10]
dec rdx
add rdx, rcx
cmp r8, 0x10
jb 0x1400a2f53
mov rax, qword [rdi]
jmp 0x1400a2f56
mov rax, rdi
sub rdx, rax
mov r8d, 1
mov rcx, rdi
call fcn.140019c90
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ca980
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400a3790
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r12, rcx
xor ebp, ebp
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0x48], ebp
lea rdx, str.System
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov r14, rax
test rax, rax
je 0x1400a3932
mov qword [rsp + 0x50], rax
mov r15d, 0x10000
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400a391a
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 9]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x1400a3864
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400a38ba
mov eax, dword [rsp + 0x48]
mov r15d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400a38ae
jmp 0x1400a3810
mov rdi, rbx
mov esi, dword [rsp + 0x4c]
add rsi, rbx
cmp rbx, rsi
jae 0x1400a3810
nop dword [rax]
nop word [rax + rax]
lea rdx, [rdi + 0x38]
lea rcx, str.EventLog
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400a389f
movzx eax, word [rdi + 0x14]
cmp eax, 0x1775
je 0x1400a38d6
mov eax, dword [rdi]
add rdi, rax
cmp rdi, rsi
jb 0x1400a3880
jmp 0x1400a3810
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rbp
test rbx, rbx
je 0x1400a38c9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor al, al
jmp 0x1400a3934
mov r8d, dword [rdi + 0xc]
lea rdx, [0x14012256c]
lea rcx, [rsp + 0x60]
call fcn.1400a3730
cmp byte [rsp + 0x60], 0
je 0x1400a3909
lea rax, [rsp + 0x60]
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rax + rbp], 0
jne 0x1400a3900
mov r8, rbp
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140019090
nop
test rbx, rbx
je 0x1400a3929
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a87f0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx + 0xc], 0
mov rbx, rcx
jne 0x1400a8837
mov ecx, dword [0x1401ae854]
test ecx, ecx
jne 0x1400a8827
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x48]
xor edx, edx
mov eax, 0x20
cmp ecx, 1
cmova eax, edx
mov dword [rbx + 0xc], eax
mov eax, dword [rbx + 0xc]
cmp eax, 8
jb 0x1400a88a3
cmp eax, 0x20
jae 0x1400a8848
pause
jmp 0x1400a88a3
jne 0x1400a887e
call fcn.1400a8530
mov ecx, 9
mov dword [rbx + 8], eax
call fcn.1400a8690
lea rcx, [rsp + 0x20]
call rax
test eax, eax
jne 0x1400a8874
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov qword [rbx], rax
jmp 0x1400a88a3
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
jmp 0x1400a88a3
mov rcx, rbx
call fcn.1400a8750
test al, al
je 0x1400a8898
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x1400a88a3
xor ecx, ecx
jmp 0x1400a889d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc dword [rbx + 0xc]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x60
pop rbx
ret
Function at 0x1400aedf0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1c8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rsi, r9
mov rbx, r8
mov r12, rdx
mov rdi, rcx
mov r14, qword [rsp + 0x228]
xor ecx, ecx
mov qword [r14], rcx
test rdx, rdx
je 0x1400af077
test r9, r9
je 0x1400af077
test rbx, rbx
je 0x1400af077
cmp qword [rsp + 0x220], rcx
jbe 0x1400af077
cmp qword [rdi + 0x10], rcx
jne 0x1400aee74
lea r8d, [rcx + 0x12]
lea rdx, str.Public_key_is_null
jmp 0x1400af084
mov qword [r14], rcx
mov dword [rsp + 0x1a4], ebx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x1a4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1400aef46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1a0], eax
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400ae650
mov rbx, rax
lea rdx, str.CryptEncrypt_failed:__1_x:__2_
lea rcx, [rsp + 0x90]
call fcn.14009f420
nop
lea rdx, [rsp + 0x1a0]
mov rcx, rax
call fcn.1400b1060
mov rcx, rax
mov rdx, rbx
call fcn.1400a0630
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400b1030
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.1400a2db0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022800
nop
lea rcx, [rsp + 0x90]
call fcn.14009caf0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022800
jmp 0x1400af08d
cmp qword [rsp + 0x220], rbx
jb 0x1400af068
mov r15d, dword [rsp + 0x1a4]
mov r8d, r15d
cmp qword [rsp + 0x220], r15
jb 0x1400af068
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x1a8], ebx
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1400af052
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1a0], eax
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400ae650
mov rbx, rax
lea rdx, str.CryptEncrypt_failed:__1_x:__2_
lea rcx, [rsp + 0x90]
call fcn.14009f420
nop
lea rdx, [rsp + 0x1a0]
mov rcx, rax
call fcn.1400b1060
mov rcx, rax
mov rdx, rbx
call fcn.1400a0630
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400b1030
lea rcx, [rdi + 0x38]
mov rdx, rax
call fcn.1400a2db0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022800
nop
lea rcx, [rsp + 0x90]
call fcn.14009caf0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022800
jmp 0x1400af08d
mov edx, dword [rsp + 0x1a4]
mov qword [r14], rdx
mov rcx, rsi
call fcn.1400ae740
mov al, 1
jmp 0x1400af08f
mov r8d, 0x18
lea rdx, str.Insufficient_buffer_size
jmp 0x1400af084
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Invalid_input_argument
lea rcx, [rdi + 0x38]
call fcn.140022880
xor al, al
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x1c8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret