joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180058140
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800586d0
mov qword [rsp + 0x28], 0
cmp qword [0x180089138], 0
jne 0x180058188
cmp qword [0x180089130], 0
je 0x180058188
mov rax, qword [0x180089130]
mov qword [0x180089138], rax
cmp qword [0x180089138], 0
je 0x18005822e
mov rax, qword [0x180089138]
cmp qword [rax + 0x10], 0
je 0x18005822e
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005822e
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005822e
mov rax, qword [0x180089138]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800581f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800581fb
xor eax, eax
jmp 0x1800583a9
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800583a9
mov rax, qword [0x180089130]
mov qword [0x180089138], rax
jmp 0x180058250
mov rax, qword [0x180089138]
mov rax, qword [rax + 8]
mov qword [0x180089138], rax
cmp qword [0x180089138], 0
je 0x18005829d
cmp qword [0x180089138], 0
je 0x18005829b
mov rax, qword [0x180089138]
cmp qword [rax + 0x10], 0
je 0x18005829b
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005829b
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005829b
jmp 0x1800581cc
jmp 0x18005823e
mov rcx, qword [rsp + 0x60]
call fcn.18005a550
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800583b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800583a7
mov rax, qword [rsp + 0x48]
mov qword [0x180089138], rax
mov rax, qword [0x180089138]
mov dword [rax], 0x52727464
mov rax, qword [0x180089138]
mov qword [rax + 0x10], 0
mov rax, qword [0x180089138]
mov rcx, qword [0x180089130]
mov qword [rax + 8], rcx
mov rax, qword [0x180089138]
mov qword [0x180089130], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180089138]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180058358
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180058392
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18005834e
mov rax, qword [0x180089138]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800581cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [rsi + 0x3e], dl
fst dword [rax]
invalid
Function at 0x1400015c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
xor ebp, ebp
call fcn.140080170
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, [0x1400c9478]
lea rcx, [rdi + 0x38]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x14000162f
lea r8, str.__d_ACS___BCryptOpenAlgorithmProvider_Error_:_0x_08x._r_n
lea r9d, [rbp + 0x56]
jmp 0x14000175e
mov rcx, qword [rdi + 0x38]
lea rdx, [rdi + 0x40]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.bcrypt.dll_BCryptGenerateKeyPair]
test eax, eax
jns 0x14000165c
lea r8, str.__d_ACS___BCryptGenerateKeyPair_Error_:_0x_08x._r_n
mov r9d, 0x5c
jmp 0x14000175e
mov rcx, qword [rdi + 0x40]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptFinalizeKeyPair]
test eax, eax
jns 0x14000167e
lea r8, str.__d_ACS___BCryptFinalizeKeyPair_Error_:_0x_08x._r_n
mov r9d, 0x62
jmp 0x14000175e
mov rcx, qword [rdi + 0x40]
lea rax, [rdi + 0x50]
mov dword [rsp + 0x30], ebp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rax
cmp byte [rdi + 0x30], 1
mov dword [rsp + 0x20], ebp
jne 0x1400016ff
lea r8, str.CAPIPUBLICBLOB
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
jns 0x1400016ba
mov r9d, 0x6a
jmp 0x140001757
mov ecx, dword [rdi + 0x50]
lea rbx, [rdi + 0x50]
call fcn.140087a3c
mov rcx, qword [rdi + 0x40]
lea r8, str.CAPIPUBLICBLOB
mov r9, rax
mov qword [rdi + 0x48], rax
mov eax, dword [rbx]
xor edx, edx
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
jns 0x140001780
mov r9d, WSAStartup
jmp 0x140001757
lea r8, str.PUBLICBLOB
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
jns 0x140001718
mov r9d, 0x79
jmp 0x140001757
mov ecx, dword [rdi + 0x50]
lea rbx, [rdi + 0x50]
call fcn.140087a3c
mov rcx, qword [rdi + 0x40]
lea r8, str.PUBLICBLOB
mov r9, rax
mov qword [rdi + 0x48], rax
mov eax, dword [rbx]
xor edx, edx
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
jns 0x140001780
mov r9d, 0x80
lea r8, str.__d_ACS___BCryptExportKey_Error_:_0x_08x._r_n
mov edx, 0x100
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.140001490
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov eax, ebp
jmp 0x140001785
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001990
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r8
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
inc dword [rdi + 0x28]
mov ebp, dword [rdi + 0x78]
mov ecx, ebp
call fcn.14003dc68
mov r9d, dword [rdi + 0x78]
mov edx, ebp
mov r8, qword [rdi + 0x70]
mov rcx, rax
mov rsi, rax
call fcn.1400014f0
mov r8d, dword [r14]
test r8d, r8d
jle 0x140001ab9
mov rcx, qword [rdi + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 1
xor r12d, r12d
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x38], r12d
mov rdx, r15
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], r12d
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x140001ab9
mov ecx, dword [rsp + 0x50]
call fcn.14003dc68
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140080170
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
mov r8d, dword [r14]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x54], r12d
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x140001ab9
test rsi, rsi
je 0x140001aa1
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.14003dc60
dec dword [rdi + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x54]
mov dword [r14], eax
mov rax, rbx
jmp 0x140001ad9
test rsi, rsi
je 0x140001acb
mov edx, 1
mov rcx, rsi
call fcn.14003dc60
dec dword [rdi + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b00
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r8
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
inc dword [rdi + 0x28]
xor r12d, r12d
mov ebp, dword [rdi + 0x78]
mov ecx, ebp
mov dword [rsp + 0x50], r12d
call fcn.14003dc68
mov r9d, dword [rdi + 0x78]
mov edx, ebp
mov r8, qword [rdi + 0x70]
mov rcx, rax
mov rsi, rax
call fcn.1400014f0
mov r8d, dword [r14]
lea rax, [rsp + 0x50]
mov rcx, qword [rdi + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x140001c20
mov ecx, dword [rsp + 0x50]
call fcn.14003dc68
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140080170
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
mov r8d, dword [r14]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x54], r12d
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x140001c20
test rsi, rsi
je 0x140001c08
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.14003dc60
dec dword [rdi + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x54]
mov dword [r14], eax
mov rax, rbx
jmp 0x140001c40
test rsi, rsi
je 0x140001c32
mov edx, 1
mov rcx, rsi
call fcn.14003dc60
dec dword [rdi + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400103c0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea rcx, [rsp + 0x48]
call fcn.140014ea0
nop
mov r15d, 0x100
lea r12, [0x1400ca38e]
xor r13d, r13d
nop word [rax + rax]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400105cd
test al, 0x10
je 0x1400105cd
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1400105cd
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x1400105cd
lea rbx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 8
cmovae rbx, rdi
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140010571
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140080170
lea rcx, [0x1400ca38c]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x140010510
movzx eax, al
mov byte [rsp + rax + 0x70], 1
add rcx, 2
cmp rcx, r12
jne 0x1400104c1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x140010505
movzx eax, ax
cmp byte [rsp + rax + 0x70], r13b
jne 0x140010563
cmp r8, rbx
je 0x140010571
sub r8, 2
jmp 0x1400104f1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop word [rax + rax]
mov ecx, 1
lea rax, [0x1400ca38c]
movzx edx, word [r8]
cmp word [rax], dx
je 0x140010563
add rax, 2
sub rcx, 1
jne 0x140010540
cmp r8, rbx
je 0x14001055a
sub r8, 2
jmp 0x140010530
mov r8, 0xffffffffffffffff
jmp 0x140010569
sub r8, rbx
sar r8, 1
cmp r8, 2
jbe 0x1400105d7
jmp 0x140010578
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r13w
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rsp + 0x48]
cmp r14, 8
cmovae rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400039c0
lea rcx, [rsp + 0x48]
call fcn.140003450
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm1
jmp 0x140010420
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp r14, 8
jb 0x14001060e
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140010606
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001063b
mov rcx, rdi
call fcn.14003dc60
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400875c4
int3
Function at 0x140013b20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x6a0
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r14, rdx
mov r8, rdx
lea rdx, str.DeleteRecursively_lpPath:__s
mov rbp, rcx
call fcn.14000f4e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call fcn.140080170
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.140080170
mov r8, r14
lea rdx, [0x1400cb788]
lea rcx, [rsp + 0x480]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013bb5
xor eax, eax
jmp 0x140013c9d
mov qword [rsp + 0x6d0], rbx
mov qword [rsp + 0x6d8], rdi
mov edi, 1
nop word [rax + rax]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x270]
xor edx, edx
shr ebx, 4
mov r8d, 0x208
call fcn.140080170
lea r9, [rsp + 0x4c]
mov r8, r14
lea rdx, str._s_s
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
test bl, 1
je 0x140013c5c
lea rdx, [rsp + 0x4c]
lea rcx, [0x1400cb7a4]
call fcn.140087a44
test eax, eax
je 0x140013c6c
lea rdx, [rsp + 0x4c]
lea rcx, [0x1400cb7a8]
call fcn.140087a44
test eax, eax
je 0x140013c6c
lea rdx, [rsp + 0x270]
mov rcx, rbp
call fcn.140013b20
test eax, eax
je 0x140013c6c
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
jmp 0x140013c6c
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
or edi, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x140013bd0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rbx, qword [rsp + 0x6d0]
mov eax, edi
mov rdi, qword [rsp + 0x6d8]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x6a0
pop r14
pop rsi
pop rbp
ret
Function at 0x140024460
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r15, rcx
mov rbx, rdx
lea rcx, [rsp + 0x20]
call fcn.140014ea0
mov r8, qword [rsp + 0x38]
lea r14, [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
cmp r8, 8
mov rdx, rbx
cmovae r14, rcx
cmp qword [rbx + 0x18], 8
jb 0x1400244bb
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r10, [rdx + rax*2]
jb 0x1400244c8
mov rbx, qword [rbx]
xor edi, edi
mov rbp, r10
sub rbp, rbx
mov esi, edi
inc rbp
shr rbp, 1
cmp rbx, r10
cmova rbp, rdi
test rbp, rbp
je 0x14002450a
sub r14, rbx
movzx ecx, word [rbx]
call fcn.140087d74
inc rsi
mov word [r14 + rbx], ax
lea rbx, [rbx + 2]
cmp rsi, rbp
jne 0x1400244e7
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x20]
cmp r8, 8
movabs rbx, 0xcbf29ce484222325
cmovae rdx, rcx
lea r9, [rax + rax]
test r9, r9
je 0x140024553
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdi + rdx]
inc rdi
xor rbx, rax
imul rbx, r10
cmp rdi, r9
jb 0x140024540
cmp r8, 8
jb 0x140024587
lea rdx, [r8*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024582
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400245b5
call fcn.14003dc60
mov rax, qword [r15 + 0x30]
and rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400875c4
int3
Function at 0x140032a20
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rcx]
lea rdx, str.CppWindowsService_in_OnStart
mov r8b, 4
mov rbx, rcx
call qword [rax + 0x48]
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
inc dword [rbx + 0x80]
call fcn.14003d1e0
xor esi, esi
test al, al
je 0x140032ab3
lea rcx, str._ATKWMI__WMI_DSTS
mov dword [rsp + 0x60], esi
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
cmp dword [0x140103418], esi
je 0x140032aae
cmp qword [0x140103428], rsi
je 0x140032aae
lea r9, [rsp + 0x60]
mov edx, 0x130031
call fcn.14003ce40
test al, al
je 0x140032aae
mov eax, dword [rsp + 0x60]
cmp eax, 0xfffffffe
je 0x140032aae
bt eax, 0x10
jae 0x140032aae
test ax, ax
jne 0x140032aae
mov rcx, rbx
call fcn.140033ec0
call fcn.14003d610
dec dword [rbx + 0x80]
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov r8d, 0x1a
mov qword [rsp + 0x40], rsi
lea rdx, [0x1400ce1f8]
mov qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], si
call fcn.1400039c0
lea rdx, [rsp + 0x30]
call fcn.140032c50
call fcn.140032db0
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x40], rsi
lea rdx, [0x1400ce198]
mov qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], si
call fcn.1400039c0
lea rdx, [rsp + 0x30]
call fcn.140032c50
call fcn.1400330c0
mov r9, qword [rbx + 0x98]
lea r8, [0x14003bf30]
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, qword [rsp + 0x70]
mov qword [rbx + 0xa0], rax
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140032c50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov qword [rsp + 0x280], rsi
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
test eax, eax
je 0x140032d2f
mov qword [rsp + 0x290], rdi
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140032cbd
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140032ce4
add rax, 2
test ecx, ecx
jne 0x140032cd0
test edx, edx
jne 0x140032d15
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140032d15
mov edx, 9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
test eax, eax
jne 0x140032cb0
mov rdi, qword [rsp + 0x290]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
mov rsi, qword [rsp + 0x280]
cmp rdx, 8
jb 0x140032d7b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140032d76
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140032da5
mov rcx, r8
call fcn.14003dc60
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x270
pop rbx
ret
call fcn.1400875c4
int3