joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180178854
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180399ca0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801788ab
cmp word [rdx], r13w
jne 0x1801788ab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801788b0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801789d5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801789f6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801788e9
mov rdx, r9
mov word [rbx], cx
jmp 0x180178910
cmp r9, r8
jae 0x180178920
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801788ca
jmp 0x1801789d5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801789ca
cmp dword [rsp + 0x80], esi
je 0x1801789ca
lea r8, [0x180399ca0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801789a2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180178972
mov word [rbx], r13w
jmp 0x1801789d2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18017897f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801789d2
cmp word [rsp + 0x70], r13w
jne 0x1801789af
cmp rbx, r14
je 0x18017896c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180176814
cmp word [rsp + 0x70], r13w
je 0x1801789d5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180399ca0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801789cf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801789d5
Function at 0x18017b510
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18017b526
mov al, 1
jmp 0x18017b586
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18017b537
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18017b584
mov ecx, dword [rcx + 0x18]
nop
call fcn.180183360
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18017b584
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18017b584
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18017b584
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18017b586
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18017cc88
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18017cca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18017157c
or eax, 0xffffffff
jmp 0x18017ccaa
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801816cc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1801816fc
xor eax, eax
jmp 0x1801817bf
mov rbp, rbx
cmp word [rax], si
je 0x180181721
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180181708
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180181704
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18017f688
movsxd r14, eax
test eax, eax
jne 0x18018175f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801816f5
mov rcx, r14
call fcn.18017cb98
mov rdi, rax
test rax, rax
jne 0x180181778
xor ecx, ecx
call fcn.180179538
jmp 0x180181754
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18017f688
test eax, eax
jne 0x1801817a9
mov rcx, rdi
call fcn.180179538
jmp 0x1801817b3
xor ecx, ecx
call fcn.180179538
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1801817dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x180181863
mov rsi, rbx
cmp word [rax], bp
je 0x180181822
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18018180c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180181808
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18017cb98
mov rdi, rax
test rax, rax
je 0x180181850
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18015f7f0
mov rbp, rdi
xor ecx, ecx
call fcn.180179538
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180185a0c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180176c74
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180185aad
cmp ebx, dword [rsp + 0x30]
je 0x180185aa6
test esi, esi
je 0x180185aa6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180185a81
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180185a8e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180185a6b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180185a92
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180185aaf
mov eax, 1
jmp 0x180185aaf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180189a48
Capabilities:
Clear file content

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
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180176814
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180176814
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180189b98
cmp rax, 0xffffffffffffffff
je 0x180189b98
xor edi, edi
test rbp, rbp
jle 0x180189b43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801794c0
mov rbx, rax
test rax, rax
jne 0x180189ad0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180189b39
mov edx, 0x8000
mov ecx, r14d
call fcn.1801898cc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18017ad0c
cmp eax, 0xffffffff
je 0x180189b19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180189ae0
mov edx, r15d
mov ecx, r14d
call fcn.1801898cc
jmp 0x180189b39
cmp byte [rsi + 0x38], dil
je 0x180189b30
cmp dword [rsi + 0x34], 5
jne 0x180189b30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180189b39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180179538
jmp 0x180189bac
jns 0x180189bac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180176814
cmp rax, 0xffffffffffffffff
jne 0x180189b64
cmp byte [rsi + 0x30], dil
je 0x180189bac
mov edi, dword [rsi + 0x2c]
jmp 0x180189bac
mov ecx, r14d
call fcn.180183360
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180189bac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180189bac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180189ba5
mov eax, dword [rsi + 0x2c]
jmp 0x180189baa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180176814
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001454
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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, 0x10
movzx esi, byte [rcx + 0xc0]
mov r11, rdx
mov rdi, rcx
xor bl, bl
mov r12d, 4
lea r15d, [rsi*4 - 4]
movzx r8d, bl
mov rdx, r11
mov rcx, r12
shl r8, 2
sub r8, r11
add r8, rdi
mov eax, dword [r8 + rdx]
xor dword [rdx], eax
add rdx, r12
dec rcx
jne 0x1400014a2
mov rcx, r11
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rcx]
lea r8, str.cw
mov al, byte [rax + r8]
mov byte [rcx], al
inc rcx
dec rdx
jne 0x1400014b8
movups xmm0, xmmword [r11]
mov r8, r11
movdqu xmmword [rsp], xmm0
movzx eax, dl
inc dl
lea ecx, [rax + rax*4]
and ecx, 0xf
mov al, byte [rsp + rcx]
mov byte [r8], al
inc r8
cmp dl, 0x10
jb 0x1400014dc
movzx eax, bl
cmp eax, r15d
jge 0x140001579
mov r14, r11
mov rbp, r12
mov r10d, dword [r14]
mov ecx, r10d
mov r9d, r10d
shr ecx, 7
rol r9d, 0x10
lea edx, [r10 + r10]
mov eax, ecx
and ecx, 1
xor edx, r10d
and eax, 0x1010101
shl edx, 0x18
imul r8d, eax, 0x1b
mov eax, r10d
rol eax, 8
xor r9d, eax
imul eax, ecx, 0x1b000000
mov ecx, r8d
xor ecx, r10d
xor edx, eax
mov eax, r10d
shr ecx, 1
and eax, 0x7f7f7f00
and r10d, 0xff7f7f7f
xor ecx, eax
add r10d, r10d
shr ecx, 7
or edx, ecx
xor r9d, edx
xor r9d, r10d
xor r9d, r8d
mov dword [r14], r9d
add r14, r12
dec rbp
jne 0x140001503
add bl, r12b
jmp 0x14000148e
mov eax, esi
shl eax, 2
movsxd rcx, eax
lea rdx, [rdi + rcx*4]
mov rcx, r12
sub rdx, r11
mov eax, dword [rdx + r11]
xor dword [r11], eax
add r11, r12
dec rcx
jne 0x14000158b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x10
pop r15
pop r14
pop r12
ret

Function at 0x1400015bc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x100
mov rsi, rdx
mov rdi, rcx
mov rbp, r8
lea rdx, [0x1400082c0]
lea rcx, [rsp + 0x30]
mov r9d, setsockopt
xor r8d, r8d
call fcn.14000135c
xor eax, eax
xor ebx, ebx
mov qword [rdi + rsi], rax
mov qword [rdi + rsi + 8], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov byte [rdi + rsi], 0x80
sub rdi, rax
lea rcx, [rsp + 0x20]
lea r8, [rdi + rbx]
mov edx, 4
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
dec rdx
jne 0x140001627
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140001454
add rbx, 0x10
cmp rbx, rsi
jbe 0x140001619
movups xmm0, xmmword [rsp + 0x20]
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
movdqu xmmword [rbp], xmm0
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001674
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov al, byte [r9]
mov rbx, qword [r9]
mov rbp, rcx
not al
lea rcx, [rbx + r8]
mov r14, r8
and al, 0xf
mov r15, rdx
mov rsi, r9
inc al
movzx edi, al
movzx edx, al
mov r8d, edi
call sub.msvcrt.dll_memset
add rbx, rdi
mov edi, 4
mov qword [rsi], rbx
test r15, r15
je 0x1400016dc
mov rcx, r14
sub r15, r14
mov edx, edi
mov eax, dword [r15 + rcx]
xor dword [rcx], eax
add rcx, rdi
dec rdx
jne 0x1400016ce
mov rdx, r14
mov rcx, rbp
call fcn.140001454
add rbx, 0xfffffffffffffff0
je 0x140001719
lea rdx, [r14 + 0x10]
mov r8, rdi
mov rcx, rdx
sub r14, rdx
mov eax, dword [r14 + rcx]
xor dword [rcx], eax
add rcx, rdi
dec r8
jne 0x1400016fa
mov rcx, rbp
mov r14, rdx
call fcn.140001454
sub rbx, 0x10
jne 0x1400016ed
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140001734
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx eax, byte [rcx + 0xc0]
mov rdi, rdx
mov rsi, rcx
shl eax, 2
mov r8, rdi
mov r9d, 4
cdqe
lea rdx, [rcx + rax*4]
sub rdx, rdi
mov eax, dword [rdx + r8]
xor dword [r8], eax
lea r8, [r8 + 4]
dec r9
jne 0x140001765
mov bl, byte [rcx + 0xc0]
dec bl
shl bl, 2
movups xmm0, xmmword [rdi]
xor dl, dl
mov r8, rdi
movdqu xmmword [rsp + 0x20], xmm0
movzx eax, dl
inc dl
mov ecx, eax
and ecx, 3
shl ecx, 2
sub eax, ecx
and eax, 0xf
mov al, byte [rsp + rax + 0x20]
mov byte [r8], al
inc r8
cmp dl, 0x10
jb 0x14000178e
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [rcx]
lea r8, [0x140008430]
mov al, byte [rax + r8]
mov byte [rcx], al
inc rcx
dec rdx
jne 0x1400017b7
movzx r8d, bl
mov rcx, rdi
mov edx, 4
shl r8, 2
sub r8, rdi
add r8, rsi
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
dec rdx
jne 0x1400017e5
test bl, bl
je 0x140001808
mov rcx, rdi
call fcn.140001060
add bl, 0xfc
jmp 0x140001780
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140001818
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rbx, [r9 - 0x10]
mov rdi, r8
mov rsi, rcx
add rbx, r8
cmp rbx, r8
jbe 0x140001864
mov rdx, rbx
mov rcx, rsi
call fcn.140001734
mov rdx, rbx
mov r8d, 4
mov eax, dword [rdx - 0x10]
xor dword [rdx], eax
lea rdx, [rdx + 4]
dec r8
jne 0x14000184d
sub rbx, 0x10
cmp rbx, rdi
ja 0x140001839
mov rdx, rbx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140001734
Function at 0x140001880
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rbp, rcx
mov rcx, qword [0x14000fce0]
mov rdi, r8
mov esi, edx
mov dword [rax + 0x20], 0x20
mov bl, 1
test rcx, rcx
jne 0x1400018dc
lea r9d, [rcx + 0x18]
lea rcx, [0x14000fce0]
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x28], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rcx, qword [0x14000fce0]
jmp 0x1400018de
mov al, bl
test al, al
je 0x14000193a
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000193a
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000193a
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000193c
xor bl, bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000194c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001a5c
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov rdx, qword [0x14000fe88]
and qword [0x14000fd48], 0
xor edi, edi
cmp byte [rdx], 0x2d
mov dword [rbp + 0x168], 0xfe
jne 0x140001b03
lea r8, [rbp + 0x168]
lea rdx, [rbp + 0x30]
lea ecx, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x140001adb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400020e8
lea rcx, str.Fatal:_Could_not_determine_computers_DNS_name:__s_n
mov rdx, rax
call fcn.140003e6c
xor eax, eax
jmp 0x140001c56
mov eax, dword [0x140008830]
movsd xmm0, qword [str._vlmcs._tcp.]
mov r8d, 0xf2
mov dword [rsp + 0x38], eax
mov al, byte [0x140008834]
lea rdx, [rbp + 0x30]
mov byte [rsp + 0x3c], al
jmp 0x140001b1b
mov eax, dword [0x140008840]
movsd xmm0, qword [str._vlmcs._tcp]
mov r8d, 0xf3
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
movsd qword [rsp + 0x30], xmm0
call qword [sym.imp.msvcrt.dll_strncat]
and qword [rsp + 0x28], rdi
lea rax, [rbp + 0x160]
mov r12d, 0x21
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.DNSAPI.dll_DnsQuery_UTF8]
test eax, eax
je 0x140001b7b
mov ecx, eax
call fcn.1400020e8
lea rdx, [rsp + 0x30]
lea rcx, str.Fatal:_DNS_query_to__s_failed:__s_n
mov r8, rax
call fcn.140003e6c
jmp 0x140001ad4
mov rbx, qword [rbp + 0x160]
jmp 0x140001ba7
mov eax, dword [rbx + 0x14]
and al, 3
cmp al, 1
jne 0x140001ba4
cmp word [rbx + 0x10], r12w
je 0x140001ba2
lea rcx, str.Warning:_DNS_server_returned_non_SRV_record_n
call fcn.140003e6c
jmp 0x140001ba4
inc edi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001b84
movsxd rcx, edi
shl rcx, 3
call fcn.140002124
mov rdi, qword [rbp + 0x160]
xor esi, esi
mov qword [0x14000fd48], rax
test rdi, rdi
je 0x140001c46
xor r14d, r14d
cmp word [rdi + 0x10], r12w
jne 0x140001c37
mov ecx, 0x10c
call fcn.140002124
xor edx, edx
mov r8d, 0x10c
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memset
movzx edx, word [rdi + 0x2c]
mov r9, qword [rdi + 0x20]
mov dword [rsp + 0x20], edx
lea rcx, [rbx + 8]
lea r8, str._s:_hu
mov edx, 0x104
call qword [sym.imp.msvcrt.dll__snprintf]
movzx ecx, word [rdi + 0x28]
inc esi
mov word [rbx + 4], cx
movzx ecx, word [rdi + 0x2a]
mov word [rbx + 6], cx
mov rax, qword [0x14000fd48]
mov qword [r14 + rax], rbx
add r14, 8
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140001bd0
mov rdi, qword [rbp + 0x160]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000204c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14000fed8]
mov edi, r8d
mov esi, edx
mov bpl, cl
call qword [sym.imp.msvcrt.dll__errno]
lea rdx, [rsp + 0x48]
and dword [rax], 0
mov r8d, 0xa
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strtoi64]
mov rbx, rax
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0
jne 0x1400020c5
cmp rbx, rsi
jl 0x1400020c5
cmp rbx, rdi
jg 0x1400020c5
mov rcx, qword [rsp + 0x48]
cmp byte [rcx], 0
jne 0x1400020c5
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Fatal:_Option____c__must_be_numeric_between__u_and__u._n
movsx edx, bpl
mov r9d, edi
mov r8d, esi
call fcn.140003dec
mov ecx, 0x57
call qword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x140002124
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
jne 0x14000214b
lea rcx, str.Fatal:_Out_of_memory
call fcn.140003e6c
mov ecx, recv
call qword [sym.imp.msvcrt.dll_exit]
int3
add rsp, 0x28
ret

Function at 0x140002350
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x338
mov rax, qword [0x14000fd00]
test rax, rax
jne 0x1400023bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x130]
mov r8d, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x130]
mov byte [rsp + 0x32f], 0
call qword [sym.imp.msvcrt.dll__strdup]
test rax, rax
jne 0x1400023b5
lea rcx, str.Fatal:_Out_of_memory
call fcn.140003e6c
mov ecx, recv
call qword [sym.imp.msvcrt.dll_exit]
int3
mov qword [0x14000fd00], rax
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rax
call qword [sym.imp.msvcrt.dll_strncpy]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, str._vlmcsd.kmd
lea rcx, [rsp + 0x20]
mov r8d, 0xf9
call qword [sym.imp.msvcrt.dll_strncat]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__strdup]
test rax, rax
jne 0x14000241b
lea rcx, str.Fatal:_Out_of_memory
call fcn.140003e6c
mov ecx, recv
call qword [sym.imp.msvcrt.dll_exit]
int3
mov qword [0x14000fd08], rax
add rsp, 0x338
ret
Function at 0x140002de0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
movabs r9, 0x22816889bd
mov rax, qword [rcx + rdi - 0x6c]
xor edx, edx
movsx r8, r8b
div r9
movabs rcx, 0x208cbab5ed
mov edx, 8
imul r8, r9
imul rax, rcx
movabs rcx, 0x3156cd5ac628477a
add rcx, rax
add rcx, r8
lea r8, [rbp - 0x19]
mov qword [rbp + 0x67], rcx
lea rcx, [rbp + 0x67]
call fcn.140001880
xor eax, eax
xor r14d, r14d
lea ebx, [rax + 0x20]
lea rcx, [rbp + 0xf]
xor edx, edx
mov r8d, ebx
mov dword [rbp - 0x39], 0x208
mov dword [rbp - 0x35], 0x6602
mov dword [rbp - 0x31], reloc.WS2_32.dll_recv
mov qword [rbp - 0x2d], rax
mov qword [rbp - 0x25], rax
mov qword [rbp + 0x6f], r14
mov qword [rbp + 0x67], r14
call sub.msvcrt.dll_memset
movups xmm0, xmmword [rbp - 9]
mov rcx, qword [0x14000fce0]
mov dword [rbp + 0x77], ebx
mov dword [rbp + 7], 0x800c
movdqu xmmword [rbp - 0x2d], xmm0
test rcx, rcx
jne 0x140002eca
lea r9d, [r14 + 0x18]
lea rcx, [0x14000fce0]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rcx, qword [0x14000fce0]
jmp 0x140002ecc
mov al, 1
test al, al
je 0x140002f73
xor r9d, r9d
lea rax, [rbp + 0x6f]
lea rdx, [rbp - 0x39]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x1c]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140002f73
mov r8, qword [rbp + 0x6f]
mov rcx, qword [0x14000fce0]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140002f73
mov rcx, qword [rbp + 0x67]
xor r9d, r9d
lea r8, [rbp + 7]
lea edx, [r9 + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x140002f73
mov rcx, qword [rbp + 0x67]
lea r8d, [rdi - 0x10]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140002f73
mov rcx, qword [rbp + 0x67]
lea r9, [rbp + 0x77]
lea r8, [rbp - 0x19]
mov edx, 2
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ebx, 1
test eax, eax
jne 0x140002f76
mov ebx, r14d
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140002f85
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140002f94
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test bl, bl
jne 0x140002f9c
xor al, al
jmp 0x140002fa7
movups xmm0, xmmword [rbp - 9]
mov al, 1
movups xmmword [rsi + rdi - 0x10], xmm0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret