joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400db2c0
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 [0x140144700]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401282c0]
mov rbp, rcx
call fcn.1400e4c44
xor edi, edi
test rax, rax
je 0x1400db3a6
mov ebx, edi
call fcn.1400d14c8
mov r14d, dword [rax]
call fcn.1400d14c8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400e4b90
mov rsi, rax
test rax, rax
je 0x1400db337
call fcn.1400d14c8
mov dword [rax], r14d
jmp 0x1400db361
call fcn.1400d14c8
cmp dword [rax], 0x22
jne 0x1400db39e
call fcn.1400d14c8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400e4b90
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400db39e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400db365
cmp rax, 3
je 0x1400db380
mov rcx, rsi
call fcn.1400db21c
test al, al
je 0x1400db391
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400db391
mov dil, 1
mov rcx, rbx
call fcn.1400d1718
mov al, dil
jmp 0x1400db3a8
mov rcx, rbx
call fcn.1400d1718
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c5ee0
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 0x1400dbf38
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400dbf6f
call fcn.1400d14c8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400ce630
xor eax, eax
jmp 0x1400dbffd
mov rdx, r9
mov rcx, r8
call fcn.1400dbed4
mov rbx, rax
test rax, rax
je 0x1400dbffa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400dbe00]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400dbfe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d143c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400dbfce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400dbfdd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e0708
jmp 0x1400dbffa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400dbff7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ddd18
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, [0x140146340]
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 0x1400ddd6f
cmp word [rdx], r13w
jne 0x1400ddd6f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ddd74
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400dde99
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ddeba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400dddad
mov rdx, r9
mov word [rbx], cx
jmp 0x1400dddd4
cmp r9, r8
jae 0x1400ddde4
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 0x1400ddd8e
jmp 0x1400dde99
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 0x1400dde8e
cmp dword [rsp + 0x80], esi
je 0x1400dde8e
lea r8, [0x140146340]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400dde66
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400dde36
mov word [rbx], r13w
jmp 0x1400dde96
mov ecx, reloc.WS2_32.dll_listen
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 0x1400dde43
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400dde96
cmp word [rsp + 0x70], r13w
jne 0x1400dde73
cmp rbx, r14
je 0x1400dde30
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400dc290
cmp word [rsp + 0x70], r13w
je 0x1400dde99
mov ecx, reloc.WS2_32.dll_listen
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, [0x140146340]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400dde93
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400dde99
Function at 0x1400e3bb0
Capabilities:
Get file size

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

Function at 0x1400e46d4
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.1400dc290
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400dc290
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e4824
cmp rax, 0xffffffffffffffff
je 0x1400e4824
xor edi, edi
test rbp, rbp
jle 0x1400e47cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e0690
mov rbx, rax
test rax, rax
jne 0x1400e475c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e47c5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400dd950
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.1400df0d0
cmp eax, 0xffffffff
je 0x1400e47a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e476c
mov edx, r15d
mov ecx, r14d
call fcn.1400dd950
jmp 0x1400e47c5
cmp byte [rsi + 0x38], dil
je 0x1400e47bc
cmp dword [rsi + 0x34], 5
jne 0x1400e47bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400e47c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e0708
jmp 0x1400e4838
jns 0x1400e4838
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400dc290
cmp rax, 0xffffffffffffffff
jne 0x1400e47f0
cmp byte [rsi + 0x30], dil
je 0x1400e4838
mov edi, dword [rsi + 0x2c]
jmp 0x1400e4838
mov ecx, r14d
call fcn.1400e45c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e4838
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400e4838
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e4831
mov eax, dword [rsi + 0x2c]
jmp 0x1400e4836
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400dc290
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 0x1400e80b4
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 0x1400e80e4
xor eax, eax
jmp 0x1400e81a7
mov rbp, rbx
cmp word [rax], si
je 0x1400e8109
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e80f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e80ec
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.1400e5070
movsxd r14, eax
test eax, eax
jne 0x1400e8147
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e80dd
mov rcx, r14
call fcn.1400e12ec
mov rdi, rax
test rax, rax
jne 0x1400e8160
xor ecx, ecx
call fcn.1400e0708
jmp 0x1400e813c
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.1400e5070
test eax, eax
jne 0x1400e8191
mov rcx, rdi
call fcn.1400e0708
jmp 0x1400e819b
xor ecx, ecx
call fcn.1400e0708
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 0x1400e81c4
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 0x1400e824b
mov rsi, rbx
cmp word [rax], bp
je 0x1400e820a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e81f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e81f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e12ec
mov rdi, rax
test rax, rax
je 0x1400e8238
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ef910
mov rbp, rdi
xor ecx, ecx
call fcn.1400e0708
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 0x1400e994c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e996c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d143c
or eax, 0xffffffff
jmp 0x1400e996e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ec2b8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140144700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ec302
call fcn.1400d14a8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400d14c8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400ce630
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c5ee0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ec30d
lea eax, [rbx + 1]
jmp 0x1400ec2ef
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 0x1400ec2ed
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ec2ef
Function at 0x1400ed754
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.1400d14e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ed7de
cmp byte [rbp - 0x21], r15b
je 0x1400ed7d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ed814
call fcn.1400e09b0
test eax, eax
jne 0x1400ed800
cmp byte [rbp - 0x21], r15b
je 0x1400ed7f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ed814
cmp byte [rbp - 0x21], r15b
je 0x1400ed811
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.1400d9d38
test eax, eax
jne 0x1400ed8b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d14e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ed853
cmp byte [rbp - 0x21], r15b
je 0x1400ed888
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ed888
call fcn.1400e09b0
test eax, eax
jne 0x1400ed874
cmp byte [rbp - 0x21], r15b
je 0x1400ed86d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ed888
cmp byte [rbp - 0x21], r15b
je 0x1400ed885
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.1400d9d38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ed8b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ed8b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ed8c5
mov rcx, rdi
call fcn.1400e0708
cmp byte [rbp + 0x3f], r15b
je 0x1400ed8d4
mov rcx, qword [rbp + 0x27]
call fcn.1400e0708
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 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, [0x1400032ec]
lea rcx, str.hello.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov r8, rbx
lea rcx, [rsp + 0x38]
mov edx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x38]
call fcn.1400011d0
movsd xmm0, qword [rsp + 0x38]
movzx eax, word [rsp + 0x40]
movsd qword [0x140005670], xmm0
mov word [0x140005678], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0xa
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140001143
movsd xmm0, qword [0x140005670]
lea r9, [rsp + 0x30]
movsd qword [rax], xmm0
mov edx, 0xa
movzx eax, word [0x140005678]
mov r8d, 0x40
mov word [rbx + 8], ax
mov rcx, rbx
xor eax, eax
mov qword [0x140005670], rax
mov word [0x140005678], ax
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001143
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001143
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [0x140005670]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x50
pop rbx
ret

Function at 0x140001c88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cd4
xor al, al
add rsp, 0x28
ret
Function at 0x14000c06e
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000c07e
xor eax, eax
add rsp, 0x28
ret
lea rcx, [0x1403b0009]
mov edx, 2
call fcn.1402dec24
mov rdx, rax
mov eax, 1
jmp 0x14000c079

Function at 0x14000c099
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
movabs rdi, 0x8000000000000000
cmp qword [rdx], rdi
je 0x14000c0c6
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1403b018d]
mov edx, 4
call fcn.1402dec24
mov qword [rsi + 8], rax
mov qword [rsi], rdi
jmp 0x14000c0bf

Function at 0x14000c36a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x140018bfe
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140002c22
test rax, rax
je 0x140018c2f
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140031942

Function at 0x140018ce0
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140002c22
test rax, rax
je 0x140018d11
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400384db
Function at 0x14001af76
Capabilities:
Get geographical location

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x598
mov r14, rdx
mov rbx, rcx
lea rsi, [rsp + 0x430]
mov rcx, rsi
call fcn.140002b50
cmp byte [rsi], 0
je 0x14001afbc
mov rax, qword [rsp + 0x438]
cmp byte [rsp + 0x431], 0
je 0x14001d1ff
movzx eax, byte [rsp + 0x432]
cmp eax, 0x7b
jne 0x14001d019
dec byte [r14 + 0x30]
je 0x14001d02c
inc qword [r14 + 0x28]
movabs rcx, 0x8000000000000000
lea rax, [rsp + 0xc8]
mov qword [rax], r14
mov byte [rax + 8], 1
lea rax, [rsp + 0x548]
mov qword [rax - 0x10], rcx
lea rax, [rsp + 0xc0]
and qword [rax], 0
mov al, 3
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x77], 2
xor eax, eax
mov qword [rsp + 0xe8], rax
lea rbp, [rsp + 0x128]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0x38], rax
xor r12d, r12d
xor eax, eax
cmp eax, 0x5b
jne 0x14001d21b
dec byte [r14 + 0x30]
jne 0x14001d561
lea rdx, [rsp + 0x128]
mov qword [rdx], reloc.WS2_32.dll_setsockopt
jmp 0x14001d20e
lea rdx, [rsp + 0x128]
mov qword [rdx], 5
mov rcx, r14
call fcn.1402e2afc
jmp 0x14001afac
lea r8, [0x1402e9448]
lea rdx, [rsp + 0x76]
mov rcx, r14
call fcn.1402de729
mov r13, rax
jmp 0x14001d9e0
inc qword [r14 + 0x28]
lea rsi, [rsp + 0x128]
mov byte [rsi], 0xa
lea r8, [0x1402e9448]
lea rdx, [rsp + 0x76]
mov rcx, rsi
call fcn.1402e29ef
mov r13, rax
inc byte [r14 + 0x30]
mov rcx, r14
call fcn.140002d46
mov qword [rsi], 6
mov qword [rsi + 8], r13
mov qword [rsi + 0x108], rax
test rax, rax
jne 0x14001d9c1
jmp 0x14001d9e0
Function at 0x1400404f2
Capabilities:
Encrypt data using dpapi

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
movabs rdi, 0x8000000000000013
lea rcx, [rsp + 0x48]
mov dword [rcx], r8d
lea rax, [rsp + 0x38]
and dword [rax], 0
mov qword [rcx + 8], rdx
and qword [rax + 8], 0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
and qword [rsp + 0x20], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x14004055a
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
add rdi, 6
jmp 0x140040562
call sub.KERNEL32.dll_GetLastError
mov dword [rsi + 8], eax
mov qword [rsi], rdi
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x140062f06
Capabilities:
Create directory

Disassembly:
test cl, cl
je 0x140062f15
mov rcx, rdx
mov rdx, r8
jmp fcn.14011b9f0
mov rcx, rdx
mov rdx, r8
jmp fcn.14011b930
Function at 0x140062f4a
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r13, rcx
mov r12, qword [rdx + 0x18]
test r12, r12
je 0x140063061
mov r14, rdx
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x140063061
mov r15, r9
mov rbx, r8
lea r9, [rsp + 0x30]
and qword [r9], 0
lea rcx, [0x1402ef9e0]
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
movabs rdi, 0x8000000000000000
test eax, eax
js 0x140063079
mov qword [rsp + 0x28], r13
mov r8, 0xffffffffffffffff
mov r13, qword [rsp + 0x30]
cmp word [r13 + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140062fbd
lea rbp, [rsp + 0x48]
mov rcx, rbp
mov rdx, r13
call fcn.140115ab0
mov rcx, r13
call sub.ole32.dll_CoTaskMemFree
mov rdx, qword [rbp]
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
cmp rdx, rdi
je 0x14006305a
lea r13, [rsp + 0x48]
mov r8, qword [r13 + 0x18]
mov qword [r13], rdx
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [r13 + 0x18], r8
mov rdx, qword [r14 + 0x10]
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov r8, r12
call fcn.1400631bc
mov rcx, r13
mov rdx, rbp
call fcn.140062f20
mov rdx, qword [r14]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r8, rsi
call fcn.1400631bc
mov rcx, r13
mov rdx, r14
call fcn.140062f20
mov rdx, qword [r13]
mov rax, qword [r13 + 8]
mov rcx, qword [r13 + 0x10]
cmp rdx, rdi
jne 0x14006309b
mov r13, qword [rsp + 0x28]
jmp 0x14006307e
mov qword [r13 + 8], 2
movabs rax, 0x8000000000000000
mov qword [r13], rax
jmp 0x14006308a
mov eax, 1
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [r13], rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r9, [rsp + 0x48]
mov r8, qword [r9 + 0x18]
mov qword [r9], rdx
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], r8
xor esi, esi
xor r13d, r13d
xor ebp, ebp
xor edi, edi
xor edx, edx
xor ecx, ecx
test cl, cl
jne 0x1400631a1
mov r12, rdx
lea rdx, [rbx + rdi]
mov r8, r15
mov eax, 0
mov r14b, 1
sub r8, rdi
cmovae rax, rdx
jb 0x14006315d
cmp r8, 0xf
ja 0x1400630fb
xor ecx, ecx
cmp r8, rcx
je 0x140063107
cmp byte [rax + rcx], 0x2f
je 0x14006310b
inc rcx
jmp 0x1400630eb
mov cl, 0x2f
call fcn.14006e670
mov r8, rdx
jmp 0x140063113
xor eax, eax
jmp 0x140063113
mov eax, 1
mov r8, rcx
cmp rax, 1
jne 0x140063145
lea rsi, [r8 + rdi]
inc rsi
add r8, rdi
mov rdi, rsi
cmp r8, r15
jae 0x1400630cb
cmp byte [rbx + r8], 0x2f
mov rdi, rsi
jne 0x1400630cb
xor ecx, ecx
mov r13, rsi
mov r14d, ebp
mov rdi, rsi
mov rdx, rsi
jmp 0x140063165
mov rsi, r15
mov rdi, r15
mov rdx, r12
mov cl, 1
mov r8, r15
test rax, rax
je 0x140063165
mov rsi, r15
jmp 0x140063171
mov rdx, r12
mov cl, 1
mov r8, r15
mov ebp, r14d
cmp r8, r12
je 0x1400630c0
sub r8, r12
add r12, rbx
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, r12
call fcn.1400631bc
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140062f20
mov rdi, rsi
mov rdx, r13
mov ecx, ebp
jmp 0x1400630c0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x14006308a