joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004888
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400270d0]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x30], 0
mov r13, rcx
mov qword [rsp + 0x48], 0xffffffff80000001
xor edi, edi
mov qword [rsp + 0x50], 0xffffffff80000002
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004a25
mov r12, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
mov r9d, 0x104
xor edx, edx
mov rcx, r12
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140004a25
mov rdx, qword [r13 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.140007630
test eax, eax
je 0x140004966
test rbx, rbx
je 0x140004959
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140007520
test eax, eax
jle 0x140004966
mov rcx, rbx
call fcn.140004328
lea rcx, [rsp + 0x60]
call fcn.1400042fc
mov rbx, rax
lea r8, [rsp + 0x60]
mov r9d, 0x104
mov edx, esi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140004927
test rbx, rbx
je 0x140004a25
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x1400049c6
call fcn.140004328
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004a25
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004a25
call fcn.140004328
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.JavaHome
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400049b9
test rcx, rcx
je 0x140004a13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.1400042fc
mov rbx, rax
test rax, rax
jne 0x140004a6d
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a35
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x1400048d3
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000b3d0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a7d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140004a44
Function at 0x140005d8c
Capabilities:
Create thread
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov r9, r8
mov rbp, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rdi, rdx
mov dword [rsp + 0x20], 0x10000
call fcn.14000cdcc
mov rbx, rax
test rax, rax
jne 0x140005df3
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.14000cdcc
mov rbx, rax
cmp dword [0x140027080], 0
je 0x140005eb0
lea rcx, str.J2D_D3D
call fcn.14000a628
test rax, rax
je 0x140005e30
lea rdx, str.false
mov rcx, rax
call fcn.14001d194
neg eax
sbb ecx, ecx
and ecx, dword [0x140027080]
mov dword [0x140027080], ecx
lea rcx, str.J2D_D3D_PRELOAD
call fcn.14000a628
mov rdi, rax
test rax, rax
je 0x140005e65
lea rdx, str.false
mov rcx, rax
call fcn.14001d194
neg eax
sbb ecx, ecx
and ecx, dword [0x140027080]
mov dword [0x140027080], ecx
jmp 0x140005e6b
mov ecx, dword [0x140027080]
test ecx, ecx
jns 0x140005ea2
and dword [0x140027080], 0
test rdi, rdi
je 0x140005eb0
lea rdx, str.true
mov rcx, rdi
call fcn.14001d194
mov ecx, dword [0x140027080]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [0x140027080], ecx
test ecx, ecx
je 0x140005eb0
lea rcx, str.preloadD3D
call fcn.140005c24
test rbx, rbx
je 0x140005eda
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005ee3
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x140028ae0], 0
je 0x140005efa
mov rax, qword [0x140028b00]
test rax, rax
je 0x140005efa
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000614c
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x10
mov ecx, ebx
call fcn.1400042a4
lea ecx, [rbx + 0x70]
mov dword [rax + 0xc], ebx
mov rsi, rax
call fcn.1400042a4
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.1400042a4
lea rdx, [0x140028b10]
mov rcx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x1400061c3
mov rcx, rbp
call fcn.140004328
mov rcx, rsi
call fcn.140005f14
xor eax, eax
jmp 0x140006305
lea r15, [0x140028b3c]
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov r12, qword [rbp + 8]
test r12, r12
je 0x1400061e2
and qword [rbp + 8], 0
jmp 0x1400061fb
mov rcx, qword [rbp]
lea rdx, [0x140028b10]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb r12, r12
and r12, r15
test r12, r12
je 0x1400062e7
mov rcx, r12
call fcn.14000ab50
cmp eax, 4
jl 0x1400061d2
movsxd rcx, eax
cmp byte [rcx + r12 - 4], 0x2e
jne 0x1400061d2
lea rbx, [rcx + r12 - 3]
lea rdx, [0x14001fd84]
mov rcx, rbx
call fcn.14000b400
test eax, eax
je 0x140006247
lea rdx, [0x14001fd80]
mov rcx, rbx
call fcn.14000b400
test eax, eax
jne 0x1400061d2
mov edx, 0x3b
mov rcx, r12
call fcn.14000cc4c
test rax, rax
jne 0x1400061d2
mov rcx, r14
call fcn.14000ab50
mov rcx, r12
mov rdi, rax
call fcn.14000ab50
lea ecx, [rax + rdi]
mov rbx, rax
movsxd rcx, ecx
call fcn.1400042a4
lea ecx, [rdi - 1]
mov rdx, r14
movsxd r8, ecx
mov rcx, rax
mov r13, rax
call fcn.14000acf0
lea r11d, [rbx + 1]
movsxd rcx, edi
lea rcx, [rcx + r13 - 1]
movsxd r8, r11d
mov rdx, r12
call fcn.14000acf0
mov r11d, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc r11d
cmp eax, r11d
jge 0x1400062d4
add eax, eax
mov dword [rsi + 0xc], eax
cmp eax, r11d
jl 0x1400062b8
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
call fcn.1400042d0
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r13
inc dword [rsi + 8]
jmp 0x1400061d2
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 8]
call fcn.140004328
mov rcx, rbp
call fcn.140004328
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140006484
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 0x2a
mov rdi, rcx
call fcn.14000cc4c
test rax, rax
jne 0x1400064aa
mov rax, rdi
jmp 0x1400064fa
mov dl, 0x3b
mov rcx, rdi
call fcn.140006034
mov rcx, rax
mov rbx, rax
call fcn.140006324
mov dl, 0x3b
mov rcx, rbx
call fcn.140005f70
mov rcx, rbx
mov rsi, rax
call fcn.140005f14
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.14000a628
test rax, rax
je 0x1400064f7
lea rcx, str.Expanded_wildcards:_n____before:___s__n____after_:___s__n
mov r8, rsi
mov rdx, rdi
call fcn.14000a4c0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400066a4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov rbp, r8
mov rdi, rdx
mov esi, ecx
je 0x1400067fb
cmp qword [rdx], 0xffffffffffffffff
je 0x1400067fb
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.14000cf58
test rax, rax
js 0x1400067fb
mov rcx, qword [rdi + 8]
inc rcx
call fcn.14000bf14
mov rbx, rax
test rax, rax
je 0x1400067fb
mov r12, qword [rdi + 8]
mov rdx, rax
mov ecx, esi
mov r8d, r12d
call fcn.140018b68
movsxd rcx, eax
cmp rcx, r12
jne 0x1400067f3
cmp dword [rdi + 0x18], 0
jne 0x140006745
mov byte [r12 + rbx], 0
test rbp, rbp
je 0x14000673d
mov eax, dword [rdi + 8]
mov dword [rbp], eax
mov rax, rbx
jmp 0x1400067fd
cmp dword [rdi + 0x18], 8
jne 0x1400067f3
mov eax, dword [rdi + 8]
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov r9d, 0x58
lea r8, str.1.2.8
lea rcx, [rsp + 0x20]
lea edx, [r9 - 0x67]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call fcn.1400079e8
test eax, eax
js 0x1400067f3
mov rcx, qword [rdi]
inc rcx
call fcn.14000bf14
mov rsi, rax
test rax, rax
je 0x1400067f3
mov qword [rsp + 0x30], rax
mov eax, dword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov dword [rsp + 0x38], eax
call fcn.140007bb8
mov rcx, rbx
test eax, eax
jns 0x1400067ca
call fcn.14000a844
mov rcx, rsi
jmp 0x1400067f6
mov rax, qword [rdi]
mov byte [rsi + rax], 0
call fcn.14000a844
lea rcx, [rsp + 0x20]
call fcn.140009210
test eax, eax
js 0x1400067c5
test rbp, rbp
je 0x1400067ee
mov eax, dword [rdi]
mov dword [rbp], eax
mov rax, rsi
jmp 0x1400067fd
mov rcx, rbx
call fcn.14000a844
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x14000689c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea rdx, [r8 - 0x14]
xor r8d, r8d
mov edi, ecx
call fcn.14000cf58
mov rsi, rax
test rax, rax
jns 0x1400068ca
or rax, 0xffffffffffffffff
jmp 0x14000690a
mov r8d, 0x14
mov rdx, rbx
mov ecx, edi
call fcn.140018b68
test eax, eax
js 0x1400068c4
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
or rax, 0xffffffffffffffff
cmp ecx, 0x7064b50
cmove rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000691c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rdx
mov edi, 2
mov rdx, 0xffffffffffffffea
mov r8d, edi
mov ebp, ecx
call fcn.14000cf58
mov rbx, rax
test rax, rax
js 0x140006aac
lea r8d, [rdi + 0x14]
mov rdx, rsi
mov ecx, ebp
call fcn.140018b68
test eax, eax
js 0x140006aac
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x1400069b9
mov rcx, rsi
call fcn.14000681c
test eax, eax
je 0x1400069b1
mov r8, rbx
mov rdx, rsi
mov ecx, ebp
call fcn.14000689c
mov rbx, rax
mov rax, rbx
jmp 0x140006ab0
mov r8d, edi
xor edx, edx
mov ecx, ebp
call fcn.14000cf58
mov r13, rax
test rax, rax
js 0x140006aac
mov r12d, 0x10015
mov r8d, edi
mov ecx, ebp
cmp rax, r12
mov ebx, r12d
cmovl rbx, rax
mov rdx, rbx
neg rdx
call fcn.14000cf58
test rax, rax
js 0x140006aac
mov ecx, r12d
call fcn.14000bf14
mov rdi, rax
test rax, rax
je 0x140006aac
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
call fcn.140018b68
test eax, eax
js 0x140006aa4
movsxd r12, eax
add eax, 0xffffffea
movsxd rbx, eax
add r12, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140006aa4
cmp byte [rbx], 0x50
jne 0x140006a7b
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x140006a7b
movzx eax, byte [rbx + 0x15]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rbx + 0x14]
or rcx, rax
lea rax, [rcx + rbx + 0x16]
cmp rax, r12
je 0x140006a80
dec rbx
jmp 0x140006a32
mov r8d, 0x16
mov rdx, rbx
mov rcx, rsi
call fcn.14000acf0
mov rcx, rdi
call fcn.14000a844
sub rbx, r12
add rbx, r13
jmp 0x140006995
mov rcx, rdi
call fcn.14000a844
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x14000a460
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000a2d0

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14000cc92
call fcn.14000c9e0
and dword [rax], 0
call fcn.14000c9c0
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14000dadc
mov eax, ebx
jmp 0x14000cce2
test edx, 0xfffffff9
jne 0x14000cc75
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000ccbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000ca00
call fcn.14000c9c0
mov eax, dword [rax]
jmp 0x14000cce2
test al, 0x10
jne 0x14000cce0
test al, 1
je 0x14000cce0
test bl, 2
je 0x14000cce0
call fcn.14000c9e0
mov dword [rax], 5
call fcn.14000c9c0
mov dword [rax], 0xd
jmp 0x14000ccb2
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140011f8f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400270d0]
jne 0x14000b3ea
rol rcx, 0x10
test cx, 0xffff
jne 0x14000b3e6
repz ret
ror rcx, 0x10
jmp 0x140011ee8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400297a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140029898]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140011f6d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400297a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140011f8f
mov rax, qword [rsp + 0x88]
mov qword [0x140029898], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140029838], rax
mov rax, qword [0x140029898]
mov qword [0x140029710], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140029820], rax
mov dword [0x140029700], 0xc0000409
mov dword [0x140029704], 1
mov rax, qword [0x1400270d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400270d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140029798], eax
mov ecx, 1
call fcn.140016614
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140023880]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140029798], 0
jne 0x140012016
mov ecx, 1
call fcn.140016614
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140016664
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400270d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000db38
xor ebx, ebx
cmp qword [0x140029ca0], rbx
mov rdi, rax
jne 0x140016777
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001684e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001684e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140029ca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140029ca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140029cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140029cc0], rax
test rax, rax
je 0x14001676e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140029cb8], rax
jmp 0x14001677e
mov rax, qword [0x140029cb8]
jmp 0x140016785
mov rax, qword [0x140029cb8]
mov r11, qword [0x140029cc0]
cmp rax, rdi
je 0x1400167ec
cmp r11, rdi
je 0x1400167ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140029cc0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400167ec
test rax, rax
je 0x1400167ec
call rsi
test rax, rax
je 0x1400167e6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400167e6
test byte [rsp + 0x40], 1
jne 0x1400167ec
bts ebp, 0x15
jmp 0x14001682c
mov rcx, qword [0x140029ca8]
cmp rcx, rdi
je 0x14001682c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001682c
call rax
mov rbx, rax
test rax, rax
je 0x14001682c
mov rcx, qword [0x140029cb0]
cmp rcx, rdi
je 0x14001682c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001682c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140029ca0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001684e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140016850
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000b3d0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000ca90]
mov dword [rax], 1
mov rax, qword [0x14000caa0]
mov dword [rax], 1
mov rax, qword [0x14000cab0]
mov dword [rax], 1
mov rax, qword [0x14000ca20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001fa0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140004710
sub rsp, rax
mov eax, dword [0x14002c0e0]
mov rsi, rcx
test eax, eax
je 0x140002040
xor ebx, ebx
lea rdi, [0x14002a0e0]
test eax, eax
jg 0x140001fdc
jmp 0x140001ff0
add rbx, 1
cmp dword [0x14002c0e0], ebx
jle 0x140001ff0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001fd0
jmp 0x140002027
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140002005
cmp word [rsi + 2], 0x3a
je 0x140002027
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002090
movsxd rbx, dword [0x14002c0e0]
cmp ebx, 0x3ff
jle 0x1400020a8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140001720
test al, al
je 0x1400020ca
movsxd rbx, dword [0x14002c0e0]
mov rcx, rdi
lea rdi, [0x14002a0e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002c0e0]
add eax, 1
mov dword [0x14002c0e0], eax
jmp 0x140001fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002014
xor eax, eax
jmp 0x14000202c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002c0e0], 1
mov rdx, rax
lea rax, [0x14002a0e0]
mov qword [rax + rbx*8], rdx
jmp 0x140002027
mov rcx, rbx
call fcn.140001f00
nop
nop word cs:[rax + rax]
nop

Function at 0x140002280
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400250a8]
test rcx, rcx
je 0x1400022bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400022e0
mov rcx, qword [0x1400250a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400280c0], 0
jne 0x1400022f8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400250a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400022ae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14000c1a0]
mov qword [rsp + 0x20], 0
lea rdi, [0x1400280e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400023c4
test al, 0x10
je 0x1400022c4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400022c4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002370
jmp 0x1400022c4