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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0xa8]
mov r10, rcx
mov rcx, qword [r9]
mov r14, r9
mov eax, ecx
mov rbp, rdx
mov qword [rsp + 0x40], rcx
mov r12, qword [rsi]
mov dword [r11 + 0x20], eax
cmp rax, rcx
je 0x1400b6520
mov ebx, 0x80070057
jmp 0x1400b669f
mov eax, r12d
mov dword [rsp + 0xa8], eax
cmp rax, r12
jne 0x1400b6516
mov eax, ebp
cmp rax, rbp
jne 0x1400b6516
mov r13, qword [rsp + 0xb0]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x98]
mov qword [rsp + 0x30], r13
xor edi, edi
mov qword [rsp + 0x28], r8
mov rcx, r10
mov r8, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400b6637
mov edx, dword [rsp + 0x98]
mov ecx, 0x800700ea
inc edx
cmp qword [rsp + 0xa0], rdi
je 0x1400b65ab
mov eax, edx
cmp rax, qword [r14]
cmova ebx, ecx
test r13, r13
je 0x1400b65bd
mov eax, dword [rsp + 0xa8]
cmp rax, qword [rsi]
cmova ebx, ecx
mov eax, edx
mov qword [r14], rax
mov eax, dword [rsp + 0xa8]
mov qword [rsi], rax
mov eax, ebx
cmp ebx, ecx
je 0x1400b66b2
mov ecx, 0x80070103
cmp ebx, ecx
je 0x1400b66b2
test ebx, ebx
js 0x1400b669f
mov r9, qword [rsp + 0xa0]
mov r8, r14
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.1400b60e0
test eax, eax
js 0x1400b66b2
mov rax, qword [rsp + 0x90]
mov r9, rsi
mov rcx, qword [rsp + 0xa0]
mov rdx, r12
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call fcn.1400b5b74
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x1400b66b2
mov ecx, 0x80070103
cmp ebx, ecx
je 0x1400b66b0
mov ecx, 0x800700ea
cmp ebx, ecx
je 0x1400b6680
mov rcx, qword [0x140158280]
lea rax, [0x140158280]
cmp rcx, rax
je 0x1400b669f
test byte [rcx + 0x1c], 1
je 0x1400b669f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140139770]
mov edx, 0x1d
mov dword [rsp + 0x20], ebx
mov r9d, ebp
call fcn.1400057f8
jmp 0x1400b669f
mov edx, dword [rsp + 0x98]
inc edx
cmp qword [r14], rdx
jb 0x1400b66a3
mov eax, dword [rsp + 0xa8]
cmp qword [rsi], rax
jb 0x1400b66a3
mov ebx, 0x8000ffff
mov eax, ebx
jmp 0x1400b66b2
mov eax, dword [rsp + 0xa8]
mov qword [rsi], rax
mov qword [r14], rdx
mov eax, ecx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b6f1c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
mov rcx, rbp
mov ebx, eax
call fcn.1400b401c
test al, al
je 0x1400b6f83
lea esi, [rdi + 0x3a98]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jb 0x1400b6f6d
mov ecx, eax
sub ecx, ebx
cmp esi, ecx
ja 0x1400b6f9a
sub ebx, eax
cmp ebx, 0x3e8
jb 0x1400b6f9a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
mov rcx, rbp
mov ebx, eax
call fcn.1400b401c
test al, al
jne 0x1400b6f51
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov al, 1
jmp 0x1400b6f85

Function at 0x1400b7788
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
mov eax, dword [0x140160c14]
xor esi, esi
test eax, eax
je 0x1400b77b3
cmp eax, 1
setne al
mov byte [rcx], al
jmp 0x1400b7935
mov qword [rbp + 0x28], rsi
lea rdx, str.IsWow64Process2
lea rcx, [rbp + 0x28]
call fcn.1400b76a8
cmp eax, 0x8007007f
jne 0x1400b77d3
mov rbx, rsi
jmp 0x1400b77df
test eax, eax
js 0x1400b7937
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x1400b785f
mov word [rbp + 0x28], si
mov word [rbp + 0x30], si
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
movabs r10, 0xbd24a77672d3d270
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x28]
mov rax, rbx
call qword [case.0x1400bdf0e.0]
test eax, eax
jne 0x1400b7853
call fcn.1400b4f5c
mov ebx, eax
lea rdx, [0x140158280]
mov rcx, qword [0x140158280]
cmp rcx, rdx
je 0x1400b784c
test byte [rcx + 0x1c], 1
je 0x1400b784c
mov edx, 0x1e
mov r9d, ebx
lea r8, [0x140139810]
mov rcx, qword [rcx + 0x10]
call fcn.1400059f4
mov eax, ebx
jmp 0x1400b7937
movzx eax, word [rbp + 0x28]
neg ax
jmp 0x1400b7912
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp - 0x30], 0xc
je 0x1400b7928
mov qword [rbp + 0x30], rsi
lea rdx, str.IsWow64Process
lea rcx, [rbp + 0x30]
call fcn.1400b76a8
cmp eax, 0x8007007f
jne 0x1400b78a3
mov rbx, rsi
jmp 0x1400b78af
test eax, eax
js 0x1400b7937
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x1400b7928
mov dword [rbp + 0x28], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
movabs r10, 0x9c44073830d36370
lea rdx, [rbp + 0x28]
mov rax, rbx
call qword [case.0x1400bdf0e.0]
test eax, eax
jne 0x1400b790d
call fcn.1400b4f5c
mov ebx, eax
lea rdx, [0x140158280]
mov rcx, qword [0x140158280]
cmp rcx, rdx
je 0x1400b784c
test byte [rcx + 0x1c], 1
je 0x1400b784c
mov edx, 0x1f
jmp 0x1400b7839
mov eax, dword [rbp + 0x28]
neg eax
sbb ecx, ecx
neg ecx
inc ecx
mov dword [0x140160c14], ecx
cmp ecx, 1
setne al
mov byte [rdi], al
jmp 0x1400b7935
mov dword [0x140160c14], 1
mov byte [rdi], sil
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b91ac
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rdx, r8
mov rbx, rcx
mov byte [rcx], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400b9211
call fcn.1400b4f5c
mov ebx, eax
mov rcx, qword [0x140158280]
lea rax, [0x140158280]
cmp rcx, rax
je 0x1400b920d
test byte [rcx + 0x1c], 1
je 0x1400b920d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140139aa8]
mov edx, 0x1a
mov r9d, ebx
call fcn.1400059f4
mov eax, ebx
jmp 0x1400b921d
cmp dword [rsp + 0x38], 0
setne al
mov byte [rbx], al
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400bb0f8
Capabilities:
Get system firmware table

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, dword [rdx]
mov rbx, rdx
mov r8, rcx
mov edx, 0x56454453
mov ecx, 0x41435049
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ecx, eax
test eax, eax
jne 0x1400bb133
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x1400bb141
mov eax, dword [rbx]
cmp eax, ecx
mov dword [rbx], ecx
sbb ecx, ecx
and ecx, 0x80070008
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400bbba4
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov rbx, rcx
mov ecx, dword [rcx]
mov rsi, rdx
mov r14d, 0x40
lea rdi, [rbx + 0x60]
mov byte [rcx + rbx + 0x20], 0x80
inc ecx
cmp ecx, 0x38
jbe 0x1400bbc03
mov eax, ecx
mov edx, r14d
sub edx, ecx
lea rcx, [rbx + 0x20]
add rcx, rax
call fcn.1400f78f0
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.1400bbc94
xor ecx, ecx
mov eax, ecx
mov edx, r14d
sub edx, ecx
lea rcx, [rbx + 0x20]
add rcx, rax
call fcn.1400f78f0
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
shl rax, 3
lea rdx, [rbx + 0x20]
bswap rax
mov r8, r14
mov qword [rbx + 0x58], rax
mov rcx, rdi
call fcn.1400bbc94
mov rcx, rdi
mov r8d, 4
mov rax, qword [rcx]
lea rcx, [rcx + 8]
rol rax, 0x20
bswap rax
mov qword [rsi], rax
lea rsi, [rsi + 8]
sub r8, 1
jne 0x1400bbc42
mov edx, 0x80
mov rcx, rbx
call fcn.1400f78f0
movups xmm0, xmmword [0x140139eb0]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x140139ec0]
movups xmmword [rdi + 0x10], xmm1
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400bd5c4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400bd642
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x1400bd642
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r9 + rbx + 0xc]
xor edx, edx
test r11d, r11d
je 0x1400bd642
mov r9d, dword [rcx + 0xc]
cmp r10d, r9d
jb 0x1400bd637
mov r8d, dword [rcx + 8]
lea eax, [r9 + r8]
cmp r10d, eax
jb 0x1400bd65d
inc edx
add rcx, 0x28
cmp edx, r11d
jb 0x1400bd621
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, r9
add rdi, rbx
je 0x1400bd642
cmp dword [0x140160c38], 0
jne 0x1400bd695
cmp dword [rcx + 0x24], 0
mov dword [0x140160c38], 1
jl 0x1400bd685
mov ecx, 0x19
int 0x29
mov rdx, r8
mov rcx, rdi
mov rbx, r8
call fcn.1400bd52c
jmp 0x1400bd698
mov rbx, r8
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bd648
lea ecx, [rax + 0x19]
int 0x29
jmp 0x1400bd648

Function at 0x1400daa3c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400daa52
mov al, 1
jmp 0x1400daab2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400daa63
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400daab0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e3de4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400daab0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400daab0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400daab0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400daab2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400dc448
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.1400ea090
sub rsp, rax
mov rax, qword [0x14015da88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d925c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400dc497
mov rax, rbp
jmp 0x1400dc59f
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 + 0x15f230]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400dc084
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x15f230]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400dc59b
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 0x1400dc59b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400dc084
test rax, rax
js 0x1400dc59b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400dc59b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400dc58d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400dc58d
cmp byte [rcx], 0xd
jne 0x1400dc573
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400dc582
cmp byte [rcx + 1], 0xa
jne 0x1400dc582
inc rcx
jmp 0x1400dc582
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15d420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400dc555
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400dc59f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e9450
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 0x1400ddc00
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, [0x14015f230]
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 0x1400ddc57
cmp word [rdx], r13w
jne 0x1400ddc57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ddc5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ddd81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ddda2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ddc95
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ddcbc
cmp r9, r8
jae 0x1400ddccc
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 0x1400ddc76
jmp 0x1400ddd81
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 0x1400ddd76
cmp dword [rsp + 0x80], esi
je 0x1400ddd76
lea r8, [0x14015f230]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ddd4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ddd1e
mov word [rbx], r13w
jmp 0x1400ddd7e
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 0x1400ddd2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ddd7e
cmp word [rsp + 0x70], r13w
jne 0x1400ddd5b
cmp rbx, r14
je 0x1400ddd18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400dc08c
cmp word [rsp + 0x70], r13w
je 0x1400ddd81
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, [0x14015f230]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ddd7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ddd81
Function at 0x1400df9a4
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 0x1400dfa13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dfa13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400dfa13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400dfa13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400dfa13
cmp dword [rcx + 0x84], 0xe
jbe 0x1400dfa13
cmp dword [rcx + 0xf8], 0
je 0x1400dfa13
mov ecx, ebx
call fcn.1400dfac4
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.1400df8a0
nop
cmp dword [rbp + 0x20], 0
je 0x1400dfa61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400dfa6c
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400df9a4

Function at 0x1400dfba8
Capabilities:
Parse pe header

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

Function at 0x1400e33c8
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.1400d5320
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 0x1400e3469
cmp ebx, dword [rsp + 0x30]
je 0x1400e3462
test esi, esi
je 0x1400e3462
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e343d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e344a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e3427
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e344e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e346b
mov eax, 1
jmp 0x1400e346b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e8098
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.1400dc08c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400dc08c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e81e8
cmp rax, 0xffffffffffffffff
je 0x1400e81e8
xor edi, edi
test rbp, rbp
jle 0x1400e8193
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d2e3c
mov rbx, rax
test rax, rax
jne 0x1400e8120
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e8189
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e7f1c
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.1400db864
cmp eax, 0xffffffff
je 0x1400e8169
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e8130
mov edx, r15d
mov ecx, r14d
call fcn.1400e7f1c
jmp 0x1400e8189
cmp byte [rsi + 0x38], dil
je 0x1400e8180
cmp dword [rsi + 0x34], 5
jne 0x1400e8180
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400e8189
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d4364
jmp 0x1400e81fc
jns 0x1400e81fc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400dc08c
cmp rax, 0xffffffffffffffff
jne 0x1400e81b4
cmp byte [rsi + 0x30], dil
je 0x1400e81fc
mov edi, dword [rsi + 0x2c]
jmp 0x1400e81fc
mov ecx, r14d
call fcn.1400e3de4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e81fc
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 0x1400e81fc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e81f5
mov eax, dword [rsi + 0x2c]
jmp 0x1400e81fa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400dc08c
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 0x1400e8c38
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e8cbf
mov rsi, rbx
cmp word [rax], bp
je 0x1400e8c7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e8c68
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e8c64
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d4304
mov rdi, rax
test rax, rax
je 0x1400e8cac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ebaa0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d4364
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e9f34
Capabilities:
Parse pe header

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

Function at 0x1400f82b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400f82d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c6934
or eax, 0xffffffff
jmp 0x1400f82d2
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001230
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1800148b0
sub rsp, 0x38
test cl, cl
je 0x1800148c5
test byte [0x18005a6b8], 1
jne 0x1800148c5
mov cl, 1
jmp 0x1800148c7
xor ecx, ecx
call fcn.1800151a0
lea rax, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014933
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea rdx, str.DisableTaskOffload
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x18000127b
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1800149e0
push rbx
sub rsp, 0x30
call fcn.1800154e0
mov ebx, eax
test eax, eax
jne 0x180014a67
movzx ecx, byte [0x18005a6b8]
not cl
and cl, 1
call fcn.1800151a0
lea rax, [rsp + 0x58]
lea r9d, [rbx + 2]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014a65
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
lea r9d, [rbx + 4]
lea rdx, str.DisableTaskOffload
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1800012f8
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180013090
push rbx
push rbp
push rdi
push r14
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, r8
mov edi, edx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [r14], rbx
mov ebp, 1
test edi, edi
jg 0x1800130d4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rsp + 0x50]
test edi, edi
cmove edi, ebp
test edi, edi
jle 0x1800131bc
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r15
xor r15d, r15d
mov esi, edi
nop word [rax + rax]
lea rax, [rsp + 0x98]
lea r8, [0x180001848]
mov r9, r14
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call fcn.180018470
lea rcx, [rax - 1]
mov rdi, rax
mov qword [rsp + 0x90], rax
cmp rcx, 0xfffffffffffffffd
ja 0x1800131a6
mov rcx, qword [r14 + 0x10]
lea rax, [rsp + 0x90]
cmp rax, rcx
jae 0x180013183
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x90]
cmp rdx, rax
ja 0x180013183
lea rdi, [rsp + 0x90]
sub rdi, rdx
sar rdi, 3
cmp rcx, qword [r14 + 0x18]
jne 0x18001316d
lea rcx, [r14 + 8]
mov rdx, rbp
call fcn.180001005
mov rdx, qword [r14 + 0x10]
test rdx, rdx
je 0x1800131a1
mov rax, qword [r14 + 8]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x1800131a1
cmp rcx, qword [r14 + 0x18]
jne 0x180013195
lea rcx, [r14 + 8]
mov rdx, rbp
call fcn.180001005
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x1800131a1
mov qword [rax], rdi
add qword [r14 + 0x10], 8
dec rsi
jne 0x1800130f0
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0xa0]
movzx eax, bpl
add rsp, 0x68
pop r14
pop rdi
pop rbp
pop rbx
ret