joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001927c
Capabilities:
Parse pe header

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

Function at 0x14001abc4
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, [0x140045a40]
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 0x14001ac1b
cmp word [rdx], r13w
jne 0x14001ac1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ac20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ad45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ad66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ac59
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ac80
cmp r9, r8
jae 0x14001ac90
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 0x14001ac3a
jmp 0x14001ad45
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 0x14001ad3a
cmp dword [rsp + 0x80], esi
je 0x14001ad3a
lea r8, [0x140045a40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ad12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ace2
mov word [rbx], r13w
jmp 0x14001ad42
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 0x14001acef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ad42
cmp word [rsp + 0x70], r13w
jne 0x14001ad1f
cmp rbx, r14
je 0x14001acdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b994
cmp word [rsp + 0x70], r13w
je 0x14001ad45
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, [0x140045a40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ad3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ad45
Function at 0x14001ca70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ca86
mov al, 1
jmp 0x14001cae6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ca97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001cae4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140017e24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cae4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001cae4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001cae4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001cae6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd58
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14001fda2
call fcn.1400149b4
mov dword [rax], 0xf
call fcn.1400149d4
mov dword [rax], 0xd
call fcn.140019ff0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000be50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14001fdad
lea eax, [rbx + 1]
jmp 0x14001fd8f
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 0x14001fd8d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14001fd8f
Function at 0x140021f3c
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 0x140021f6c
xor eax, eax
jmp 0x14002202f
mov rbp, rbx
cmp word [rax], si
je 0x140021f91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021f78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021f74
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.14001fe04
movsxd r14, eax
test eax, eax
jne 0x140021fcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021f65
mov rcx, r14
call fcn.14001cd0c
mov rdi, rax
test rax, rax
jne 0x140021fe8
xor ecx, ecx
call fcn.14001a058
jmp 0x140021fc4
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.14001fe04
test eax, eax
jne 0x140022019
mov rcx, rdi
call fcn.14001a058
jmp 0x140022023
xor ecx, ecx
call fcn.14001a058
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 0x14002204c
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 0x1400220d3
mov rsi, rbx
cmp word [rax], bp
je 0x140022092
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002207c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022078
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001cd0c
mov rdi, rax
test rax, rax
je 0x1400220c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140029720
mov rbp, rdi
xor ecx, ecx
call fcn.14001a058
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 0x140026ab4
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.140014758
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140026b3e
cmp byte [rbp - 0x21], r15b
je 0x140026b39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026b74
call fcn.14001e634
test eax, eax
jne 0x140026b60
cmp byte [rbp - 0x21], r15b
je 0x140026b58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026b74
cmp byte [rbp - 0x21], r15b
je 0x140026b71
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.140014d9c
test eax, eax
jne 0x140026c14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014758
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026bb3
cmp byte [rbp - 0x21], r15b
je 0x140026be8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026be8
call fcn.14001e634
test eax, eax
jne 0x140026bd4
cmp byte [rbp - 0x21], r15b
je 0x140026bcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026be8
cmp byte [rbp - 0x21], r15b
je 0x140026be5
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.140014d9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026c14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026c17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026c25
mov rcx, rdi
call fcn.14001a058
cmp byte [rbp + 0x3f], r15b
je 0x140026c34
mov rcx, qword [rbp + 0x27]
call fcn.14001a058
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 0x14002826c
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.14001b994
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b994
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400283bc
cmp rax, 0xffffffffffffffff
je 0x1400283bc
xor edi, edi
test rbp, rbp
jle 0x140028367
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e2a8
mov rbx, rax
test rax, rax
jne 0x1400282f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002835d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400192f8
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.14001c670
cmp eax, 0xffffffff
je 0x14002833d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028304
mov edx, r15d
mov ecx, r14d
call fcn.1400192f8
jmp 0x14002835d
cmp byte [rsi + 0x38], dil
je 0x140028354
cmp dword [rsi + 0x34], 5
jne 0x140028354
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002835d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a058
jmp 0x1400283d0
jns 0x1400283d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b994
cmp rax, 0xffffffffffffffff
jne 0x140028388
cmp byte [rsi + 0x30], dil
je 0x1400283d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400283d0
mov ecx, r14d
call fcn.140017e24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400283d0
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 0x1400283d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400283c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400283ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b994
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 0x1400294c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400294e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400294e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100009028
Capabilities:
Listen for remote procedure calls

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x100032110]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
add rcx, 0x20
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov esi, 1
mov dword [rdi + 0x1c], esi
xor ebx, ebx
or dword [rsp + 0x60], 0xffffffff
mov byte [rsp + 0x64], bl
mov byte [rsp + 0x65], bl
mov byte [rsp + 0x66], bl
mov byte [rsp + 0x67], bl
mov byte [rsp + 0x68], bl
mov byte [rsp + 0x69], 5
mov qword [0x100034d68], rdi
lea rax, [rdi + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], 0x932f1d58
mov dword [rsp + 0x30], 0x36c5ce3f
mov dword [rsp + 0x28], 0xe553e9d8
mov dword [rsp + 0x20], 0x62bffacd
mov r9d, 0x7814c1fa
lea r8d, [rsi + 0x4f]
mov dl, 6
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
je 0x100009181
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov r9d, dword [rsp + 0x60]
lea r8, [0x1000021e8]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.100009644
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, esi
lea rcx, [0x100002210]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
cmp eax, ebx
jne 0x100009181
lea rax, [0x1000097a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x4d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x100002150]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
cmp eax, ebx
jne 0x100009181
mov r8d, esi
mov edx, esi
mov ecx, esi
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
cmp eax, ebx
je 0x100009167
cmp eax, 0x6b1
jne 0x100009181
lea r9, [0x100002220]
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
mov ebx, esi
mov dword [rdi], ebx
mov eax, ebx
jmp 0x100009189
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10002e370
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100009860
Capabilities:
Connect network resource

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, 0x50
mov rdi, qword [0x100034d68]
xor ebx, ebx
mov r14, r8
mov rbp, rdx
test rdx, rdx
jne 0x100009899
lea ebx, [rdx + 0x57]
jmp 0x100009979
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1000098c0
cmp dword [rdi + 0x18], ebx
jne 0x1000098c0
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000098c0
mov dword [rdi + 0x18], 1
lea r13, [rdi + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r12, [rdi + 0x48]
mov rsi, qword [r12]
jmp 0x1000098eb
lea rcx, [rsi + 0x10]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10000993e
mov rsi, qword [rsi]
cmp rsi, qword [rdi + 0x50]
jne 0x1000098d7
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov esi, ecx
lea rcx, [rcx + rcx + 0x18]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
jne 0x10000991b
lea ebx, [rax + 8]
jmp 0x10000993e
lea rcx, [rax + 0x10]
mov r8, rbp
mov rdx, rsi
call fcn.1000095d0
mov rax, qword [r12 + 8]
mov qword [rdi], r12
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [r12 + 8], rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x100009979
lea r8d, [rbx + 0x30]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], r14
call sub.MPR.dll_WNetAddConnection2W
mov ebx, eax
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x100009b9c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor ecx, ecx
mov rbx, r8
mov qword [r11 + 0x18], rcx
test r8, r8
je 0x100009c9e
test rdx, rdx
je 0x100009c9e
and qword [r11 - 0x18], rcx
lea rax, [r11 + 0x18]
lea rdx, [0x1000022d0]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], rcx
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x100009c97
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x100009c19
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x70], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
lea rdx, [0x100002330]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x100009c97
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea rdx, [0x1000023a8]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x70]
jmp 0x100009ca3
mov edi, 0x57
test rcx, rcx
je 0x100009cae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x100009cc4
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x100032110]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov dword [rsp + 0x68], 8
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
cmp edx, edi
jne 0x100009d15
call fcn.100009e10
cmp eax, edi
je 0x100009d15
mov ebx, edi
jmp 0x100009dd6
lea rax, [rsp + 0x40]
lea rdx, [0x100002330]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x100009dd6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r8, [0x1000023a8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov r9d, 2
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x48], 0x208
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
cmp eax, edi
jne 0x100009dd6
cmp word [rsp + 0x70], di
je 0x100009dc4
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call sub.WINSPOOL.DRV_OpenPrinterW
cmp eax, edi
jne 0x100009db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100009dd6
mov rcx, qword [rsp + 0x50]
call sub.WINSPOOL.DRV_ClosePrinter
lea rcx, [rsp + 0x70]
call sub.WINSPOOL.DRV_Ordinal_204
mov rcx, qword [rsp + 0x40]
lea rdx, [0x100002330]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x100009de6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10002e370
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret

Function at 0x10000b0f4
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x100032318]
mov ebx, 0x80004005
lea rdi, [0x100032328]
cmp eax, 1
je 0x10000b126
cmp eax, 3
je 0x10000b126
mov rcx, qword [0x100032328]
jmp 0x10000b1cd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100034d70], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x100034da0]
mov dword [0x100034d74], eax
call fcn.10000b38c
mov ebx, eax
test eax, eax
jns 0x10000b184
mov rcx, qword [0x100032328]
cmp rcx, rdi
je 0x10000b1c9
test byte [rcx + 0x1c], 4
je 0x10000b1c9
mov rcx, qword [rcx + 0x10]
lea r9, [0x100002620]
lea r8, [0x100001b80]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.10001a3dc
jmp 0x10000b1c2
and qword [0x100034d90], 0
lea rax, [0x100034d88]
mov qword [0x100034d98], rax
mov qword [0x100034d88], rax
xor eax, eax
and dword [0x100034d84], eax
xor ebx, ebx
mov qword [0x100034d78], rax
mov dword [0x100034d80], eax
mov dword [0x100032318], 2
mov rcx, qword [0x100032328]
test ebx, ebx
jns 0x10000b1f2
cmp rcx, rdi
je 0x10000b1ed
test byte [rcx + 0x1c], 4
je 0x10000b1ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001b80]
mov edx, 0xc
call fcn.10000b094
call fcn.10000b208
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x10000b4dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12d, r9d
mov r13d, r8d
mov esi, edx
mov r15, rcx
mov r14d, r8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xb0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
mov dword [rsp + 0x30], eax
cmp r15, rbx
je 0x10000b73d
mov rdi, qword [rsp + 0xd8]
cmp rdi, rbx
je 0x10000b73d
cmp esi, ebx
je 0x10000b73d
cmp r12d, ebx
je 0x10000b545
mov dword [rdi], ebx
lea rbp, [0x100032328]
cmp dword [rsp + 0xd0], ebx
je 0x10000b598
mov r9d, r13d
mov r8d, r12d
mov rdx, r15
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r11d, eax
mov rcx, qword [0x100032328]
cmp r11d, ebx
je 0x10000b57b
jbe 0x10000b6e1
lea eax, [rsi - 1]
cmp r11d, eax
ja 0x10000b6e1
cmp r12d, ebx
jne 0x10000b742
mov dword [rdi], r11d
jmp 0x10000b742
mov r13d, ebx
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
inc r13d
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, ebx
je 0x10000b5d9
cmp dword [rsp + 0x40], 0x12
je 0x10000b66b
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp r13d, 0x64
jb 0x10000b59b
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov ecx, esi
mov dword [rsp + 0x20], 6
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov r11d, eax
cmp eax, ebx
je 0x10000b5fb
jbe 0x10000b607
lea eax, [rsi - 1]
cmp r11d, eax
jbe 0x10000b569
mov r13d, 0xc0
cmp r11d, r13d
je 0x10000b598
mov r8d, dword [rsp + 0xc0]
mov r9d, 0x4ff
mov rdx, r15
mov ecx, esi
mov dword [rsp + 0x20], 6
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov r11d, eax
cmp eax, r13d
je 0x10000b598
cmp eax, esi
jne 0x10000b569
cmp r14d, 0xffffffff
je 0x10000b598
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xb0]
cmp eax, r14d
jae 0x10000b6a8
sub r14d, eax
jmp 0x10000b598
mov rcx, qword [0x100032328]
lea rbp, [0x100032328]
cmp rcx, rbp
je 0x10000b69e
test byte [rcx + 0x1c], 2
je 0x10000b69e
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001b80]
mov edx, 0x13
call fcn.10000b0b8
mov ebx, 0x83450068
jmp 0x10000b742
mov rcx, qword [0x100032328]
cmp rcx, rbp
je 0x10000b6d6
test byte [rcx + 0x1c], 4
je 0x10000b6d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001b80]
mov edx, 0x14
call fcn.10000b094
mov rcx, qword [0x100032328]
mov r11d, 0x102
jmp 0x10000b570
cmp r11d, 0x80
jb 0x10000b704
lea eax, [rsi + 0x7f]
cmp r11d, eax
ja 0x10000b704
cmp r12d, ebx
jne 0x10000b6fd
lea eax, [r11 - 0x80]
mov dword [rdi], eax
mov ebx, 0x83450066
jmp 0x10000b742
cmp r11d, 0x102
jne 0x10000b716
mov dword [rdi], ebx
mov ebx, 0x83450067
jmp 0x10000b742
cmp rcx, rbp
je 0x10000b736
test byte [rcx + 0x1c], 4
je 0x10000b736
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001b80]
mov edx, 0x15
call fcn.10000b094
mov ebx, 0x80004005
jmp 0x10000b742
mov ebx, 0x80070057
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret