joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400230a4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x1400230a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x1400230a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400230a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x1400230a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400230a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x1400230a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140023100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400230e0]
test rbx, rbx
je 0x140001ecc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002110
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000215d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000215f
add rax, 0x28
cmp rax, r9
jne 0x140002140
xor eax, eax
ret

Function at 0x140002160
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400021f0
mov rdx, qword [0x140020390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400021de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400021de
cmp word [rax + 0x18], 0x20b
jne 0x1400021de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400021f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400021c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400021f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400021c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140020390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000227d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002220
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140020390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000229f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000229f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140020390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400022e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400022e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002327
test rcx, rcx
je 0x1400022e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002318
xor eax, eax
ret
Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140020390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140020390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400023f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002400
add rdx, 0x28
cmp r9, rdx
jne 0x1400023e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140020390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002432
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000249e
test ecx, ecx
jg 0x1400024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14072f79f
Capabilities:
Encode data using xor

Disassembly:
push 0
call fcn.140d52862
neg word [rsp + 0x20]
not r10w
call fcn.140dfedfb
call fcn.140cceda2
movabs al, byte [0xe67dc107b09a029a]
sti
stosd dword [rdi], eax
sti
in eax, 0x16
sar dword [rdx + rcx*4], 0x99
adc al, 0x49
xchg ebx, eax
jnp 0x14072f822
cmp dh, bh
cmp dh, bh
jg 0x14072f744
sbb dword [rbp + 0x1a135fad], ebx
pop rsp
int 3
je 0x14072f7b1
call qword [rsi - 0x3460e677]
jne 0x14072f7bb
not byte [rbp + 0x42]
cmc
in eax, 0xdd
out dx, al
cmc
in eax, 0x44
lea ebx, [r9]
lea ebx, [rcx]
mov edi, 0x1a0b2b51
xor cl, byte [rbp - 0x44]
jp 0x14072f854
cwde
mov ch, 0x13
mov ebx, dword [rcx + 0x74ffc3f6]
out 0xb9, al
adc edi, ebx
jrcxz 0x14072f7e2
adc byte [rcx], cl
add dword [rcx + rbx + 0x79161307], 0xffffffe6
adc edi, dword [rsi]
enter 0x266e, 0x68
xor bl, ah
mov eax, 0x3a7b1f4e
mov ecx, 0x7f3bf3ab
out 0xac, al
in eax, 0x50
invalid
xor esi, dword [rdi]
jg 0x14072f831
or ebx, 0x92d092d3
test dword [rbp - 0x3e], esi
sub rdx, qword [rcx]
add dword [0xde283752], eax
adc dword [rcx], eax
add eax, 0x9db53f1a
sub eax, 0x392e9448
idiv dh
retf 0xcc78
jae 0x14072f8bf
out 0x56, al
invalid
int1
and word [rdi + rsi - 0x5d], 0x56
sub al, 0x95
enter 0xffffffffffff88e5, 0xffffffffffffffc0
push 0xffffffffffffffb7
invalid

Function at 0x140d8d828
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
pushfq
movabs rbx, 0x1bd71f6e49c30e2a
mov ebx, 0x212a050c
or bx, bx
not bx
neg ebx
movzx ebx, bl

Function at 0x140dd96c3
Capabilities:
Encode data using xor

Disassembly:
ja 0x1407da263
test byte [rsp + 0xd], r15b
not r8b
js 0x1407da263

Function at 0x140dd9e9e
Capabilities:
Encode data using xor

Disassembly:
jo 0x14073df1f
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x30]
call fcn.140e22c0a

Function at 0x140ddd5eb
Capabilities:
Encode data using xor

Disassembly:
mov r12, qword [rsp + 0x28]
not byte [rsp + 8]
add qword [rsp], 0x6e7a2d
sub word [rsp + 8], dx
setbe sil
bswap r8d
add r8d, 0x4a074c92
js 0x140f60042
ret 8
seta r15b
lea rdx, [rsi + r15*2 + 0x2f4d2be3]
mov r15, qword [rsp + 0x30]
add rsi, 0x88d7e02
setge sil
and word [rsp + 8], 0x4d49
and rsi, 0x91b610f
xor qword [rsp + 8], 0x4fc237e4
test dword [rsp + 0xa], esi
movsx esi, si
seto r12b
cmp r12, qword [rsp + 8]
mov dword [rsp + 8], 0x44412972
setle dl
and dl, sil
not qword [rsp + 8]
jo 0x140ddd607
mov dword [rsp + 8], edx
setb r8b
neg r8b
and si, dx
ja 0x140d8df3e
nop
invalid
push r11
pushfq
Function at 0x140e274a7
Capabilities:
Check http status code

Disassembly:
push rbp
push rsi
xchg si, bp
pushfq
rol si, cl
rcr sil, 0x6e
push rax
cmc
movsx ebp, r12w
push r12
push rdi
ror ah, 0x53
cbw
movzx eax, di
push r14
movsx rsi, di
movzx ebp, r8w
mov al, 0x56
push r8
movzx bp, r11b
push r15
not si
push r11
cmovnp si, r8w
push rcx
movzx cx, r11b
push rdx
movsxd rdx, r10d
rol ecx, 0x7e
push rbx
btr ecx, r14d
cmovno rcx, rdi
cwde
push r9
lahf
push r10
rcl esi, cl
stc
push r13
btr ax, r15w
rcr r8w, 0x42
movabs rax, 0
cqo
push rax
mov r10, qword [rsp + 0x90]
jmp 0x140f3320d
jmp rbp
dec ecx
jmp 0x140f336fd
ror r10d, 1
movsx r11w, sil
cwd
mov r8b, r11b
bswap r10d
rcr r11w, cl
not r10d
movsx cx, dl
sar edx, 0x97
rol sil, 6
neg r10d
stc
ror r10d, 1
not r10d
movsx rsi, r14w
cqo
add r10, rax
sal r11, cl
bt r11d, r11d
movabs rdx, 0x100000000
cmp al, r14b
lea r10, [r10 + rdx]
cmp r12d, edx
stc
mov r8, rsp
movzx bp, r8b
rcr ebp, cl
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
btr cx, r9w
btc si, sp
mov rsi, r10
movabs r11, 0
clc
xadd bp, bp
sub rsi, r11
rcl cl, 0x1b
mov cl, bpl
lea rbp, [0x140f3329a]
mov cx, 0x43f
sub r10, 4
mov ecx, dword [r10]
test bpl, 0xc8
stc
xor ecx, esi
jmp 0x140ecd64b
bswap ecx
dec ecx
not ecx
test r11w, r9w
push rsi
btr esi, 0x13
xor dword [rsp], ecx
add sil, dl
movsx esi, r13w
test rcx, 0x427719a2
pop rsi
test r12b, 0xd1
test si, r9w
movsxd rcx, ecx
cmp dil, sil
add rbp, rcx
jmp 0x140eccdee
Function at 0x14000163c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
mov rax, qword [0x14001f288]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor esi, esi
mov dword [rbp - 0x7c], 2
lea rax, [0x140015070]
mov qword [rsp + 0x58], rsi
xorps xmm0, xmm0
mov dword [0x14001fbc0], esi
lea r15, [0x140015030]
mov qword [rsp + 0x78], rsi
lea r14d, [rsi + 1]
mov byte [rbp - 0x80], sil
mov ecx, r14d
mov qword [rsp + 0x70], rax
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rsp + 0x60]
call fcn.1400013d0
test eax, eax
js 0x1400017c2
mov rcx, qword [rsp + 0x68]
lea eax, [rsi + 3]
mov qword [rsp + 0x40], rsi
or edi, 0xffffffff
mov dword [rsp + 0x38], esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.OLE32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400017c2
lea rax, [rsp + 0x58]
mov r8d, r14d
lea r9, [0x140016128]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x1400160d0]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
test eax, eax
js 0x140001798
mov ebx, 0x114
lea rcx, [rbp - 0x50]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x50]
mov ebx, r14d
call fcn.140011968
test eax, eax
je 0x14000176d
cmp dword [rbp - 0x40], 2
jne 0x14000176d
cmp dword [rbp - 0x4c], 6
jne 0x14000176d
cmp dword [rbp - 0x48], esi
cmove ebx, esi
mov rcx, qword [rsp + 0x58]
lea r8, [rbx + 1]
mov edx, r14d
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140015d30]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015d30]
cmp byte [0x14001fbb0], sil
jne 0x1400017c4
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x50]
call fcn.140003668
cmp al, r14b
jne 0x14000180b
call fcn.140001818
mov edi, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
call fcn.140001e70
lea rcx, [rsp + 0x70]
call fcn.1400027b8
mov eax, edi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400127c0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edi, dword [rsp + 0x50]
jmp 0x1400017c4
Function at 0x140005d4c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push r14
sub rsp, 0xa0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov ebx, r8d
mov r14d, edx
mov rsi, rcx
cmp dword [rcx], 0
jne 0x140005e45
mov rax, qword [0x14001f1e0]
lea rcx, [0x14001f1e0]
mov rax, qword [rax + 0x18]
call qword [0x140015d30]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x8c], ebx
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x78], r8
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x90]
call fcn.140006590
nop
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x88]
call fcn.1400067c0
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005e08
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140015d30]
xor eax, eax
add rsp, 0xa0
pop r14
pop rsi
pop rbx
ret
cmp ebx, dword [rcx + 0x90]
ja 0x140005e08
test ebx, ebx
je 0x140005e08
sub ebx, 1
je 0x140005e6c
sub ebx, 1
je 0x140005e65
sub ebx, 1
mov ecx, 0x4000000
jmp 0x140005e71
mov ecx, 0x3000000
jmp 0x140005e71
mov ecx, 0x2000000
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x80], rbx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140005f02
cmp qword [rsi + 0x18], 0
je 0x140005f02
cmp qword [rsi + 0x28], 0
je 0x140005f02
mov r8, rbx
mov rdx, r9
call qword [0x140015d30]
mov rbx, rax
mov rax, qword [rsi + 0x28]
call qword [0x140015d30]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
lea rax, str.CPanther::WdsSetupLogMessageW
mov qword [rsp + 0x30], rax
lea rax, str.onecore_base_ntsetupopktoolsdismlibutilpantherwrapper.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
lea r8, [0x1400168b8]
mov edx, r14d
mov rcx, rbx
mov rax, qword [rsi + 0x18]
call qword [0x140015d30]
jmp 0x140005f69
mov rax, qword [0x14001f1e0]
lea rcx, [0x14001f1e0]
mov rax, qword [rax + 0x18]
call qword [0x140015d30]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8, rbx
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call fcn.140006590
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005f69
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140015d30]
nop
jmp 0x140005e08
Function at 0x140007954
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140007a14
test rdx, rdx
je 0x140007a14
xor r9d, r9d
lea rdx, [0x140016a28]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14000799b
xor ebx, ebx
jmp 0x1400079aa
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x140016a28]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x1400079c9
xor ecx, ecx
jmp 0x1400079d8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x140007a09
test rcx, rcx
je 0x140007a09
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x140007a03
cmp dword [rcx], eax
jne 0x140007a03
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x140007a03
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x140007a05
xor edi, edi
mov eax, edi
jmp 0x140007a16
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400080ac
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14001f288]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov word [rbp + 0x4b], 0x500
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x47], ebx
mov qword [r11 - 0x48], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov esi, ebx
mov dword [rsp + 0x28], ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp + 0x37], rbx
mov dword [rbp + 0x3f], ebx
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000815f
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14000814b
mov esi, dword [rbp + 0x27]
jmp 0x140008153
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x140008167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x14000817a
mov eax, 1
jmp 0x1400081d7
lea rax, [rbp + 0x37]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x47]
mov dword [rsp + 0x48], ebx
mov dl, 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
lea r8d, [r9 + 0x13]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400081d5
mov rdx, qword [rbp + 0x37]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x37]
test eax, eax
cmovne ebx, dword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400127c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400083e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14001f288]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140016e18]
lea rcx, [0x14001fbd0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor esi, esi
test eax, eax
je 0x1400084b0
mov r9d, 0x104
lea rcx, [rsp + 0x20]
mov eax, r9d
cmp word [rcx], si
je 0x14000845e
add rcx, 2
sub rax, 1
jne 0x14000844f
test rax, rax
je 0x140008468
sub r9, rax
jmp 0x14000846b
mov r9, rsi
test rax, rax
je 0x1400084b0
add r9, 0xfffffffffffffffd
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140006d78
test eax, eax
js 0x1400084b0
mov rdx, rbx
mov rcx, rdi
call fcn.1400068c0
test eax, eax
js 0x1400084b0
mov rax, qword [0x140020070]
lea rcx, [rsp + 0x20]
call qword [0x140015d30]
mov eax, 1
jmp 0x1400084b2
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400127c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400084e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov r12, r8
mov r13, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [r11 - 0x50], r15
or rax, 0xffffffffffffffff
mov qword [r11 - 0x40], rax
mov r14, rax
mov qword [r11 - 0x48], rax
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
and qword [r11 - 0x68], rax
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
mov rax, qword [0x140020048]
call qword [0x140015d30]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, r14
je 0x14000863d
test rbx, rbx
je 0x140008589
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x64], rbx
and dword [rsp + 0x6c], r15d
neg rbx
sbb rdi, rdi
lea rax, [rsp + 0x60]
and rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov edx, ebx
mov rax, qword [0x140020068]
call qword [0x140015d30]
test eax, eax
je 0x140008635
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x140008635
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140008635
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
test r15, r15
jne 0x140008689
cmp r14, 0xffffffffffffffff
je 0x140008658
mov rcx, r14
mov rax, qword [0x140020058]
call qword [0x140015d30]
cmp rsi, 0xffffffffffffffff
je 0x140008684
mov rcx, rsi
mov rax, qword [0x140020058]
call qword [0x140015d30]
cmp rsi, 0xffffffffffffffff
je 0x140008684
mov rcx, r13
mov rax, qword [0x140020070]
call qword [0x140015d30]
test r15, r15
je 0x1400086af
test rdi, rdi
je 0x140008696
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x1400086a6
mov qword [rax], r14
test r12, r12
je 0x1400086af
mov qword [r12], rsi
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret