joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004d20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
mov eax, 0x1078
call fcn.140024c20
sub rsp, rax
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov eax, dword [rcx + 0x14]
mov ebx, edx
mov rsi, rcx
test eax, eax
je 0x140004ed6
cmp eax, 2
jl 0x140004d6a
cmp qword [rcx], 0xffffffffffffffff
je 0x140004ed6
xor edx, edx
mov qword [rsp + 0x1070], rbp
mov r8d, 0x800
lea rcx, [rsp + 0x850]
call fcn.140026cc0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.140026cc0
mov r9d, 0x400
lea r8, [rsp + 0x850]
mov edx, ebx
mov ecx, 1
call fcn.140004880
mov rcx, qword [rsp + 0x10a0]
lea rax, [rsp + 0x10a8]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x850]
xor ebp, ebp
call fcn.140004c20
test al, al
je 0x140004ece
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
cmp eax, 0x400
jl 0x140004e0b
lea rcx, str.dump_errorcode_buffer_is_too_small
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004ece
lea r8, [0x14005ec14]
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14002d51c
mov ecx, dword [rsi + 0x14]
sub ecx, 1
je 0x140004e37
sub ecx, 1
je 0x140004e4c
cmp ecx, 1
jne 0x140004ece
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsi + 0x14], 3
jne 0x140004ece
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r9d, 0xffffffff
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x1068], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov ebx, eax
call fcn.140024144
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r9d, 0xffffffff
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, qword [rsi]
mov r9d, ebx
mov r8, rdi
call fcn.1400044a0
mov rcx, rdi
call fcn.140023e64
mov rdi, qword [rsp + 0x1068]
mov rbp, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x1078
pop rsi
pop rbx
ret
Function at 0x140004ef0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
sub rsp, 0xc70
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov eax, dword [rcx + 0x14]
mov rsi, rcx
test eax, eax
je 0x1400050ab
cmp eax, 2
jl 0x140004f36
cmp qword [rcx], 0xffffffffffffffff
je 0x1400050ab
xor edx, edx
lea rcx, [rsp + 0x840]
mov r8d, 0x400
call fcn.140026cc0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140026cc0
mov r9d, 0x200
lea r8, [rsp + 0x840]
xor edx, edx
xor ecx, ecx
call fcn.140004880
mov rcx, qword [rsp + 0xc88]
lea rax, [rsp + 0xc90]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x840]
call fcn.140004c20
test al, al
je 0x1400050ab
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
cmp eax, 0x400
jl 0x140004fca
lea rcx, str.dump_errorcode_buffer_is_too_small
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400050ab
lea r8, [0x14005ec14]
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14002d51c
mov ecx, dword [rsi + 0x14]
sub ecx, 1
je 0x140004ff6
sub ecx, 1
je 0x14000500b
cmp ecx, 1
jne 0x1400050ab
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsi + 0x14], 3
jne 0x1400050ab
mov qword [rsp + 0xc68], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0xc60], rbp
xor edx, edx
xor ebp, ebp
mov qword [rsp + 0xc58], rdi
mov qword [rsp + 0x38], rbp
xor ecx, ecx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea r9d, [rbp - 1]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov ebx, eax
call fcn.140024144
mov qword [rsp + 0x38], rbp
lea r9d, [rbp - 1]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, qword [rsi]
mov r9d, ebx
mov r8, rdi
call fcn.1400044a0
mov rcx, rdi
call fcn.140023e64
mov rdi, qword [rsp + 0xc58]
mov rbp, qword [rsp + 0xc60]
mov rbx, qword [rsp + 0xc68]
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.140023e40
add rsp, 0xc70
pop rsi
ret
Function at 0x14000cb80
Capabilities:
Receive http response

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x10]
test edx, edx
je 0x14000cbf2
mov r9d, 4
mov dword [rsp + 0x40], 0x3100
lea r8, [rsp + 0x40]
mov rcx, rbx
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14000cbf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpSetOption_Fails___err:_0x_x
lea rcx, [0x140077e88]
call fcn.1400042c0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x50
pop rbx
ret
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000cc47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpSendRequest_Fails___err:_0x_x
lea rcx, [0x140077e88]
call fcn.1400042c0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x50
pop rbx
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x50
pop rbx
ret
Function at 0x14000ced0
Capabilities:
Check http status code
Read http header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r14d, r14d
mov dword [rsp + 0x38], 0x104
mov qword [rdx], r14
mov rbp, r8
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov rbx, rcx
mov dword [rsp + 0x30], 4
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
mov rdi, r9
call fcn.140026cc0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov edx, 0x20000013
mov dword [rsp + 0x3c], 0x104
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000cf87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.query_status_code_fail__lu
lea rcx, [0x140077e88]
call fcn.1400042c0
lea eax, [r14 + 3]
jmp 0x14000d0f4
mov r8d, dword [rsp + 0x34]
cmp r8d, 0xc8
je 0x14000cfea
cmp r8d, 0xce
je 0x14000cfea
cmp r8d, 0x194
jne 0x14000cfc4
lea rdx, str.FILE_NOT_FOUND
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, reloc.WS2_32.dll_recv
jmp 0x14000d0f4
cmp r8d, 0x1a0
jne 0x14000cfd7
mov eax, setsockopt
jmp 0x14000d0f4
lea rdx, str.status_code_lu
lea rcx, [0x140077e88]
call fcn.1400042c0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x20000005
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000d039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.query_size_fail__lu
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, 1
jmp 0x14000d0f4
xor r8d, r8d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x3c]
mov r9, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0xb]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000d082
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.query_last_LastModified_fail__lu
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, 2
jmp 0x14000d0f4
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsi], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x2a]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000d0d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.query_ranges_fail__lu
lea rcx, [0x140077e88]
call fcn.1400042c0
mov eax, 4
jmp 0x14000d0f4
lea rdx, str.bytes
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, r14d
mov eax, r14d
sete cl
mov dword [rdi], ecx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010650
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rbp
xor edi, edi
mov rbp, r8
mov qword [rsp + 0x58], rsi
mov r8, rdx
mov qword [rsp + 0x50], r14
movzx edx, cx
xor esi, esi
xor ecx, ecx
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400106be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FindResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
lea ebx, [rdi - 1]
jmp 0x140010819
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1400106f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LoadResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
lea ebx, [rdi - 2]
jmp 0x140010819
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x14001072c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SizeofResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
mov ebx, 0xfffffffd
jmp 0x140010819
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x140010762
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LockResource_GetLastError_lx
lea rcx, [0x140077e88]
call fcn.140004170
lea ebx, [r14 - 4]
jmp 0x140010819
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400107af
mov r8, rbp
lea rdx, str.CreateFileW_fail_Path_S
lea rcx, [0x140077e88]
call fcn.140004ef0
lea ebx, [rsi - 4]
jmp 0x140010822
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400107ed
mov r8, rbp
lea rdx, str.WriteFile_fail_Path_S
lea rcx, [0x140077e88]
call fcn.140004ef0
mov ebx, 0xfffffffa
jmp 0x140010819
mov r8d, dword [rsp + 0x40]
cmp r8d, ebx
je 0x140010814
mov r9d, ebx
lea rdx, str.size_error_dwByteWritten_lu_dwSize_lu
lea rcx, [0x140077e88]
call fcn.140004170
mov ebx, 0xfffffff9
jmp 0x140010819
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
test rdi, rdi
je 0x14001083f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1400116f0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x210]
movzx ebp, r8w
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001177c
mov rcx, qword [rdi + 0x210]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400117a0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140011000
mov rdx, qword [rdi + 0x210]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001184f
mov rcx, qword [rdi + 0x210]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret

Function at 0x140011870
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
lea r8, str._s_failed_w_err__d
mov edx, 0x104
lea rcx, [rsp + 0x60]
lea r9, str.file_not_result
call fcn.140011000
mov rdx, qword [rdi + 0x210]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140011923
mov rcx, qword [rdi + 0x210]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x140011c60
Capabilities:
Get file size
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r14, [rcx + 0x20]
mov rdi, rcx
mov rcx, qword [r14]
xor ebx, ebx
mov rsi, rdx
test rcx, rcx
je 0x140011c97
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [r14], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140011dd5
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp qword [rsp + 0x40], rbx
je 0x140011dcc
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x90], r12
mov rcx, rbp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
test rax, rax
je 0x140011dc4
xor r9d, r9d
mov qword [rsp + 0x98], r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x140011db3
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140011daa
mov rax, qword [rsp + 0x40]
mov rdi, r15
test rax, rax
je 0x140011daa
nop dword [rax]
mov rcx, qword [r14]
mov esi, 0x2000
cmp rax, rsi
mov rdx, rdi
cmovb esi, eax
xor r9d, r9d
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
test eax, eax
je 0x140011daa
mov rax, qword [rsp + 0x40]
mov ecx, esi
sub rax, rcx
add rdi, rcx
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140011d70
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x98]
mov r12, qword [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011df0
Capabilities:
Create new key via cryptacquirecontext
Import public key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 8], 0
mov rbx, rcx
jne 0x140011e72
mov ecx, dword [rcx + 0x28]
xor edi, edi
test ecx, ecx
je 0x140011e34
cmp ecx, 1
jne 0x140011e57
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rdi + 0x18]
jmp 0x140011e42
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
lea rcx, [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, eax
test eax, eax
jne 0x140011e72
lea rdx, str.setPorvider_fail
lea rcx, [0x140077e88]
call fcn.140004170
test edi, edi
je 0x140011f9c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140011e81
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, 0x127
call fcn.14003073c
mov rdi, rax
lea r8, str.30820122300d06092a864886f70d01010105000382010f003082010a02820101008219c823d8435144520ba2b52ac4ad2e161b7550ea1981061236dda9289df9d73708323c267087cf00be9c181f21ccfb0a155074bed53c30fb96d40723e92afc09f74a399329c115a6d41447872a2f629884eda7bbc2cc9ef705bbc7e0ab54b0c065be011998ced24edea2a60f2005bbe498471712fa56fea52e082e20af567c408f97da80af6a3adc6d9151cd1876c91176884c88ac97eaa3aebe387981d4a5f82416b45bf89d93042544f3284df2bfb28e7fda9347120f50599a95ac8513c47c695e90ea08d8f791cbc4b8be0fbc3a9051174954411e96e6a3c05a49c66591740ae27756f791941ee980d310b493df61eb56106ee114e0ebcfbbaeb24bec4f0203010001
xor r9d, r9d
nop dword [rax + rax]
movzx ecx, byte [r8]
lea edx, [rcx - 0x30]
cmp dl, 9
ja 0x140011eb1
sub cl, 0x30
jmp 0x140011ecb
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x140011ebd
sub cl, 0x57
jmp 0x140011ecb
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x140011ec9
sub cl, 0x37
jmp 0x140011ecb
mov cl, 0xff
movzx edx, byte [r8 + 1]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140011edc
sub dl, 0x30
jmp 0x140011ef6
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x140011ee8
sub dl, 0x57
jmp 0x140011ef6
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x140011ef4
sub dl, 0x37
jmp 0x140011ef6
mov dl, 0xff
shl cl, 4
add r8, 2
or cl, dl
mov byte [r9 + rdi], cl
inc r9
cmp r9, 0x126
jb 0x140011ea0
mov byte [rdi + 0x126], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov edx, 8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
mov r9d, 0x126
mov qword [rsp + 0x28], 0
mov r8, rdi
lea ecx, [rdx - 7]
mov dword [rsp + 0x20], 0x8000
mov dword [rsp + 0x48], 0
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x140011f9c
mov r8, qword [rsp + 0x40]
lea r9, [rbx + 0x10]
mov rcx, qword [rbx + 8]
mov edx, 1
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov ebx, eax
test eax, eax
je 0x140011f9c
mov rcx, rdi
call fcn.14002e688
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x140011f9e
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140012020
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x38]
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001205d
mov rcx, qword [rbx + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x102
jne 0x140012093
mov rcx, qword [rbx + 0x38]
mov edx, 0x7d00
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, str.system_UI_timeout
lea rcx, [0x140077e88]
call fcn.140004170
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.wait_UI_Error__lu
lea rcx, [0x140077e88]
call fcn.140004170
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1400120c0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14, r9
mov r15, rdx
mov rsi, rcx
lea r9, str.false
mov r8, rdx
lea rcx, [0x140077e88]
lea rdx, str.startSystemUi__lpcommandline___S__showUI___s
call fcn.140004170
cmp dword [rsi + 0x128], 0
jne 0x14001221a
xor r13d, r13d
mov dword [rsi + 0x128], 1
mov ebp, r13d
mov dword [rsp + 0x70], 0x238
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edx, edx
mov edi, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x60], r13d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400121fa
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400121fa
mov qword [rsp + 0x310], r12
lea r12, str.winlogon.exe
nop word [rax + rax]
lea rdx, [rsp + 0x9c]
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r12 + rax*2 + 2]
jne 0x1400121d9
add rax, 2
cmp rax, 0xd
je 0x1400121c4
movzx ecx, word [rdx + rax*2]
cmp cx, word [r12 + rax*2]
je 0x1400121a0
jmp 0x1400121d9
mov ecx, dword [rsp + 0x78]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [rsp + 0x60], edi
je 0x1400121ee
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140012190
jmp 0x1400121f2
mov ebp, dword [rsp + 0x78]
mov r12, qword [rsp + 0x310]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x14001223e
lea rdx, str.not_found_winlogon
lea rcx, [0x140077e88]
call fcn.140004170
xor al, al
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140023e40
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, ebp
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x14001221a
lea r8, [rsi + 8]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140012276
lea rdx, str.OpenProcessToken_fail
jmp 0x14001220e
mov rcx, qword [rsi + 8]
lea rbx, [rsi + 0x20]
mov r8, rbx
mov qword [rsp + 0x28], rsi
mov r9d, 1
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001221a
lea rax, [rsi + 0x38]
mov r9, rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsi + 0xb8]
mov qword [rsp + 0x48], rcx
mov r8, r15
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14001230e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcessAsUser_fail__lu
lea rcx, [0x140077e88]
call fcn.140004170
jmp 0x14001221a
mov r8, r14
mov rcx, rsi
call fcn.140012020
jmp 0x14001221c