joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019ef4c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14019f13c
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1402b56c0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, qword [rbp + 0x430]
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x30], r9
mov rdx, r9
lea rcx, [rbp - 0x80]
mov rsi, r8
call fcn.14019e234
lea rbx, [rbp + 0x340]
mov edi, 4
mov r8d, 0x10
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, 0x10
sub rdi, 1
jne 0x14019efb2
lea r13d, [rdi + 4]
mov r8d, r13d
lea rdx, [rbp + 0x34c]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [rsp + 0x20]
lea rax, [rbp + 0x380]
sub r15, rax
lea rax, [rbp + 0x380]
sub r12, rax
bswap r14d
xor ebx, ebx
lea rdi, [rbp + 0x34c]
lea eax, [rbx + r14]
mov r8, r13
bswap eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
inc rbx
add rdi, 0x10
cmp rbx, r13
jb 0x14019f00a
mov r13, qword [rsp + 0x30]
lea rdx, [rbp + 0x340]
mov edi, 4
lea rcx, [rsp + 0x40]
cmp rsi, rdi
mov rbx, rsi
cmovae rbx, rdi
mov r8, rbx
mov qword [rsp + 0x20], rbx
call fcn.14019ed98
mov edx, dword [r13 + 0xf0]
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14019e168
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x380]
call fcn.14019e2c4
test rbx, rbx
je 0x14019f0f8
lea rdi, [rbp + 0x380]
mov r13, rbx
mov ebx, 2
lea rdx, [r15 + rdi]
mov r8d, 8
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x38]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x38]
lea rcx, [r12 + rdi]
xor qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov r8d, 8
call sub.VCRUNTIME140.dll_memcpy
add rdi, 8
sub rbx, 1
jne 0x14019f09a
sub r13, 1
jne 0x14019f095
mov rbx, qword [rsp + 0x20]
lea edi, [r13 + 4]
sub rsi, rbx
je 0x14019f113
add r15, 0x40
add r12, 0x40
add r14d, edi
mov r13d, 4
jmp 0x14019f001
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1401a10b0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a0c18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, 1
xor r9d, r9d
lea r11d, [r10 + 0x3f]
mov r8, r10
shr r9, 1
and r8d, 1
neg r8
mov rdx, r8
and rdx, rcx
mov rax, rdx
xor rax, r10
and r10, rdx
shr rax, 1
add r10, rax
movabs rax, 0x8000000000000000
and r8, rax
add r9, r8
sub r11, 1
jne 0x1401a0c2a
mov rbx, qword [rsp + 8]
mov rax, r9
ret

Function at 0x1401a1588
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a15d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a15d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a15d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a15d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a15d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401a15d4
xor al, al
add rsp, 0x28
ret
Function at 0x1401a6080
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401891b0
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x1401a6102
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401a6132
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401a6146
lea rax, str._bL__
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x1401a6166
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140017ff0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401a6166
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140017ff0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1404e3c20]
mov dword [rax], 1
mov rax, qword [0x1404e3c30]
mov dword [rax], 1
mov rax, qword [0x1404e3c40]
mov dword [rax], 1
mov rax, qword [0x1404e3ba0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1404555b0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1404b87e0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140455675
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404c96f8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140455656
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140455648
test rsi, rsi
je 0x1404c96f8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140455608
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1404556a4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1404556c0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14045577d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404c96fe
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14045575e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140455750
test rsi, rsi
je 0x1404c96fe
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140455710
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14046c480
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x14051d970]
mov rsi, rcx
test rbx, rbx
je 0x14046c500
mov rax, qword [0x1404e3d70]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14046c4f0
mov rdx, qword [0x14051dba8]
test rdx, rdx
je 0x14046c5f8
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x14046c4d1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1404555b0
test rax, rax
je 0x14046c618
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404c97b0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14046c59e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14046c590
test rbx, rbx
je 0x1404c97b0
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14046c550
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.14046c3c0
mov rbx, rax
mov qword [0x14051d970], rbx
jmp 0x14046c4a2
lea rcx, [0x1404e0370]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x14051dba8], rax
mov rdx, rax
jmp 0x14046c4c2
mov rbx, qword [0x14051d988]
test rbx, rbx
jne 0x14046c5e6
cmp byte [0x14051dba2], 0
je 0x14046c656
mov rdx, 0xffffffffffffffff
lea rcx, [0x14051d9a0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x14051d988], rax
mov rbx, rax
test rax, rax
je 0x14046c662
add qword [rax], 1
jmp 0x14046c5e6
mov ecx, 1
call fcn.1404561d0
jmp 0x14046c62d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14046dfa0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1404555b0
test rax, rax
je 0x14046e100
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404c97ce
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14046e056
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14046e048
test rbx, rbx
je 0x1404c97ce
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14046e008
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x14051e2e0]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1404e3d70]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14046e150
mov r8, rbx
mov rcx, rsi
call fcn.140458630
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140469cb0
sub qword [rbx], 1
jne 0x14046e0e4
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14051d980]
lea rsi, [0x14051d980]
test bl, bl
je 0x14046e120
mov rax, qword [0x14051d988]
lea rsi, [0x14051d988]
test rax, rax
jne 0x14046e0e4
cmp byte [0x14051dba2], 0
je 0x14046e17d
mov rdx, 0xffffffffffffffff
lea rcx, [0x14051d9a0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14046e187
add qword [rax], 1
jmp 0x14046e0e4
mov rdx, qword [0x14051e258]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14046e192
mov r8, rdi
mov rcx, rsi
call fcn.140458630
mov qword [0x14051e2e0], rax
mov rdx, rax
jmp 0x14046e0ae
movzx ecx, bl
call fcn.1404561d0
jmp 0x14046e12e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1404dbd7e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14051e258], rax
mov rdx, rax
test rax, rax
je 0x1404c97ce
jmp 0x14046e163
Function at 0x1404aea20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14051d969], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1404aeac8
lea rdx, [0x1404dfafa]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1404aeb30
mov rbx, qword [0x14051d808]
jmp 0x1404aea65
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1404aea60
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1404aeab7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14049de50
mov r8, rax
cmp rdi, rbx
jne 0x1404aeaa0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14051d808], rax
mov ebx, dword [rax]
mov qword [0x14051d808], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14051d808], rdx
call fcn.1404adb50
cmp eax, ebx
jne 0x1404aebb7
mov byte [0x14051d969], 1
jmp 0x1404aea40
cmp byte [0x14051d968], 0
jne 0x1404aea57
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x14051e4e8], rax
call rbx
mov qword [0x14051e4e0], rax
call rbx
mov qword [0x14051e4d8], rax
call rbx
mov qword [0x14051e4d0], rax
call rbx
mov qword [0x14051e4c8], rax
call rbx
mov qword [0x14051e4c0], rax
call rbx
mov qword [0x14051e4b8], rax
call rbx
mov byte [0x14051d968], 1
mov qword [0x14051e4b0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x14051d800], rax
jmp 0x1404aea57
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1404b74c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1404c8c50
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1404c8c50
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1404b8192
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14051e9a8]
test eax, eax
je 0x1404b822a
lea rax, [0x14051e980]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14051e9b0]
mov qword [rbp - 8], rax
jmp 0x1404b820e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1404b8202
cmp qword [rbp - 0x10], 0
je 0x1404b8202
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1404b81c8
lea rax, [0x14051e980]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1404b822b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1404b8330
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1404b8358
mov eax, 0
jmp 0x1404b83a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1404b8381
mov eax, 0
jmp 0x1404b83a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1404b83a1
mov eax, 0
jmp 0x1404b83a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1404b83ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1404b842a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1404b8421
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1404b8421
mov rax, qword [rbp - 8]
jmp 0x1404b843f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1404b83f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000191c
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 [0x1400213a8]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor esi, esi
mov dword [rbp - 0x7c], 2
lea rax, [0x140017070]
mov qword [rsp + 0x58], rsi
xorps xmm0, xmm0
mov dword [0x140021d30], esi
lea r15, [0x140017030]
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]
nop dword [rax + rax]
lea rcx, [rsp + 0x60]
call fcn.1400016a8
test eax, eax
js 0x140001abc
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]
nop dword [rax + rax]
test eax, eax
js 0x140001abc
lea rax, [rsp + 0x58]
mov r8d, r14d
lea r9, [0x140018238]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x1400181e0]
call qword [sym.imp.OLE32.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x140001a8c
xor edx, edx
lea rcx, [rbp - 0x4c]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x114
mov ebx, r14d
call fcn.14001360c
test eax, eax
je 0x140001a61
cmp dword [rbp - 0x40], 2
jne 0x140001a61
cmp dword [rbp - 0x4c], 6
jne 0x140001a61
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 [0x140017da8]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140017da8]
cmp byte [0x140021d20], sil
jne 0x140001abe
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x50]
call fcn.140003ba8
cmp al, r14b
jne 0x140001b06
call fcn.140001b14
mov edi, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
call fcn.140002180
lea rcx, [rsp + 0x70]
call fcn.140002c30
mov eax, edi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400144d0
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 0x140001abe
Function at 0x1400064ac
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 0x1400065a6
mov rax, qword [0x140021250]
lea rcx, [0x140021250]
mov rax, qword [rax + 0x18]
call qword [0x140017da8]
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.140006d10
nop
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x88]
call fcn.140006f5c
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006568
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140017da8]
xor eax, eax
add rsp, 0xa0
pop r14
pop rsi
pop rbx
ret
cmp ebx, dword [rcx + 0x90]
ja 0x140006568
test ebx, ebx
je 0x140006568
sub ebx, 1
je 0x1400065cd
sub ebx, 1
je 0x1400065c6
sub ebx, 1
mov ecx, 0x4000000
jmp 0x1400065d2
mov ecx, 0x3000000
jmp 0x1400065d2
mov ecx, 0x2000000
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x80], rbx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140006663
cmp qword [rsi + 0x18], 0
je 0x140006663
cmp qword [rsi + 0x28], 0
je 0x140006663
mov r8, rbx
mov rdx, r9
call qword [0x140017da8]
mov rbx, rax
mov rax, qword [rsi + 0x28]
call qword [0x140017da8]
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], 0x106
xor r9d, r9d
lea r8, [0x1400189c8]
mov edx, r14d
mov rcx, rbx
mov rax, qword [rsi + 0x18]
call qword [0x140017da8]
jmp 0x1400066d0
mov rax, qword [0x140021250]
lea rcx, [0x140021250]
mov rax, qword [rax + 0x18]
call qword [0x140017da8]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8, rbx
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call fcn.140006d10
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop dword [rax + rax]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400066d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140017da8]
nop
jmp 0x140006568

Function at 0x1400081f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x140018b28]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x140008223
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadResource]