joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c8d0
Capabilities:
Generate random numbers via rtlgenrandom
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, edi
nop
lea rcx, [rsp + 0x48]
mov edx, 4
mov dword [rsp + 0x48], edi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14004c969
mov edx, dword [rsp + 0x48]
mov rcx, rdi
nop
cmp rbx, 4
jae 0x14004c921
mov eax, edx
inc rbx
shr eax, cl
add rcx, 8
mov byte [rsp + rbx + 0x4f], al
cmp rcx, 0x20
jb 0x14004c900
cmp rbx, 4
jb 0x14004c8e0
lea rcx, str.EXPAT_ENTROPY_DEBUG
call qword [sym.imp.msvcrt.dll_getenv]
mov ebx, dword [rsp + 0x50]
test rax, rax
je 0x14004c9e3
movzx ecx, byte [rax]
cmp cl, byte [0x1400b7d7c]
jne 0x14004c9e3
movzx eax, byte [rax + 1]
cmp al, byte [0x1400b7d7d]
jne 0x14004c9e3
call qword [sym.imp.msvcrt.dll___iob_func]
lea r8, str.rand_s
jmp 0x14004c9c0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [rsp + 0x48]
xor ebx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.EXPAT_ENTROPY_DEBUG
xor eax, ebx
imul ebx, eax, 0x7fffffff
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
je 0x14004c9e3
movzx ecx, byte [rax]
cmp cl, byte [0x1400b7d7c]
jne 0x14004c9e3
movzx eax, byte [rax + 1]
cmp al, byte [0x1400b7d7d]
jne 0x14004c9e3
call qword [sym.imp.msvcrt.dll___iob_func]
lea r8, str.fallback_4_
lea rdx, str.Entropy:__s_____0x_0lx___lu_bytes__n
lea rcx, [rax + 0x60]
mov r9d, 8
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.msvcrt.dll_fprintf]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140051120
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [rcx + 0x28]
mov r9, qword [rcx + 0x30]
mov r8, rcx
sub dl, cl
sub dl, 0x20
movsx rax, dl
add r9, rax
movsx eax, dl
shl r9, 0x38
dec eax
cmp eax, 6
ja case.default.0x140051158
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x51270]
add rcx, rdx
jmp rcx
movzx eax, byte [r8 + 0x26]
shl rax, 0x30
or r9, rax
movzx eax, byte [r8 + 0x25]
shl rax, 0x28
or r9, rax
movzx eax, byte [r8 + 0x24]
shl rax, 0x20
or r9, rax
movzx eax, byte [r8 + 0x23]
shl rax, 0x18
or r9, rax
movzx eax, byte [r8 + 0x22]
shl rax, 0x10
or r9, rax
movzx eax, byte [r8 + 0x21]
shl rax, 8
or r9, rax
movzx eax, byte [r8 + 0x20]
or r9, rax
xor qword [r8 + 0x18], r9
mov r10, qword [r8]
mov rcx, qword [r8 + 8]
mov rax, qword [r8 + 0x18]
mov rdx, qword [r8 + 0x10]
mov r11d, 2
add r10, rcx
add rdx, rax
rol rcx, 0xd
xor rcx, r10
rol rax, 0x10
xor rax, rdx
add rdx, rcx
rol r10, 0x20
add r10, rax
mov qword [r8], r10
rol rcx, 0x11
xor rcx, rdx
rol rax, 0x15
xor rax, r10
rol rdx, 0x20
dec r11
jne 0x1400511c3
xor qword [r8], r9
mov r9, qword [r8]
xor rdx, 0xff
mov qword [r8 + 0x10], rdx
mov qword [r8 + 0x18], rax
mov qword [r8 + 8], rcx
lea r10d, [r11 + 4]
nop dword [rax + rax]
add r9, rcx
add rdx, rax
rol rcx, 0xd
xor rcx, r9
rol rax, 0x10
xor rax, rdx
add rdx, rcx
rol r9, 0x20
add r9, rax
mov qword [r8], r9
rol rcx, 0x11
xor rcx, rdx
rol rax, 0x15
xor rax, r9
rol rdx, 0x20
dec r10
jne 0x140051220
mov qword [r8 + 0x18], rax
xor rax, rdx
mov qword [r8 + 8], rcx
xor rax, rcx
mov qword [r8 + 0x10], rdx
xor rax, r9
ret

Function at 0x140051300
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
lea rbx, [rdx + r8]
mov qword [rsp + 0x10], rbp
mov r11, rcx
lea rax, [rcx + 0x28]
mov qword [rsp + 0x18], rdi
cmp rdx, rbx
jae 0x140051339
mov r8, qword [rax]
cmp r8, rax
jae 0x140051342
movzx ecx, byte [rdx]
inc rdx
mov byte [r8], cl
inc qword [rax]
cmp rdx, rbx
jb 0x140051320
cmp qword [rax], rax
jb 0x140051418
movzx ecx, byte [r11 + 0x26]
movzx edi, byte [r11 + 0x27]
mov r10, qword [r11]
mov r8, qword [r11 + 8]
mov r9, qword [r11 + 0x10]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x25]
lea rbp, [r11 + 0x20]
shl rdi, 8
mov esi, 2
or rdi, rcx
movzx ecx, byte [r11 + 0x24]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x23]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x22]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x21]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [rbp]
shl rdi, 8
or rdi, rcx
xor qword [r11 + 0x18], rdi
mov rcx, qword [r11 + 0x18]
nop word [rax + rax]
add r10, r8
add r9, rcx
rol r8, 0xd
xor r8, r10
rol rcx, 0x10
xor rcx, r9
add r9, r8
rol r10, 0x20
add r10, rcx
mov qword [r11], r10
rol r8, 0x11
xor r8, r9
rol rcx, 0x15
xor rcx, r10
rol r9, 0x20
dec rsi
jne 0x1400513c0
xor qword [r11], rdi
add qword [r11 + 0x30], 8
mov qword [r11 + 0x18], rcx
mov qword [r11 + 8], r8
mov qword [r11 + 0x10], r9
mov qword [rax], rbp
cmp rdx, rbx
jb 0x140051320
mov rdi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x20]
mov rax, r11
pop rsi
ret
Function at 0x1400652f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
mov r8d, 0x80000000
test rcx, rcx
je 0x14006535f
mov qword [rsp], rbx
lea rbx, [0x1400bd8f0]
test r10b, 1
je 0x140065353
mov ecx, r11d
mov eax, r8d
mov edx, 0x80000000
and ecx, 0x1f
xor r8d, r8d
mov r9d, dword [rbx + rcx*4]
nop dword [rax + rax]
test r9d, edx
je 0x140065340
lea ecx, [rdx - 1]
xor r8d, eax
test r9d, ecx
je 0x140065353
shr edx, 1
test al, 1
je 0x14006534f
shr eax, 1
xor eax, 0xedb88320
jmp 0x140065330
shr eax, 1
jmp 0x140065330
inc r11d
sar r10, 1
jne 0x140065310
mov rbx, qword [rsp]
mov eax, r8d
add rsp, 8
ret
Function at 0x1400874f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
call fcn.140089ac0
mov edx, 0xa0
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.140089a90
mov rbx, rax
test rax, rax
jne 0x140087546
mov rcx, rdi
call fcn.140089ad0
mov rcx, qword [rdi]
mov dword [rcx + 0x28], gethostname
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.140087090]
lea rcx, str.JPEGMEM
mov qword [rbx], rax
lea rax, [fcn.140086ec0]
mov qword [rbx + 8], rax
lea rax, [fcn.140086fb0]
mov qword [rbx + 0x10], rax
lea rax, [fcn.140086dd0]
mov qword [rbx + 0x18], rax
lea rax, [0x140087910]
mov qword [rbx + 0x20], rax
lea rax, [0x140087860]
mov qword [rbx + 0x28], rax
lea rax, [0x140087680]
mov qword [rbx + 0x30], rax
lea rax, [0x140086b80]
mov qword [rbx + 0x38], rax
lea rax, [0x140086920]
mov qword [rbx + 0x40], rax
lea rax, [0x1400873a0]
mov qword [rbx + 0x48], rax
lea rax, [0x1400879c0]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], 0xa0
mov qword [rdi + 8], rbx
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
je 0x140087650
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call qword [sym.imp.msvcrt.dll_sscanf]
test eax, eax
jle 0x140087650
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x140087643
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x140087647
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140099b80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1403f7698], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1403f76a8]
jne 0x140099bcd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1403f76d0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1403f7698], 1
mov ecx, dword [0x1403f76d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140099ca2
mov rcx, qword [0x1403f4fc0]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140099ccd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1403f76a0]
test rax, rax
je 0x140099c1d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1403f76a0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140099ce8]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1403f76d0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1403f4fc0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140099ccd
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14009a5a0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1403f4fc0]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1403f7b80]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1403f7ba0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], IsNetDrive
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.14009db68
mov rbx, qword [rsp + 0x30]
lea rax, [0x14009b458]
mov qword [rdi + 0xb0], rax
lea rax, [0x14009b4bc]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14009aefc]
mov qword [rdi + 0x20], rax
lea rax, [0x14009adac]
mov qword [rdi + 0x60], rax
lea rax, [0x14009b560]
mov qword [rdi + 0xc8], rax
lea rax, [0x14009b508]
mov qword [rdi + 0xc0], rax
lea rax, [0x14009aa38]
mov qword [rdi + 0x68], rax
lea rax, [0x14009a9dc]
mov qword [rdi + 0x48], rax
lea rax, [0x14009aa08]
mov qword [rdi + 0x50], rax
lea rax, [0x14009a88c]
mov qword [rdi + 0x58], rax
lea rax, [0x14009b250]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400a21a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x1400a226b
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x1400a2250
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x1400a222c
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x1400a2264
add ecx, ebp
jmp 0x1400a2266
add ecx, ebx
test r10d, r10d
jne 0x1400a2200
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400a300c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x1400a30d5
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x1400a30bb
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x1400a3097
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x1400a30ce
add ecx, ebp
jmp 0x1400a30d0
add ecx, edi
test r11d, r11d
jne 0x1400a306b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400111d6
Capabilities:
Add user account to group

Disassembly:
jmp 0x14002b4ac
jmp qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]

Function at 0x1400111f4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140019c50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14005d12b]
call fcn.140011b36
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x140019c8c
mov rcx, qword [rbp + 0x100]
call fcn.140011226
jmp 0x140019ca7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140019ca7
mov rcx, qword [rbp + 0x100]
call fcn.1400115b9
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14001136b
Capabilities:
Get hostname

Disassembly:
jmp 0x140023470
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x228]
mov rax, qword [0x140053038]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x14005d269]
call fcn.140011b36
mov rdx, qword [rbp + 0x1e0]
lea rcx, str.___Invoking_RpcRemoteFindFirstPrinterChangeNotification_with_target_path:__ws_r_n
call fcn.14001105a
mov dword [rbp + 0x34], 0x10
lea rdx, [rbp + 0x34]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x58], rax
lea r9, [rbp + 8]
lea r8, str._hs
mov edx, 0x104
mov rcx, qword [rbp + 0x58]
call fcn.140011794
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x94], 0
mov edx, 0x10
lea rcx, [rbp + 0xb8]
call fcn.1400117f3
nop
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0xb8]
xor r8d, r8d
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp + 0x58]
call fcn.140011b40
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x1400235a2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x1e0]
xor r8d, r8d
mov edx, 0x100
mov rcx, qword [rbp + 0x78]
call fcn.140011bea
mov dword [rbp + 0x94], eax
lea rcx, [rbp + 0x78]
call fcn.1400114fb
jmp 0x1400235b4
mov edx, dword [rbp + 0x94]
lea rcx, str.RpcOpenPrinter_failed__d_n
call fcn.14001105a
jmp 0x1400235c8
mov eax, dword [rbp + 0x94]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140039b10]
call fcn.140011979
mov rax, rdi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14001137f
Capabilities:
Get hostname

Disassembly:
jmp 0x140023660
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x140053038]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x14005d269]
call fcn.140011b36
mov rdx, qword [rbp + 0x1e0]
lea rcx, str.___Invoking_RpcRemoteFindFirstPrinterChangeNotificationEx_with_target_path:__ws_r_n
call fcn.14001105a
mov dword [rbp + 0x34], 0x10
lea rdx, [rbp + 0x34]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x58], rax
lea r9, [rbp + 8]
lea r8, str._hs
mov edx, 0x104
mov rcx, qword [rbp + 0x58]
call fcn.140011794
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x94], 0
mov edx, 0x10
lea rcx, [rbp + 0xb8]
call fcn.1400117f3
nop
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0xb8]
xor r8d, r8d
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp + 0x58]
call fcn.140011b40
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x14002378a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x1e0]
xor r8d, r8d
mov edx, 0x100
mov rcx, qword [rbp + 0x78]
call fcn.1400117f8
mov dword [rbp + 0x94], eax
lea rcx, [rbp + 0x78]
call fcn.1400114fb
jmp 0x14002379c
mov edx, dword [rbp + 0x94]
lea rcx, str._MS_RPRN______RpcOpenPrinter_failed__d_n
call fcn.14001105a
jmp 0x1400237b8
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140039cf0]
call fcn.140011979
mov rax, rdi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1400115b9
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14001eb00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14005d12b]
call fcn.140011b36
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14001eb44
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14001ebd5
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14001eb9a
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001eba4
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001eb39
mov qword [rbp + 0x88], 0xe3
jmp 0x14001ebf3
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14001ec9c
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14001ec58
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001ec62
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001ebe2
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14001ecfc
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001ed06
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x14001166d
Capabilities:
Terminate process

Disassembly:
jmp 0x14002b800
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret
Function at 0x14001171c
Capabilities:
Add user account

Disassembly:
jmp 0x14002b4a6
jmp qword [sym.imp.NETAPI32.dll_NetUserAdd]
Function at 0x1400117d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002e6d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002e6f0
xor al, al
jmp 0x14002e771
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002e703
xor al, al
jmp 0x14002e771
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002e72d
xor al, al
jmp 0x14002e771
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002e741
xor al, al
jmp 0x14002e771
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002e753
xor al, al
jmp 0x14002e771
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002e76f
xor al, al
jmp 0x14002e771
mov al, 1
add rsp, 0x38
ret