joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117df
Capabilities:
Terminate process

Disassembly:
jmp 0x14002bdb0
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 0x1400119c9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x14002ac00
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140041018]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x140049104]
call fcn.140011ed3
mov byte [rbp + 4], 0x41
lea rcx, [rbp + 0x1a8]
call fcn.140011d6b
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x200], rax
mov rdx, qword [rbp + 0x200]
lea rcx, [rbp + 0x28]
call fcn.14001123a
nop
lea rcx, [rbp + 0x1a8]
call fcn.1400112a3
movzx r8d, byte [rbp + 4]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x68]
call fcn.140011b54
nop
lea rcx, [rbp + 0x68]
call fcn.140011a5f
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0x68]
call fcn.140011a5f
mov qword [rbp + 0x1f8], rax
lea rcx, [rbp + 0x68]
call fcn.1400115fa
mov rcx, qword [rbp + 0x1f8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.1400116d6
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xc8], rax
call qword [rbp + 0xc8]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [rbp + 0x1e4], 0
lea rcx, [rbp + 0x68]
call fcn.1400112a3
nop
lea rcx, [rbp + 0x28]
call fcn.1400112a3
mov eax, dword [rbp + 0x1e4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140038fd0]
call fcn.140011c0d
mov eax, edi
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.1400116cc
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret

Function at 0x1400119fb
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002dfa0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002dfc0
xor al, al
jmp 0x14002e041
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002dfd3
xor al, al
jmp 0x14002e041
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 0x14002dffd
xor al, al
jmp 0x14002e041
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002e011
xor al, al
jmp 0x14002e041
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002e023
xor al, al
jmp 0x14002e041
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002e03f
xor al, al
jmp 0x14002e041
mov al, 1
add rsp, 0x38
ret
Function at 0x140011ea1
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400202e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140041018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400490f7]
call fcn.140011ed3
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140020346
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002034d
mov al, 1
jmp 0x1400204a7
call fcn.1400113e3
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.1400113e3
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011c30
movzx eax, al
test eax, eax
je 0x1400203a8
xor al, al
jmp 0x1400204a7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14002040d
cmp dword [rbp + 0x194], 1
je 0x140020418
cmp dword [rbp + 0x194], 3
je 0x140020496
jmp 0x1400204a5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140020468
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140020468
xor al, al
jmp 0x1400204a7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140020483
mov dword [rbp + 0x194], 1
jmp 0x14002048d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400204a7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400204a7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140037ec0]
call fcn.140011c0d
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400116cc
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140001ce0
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x178
mov rax, qword [0x140030780]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x180], 0
jne 0x140001d0e
xor eax, eax
jmp 0x140001e17
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001e15
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
test eax, eax
je 0x140001e01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140001e01
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140001db2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
mov ecx, eax
call fcn.1400182cc
mov ecx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x50], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001d71
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x104
jae 0x140001dc8
jmp 0x140001dcd
call fcn.1400116a0
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.140010820
cmp eax, dword [rsp + 0x180]
jne 0x140001dff
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x20]
jmp 0x140001e17
jmp 0x140001e03
jmp 0x140001e15
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140001d38
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140011920
add rsp, 0x178
ret
Function at 0x140010f30
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x140010f51
xor eax, eax
jmp 0x1400110a3
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x140010f85
xor eax, eax
jmp 0x1400110a3
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140010fa4
xor eax, eax
jmp 0x1400110a3
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x140010fd0
xor eax, eax
jmp 0x1400110a3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x140011003
xor eax, eax
jmp 0x1400110a3
mov rax, qword [rsp]
mov qword [0x140031440], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x140031438], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140031428], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140031420], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140031430], rax
cmp qword [0x140031440], 0
je 0x140011098
cmp dword [0x140031438], 0
je 0x140011098
cmp qword [0x140031428], 0
je 0x140011098
cmp qword [0x140031420], 0
je 0x140011098
cmp qword [0x140031430], 0
jne 0x14001109e
xor eax, eax
jmp 0x1400110a3
mov eax, 1
add rsp, 0x38
ret

Function at 0x140011f3c
Capabilities:
Parse pe header

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

Function at 0x140018c04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018a00
Function at 0x14001c8cc
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 0x14001c8fc
xor eax, eax
jmp 0x14001c9bf
mov rbp, rbx
cmp word [rax], si
je 0x14001c921
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c908
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c904
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.14001c7ec
movsxd r14, eax
test eax, eax
jne 0x14001c95f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c8f5
mov rcx, r14
call fcn.14001ab94
mov rdi, rax
test rax, rax
jne 0x14001c978
xor ecx, ecx
call fcn.14001ae0c
jmp 0x14001c954
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.14001c7ec
test eax, eax
jne 0x14001c9a9
mov rcx, rdi
call fcn.14001ae0c
jmp 0x14001c9b3
xor ecx, ecx
call fcn.14001ae0c
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 0x14001f834
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.1400180fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001f8be
cmp byte [rbp - 0x21], r15b
je 0x14001f8b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001f8f4
call fcn.14001d0d0
test eax, eax
jne 0x14001f8e0
cmp byte [rbp - 0x21], r15b
je 0x14001f8d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001f8f4
cmp byte [rbp - 0x21], r15b
je 0x14001f8f1
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.14001af38
test eax, eax
jne 0x14001f994
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400180fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001f933
cmp byte [rbp - 0x21], r15b
je 0x14001f968
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001f968
call fcn.14001d0d0
test eax, eax
jne 0x14001f954
cmp byte [rbp - 0x21], r15b
je 0x14001f94d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001f968
cmp byte [rbp - 0x21], r15b
je 0x14001f965
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.14001af38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001f994
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001f997
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001f9a5
mov rcx, rdi
call fcn.14001ae0c
cmp byte [rbp + 0x3f], r15b
je 0x14001f9b4
mov rcx, qword [rbp + 0x27]
call fcn.14001ae0c
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 0x1400227d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400227f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400227f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400075f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400075f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0b4]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x14000c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call fcn.140002330
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x14000c0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002470
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019c0
add dword [0x14000c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001870
nop dword [rax]
xor esi, esi
jmp 0x140001938
mov rax, qword [0x14000c0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001870
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001870
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x140001ffc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ff3
test rsi, rsi
je 0x140001ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002350
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000248f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001ac8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x198]
mov dword [rax], 0
movsxd rax, dword [rsp + 0x20]
shl rax, 2
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0x130
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001b4c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001c05
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001bf5
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140001bf5
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.MSVCR120.dll_strcmp]
test eax, eax
jne 0x140001b99
mov dword [rsp + 0x30], 1
jmp 0x140001ba1
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
je 0x140001bf0
movsxd rax, dword [rsp + 0x20]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_realloc]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
dec eax
cdqe
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x48]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x198]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001b64
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400b0ec0
add rsp, 0x188
ret
Function at 0x140001c20
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x140001e1b
lea rcx, [0x1400b274c]
call qword [sym.imp.MSVCR120.dll_getenv]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001c9f
xor r9d, r9d
mov r8, qword [rsp + 0x60]
lea rdx, [0x1400b2734]
mov rcx, qword [rsp + 0x30]
call fcn.140001898
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, str.PATH
call fcn.140001898
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__putenv]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_]
xor r8d, r8d
lea rdx, str._nss3.dll
mov rcx, qword [rsp + 0x60]
call fcn.140001898
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001dc7
lea rdx, str.NSS_Init
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c23a0], rax
lea rdx, str.NSS_Shutdown
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c23c8], rax
lea rdx, str.PK11_GetInternalKeySlot
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c2368], rax
lea rdx, str.PK11_FreeSlot
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c2390], rax
lea rdx, str.PK11_Authenticate
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c23b8], rax
lea rdx, str.PK11SDR_Decrypt
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c2388], rax
lea rdx, str.sqlite3_open
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c2398], rax
lea rdx, str.sqlite3_prepare_v2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c23c0], rax
lea rdx, str.sqlite3_step
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c23b0], rax
lea rdx, str.sqlite3_column_text
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c2360], rax
cmp qword [0x1400c23a0], 0
je 0x140001e0d
cmp qword [0x1400c23c8], 0
je 0x140001e0d
cmp qword [0x1400c2368], 0
je 0x140001e0d
cmp qword [0x1400c23b8], 0
je 0x140001e0d
cmp qword [0x1400c2388], 0
je 0x140001e0d
cmp qword [0x1400c2390], 0
je 0x140001e0d
mov dword [rsp + 0x20], 1
jmp 0x140001e15
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
jmp 0x140001e1d
xor eax, eax
add rsp, 0x58
ret