joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001784
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x14000181b
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x1400017f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001814
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001814
and qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [0x140014498]
jmp 0x140001804
cmp dword [rdi + 8], 0
je 0x140001814
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x140001804
cmp byte [0x14001ef20], 0
jne 0x140001866
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001852
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14001ef18], rax
jmp 0x140001859
mov r10, qword [0x14001ef18]
mov eax, 1
mov byte [0x14001ef20], al
jmp 0x14000186d
mov r10, qword [0x14001ef18]
mov rdx, rsi
mov rcx, qword [rbx]
test r10, r10
je 0x1400017fd
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rax, r10
call qword [0x140014498]
jmp 0x140001804
Function at 0x14000a1bc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and qword [rax + 8], 0
cmp dword [0x14001ef38], 0
jne 0x14000a284
mov eax, dword [0x14001ef40]
test eax, eax
jne 0x14000a284
xor edi, edi
mov ecx, dword [0x14001ef3c]
test ecx, ecx
je 0x14000a21a
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14001ef40]
mov ecx, dword [0x14001ef3c]
test eax, eax
je 0x14000a227
mov ebx, 1
mov edi, ebx
jmp 0x14000a255
test ecx, ecx
jne 0x14000a239
call fcn.14000a300
test eax, eax
jne 0x14000a239
lea ebx, [rax + 1]
jmp 0x14000a255
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14001d1d8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ebx, 1
test eax, eax
cmovne edi, ebx
test edi, edi
jne 0x14000a289
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, ebx
jbe 0x14000a274
cmp eax, 0x78
je 0x14000a274
cmp eax, ebx
je 0x14000a274
cmp eax, 0x32
jne 0x14000a27c
mov dword [0x14001ef40], ebx
mov edi, ebx
test edi, edi
jne 0x14000a289
xor ebx, ebx
jmp 0x14000a289
mov ebx, 1
test ebx, ebx
jne 0x14000a29f
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14001ef38], 0
je 0x14000a2c6
cmp dword [0x14001ef40], 0
jne 0x14000a2f8
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14000a2dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000a2df
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14000a2f8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x14000a28f
Function at 0x14000a4ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, [0x140016090]
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a5b9
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a5aa
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a5aa
cmp dword [rbp + 0x18], 4
jne 0x14000a5aa
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14000a5aa
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000a5bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a5bb
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000a5b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000a5ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14000a9ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14001ef50], 0
je 0x14000a9d2
mov eax, dword [0x14001ef54]
jmp 0x14000aad7
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14001ef54]
test eax, eax
jne 0x14000aa3e
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aa3e
cmp dword [rbp + 0x10], ebx
je 0x14000aaad
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14000aa52
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000aab5
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aab5
cmp dword [rbp + 0x10], ebx
jne 0x14000aab5
mov ebx, dword [0x14001ef54]
jmp 0x14000aabe
and dword [0x14001ef54], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov al, 1
mov byte [0x14001ef50], al
test rcx, rcx
je 0x14000aad5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x14000af90
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea edx, [rdi + 0x5d]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rsp + 0x228]
mov r9, rdi
add rax, 2
mov r8, rbx
sub rdx, rax
mov rcx, rax
sar rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x20]
call fcn.14000af08
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000b013
mov eax, ebx
jmp 0x14000b019
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14001ef60], eax
test rdi, rdi
je 0x14000b028
mov eax, ebx
jmp 0x14000b033
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x14001ef5c], eax
cmp eax, 0xffffffff
jne 0x14000b046
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x14001ef58], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140011250
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x14000b070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x30], rax
lea r8, str.CommonFilesDir
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea esi, [rbx + 2]
mov r9d, esi
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000b123
cmp dword [rsp + 0x40], 4
jb 0x14000b123
mov eax, dword [rsp + 0x40]
lea r8, str.Microsoft_SharedOffice16_
shr rax, 1
lea rcx, [rsp + 0x50]
mov edx, 0x104
cmp word [rsp + rax*2 + 0x4c], 0x5c
cmove ebx, esi
or r9, 0xffffffffffffffff
add r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000af90
jmp 0x14000b125
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140011250
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000b14c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftOffice16.0CommonFilesPaths
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000b1c3
cmp dword [rsp + 0x40], 4
jb 0x14000b1c3
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000af90
jmp 0x14000b1c5
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140011250
add rsp, 0x270
pop rbx
ret

Function at 0x140011eac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140012534
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140012534
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140012534
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140012528
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140012546
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140012516
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140012536
Function at 0x1400c0c40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140126bf0], rbx
je 0x1400c0c8c
cmp rax, rbx
jne 0x1400c0c7f
mov ebx, 1
mov esi, ebx
jmp 0x1400c0c91
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400c0c64
mov ebx, 1
mov eax, dword [0x140126bf8]
cmp eax, ebx
jne 0x1400c0ca7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400c0d0c
mov eax, dword [0x140126bf8]
test eax, eax
jne 0x1400c0d06
mov dword [0x140126bf8], ebx
lea r15, [0x1400d4960]
lea rdi, [0x1400d4948]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400c0cf8
test eax, eax
jne 0x1400c0cfc
cmp qword [rdi], 0
je 0x1400c0ced
mov rax, qword [rdi]
mov rcx, qword [0x1400d4338]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c0cce
test eax, eax
je 0x1400c0d0c
mov eax, 0xff
jmp 0x1400c0de8
mov dword [0x140125758], ebx
mov eax, dword [0x140126bf8]
cmp eax, ebx
jne 0x1400c0d33
lea rdx, [0x1400d4940]
lea rcx, [0x1400d4340]
call sub.msvcrt.dll__initterm
mov dword [0x140126bf8], 2
test esi, esi
jne 0x1400c0d40
xor eax, eax
xchg qword [0x140126bf0], rax
cmp qword [0x140126c10], 0
je 0x1400c0d74
lea rcx, [0x140126c10]
call fcn.1400c1410
test eax, eax
je 0x1400c0d74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140126c10]
mov r9, qword [0x1400d4338]
call r9
mov r8, qword [0x140125770]
mov rdx, qword [0x140125768]
mov ecx, dword [0x140125760]
call fcn.14000449c
mov dword [0x140125754], eax
cmp dword [0x140125778], 0
jne 0x1400c0da4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140125758], 0
jne 0x1400c0db9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140125754]
jmp 0x1400c0de8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401be000
add rsp, 0x28
jmp 0x1400c0c40

Function at 0x1400c130c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c1358
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c1350
cmp dword [rcx + 0x3c], edx
jl 0x1400c1350
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c1350
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c1358
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400012f0
Capabilities:
Create thread
Disable system features via registry on windows
Execute command
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.taskkill__F__IM_explorer.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.REG_ADD__HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem___v_DisableTaskMgr__t_REG_DWORD__d_1__f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 8
call fcn.140001590
lea rcx, [0x1400010e0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140001530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000148e
mov ecx, 8
call fcn.140001590
lea rcx, [0x140001020]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140001530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000147e
mov ecx, 8
call fcn.140001590
lea rcx, [0x1400011b0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140001530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000146e
mov ecx, 8
call fcn.140001590
lea rcx, [0x140001270]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140001530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000145e
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001451
mov dword [rsp + 0x40], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x50], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x60], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x70], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14000201c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14004dd08], rbx
je 0x140040e07
cmp rax, rbx
jne 0x140040dfa
mov ebx, 1
mov esi, ebx
jmp 0x140040e0c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140040ddf
mov ebx, 1
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040e24
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140040e90
mov eax, dword [0x14004dd10]
test eax, eax
jne 0x140040e85
mov dword [0x14004dd10], ebx
lea r15, [0x140044330]
lea rdi, [0x140044318]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140040e77
test eax, eax
jne 0x140040e7b
cmp qword [rdi], r14
je 0x140040e6c
mov rax, qword [rdi]
mov rcx, qword [0x1400442d8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140040e4e
test eax, eax
je 0x140040e8b
mov eax, 0xff
jmp 0x140040fe6
mov dword [0x14004d384], ebx
mov edi, 0x1f
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040eb7
lea rdx, [0x140044310]
lea rcx, [0x1400442e0]
call sub.msvcrt.dll__initterm
mov dword [0x14004dd10], 2
test esi, esi
jne 0x140040ec5
mov rax, r14
xchg qword [0x14004dd08], rax
cmp qword [0x14004dd28], r14
je 0x140040ef8
lea rcx, [0x14004dd28]
call fcn.140041400
test eax, eax
je 0x140040ef8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004dd28]
mov r9, qword [0x1400442d8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140040f11
mov eax, 0xff
jmp 0x140040fe6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140040f97
test ax, ax
je 0x140040f2c
test edx, edx
jne 0x140040f97
sub ax, bx
cmp ax, di
ja 0x140040f42
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140040f2c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400024cc
mov dword [0x14004d380], eax
cmp dword [0x14004d3a0], r14d
jne 0x140040f80
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004d384], r14d
jne 0x140040f95
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004d380]
jmp 0x140040fe6
cmp ax, 0x22
jne 0x140040fab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140040f1a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x1401c7000
add rsp, 0x28
jmp 0x140040da0
Function at 0x1400041b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000420d
lea rbx, [0x14014faa0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400041f4
cmp r10, 2
jb 0x1400041f4
cmp byte [r9], r8b
jne 0x1400041f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400041d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000424f
lea rbx, [0x14014faa0]
cmp r8b, 0x23
jne 0x140004233
cmp byte [r9], r8b
jne 0x140004233
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004220
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400043aa
mov qword [r8], 0
lea rdx, [0x14014f608]
call fcn.140004260
mov rbx, rax
test rax, rax
jne 0x1400043ca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400044a3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400044a3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400044a3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400044a3
cmp rdi, 0xffffffffffffffff
je 0x1400044a3
mov rax, qword [0x14023fd90]
test rax, rax
je 0x140004440
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400044a3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140004490
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14023fd90]
test rax, rax
je 0x140004485
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400044ac
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000449e
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400044ae
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret