joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006350
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1400a2238]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [r11 - 0x50]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.1400057e4
mov edi, 1
cmp eax, edi
je 0x140006481
test eax, eax
js 0x14000647f
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400063dd
lea edx, [rdi + 0x67]
jmp 0x140006471
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140006412
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r14 + 0x6a]
jmp 0x140006471
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rcx, [0x14005bb28]
call qword [sym.imp.vdsutil.dll_RemoveEventSource]
nop dword [rax + rax]
test ebx, ebx
jne 0x140006481
lea edx, [rbx + 0x6b]
mov r8d, reloc.ATL.DLL_AtlModuleInit
mov rcx, rsi
call fcn.1400058d4
xor edi, edi
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140053f70
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 0x140006dd0
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rsi
sub rsp, 0x30
mov esi, 4
mov dword [rsp + 0x40], 1
mov r8d, esi
lea rdx, [rsp + 0x40]
lea ecx, [rsi - 2]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x48], 1
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea ecx, [rsi + 4]
mov r8d, esi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x20]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
add rsp, 0x30
pop rsi
ret
Function at 0x1400111e0
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 dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
mov edx, 3
cmp eax, edx
je 0x140011260
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
movzx ecx, word [rbx]
mov rax, qword [0x1400a2ec0]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400a2ee8]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400a2ec0]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
nop dword [rax + rax]
test eax, eax
je 0x140011241
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x1400112c3
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x1400112d4
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x140011246
Function at 0x140052d0c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400a2238]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rdx, [r11 - 0x48]
xor eax, eax
xor edi, edi
movups xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], rax
mov rbp, rcx
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
call fcn.140053460
test eax, eax
je 0x140052d65
cmp dword [rsp + 0x40], edi
sete dil
mov ebx, edi
jmp 0x140052f17
mov qword [rsp + 0x30], rdi
mov r8d, 3
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140052dbc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140052f17
mov rcx, rsi
call fcn.140052be4
mov ebx, eax
test eax, eax
je 0x140052f08
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], AtlComPtrAssign
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140052e2c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140052f08
mov ebx, dword [rsp + 0x64]
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_0.dll_VirtualAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140052e0d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140052eac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80310000
jne 0x140052ef1
mov ebx, edi
mov edx, 1
jmp 0x140052ee9
mov edx, dword [rsp + 0x44]
xor r8d, r8d
mov rcx, r14
call fcn.140053938
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140052edb
cmp eax, 1
jne 0x140052ed4
mov rcx, rsi
call fcn.14005283c
mov ebx, eax
jmp 0x140052edd
mov ebx, 1
jmp 0x140052ee1
mov ebx, edi
test ebx, ebx
js 0x140052ef1
test ebx, ebx
sete dil
mov edx, edi
mov rcx, rbp
call fcn.14005356c
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140053f70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140052f44
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x1400a3400], ebx
mov dword [rsp + 0x50], ebx
jne 0x140052fc8
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x140052fc8
cmp eax, 1
je 0x140052fc8
mov eax, dword [0x1400a271c]
cmp dword [rsp + 0x50], ebx
mov dword [0x1400a3400], 1
cmovne eax, ebx
mov dword [0x1400a271c], eax
jmp 0x140052fce
mov eax, dword [0x1400a271c]
add rsp, 0x40
pop rbx
ret

Function at 0x140053460
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x18], 4
mov qword [rax + 0x20], rbx
mov r14, rdx
mov dword [rax + 8], ebx
mov rdi, rcx
mov esi, ebx
test rcx, rcx
je 0x140053523
test rdx, rdx
je 0x140053523
mov dword [rdx], ebx
call fcn.140052f44
test eax, eax
jne 0x1400534ac
lea edi, [rbx + 1]
jmp 0x14005354d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140052fdc
mov rsi, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x140053528
lea rax, [rsp + 0x70]
mov r9d, reloc.ATL.DLL_AtlModuleInit
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetectCache
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140053514
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140053528
cmp dword [rsp + 0x60], ebx
je 0x140053528
mov dword [r14], 1
jmp 0x140053528
mov edi, 0x80070057
test rsi, rsi
je 0x14005354d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005356c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x1400536c8
call fcn.140052f44
test eax, eax
je 0x140053699
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140052fdc
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x140053674
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053674
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053674
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test rbx, rbx
je 0x140053699
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400536b3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400536c8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140053cd0
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 [0x1400a3408], rbx
je 0x140053d37
cmp rax, rbx
jne 0x140053d2a
mov ebx, 1
mov esi, ebx
jmp 0x140053d3c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140053d0f
mov ebx, 1
mov eax, dword [0x1400a3410]
cmp eax, ebx
jne 0x140053d54
mov edi, AtlInternalQueryInterface
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140053dc0
mov eax, dword [0x1400a3410]
test eax, eax
jne 0x140053db5
mov dword [0x1400a3410], ebx
lea r15, [0x140059d80]
lea rdi, [0x140059d68]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140053da7
test eax, eax
jne 0x140053dab
cmp qword [rdi], r14
je 0x140053d9c
mov rax, qword [rdi]
mov rcx, qword [0x140059ce0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140053d7e
test eax, eax
je 0x140053dbb
mov eax, 0xff
jmp 0x140053f16
mov dword [0x1400a2724], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x1400a3410]
cmp eax, ebx
jne 0x140053de7
lea rdx, [0x140059d60]
lea rcx, [0x140059ce8]
call sub.msvcrt.dll__initterm
mov dword [0x1400a3410], 2
test esi, esi
jne 0x140053df5
mov rax, r14
xchg qword [0x1400a3408], rax
cmp qword [0x1400a3428], r14
je 0x140053e28
lea rcx, [0x1400a3428]
call fcn.140054510
test eax, eax
je 0x140053e28
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400a3428]
mov r9, qword [0x140059ce0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140053e41
mov eax, 0xff
jmp 0x140053f16
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140053ec7
test ax, ax
je 0x140053e5c
test edx, edx
jne 0x140053ec7
sub ax, bx
cmp ax, di
ja 0x140053e72
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140053e5c
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.140006e80
mov dword [0x1400a2720], eax
cmp dword [0x1400a2740], r14d
jne 0x140053eb0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a2724], r14d
jne 0x140053ec5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a2720]
jmp 0x140053f16
cmp ax, 0x22
jne 0x140053edb
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 0x140053e4a
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 fcn.140136000
add rsp, 0x28
jmp 0x140053cd0
Function at 0x1400543fc
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400617d8
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 0x140061537
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140061537
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140061537
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140061537
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140061537
cmp dword [rcx + 0x84], 0xe
jbe 0x140061537
cmp dword [rcx + 0xf8], 0
je 0x140061537
mov ecx, ebx
call fcn.1400616a0
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.14006120c
nop
cmp dword [rbp + 0x20], 0
je 0x140061585
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400615c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400614c8
Function at 0x140041306
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400bff48
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400e4038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400e84f8]
xor r11d, r11d
lea rdi, [0x1400ce604]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400bffb8
mov rax, 0xfffffffffffffffe
jmp 0x1400c0105
cmp word [r10 + 6], r11w
jne 0x1400c0027
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400bffe2
test r14, r14
je 0x1400bffd3
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400c0105
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400bfff0
mov r8b, 2
jmp 0x1400c000e
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400bfffe
mov r8b, 3
jmp 0x1400c000e
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400c00fa
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400c0050
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400c00fa
cmp bl, bpl
jb 0x1400c00fa
cmp bl, r8b
jae 0x1400c00fa
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400c007d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400c00fa
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400c005f
cmp r9, rbp
jae 0x1400c00a9
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400bffac
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400c00fa
cmp edx, 0x110000
jae 0x1400c00fa
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400c00fa
test r14, r14
je 0x1400c00e8
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140042dfa
jmp 0x1400c0105
mov rdx, rsi
mov rcx, r10
call fcn.1400434f8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140041829
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140041356
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14004c684
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14004c711
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14004c711
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c711
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14004c6f8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004c6f2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14004c6fa
add rdx, 0x28
jmp 0x14004c6d7
xor edx, edx
test rdx, rdx
jne 0x14004c703
xor al, al
jmp 0x14004c717
cmp dword [rdx + 0x24], 0
jge 0x14004c70d
xor al, al
jmp 0x14004c717
mov al, 1
jmp 0x14004c717
xor al, al
jmp 0x14004c717
add rsp, 0x18
ret
Function at 0x140041649
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140061100
mov rax, rcx
neg rcx
test rax, 7
je 0x14006111d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140061178
test al, 7
jne 0x140061110
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140061131
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400611a2
test dh, dh
je 0x14006119c
shr rdx, 0x10
test dl, dl
je 0x140061196
test dh, dh
je 0x140061190
shr rdx, 0x10
test dl, dl
je 0x14006118a
test dh, dh
je 0x140061184
shr edx, 0x10
test dl, dl
je 0x14006117e
test dh, dh
jne 0x140061131
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140041996
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14005b1ec
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400cf5c8]
mov ecx, 2
lea r8, [0x1400cf5c0]
lea rdx, str.FlsGetValue
call fcn.14005acbc
mov ecx, ebx
test rax, rax
je 0x14005b226
add rsp, 0x20
pop rbx
jmp qword [0x1400f4020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140041ae0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a861c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a864c
xor eax, eax
jmp 0x1400a870f
mov rbp, rbx
cmp word [rax], si
je 0x1400a8671
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a8658
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a8654
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004253f
movsxd r14, eax
test eax, eax
jne 0x1400a86af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a8645
mov rcx, r14
call fcn.140040041
mov rdi, rax
test rax, rax
jne 0x1400a86c8
xor ecx, ecx
call fcn.140040195
jmp 0x1400a86a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004253f
test eax, eax
jne 0x1400a86f9
mov rcx, rdi
call fcn.140040195
jmp 0x1400a8703
xor ecx, ecx
call fcn.140040195
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret