joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400069e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003b84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b30
add rax, 0x28
cmp rax, r9
jne 0x140003b70
xor eax, eax
ret

Function at 0x140003b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003baf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003bb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003baf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003c50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001488
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401b0160]
mov dword [rax], 1
mov rax, qword [0x1401b0170]
mov dword [rax], 1
mov rax, qword [0x1401b0180]
mov dword [rax], 1
mov rax, qword [0x1401b0150]
mov dword [rax], 1
mov rax, qword [0x1401aebc0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
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 0x140001512
mov eax, 0
jmp 0x140001593
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 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140180de0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401c5930], 0
mov r12, rcx
mov rdi, rdx
je 0x140180e68
lea rdx, [0x1401ad39a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140180f70
mov rsi, qword [0x1401c5928]
jmp 0x140180e25
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140180e20
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14017f010
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
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]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x1401c5928], rcx
test eax, eax
je 0x140180f58
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140180ec0
not eax
cmp r9d, eax
jne 0x14018100e
mov byte [0x1401c5930], 1
jmp 0x140180df9
cmp byte [0x1401c5920], 0
jne 0x140180e10
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1401c5978], rax
call rbx
mov qword [0x1401c5970], rax
call rbx
mov qword [0x1401c5968], rax
call rbx
mov qword [0x1401c59a8], rax
call rbx
mov qword [0x1401c59a0], rax
call rbx
mov qword [0x1401c5998], rax
call rbx
mov qword [0x1401c5988], rax
call rbx
mov rbp, qword [sym.imp.python39.dll_PyLong_FromLong]
mov rsi, qword [0x1401aeac0]
mov rbx, 0xfffffffffffffffb
mov qword [0x1401c5980], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8 + 0x28], rax
add rbx, 1
cmp rbx, 0x102
jne 0x140180fe8
mov byte [0x1401c5920], 1
jmp 0x140180e10
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
Function at 0x140192b80
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.14019ad50
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.14019ad50
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1401937b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401c5ae8]
test eax, eax
je 0x14019384a
lea rax, [0x1401c5ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401c5af0]
mov qword [rbp - 8], rax
jmp 0x14019382e
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 0x140193822
cmp qword [rbp - 0x10], 0
je 0x140193822
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 0x1401937e8
lea rax, [0x1401c5ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14019384b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140193950
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 0x140193978
mov eax, 0
jmp 0x1401939c6
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 0x1401939a1
mov eax, 0
jmp 0x1401939c6
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 0x1401939c1
mov eax, 0
jmp 0x1401939c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1401939cc
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 0x140193a4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140193a41
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 0x140193a41
mov rax, qword [rbp - 8]
jmp 0x140193a5f
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 0x140193a14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005e94
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [r11 - 0x58]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov rcx, rsi
call fcn.1400054ec
mov edi, 1
cmp eax, edi
je 0x140005f8c
test eax, eax
js 0x140005f8a
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140005f12
lea edx, [rdi + 0x67]
jmp 0x140005f7c
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x140005f3b
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
lea edx, [r14 + 0x6a]
jmp 0x140005f7c
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_2_0.dll_ControlService]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
lea rcx, [0x140057cc8]
call qword [sym.imp.vdsutil.dll_unsigned_long_int___cdecl_RemoveEventSource_unsigned_short_int____ptr64_]
test ebx, ebx
jne 0x140005f8c
lea edx, [rbx + 0x6b]
mov r8d, reloc.ATL.DLL_AtlModuleInit
mov rcx, rsi
call fcn.1400055b4
xor edi, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004eb20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400108b8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea r8, str.CVdsService::AddNetworkShare__
mov edx, 0x5e
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
mov edx, 3
cmp eax, edx
je 0x140010909
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_]
jmp 0x14001096f
movzx ecx, word [rbx]
mov rax, qword [0x1400a0ed0]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400a0ef8]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400a0ed0]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
test eax, eax
je 0x14001096f
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x140010960
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_]
jmp 0x14001096b
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_]
xor ebx, ebx
jmp 0x140010974
mov ebx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14004e19c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rsp + 0x60], rax
and dword [rsp + 0x48], 0
xor eax, eax
and qword [r11 - 0x48], rax
xor r9d, r9d
and dword [rsp + 0x40], eax
mov edx, 0x80000000
mov qword [r11 - 0x2c], rax
lea r8d, [rax + 3]
mov qword [r11 - 0x24], rax
mov dword [rsp + 0x28], 0x20000000
mov dword [r11 - 0x58], r8d
mov dword [rsp + 0x5c], eax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004e216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14004e2fa
mov rcx, rax
call fcn.14004e074
mov ebx, eax
test eax, eax
je 0x14004e2f1
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], AtlComPtrAssign
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_DeviceIoControl]
test eax, eax
jne 0x14004e278
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14004e2f1
mov ebx, dword [rsp + 0x5c]
xor ecx, ecx
add ebx, 0x1ff
mov r8d, 0x3000
and ebx, 0xfffffe00
mov edx, ebx
lea r9d, [rcx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x14004e262
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x14004e31b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80310000
jne 0x14004e2e0
xor ebx, ebx
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004eb20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov edx, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call fcn.14004e4ec
mov ebx, 1
lea ecx, [rax - 2]
cmp ecx, ebx
jbe 0x14004e2de
cmp eax, ebx
jne 0x14004e2e0
mov rcx, rdi
call fcn.14004dd44
mov ebx, eax
jmp 0x14004e2e0
Function at 0x14004e870
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x1400a1410], rbx
je 0x14004e8d9
cmp rax, rbx
jne 0x14004e8cc
mov edi, 1
mov r14d, edi
jmp 0x14004e8de
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14004e8b0
mov edi, 1
mov eax, dword [0x1400a1418]
cmp eax, edi
jne 0x14004e8f6
mov esi, AtlInternalQueryInterface
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x14004e967
mov eax, dword [0x1400a1418]
test eax, eax
jne 0x14004e95c
mov dword [0x1400a1418], edi
lea r12, [0x140054c28]
lea rbx, [0x140054c10]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x14004e94e
test eax, eax
jne 0x14004e952
mov rsi, qword [rbx]
test rsi, rsi
je 0x14004e943
mov rcx, rsi
mov rax, qword [sym.vds.exe_public:_void___cdecl_CVdsPtr_char_::destructor_void____ptr64]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14004e920
test eax, eax
je 0x14004e962
mov eax, 0xff
jmp 0x14004eac3
mov dword [0x1400a0734], edi
mov esi, AtlInternalQueryInterface
mov eax, dword [0x1400a1418]
cmp eax, edi
jne 0x14004e98e
lea rdx, [0x140054c08]
lea rcx, [0x140054b90]
call sub.msvcrt.dll__initterm
mov dword [0x1400a1418], 2
test r14d, r14d
jne 0x14004e99d
mov rax, r15
xchg qword [0x1400a1410], rax
cmp qword [0x1400a1430], r15
je 0x14004e9d4
lea rcx, [0x1400a1430]
call fcn.14004f0b0
test eax, eax
je 0x14004e9d4
mov rbx, qword [0x1400a1430]
mov rcx, rbx
mov rax, qword [sym.vds.exe_public:_void___cdecl_CVdsPtr_char_::destructor_void____ptr64]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rdx, qword [rax]
test rdx, rdx
jne 0x14004e9ed
mov eax, 0xff
jmp 0x14004eac3
mov qword [rsp + 0x28], rdx
mov ecx, dword [rsp + 0x20]
cmp word [rdx], 0x20
ja 0x14004ea74
cmp word [rdx], r15w
je 0x14004ea06
test ecx, ecx
jne 0x14004ea74
movzx eax, word [rdx]
sub ax, di
cmp ax, si
ja 0x14004ea1c
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x14004ea06
mov ecx, dword [rsp + 0x7c]
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
and cl, dil
cmovne r9d, eax
mov r8, rdx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006740
mov dword [0x1400a0730], eax
cmp dword [0x1400a0750], r15d
jne 0x14004ea5d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a0734], r15d
jne 0x14004ea72
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a0730]
jmp 0x14004eac3
cmp word [rdx], 0x22
jne 0x14004ea88
mov eax, r15d
test ecx, ecx
sete al
mov ecx, eax
mov dword [rsp + 0x20], eax
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x14004e9f6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.140134000
add rsp, 0x28
jmp 0x14004e870
Function at 0x14004efac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004eff8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004eff0
cmp dword [rcx + 0x3c], edx
jl 0x14004eff0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004eff0
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 0x14004eff8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140004b14
cmp word [rcx], 0x5a4d
jne 0x140004b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140004a20
test eax, eax
jne 0x140004b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004a90
test rax, rax
je 0x140004b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400052e5
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400051e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005654
Capabilities:
Allocate or change rwx memory
Check if file exists

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1406d6c98]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1406d6c94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400056a2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000569a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005789
inc ebx
add rax, 0x28
jmp 0x14000567a
mov rcx, r12
call fcn.140005e81
mov rbp, rax
test rax, rax
jne 0x1400056c1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400055f0
movsxd rbx, ebx
mov rax, qword [0x1406d6c98]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140005f2f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1406d6c98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005723
mov rax, qword [0x1406d6c98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400055f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005783
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005783
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1406d6c98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
invalid
test eax, eax
jne 0x140005783
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400055f0
inc dword [0x1406d6c94]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140005ba2
Capabilities:
Get thread local storage value

Disassembly:
call fcn.14080d7d4
xchg r8d, eax
nop
nop
nop
nop
nop
nop
nop
Function at 0x140005bb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1406d6d00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406d6ce0]

Function at 0x140005db0
Capabilities:
Parse pe header

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

Function at 0x140005dd4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140005e0e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005e05
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005e10
inc r8d
add rax, 0x28
jmp 0x140005dec
xor eax, eax
ret

Function at 0x140005e81
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1406cbb70]
mov r8, rcx
mov rcx, r9
call fcn.140005db0
test eax, eax
je 0x140005ead
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005dd4
xor eax, eax
add rsp, 0x28
ret