joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056b70
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x140056bfc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140056bd0
lea r11, [0x14008e760]
nop
cmp r9b, 0x23
jne 0x140056bb3
cmp byte [r8], r9b
jne 0x140056bb3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140056ba0
mov rcx, qword [0x1400e9508]
not eax
cmp dword [rcx + 0x3f58], eax
jne 0x140056be7
mov dword [rcx + 0x3f5c], eax
cmp dword [rcx + 0x3f88], eax
jne 0x140056c59
mov byte [rcx + 0x3f8c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1400e9508]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x3ef8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140011520
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f40], eax
jne 0x140056c52
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.140029d10
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140068d98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140068dd2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140068dd7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140068e20
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140072d60]
cmp byte [rcx + rax], 0
je 0x140068e20
dec r8
sub rdx, 1
jne 0x140068e06
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006a404
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006a44e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006a44e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006a44e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006a44e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006a44e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006a450
xor al, al
add rsp, 0x28
ret
Function at 0x14001ccf0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14001cd36
mov r15, rbx
test r15, r15
je 0x14001ce11
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14001cd92
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14001cd81
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14008a3d0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14001cd12
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14001ce2d
lea rcx, [r13*8]
call fcn.140058280
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14001cdf3
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14001ce11
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14001cdd8
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14001ce13
add rbx, 0xfffffffffffffff8
jne 0x14001ce06
ud2
test r12, r12
je 0x14001cd12
mov rcx, r12
call fcn.1400582bc
mov r15, qword [rsi + 0x10]
jmp 0x14001cd12
call fcn.14008ba70
int3

Function at 0x140023af0
Capabilities:
Query or enumerate registry value

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140059660
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14008aa70
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023c33
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140023c37
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140023390
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400596c0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140023c14
mov edi, 0x3f4
cmp eax, 2
jne 0x140023c14
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14008aa70
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140023c14
lea rdx, [rsp + 0x40]
jmp 0x140023c0a

Function at 0x140024230
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140024277
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140024291
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002426f
mov qword [rsi], rdi
call fcn.14004a050
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400242a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004a050
mov rcx, qword [rsi]
call fcn.140046a20
mov qword [rsi], 0
jmp 0x14002425d
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400ce960]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, [0x1400d8450]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20d
call fcn.14004a030
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002f680
cmp byte [rdi + 0x17], 0
jns 0x140024b12
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14002f700
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400596c0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140026cc0
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140026e80
mov eax, dword [rsi]
mov dword [0x1400ed478], eax
mov bl, 1
test al, 1
jne 0x140026d07
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400596c0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400fc2f8]
test rcx, rcx
je 0x140026d35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400fc2f8], 0
cmp qword [0x1400fc300], 0
jne 0x140026d35
and byte [0x1400ed478], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140026d5e
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x140026d4c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140026dd7
mov qword [0x1400fc2f8], rax
jmp 0x140026cee
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x140026d6c
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140026e26
lea rdi, [rsi + 8]
mov rcx, qword [0x1400fc300]
test rcx, rcx
jne 0x140026da7
mov ecx, 0x18
call fcn.140058280
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400fc300], rax
mov rdx, rdi
call fcn.14001c970
cmp dword [rsi + 0x24], 0
jne 0x140026dcb
mov rcx, qword [0x1400fc300]
cmp byte [rcx + 0x17], 0
jns 0x140026dc5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400a7f30
mov ebx, eax
jmp 0x140026cee
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.14004a030
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400ab300
mov rcx, r14
call fcn.1400ab510
mov rax, qword [rsi + 0x28]
jmp 0x140026d55
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.14004a030
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400ab300
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400a7f00
mov rcx, rbx
call fcn.1400ab510
jmp 0x140026d75
Function at 0x140029af0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400fc448]
test rdi, rdi
jne 0x140029ba3
mov ecx, 0x50
call fcn.140058280
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140058280
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140029bc5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400fc448], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140029bc5
mov rcx, rax
call fcn.140073df8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140029bd0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400596c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140029bd0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.140023f60
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140029d58
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400d87f8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140029d8b
lea rdx, [0x1400d8848]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029d7a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400e0708]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x140029cf2
test r12d, r12d
js 0x140029d81
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140058280
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x140029d78
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a750
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x140029ccb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400298c0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140029d19
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140029d58
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140029d50
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x140029d78
cmp byte [rdi + 0x17], 0
jns 0x140029d44
mov rcx, qword [rdi]
call fcn.1400582bc
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x140029d31
mov rcx, rsi
call fcn.1400582bc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400596c0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x140029c7f
lea rcx, [rsp + 0x20]
call fcn.14008bf30
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140029c7c
Function at 0x14002cb60
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008aa70
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cbeb
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002cd50
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002cbd8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006ec70
test eax, eax
je 0x14002cce5
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cc42
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002cd5e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002cc2f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006ec70
test eax, eax
je 0x14002cd17
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cc95
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002cd6c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002cc86
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006ec70
test eax, eax
je 0x14002ccb6
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400596c0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002ccc7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cc97
jb 0x14002cd7a
test al, al
jns 0x14002ccdb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x14002cc95
jmp 0x14002cc97
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002ccf6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cc97
jb 0x14002cd7a
mov rcx, rsi
test al, al
jns 0x14002cd09
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002cbeb
jmp 0x14002cc97
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002cd28
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cc97
jb 0x14002cd7a
mov rcx, rsi
test al, al
jns 0x14002cd3f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002cc42
jmp 0x14002cc97
dec r14
jne 0x14002cbbf
jmp 0x14002cbeb
dec r14
jne 0x14002cc16
jmp 0x14002cc42
dec r14
jne 0x14002cc6d
jmp 0x14002cc95
ud2
Function at 0x14002dec0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400fc4a8]
mov ecx, dword [0x1400f9658]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002df20
lea rsi, [0x1400fc4a0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400596c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400fc4a8]
call fcn.14005830c
cmp dword [0x1400fc4a8], 0xffffffff
jne 0x14002defc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008aa70
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140058280
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fc4f0]
mov ecx, dword [0x1400f9658]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002dff7
lea rcx, [0x1400fc4f0]
call fcn.14005830c
cmp dword [0x1400fc4f0], 0xffffffff
jne 0x14002dff7
xorps xmm0, xmm0
movups xmmword [0x1400fc4e0], xmm0
movups xmmword [0x1400fc4d0], xmm0
movups xmmword [0x1400fc4c0], xmm0
lea rcx, [0x1400fc4c0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fc4f0]
call fcn.1400583c0
lea r8, [0x1400fc4c0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002e0e0
mov qword [0x1400fc4a0], rsi
lea rcx, [0x1400fc4a8]
call fcn.1400583c0
jmp 0x14002defc

Function at 0x14002e030
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fc4f0]
mov ecx, dword [0x1400f9658]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002e09b
lea rcx, [0x1400fc4f0]
call fcn.14005830c
cmp dword [0x1400fc4f0], 0xffffffff
jne 0x14002e09b
xorps xmm0, xmm0
movups xmmword [0x1400fc4e0], xmm0
movups xmmword [0x1400fc4d0], xmm0
movups xmmword [0x1400fc4c0], xmm0
lea rcx, [0x1400fc4c0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fc4f0]
call fcn.1400583c0
movzx eax, word [0x1400fc4c0]
cmp eax, 9
jne 0x14002e0b1
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x14002e0ac
cmp eax, 6
jne 0x14002e0c1
mov eax, 2
jmp 0x14002e0ac
cmp eax, 0xc
jne 0x14002e0cd
mov eax, 3
jmp 0x14002e0ac
mov eax, 4
jmp 0x14002e0ac
Function at 0x140037530
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400ce960]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400376ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1400fcbe0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14007424c
mov rcx, rbx
call fcn.140073df8
sub r14, rax
lea rdx, [0x1400cf05e]
mov rcx, rbx
mov r8, r14
call fcn.14007424c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14008aa70
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003760c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140074294
test eax, eax
je 0x1400376d0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140037647
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140074294
test eax, eax
je 0x1400376d0
xor eax, eax
mov byte [0x1400fc7d9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400da00e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400376d7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1400e0708]
test eax, eax
je 0x1400376d7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1400fcde0], al
mov byte [0x1400fc7d8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400596c0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140037649
xor eax, eax
jmp 0x14003769f
Function at 0x1400378c0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1400eb040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400378f4
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400379eb
bt ebx, 8
jae 0x140037910
mov eax, ebx
and eax, 0x200
jne 0x1400379eb
cmp edi, 2
lea rax, [0x1400fc7e0]
lea rcx, [0x1400fc9e0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400379eb
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400379eb
bt ebx, 8
jb 0x1400379eb
shr ebx, 9
and ebx, 1
or bl, byte [0x1400fcde0]
je 0x1400379eb
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x140037a0a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400379d4
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14006ec70
test eax, eax
je 0x140037a0f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400379b4
cmp dword [rsp + 0x2c], 0
jne 0x140037a8a
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400596c0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140037997
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140037a1d
test ecx, ecx
jne 0x1400379d4
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140037a49
cmp dword [rsp + 0x2c], 2
jne 0x140037a5a
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x140037a5a
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x140037a73
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140037a60
jmp 0x140037a76
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400379db
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140037a96
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x140037acc
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140073df8
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400231a0
jmp 0x1400379eb
ud2
Function at 0x1400386e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140038757
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400ed570], rax
jne 0x14003875a
mov rsi, rcx
call fcn.14003bc70
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140030130
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004f2d0
mov ecx, dword [0x1400fcdec]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f9658]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x140], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3