joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x10], r9
mov rdi, r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 8]
mov rbx, rdx
xor esi, esi
mov rdx, rax
mov dword [rsp + 0x40], esi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
mov edx, eax
test ecx, ecx
je 0x140007f55
cmp ecx, 2
jbe 0x140007f6a
cmp ecx, 7
jne 0x140007f55
test byte [rdi], 1
jne 0x140007f55
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140007f55
test rbx, rbx
je 0x140007f80
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140007f55
cmp word [rbx + rax*2 - 4], si
je 0x140007f80
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140007f55
test rbx, rbx
je 0x140007f80
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140007f55
mov eax, edx
jmp 0x140007f5a
Function at 0x140009668
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r15, 0xffffffffffffffff
mov r12, rdx
mov rdi, r15
xor r13d, r13d
lea ecx, [r15 + 3]
lea edx, [rcx - 1]
mov qword [r11 - 0x40], rcx
lea r8d, [r15 + 7]
call qword [sym.imp.WS2_32.dll_socket]
lea r14d, [r15 + 0x11]
mov rsi, rax
cmp rax, r15
je 0x1400096e7
mov r8d, r14d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp eax, r15d
je 0x1400096de
mov rdi, rsi
jmp 0x1400096ef
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test ebx, ebx
jne 0x14000973a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x140009731
mov rcx, r14
call fcn.14000c058
mov rsi, rax
test rax, rax
jne 0x140009772
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c6d0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140014b68]
mov ecx, dword [0x140014b6c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x1400097ff
cmp edi, ecx
jne 0x1400097e5
cmp edi, 0x3fffffff
jg 0x1400097ff
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x1400097ff
test ecx, ecx
lea r14d, [rdi + rdi]
mov rcx, qword [0x140014b60]
mov eax, 1
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
mov rcx, rax
test rax, rax
je 0x1400097ff
mov dword [0x140014b6c], r14d
mov qword [0x140014b60], rax
jmp 0x1400097ec
mov rcx, qword [0x140014b60]
lea rdx, [rcx + rdi*8]
mov dword [0x140014b68], r15d
test rdx, rdx
je 0x1400097ff
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x14000973a
Function at 0x14000a340
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
and dword [rax + 0x18], 0
mov r14d, edx
xor edi, edi
mov rbx, rcx
mov ebp, 0xff
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000a36d
shr edi, 1
xor esi, esi
mov dword [rsp + 0x68], esi
mov edx, 4
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x14000a3b2
mov eax, dword [rsp + 0x70]
and eax, edi
mov dword [rsp + 0x70], eax
cmp eax, 0x3ff
jbe 0x14000a3ac
add ebp, 0xffffffff
je 0x14000a3b2
jmp 0x14000a380
mov esi, eax
mov dword [rsp + 0x68], eax
test r14d, r14d
je 0x14000a3d7
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000a3cd
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14000eb40]
mov rcx, rbx
call fcn.14000a448
jmp 0x14000a432
mov rcx, qword [rbx]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rbx
call fcn.14000be30
test eax, eax
jne 0x14000a3cd
lock inc dword [rbx + 0x64]
mov rcx, qword [rbx + 0x10]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rbx
call fcn.14000be30
test eax, eax
je 0x14000a432
mov rcx, rbx
call fcn.14000a448
test eax, eax
je 0x14000a432
mov rcx, rbx
call fcn.14000a5b4
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a5b4
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14000a618
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x18], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000a5ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000a613
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000a668
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], 1
mov r8d, 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000a651
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000a664
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x14000a67c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rbx, rcx
test edx, edx
jne 0x14000a7fa
test r8d, r8d
je 0x14000a7fa
mov r15, qword [r9 + 0x28]
lea rsi, [rcx + 0x10]
cmp r15, 1
mov r14, rsi
cmove r14, rcx
cmovne rsi, rcx
xor ebp, ebp
cmp r15, 1
sete bpl
inc rbp
cmp r15, 1
jne 0x14000a6d8
cmp dword [rcx + 0x38], 2
je 0x14000a6e4
cmp r15, 2
jne 0x14000a726
cmp dword [rcx + 0x38], 1
jne 0x14000a726
xor eax, eax
cmp dword [r9 + 0x68], r8d
jne 0x14000a6f1
lea ecx, [rax + 2]
jmp 0x14000a6fe
cmp dword [r14 + 8], 2
mov ecx, 1
setne al
mov dword [r14 + 8], ecx
test eax, eax
je 0x14000a726
lea rdx, [r9 + 0x78]
mov rcx, rbx
mov r9d, dword [r9 + 0x68]
lea r8, [rsp + 0x80]
call fcn.14000a894
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x14000a77f
cmp qword [rsi], 0xffffffffffffffff
je 0x14000a77f
lock inc dword [rbx + 0x64]
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
call fcn.14000bf48
test eax, eax
je 0x14000a787
mov rcx, rbx
call fcn.14000a448
mov rcx, rbx
call fcn.14000a448
test eax, eax
je 0x14000a772
mov rcx, rbx
call fcn.14000a5b4
mov rcx, rdi
call fcn.14000a040
jmp 0x14000a816
mov rcx, rdi
call fcn.14000a040
cmp qword [r14], 0xffffffffffffffff
je 0x14000a802
and dword [rsp + 0x78], 0
mov ebp, 0xff
xor edi, edi
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000a79e
shr edi, 1
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x14000a7db
mov eax, dword [rsp + 0x78]
and eax, edi
mov dword [rsp + 0x78], eax
cmp eax, 0x3ff
jbe 0x14000a7d9
add ebp, 0xffffffff
je 0x14000a7db
jmp 0x14000a7ad
mov esi, eax
mov rcx, qword [r14]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rbx
call fcn.14000be30
test eax, eax
je 0x14000a816
jmp 0x14000a802
mov rcx, rdi
call fcn.14000a040
mov rcx, rbx
call fcn.14000a448
test eax, eax
je 0x14000a816
mov rcx, rbx
call fcn.14000a5b4
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b640
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov dword [rax + 0x10], r12d
mov rbp, rcx
mov word [rax + 0x18], r12w
cmp edx, 0xc0000120
je 0x14000b7fa
cmp dword [rcx + 0x2c], r12d
jne 0x14000b7fa
mov rdi, qword [r9 + 0x10]
or rsi, 0xffffffffffffffff
test edx, edx
je 0x14000b6d0
add edx, 0xffffd8ca
cmp edx, 0x3f
ja 0x14000b7dd
movabs rcx, 0x8000000000519001
bt rcx, rdx
jae 0x14000b7dd
or rsi, rsi
cmp rdi, rsi
je 0x14000b6c3
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbp
call fcn.14000b268
jmp 0x14000b811
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
call fcn.14000b3f0
test eax, eax
js 0x14000b7cc
cmp dword [rsp + 0x78], r12d
je 0x14000b7cc
lea r9, [rbp + 0x10]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0xa0
call fcn.14000c058
mov r14, rax
test rax, rax
je 0x14000b781
mov qword [rax], rsi
lea rcx, [rax + 0x68]
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x90], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov dword [r14 + 0x98], r12d
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov dword [r14 + 0x3c], r12d
mov word [r14 + 0x44], r12w
mov word [r14 + 0x20], r12w
mov dword [r14 + 0x64], r12d
mov qword [r14 + 0x30], r12
jmp 0x14000b784
mov r14, r12
test r14, r14
je 0x14000b7cc
mov eax, dword [rsp + 0x30]
mov rdx, rdi
movzx r9d, word [rsp + 0x80]
mov rcx, r14
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14000a130
test eax, eax
js 0x14000b7da
xor r8d, r8d
lea rcx, [0x140014b70]
mov rdx, r14
call fcn.14000affc
test eax, eax
je 0x14000b7da
inc dword [0x140014ba0]
jmp 0x14000b7da
cmp rdi, rsi
je 0x14000b7da
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, rsi
mov rcx, qword [rbp + 0x10]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call fcn.14000b888
test eax, eax
je 0x14000b819
jmp 0x14000b6b5
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14000b809
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, rbp
call fcn.14000b834
mov rcx, r15
call fcn.14000a040
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000bb8c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r13
push r15
sub rsp, 0xd0
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov esi, ecx
mov rdi, r8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_ntohs]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov edx, 1
xor r15d, r15d
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea r13d, [rdx + 1]
mov ecx, r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000bc0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14000bcac
xor r8d, r8d
lea rdx, [0x14000bce0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_BindIoCompletionCallback]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, 0xffffffff
je 0x14000bcb0
xor eax, eax
mov dword [rsp + 0x40], r13d
mov r8d, 0x80
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x44], esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000bcb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x14000bcb5
mov qword [rdi], rbx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000c6d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r13
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000bd58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000bd7d
test rsi, rsi
je 0x14000bd6e
cmp word [rsp + 0x30], 0x17
mov eax, dword [rsp + 0x34]
cmove eax, dword [rsp + 0x38]
mov dword [rsi], eax
test rdi, rdi
je 0x14000bd7b
movzx eax, word [rsp + 0x32]
mov word [rdi], ax
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000c6d0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000be30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140014c30], 0
mov esi, r8d
mov rbp, rcx
je 0x14000be5d
mov eax, 0x3eb
jmp 0x14000bf33
cmp esi, 0x240
ja 0x14000be89
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2b8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000beb5
and dword [rax], 0
jmp 0x14000beb5
lea eax, [r8 + 0x78]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000beb5
mov dword [rax], 1
mov dword [rax + 0x68], esi
test rdi, rdi
jne 0x14000bebf
lea eax, [rdi + 8]
jmp 0x14000bf33
xor edx, edx
lea rbx, [rdi + 0x30]
mov rcx, rbx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
and dword [rdi + 0x50], 0
lea rax, [0x14000aec0]
mov qword [rdi + 0x18], rax
lea rdx, [rdi + 0x78]
mov rax, qword [rsp + 0x68]
lea r9, [0x140014a04]
mov qword [rdi + 0x20], rax
mov r8d, esi
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x10], rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14000bf2f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x14000bf2f
mov rcx, rdi
call fcn.14000a040
jmp 0x14000bf31
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000bf48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140014c30], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x14000bf75
mov eax, 0x3eb
jmp 0x14000bfd7
lea rbx, [rdx + 0x30]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [0x14000af20]
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rax
lea rdx, [rdi + 0x78]
mov rax, qword [rsp + 0x68]
lea r9, [0x140014a04]
mov qword [rdi + 0x20], rax
mov r8d, ebp
mov rax, qword [rsp + 0x70]
mov rcx, rsi
mov qword [rdi + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14000bfd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000bfd7
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000caf0
add rsp, 0x28
jmp 0x14000c43c
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
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 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002050
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
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a4a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000a551
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140010814
cmp rax, 1
jne 0x14000a587
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a52d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a520
cmp rcx, 1
jb 0x14000a587
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a4f0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c790
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000ffb4
int3
Function at 0x14000a610
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a655
xor al, al
jmp 0x14000a6a2
cmp word [rbx], 0
je 0x14000a66d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a660
cmp word [rsp + 0x30], 0
je 0x14000a69b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a6c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a680
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c790
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000ffb4
int3