joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801aef64
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x18035a8c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1802647a0]
mov rbp, rcx
call fcn.1801bd3e8
xor edi, edi
test rax, rax
je 0x1801af04a
mov ebx, edi
call fcn.1801a2bf4
mov r14d, dword [rax]
call fcn.1801a2bf4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1801bd334
mov rsi, rax
test rax, rax
je 0x1801aefdb
call fcn.1801a2bf4
mov dword [rax], r14d
jmp 0x1801af005
call fcn.1801a2bf4
cmp dword [rax], 0x22
jne 0x1801af042
call fcn.1801a2bf4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1801bd334
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1801af042
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801af009
cmp rax, 3
je 0x1801af024
mov rcx, rsi
call fcn.1801aeec0
test al, al
je 0x1801af035
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1801af035
mov dil, 1
mov rcx, rbx
call fcn.1801a07bc
mov al, dil
jmp 0x1801af04c
mov rcx, rbx
call fcn.1801a07bc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180199ad0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1801af178
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1801af197
call fcn.1801bd814
jmp 0x1801af24c
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1801a27c4
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1801af1e2
cmp byte [rbp - 0x38], 0
je 0x1801af217
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1801af217
call fcn.1801b5c9c
test eax, eax
jne 0x1801af203
cmp byte [rbp - 0x38], al
je 0x1801af1fb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1801af217
cmp byte [rbp - 0x38], 0
je 0x1801af214
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1801aae60
test eax, eax
je 0x1801af230
or ebx, 0xffffffff
jmp 0x1801af23b
mov rcx, qword [rbp - 0x20]
call fcn.1801bd814
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1801af24a
mov rcx, qword [rbp - 0x20]
call fcn.1801b52f4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1801b7e34
Capabilities:
Get file size

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

Function at 0x1801b7f7c
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, [0x18035f290]
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 0x1801b7fd3
cmp word [rdx], r13w
jne 0x1801b7fd3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801b7fd8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801b80fd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801b811e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801b8011
mov rdx, r9
mov word [rbx], cx
jmp 0x1801b8038
cmp r9, r8
jae 0x1801b8048
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 0x1801b7ff2
jmp 0x1801b80fd
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 0x1801b80f2
cmp dword [rsp + 0x80], esi
je 0x1801b80f2
lea r8, [0x18035f290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801b80ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801b809a
mov word [rbx], r13w
jmp 0x1801b80fa
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 0x1801b80a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801b80fa
cmp word [rsp + 0x70], r13w
jne 0x1801b80d7
cmp rbx, r14
je 0x1801b8094
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801b8be4
cmp word [rsp + 0x70], r13w
je 0x1801b80fd
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, [0x18035f290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801b80f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801b80fd
Function at 0x1801bab90
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801babb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801a2b68
or eax, 0xffffffff
jmp 0x1801babb2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801bfbe0
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 0x1801bfc10
xor eax, eax
jmp 0x1801bfcd3
mov rbp, rbx
cmp word [rax], si
je 0x1801bfc35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801bfc1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801bfc18
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.1801bcbd4
movsxd r14, eax
test eax, eax
jne 0x1801bfc73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801bfc09
mov rcx, r14
call fcn.1801b9604
mov rdi, rax
test rax, rax
jne 0x1801bfc8c
xor ecx, ecx
call fcn.1801b52f4
jmp 0x1801bfc68
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.1801bcbd4
test eax, eax
jne 0x1801bfcbd
mov rcx, rdi
call fcn.1801b52f4
jmp 0x1801bfcc7
xor ecx, ecx
call fcn.1801b52f4
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 0x1801bfcf0
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 0x1801bfd77
mov rsi, rbx
cmp word [rax], bp
je 0x1801bfd36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801bfd20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801bfd1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801b9604
mov rdi, rax
test rax, rax
je 0x1801bfd64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801c8cf0
mov rbp, rdi
xor ecx, ecx
call fcn.1801b52f4
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 0x1801c2e30
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.1801b3368
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 0x1801c2ed1
cmp ebx, dword [rsp + 0x30]
je 0x1801c2eca
test esi, esi
je 0x1801c2eca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801c2ea5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801c2eb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801c2e8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801c2eb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801c2ed3
mov eax, 1
jmp 0x1801c2ed3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801c62cc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18035a8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1801c6316
call fcn.1801a2bd4
mov dword [rax], 0xf
call fcn.1801a2bf4
mov dword [rax], 0xd
call fcn.1801a069c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180199ad0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1801c6321
lea eax, [rbx + 1]
jmp 0x1801c6303
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1801c6301
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1801c6303
Function at 0x1801c6fdc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1801a27c4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1801c7066
cmp byte [rbp - 0x21], r15b
je 0x1801c7061
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1801c709c
call fcn.1801b5c9c
test eax, eax
jne 0x1801c7088
cmp byte [rbp - 0x21], r15b
je 0x1801c7080
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1801c709c
cmp byte [rbp - 0x21], r15b
je 0x1801c7099
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1801aae60
test eax, eax
jne 0x1801c713c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1801a27c4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1801c70db
cmp byte [rbp - 0x21], r15b
je 0x1801c7110
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1801c7110
call fcn.1801b5c9c
test eax, eax
jne 0x1801c70fc
cmp byte [rbp - 0x21], r15b
je 0x1801c70f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1801c7110
cmp byte [rbp - 0x21], r15b
je 0x1801c710d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1801aae60
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1801c713c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1801c713f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1801c714d
mov rcx, rdi
call fcn.1801b52f4
cmp byte [rbp + 0x3f], r15b
je 0x1801c715c
mov rcx, qword [rbp + 0x27]
call fcn.1801b52f4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1801c7fd4
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.1801b8be4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801b8be4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801c8124
cmp rax, 0xffffffffffffffff
je 0x1801c8124
xor edi, edi
test rbp, rbp
jle 0x1801c80cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801b5904
mov rbx, rax
test rax, rax
jne 0x1801c805c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801c80c5
mov edx, 0x8000
mov ecx, r14d
call fcn.1801c7e58
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.1801b78cc
cmp eax, 0xffffffff
je 0x1801c80a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801c806c
mov edx, r15d
mov ecx, r14d
call fcn.1801c7e58
jmp 0x1801c80c5
cmp byte [rsi + 0x38], dil
je 0x1801c80bc
cmp dword [rsi + 0x34], 5
jne 0x1801c80bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1801c80c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801b52f4
jmp 0x1801c8138
jns 0x1801c8138
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801b8be4
cmp rax, 0xffffffffffffffff
jne 0x1801c80f0
cmp byte [rsi + 0x30], dil
je 0x1801c8138
mov edi, dword [rsi + 0x2c]
jmp 0x1801c8138
mov ecx, r14d
call fcn.1801ae5c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801c8138
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 0x1801c8138
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801c8131
mov eax, dword [rsi + 0x2c]
jmp 0x1801c8136
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801b8be4
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 0x1801c8740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801c8768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801c8768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c30
xor al, al
jmp 0x140012cb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c43
xor al, al
jmp 0x140012cb1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012c6d
xor al, al
jmp 0x140012cb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c81
xor al, al
jmp 0x140012cb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012c93
xor al, al
jmp 0x140012cb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012caf
xor al, al
jmp 0x140012cb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400013f0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x1020
call fcn.14004d090
sub rsp, rax
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x1010], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
movsxd rax, dword [rcx]
cmp eax, 0xffffffff
je 0x140001588
cmp byte [rcx + 4], 0
je 0x140001588
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140001448
mov rdx, qword [r8]
mov rcx, rax
xor r9d, r9d
mov r8d, dword [r8 + 0x10]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbp, dword [rsi]
cmp eax, 0xffffffff
je 0x140001559
xor edx, edx
mov r8d, 0xfb8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rcx, rbp
xor r9d, r9d
mov r8d, 0xfb8
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jle 0x140001588
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], recv
mov byte [rsp + 0x20], dil
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], dil
jne 0x1400014c0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1400021e0
nop
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov r8, rsi
cmp qword [rsp + 0x30], rsi
cmovb r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400021e0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400015ae
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001552
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001552
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c11c
jmp 0x1400015ae
cmp ebp, 0xffffffff
je 0x140001588
mov rcx, rbp
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x14036e500]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400015d4
movsxd rcx, dword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], dil
xor r8d, r8d
lea rdx, [0x14004fad0]
mov rcx, rbx
call fcn.1400021e0
mov rax, rbx
mov rcx, qword [rsp + 0x1010]
xor rcx, rsp
call fcn.14004be70
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1020
pop rdi
pop rsi
pop rbp
ret
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400013f0
jmp 0x1400015ae

Function at 0x140001660
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x140001683
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x30]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x140001670
mov byte [rcx + 6], 0
mov rax, rcx
ret
Function at 0x140002070
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x20], rbx
cmp byte [rcx + 0xa], r8b
je 0x1400020a3
mov ecx, r8d
nop dword [rax]
lea eax, [rcx - 0x30]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 9
jb 0x140002090
mov byte [rdx + 0xa], r8b
lea rcx, [rdx + 9]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], recv
mov byte [rbx], r8b
cmp rdx, rcx
je 0x1400020cc
mov r8d, 9
mov rcx, rbx
call fcn.1400021e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140003920
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x20], rdx
mov byte [rsp + 0x30], 0
mov qword [r11 - 0x44], 0
mov dword [rsp + 0x7c], 0x67452301
mov dword [r11 - 0x38], 0xefcdab89
mov dword [r11 - 0x34], 0x98badcfe
mov dword [r11 - 0x30], 0x10325476
cmp qword [rdx + 0x18], 0x10
jb 0x140003988
mov rdx, qword [rdx]
mov r8d, dword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400034d0
lea rcx, [rsp + 0x30]
call fcn.1400035b0
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140003820
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400039e4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400039df
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a1b
mov rcx, r8
call fcn.14004c11c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14004be70
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, [0x140072fe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003c1c
mov dword [rsp + 0x40], 0x3ff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Productid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r14w
jne 0x140003b00
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006570
nop
lea rcx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
lea rsi, [rcx + rax*2]
lea rdi, [rsp + 0x48]
cmovae rdi, r8
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rax, rsi
sub rax, rdi
sar rax, 1
cmp rax, 0xf
jbe 0x140003b7d
mov rdx, rax
mov rcx, rbx
call fcn.140006a30
mov qword [rbx + 0x10], r14
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
cmp rdi, rsi
je 0x140003bdb
nop word [rax + rax]
movzx r9d, byte [rdi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140003bc0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140003bb5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003bc8
mov rcx, rbx
call fcn.1400068d0
add rdi, 2
cmp rdi, rsi
jne 0x140003b90
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140003c19
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140003c11
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14004c11c
mov rax, rbx
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14004be70
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret