joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
je 0x1400c3e27
div dword [rbx + 0x2f197015]
cmp al, 0x60
lahf
ror bh, cl
iretd
invalid
cwde
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d9
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403a
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004030
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040ce
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040ce
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040cd
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004084
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004075
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 0x140004024
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140019018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r8
mov dword [rsp + 0x30], edx
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001118
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
xor ecx, ecx
call fcn.140005b38
int3
Function at 0x140001120
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140019018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov dword [rsp + 0x20], 0xf0000000
mov rbp, rdx
mov rsi, rcx
mov ebx, 1
lea rcx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x30], 0x10
lea edx, [rbx + 1]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000124f
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140001218
lea rcx, [rsp + 0x48]
mov r8d, eax
sub rdi, rcx
lea rdx, [rsp + 0x48]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, ecx
cmp byte [rdi + rdx - 1], al
cmove ecx, ebx
mov ebx, ecx
sub r8, 1
jne 0x140001200
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call fcn.140005b38
int3

Function at 0x140001260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x140019018]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax + 0x20]
sub rbx, 0x10
cmp qword [rbx + 0x30], 0
je 0x140001377
nop word [rax + rax]
mov r8, qword [rbx + 0x50]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [r8 + rdx*2], 0
jne 0x1400012c0
inc rdx
lea rcx, [rsp + 0x20]
mov r9, 0xffffffffffffffff
call fcn.140005e2c
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rax, [rsp + 0x20]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400012f6
add rdx, rdx
lea rcx, [rsp + 0x20]
call fcn.140005dd8
lea rax, [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001320
add rdx, rdx
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.140001120
test eax, eax
jne 0x140001352
mov rbx, qword [rbx + 0x10]
sub rbx, 0x10
cmp qword [rbx + 0x30], 0
je 0x140001377
jmp 0x1400012b0
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
xor ecx, ecx
call fcn.140005b38
int3
Function at 0x140001380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x20]
mov r15d, dword [rdi + 0x1c]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140001427
nop dword [rax]
mov ecx, dword [r14 + rbx*4]
mov rdx, 0xffffffffffffffff
add rcx, rsi
nop
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400013e0
mov r8, r13
call fcn.140001120
test eax, eax
jne 0x1400013fe
inc ebx
cmp ebx, dword [rdi + 0x18]
jae 0x140001427
jmp 0x1400013d0
movzx eax, word [r12 + rbx*2]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, dword [r15 + rax*4]
add rax, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ecx, ecx
call fcn.140005b38
int3
Function at 0x140001a17
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000239a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000239a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000239a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000239a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000239a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000239c
xor al, al
add rsp, 0x28
ret

Function at 0x140005b38
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 0x1400059a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059a3
cmp dword [rcx + 0xf8], 0
je 0x1400059a3
mov ecx, ebx
call fcn.140005a54
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.140005830
nop
cmp dword [rbp + 0x20], 0
je 0x1400059f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400059fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005934
Function at 0x14000957c
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 0x140009603
mov rsi, rbx
cmp word [rax], bp
je 0x1400095c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400095ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400095a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400077cc
mov rdi, rax
test rax, rax
je 0x1400095f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003910
mov rbp, rdi
xor ecx, ecx
call fcn.140007790
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 0x14000e500
Capabilities:
Parse pe header

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

Function at 0x2390c
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
push r15
sub rsp, 0x20
mov r9b, byte [rcx + 1]
mov dil, byte [rcx + 2]
mov r11b, byte [rcx]
shr dil, 7
mov al, r9b
mov rbx, rcx
shr al, 5
not dil
and al, 1
and dil, 1
mov byte [rcx + 0xa], al
jne 0x23951
not r11b
and dword [rsp + 0x50], 0
mov esi, 0x1f
mov r10b, byte [rsp + 0x50]
lea edx, [rsi - 0x1b]
and r9b, sil
mov al, r10b
mov cl, r9b
shl al, 2
add cl, cl
not cl
and cl, 2
mov r10b, cl
or r10b, al
mov al, r9b
shr r9b, 1
and al, 1
or r10b, al
sub rdx, 1
jne 0x23966
mov bpl, r10b
xor r12d, r12d
mov byte [rsp + 0x50], r10b
not bpl
or r13d, 0xffffffff
lea r14d, [rdx + 0x18]
mov byte [rsp + 0x52], bpl
mov r15d, 0xfe
lea rax, [r14 - 0x10]
mov r8d, r13d
dec r13d
sar rax, 2
and r8d, 7
and rax, r15
mov cl, r8b
mov dl, byte [rax + rbx + 2]
mov rax, r14
inc r14
shr dl, cl
mov ecx, r12d
sar rax, 2
and dl, 1
and rax, r15
xor dl, r9b
shl dl, cl
mov cl, r8b
xor r10b, dl
mov dl, byte [rax + rbx + 2]
shr dl, cl
mov ecx, r12d
inc r12d
and dl, 1
xor dl, r9b
shl dl, cl
xor bpl, dl
cmp r13d, 0xfffffff7
jg 0x239ae
and dword [rbx + 0xb], 0
movzx r12d, r11b
xor r13d, r13d
mov r14d, r12d
mov byte [rsp + 0x51], r10b
mov byte [rsp + 0x53], bpl
shl r14d, 3
mov r15, rsi
mov dword [rbx + 0xf], r14d
mov ebp, 0xc
mov rdx, rbx
mov ecx, esi
call fcn.00023850
sub rbp, 1
mov r11d, eax
jne 0x23a2f
mov eax, dword [rsp + 0x50]
mov rcx, r15
dec r15
sar rcx, 2
and ecx, 0xfe
movzx edx, byte [rcx + rbx + 2]
mov ecx, 0xff
sub cl, sil
and ecx, 7
shr edx, cl
mov ecx, esi
shr eax, cl
xor edx, eax
movzx eax, r11b
xor edx, esi
and edx, 1
xor edx, eax
lea eax, [r13 + r13]
mov r13d, edx
or r13d, eax
sub esi, 1
jns 0x23a26
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, dil
lea ecx, [r12 + r12]
mov dword [rbx + 0xb], r13d
or ecx, eax
add ecx, ecx
or ecx, eax
add ecx, ecx
or ecx, eax
mov dword [rbx + 0xf], ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001000
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0xc0], 2
jae 0x14000104e
mov eax, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140001150
add rsp, 0xe8
ret
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x68]
shr rax, 0x14
cmp eax, 0x800
jae 0x14000108e
mov eax, 2
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140001150
add rsp, 0xe8
ret
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, str..PhysicalDrive0
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
imul rax, rcx
mov ecx, dword [rsp + 0x54]
imul rax, rcx
imul rax, qword [rsp + 0x48]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
sbb eax, eax
and eax, 3
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140001150
add rsp, 0xe8
ret

Function at 0x140001a2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a78
xor al, al
add rsp, 0x28
ret
Function at 0x140001538
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor r14d, r14d
mov dword [rbp - 0x7c], 2
lea rax, [0x140014070]
mov qword [rsp + 0x58], r14
lea r12, [0x140014030]
mov dword [0x14001ec00], r14d
mov qword [rsp + 0x78], r14
lea r15d, [r14 + 1]
mov byte [rbp - 0x80], r14b
mov ecx, r15d
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], r14d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r14
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
lea rcx, [rsp + 0x60]
call fcn.14000136c
test eax, eax
js 0x1400016cd
mov rcx, qword [rsp + 0x68]
lea eax, [r14 + 3]
mov qword [rsp + 0x40], r14
or ebx, 0xffffffff
mov dword [rsp + 0x38], r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, ebx
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeSecurity]
test eax, eax
js 0x1400016cd
lea rax, [rsp + 0x58]
mov r8d, r15d
lea r9, [0x140015188]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x140015838]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x1400016a2
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x114
mov edi, r14d
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x114
call fcn.140011458
test eax, eax
je 0x140001672
cmp dword [rbp - 0x40], 2
jne 0x140001672
cmp dword [rbp - 0x4c], 6
jne 0x140001672
cmp dword [rbp - 0x48], r14d
cmove edi, r15d
mov rcx, qword [rsp + 0x58]
neg edi
mov edx, r15d
sbb r8, r8
add r8, 2
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140014db8]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140014db8]
cmp byte [0x14001ebf0], r14b
jne 0x1400016cf
mov dword [rsp + 0x50], r14d
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x50]
call fcn.140003420
cmp al, r15b
jne 0x140001716
call fcn.14000171c
mov ebx, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r12
call fcn.140001d80
lea rcx, [rsp + 0x70]
call fcn.1400027b4
mov eax, ebx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400122a0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ebx, dword [rsp + 0x50]
jmp 0x1400016cf
Function at 0x140005af0
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 0x140005be7
mov rax, qword [0x14001e1e0]
lea rcx, [0x14001e1e0]
mov rax, qword [rax + 0x18]
call qword [0x140014db8]
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.140006328
nop
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x88]
call fcn.14000654c
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005d1b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140014db8]
jmp 0x140005d1b
cmp ebx, dword [rcx + 0x90]
ja 0x140005d1b
test ebx, ebx
je 0x140005d1b
sub ebx, 1
je 0x140005c16
sub ebx, 1
je 0x140005c0f
sub ebx, 1
mov ecx, 0x4000000
jmp 0x140005c1b
mov ecx, 0x3000000
jmp 0x140005c1b
mov ecx, 0x2000000
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x80], rbx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140005cac
cmp qword [rsi + 0x18], 0
je 0x140005cac
cmp qword [rsi + 0x28], 0
je 0x140005cac
mov r8, rbx
mov rdx, r9
call qword [0x140014db8]
mov rbx, rax
mov rax, qword [rsi + 0x28]
call qword [0x140014db8]
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], 0xe5
xor r9d, r9d
lea r8, [0x140015830]
mov edx, r14d
mov rcx, rbx
mov rax, qword [rsi + 0x18]
call qword [0x140014db8]
jmp 0x140005d13
mov rax, qword [0x14001e1e0]
lea rcx, [0x14001e1e0]
mov rax, qword [rax + 0x18]
call qword [0x140014db8]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8, rbx
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call fcn.140006328
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005d13
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140014db8]
nop
jmp 0x140005d1b
xor eax, eax
add rsp, 0xa0
pop r14
pop rsi
pop rbx
ret
Function at 0x14000763c
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 0x1400076fc
test rdx, rdx
je 0x1400076fc
xor r9d, r9d
lea rdx, [0x140015ac0]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FindResourceExW]
test rax, rax
jne 0x140007683
xor ebx, ebx
jmp 0x140007692
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x140015ac0]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FindResourceExW]
test rax, rax
jne 0x1400076b1
xor ecx, ecx
jmp 0x1400076c0
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x1400076f1
test rcx, rcx
je 0x1400076f1
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x1400076eb
cmp dword [rcx], eax
jne 0x1400076eb
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x1400076eb
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x1400076ed
xor edi, edi
mov eax, edi
jmp 0x1400076fe
mov ecx, 0xd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret