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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400beb33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400beb33
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400beb33
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400beb33
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400beb33
cmp dword [rcx + 0x84], 0xe
jbe 0x1400beb33
cmp dword [rcx + 0xf8], 0
je 0x1400beb33
mov ecx, ebx
call fcn.1400bebf0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400be9c0
nop
cmp dword [rbp + 0x20], 0
je 0x1400beb81
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400beb8c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400beac4

Function at 0x1400bf460
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400ba9cc
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400bf4ab
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1400bf4df
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bf4df
call fcn.1400cf544
xor ebx, ebx
test eax, eax
jne 0x1400bf4cd
cmp byte [rbp - 0x48], bl
je 0x1400bf4c6
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1400bf4df
cmp byte [rbp - 0x48], bl
je 0x1400bf4dd
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1400bf2e4
mov esi, eax
test eax, eax
je 0x1400bf51b
call fcn.1400c0e1c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400bf574
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1400bf2e4
mov edi, eax
test eax, eax
je 0x1400bf557
call fcn.1400c0e1c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400bf566
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400d2538
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400bf574
mov rcx, qword [rbp - 0x50]
call fcn.1400cf1e8
cmp byte [rbp - 8], bl
je 0x1400bf582
mov rcx, qword [rbp - 0x20]
call fcn.1400cf1e8
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c34ec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140120140]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400fac28]
mov rbp, rcx
call fcn.1400c1ff8
xor edi, edi
test rax, rax
je 0x1400c35d2
mov ebx, edi
call fcn.1400c0e1c
mov r14d, dword [rax]
call fcn.1400c0e1c
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400d3530
mov rsi, rax
test rax, rax
je 0x1400c3563
call fcn.1400c0e1c
mov dword [rax], r14d
jmp 0x1400c358d
call fcn.1400c0e1c
cmp dword [rax], 0x22
jne 0x1400c35ca
call fcn.1400c0e1c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400d3530
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400c35ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400c3591
cmp rax, 3
je 0x1400c35ac
mov rcx, rsi
call fcn.1400c3448
test al, al
je 0x1400c35bd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400c35bd
mov dil, 1
mov rcx, rbx
call fcn.1400b8a60
mov al, dil
jmp 0x1400c35d4
mov rcx, rbx
call fcn.1400b8a60
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400aad70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c78c4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140146e70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400c7922
cmp word [rdx], r12w
jne 0x1400c7922
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400c7928
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400c7a83
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400c7a5e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400c7961
mov rcx, r9
jmp 0x1400c7984
cmp r9, rdx
jae 0x1400c799b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400c7945
jmp 0x1400c7a83
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c7a58
cmp dword [rsp + 0x80], edi
je 0x1400c7a58
mov rdx, r14
lea r11, [0x140146e70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400c7a31
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400c7a04
mov word [rbx], r12w
jmp 0x1400c7a7f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400c7a0d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400c7a7f
cmp word [rsp + 0x70], r12w
jne 0x1400c7a3e
cmp rbx, rsi
je 0x1400c79fe
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400c4490
cmp word [rsp + 0x70], r12w
je 0x1400c7a83
mov word [rbx], r13w
jmp 0x1400c7a7f
lea r11, [0x140146e70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400c7a7b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400c7a83
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d1a88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400d1aba
call fcn.1400c0e1c
mov dword [rax], socket
call fcn.1400be728
jmp 0x1400d1bd9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400d1bd9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400d1bd9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400d1ae9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400d1bd9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400d1afd
call fcn.1400d2568
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400ce7fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400c7d70
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400d1bc7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400d1b92
mov rcx, rsi
call fcn.1400ce7fc
cmp eax, edi
je 0x1400d1b7d
mov rcx, rsi
call fcn.1400ce7fc
cmp eax, 0xfffffffe
je 0x1400d1b7d
mov rcx, rsi
call fcn.1400ce7fc
movsxd rbx, eax
lea r14, [0x140146e70]
mov rcx, rsi
sar rbx, 6
call fcn.1400ce7fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400d1b84
lea rdx, [0x1401207e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400d1b92
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400d1bb6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400d1bb6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400d1bb6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400d1bdc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400d3074
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.1400c4490
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c4490
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d31c4
cmp rax, 0xffffffffffffffff
je 0x1400d31c4
xor edi, edi
test rbp, rbp
jle 0x1400d316f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400cf170
mov rbx, rax
test rax, rax
jne 0x1400d30fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d3165
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c5d10
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.1400c8cb4
cmp eax, 0xffffffff
je 0x1400d3145
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d310c
mov edx, r15d
mov ecx, r14d
call fcn.1400c5d10
jmp 0x1400d3165
cmp byte [rsi + 0x38], dil
je 0x1400d315c
cmp dword [rsi + 0x34], 5
jne 0x1400d315c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400d3165
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400cf1e8
jmp 0x1400d31d8
jns 0x1400d31d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
jne 0x1400d3190
cmp byte [rsi + 0x30], dil
je 0x1400d31d8
mov edi, dword [rsi + 0x2c]
jmp 0x1400d31d8
mov ecx, r14d
call fcn.1400d2f64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d31d8
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 0x1400d31d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d31d1
mov eax, dword [rsi + 0x2c]
jmp 0x1400d31d6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c4490
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 0x1400d4f10
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 0x1400d4f40
xor eax, eax
jmp 0x1400d5003
mov rbp, rbx
cmp word [rax], si
je 0x1400d4f65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d4f4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d4f48
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.1400d298c
movsxd r14, eax
test eax, eax
jne 0x1400d4fa3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d4f39
mov rcx, r14
call fcn.1400d0298
mov rdi, rax
test rax, rax
jne 0x1400d4fbc
xor ecx, ecx
call fcn.1400cf1e8
jmp 0x1400d4f98
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.1400d298c
test eax, eax
jne 0x1400d4fed
mov rcx, rdi
call fcn.1400cf1e8
jmp 0x1400d4ff7
xor ecx, ecx
call fcn.1400cf1e8
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 0x1400d5020
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 0x1400d50a7
mov rsi, rbx
cmp word [rax], bp
je 0x1400d5066
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d5050
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d504c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d0298
mov rdi, rax
test rax, rax
je 0x1400d5094
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400afac0
mov rbp, rdi
xor ecx, ecx
call fcn.1400cf1e8
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 0x1400d8694
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400d86b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c0d90
or eax, 0xffffffff
jmp 0x1400d86b6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400dca74
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.1400ba9cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400dcafe
cmp byte [rbp - 0x21], r15b
je 0x1400dcaf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400dcb34
call fcn.1400cf544
test eax, eax
jne 0x1400dcb20
cmp byte [rbp - 0x21], r15b
je 0x1400dcb18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400dcb34
cmp byte [rbp - 0x21], r15b
je 0x1400dcb31
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.1400bf2e4
test eax, eax
jne 0x1400dcbd4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ba9cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400dcb73
cmp byte [rbp - 0x21], r15b
je 0x1400dcba8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400dcba8
call fcn.1400cf544
test eax, eax
jne 0x1400dcb94
cmp byte [rbp - 0x21], r15b
je 0x1400dcb8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400dcba8
cmp byte [rbp - 0x21], r15b
je 0x1400dcba5
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.1400bf2e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400dcbd4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400dcbd7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400dcbe5
mov rcx, rdi
call fcn.1400cf1e8
cmp byte [rbp + 0x3f], r15b
je 0x1400dcbf4
mov rcx, qword [rbp + 0x27]
call fcn.1400cf1e8
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 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ror byte [r11 - 0x1dc176f7], 1
lea esp, [rsi]
invalid
or byte [rbp + 0x562ffd6f], dh
out dx, al
invalid
invalid
sub al, 0xa1
in al, dx
invalid
insd dword [rdi], dx
sbb byte [rcx - 0x4f], dh
fcmovnb st(0), st(7)
and esi, esp
adc cl, 0x96
loope 0x14003f677
sbb dl, byte [rax - 0x19]
sbb esi, dword [rax]
jge 0x14003f674
jnp 0x14003f61b
or qword [rbx - 0x1a], r14
jae 0x14003f627
out 0x44, al
xchg edi, eax
xchg edi, eax
sal byte [rdi], 1
invalid
ror dword [rdi - 0x485dd4e5], cl
cmp byte [rax], bl
sub dword [rcx], eax
invalid
xchg ebx, eax
sti
loop 0x14003f5e7
add dword [rbx + 0x7292e2fb], edx
mov bh, 0x53
jb 0x14003f60e
push rbx
mov al, 0x83
je 0x14003f62d
invalid
xor dl, byte [rdx + 4]
movsd dword [rdi], dword [rsi]
sub cl, ah
loopne 0x14003f6a1
jrcxz 0x14003f61f
jb 0x14003f63f
outsd dx, dword [rsi]
mov eax, 0xb96fa769
imul esp, dword [rdi - 0x5f0b4691], 0x4d86e542
push rdi
mov ecx, 0xe542a0f4
xchg byte [rbp + 0x4a], cl
push rdi
hlt
jo 0x14003f691
mov esp, 0x7ffebcec
jle 0x14003f640
invalid
mov bh, 0xc5
invalid
invalid
mov edi, 0x7253509d
fisub dword [rdx - 0x3a]
insd dword [rdi], dx
ret
popfq
push rax
push rbx
jb 0x14003f670
invalid
mov ebp, dword [rsi + rsi*4 - 0x6d38e0b5]
out dx, al
xchg edi, eax
xor edx, esp
sub dword [r9 - 0x5daa47c5], ecx
invalid
push rbp
invalid
invalid
invalid
movabs byte [0xaad801e1f2443aff], al
mov ah, 0xf8
stc
pop rax
xchg ecx, eax
sub esi, edx
invalid
Function at 0x140001d60
Capabilities:
Bypass uac via rpc

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x150
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor edx, edx
mov sil, dl
mov qword [rax + 0x30], rdx
mov dword [rax + 0x40], edx
mov rbx, qword [rsp + 0x1b8]
test rbx, rbx
je 0x140001db0
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
lea rdi, [rsp + 0x88]
xor eax, eax
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x110]
lea ecx, [rax + 0x38]
rep stosb byte [rdi], al
mov dword [rsp + 0x134], 1
mov word [rsp + 0x138], dx
lea rdi, [rsp + 0xa0]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1b8]
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call fcn.1400108d0
test eax, eax
jne 0x140001f92
lea edx, [rax + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140001e4f
mov dword [rsp + 0xcc], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0xd0], rax
test rax, rax
jne 0x140001e4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140001f92
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rax
or dword [rsp + 0x60], 0xffffffff
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, str.WinSta0Default
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x1b8]
lea r8, [rsp + 0xa0]
lea rdx, [0x140031d32]
lea rcx, [0x140031c90]
call qword [sym.imp.RPCRT4.dll_NdrAsyncClientCall]
or edi, 0xffffffff
mov edx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x140001efa
or ecx, 0xffffffff
call qword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x140001f5a
cmp qword [rsp + 0x198], 0
jne 0x140001f5a
test rbx, rbx
je 0x140001f4f
mov rax, qword [rsp + 0x88]
mov qword [rbx], rax
mov rax, qword [rsp + 0x90]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x14], eax
mov sil, 1
mov byte [rsp + 0x80], sil
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140001f76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140001f92
mov al, sil
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret