joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ea20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rdi
mov dl, 0xaa
call fcn.14012fcf0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14003ea70
xor esi, esi
jmp 0x14003ead5
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14003ea8e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14003ea80
jmp 0x14003ea90
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400294e0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002af30
mov rcx, rsi
mov rdx, rbx
call fcn.1400295f0
mov rcx, rbx
call fcn.1400295c0
mov rcx, rdi
call fcn.1400295c0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14012cde0
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003eb00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14012fcf0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14003eb80
cmp word [rsp + 0x70], 0
je 0x14003eb80
mov qword [rsp + 0x60], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x14003eb60
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400294e0
jmp 0x14003ebef
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140029490
mov rcx, rdi
call fcn.14003ea20
test al, al
je 0x14003ebc3
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400294c0
jmp 0x14003ebe5
lea rax, [0x140164b18]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400294e0
lea rcx, [rsp + 0x40]
call fcn.1400295c0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14012cde0
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x14003efa0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x140164b4a]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x390
call fcn.14002c260
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14012fcf0
mov word [rsp + 0xb0], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x14003f0c8
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x14003f081
xor eax, eax
nop word [rax + rax]
cmp word [rsp + rax*2 + 0xb2], 0
lea rax, [rax + 1]
jne 0x14003f070
jmp 0x14003f083
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400294e0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002af30
mov rcx, rsi
mov rdx, rbx
call fcn.1400295f0
mov rcx, rbx
call fcn.1400295c0
mov rcx, rdi
call fcn.1400295c0
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14012cde0
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003f0f0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x140164b5f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3a0
call fcn.14002c260
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
test byte [rsi], 1
je 0x14003f171
mov rsi, qword [rsi + 0x10]
jmp 0x14003f175
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14003a270
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14012cde0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f360
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov ebx, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rdi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rdi
mov dl, 0xaa
call fcn.14012fcf0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor ebp, ebp
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.140041f00
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140042170
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x14003f406
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14003f412
jmp 0x14003f570
shr rax, 1
test rax, rax
je 0x14003f570
lea r13, [rsp + 0x32]
lea rdi, [rsp + 0x48]
lea rsi, [rsp + 0x298]
lea r15, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r14d, r14d
jmp 0x14003f451
mov rax, qword [rsp + 0x38]
mov r14d, ebp
test rax, rax
je 0x14003f570
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.14012fcf0
mov rcx, rsi
mov rdx, rdi
call fcn.1400420e0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14003f4b4
test bl, bl
jne 0x14003f49c
mov rcx, rdi
call fcn.140041e80
test al, al
je 0x14003f498
mov rcx, rdi
call fcn.140041e80
xor ebp, ebp
test al, al
je 0x14003f500
jmp 0x14003f52e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f4ae
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140041e80
test al, al
je 0x14003f500
xor ebp, ebp
test bl, bl
je 0x14003f52e
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.14003f360
mov ebp, eax
test eax, eax
jne 0x14003f52e
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f4eb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003f52e
jmp 0x14003f518
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f50f
mov rcx, qword [rsp + 0x40]
call r12
xor ebp, ebp
test eax, eax
jne 0x14003f52e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r14d, r14d
cmovne ebp, r14d
mov rcx, rdi
call fcn.1400027b0
mov rcx, rsi
mov rdx, rdi
call fcn.140042170
mov rcx, r15
mov rdx, rdi
call fcn.1400295f0
mov rcx, rdi
call fcn.1400295c0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14003f440
shr rax, 1
jmp 0x14003f445
lea rcx, [rsp + 0x30]
call fcn.1400295c0
lea rcx, [rsp + 0x298]
call fcn.140042070
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14012cde0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003f820
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e
call fcn.14002c260
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003f928
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056c90
test al, al
je 0x14003f8e1
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140056d30
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003f92f
mov esi, dword [rsp + 0x2c]
jmp 0x14003f940
mov esi, 0xffffffff
jmp 0x14003f94a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140056d00
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012cde0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003f980
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x57
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003fa68
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056c90
test al, al
je 0x14003fa39
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140056d30
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003fa6f
mov esi, dword [rsp + 0x2c]
jmp 0x14003fa80
mov esi, 0xffffffff
jmp 0x14003fa8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140056d00
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012cde0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003fac0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x73
call fcn.14002c260
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbp
xor r8d, r8d
call fcn.14003a130
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056c90
test al, al
je 0x14003fb80
movsxd r9, r15d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140056d30
mov rax, rsi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb edi, edi
or edi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140056d00
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012cde0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003fc10
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003fd05
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056c90
test al, al
je 0x14003fcc9
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140056d30
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140056d00
jmp 0x14003fd0a
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012cde0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003fd40
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056c90
test al, al
je 0x14003fdec
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140056d30
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140056d00
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012cde0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x1400407a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400407cf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400407d2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400407f3
test bl, bl
je 0x14004084a
cmp byte [rdi + 8], 0
je 0x14004083c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004083f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14004080a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004080d
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140040823
xor edi, edi
jmp 0x1400408c6
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x14004087e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140040881
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14004085b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004085e
mov rcx, qword [rdi]
call fcn.14005bbf0
mov rcx, qword [0x1401af870]
mov dil, 1
test rcx, rcx
je 0x1400408c6
mov edx, eax
mov r8d, esi
call fcn.140059100
jmp 0x1400408c6
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140040894
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x1400408a5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400408a8
mov rcx, qword [rdi]
call fcn.14005bbf0
mov rcx, qword [0x1401af870]
test rcx, rcx
je 0x1400408c3
mov edx, eax
mov r8d, esi
call fcn.140059100
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012cde0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140040d60
Capabilities:
Create thread

Disassembly:
jmp 0x140040d60
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rbx, r8
mov rsi, rdx
mov r15, rcx
xor edi, edi
test rcx, rcx
setne dil
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl edi, 0x10
mov ecx, 0x10
call fcn.14012c988
mov r14, rax
mov qword [rax], rsi
test rbx, rbx
setne byte [rax + 8]
mov dword [rax + 0xc], ebp
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], 0
lea r8, [0x140041160]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140040dde
test rbx, rbx
je 0x140040e0b
mov qword [rbx], rax
jmp 0x140040e14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140040df7
mov ebx, eax
cmp eax, 0x5af
je 0x140040df7
cmp ebx, 0xe
jne 0x140040e33
mov rcx, r15
call fcn.140040330
mov rcx, r14
call fcn.14012c9c4
xor esi, esi
jmp 0x140040e17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov sil, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012cde0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov eax, dword [0x1401af1a8]
mov ecx, dword [0x1401af720]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140040eb3
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.140035940
movzx eax, byte [rsp + 0x38]
mov rcx, rax
shr rcx, 1
test al, 1
lea rax, [rsp + 0x39]
cmovne rax, qword [rsp + 0x48]
cmovne rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov rcx, qword [0x1401af1a0]
lea rdx, [rsp + 0x50]
call fcn.140065230
test byte [rsp + 0x38], 1
je 0x140040dff
mov rcx, qword [rsp + 0x48]
call fcn.14012c9c4
jmp 0x140040dff
lea rcx, [0x1401af1a8]
call fcn.14012cb70
cmp dword [0x1401af1a8], 0xffffffff
jne 0x140040e54
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140065210
mov qword [0x1401af1a0], rax
lea rcx, [0x1401af1a8]
call fcn.14012cc08
jmp 0x140040e54

Function at 0x1400413f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004146b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004146b
cmp dword [rsp + 0x38], 4
jne 0x14004146b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012cde0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140041490
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14012cd70
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14012fcf0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140041579
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14004152b
mov edi, 0x3f4
cmp eax, 1
jne 0x140041579
lea rdx, [rsp + 0x840]
jmp 0x14004156f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14012fcf0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x140041579
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140022b94
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14012cde0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400415a0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14014b2c4
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140042d20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140042db8
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str..._.._base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
jmp 0x140042d78
add rdi, rbx
sub rsi, rbx
je 0x140042db8
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140042d70
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140024e50
mov rcx, r12
call fcn.140024ee0
mov rcx, r12
call fcn.140024ef0
jmp 0x140042d70
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012cde0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret