joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e8170
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x006a22a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x006a2280]
test rbx, rbx
je 0x5e81c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x5e81bb
test rsi, rsi
je 0x5e81bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x5e81a0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x006a22a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x5e83e0
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 0x5e8421
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x5e8418
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x5e8423
add rax, 0x28
cmp rax, r9
jne 0x5e8404
xor eax, eax
repz ret

Function at 0x5e84d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x006707b0]
cmp word [rbx], 0x5a4d
je 0x5e84f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.005e83a0
test eax, eax
je 0x5e84e4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.005e83e0

Function at 0x5e8800
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x006a2288]
test eax, eax
jne 0x5e8200
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rsi, rdx
mov edi, ecx
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x5e8258
mov dword [rax], edi
mov qword [rax + 8], rsi
lea rcx, [0x006a22a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x006a2280]
lea rcx, [0x006a22a0]
mov qword [0x006a2280], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xffffffff
jmp 0x5e81f1
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x5e8830
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x5ef350
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
pop rbx
pop rsi
jmp rax
test rdx, rdx
je 0x5ef360
jmp 0x5e81e0
xor eax, eax
ret

Function at 0x5e8870
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x5e88a0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x5e88b5
xor eax, eax
add rsp, 0x28
ret
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
jmp rax
Function at 0x140011041
Capabilities:
Create process on windows

Disassembly:
jmp 0x140017d20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4e8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, VarDecRound
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x508]
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14001161d
nop
mov dword [rbp + 0x10], 0x68
mov dword [rbp + 0x4c], 1
xor eax, eax
mov word [rbp + 0x50], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.14001161d
nop
mov r9, qword [rbp + 0x4b0]
lea r8, str.cmd.exe__C__s
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call fcn.140011253
nop
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rbp + 0x2f4], eax
cmp dword [rbp + 0x2f4], 0
je 0x140017e65
mov rdx, qword [rbp + 0x4b0]
lea rcx, str.Success:_Command__S_executed_successfully._n
call fcn.140011393
nop
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140017e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x4b0]
lea rcx, str.Error:_Failed_to_execute_command__S._Error_code:__lu_n
call fcn.140011393
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x140029370]
call fcn.1400116b3
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret
Function at 0x140011055
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140018560
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rbp + 0x28], rax
lea rax, str.ExampleStartupApp
mov qword [rbp + 0x48], rax
lea rax, str.C:WindowsSystem32_notepad.exe
mov qword [rbp + 0x68], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018637
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, str.Success:_Registry_modified_for_persistence._n
call fcn.140011393
nop
jmp 0x14001864c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:_Failed_to_modify_registry_for_persistence._Error_code:__lu_n
call fcn.140011393
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400285c0]
call fcn.1400116b3
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400110a5
Capabilities:
Delete user account

Disassembly:
jmp 0x14001cd4f
jmp qword [sym.imp.NETAPI32.dll_NetUserDel]

Function at 0x1400110d2
Capabilities:
Get token membership

Disassembly:
jmp 0x140015fb0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x45], 0
mov byte [rbp + 0x46], 0
mov byte [rbp + 0x47], 0
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 5
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
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 dl, 2
lea rcx, [rbp + 0x44]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140016086
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x140029240]
call fcn.1400116b3
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001114f
Capabilities:
Add user account to group

Disassembly:
jmp 0x14001cd55
jmp qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]

Function at 0x140011451
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e180
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 0x1400114d8
Capabilities:
Add user account

Disassembly:
jmp 0x14001cd43
jmp qword [sym.imp.NETAPI32.dll_NetUserAdd]

Function at 0x140011582
Capabilities:
Get common file path
Get startup folder

Disassembly:
jmp 0x140016d30
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
lea r8, str.C:WindowsSystem32_notepad.exe
mov edx, 0x104
lea rcx, [rbp + 0x470]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140016dba
lea rcx, str.Error:_Failed_to_get_startup_folder_path._n
call fcn.140011393
nop
jmp 0x140016f5a
lea r9, [rbp + 0x10]
lea r8, str._sExampleShortcut.lnk
mov edx, 0x104
lea rcx, [rbp + 0x240]
call fcn.140011253
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp + 0x694], eax
cmp dword [rbp + 0x694], 0
jge 0x140016e06
mov edx, dword [rbp + 0x694]
lea rcx, str.Error:_Failed_to_initialize_COM._Error_code:__lx_n
call fcn.140011393
nop
jmp 0x140016f5a
mov qword [rbp + 0x6b8], 0
lea rax, [rbp + 0x6b8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002c828]
mov r8d, 1
xor edx, edx
lea rcx, [0x140031e38]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 0x694], eax
cmp dword [rbp + 0x694], 0
jl 0x140016f47
mov rax, qword [rbp + 0x6b8]
mov rax, qword [rax]
lea rdx, [rbp + 0x470]
mov rcx, qword [rbp + 0x6b8]
call qword [rax + 0xa0]
nop
mov rax, qword [rbp + 0x6b8]
mov rax, qword [rax]
lea rdx, str.Example_Startup_Application
mov rcx, qword [rbp + 0x6b8]
call qword [rax + 0x38]
nop
mov qword [rbp + 0x6d8], 0
mov rax, qword [rbp + 0x6b8]
mov rax, qword [rax]
lea r8, [rbp + 0x6d8]
lea rdx, [0x14002d9e0]
mov rcx, qword [rbp + 0x6b8]
call qword [rax]
mov dword [rbp + 0x694], eax
cmp dword [rbp + 0x694], 0
jl 0x140016efe
mov rax, qword [rbp + 0x6d8]
mov rax, qword [rax]
mov r8d, 1
lea rdx, [rbp + 0x240]
mov rcx, qword [rbp + 0x6d8]
call qword [rax + 0x30]
mov dword [rbp + 0x694], eax
mov rax, qword [rbp + 0x6d8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x6d8]
call qword [rax + 0x10]
nop
mov rax, qword [rbp + 0x6b8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x6b8]
call qword [rax + 0x10]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp dword [rbp + 0x694], 0
jl 0x140016f32
lea rcx, str.Success:_Shortcut_added_to_startup_folder._n
call fcn.140011393
nop
jmp 0x140016f45
mov edx, dword [rbp + 0x694]
lea rcx, str.Error:_Failed_to_save_shortcut._Error_code:__lx_n
call fcn.140011393
nop
jmp 0x140016f5a
mov edx, dword [rbp + 0x694]
lea rcx, str.Error:_Failed_to_create_startup_shortcut._Error_code:__lx_n
call fcn.140011393
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140028d00]
call fcn.1400116b3
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret
Function at 0x14001158c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001faf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001fb10
xor al, al
jmp 0x14001fb91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001fb23
xor al, al
jmp 0x14001fb91
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 0x14001fb4d
xor al, al
jmp 0x14001fb91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001fb61
xor al, al
jmp 0x14001fb91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001fb73
xor al, al
jmp 0x14001fb91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001fb8f
xor al, al
jmp 0x14001fb91
mov al, 1
add rsp, 0x38
ret
Function at 0x14001164a
Capabilities:
Add user account
Add user account to group
Delete user account

Disassembly:
jmp 0x140018260
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x4b8], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
mov dword [rbp + 0x54], 1
mov dword [rbp + 0x74], 0
lea r8, str.ExampleUser
mov edx, 0x32
lea rcx, [rbp + 0xa0]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
nop
lea r8, str.P_ssw0rd_
mov edx, 0x32
lea rcx, [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
nop
lea r8, str.Example_user_account
mov edx, 0x64
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
nop
lea rax, [rbp + 0xa0]
mov qword [rbp + 8], rax
lea rax, [rbp + 0x130]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x1c], 1
mov qword [rbp + 0x20], 0
lea rax, [rbp + 0x1c0]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 1
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x2a8], 0
lea r9, [rbp + 0x2a8]
mov r8d, 1
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call fcn.1400115a0
mov dword [rbp + 0x2c4], eax
cmp dword [rbp + 0x2c4], 0
jne 0x1400183c7
lea rdx, [rbp + 0xa0]
lea rcx, str.User__S_already_exists._Attempting_to_delete_it..._n
call fcn.140011393
nop
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call fcn.1400110a5
test eax, eax
jne 0x1400183aa
lea rdx, [rbp + 0xa0]
lea rcx, str.Success:_Existing_user_account__S_deleted._n
call fcn.140011393
nop
jmp 0x1400183c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0xa0]
lea rcx, str.Error:_Failed_to_delete_existing_user_account__S._Error_code:__lu_n
call fcn.140011393
nop
lea r9, [rbp + 0x74]
lea r8, [rbp + 8]
mov edx, dword [rbp + 0x54]
xor ecx, ecx
call fcn.1400114d8
mov dword [rbp + 0x2e4], eax
cmp dword [rbp + 0x2e4], 0
jne 0x14001846c
lea rcx, str.Success:_User_account_ExampleUser_created._n
call fcn.140011393
nop
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x308], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x308]
mov r8d, 3
lea rdx, str.Administrators
xor ecx, ecx
call fcn.14001114f
mov dword [rbp + 0x324], eax
cmp dword [rbp + 0x324], 0
jne 0x14001844f
lea rdx, [rbp + 0xa0]
lea rcx, str.Success:_User_account__S_added_to_Administrators_group._n
call fcn.140011393
nop
jmp 0x14001846a
mov r8d, dword [rbp + 0x324]
lea rdx, [rbp + 0xa0]
lea rcx, str.Error:_Failed_to_add_user_account__S_to_Administrators_group._Error_code:__lu_n
call fcn.140011393
nop
jmp 0x14001847f
mov edx, dword [rbp + 0x2e4]
lea rcx, str.Error:_Failed_to_create_user_account._Error_code:__lu_n
call fcn.140011393
nop
cmp qword [rbp + 0x2a8], 0
je 0x140018496
mov rcx, qword [rbp + 0x2a8]
call fcn.140011271
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140028f90]
call fcn.1400116b3
mov rcx, qword [rbp + 0x4b8]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x4c8]
pop rdi
pop rbp
ret
Function at 0x140011717
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x1400186c0
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14003a040]
xor rax, rbp
mov qword [rbp + 0x3e8], rax
lea rcx, [0x1400430ec]
call fcn.1400117c1
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001872a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Error:_Winsock_initialization_failed._Error_code:__d_n
call fcn.140011393
nop
jmp 0x140018828
lea rax, str.example.com
mov qword [rbp + 0x208], rax
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov dx, 1
mov rcx, qword [rbp + 0x208]
call fcn.1400117a3
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
jne 0x140018806
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
je 0x1400187f2
mov rax, qword [rbp + 0x258]
movzx eax, word [rax + 0x10]
cmp eax, 1
jne 0x1400187df
mov rax, qword [rbp + 0x258]
add rax, 0x20
mov r9d, 0x16
lea r8, [rbp + 0x228]
mov rdx, rax
mov ecx, 2
call fcn.140011456
nop
lea r8, [rbp + 0x228]
mov rdx, qword [rbp + 0x208]
lea rcx, str.Success:_IP_Address_of__s_is__s_n
call fcn.140011393
nop
mov rax, qword [rbp + 0x258]
mov rax, qword [rax]
mov qword [rbp + 0x258], rax
jmp 0x140018784
mov edx, 1
mov rcx, qword [rbp + 0x1c8]
call fcn.140011348
nop
jmp 0x140018821
mov r8d, dword [rbp + 0x1e4]
mov rdx, qword [rbp + 0x208]
lea rcx, str.Error:_Failed_to_resolve_DNS_for__s._Error_code:__d_n
call fcn.140011393
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140029100]
call fcn.1400116b3
mov rcx, qword [rbp + 0x3e8]
xor rcx, rbp
call fcn.1400113c0
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret

Function at 0x1400117fd
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001c560
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14001161d
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140035290]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14001138e
test eax, eax
jne 0x14001c5f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001c5f7
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14001c5f0
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14003ccf0], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14001de90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011811
movzx eax, al
test eax, eax
jne 0x14001deb0
mov ecx, 7
call fcn.1400116bd
nop
mov byte [rsp + 0x20], 0
call fcn.1400116f4
mov byte [rsp + 0x21], al
cmp dword [0x14003ce38], 1
jne 0x14001ded4
mov ecx, 7
call fcn.1400116bd
nop
jmp 0x14001df2c
cmp dword [0x14003ce38], 0
jne 0x14001df27
mov dword [0x14003ce38], 1
lea rdx, [0x140027a30]
lea rcx, [0x140027700]
call fcn.140011398
test eax, eax
je 0x14001df08
mov eax, 0xff
jmp 0x14001e031
lea rdx, [0x1400275f0]
lea rcx, [section..rdata]
call fcn.1400116e0
mov dword [0x14003ce38], 2
jmp 0x14001df2c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400116a4
call fcn.1400115c8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001df89
mov rcx, qword [rsp + 0x30]
call fcn.1400112fd
movzx eax, al
test eax, eax
je 0x14001df89
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 [0x140044020]
nop
call fcn.140011631
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001dfbd
mov rcx, qword [rsp + 0x38]
call fcn.1400112fd
movzx eax, al
test eax, eax
je 0x14001dfbd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001178a
nop
call fcn.14001e0a0
mov dword [rsp + 0x28], eax
call fcn.14001158c
movzx eax, al
test eax, eax
jne 0x14001dfdc
mov ecx, dword [rsp + 0x28]
call fcn.140011096
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001dfeb
call fcn.14001179e
nop
xor edx, edx
mov cl, 1
call fcn.1400112d0
mov eax, dword [rsp + 0x28]
jmp 0x14001e031
add rsp, 0x68
ret
Function at 0x140035bd0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400fec00]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x45], esi
lea rcx, [rbp + 0x17]
call fcn.140071020
nop
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rax, qword [rbp + 0x17]
mov qword [rbp - 0x11], rax
mov eax, dword [rbp + 0x27]
mov dword [rbp - 0x19], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140035c30
mov rax, qword [rbx]
mov qword [rbp - 0x21], rax
mov eax, dword [rbx + 0x10]
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x29]
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140035d99
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov ebx, dword [rbp - 0x39]
test rbx, rbx
jne 0x140035c9c
mov qword [rbp + 7], rbx
mov byte [rbp + rbx - 9], bl
jmp 0x140035cd0
lea rcx, [rbp - 9]
cmp rbx, 0xf
ja 0x140035cbb
mov qword [rbp + 7], rbx
mov r8, rbx
xor edx, edx
call fcn.1400c1030
mov byte [rbp + rbx - 9], 0
jmp 0x140035cd0
mov byte [rsp + 0x20], 0
mov r9, rbx
movzx r8d, byte [rbp - 0x49]
mov rdx, rbx
call fcn.140045680
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
mov r8d, dword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
call fcn.1400c0990
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rbp - 9]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov byte [rdi + 0x20], 1
mov dword [rbp - 0x45], 1
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140035d66
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035dd6
call fcn.1400b3f70
movdqa xmm0, xmmword [0x1400e52e0]
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x17], 0
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400b3f50
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi + 0x20], 0
mov dword [rbp - 0x45], 1
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140035d66
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035d61
call fcn.140097c38
int3