joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b040c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14057e5c8]
test rax, rax
je 0x1400b0456
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b0456
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b0456
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b0456
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b0456
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b0458
xor al, al
add rsp, 0x28
ret
Function at 0x1400289e4
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.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
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.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
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 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
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 0x140029c40
Capabilities:
Parse pe header

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

Function at 0x140001d08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d52
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d54
xor al, al
add rsp, 0x28
ret
Function at 0x140001c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1402508e8], 0
mov rbx, qword [0x140254ab8]
jne 0x140001d03
mov edx, SafeArrayLock
mov rcx, rbx
mov qword [rsp + 0x38], rdi
lea r8d, [rdx - 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x140001cfe
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001cf9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x40], 0
mov rbx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140056690
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140001cf0
lea rcx, [0x1402508e0]
call fcn.140001520
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400032c0
Capabilities:
Write file on windows

Disassembly:
push rdi
mov eax, 0x12d00
call fcn.14006ccc0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x12d10], rbx
mov qword [rsp + 0x12d18], rbp
mov qword [rsp + 0x12d20], rsi
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x12cf0], rax
mov ebx, ecx
lea rbp, [0x140074650]
mov qword [rsp + 0x60], rbp
xor esi, esi
mov qword [rsp + 0x128a0], rsi
mov qword [rsp + 0x128a8], rsi
mov qword [rsp + 0x128b0], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x80], esi
mov dword [rsp + 0xd4d4], esi
mov dword [rsp + 0xd4d8], 0x20000
mov dword [rsp + 0xd4dc], esi
mov dword [rsp + 0xd4e0], esi
mov byte [rsp + 0x12894], sil
mov qword [rsp + 0x128c0], rsi
mov dword [rsp + 0x128c8], esi
mov dword [rsp + 0x128cc], esi
mov dword [rsp + 0x128b8], esi
mov dword [rsp + 0x128d0], esi
mov dword [rsp + 0x128d4], 0x80
mov dword [rsp + 0x128d8], esi
mov dword [rsp + 0x128dc], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x128e0], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 0x1a0c
lea rdx, [0x14024ed50]
lea rcx, [rsp + 0x60]
call fcn.1400193b0
mov rdi, qword [rsp + 0x48]
cmp ebx, 4
jne 0x140003402
lea rcx, [rdi + 0xe0c]
lea r8, str.v4.0.30319
lea edx, [rsi + 0xc]
call fcn.140053d10
lea rdx, [0x140254d10]
lea rcx, [rsp + 0x128f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.DNRuntime.dll
lea rcx, [rsp + 0x128f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x128f0]
call fcn.14006ab60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400034aa
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x2a00
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x140254ad4]
lea r8, [0x140254acc]
lea rdx, [0x140254ac4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd r8, dword [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.1400578c0
nop
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x60]
call fcn.1400197b0
mov rcx, qword [rsp + 0x128a0]
test rcx, rcx
je 0x1400034e2
call fcn.1400532a0
mov eax, 0x2a00
jmp 0x1400034e7
mov eax, 0x2a00
mov rcx, qword [rsp + 0x12cf0]
xor rcx, rsp
call fcn.1400537a0
lea r11, [rsp + 0x12d00]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x1402534e0]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140052938
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140010646
nop
test rbx, rbx
jne 0x140010646
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rdi, rax
jne 0x1400105b3
mov rbx, r13
jmp 0x140010629
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400105c9
mov rbx, r13
jmp 0x140010624
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400105df
mov rbx, r13
jmp 0x140010624
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140010612
nop
nop
cmp rbx, r11
jae 0x140010617
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140010600
cmp rbx, r11
jb 0x14001061c
mov rbx, r13
jmp 0x140010624
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140010661
lea rcx, [0x1402534e0]
mov edx, ebp
call fcn.140052938
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140010580
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140010648
Function at 0x140010760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rcx, qword [0x140254ab8]
mov ebx, dword [0x140256094]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x1400107a3
xor eax, eax
jmp 0x1400108e8
mov rcx, qword [0x140254ab8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001079c
mov rcx, rax
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rsi, [0x140254f10]
xor edx, edx
mov rcx, rsi
mov r8d, 0xff
mov rdi, rax
call fcn.1400578c0
mov rcx, qword [0x140254ab8]
mov r9d, 0xfe
lea edx, [r9 - 0x6e]
mov r8, rsi
call qword [sym.imp.USER32.dll_LoadStringA]
mov qword [0x140250898], rsi
cmp word [rdi + 6], 0
mov rsi, qword [rsp + 0x140]
je 0x14001082c
mov rcx, qword [0x140254ab8]
mov edx, SafeArrayLock
call fcn.140001c00
test ebx, ebx
jne 0x140010892
movzx ecx, word [rdi + 2]
movsx eax, word [rdi]
mov dword [0x14025607c], 1
mov edx, eax
mov word [0x14024ed38], cx
movsx ecx, cx
mov word [0x14024ed36], ax
mov dword [0x14025077c], eax
lea eax, [rcx - 0x28]
mov dword [0x140250780], eax
lea eax, [rcx - 0x1e]
mov dword [0x140250798], edx
mov dword [0x1402507ac], edx
mov dword [0x140250834], eax
movzx r8d, word [rdi + 4]
lea rcx, [0x140001e10]
xor edx, edx
imul r8d, r8d, 0x3e8
call fcn.140053400
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0xff
call fcn.1400578c0
mov rcx, qword [0x140254ab8]
lea r8, [rsp + 0x20]
mov r9d, 0xfe
mov edx, 0x70
call qword [sym.imp.USER32.dll_LoadStringA]
test ebx, ebx
mov rdi, qword [rsp + 0x148]
je 0x1400108d9
lea rcx, [rsp + 0x20]
call fcn.140053dc0
jmp 0x1400108e3
lea rcx, [rsp + 0x20]
call fcn.140001f30
mov eax, 1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400537a0
add rsp, 0x130
pop rbx
ret

Function at 0x1400119e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp word [rcx], 0x5c
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140011a35
cmp word [rcx + 2], 0x3a
je 0x140011a35
lea rdx, [0x140254d10]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140011a43
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
call fcn.14006ab60
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140011ac7
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x140254ad4]
lea r8, [0x140254acc]
lea rdx, [0x140254ac4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400537a0
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001ac80
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rdx + 0x14]
xor r10d, r10d
mov r11d, ecx
lea r9, [rax + rdx + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14001acc0
mov eax, dword [r9 + 8]
test eax, eax
jne 0x14001aca3
mov eax, dword [r9 + 0x10]
mov ecx, dword [r9 + 0xc]
cmp r11d, ecx
jb 0x14001acb3
add eax, ecx
cmp r11d, eax
jb 0x14001acc3
add r10d, 1
add r9, 0x28
cmp r10d, edx
jb 0x14001ac97
xor eax, eax
ret
mov eax, ecx
sub eax, dword [r9 + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r8
ret

Function at 0x140023b60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x160
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
lea rcx, [0x140075e98]
mov r12d, edx
jmp 0x14067ff21

Function at 0x1400305a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rcx, [0x140079188]
jmp 0x140686838

Function at 0x14003cbb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rcx, [0x1400796e0]
jmp 0x14068a255

Function at 0x140042dc0
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x260], 0xfffffffffffffffe
mov r14d, r8d
mov rsi, rdx
mov qword [rsp + 0x28], rdx
mov r15, rcx
lea rcx, [0x140081860]
jmp 0x14068afaf

Function at 0x140043ad0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x1f0], 0xfffffffffffffffe
mov edi, edx
mov rbx, rcx
lea rcx, [0x140081878]
jmp 0x14068c7a9

Function at 0x140044720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov qword [rsp + 0x220], 0xfffffffffffffffe
mov r13d, edx
mov dword [rsp + 0x448], edx
mov rbx, rcx
lea rcx, [0x140081898]
jmp 0x14068dd46
Function at 0x140047310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 8
cmp dword [rcx + 0x3c0], 0
mov r9d, edx
je 0x14004732f
mov rax, r9
add rax, qword [rcx + 0x3d0]
add rsp, 8
ret
mov qword [rsp], rbx
mov rbx, qword [rcx + 0x3d0]
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
cmp word [rdx + 0x18], 0x20b
jne 0x140047398
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x1400473f4
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140047370
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x14004737f
add eax, edx
cmp r9d, eax
jb 0x1400473e3
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x140047366
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x1400473f4
mov eax, dword [rcx + 8]
test eax, eax
jne 0x1400473bb
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x1400473ca
add eax, edx
cmp r9d, eax
jb 0x1400473e3
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x1400473b1
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
mov eax, edx
mov r11, r9
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
sub r11, rcx
add r11, rbx
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret

Function at 0x140047570
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc68
mov qword [rsp + 0x1f8], 0xfffffffffffffffe
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xc50], rax
mov rdi, r9
mov qword [rsp + 0x78], r9
mov rbp, r8
mov qword [rsp + 0x60], r8
mov r12, rdx
mov qword [rsp + 0xa8], rdx
mov rsi, rcx
mov rbx, qword [rsp + 0xcd0]
mov qword [rsp + 0x70], rbx
lea rcx, [0x140081c50]
jmp 0x14068fe6c

Function at 0x14004b4f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x140081e08]
mov ebp, r9d
mov r13, r8
mov esi, edx
jmp 0x140694506
Function at 0x14004cd60
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x670
mov qword [rsp + 0x190], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0x1c0], rdx
mov rax, qword [0x1402560c0]
add rax, 0xe0
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x98], rbx
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov rdx, qword [0x1402560c0]
add rdx, 0x90
mov rdi, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov rcx, rdi
cmp byte [rax + 0x29], r12b
jne 0x14004ce1c
cmp qword [rax + 0x18], rbx
jae 0x14004ce10
mov rax, qword [rax + 0x10]
jmp 0x14004ce16
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], r12b
je 0x14004ce04
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x170], rdx
cmp rcx, rdi
je 0x14004ce41
cmp rbx, qword [rcx + 0x18]
jb 0x14004ce41
lea rcx, [rsp + 0x170]
jmp 0x14004ce59
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x160], rdx
lea rcx, [rsp + 0x160]
lea rdi, [rsp + 0x1d0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov r13, qword [rdx + 8]
mov rdi, qword [rsp + 0x1d0]
test rdi, rdi
je 0x14004ce85
cmp rdi, rdx
je 0x14004ce8a
call fcn.1400543f0
mov rsi, qword [rsp + 0x1d8]
cmp rsi, r13
je 0x14004cead
test rdi, rdi
jne 0x14004cea1
call fcn.1400543f0
cmp rsi, qword [rdi + 8]
jne 0x14004cead
call fcn.1400543f0
nop
lea rcx, [0x140081ed0]
jmp 0x140696f04

Function at 0x1400507b0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov ebp, ecx
lea rcx, [0x140082168]
mov esi, edx
jmp 0x140698a5c

Function at 0x140050920
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, ecx
lea rcx, [0x140082198]
mov ebp, edx
jmp 0x140698c89
Function at 0x1400529b8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400578c0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1400578c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140052a4b
cmp dword [rsp + 0x24], 5
jb 0x140052a65
jmp 0x140052a61
cmp dword [rsp + 0x30], esi
jne 0x140052a65
cmp dword [rsp + 0x24], 4
ja 0x140052a61
jne 0x140052a65
cmp dword [rsp + 0x28], 0
jbe 0x140052a65
mov byte [rbx + 0x18], sil
lea rax, [0x14006ea98]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400527f8
movzx ecx, byte [0x14025622c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14025622c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400537a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140053400
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x14005344d
call fcn.140058940
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayGetElement
call fcn.1400542e0
or rax, 0xffffffffffffffff
jmp 0x1400534e2
mov qword [rsp + 0x40], rdi
call fcn.140058020
mov edx, 0x2d8
mov ecx, 1
call fcn.140058aa0
test rax, rax
mov rdi, rax
je 0x1400534c6
call fcn.140058260
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140058040
lea r8, [0x140053360]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x1400534f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140053aa0
test ebx, ebx
je 0x1400534d9
mov ecx, ebx
call fcn.1400589a0
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140053510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400534c6
mov rax, rbx
jmp 0x1400534dd