joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d4d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x5a4d
xor edi, edi
mov rbx, r8
mov rsi, rcx
cmp word [rdx], ax
je 0x14000d511
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0x10
jb 0x14000d5c0
mov rcx, qword [r8]
jmp 0x14000d597
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d529
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x14000d4fb
movzx eax, word [rcx + 0x14]
lea r14, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r14, rax
movzx r9d, di
cmp di, r11w
jae 0x14000d583
mov rbp, qword [r8 + 0x18]
mov r8, rbx
cmp rbp, 0x10
jb 0x14000d553
mov r8, qword [rbx]
movzx r10d, r9w
lea rax, [r10 + r10*4]
lea rcx, [r14 + rax*8]
sub r8, rcx
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x14000d575
inc rcx
test eax, eax
jne 0x14000d562
test edx, edx
je 0x14000d5e5
inc r9w
cmp r9w, r11w
jb 0x14000d547
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000d5c0
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000d5bb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5fe
mov rcx, r8
call fcn.140062a94
mov byte [rbx], 0
mov rax, rsi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], send
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea rax, [r10 + r10*4]
lea rcx, [r14 + rax*8]
mov eax, dword [r14 + rax*8 + 8]
mov qword [rsi], rax
mov eax, dword [rcx + 0xc]
mov qword [rsi + 8], rax
jmp 0x14000d58a
call fcn.14002de94
int3
Function at 0x140012470
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140012492
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001250c
mov rdi, r14
mov rcx, rbx
call fcn.140013a10
test rax, rax
jle 0x1400124e4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140064dd0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400124fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140012504
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400124a6
sub r14, rdi
jmp 0x1400125f9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140012523
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012525
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001255a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140064dd0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400125f6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140012595
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400125d1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140031668
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14001260f
cmp rbp, rax
ja 0x1400125a1
mov r8, rdi
test rdi, rdi
je 0x1400125f6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140031668
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1400125f9
Function at 0x140012a40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b7c40]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140012a6d
xor eax, eax
jmp 0x140012bb3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140012aa7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140012aa7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140012bb3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140012ba6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140012aea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140012af9
movsx ecx, dil
jmp 0x140012b4d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140012b67
sub eax, 1
je 0x140012b67
cmp eax, 2
jne 0x140012ba6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14002e018
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140012bab
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140012b94
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140030e44
cmp rsi, rax
jne 0x140012ba6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140012bab
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140062540
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140016820
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400b7c40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140016914
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140016914
mov ebx, dword [rax + rdx + 0xb0]
add rbx, rdx
je 0x140016914
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140016902
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 4]
sub rax, 8
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x1400168da
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x1400168f1
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140016ff0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x50]
test eax, eax
jne 0x140016893
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140016921
xor edx, edx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 8], rdx
mov qword [rcx], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062540
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001b550
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400b7c40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r8
mov dword [0x140108458], 0
test r9b, r9b
jne 0x14001b591
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062540
add rsp, 0x88
ret
movss xmm0, dword [0x14010af2c]
mov rdx, r8
movss xmm1, dword [0x14010af28]
unpcklps xmm1, xmm0
mov qword [rsp + 0x80], rbx
movq rcx, xmm1
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
call fcn.14001b130
cmp dword [0x1400b7e88], 0xffffffff
movzx ebx, al
je 0x14001b5f3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edx, dword [0x1400b7e88]
mov r8d, 0xffffffff
test ax, ax
cmove edx, r8d
mov dword [0x1400b7e88], edx
movzx eax, byte [0x14010844e]
xorps xmm6, xmm6
movss xmm7, dword [rsp + 0x30]
test al, al
je 0x14001b622
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14001b711
movzx eax, byte [0x14010844e]
test bl, bl
jne 0x14001b639
movss xmm0, dword [0x1401086c0]
ucomiss xmm0, xmm6
jp 0x14001b639
je 0x14001b70a
test al, al
jne 0x14001b70a
cmp byte [0x140108448], 0
movsxd rax, dword [0x140108458]
je 0x14001b6e6
lea rcx, [0x140108460]
cmp byte [rax + rcx], 0
jne 0x14001b666
mov byte [rax + rcx], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm1, dword [rsp + 0x50]
movd xmm2, dword [rsp + 0x54]
movss xmm0, dword [0x1401086c0]
ucomiss xmm0, xmm6
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
subss xmm1, xmm7
subss xmm2, dword [rsp + 0x34]
jp 0x14001b6c4
jne 0x14001b6c4
movaps xmm0, xmm1
movaps xmm3, xmm2
subss xmm0, dword [0x14010af28]
subss xmm3, dword [0x14010af2c]
movss dword [0x1401086c0], xmm0
movss dword [0x1401086c4], xmm3
jmp 0x14001b6cc
movss xmm3, dword [0x1401086c4]
subss xmm1, xmm0
subss xmm2, xmm3
movss dword [0x14010af28], xmm1
movss dword [0x14010af2c], xmm2
jmp 0x14001b711
cmp rax, 0x100
jae 0x14001b85c
lea rcx, [0x140108460]
mov qword [0x1401086c0], 0
mov byte [rax + rcx], 0
jmp 0x14001b711
mov byte [0x14010844e], 0
movss xmm0, dword [0x14010af28]
lea r9, [rsp + 0x40]
movss xmm1, dword [0x14010af2c]
mov rax, qword [0x14010af28]
movss xmm2, dword [rsp + 0x34]
mov rcx, rax
movss dword [0x14010ab28], xmm0
movups xmm0, xmmword [0x1400a4170]
mov dword [0x140108454], 0
movss dword [0x14010ab2c], xmm1
movaps xmm1, xmm7
movdqa xmmword [rsp + 0x40], xmm0
mov dword [0x14010845c], 0
mov qword [0x14010ab10], 0
mov qword [0x14010ab20], 0
mov qword [0x14010ab08], 0
mov qword [rsp + 0x50], rax
call fcn.14001b2c0
mov rax, qword [0x14010af28]
lea r9, [rsp + 0x40]
call fcn.140062bd8
int3
Function at 0x14001ca10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400b7c40]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, dl
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r9d, eax
cmp dil, 1
jne 0x14001ca75
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea r8d, [rcx + 6]
lea rdx, str.MOUSE0
jmp 0x14001cb8f
cmp dil, 2
jne 0x14001ca9e
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea r8d, [rcx + 6]
lea rdx, str.MOUSE1
jmp 0x14001cb8f
cmp dil, 4
jne 0x14001cac7
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea r8d, [rcx + 7]
lea rdx, str.MBUTTON
jmp 0x14001cb8f
cmp dil, 5
jne 0x14001caf0
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea r8d, [rcx + 8]
lea rdx, str.XBUTTON1
jmp 0x14001cb8f
cmp dil, 6
jne 0x14001cb16
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea r8d, [rcx + 8]
lea rdx, str.XBUTTON2
jmp 0x14001cb8f
lea eax, [rdi - 0x21]
cmp eax, 0x84
ja case.0x14001cb3b.41
cdqe
lea rdx, sym.MZ__g8_Q6RMYJi_5PJ1E_Z:CxkGID__1B
movzx eax, byte [rdx + rax + 0x1cbc8]
mov ecx, dword [rdx + rax*4 + 0x1cbc0]
add rcx, rdx
jmp rcx
bts r9d, 8
shl r9d, 0x10
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov ecx, r9d
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], send
mov byte [rbx], cl
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001cb80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140003990
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140062540
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140023400
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x10
mov r11d, dword [rdx + 0xb0]
mov r15, r8
mov rsi, rdx
mov r12, rcx
test r11d, r11d
je 0x14002357c
movzx eax, word [rdx + 0x14]
lea r9, [rdx + 0x18]
movzx r8d, word [rdx + 6]
add r9, rax
xor r10d, r10d
test r8d, r8d
je 0x14002357c
nop
mov edx, dword [r9 + 0xc]
cmp r11d, edx
jb 0x140023454
mov ecx, dword [r9 + 8]
add ecx, edx
cmp r11d, ecx
jb 0x14002346a
inc r10d
add r9, 0x28
cmp r10d, r8d
jl 0x140023440
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, edx
mov qword [rsp], r14
mov r14d, dword [r9 + 0x14]
mov eax, r11d
add rax, r12
add r14, rax
je 0x140023578
mov qword [rsp + 0x38], rbp
xor ebp, ebp
cmp dword [rsi + 0xb4], ebp
jbe 0x140023573
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 8], r13
mov r13d, 0xf000
nop dword [rax]
mov edi, dword [r14 + 4]
lea rdx, [rsi + 0x18]
movzx eax, word [rsi + 0x14]
lea r10, [r14 + 8]
movzx ebx, word [rsi + 6]
sub rdi, 8
mov r11d, dword [r14]
add rdx, rax
shr rdi, 1
xor r9d, r9d
test ebx, ebx
je 0x140023505
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
cmp r11d, r8d
jb 0x1400234f9
mov eax, dword [rdx + 8]
lea ecx, [r8 + rax]
cmp r11d, ecx
jb 0x140023586
inc r9d
add rdx, 0x28
cmp r9d, ebx
jl 0x1400234e0
xor r8d, r8d
xor edx, edx
test rdi, rdi
je 0x140023551
mov r9d, 0xa000
nop word [rax + rax]
movzx eax, word [r10]
movzx ecx, ax
and cx, r13w
cmp cx, r9w
jne 0x140023544
and eax, 0xfff
lea rcx, [rax + r8]
mov rax, r15
sub rax, qword [rsi + 0x30]
add qword [rcx], rax
inc edx
add r10, 2
mov eax, edx
cmp rax, rdi
jb 0x140023520
add ebp, dword [r14 + 4]
mov r14, r10
cmp ebp, dword [rsi + 0xb4]
jb 0x1400234b0
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp]
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, r8d
mov r8d, dword [rdx + 0x14]
mov eax, r11d
add rax, r12
add r8, rax
jmp 0x140023508
Function at 0x14002dc54
Capabilities:
Parse pe header

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

Function at 0x140062ad0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180001010
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
lea r15, [rsp + 0x78]
call fcn.180001000
xor ebp, ebp
mov qword [rsp + 0x28], r15
mov r9, rbx
mov qword [rsp + 0x20], rbp
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
mov r14, rax
or rcx, 2
call fcn.180009500
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
lea ecx, [rbp + 0x40]
lea eax, [rax*2 + 2]
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18000112d
mov ecx, ebx
mov rdx, rax
shr rcx, 1
mov rax, rcx
je 0x1800010a5
cmp word [rdx], bp
je 0x1800010aa
add rdx, 2
sub rcx, 1
jne 0x180001096
test rcx, rcx
je 0x180001124
sub rax, rcx
mov qword [rsp + 0x38], rdi
lea rcx, [rax + rax]
mov rax, rcx
sub rbx, rcx
shr rax, 1
shr rbx, 1
lea rdi, [rsi + rax*2]
je 0x180001116
cmp rbx, 0x7fffffff
jbe 0x1800010d6
mov word [rdi], bp
jmp 0x180001116
mov rcx, qword [r14]
dec rbx
mov r9, qword [rsp + 0x70]
or rcx, 1
mov r8, rbx
mov qword [rsp + 0x28], r15
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call fcn.180009500
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
test eax, eax
js 0x180001112
movsxd rcx, eax
cmp rcx, rbx
ja 0x180001112
jne 0x180001116
mov word [rdi + rbx*2], bp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x40
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800013d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [0x18001fa48]
mov rbx, r8
lea rcx, str._PPLmedic___ws__DllGetClassObject_r_n
call fcn.180001010
xor edi, edi
mov qword [rbx], rdi
lea ecx, [rdi + 0x28]
call fcn.180002af0
mov rbx, rax
lea ecx, [rdi + 0x40]
mov edx, 0x1000
mov qword [rax + 0x14], rdi
mov qword [rax + 0x1c], rdi
mov dword [rax + 0x24], edi
lea rax, str.PPLmedicPipe
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x1000
lea ecx, [rdi + 0x40]
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rcx, str.WaaSMedicLoadEvent
mov qword [rbx + 0x20], rax
call fcn.1800015f0
mov rcx, qword [rbx]
xor edx, edx
call fcn.180001a30
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180001481
mov qword [rsp + 0x28], rdi
lea r8, [0x180001580]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 0x80040111
add rsp, 0x30
pop rdi
ret

Function at 0x180001500
Capabilities:
Print debug messages

Disassembly:
lea rdx, [0x18001fbe0]
lea rcx, str._PPLmedic___ws__WerpInitiateCrashReporting_r_n
jmp fcn.180001010
Function at 0x180001a30
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x180024008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, edx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
mov edx, 0x20a
lea ecx, [rbx + 0x41]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001b2f
lea edx, [rbx + 2]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x180001b2f
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [rbx + 2]
lea rcx, str.D:_A_OICI_GA___WD_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x180001b2f
mov r9, rbp
lea r8, str..pipe_ws
mov edx, 0x104
mov rcx, rdi
call fcn.180001520
mov edx, 3
mov eax, 0x40000003
test esi, esi
mov r9d, 0xff
mov rcx, rdi
cmovne edx, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001b2f
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8, rdi
lea rdx, str.Server::CreateCustomNamedPipe
lea rcx, str._PPLmedic___ws__Pipe:__ws__LE:__d__Handle:__d_r_n
call fcn.180001010
jmp 0x180001b57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rdx, str.Server::CreateCustomNamedPipe
lea rcx, str._PPLmedic___ws__Pipe:__ws__LE:__d__Handle:__d_r_n
call fcn.180001010
test rdi, rdi
je 0x180001b60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180002ad0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ec54
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 0x18000ec84
xor eax, eax
jmp 0x18000ed47
mov rbp, rbx
cmp word [rax], si
je 0x18000eca9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000ec90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000ec8c
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.18000eb74
movsxd r14, eax
test eax, eax
jne 0x18000ece7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000ec7d
mov rcx, r14
call fcn.18000b168
mov rdi, rax
test rax, rax
jne 0x18000ed00
xor ecx, ecx
call fcn.18000b12c
jmp 0x18000ecdc
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.18000eb74
test eax, eax
jne 0x18000ed31
mov rcx, rdi
call fcn.18000b12c
jmp 0x18000ed3b
xor ecx, ecx
call fcn.18000b12c
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 0x180015f40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180015f68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180015f68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret