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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140037600
mov eax, dword [rsi]
mov dword [0x1401a4078], eax
test al, 1
jne 0x140037561
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401b04f8]
test rcx, rcx
jne 0x14003757b
mov rcx, qword [0x1401b04d0]
test rcx, rcx
je 0x14003759f
jmp 0x1400375c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401b04f8], 0
mov rcx, qword [0x1401b04d0]
test rcx, rcx
jne 0x1400375c1
and byte [0x1401a4078], 0xfe
mov ecx, 0x18
call fcn.1400bc06c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401b04d0], rax
mov rdx, qword [rsi + 8]
call fcn.140038210
cmp dword [rsi + 0x14], 0
jne 0x1400375e6
mov rcx, qword [0x1401b04d0]
cmp byte [rcx + 0x17], 0
jns 0x1400375e0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140115ed0
Function at 0x14003a080
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401b0540]
test rdi, rdi
jne 0x14003a133
mov ecx, 0x50
call fcn.1400bc06c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400bc06c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14003a155
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 [0x1401b0540], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003a181
mov rcx, rax
call fcn.1400dca48
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14003a1b0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f3900
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400f3900
int3
Function at 0x14003a1b0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140045080
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14003a344
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14003a37b
lea rdx, [0x140175b1e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003a369
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1401c0008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14003a371
test r12d, r12d
js 0x14003a3e6
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400bc06c
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14003a38e
mov rdx, qword [r14 + r15]
call fcn.1400f09d0
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14003a2b2
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140039db0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14003a306
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14003a344
cmp r15, rbx
je 0x14003a33c
add r15, 0xffffffffffffffe8
jmp 0x14003a32a
mov rcx, qword [r15]
call fcn.1400bc0a8
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14003a33c
test r15, r15
je 0x14003a3ba
cmp byte [r15 + 0x17], 0
jns 0x14003a31e
jmp 0x14003a316
mov rcx, rbx
call fcn.1400bc0a8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400bd5c0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14003a264
xor r15d, r15d
xor ebx, ebx
jmp 0x14003a2df
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14003a261
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f3900
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x41
call fcn.1400f3900
lea rcx, [rsp + 0x30]
call fcn.1400f0940
int3
Function at 0x14003d810
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bf710
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 0x14003d8a5
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d8a5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d871
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d892
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d51c4
test eax, eax
je 0x14003d9de
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 0x14003d906
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d906
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d8d2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d8f3
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d51c4
test eax, eax
je 0x14003d9af
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 0x14003d963
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d963
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d933
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d954
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d51c4
test eax, eax
je 0x14003d984
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d991
and eax, 0x7f
jmp 0x14003d995
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d965
mov rcx, rsi
mov rdx, r14
call fcn.1400fec00
cmp word [rax], 0x5c
jne 0x14003d963
jmp 0x14003d965
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d9bc
and eax, 0x7f
jmp 0x14003d9c0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d965
mov rcx, rsi
mov rdx, r14
call fcn.1400fec00
cmp word [rax], 0x5c
jne 0x14003d906
jmp 0x14003d965
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d9eb
and eax, 0x7f
jmp 0x14003d9ef
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d965
mov rcx, rsi
mov rdx, r14
call fcn.1400fec00
cmp word [rax], 0x5c
jne 0x14003d8a5
jmp 0x14003d965
Function at 0x140040a30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140040a6b
movzx eax, word [0x1401b05f8]
cmp eax, 9
jne 0x140040ab3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401b0628]
call fcn.1400bc1c0
cmp dword [0x1401b0628], 0xffffffff
jne 0x140040a55
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc258
jmp 0x140040a55
test eax, eax
je 0x140040a66
cmp eax, 6
jne 0x140040ac3
mov eax, 2
jmp 0x140040a66
cmp eax, 0xc
jne 0x140040acf
mov eax, 3
jmp 0x140040a66
mov eax, 4
jmp 0x140040a66
Function at 0x140041440
Capabilities:
Create thread

Disassembly:
jmp 0x140041440
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400bc06c
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x140196e88]
je 0x14004150e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140041910]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140041523
test r14, r14
je 0x140041518
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.140079aa0
jmp 0x1400414a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400414e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14004153c
mov ebp, eax
cmp eax, 0x5af
je 0x14004153c
cmp ebp, 0xe
jne 0x140041567
mov rcx, rbx
call fcn.1400f4eb0
test rsi, rsi
je 0x1400414e8
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140196e88]
jne 0x14004155d
call fcn.140079bf0
mov rcx, rsi
call fcn.1400bc0a8
jmp 0x1400414e8
mov eax, dword [0x1401b0680]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400415ea
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140044ad0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x1400415a7
and r8d, 0x7f
jmp 0x1400415b1
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.140071ec0
mov rcx, qword [0x1401b0678]
mov rdx, r14
call fcn.1400479c0
cmp byte [rsp + 0x4f], 0
jns 0x140041544
mov rcx, qword [rsp + 0x38]
call fcn.1400bc0a8
jmp 0x140041544
lea rcx, [0x1401b0680]
call fcn.1400bc1c0
cmp dword [0x1401b0680], 0xffffffff
jne 0x140041588
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140047990
mov qword [0x1401b0678], rax
lea rcx, [0x1401b0680]
call fcn.1400bc258
jmp 0x140041588
Function at 0x140041e30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x14016e8e0]
mov qword [rcx], rax
add rcx, 8
call fcn.14008d780
lea rcx, [rsi + 0x10]
call fcn.14008d780
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14008d780
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x14017d13c]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14004b840
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.1400189d0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x14017d140], edx
je 0x14004202b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.140093390
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14004204f
call fcn.14004b3a0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14004b450
mov qword [0x1401b0a00], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x14017d144], edx
jne 0x140042062
test dword [0x14017d148], edx
jne 0x140042070
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14004b5e0
jmp 0x140041fec
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401c0008]
jmp 0x140041ff9
cmp rax, 0x40
mov eax, 0x100
jmp 0x140041fe3
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140042044
Function at 0x140043ba0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x140043bd0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140043c07
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140085b20
lea rax, [rdx - 1]
test rdx, rax
jne 0x140043bde
mov rdi, rdx
jmp 0x140043bb5
mov rcx, rdx
call fcn.14007f0c0
mov rdi, rax
jmp 0x140043bb5
mov rcx, rdx
call fcn.14007f0c0
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x140043bbe
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x140043bff
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140043c29
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140043c2e
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400ef850
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140171f50]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x140043beb
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x140043beb
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x140043bf3

Function at 0x1400447a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140044895
cmp qword [rsi], 0
jne 0x140044895
cmp dword [rsi + 0x14], 0
jne 0x140044895
cmp qword [rsi + 8], 0
jne 0x140044895
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140044814
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004487c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004480c
mov qword [rsi], r14
call fcn.140085d10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14004484e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140044864
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140044846
mov qword [rsi + 8], r14
call fcn.140085d10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140085d10
mov rcx, qword [rsi + 8]
call fcn.1400820d0
mov qword [rsi + 8], 0
jmp 0x140044833
call fcn.140085d10
mov rcx, qword [rsi]
call fcn.1400820d0
mov qword [rsi], 0
jmp 0x1400447fa
mov rcx, rsi
call fcn.14011c860
mov rax, qword [rsi]
jmp 0x1400447da
Function at 0x140047c40
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14016f5f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140047dbc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1401b0e90]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400dce9c
mov rcx, rbx
call fcn.1400dca48
sub r14, rax
lea rdx, [0x1401733fc]
mov rcx, rbx
mov r8, r14
call fcn.1400dce9c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400bf710
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 0x140047d1c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400dcee4
test eax, eax
je 0x140047de4
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 0x140047d57
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400dcee4
test eax, eax
je 0x140047de4
xor eax, eax
mov byte [0x1401b0a89], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140179f98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140047de0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1401c0008]
test eax, eax
je 0x140047de0
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401b1090], al
mov byte [0x1401b0a88], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140047daf
mov al, 1
jmp 0x140047d59
Function at 0x140048090
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 [0x140196028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400480c3
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400481b7
bt ebx, 8
jae 0x1400480df
mov eax, ebx
and eax, 0x200
jne 0x1400481b7
cmp edi, 2
lea rax, [0x1401b0a90]
lea rcx, [0x1401b0c90]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400481b7
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 0x1400481b7
cmp byte [0x1401b1090], 0
setne al
bt ebx, 8
jb 0x1400481b7
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400481b7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x1400481d6
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x1400481a4
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400d51c4
test eax, eax
je 0x140048201
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140048184
cmp dword [rsp + 0x2c], 0
jne 0x1400481db
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bd5c0
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 0x140048167
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400481e7
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1401136a0
jmp 0x1400481b7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14004820f
test ecx, ecx
jne 0x1400481a4
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004823e
cmp dword [rsp + 0x2c], 2
jne 0x14004824f
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004824f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140048268
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140048255
jmp 0x14004826b
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x1400481ab
Function at 0x140049f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140196028]
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 0x140049ff8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140049fe2
cmp dword [rsp + 0x38], 4
jne 0x140049fe2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140049fe2

Function at 0x14004a000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400bd560
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400bf710
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 0x14004a0c3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004a0c7
lea rcx, [rsp + 0x840]
call fcn.1400dca48
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140031e90
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004a0a4
cmp eax, 2
jne 0x14004a11c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bf710
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
cmp eax, 0xfffffc00
jb 0x14004a123
lea rcx, [rsp + 0x40]
call fcn.1400dca48
lea rdx, [rsp + 0x40]
jmp 0x14004a097
mov edi, 0x3f4
jmp 0x14004a0a4
mov edi, 0xea
jmp 0x14004a0a4