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

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, reloc.WS2_32.dll_accept
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x14001d700
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x14001d6c6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.14001d300
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x14001d6b9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret

Function at 0x1400213a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x28]
sub rcx, 8
lea r8, [0x140025c10]
lea rdx, [rsp + 0x30]
call fcn.140028f10
call fcn.140021c20
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.14002a080
mov qword [rsp + 0x30], rax
lea rdx, str.luminati
mov rcx, qword [rax]
call fcn.140029f60
test eax, eax
jne 0x1400213ff
call fcn.140021c20
mov rcx, rax
mov edx, 0x1ff
call fcn.1401717e0
add rsp, 0x28
ret
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.14002cc20
mov rcx, qword [rsp + 0x30]
mov edx, 0x5c
mov rcx, qword [rcx]
call fcn.14017beb4
mov rbx, rax
mov byte [rax], 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14017679c
mov byte [rbx], 0x5c
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14017679c
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400219f0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x20], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], r12
mov r12, rdx
mov qword [rax - 0x28], r13
mov r13, rcx
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov dword [rax + 8], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
mov rsi, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x140021a52
mov r15d, dword [rsp + 0x90]
jmp 0x140021adf
lea rax, [rsp + 0x88]
mov dword [rsp + 0x80], ebp
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x88], ebp
xor edx, edx
mov rcx, rsi
call fcn.14001fdd0
movsxd rax, dword [rsp + 0x88]
movsxd rbx, dword [rsp + 0x80]
lea rcx, [rax + rbx*4]
add rcx, rcx
call fcn.140176114
mov rdi, rax
lea r9, [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
lea r8, [rax + rbx*8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.14001fdd0
mov r15d, dword [rsp + 0x80]
dec r15d
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x90], r15d
mov r8d, r15d
lea rdx, str.main_argc__d
mov ecx, 5
call fcn.14002d250
movsxd r14, r15d
lea ebp, [r15*8 + 8]
mov esi, ebp
test r15d, r15d
jle 0x140021b47
xor eax, eax
mov ebx, eax
nop dword [rax]
mov r8, qword [rdi + rbx*8]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov ecx, 0xfde9
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, eax
inc rbx
mov eax, 0
cmp rbx, r14
jl 0x140021b10
movsxd rcx, esi
mov dword [r13], r15d
call fcn.140176114
xor edx, edx
mov qword [r12], rax
mov r13d, edx
test r15d, r15d
jle 0x140021bc1
mov ebx, edx
mov r13d, r15d
nop word [rax + rax]
mov rcx, qword [r12]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
xor edx, edx
movsxd rax, ebp
add rax, rcx
mov qword [rcx + rbx*8], rax
mov ecx, esi
mov rax, qword [r12]
sub ecx, ebp
mov r8, qword [rdi + rbx*8]
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov rax, qword [rax + rbx*8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc rbx
mov edx, 0
add ebp, eax
cmp rbx, r14
jl 0x140021b70
cmp dword [rsp + 0x80], 0
mov rax, qword [r12]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x98]
movsxd rcx, r13d
mov r13, qword [rsp + 0x50]
mov qword [rax + rcx*8], rdx
mov rcx, rdi
je 0x140021c0b
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x70
pop rdi
ret
call fcn.14017610c
add rsp, 0x70
pop rdi
ret
Function at 0x140021c20
Capabilities:
Get common file path

Disassembly:
push rbp
push r14
mov rbp, rsp
sub rsp, 0x48
lea r14, [rbp + 0x10]
add r14, 0xfffffffffffffff8
lea r8, [0x140025c10]
mov rcx, r14
lea rdx, [rbp + 0x18]
call fcn.140028f10
lea r8, [0x140025c10]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.140028f10
call fcn.140021980
mov rcx, qword [rbp - 0x20]
mov rdx, rax
call fcn.14002a080
mov r8, rax
mov qword [rbp - 0x20], rax
mov rax, qword [0x140278ed8]
test rax, rax
jne 0x140021e36
mov r8, qword [r8]
lea rdx, str._s_luminati
mov rcx, qword [rbp + 0x18]
call fcn.14002a130
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021e1a
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call fcn.14002c840
test eax, eax
jne 0x140021e1a
lea r8, [0x140025c10]
mov rcx, r14
lea rdx, [rbp - 0x28]
call fcn.140028f10
lea r8, [0x140025c10]
mov qword [rbp - 0x28], rax
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140028f10
lea r8, [0x140025c10]
mov qword [rbp + 0x30], rax
lea rdx, [rbp + 0x28]
mov rcx, r14
call fcn.140028f10
call fcn.140021980
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.14002a080
mov rdx, qword [0x140278ed0]
mov qword [rbp + 0x28], rax
test rdx, rdx
jne 0x140021dff
mov qword [rsp + 0x40], rbx
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rbp + 0x20], rdx
call fcn.14002a270
lea r9, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401a4dd0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140021df3
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
xor ecx, ecx
call fcn.140176794
mov rcx, rax
call fcn.140171070
mov rsi, rax
cmp eax, 0xffffffff
je 0x140021df3
mov edx, esi
mov rcx, rbx
call fcn.14002a2b0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbx]
movsxd r8, esi
call fcn.140176794
mov rcx, rax
call fcn.140171070
cmp rax, 0xffffffffffffffff
je 0x140021df3
mov rcx, rbx
call fcn.14002cc10
mov rcx, qword [rbp + 0x28]
call fcn.14002cc20
mov rcx, r14
mov rbx, rax
call fcn.140029330
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140025b90
mov r8, qword [rbp + 0x30]
lea rdx, str._s_BrightData__s
mov rcx, qword [rbp - 0x28]
mov r9, qword [rax]
mov r8, qword [r8]
call fcn.14002a130
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
mov qword [0x140278ed0], rdx
mov qword [rax], 0
jmp 0x140021df5
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
lea rcx, [0x140278ed8]
call fcn.14002a080
mov rax, qword [0x140278ed8]
add rsp, 0x48
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
mov qword [0x140278ed8], rax
mov qword [rcx], 0
mov rax, qword [0x140278ed8]
add rsp, 0x48
pop r14
pop rbp
ret
Function at 0x140027690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x1400276f8
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x1400276f0
mov ecx, dword [r8 + 0x20]
jmp 0x1400276f8
test dl, dl
jns 0x1400276f8
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x1400277f8
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov ebx, dword [r14 + 0x68]
mov esi, dword [rdi - 0x1c]
dec rbx
mov eax, dword [rdi - 0x14]
or rsi, r12
not rbx
and rbx, rsi
test eax, eax
jne 0x14002777f
mov ecx, dword [rdi]
test cl, 0x40
je 0x140027777
mov eax, dword [r8 + 0x20]
jmp 0x14002777f
test cl, cl
jns 0x14002777f
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x1400277bf
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x1400277bf
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400275c0
test eax, eax
je 0x14002781e
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x1400277df
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x1400277d1
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x140027750
test r10, r10
je 0x140027877
bt edx, 0x19
jae 0x140027822
cmp r11, r9
jne 0x140027877
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
jmp 0x140027877
xor eax, eax
jmp 0x14002787a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140263018]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14002781e
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140028588
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400285b6
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x140028610
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x140028610
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x140028602
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140028624
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140028697
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x140028697
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x140028697
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x14002868c
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x1400286a4
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x140028678
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x140028699

Function at 0x140028b70
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x38
mov rdx, rcx
mov qword [rax - 0x18], 0
lea rcx, [rax - 0x18]
lea r8, [rax + 0x10]
call fcn.14002a160
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140028bd6
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call fcn.14002ac40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x28]
call fcn.14002ac10
mov ecx, 2
call fcn.140176908
mov rcx, qword [rsp + 0x20]
mov rdx, rax
call fcn.14017d9e0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140028bfc
call fcn.14017610c
add rsp, 0x38
ret
Function at 0x14002bc90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov eax, 0x40
mov r12d, 0x2f80
xor edi, edi
mov ebx, r9d
cmp r9d, eax
mov r14, r8
mov r15, rdx
mov rsi, rcx
cmovle ebx, eax
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov rax, qword [r12]
test rax, rax
jne 0x14002bce7
call fcn.1401760e4
mov ebp, dword [rax]
mov edx, ebx
mov rcx, rsi
call fcn.14002a2b0
mov rcx, qword [rsi]
lea eax, [rbx + 1]
movsxd r8, eax
mov r9, r15
mov edx, 1
call fcn.140176c20
test eax, eax
jle 0x14002bd57
nop dword [rax]
add edi, eax
cmp eax, ebx
jle 0x14002bd57
add ebx, ebx
lea eax, [rbx + rdi]
lea ecx, [rax + 1]
cmp eax, 0x40000000
jge 0x14002bd52
movsxd rdx, ecx
mov rcx, qword [rsi]
call fcn.14017d424
lea ecx, [rbx + 1]
mov qword [rsi], rax
movsxd r8, ecx
mov r9, r15
movsxd rcx, edi
mov edx, 1
add rcx, rax
call fcn.140176c20
test eax, eax
jg 0x14002bd10
jmp 0x14002bd57
mov ebp, 0x1b
mov rax, qword [rsi]
movsxd rcx, edi
mov byte [rcx + rax], 0
test r14, r14
je 0x14002bd69
mov dword [r14], edi
mov rax, qword [r12]
test rax, rax
jne 0x14002bd77
call fcn.1401760e4
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov dword [rax], ebp
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002c010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r9
mov rcx, r9
mov ebx, r8d
mov rdi, rdx
call fcn.14002cc40
mov rdx, rax
mov rcx, r15
call fcn.14002c4c0
mov r14, rax
test rax, rax
jne 0x14002c053
or rax, 0xffffffffffffffff
jmp 0x14002c12d
mov qword [rsp + 0x50], rsi
cmp ebx, 0xffffffff
jne 0x14002c06a
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002c061
movsxd r8, ebx
mov r9, r14
mov edx, 1
mov rcx, rdi
call fcn.14017e464
mov rsi, rax
cmp eax, ebx
je 0x14002c11a
mov rcx, rbp
call fcn.14002ca10
bt eax, 0xc
jb 0x14002c0f5
mov rcx, rbp
call fcn.14002ca10
and eax, 0xf
cmp al, 6
ja 0x14002c11a
mov rcx, rbp
call fcn.14002ca10
and eax, 0xf
cmp al, 5
jbe 0x14002c0f5
mov rcx, rbp
call fcn.14002ca10
test eax, 0x1300
jne 0x14002c0f5
mov rcx, rbp
call fcn.14002ca10
mov edi, eax
mov rcx, rbp
and edi, 0xc10000
or rdi, 0x3e0000
call fcn.14002ca10
shr rdi, 0x10
lea rcx, [0x14027e320]
and eax, 0xf
cmp dword [rcx + rdi*4], eax
jl 0x14002c11a
mov rcx, rbp
call fcn.14002ca10
or eax, 0x3e0000
mov dword [rsp + 0x20], esi
mov ecx, eax
lea rdx, str.failed_fwrite__s__sz__d__returned__d
mov r9d, ebx
mov r8, r15
call fcn.14002d250
mov rcx, r14
call fcn.14017e080
sub esi, ebx
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14002c1e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rbx, rcx
mov r13d, 0x10000
mov ecx, r13d
mov rdi, rdx
call fcn.140176114
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r14, rax
or r12d, 0xffffffff
call fcn.140172570
test eax, eax
jne 0x14002c2e0
lea rdx, [0x1401a9384]
mov qword [rsp + 0xa0], r15
mov rcx, rbx
call fcn.140171cf0
mov r15, rax
test rax, rax
je 0x14002c2d8
lea rdx, [0x1401a951c]
mov qword [rsp + 0x90], rbp
mov rcx, rdi
call fcn.140171cf0
mov rbp, rax
test rax, rax
je 0x14002c2bb
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x98], rsi
test rbx, rbx
je 0x14002c2b0
cmp rbx, r13
mov esi, ebx
mov r9, r15
mov edx, 1
cmovg esi, r13d
mov rcx, r14
movsxd rdi, esi
mov r8, rdi
call fcn.140176c20
cmp eax, esi
jne 0x14002c2b3
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14017e464
cmp eax, esi
jne 0x14002c2b3
sub rbx, rdi
jne 0x14002c271
xor r12d, r12d
mov rsi, qword [rsp + 0x98]
mov rcx, r15
call fcn.14017e080
test rbp, rbp
je 0x14002c2d0
mov rcx, rbp
call fcn.14017e080
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov rcx, r14
call fcn.14017610c
mov eax, r12d
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret

Function at 0x14002c6a0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x68]
sub rcx, 8
lea r8, [fcn.14002ac10]
lea rdx, [rsp + 0x70]
call fcn.140028f10
mov qword [rsp + 0x70], rax
mov rax, qword [0x140278f70]
test rax, rax
jne 0x14002c812
lea rcx, str.TEMP
mov qword [rsp + 0x60], rbx
call fcn.1401711e0
test rax, rax
jne 0x14002c7a0
lea rcx, [0x1401a93c0]
call fcn.1401711e0
test rax, rax
jne 0x14002c7a0
mov rcx, qword [rsp + 0x70]
call fcn.14002ac90
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test eax, eax
je 0x14002c754
mov rcx, qword [rsp + 0x70]
mov edx, eax
call fcn.14002acc0
mov rdx, qword [rsp + 0x70]
mov ecx, ebx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140278f70]
mov rdx, qword [rdx]
call fcn.14002a260
jmp 0x14002c7af
lea rcx, str.SystemRoot
call fcn.1401711e0
test rax, rax
je 0x14002c817
movzx ecx, byte [rax]
lea rdx, [0x140231b10]
test byte [rdx + rcx*2], 4
je 0x14002c817
cmp byte [rax + 1], 0x3a
jne 0x14002c817
movsx r8d, cl
lea rdx, str._c:_Temp
lea rcx, [0x140278f70]
call fcn.14002a130
jmp 0x14002c7af
mov rdx, rax
lea rcx, [0x140278f70]
call fcn.14002a080
mov rcx, qword [0x140278f70]
lea rdx, [rsp + 0x20]
call fcn.140172570
test eax, eax
jne 0x14002c7d9
movzx eax, word [rsp + 0x26]
test eax, eax
je 0x14002c7d9
and eax, 0xf000
cmp eax, 0x4000
je 0x14002c806
mov r8, qword [0x140278f70]
lea rdx, str.creating_temp_directory__s
mov ecx, 0x3e0004
call fcn.14002d250
mov rcx, qword [0x140278f70]
mov edx, 0x1ff
call fcn.1401717e0
test eax, eax
jne 0x14002c829
mov rax, qword [0x140278f70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rdx, str.failed_to_get_temp_directory
mov ecx, 0x3e0000
call fcn.14002d720
int3
lea rdx, str.failed_to_create_temp_directory
mov ecx, 0x3e0000
call fcn.14002d720
int3
Function at 0x14002cc30
Capabilities:
Write file on windows

Disassembly:
lea r9, str.wbEe
or r8d, 0xffffffff
jmp fcn.14002c010

Function at 0x14002dcb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov ecx, 2
movsxd rdi, r8d
mov rbp, rdx
call fcn.140176908
mov rcx, rdi
lea r15, [0x140000000]
sar rcx, 0x10
mov rbx, rax
movzx r14d, cl
lea rax, [rsp + 0x20]
mov ecx, edi
mov rsi, rdi
and ecx, 0xf
cmp dword [r15 + r14*4 + 0x27e320], ecx
jge 0x14002dd13
test edi, 0x300
je 0x14002de2c
cmp dword [0x14027e720], 0
je 0x14002dd3b
call fcn.14002e240
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14016eb50
movzx ecx, word [0x1401a95a0]
mov word [rax], cx
inc rax
lea rdx, [r14 + r14*2]
mov rcx, rax
mov rdx, qword [r15 + rdx*8 + 0x263db8]
call fcn.14016eb50
movzx ecx, word [0x1401a95a0]
and esi, 0xf
mov word [rax], cx
lea rcx, [rax + 1]
mov rdx, qword [r15 + rsi*8 + 0x263040]
call fcn.14016eb50
movzx ecx, word [0x1401a959c]
lea r8, [rsp + 0x11f]
mov rdx, rbp
mov word [rax], cx
lea rsi, [rax + 2]
movzx ecx, byte [0x1401a959e]
sub r8d, esi
mov byte [rax + 2], cl
mov rcx, rsi
call fcn.14016e8b0
lea rcx, [rsp + 0x11f]
mov r9, rbx
cmp rax, rcx
mov r8d, 1
lea rcx, [rsp + 0x20]
jae 0x14002ddcc
mov byte [rax], 0xa
sub rax, rcx
lea rcx, [rsp + 0x20]
lea rdx, [rax + 1]
call fcn.14017e464
jmp 0x14002ddf6
lea rax, [rsp + 0x20]
sub rsi, rax
mov rdx, rsi
call fcn.14017e464
mov rdx, rbx
mov rcx, rbp
call fcn.14017d9e0
mov rdx, rbx
lea rcx, [0x1401a9228]
call fcn.14017d9e0
mov eax, dword [0x14026389c]
cmp eax, 0xffffffff
jne 0x14002de16
mov rcx, rbx
call fcn.140171120
mov ecx, eax
call fcn.140171780
mov dword [0x14026389c], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x14002de2c
mov rcx, rbx
call fcn.14017e69c
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14002ebe0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0
mov ebp, r8d
mov edi, edx
mov rsi, rcx
mov rbx, rcx
je 0x14002ec1f
cmp dword [rbx + 4], edi
jne 0x14002ec16
mov edx, dword [rbx]
mov r8d, ebp
mov rcx, rsi
call fcn.14002ebe0
add rbx, 0x30
cmp dword [rbx], 0
jne 0x14002ec04
mov edx, ebp
mov ecx, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140173470
Function at 0x14002f660
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx]
mov r14d, r8d
mov qword [rbp + 0x460], 0
mov esi, edx
test rcx, rcx
je 0x14002f6a8
call fcn.14017610c
mov qword [rdi], 0
lea rdx, [rsp + 0x58]
lea rcx, str.SeDebugPrivilege
call fcn.140053960
test eax, eax
jne 0x14002f80c
test esi, esi
jne 0x14002f6cc
call fcn.140171770
mov esi, eax
mov ecx, esi
call fcn.140030cd0
test eax, eax
jne 0x14002f7f8
xor edx, edx
lea ecx, [rax + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002f80c
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14002f7f8
mov qword [rsp + 0x568], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
jne 0x14002f734
call fcn.140171770
cmp esi, eax
jne 0x14002f734
mov ebx, 1
jmp 0x14002f736
xor ebx, ebx
cmp dword [rsp + 0x44], esi
jne 0x14002f7cb
mov r8d, dword [rsp + 0x40]
lea rdx, str.Thread__ld:_n
mov rcx, rdi
call fcn.140029d80
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
call fcn.1401710c0
mov qword [rbp + 0x460], rax
test rax, rax
jne 0x14002f78b
lea rdx, str.Failed_opening_the_thread:__m_n
mov rcx, rdi
call fcn.140029d80
jmp 0x14002f7cb
test ebx, ebx
je 0x14002f823
lea rcx, [rsp + 0x70]
call qword [0x140279108]
mov r9, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov r8d, esi
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.14002f9f0
test ebx, ebx
jne 0x14002f7cb
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
lea rcx, [rbp + 0x460]
mov ebx, eax
call fcn.1400536e0
test ebx, ebx
jne 0x14002f718
mov rbx, qword [rsp + 0x568]
lea rcx, [rsp + 0x58]
call fcn.1400539c0
lea rcx, [rsp + 0x30]
call fcn.1400536e0
mov rax, rdi
mov rsi, qword [rsp + 0x570]
add rsp, 0x540
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, eax
call fcn.140171070
cmp rax, 0xffffffffffffffff
jne 0x14002f84a
lea rdx, str.Failed_to_suspend_the_thread:__m_n
mov rcx, rdi
call fcn.140029d80
jmp 0x14002f7cb
mov rcx, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14002f79e
lea rdx, str.Failed_getting_thread_context:__m_n
mov rcx, rdi
call fcn.140029d80
jmp 0x14002f7be