joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400883c0
sub rsp, rax
mov rax, qword [0x1400d4040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140075978
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006546f
mov rax, rbp
jmp 0x140065577
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd6b10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140075c08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd6b10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140065573
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140065573
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140075c08
test rax, rax
js 0x140065573
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140065573
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140065565
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140065565
cmp byte [rcx], 0xd
jne 0x14006554b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006555a
cmp byte [rcx + 1], 0xa
jne 0x14006555a
inc rcx
jmp 0x14006555a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd4420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006552d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140065577
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005cb00
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006f6e4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006f753
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f753
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f753
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f753
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f753
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f753
cmp dword [rcx + 0xf8], 0
je 0x14006f753
mov ecx, ebx
call fcn.14006f804
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14006f5e0
nop
cmp dword [rbp + 0x20], 0
je 0x14006f7a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006f7ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006f6e4
Function at 0x14006f8e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006f753
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f753
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f753
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f753
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f753
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f753
cmp dword [rcx + 0xf8], 0
je 0x14006f753
mov ecx, ebx
call fcn.14006f804
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14006f5e0
nop
cmp dword [rbp + 0x20], 0
je 0x14006f7a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006f7ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006f6e4
Function at 0x14007638c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400d6b10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400763e3
cmp word [rdx], r13w
jne 0x1400763e3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400763e8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007650d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007652e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140076421
mov rdx, r9
mov word [rbx], cx
jmp 0x140076448
cmp r9, r8
jae 0x140076458
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140076402
jmp 0x14007650d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140076502
cmp dword [rsp + 0x80], esi
je 0x140076502
lea r8, [0x1400d6b10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400764da
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400764aa
mov word [rbx], r13w
jmp 0x14007650a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400764b7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007650a
cmp word [rsp + 0x70], r13w
jne 0x1400764e7
cmp rbx, r14
je 0x1400764a4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140075c10
cmp word [rsp + 0x70], r13w
je 0x14007650d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400d6b10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140076507
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007650d
Function at 0x140079378
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007938e
mov al, 1
jmp 0x1400793ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007939f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400793ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007efd0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400793ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400793ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400793ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400793ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007dfa8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007dfd8
xor eax, eax
jmp 0x14007e09b
mov rbp, rbx
cmp word [rax], si
je 0x14007dffd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007dfe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007dfe0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14007dec8
movsxd r14, eax
test eax, eax
jne 0x14007e03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007dfd1
mov rcx, r14
call fcn.1400799b4
mov rdi, rax
test rax, rax
jne 0x14007e054
xor ecx, ecx
call fcn.140077514
jmp 0x14007e030
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14007dec8
test eax, eax
jne 0x14007e085
mov rcx, rdi
call fcn.140077514
jmp 0x14007e08f
xor ecx, ecx
call fcn.140077514
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400816b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14007602c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140081755
cmp ebx, dword [rsp + 0x30]
je 0x14008174e
test esi, esi
je 0x14008174e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140081729
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140081736
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140081713
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008173a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140081757
mov eax, 1
jmp 0x140081757
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400862cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400657a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140086356
cmp byte [rbp - 0x21], r15b
je 0x140086351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008638c
call fcn.140077818
test eax, eax
jne 0x140086378
cmp byte [rbp - 0x21], r15b
je 0x140086370
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008638c
cmp byte [rbp - 0x21], r15b
je 0x140086389
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14007527c
test eax, eax
jne 0x14008642c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400657a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400863cb
cmp byte [rbp - 0x21], r15b
je 0x140086400
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140086400
call fcn.140077818
test eax, eax
jne 0x1400863ec
cmp byte [rbp - 0x21], r15b
je 0x1400863e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140086400
cmp byte [rbp - 0x21], r15b
je 0x1400863fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14007527c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008642c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008642f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008643d
mov rcx, rdi
call fcn.140077514
cmp byte [rbp + 0x3f], r15b
je 0x14008644c
mov rcx, qword [rbp + 0x27]
call fcn.140077514
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140086c3c
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140075c10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140075c10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140086d8c
cmp rax, 0xffffffffffffffff
je 0x140086d8c
xor edi, edi
test rbp, rbp
jle 0x140086d37
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007749c
mov rbx, rax
test rax, rax
jne 0x140086cc4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140086d2d
mov edx, 0x8000
mov ecx, r14d
call fcn.140072238
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140078b74
cmp eax, 0xffffffff
je 0x140086d0d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140086cd4
mov edx, r15d
mov ecx, r14d
call fcn.140072238
jmp 0x140086d2d
cmp byte [rsi + 0x38], dil
je 0x140086d24
cmp dword [rsi + 0x34], 5
jne 0x140086d24
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140086d2d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140077514
jmp 0x140086da0
jns 0x140086da0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140075c10
cmp rax, 0xffffffffffffffff
jne 0x140086d58
cmp byte [rsi + 0x30], dil
je 0x140086da0
mov edi, dword [rsi + 0x2c]
jmp 0x140086da0
mov ecx, r14d
call fcn.14007efd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140086da0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140086da0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140086d99
mov eax, dword [rsi + 0x2c]
jmp 0x140086d9e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140075c10
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400884b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400884d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400884d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002a88
Capabilities:
Query or enumerate registry value

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 r13
sub rsp, 0x6a0
mov rbp, rcx
mov rdi, r8
mov rsi, rdx
mov ebx, 0xff
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8, rbx
mov byte [rsp + 0x70], 0
call sub.msvcrt.dll_memset
and dword [rsp + 0x64], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x2a0]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
xor ebx, ebx
and qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x68], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140002c0f
lea r13, [0x140014821]
lea rdx, str.productid
lea rcx, [rsp + 0x70]
mov r8d, 9
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x140002bc8
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x12b
mov byte [rsp + 0x170], al
call sub.msvcrt.dll_memset
lea rdx, str.DigitalProductID
lea rcx, [rsp + 0x170]
call fcn.140012ab4
lea rdx, [rsp + 0x79]
lea rcx, [rsp + 0x170]
call sub.msvcrt.dll_strcat
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x170]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call fcn.140002870
lea rax, [rsp + 0x68]
add ebx, 1
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x2a0]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov edx, ebx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140002b23
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x1400057b4
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x140
xor r13d, r13d
cmp byte [rdx], 0x5c
mov rbp, rcx
mov rbx, rdx
mov rcx, rdx
lea edi, [r13 + 1]
mov dword [rax + 0x10], r13d
jne 0x1400057ec
cmp byte [rdx + 1], 0x5c
jne 0x1400057ec
lea rcx, [rdx + 2]
lea rdx, [rsp + 0x178]
xor r8d, r8d
call fcn.140001af0
cmp dword [rsp + 0x178], r13d
jne 0x14000583b
mov rcx, rbx
call sub.WS2_32.dll_gethostbyname
cmp rax, r13
je 0x14000582d
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x178]
mov r8d, 4
mov rdx, qword [rdx]
call sub.msvcrt.dll_memcpy
cmp dword [rsp + 0x178], r13d
je 0x140005909
lea rsi, [rbp + 0x270]
mov rcx, rsi
call fcn.14000940c
mov r11, qword [rsi + 8]
cmp r11, r13
je 0x14000585b
call r11
mov rbx, rax
jmp 0x14000585f
or rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x140005909
xor eax, eax
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0xfe
mov byte [rsp + 0x180], r13b
mov byte [rsp + 0x40], r13b
mov word [rsp + 0x181], ax
mov byte [rsp + 0x183], al
call sub.msvcrt.dll_memset
mov ebp, dword [rbp + 0x800]
mov r12d, dword [rsp + 0x178]
mov rcx, rsi
call fcn.14000940c
mov r11, qword [rsi + 0x18]
cmp r11, r13
je 0x1400058e9
mov dword [rsp + 0x38], ebp
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xff
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x180]
mov r9w, 4
mov edx, r12d
mov rcx, rbx
mov qword [rsp + 0x20], r13
call r11
cmp dword [rsp + 0x44], r13d
mov rcx, rsi
cmovne edi, r13d
call fcn.14000940c
mov r11, qword [rsi + 0x10]
cmp r11, r13
je 0x140005909
mov rcx, rbx
call r11
mov eax, edi
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005c10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov rax, rdx
mov rsi, rcx
mov dword [r11 - 0x40], r13d
mov qword [r11 - 0x50], r13
mov dword [r11 - 0x48], r13d
mov rcx, rax
xor edx, edx
mov dword [rsp + 0x4c], 0x100
mov dword [r11 - 0x44], r13d
call fcn.140008280
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140005dd7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.140008f88
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.140008f48
mov r12, qword [rsp + 0x38]
lea r9, [rsp + 0xa0]
mov rdx, r12
mov r8d, ebx
mov rcx, rdi
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
mov byte [rbx + r12], r13b
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsi + 0x80c]
mov r15d, r13d
mov qword [rsp + 0x30], r9
mov rdi, r13
cmp r12, r13
lea rbp, [0x140014821]
mov esi, r15d
cmovne rbp, r12
mov r12, rdi
cmp byte [rdi + rbp], r13b
je 0x140005dd7
mov bl, byte [r12 + rbp]
cmp bl, r13b
je 0x140005d15
lea rcx, str._____r_n_t
movzx edx, bl
call sub.msvcrt.dll_strchr
cmp rax, r13
je 0x140005da2
mov r9, qword [rsp + 0x30]
mov edx, r13d
mov eax, esi
mov r13, r12
sub eax, r15d
mov ecx, 1
sub r13, rdi
cmp eax, 0x103
mov dword [rsp + 0xa8], edx
mov dword [rsp + 0xa0], ecx
jle 0x140005d45
mov eax, 0x103
mov r13, rax
test eax, eax
jle 0x140005d78
movsxd rdx, r15d
movsxd r8, eax
mov rcx, r9
add rdx, rbp
call sub.msvcrt.dll_memcpy
mov r9, qword [rsp + 0x30]
mov ecx, dword [rsp + 0xa0]
mov edx, dword [rsp + 0xa8]
mov byte [r13 + r9], 0
xor r13d, r13d
jmp 0x140005d87
xor r13d, r13d
cmp bl, r13b
jne 0x140005d85
mov ecx, r13d
jmp 0x140005d8c
mov edx, ecx
cmp bl, r13b
jne 0x140005d94
mov r15d, esi
mov rdi, r12
jmp 0x140005d9d
lea r15d, [rsi + 1]
lea rdi, [r12 + 1]
cmp edx, r13d
je 0x140005db3
mov r9, qword [rsp + 0x30]
add esi, 1
add r12, 1
jmp 0x140005cef
cmp ecx, r13d
je 0x140005dd7
mov rcx, qword [rsp + 0x90]
mov rdx, r9
call fcn.140005924
mov r12, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
jmp 0x140005cd1
lea rcx, [rsp + 0x38]
call fcn.140008f88
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005dfc
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rdi, rcx
mov rbx, rdx
mov r12d, 0x104
lea rcx, [rax - 0x127]
xor edx, edx
mov r8, r12
mov byte [rax - 0x128], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x31]
mov r8, r12
xor edx, edx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbx
xor esi, esi
call fcn.140008530
lea r13d, [rsi + 0x5c]
lea rcx, [rsp + 0x30]
mov edx, r13d
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x140005ea8
lea rcx, [rsp + 0x30]
mov edx, r13d
mov byte [rax], sil
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x140005ea8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
mov r8d, r12d
mov byte [rax], sil
call fcn.140008530
lea rsi, [rsp + 0x140]
lea rcx, [rdi + 0x80c]
lea rdx, [rsp + 0x270]
mov dword [rsp + 0x270], r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.14000871c
cmp dword [rax + 0x10], 2
jne 0x140005f00
and qword [rsp + 0x270], 0
lea rdx, str.SeRestorePrivilege
lea rcx, [rsp + 0x270]
call fcn.140011258
mov rcx, qword [rsp + 0x270]
test rcx, rcx
je 0x140005f00
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r12, str.__PRODUCKEY_TEMP_HIVE__
mov r13, 0xffffffff80000002
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov r8, rbx
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
mov ebx, eax
jne 0x140005f84
lea rax, [rsp + 0x270]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, eax
jne 0x140005f78
mov rdx, qword [rsp + 0x270]
mov r8, rsi
mov rcx, rdi
call fcn.140003e48
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x135
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140012ab4
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strlen
test eax, eax
jle 0x140005fff
cdqe
cmp byte [rsp + rax + 0x1f], 0x5c
je 0x140005fff
lea rdx, [0x140015020]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rdx, str.system32config_software
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000602f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140005dfc
jmp 0x140006031
xor eax, eax
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret