joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063a94
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 0x140063ac4
xor eax, eax
jmp 0x140063b87
mov rbp, rbx
cmp word [rax], si
je 0x140063ae9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140063ad0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140063acc
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.1400639b4
movsxd r14, eax
test eax, eax
jne 0x140063b27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140063abd
mov rcx, r14
call fcn.1400603bc
mov rdi, rax
test rax, rax
jne 0x140063b40
xor ecx, ecx
call fcn.14005ced0
jmp 0x140063b1c
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.1400639b4
test eax, eax
jne 0x140063b71
mov rcx, rdi
call fcn.14005ced0
jmp 0x140063b7b
xor ecx, ecx
call fcn.14005ced0
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 0x140067c6c
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.14005d7f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005d7f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140067dbc
cmp rax, 0xffffffffffffffff
je 0x140067dbc
xor edi, edi
test rbp, rbp
jle 0x140067d67
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005ce58
mov rbx, rax
test rax, rax
jne 0x140067cf4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140067d5d
mov edx, 0x8000
mov ecx, r14d
call fcn.14005c0ec
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.14005f57c
cmp eax, 0xffffffff
je 0x140067d3d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140067d04
mov edx, r15d
mov ecx, r14d
call fcn.14005c0ec
jmp 0x140067d5d
cmp byte [rsi + 0x38], dil
je 0x140067d54
cmp dword [rsi + 0x34], 5
jne 0x140067d54
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140067d5d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005ced0
jmp 0x140067dd0
jns 0x140067dd0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005d7f0
cmp rax, 0xffffffffffffffff
jne 0x140067d88
cmp byte [rsi + 0x30], dil
je 0x140067dd0
mov edi, dword [rsi + 0x2c]
jmp 0x140067dd0
mov ecx, r14d
call fcn.1400641ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140067dd0
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 0x140067dd0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140067dc9
mov eax, dword [rsi + 0x2c]
jmp 0x140067dce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005d7f0
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 0x140130e25
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor edx, edx
mov rcx, qword [str.KERNEL32.dll]
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov rdx, qword [0x1401eb2b0]
call rax
test eax, eax
je 0x140130e71
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140130e34
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor edx, edx
mov rcx, qword [str.KERNEL32.dll]
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov rdx, qword [0x1401eb2b0]
call rax
test eax, eax
je 0x140130e71
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140134840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013488a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013488a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013488a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013488a
cmp dword [rcx + 0x84], 0xe
jbe 0x14013488a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14013488c
xor al, al
add rsp, 0x28
ret
Function at 0x180002360
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r14, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002407
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002407
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xcec8be32
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002402
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800023e0
cmp r8d, 0xcb9188dc
je 0x18000240c
test r9d, r9d
jne 0x1800023c0
mov rax, qword [rax]
jmp 0x180002390
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r10
add rcx, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
mov rcx, r14
add rdx, r10
call rdx
mov rcx, 0xffffffffffffffff
lea rbp, [rax + 1]
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.18000f840
mov rcx, qword gs:[0x60]
mov rsi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov r11d, dword [rdx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x1800024d7
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x1800024d7
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0x55affad1
lea rax, [rdi + r9*4]
mov edx, dword [rax + r10]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1800024d2
nop
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x1800024b0
cmp r8d, 0xeae53421
je 0x1800024dc
test r9d, r9d
jne 0x180002490
mov rcx, qword [rcx]
jmp 0x180002460
mov ecx, dword [r11 + 0x24]
mov r8, rbp
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, r14
add rax, r10
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002520
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800025c7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800025c7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x6663e520
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800025c2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1800025a0
cmp r8d, 0xa81fc864
je 0x1800025cc
test r9d, r9d
jne 0x180002580
mov rax, qword [rax]
jmp 0x180002550
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
movd xmm0, dword [rsp + 0x30]
mov rax, rsi
movd xmm2, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x1400049b1
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400049b1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400049b1
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x1400048e6
nop
cmp rdi, r11
jae 0x1400049b1
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400048d0
cmp rdi, r11
jae 0x1400049b1
movzx eax, word [rdi]
test ax, ax
je 0x1400049b1
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000491c
mov edx, ebx
mov rcx, rsi
call fcn.1400049e0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140004939
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400100b0
test eax, eax
je 0x140004987
cmp eax, 0xc
je 0x14000497c
cmp eax, 0x16
je 0x140004971
cmp eax, 0x22
je 0x140004971
cmp eax, 0x50
je 0x140004987
mov ecx, 0x80004005
call fcn.140004d20
int3
mov ecx, 0x80070057
call fcn.140004d20
int3
mov ecx, 0x8007000e
call fcn.140004d20
int3
test ebx, ebx
js 0x1400049a6
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400049a6
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400049b3
mov ecx, 0x80070057
call fcn.140004d20
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140004bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x14002f840]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.14000e8ec
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140004cf6
nop
test rbx, rbx
jne 0x140004cf6
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x140004c63
mov rbx, r13
jmp 0x140004cd9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140004c79
mov rbx, r13
jmp 0x140004cd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x140004c8f
mov rbx, r13
jmp 0x140004cd4
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140004cc2
nop
nop
cmp rbx, r11
jae 0x140004cc7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140004cb0
cmp rbx, r11
jb 0x140004ccc
mov rbx, r13
jmp 0x140004cd4
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140004d11
lea rcx, [0x14002f840]
mov edx, ebp
call fcn.14000e8ec
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140004c30
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140004cf8
Function at 0x14000a070
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x250
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor dil, dil
xor ebp, ebp
xor esi, esi
xor r12d, r12d
mov r13, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14000a0b4
xor ecx, ecx
jmp 0x14000a0bf
mov rcx, qword [rbx + 0x18]
sub rcx, rax
sar rcx, 4
mov eax, ebp
cmp rax, rcx
jae 0x14000a1b8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000a0e3
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 4
cmp rsi, rax
jb 0x14000a0e8
call fcn.140010d00
mov rax, qword [rbx + 0x10]
or r9d, 0xffffffff
mov ecx, 0x400
mov r8, qword [r12 + rax]
lea edx, [r9 + 2]
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x14000a1a8
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.140011570
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000a144
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 4
cmp rsi, rax
jb 0x14000a149
call fcn.140010d00
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x30]
lea r8, [0x1400266cc]
mov rcx, qword [r12 + rax + 8]
lea rdx, str.ScannerID
mov qword [rsp + 0x28], rcx
lea rcx, str.Version
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000a1a8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x30]
not rcx
lea r8d, [rcx - 1]
mov rcx, r13
call fcn.1400046e0
mov dil, 1
add ebp, 1
add rsi, 1
add r12, 0x10
jmp 0x14000a0a7
mov al, dil
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000f470
add rsp, 0x250
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000bdd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebp, ebp
mov rsi, rdx
lea rax, [rsp + 0x250]
lea edx, [rbp + 0x23]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000be4d
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140010df0
lea rdx, str.epsonwialog
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsi + 0x20], 7
lea rbx, [rsi + 8]
lea rdi, [rsp + 0x40]
mov qword [rsi + 0x18], rbp
mov word [rbx], bp
mov rdx, qword [rsi + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rdi, [rcx - 1]
jb 0x14000be84
mov rax, qword [rbx]
jmp 0x14000be87
mov rax, rbx
lea rcx, [rsp + 0x40]
cmp rcx, rax
jb 0x14000bed8
cmp rdx, 8
jb 0x14000be9c
mov rcx, qword [rbx]
jmp 0x14000be9f
mov rcx, rbx
mov rax, qword [rsi + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x40]
cmp rcx, rax
jbe 0x14000bed8
cmp rdx, 8
jb 0x14000beba
mov rbx, qword [rbx]
lea r8, [rsp + 0x40]
mov r9, rdi
mov rdx, rsi
sub r8, rbx
mov rcx, rsi
sar r8, 1
call fcn.1400051f0
jmp 0x14000bf5a
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
jbe 0x14000beec
call fcn.14000ecc0
mov rax, qword [rsi + 0x20]
cmp rax, rdi
jae 0x14000bf18
mov r8, qword [rsi + 0x18]
mov rdx, rdi
mov rcx, rsi
call fcn.1400053f0
test rdi, rdi
je 0x14000bf5a
mov rdx, qword [rsi + 0x20]
cmp rdx, 8
jb 0x14000bf2f
mov rcx, qword [rbx]
jmp 0x14000bf32
test rdi, rdi
jne 0x14000bf09
cmp rax, 8
mov qword [rsi + 0x18], rbp
jb 0x14000bf2a
mov rbx, qword [rbx]
mov word [rbx], bp
jmp 0x14000bf5a
mov rcx, rbx
lea rbp, [rdi + rdi]
lea r8, [rsp + 0x40]
add rdx, rdx
mov r9, rbp
call fcn.1400100b0
cmp qword [rsi + 0x20], 8
mov qword [rsi + 0x18], rdi
jb 0x14000bf54
mov rbx, qword [rbx]
mov word [rbx + rbp], 0
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000f470
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000e420
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x14000e4f7
mov dword [rsp + 0x40], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.140011570
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000e4f7
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000e4bc
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14000e4f7
jmp 0x14000e493
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x6c]
lea r8, str._s__PID:__u__is_Running_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
mov edi, dword [rsp + 0x48]
test rbx, rbx
je 0x14000e4f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14000e507
test rbx, rbx
je 0x14000e505
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000f470
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret

Function at 0x14000e650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, dword [rsp + 0x2a0]
xor esi, esi
mov rdi, r9
shr rbx, 1
mov rbp, r8
mov r11, rdx
cmp rbx, 0x7fffffff
mov r10, rcx
ja 0x14000e6c9
test rbx, rbx
mov rdx, rbx
mov rax, r9
je 0x14000e6c9
lea r8, [0x1400266cc]
sub r8, r9
movzx ecx, word [r8 + rax]
test cx, cx
je 0x14000e6bd
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x14000e6a4
jmp 0x14000e6c2
test rdx, rdx
jne 0x14000e6c6
sub rax, 2
mov word [rax], si
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r11
mov rcx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e77a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x30], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e76f
cmp rbx, 0x7fffffff
ja 0x14000e764
test rbx, rbx
mov rax, rdi
je 0x14000e764
lea rdx, [rsp + 0x40]
sub rdx, rdi
nop
movzx ecx, word [rdx + rax]
test cx, cx
je 0x14000e758
mov word [rax], cx
add rax, 2
sub rbx, 1
jne 0x14000e740
jmp 0x14000e75d
test rbx, rbx
jne 0x14000e761
sub rax, 2
mov word [rax], si
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000f470
add rsp, 0x258
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e96c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140011570
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140011570
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14000e9ff
cmp dword [rsp + 0x24], 5
jb 0x14000ea19
jmp 0x14000ea15
cmp dword [rsp + 0x30], esi
jne 0x14000ea19
cmp dword [rsp + 0x24], 4
ja 0x14000ea15
jne 0x14000ea19
cmp dword [rsp + 0x28], 0
jbe 0x14000ea19
mov byte [rbx + 0x18], sil
lea rax, [0x1400236f0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14000e7ac
movzx ecx, byte [0x140030950]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140030950], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000f470
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140010bf0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14002f920]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400134b0
test rax, rax
je 0x140010c44
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140010cd9
mov ecx, 2
call fcn.140018290
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140011570
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140010cc5
test ebx, ebx
jne 0x140010cc5
lea ecx, [rax + 2]
call fcn.140018290
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010d00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14002f920]
call fcn.1400134b0
test rax, rax
je 0x140010d35
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.140018290
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140011570
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140010dbe
test ebx, ebx
jne 0x140010dbe
lea ecx, [rax + 2]
call fcn.140018290
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret