joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402ae9c8
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, [0x1403ec420]
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 0x1402aea1f
cmp word [rdx], r13w
jne 0x1402aea1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402aea24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402aeb49
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402aeb6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402aea5d
mov rdx, r9
mov word [rbx], cx
jmp 0x1402aea84
cmp r9, r8
jae 0x1402aea94
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 0x1402aea3e
jmp 0x1402aeb49
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 0x1402aeb3e
cmp dword [rsp + 0x80], esi
je 0x1402aeb3e
lea r8, [0x1403ec420]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402aeb16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402aeae6
mov word [rbx], r13w
jmp 0x1402aeb46
mov ecx, reloc.WS2_32.dll_listen
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 0x1402aeaf3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402aeb46
cmp word [rsp + 0x70], r13w
jne 0x1402aeb23
cmp rbx, r14
je 0x1402aeae0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402a80e0
cmp word [rsp + 0x70], r13w
je 0x1402aeb49
mov ecx, reloc.WS2_32.dll_listen
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, [0x1403ec420]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402aeb43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402aeb49
Function at 0x1402b5ae4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402b5b04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14029e890
or eax, 0xffffffff
jmp 0x1402b5b06
xor eax, eax
add rsp, 0x28
ret
Function at 0x1402b785c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402b7872
mov al, 1
jmp 0x1402b78d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402b7883
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402b78d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402b59dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402b78d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402b78d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402b78d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402b78d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402ba41c
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 0x1402ba44c
xor eax, eax
jmp 0x1402ba50f
mov rbp, rbx
cmp word [rax], si
je 0x1402ba471
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402ba458
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402ba454
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.1402b70bc
movsxd r14, eax
test eax, eax
jne 0x1402ba4af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402ba445
mov rcx, r14
call fcn.1402b1de0
mov rdi, rax
test rax, rax
jne 0x1402ba4c8
xor ecx, ecx
call fcn.1402b1da4
jmp 0x1402ba4a4
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.1402b70bc
test eax, eax
jne 0x1402ba4f9
mov rcx, rdi
call fcn.1402b1da4
jmp 0x1402ba503
xor ecx, ecx
call fcn.1402b1da4
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 0x1402ba52c
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 0x1402ba5b3
mov rsi, rbx
cmp word [rax], bp
je 0x1402ba572
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402ba55c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402ba558
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402b1de0
mov rdi, rax
test rax, rax
je 0x1402ba5a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140285c90
mov rbp, rdi
xor ecx, ecx
call fcn.1402b1da4
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 0x1402bd688
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.1402b196c
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 0x1402bd729
cmp ebx, dword [rsp + 0x30]
je 0x1402bd722
test esi, esi
je 0x1402bd722
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402bd6fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402bd70a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402bd6e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402bd70e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402bd72b
mov eax, 1
jmp 0x1402bd72b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402bdf24
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.1402a80e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402a80e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402be074
cmp rax, 0xffffffffffffffff
je 0x1402be074
xor edi, edi
test rbp, rbp
jle 0x1402be01f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402b11b0
mov rbx, rax
test rax, rax
jne 0x1402bdfac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402be015
mov edx, 0x8000
mov ecx, r14d
call fcn.1402a87d4
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.1402afd80
cmp eax, 0xffffffff
je 0x1402bdff5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402bdfbc
mov edx, r15d
mov ecx, r14d
call fcn.1402a87d4
jmp 0x1402be015
cmp byte [rsi + 0x38], dil
je 0x1402be00c
cmp dword [rsi + 0x34], 5
jne 0x1402be00c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402be015
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402b1da4
jmp 0x1402be088
jns 0x1402be088
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402a80e0
cmp rax, 0xffffffffffffffff
jne 0x1402be040
cmp byte [rsi + 0x30], dil
je 0x1402be088
mov edi, dword [rsi + 0x2c]
jmp 0x1402be088
mov ecx, r14d
call fcn.1402b59dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402be088
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402be088
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402be081
mov eax, dword [rsi + 0x2c]
jmp 0x1402be086
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402a80e0
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 0x1402c0984
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403b75a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402c09ce
call fcn.14029e8fc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14029e91c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140299838
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14027f200
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402c09d9
lea eax, [rbx + 1]
jmp 0x1402c09bb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402c09b9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402c09bb
Function at 0x1402c0fb4
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.1402927e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402c103e
cmp byte [rbp - 0x21], r15b
je 0x1402c1039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402c1074
call fcn.1402b3e2c
test eax, eax
jne 0x1402c1060
cmp byte [rbp - 0x21], r15b
je 0x1402c1058
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402c1074
cmp byte [rbp - 0x21], r15b
je 0x1402c1071
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.14029d894
test eax, eax
jne 0x1402c1114
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402927e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402c10b3
cmp byte [rbp - 0x21], r15b
je 0x1402c10e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402c10e8
call fcn.1402b3e2c
test eax, eax
jne 0x1402c10d4
cmp byte [rbp - 0x21], r15b
je 0x1402c10cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402c10e8
cmp byte [rbp - 0x21], r15b
je 0x1402c10e5
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.14029d894
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402c1114
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402c1117
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402c1125
mov rcx, rdi
call fcn.1402b1da4
cmp byte [rbp + 0x3f], r15b
je 0x1402c1134
mov rcx, qword [rbp + 0x27]
call fcn.1402b1da4
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 0x1823a20b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1823a2237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1823a20e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1823a20c7
add dl, dl
jne 0x1823a20ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1823a214e
xor eax, eax
add dl, dl
jne 0x1823a20fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1823a2205
add dl, dl
jne 0x1823a210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1823a211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1823a2128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1823a2135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1823a2142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1823a20d6
mov eax, 1
add dl, dl
jne 0x1823a215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1823a216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1823a2153
sub eax, ebx
mov ebx, 1
jne 0x1823a21a4
mov ecx, 1
add dl, dl
jne 0x1823a2186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1823a2193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1823a217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1823a20d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1823a21c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1823a21cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1823a21b5
cmp eax, 0x7d00
jae 0x1823a21f3
cmp eax, 0x500
jb 0x1823a21ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1823a20d6
cmp eax, 0x7f
ja 0x1823a21f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1823a20d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1823a222a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1823a20d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1000012f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000400a0]
jne 0x1000105e4
rol rcx, 0x10
test cx, 0xffff
jne 0x1000105e0
ret 0
ror rcx, 0x10
jmp 0x10002b6ec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100040310]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100040408]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10002b771
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100040310]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10002b793
mov rax, qword [rsp + 0x88]
mov qword [0x100040408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000403a8], rax
mov rax, qword [0x100040408]
mov qword [0x100040280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100040390], rax
mov dword [0x100040270], 0xc0000409
mov dword [0x100040274], 1
mov rax, qword [0x1000400a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000400a8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000326a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x100007bb0
Capabilities:
Extract resource via kernel32 functions

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 r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x100040940]
xor edx, edx
xor ebx, ebx
call fcn.10000686c
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x100007bec
mov rsi, rax
test rax, rax
je 0x100011407
test rbx, rbx
jne 0x100011407
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x1000113f1
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1000113ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1000113ea
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x100007c84
cmp rdi, r11
jae 0x1000113ea
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100007c6e
cmp rdi, r11
jae 0x1000113ea
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
je 0x1000113f1
test rsi, rsi
je 0x10001140e
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.100007ce0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
xor ebx, ebx
jmp 0x100007c99
lea rcx, [0x100040940]
mov edx, ebp
call fcn.10000686c
add ebp, r14d
jmp 0x100007bec
xor esi, esi
jmp 0x100007ca2
xor eax, eax
jmp 0x100007cb9
Function at 0x100007ce0
Capabilities:
Extract resource via kernel32 functions

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 r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x100011473
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x100011473
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x100011473
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x100007d8c
cmp rdi, r11
jae 0x100011473
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100007d76
cmp rdi, r11
jae 0x100011473
cmp word [rdi], r13w
je 0x100011473
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x100007dbe
mov edx, ebx
mov rcx, rsi
call fcn.1000030ec
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
je 0x100011415
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call sub.msvcrt.dll_memcpy_s
cmp eax, r13d
jne 0x10001142f
cmp ebx, r13d
jl 0x100011468
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x100011468
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x100007e11
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
jmp 0x100007dce
cmp eax, 0xc
je 0x10001145d
cmp eax, 0x16
je 0x100011452
cmp eax, 0x22
je 0x100011452
cmp eax, 0x50
je 0x100007dec
mov ecx, 0x80004005
call fcn.100018078
int3
mov ecx, 0x80070057
call fcn.100018078
int3
mov ecx, 0x8007000e
call fcn.100018078
int3
mov ecx, 0x80070057
call fcn.100018078
int3
xor eax, eax
jmp 0x100007e11
Function at 0x100008d54
Capabilities:
Capture webcam image

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rdi, r9
mov rbp, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x70], ebx
xor esi, esi
movsxd r9, r8d
mov r8, rdx
mov edx, 0x40e
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x100013dbe
lea rcx, [0x100040120]
mov rax, qword [0x100040120]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.1000031c4
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.100008cb4
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jle 0x100013da1
movsxd rdx, dword [rsp + 0x88]
mov r9d, 1
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call fcn.100008e64
xor r9d, r9d
xor r8d, r8d
mov edx, 0x419
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jle 0x100013db0
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x100008df8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x100008e49
mov esi, 0x80000006
cmp dword [0x1000408f4], ebx
je 0x100013e26
mov al, byte [0x1000408f8]
cmp al, 2
jae 0x100013dd9
test al, al
jne 0x100013e26
movabs rdx, 0x4000000000010000
test qword [0x1000408e0], rdx
je 0x100013e26
mov rcx, qword [0x1000408e8]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x100013e26
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1000031c4
mov ebx, 1
mov r8, qword [rax]
lea rdx, [0x100032d40]
mov rcx, qword [0x1000400f0]
call fcn.10001cb24
test bl, 1
je 0x100013e4e
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x100013e4e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [rdi], 0
jmp 0x100008e49
Function at 0x10000ada0
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
and qword [rax - 0x20], 0
and qword [rax - 0x18], 0
and qword [rax - 0x10], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
lea rcx, [rax + 0x10]
call fcn.100002f84
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, str.Run
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.100004f64
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000ae43
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
lea rdx, str.RESTART_STICKY_NOTES
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100015ff4
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10000ae64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x10000ae74
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rdi
ret
cmp dword [0x1000408f4], 0
je 0x10000ae43
mov al, byte [0x1000408f8]
cmp al, 2
jae 0x100016013
test al, al
jne 0x10000ae43
movabs rdx, 0x4000000000010000
test qword [0x1000408e0], rdx
je 0x10000ae43
mov rcx, qword [0x1000408e8]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10000ae43
mov r8d, 0x80004005
lea rdx, [0x1000331c0]
mov rcx, qword [0x1000400f0]
call fcn.100019be4
nop
jmp 0x10000ae43