joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400649b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400649ca
mov al, 1
jmp 0x140064a2a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400649db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140064a28
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006bce0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140064a28
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140064a28
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140064a28
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140064a2a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140064c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400bf9a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140064ca7
cmp word [rdx], r13w
jne 0x140064ca7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140064cac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140064dd1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140064df2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140064ce5
mov rdx, r9
mov word [rbx], cx
jmp 0x140064d0c
cmp r9, r8
jae 0x140064d1c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140064cc6
jmp 0x140064dd1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140064dc6
cmp dword [rsp + 0x80], esi
je 0x140064dc6
lea r8, [0x1400bf9a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140064d9e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140064d6e
mov word [rbx], r13w
jmp 0x140064dce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140064d7b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140064dce
cmp word [rsp + 0x70], r13w
jne 0x140064dab
cmp rbx, r14
je 0x140064d68
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400645a4
cmp word [rsp + 0x70], r13w
je 0x140064dd1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400bf9a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140064dcb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140064dd1
Function at 0x14006b414
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 0x14006b444
xor eax, eax
jmp 0x14006b507
mov rbp, rbx
cmp word [rax], si
je 0x14006b469
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006b450
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006b44c
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.140069b60
movsxd r14, eax
test eax, eax
jne 0x14006b4a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006b43d
mov rcx, r14
call fcn.140066fb8
mov rdi, rax
test rax, rax
jne 0x14006b4c0
xor ecx, ecx
call fcn.1400642b4
jmp 0x14006b49c
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.140069b60
test eax, eax
jne 0x14006b4f1
mov rcx, rdi
call fcn.1400642b4
jmp 0x14006b4fb
xor ecx, ecx
call fcn.1400642b4
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 0x14006e234
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400630cc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006e2d5
cmp ebx, dword [rsp + 0x30]
je 0x14006e2ce
test esi, esi
je 0x14006e2ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006e2a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006e2b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006e293
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006e2ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006e2d7
mov eax, 1
jmp 0x14006e2d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140071c74
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.1400645a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400645a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140071dc4
cmp rax, 0xffffffffffffffff
je 0x140071dc4
xor edi, edi
test rbp, rbp
jle 0x140071d6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006423c
mov rbx, rax
test rax, rax
jne 0x140071cfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140071d65
mov edx, 0x8000
mov ecx, r14d
call fcn.1400607f4
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.140063f34
cmp eax, 0xffffffff
je 0x140071d45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140071d0c
mov edx, r15d
mov ecx, r14d
call fcn.1400607f4
jmp 0x140071d65
cmp byte [rsi + 0x38], dil
je 0x140071d5c
cmp dword [rsi + 0x34], 5
jne 0x140071d5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140071d65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400642b4
jmp 0x140071dd8
jns 0x140071dd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400645a4
cmp rax, 0xffffffffffffffff
jne 0x140071d90
cmp byte [rsi + 0x30], dil
je 0x140071dd8
mov edi, dword [rsi + 0x2c]
jmp 0x140071dd8
mov ecx, r14d
call fcn.14006bce0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140071dd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140071dd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140071dd1
mov eax, dword [rsi + 0x2c]
jmp 0x140071dd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400645a4
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 0x1400066f4
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140006710
int3
mov rax, qword [rdi]
mov rdx, qword [rax + rcx*8]
cmp qword [rdx + 8], 0
je 0x140006751
mov r8, qword [rdx]
test r8, r8
je 0x140006751
and qword [rdx], 0
and qword [rdx + 8], 0
xor edx, edx
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi]
mov rcx, qword [rax + rcx*8]
add rcx, 0x158
call fcn.14001386c
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi]
mov rsi, qword [rax + rcx*8]
add rsi, 0x138
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400067a0
cmp rdx, rsi
je 0x1400067a0
mov rbx, qword [rdx]
lea rax, [rdx - 0x138]
xor ecx, ecx
cmp rdx, rsi
cmovne rcx, rax
call fcn.140003630
mov rdx, rbx
cmp rbx, rsi
jne 0x140006780
and qword [rsi + 0x18], 0
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
mov qword [rsi + 0x10], rsi
mov rcx, qword [rdi + 0x18]
dec rcx
mov qword [rdi + 0x18], rcx
mov rax, qword [rdi]
mov rdi, qword [rax + rcx*8]
add rdi, 0x138
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400067f6
cmp rdx, rdi
je 0x1400067f6
mov rbx, qword [rdx]
lea rax, [rdx - 0x138]
xor ecx, ecx
cmp rdx, rdi
cmovne rcx, rax
call fcn.140003630
mov rdx, rbx
cmp rbx, rdi
jne 0x1400067d6
and qword [rdi + 0x18], 0
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
mov qword [rdi + 0x10], rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140007fbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x10], 0
test rcx, rcx
je 0x140007ffc
mov edx, 1
call fcn.140007fbc
and qword [rbx + 0x18], 0
mov r8, rbx
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140008918
Capabilities:
Check for peb beingdebugged flag
Query environment variable

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0x20000
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, str.VS_UNICODE_OUTPUT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
je 0x140008ab6
mov eax, 2
mul rbp
mov r8, rax
mov r12, 0xffffffffffffffff
cmovo r8, r12
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140008a8b
mov r8d, ebp
mov rdx, rax
lea rcx, str.VS_UNICODE_OUTPUT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140008a8b
mov rcx, rdi
call fcn.1400fc99c
mov rbp, rax
mov rdx, rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008a8b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov edx, ebx
mov rcx, rbp
call fcn.1400fcf88
mov ebx, eax
cmp eax, r12d
je 0x140008a8b
lea ecx, [r12 + 2]
call fcn.1400fc738
mov rcx, rax
call fcn.1400fd2fc
mov edx, eax
mov ecx, ebx
call fcn.1400fd1f0
mov ecx, ebx
cmp eax, r12d
je 0x140008a86
call fcn.1400fd3a0
lea ecx, [r12 + 2]
call fcn.1400fc738
mov rcx, rax
call fcn.1400fd824
nop
mov rax, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140008b18
call fcn.1400fd3a0
mov ebx, 0x40000
test rdi, rdi
je 0x140008ab4
mov rax, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140008aeb
and dword [rsp + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileType]
nop dword [rax + rax]
test al, 2
je 0x140008ae6
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
nop dword [rax + rax]
test eax, eax
jne 0x140008aeb
mov ebx, 0x40000
mov ecx, 1
call fcn.1400fc738
mov rcx, rax
call fcn.1400fd2fc
mov ecx, eax
mov edx, ebx
call fcn.1400fd8d4
mov ecx, 1
call fcn.1400fc738
mov rcx, rax
call fcn.1400fd824
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x140008b48
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
call fcn.140008918
xor r9d, r9d
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
call fcn.140008c40
test eax, eax
jns 0x140008c0e
mov ecx, eax
call fcn.1400cca0c
and qword [rsp + 0x30], 0
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
xor r8d, r8d
mov edx, ebx
mov rcx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140004e78
mov r9, qword [rsp + 0x30]
lea rdx, [0x140149238]
mov r8d, ebx
lea rcx, str._ls_exited_with_error:_0x_08lx____ls
call qword [sym.imp.NTDLL.dll_DbgPrint]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008c23
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rax, rax
je 0x140008c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
jmp 0x140008c23
cmp byte [0x1401a9f11], bl
je 0x140008c23
cmp byte [0x1401a9584], bl
mov eax, 0x41020001
jne 0x140008c25
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140109af0
add rsp, 0x40
pop rbx
ret
Function at 0x140018904
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov rax, qword gs:[0x60]
xor edx, edx
lea r8d, [r12 + 0x38]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140018981
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x18], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], r12
jmp 0x140018984
mov rbx, r12
mov qword [rbp - 0x50], rbx
test rbx, rbx
jne 0x1400189be
lea rax, str.onecore_basewcp_toolsmtmtmt_manifestmerger.h
mov qword [rbp - 0x48], rax
lea rax, str.UdomUtil_Implementation::CStateStack::Push
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], SystemTimeToVariantTime
lea rax, str.StateDetails.Allocate__
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x48]
jmp 0x140018a5e
mov qword [rbx], r15
mov qword [rbx + 8], rsi
lea rsi, [rbx + 0x10]
cmp qword [rsi], r12
jne 0x140018a32
mov rdx, qword [r14 + 8]
mov rcx, rsi
call fcn.14001c41c
test rax, rax
je 0x140018a32
mov rdx, r12
cmp qword [r14 + 8], r12
jbe 0x140018a07
mov rcx, r12
mov rax, qword [r14]
movups xmm0, xmmword [rcx + rax]
mov rax, qword [rsi]
movdqu xmmword [rcx + rax], xmm0
inc rdx
lea rcx, [rcx + 0x10]
cmp rdx, qword [r14 + 8]
jb 0x1400189eb
mov qword [rbp - 0x50], r12
lea rcx, [rbx + 0x20]
mov rax, qword [rdi]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov qword [rdi], rcx
mov qword [rcx + 0x10], rdi
inc qword [rdi + 0x18]
xor eax, eax
jmp 0x140018ac8
lea rax, str.onecore_basewcp_toolsmtmtmt_manifestmerger.h
mov qword [rbp - 0x28], rax
lea rax, str.UdomUtil_Implementation::CStateStack::Push
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 0xb8
lea rax, str.StateDetails__NodeList.Allocate_NodeList__Length_
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
mov r8d, 0xc0000017
call fcn.1400c81b4
nop
test rbx, rbx
je 0x140018ac3
mov qword [rbp - 0x50], r12
mov qword [rbx + 0x30], r12
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140018aa4
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov rax, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov eax, 0xc0000017
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140018b64
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
xor eax, eax
test rdx, rdx
je 0x140018bcd
mov qword [rdx + 0x30], rax
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x140018bae
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov rax, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
add rsp, 0x30
pop rbx
ret
Function at 0x14001ab74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xb0
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, qword [rbp + 0x7f]
mov rdi, rdx
and dword [rbp + 0x2f], 0
test rbx, rbx
jne 0x14001abad
int3
and qword [rbx], 0
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
test rdi, rdi
jne 0x14001abc1
int3
xor r9d, r9d
lea rdx, str.mergerules
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14001ac35
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
test eax, eax
js 0x14001ac00
int3
and qword [rbp - 0x39], 0
lea rcx, str.onecore_basewcp_toolsmtmtmt_manifestmerger.cpp
mov qword [rbp - 0x51], rcx
lea rcx, str.Win32LoadFirstResource
mov qword [rbp - 0x49], rcx
lea rcx, [rbp - 0x51]
mov dword [rbp - 0x41], 0x296
mov r8d, ebx
call fcn.1400c81b4
mov eax, ebx
jmp 0x14001ad56
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14001ac91
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
test eax, eax
js 0x14001ac69
int3
and qword [rbp - 0x19], 0
lea rcx, str.onecore_basewcp_toolsmtmtmt_manifestmerger.cpp
mov qword [rbp - 0x31], rcx
lea rcx, str.Win32LoadFirstResource
mov qword [rbp - 0x29], rcx
lea rcx, [rbp - 0x31]
mov dword [rbp - 0x21], 0x299
jmp 0x14001ac26
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov eax, eax
mov qword [rbx + 8], rax
mov qword [rbx], rax
test rax, rax
jne 0x14001acf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
test eax, eax
js 0x14001accb
int3
and qword [rbp + 7], 0
lea rcx, str.onecore_basewcp_toolsmtmtmt_manifestmerger.cpp
mov qword [rbp - 0x11], rcx
lea rcx, str.Win32LoadFirstResource
mov qword [rbp - 9], rcx
lea rcx, [rbp - 0x11]
mov dword [rbp - 1], 0x29b
jmp 0x14001ac26
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001ad53
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400cc8ac
mov ebx, eax
test eax, eax
js 0x14001ad28
int3
and qword [rbp + 0x27], 0
lea rcx, str.onecore_basewcp_toolsmtmtmt_manifestmerger.cpp
mov qword [rbp + 0xf], rcx
lea rcx, str.Win32LoadFirstResource
mov qword [rbp + 0x17], rcx
lea rcx, [rbp + 0xf]
mov dword [rbp + 0x1f], 0x29c
jmp 0x14001ac26
mov eax, dword [rbp + 0x2f]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140109af0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003a78c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
test rcx, rcx
je 0x14003a848
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rcx
mov ecx, 1
mov dword [rbx + 0x1c], ecx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x38], ecx
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14003a7ef
call fcn.140012410
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
movups xmmword [rbx + 0x40], xmm0
movsd xmm0, qword [rsp + 0x48]
movsd qword [rbx + 0x50], xmm0
or dword [rsp + 0x30], 0xffffffff
movups xmm0, xmmword [rsp + 0x28]
movdqu xmmword [rbx + 0x58], xmm0
mov byte [rbx + 0x18], 0
lea rcx, [rbx + 0x40]
call fcn.14000342c
nop
lea rcx, [rbx + 0x20]
call fcn.14000342c
nop
and qword [rbx + 0x10], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret