joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096610
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x14009665c
call fcn.140095ce0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayUnaccessData
call fcn.140099620
xor eax, eax
jmp 0x140096702
mov qword [rsp + 0x50], rdi
call fcn.14003ffd0
mov edx, 0x2d8
mov ecx, 1
call fcn.14009d540
test rax, rax
mov rdi, rax
je 0x1400966e8
call fcn.1400990c0
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140098ea0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x140096570]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400966fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140092d10
test ebx, ebx
je 0x1400966fb
mov ecx, ebx
call fcn.140095d40
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x1400979c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400979fe
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400979e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140097be5
mov ecx, 3
call fcn.1400a84e0
cmp eax, 1
je 0x140097b9c
mov ecx, 3
call fcn.1400a84e0
test eax, eax
jne 0x140097a35
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x140097b9c
cmp edi, 0xfc
je 0x140097be5
mov qword [rsp + 0x50], rbp
lea rbp, [0x1400feec0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400946c0
test eax, eax
je 0x140097a79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140099580
lea rdx, [0x1400feed9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1400fefdd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140097ac9
lea r8, str._program_name_unknown_
lea rcx, [0x1400feed9]
mov edx, 0x2fb
call fcn.1400946c0
test eax, eax
je 0x140097ac9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140099580
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400feed9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140097b18
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1400ff1d4]
lea r9d, [rax + 3]
lea r8, [0x1400c2b84]
sub rdx, rcx
call fcn.140094cc0
test eax, eax
je 0x140097b18
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140099580
lea r8, [0x1400c2b80]
mov edx, 0x314
mov rcx, rbp
call fcn.140094600
test eax, eax
je 0x140097b44
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140099580
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140094600
test eax, eax
je 0x140097b74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140099580
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400a8280
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140097be5
cmp rax, 0xffffffffffffffff
je 0x140097be5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140098500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x1400ff3ec]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14009855c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14009853c
mov dword [0x1400ff3ec], 1
jmp 0x14009856f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140098556
mov dword [0x1400ff3ec], 2
jmp 0x1400985d9
mov eax, dword [0x1400ff3ec]
cmp eax, 1
jne 0x1400985d0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400985aa
cmp word [rdi], bp
mov rax, rdi
je 0x140098589
add rax, 2
cmp word [rax], bp
jne 0x140098577
add rax, 2
cmp word [rax], bp
jne 0x140098577
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14009d4d0
test rax, rax
mov rbx, rax
jne 0x1400985b1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400986cb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140095e30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400986cb
cmp eax, 2
je 0x1400985d9
test eax, eax
jne 0x1400985aa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400985aa
cmp byte [rax], bpl
mov rbx, rax
je 0x140098628
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400985aa
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400985f0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14009d540
test rax, rax
mov r12, rax
jne 0x14009864d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400986cb
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400986b5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400986de
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140098660
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140092d10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400986c6
Function at 0x140099620
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x1400ff400]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140098da0
test rax, rax
je 0x140099674
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140099709
mov ecx, 2
call fcn.1400a8540
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140096180
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400996f5
test ebx, ebx
jne 0x1400996f5
lea ecx, [rax + 2]
call fcn.1400a8540
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14009b967
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400f6bd8]
jne 0x140091dda
rol rcx, 0x10
test cx, 0xffff
jne 0x140091dd6
repz ret
ror rcx, 0x10
jmp 0x14009b8c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400ff4b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400ff5a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14009b945
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400ff4b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14009b967
mov rax, qword [rsp + 0x88]
mov qword [0x1400ff5a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400ff548], rax
mov rax, qword [0x1400ff5a8]
mov qword [0x1400ff420], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400ff530], rax
mov dword [0x1400ff410], 0xc0000409
mov dword [0x1400ff414], 1
mov rax, qword [0x1400f6bd8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400f6be0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400ff4a8], eax
mov ecx, 1
call fcn.1400a8540
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400c2bf8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400ff4a8], 0
jne 0x14009b9ee
mov ecx, 1
call fcn.1400a8540
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400a8280
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140098cb0
xor ebx, ebx
cmp qword [0x1400ffd60], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400a83ac
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400a84bf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a84bf
mov rcx, rax
call fcn.140098be0
lea rdx, [0x1400c2ee0]
mov rcx, rsi
mov qword [0x1400ffd60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140098be0
lea rdx, [0x1400c2ec8]
mov rcx, rsi
mov qword [0x1400ffd68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140098be0
lea rcx, [rsp + 0x98]
mov qword [0x1400ffd70], rax
call fcn.1400968d0
test eax, eax
je 0x1400a835f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140099580
cmp dword [rsp + 0x98], 2
jne 0x1400a83ac
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140098be0
test rax, rax
mov qword [0x1400ffd80], rax
je 0x1400a83ac
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140098be0
mov qword [0x1400ffd78], rax
mov rcx, qword [0x1400ffd78]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400a8458
cmp qword [0x1400ffd80], rbp
je 0x1400a8458
call fcn.140098da0
mov rcx, qword [0x1400ffd80]
mov rsi, rax
call fcn.140098da0
test rsi, rsi
mov r12, rax
je 0x1400a8458
test rax, rax
je 0x1400a8458
call rsi
test rax, rax
je 0x1400a8423
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400a8423
test byte [rsp + 0x40], 1
jne 0x1400a8458
lea rcx, [rsp + 0x30]
call fcn.140096920
test eax, eax
je 0x1400a8445
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140099580
cmp dword [rsp + 0x30], 4
jb 0x1400a8452
bts edi, 0x15
jmp 0x1400a8496
bts edi, 0x12
jmp 0x1400a8496
mov rcx, qword [0x1400ffd68]
cmp rcx, rbp
je 0x1400a8496
call fcn.140098da0
test rax, rax
je 0x1400a8496
call rax
test rax, rax
mov rbx, rax
je 0x1400a8496
mov rcx, qword [0x1400ffd70]
cmp rcx, rbp
je 0x1400a8496
call fcn.140098da0
test rax, rax
je 0x1400a8496
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400ffd60]
call fcn.140098da0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400a84bf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400a84c1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400aae00
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400f6bd8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400aae47
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140091dc0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400ae2c0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140091dc0
add rsp, 0x38
ret

Function at 0x1400ae570
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400a8550
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400ae714
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400a8550
cmp rax, 0xffffffffffffffff
je 0x1400ae714
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400ae693
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400ae619
call fcn.140095ce0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140095ce0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400ae730
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.14009c450
cmp eax, 0xffffffff
je 0x1400ae655
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400ae630
jmp 0x1400ae66e
call fcn.140095d10
cmp dword [rax], 5
jne 0x1400ae66a
call fcn.140095ce0
mov dword [rax], SafeArrayGetDim
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400ae730
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400ae6ec
test rbx, rbx
jns 0x1400ae6f6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400a8550
cmp rax, 0xffffffffffffffff
je 0x1400ae5fa
mov ecx, esi
call fcn.1400a9bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400ae6f6
call fcn.140095ce0
mov dword [rax], SafeArrayGetDim
call fcn.140095d10
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400ae5fa
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400a8550
cmp rax, 0xffffffffffffffff
je 0x1400ae5fa
xor eax, eax
jmp 0x1400ae601
call fcn.140095ce0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400b2f1c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400f6bd8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140096180
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.140096180
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 0x1400b2faf
cmp dword [rsp + 0x24], 5
jb 0x1400b2fc9
jmp 0x1400b2fc5
cmp dword [rsp + 0x30], esi
jne 0x1400b2fc9
cmp dword [rsp + 0x24], 4
ja 0x1400b2fc5
jne 0x1400b2fc9
cmp dword [rsp + 0x28], 0
jbe 0x1400b2fc9
mov byte [rbx + 0x18], sil
lea rax, [0x1400c4a18]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14005b780
movzx ecx, byte [0x1401017e8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1401017e8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140091dc0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400015d0
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001623
xor eax, eax
jmp 0x1400016c6
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x30], rax
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x44]
mov r8, rax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140001679
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400016c6
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400016b6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400016c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001e80
add rsp, 0x60
pop rdi
ret
Function at 0x140002754
Capabilities:
Parse pe header

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

Function at 0x140005f54
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 0x140005db3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005db3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005db3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005db3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005db3
cmp dword [rcx + 0x84], 0xe
jbe 0x140005db3
cmp dword [rcx + 0xf8], 0
je 0x140005db3
mov ecx, ebx
call fcn.140005e70
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.140005c40
nop
cmp dword [rbp + 0x20], 0
je 0x140005e01
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005e0c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005d44
Function at 0x140010d30
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 0x140010db7
mov rsi, rbx
cmp word [rax], bp
je 0x140010d76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010d60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010d5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000cd60
mov rdi, rax
test rax, rax
je 0x140010da4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003d20
mov rbp, rdi
xor ecx, ecx
call fcn.14000cd24
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 0x140017d70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017d98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017d98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000e910
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x470], rbx
mov qword [rbp + 0x480], rsi
mov qword [rbp + 0x488], rdi
mov rax, qword [0x140096010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [0x14009e5d0]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000e990
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14000ea0a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000e9bb
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007a7d0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14000ea0a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x14000ea0d
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14000ea1a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x14000ea32
inc rbx
test eax, eax
jne 0x14000ea20
test ecx, ecx
mov rcx, rsi
je 0x14000ea92
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14000e980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000ea8e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000ea89
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000eb15
mov rcx, r8
call fcn.140079bbc
xor eax, eax
jmp 0x14000ead5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14000ead2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000eacd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000eb15
mov rcx, r8
call fcn.140079bbc
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.140079720
mov rbx, qword [rbp + 0x470]
mov rsi, qword [rbp + 0x480]
mov rdi, qword [rbp + 0x488]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3