joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004543c
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r8d
mov r15, rdx
mov r14, rcx
and esi, 0xf
xor r12d, r12d
cmp esi, 2
je 0x1400455da
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
test eax, eax
je 0x140045490
mov byte [rbp + 0x48], 1
mov dword [rbp + 0x4c], r12d
jmp 0x14004549e
mov byte [rbp + 0x48], r12b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x48]
mov rcx, rax
shr rcx, 0x20
cmp ecx, 0x50
jne 0x14004560a
test esi, esi
je 0x14004560a
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea edi, [rcx - 0x4d]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rcx + 0x31]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400454fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
je 0x1400454fb
mov byte [rbp + 0x48], r12b
jmp 0x140045603
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x82
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004555a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
je 0x14004555a
mov byte [rbp + 0x48], r12b
mov dword [rbp + 0x4c], eax
cmp rbx, 0xffffffffffffffff
je 0x140045606
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x140045623
jmp 0x140045606
cmp esi, 1
jne 0x140045581
mov dword [rbp + 0x4c], r12d
mov byte [rbp + 0x48], r12b
cmp rdi, 0xffffffffffffffff
je 0x140045539
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x140045623
jmp 0x140045539
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1400451d0
nop
test eax, eax
je 0x140045597
mov dword [rbp + 0x4c], eax
jmp 0x140045563
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.1400451d0
nop
test eax, eax
jne 0x140045592
mov rax, qword [rbp + 0x48]
cmp qword [rbp - 0x10], rax
jle 0x14004555f
cmp rdi, 0xffffffffffffffff
je 0x1400455c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x140045623
cmp rbx, 0xffffffffffffffff
je 0x1400455da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x140045623
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
test eax, eax
je 0x1400455f8
mov byte [rbp + 0x48], 1
mov dword [rbp + 0x4c], r12d
jmp 0x140045606
mov byte [rbp + 0x48], r12b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x48]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14006b424
nop
int3
Function at 0x14004a72c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14004a73f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14004ad58
lea rdx, [0x1400e0688]
lea rcx, [rsp + 0x20]
call fcn.140065b40
int3

Function at 0x14005510c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400e7ec0]
xor edx, edx
jmp fcn.14004a72c

Function at 0x140055ac8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400e7ec0]
jmp fcn.14004a72c

Function at 0x140061990
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140061a50]
mov r9, qword [r9 + 8]
jmp fcn.140052a94

Function at 0x140061a24
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140061a60]
mov r9, qword [r9 + 8]
jmp fcn.140052a94

Function at 0x140070570
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140070590
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006bb90
or eax, 0xffffffff
jmp 0x140070592
xor eax, eax
add rsp, 0x28
ret

Function at 0x140070598
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400705b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006bb90
or eax, 0xffffffff
jmp 0x1400705ba
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400890c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140089183
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x1400890f4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140089186
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14008913f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140089143
test rax, rax
je 0x140089183
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140089174
cmp rdx, rax
jb 0x140089160
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008bbf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rsi, r9
xor ecx, ecx
mov rbp, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0xa8]
mov rdx, rbx
mov rcx, rdi
call fcn.14008b6c0
test eax, eax
je 0x14008bc8b
mov rax, qword [rsp + 0xb0]
mov r9, rsi
mov qword [rsp + 0x48], rax
mov r8, rbp
mov rax, qword [rsp + 0xa0]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov rcx, rdi
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14008bca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14008be09
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x14008bd06
cmp ax, 0x2f
je 0x14008bd06
movzx ecx, ax
call fcn.14006f580
test eax, eax
je 0x14008be09
cmp word [rbx + 2], 0x3a
jne 0x14008be09
movzx eax, word [rbx + 4]
cmp ax, 0x2f
je 0x14008bd06
cmp ax, 0x5c
jne 0x14008be09
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008bded
test al, 0x50
jne 0x14008bded
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008bd73
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.14008be30
test eax, eax
je 0x14008bda5
test r14d, r14d
je 0x14008bdb9
cmp dword [rsp + 0x60], edi
jne 0x14008bdb9
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14008ab80
test eax, eax
je 0x14008bdd0
and ebp, 0xffffe0f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x14008bd5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x14008bd57
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140090304
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x140090388
cmp eax, 0x7a
jne 0x1400904cc
mov edx, dword [rsp + 0x48]
shr rdx, 1
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14008da58
nop
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14009043e
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov byte [rsp + 0x40], r12b
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14008d7e0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
cmp rdx, r8
je 0x140090410
sub r8, rdx
sar r8, 1
mov rcx, rdi
call fcn.140004670
nop
lea rcx, [rsp + 0x58]
call fcn.140028b48
mov rax, rdi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140046b20
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14000350c
mov rsi, rax
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.140090b38
nop
mov r8, rax
lea rdx, str.WinHttpQueryHeaders_failed_with
lea rcx, [rbp - 0x68]
call fcn.14002ecd0
nop
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0xab
lea r9, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_srcgfehttpaccess.cpp
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14008e7d0
lea rdx, [0x1400e0d20]
lea rcx, [rbp - 0x20]
call fcn.140065b40
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14000350c
mov rdi, rax
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
mov edx, esi
lea rcx, [rbp - 0x68]
call fcn.140090b38
nop
mov r8, rax
lea rdx, str.WinHttpQueryHeaders_failed_with
lea rcx, [rbp - 0x48]
call fcn.14002ecd0
nop
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x99
lea r9, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_srcgfehttpaccess.cpp
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14008e7d0
lea rdx, [0x1400e0d20]
lea rcx, [rbp - 0x20]
call fcn.140065b40
int3
Function at 0x1400920f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140092106
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140092118
shr eax, 4
and al, 1
jmp 0x14009211a
xor al, al
add rsp, 0x28
ret

Function at 0x140092120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rcx + 0x10]
xor ebx, ebx
test rdx, rdx
jne 0x14009215e
xor al, al
jmp 0x1400922cb
mov dword [rbp - 0x5c], 0x5c
mov eax, dword [0x1400b9bd8]
mov dword [rbp - 0x10], eax
movzx eax, word [0x1400b9bdc]
mov word [rbp - 0xc], ax
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140092186
mov rax, qword [rcx]
lea r8, [rax + rdx*2]
jb 0x14009218f
mov rcx, qword [rcx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov r9b, byte [rbp - 0x60]
mov rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.140091f70
nop
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x48]
cmp qword [rbp - 0x40], rdx
je 0x1400921c7
mov word [rdx], bx
add rdx, 2
mov qword [rbp - 0x48], rdx
jmp 0x1400921d4
lea r8, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140091e6c
mov qword [rbp - 0x58], rbx
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x50]
call fcn.140093f30
mov rdi, rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
xor r8d, r8d
lea rdx, [0x1400c47c0]
lea rcx, [rbp - 0x30]
call fcn.140004670
nop
test rdi, rdi
je 0x1400922b4
test rdi, rdi
je 0x140092238
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x140092222
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140003440
cmp qword [rbp - 0x20], rbx
jbe 0x14009227a
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rbp - 0x30]
cmp eax, 0xffffffff
je 0x140092264
call fcn.1400920f8
test al, al
jmp 0x140092278
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400922b6
lea rax, [rbp - 0x5c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140092282
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x30]
call fcn.140003440
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.140093f30
mov rdi, rax
test rax, rax
jne 0x140092219
mov bl, 1
lea rcx, [rbp - 0x30]
call fcn.1400045e4
nop
lea rcx, [rbp - 0x50]
call fcn.140028b48
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400922ec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400923ec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rax, rbx
cmp qword [r8 + 0x18], 8
jb 0x140092434
mov rax, qword [r8]
mov qword [r8 + 0x10], rsi
mov word [rax], si
lea rcx, [rsp + 0x20]
call fcn.140092314
nop
cmp qword [rdi + 0x18], 8
jb 0x140092450
mov rdi, qword [rdi]
lea rdx, [0x1400a530c]
mov rcx, rdi
call fcn.1400704f4
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14009247d
lea rcx, [rsp + 0x20]
call fcn.1400923a0
xor al, al
jmp 0x140092538
mov rcx, rdi
call fcn.140093f68
test eax, eax
jne 0x1400924d1
mov r9, rdi
lea edx, [rax + 1]
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call fcn.14006c7a4
test rax, rax
je 0x14009247d
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140092640
test al, al
jne 0x14009247d
mov rcx, rdi
call fcn.14006bea0
nop
lea rcx, [rsp + 0x20]
call fcn.1400923a0
xor al, al
jmp 0x140092538
mov rcx, rdi
call fcn.14006bea0
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140092a78
mov rdi, rax
cmp rbx, rax
je 0x14009251d
mov rcx, rbx
call fcn.1400045e4
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call fcn.1400655a0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
lea rcx, [rsp + 0x38]
call fcn.1400045e4
nop
lea rcx, [rsp + 0x20]
call fcn.1400923a0
mov al, 1
jmp 0x140092538
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140092640
Capabilities:
Hash data via wincrypt

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14009266c
mov eax, 0xffffffff
cmp r8, rax
ja 0x14009266c
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
mov al, bl
add rsp, 0x20
pop rbx
ret
Function at 0x1400928bc
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400928df
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400928f3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
mov rcx, rbx
call fcn.140092798
mov r9d, eax
mov dword [rsp + 0x20], 0xf0000060
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009293a
mov rcx, rbx
call fcn.140092674
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140092964
mov rcx, qword [rdi]
test rcx, rcx
je 0x14009294c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140092960
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
xor al, al
jmp 0x140092966
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or al, 0xff
xor eax, 0x35ff0d29
sub dword [0x14d2d2c8a], ecx
push qword [0x1760303ba]
sub dword [0x14d2d2c96], ecx
or eax, 0xd2936ff
push qword [rsi]
sub dword [0x14d2d2da2], ecx
push qword [rsi]
sub dword [0x14d2d2daa], ecx
push qword [0x1760303d8]
sub byte [rsi], cl
invalid
push qword [0x1760304e1]
invalid
or eax, 0xd2634ff
push qword [rbx]
and eax, 0x2534ff0d
invalid
jmp [rcx]
sub dword [rax], esp
or eax, 0xd2936ff
push qword [rsi]
sub dword [0x14d2d2da2], ecx
push qword [rsi]
sub dword [0x14d2d2daa], ecx
push qword [0x1760303d8]
sub byte [rsi], cl
invalid
push qword [0x1760304e1]
invalid
invalid
sub dword [rax], esp
adc al, 0xff
sub esp, dword [rdx]
sbb bh, bh
xor ch, byte [rax]
and bh, bh
cmp ebp, dword [rsi]
xor edi, edi
xor al, 0x41
dec dword [r11 + 0x37]
dec dword [r11 + 0x37]
push rax
call qword [rbx + 0x3b]
pop rsi
call [rcx + 0x40]
call qword [rbx + rdi + 0x60]
invalid
dec dword [rbx + 0x35]
push rax
inc dword [rdx + rsi + 0x43]
invalid
invalid
invalid
invalid
sub esp, dword [rdx]
invalid
cmp dword [rdx], ebp
and bh, bh
xor dword [rbx], esp
adc al, 0xff
xor dword [0x16435f62e], esp
or edi, edi
xor dword [rbx], esp
or al, 0xff
xor ah, byte [rcx + 0xd2432ff]
push qword [rdx]
and al, 0xd
push qword [rdx]
and al, 0xd
push qword [rdx]
and al, 0xd
push qword [rdx]
and al, 0xd
push qword [rdx]
and al, 0xd
push qword [rcx]
and ecx, dword [rdi + rdi*8]
xor eax, 0x2dff0f27
invalid
Function at 0x140003fe4
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov r14, r9
mov ecx, 1
mov rsi, r8
mov rbp, rdx
xor eax, eax
lock cmpxchg dword [0x14001e8c0], ecx
jne 0x14000406a
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x20]
call fcn.1400045fc
lea rcx, [rsp + 0x20]
call fcn.14000e718
lea rcx, [rsp + 0x20]
call fcn.140004598
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x40]
call fcn.1400045fc
lea rcx, [rsp + 0x40]
call fcn.14000e718
lea rcx, [rsp + 0x40]
call fcn.140004598
call fcn.14000e81c
lea rdi, [rbx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov r8, rbp
mov rcx, rbx
call fcn.140006630
mov rax, qword [rsp + 0x60]
mov rcx, rdi
cmp rax, qword [rbx + 8]
je 0x1400040a7
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400040af
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
test rbx, rbx
je 0x1400040bc
mov rdx, qword [r14]
mov rcx, qword [rsi]
call rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000ee70
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400040d4
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
mov dword [rsp + 0x40], 1
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x140004129
mov rdi, qword [rdi]
mov r9, rdi
lea r8, str.___s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001088
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, str.systemCurrentControlSetServices
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor edi, edi
test eax, eax
jne 0x140004223
cmp qword [rbx + 0x18], 8
jb 0x14000416f
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
je 0x14000419a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140004223
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400041a3
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ImagePath
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x1400041ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004188
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, str.Type
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140004221
mov rcx, qword [rsp + 0x30]
jmp 0x1400041e7
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14000ee70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret