joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400123a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ca
movzx eax, al
test eax, eax
jne 0x1400123c0
mov ecx, 7
call fcn.140011343
nop
mov byte [rsp + 0x20], 0
call fcn.140011357
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x1400123e4
mov ecx, 7
call fcn.140011343
nop
jmp 0x14001243c
cmp dword [0x14001e868], 0
jne 0x140012437
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012418
mov eax, 0xff
jmp 0x140012541
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001134d
mov dword [0x14001e868], 2
jmp 0x14001243c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001132f
call fcn.1400112c6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012499
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012499
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 [0x140025020]
nop
call fcn.1400112f8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400124cd
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400124cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011389
nop
call fcn.1400125f0
mov dword [rsp + 0x28], eax
call fcn.1400112a3
movzx eax, al
test eax, eax
jne 0x1400124ec
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400124fb
call fcn.140011393
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140012541
add rsp, 0x68
ret
Function at 0x1400e6810
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1401151a0], rbx
je 0x1400e6877
cmp rax, rbx
jne 0x1400e686a
mov ebx, 1
mov esi, ebx
jmp 0x1400e687c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400e684f
mov ebx, 1
mov eax, dword [0x1401151a8]
cmp eax, ebx
jne 0x1400e6894
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400e6900
mov eax, dword [0x1401151a8]
test eax, eax
jne 0x1400e68f5
mov dword [0x1401151a8], ebx
lea r15, [0x1400f0668]
lea rdi, [0x1400f0650]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400e68e7
test eax, eax
jne 0x1400e68eb
cmp qword [rdi], r14
je 0x1400e68dc
mov rax, qword [rdi]
mov rcx, qword [case.0x140066f27.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400e68be
test eax, eax
je 0x1400e68fb
mov eax, 0xff
jmp 0x1400e6a56
mov dword [0x140113e44], ebx
mov edi, 0x1f
mov eax, dword [0x1401151a8]
cmp eax, ebx
jne 0x1400e6927
lea rdx, [0x1400f0648]
lea rcx, [0x1400f05b8]
call sub.msvcrt.dll__initterm
mov dword [0x1401151a8], 2
test esi, esi
jne 0x1400e6935
mov rax, r14
xchg qword [0x1401151a0], rax
cmp qword [0x1401151c0], r14
je 0x1400e6968
lea rcx, [0x1401151c0]
call fcn.1400e7310
test eax, eax
je 0x1400e6968
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1401151c0]
mov r9, qword [case.0x140066f27.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400e6981
mov eax, 0xff
jmp 0x1400e6a56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400e6a07
test ax, ax
je 0x1400e699c
test edx, edx
jne 0x1400e6a07
sub ax, bx
cmp ax, di
ja 0x1400e69b2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400e699c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000eb08
mov dword [0x140113e40], eax
cmp dword [0x140113e60], r14d
jne 0x1400e69f0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140113e44], r14d
jne 0x1400e6a05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140113e40]
jmp 0x1400e6a56
cmp ax, 0x22
jne 0x1400e6a1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400e698a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14020b000
add rsp, 0x28
jmp 0x1400e6810
Function at 0x180008740
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x590
mov rax, qword [0x1800e78c8]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x5a0]
mov edx, dword [rax + 0x18]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1800087c6
mov rcx, qword [rsp + 0x5a8]
call fcn.18000c670
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x5b0]
call fcn.180008b60
mov rax, qword [rsp + 0x5a8]
jmp 0x1800089c0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x5b0]
call fcn.180005a70
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.18000e970
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x90]
call fcn.180005ba0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.180005f90
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x5b0]
call fcn.180006050
lea rcx, [rsp + 0x70]
call fcn.180008b60
nop
lea rcx, [rsp + 0x90]
call fcn.18000e8c0
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rsp + 0x110], 0x438
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x180008993
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x50]
call fcn.18000ea40
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xb0]
call fcn.180005ba0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x550]
call fcn.180005f90
nop
lea rcx, [rsp + 0xb0]
call fcn.18000e8c0
mov eax, dword [rsp + 0x130]
mov r8d, eax
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x570]
call fcn.180006140
mov rdx, qword [rsp + 0x5b0]
lea rcx, [rsp + 0x550]
call fcn.180008c40
movzx eax, al
test eax, eax
je 0x18000896b
lea rdx, [rsp + 0x550]
mov rcx, qword [rsp + 0x5a8]
call fcn.18001a610
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x550]
call fcn.180008b40
nop
mov rcx, qword [rsp + 0x5b0]
call fcn.180008b60
mov rax, qword [rsp + 0x5a8]
jmp 0x1800089c0
lea rcx, [rsp + 0x550]
call fcn.180008b40
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180008886
mov rcx, qword [rsp + 0x5a8]
call fcn.18000c670
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x5b0]
call fcn.180008b60
mov rax, qword [rsp + 0x5a8]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.18009f960
add rsp, 0x590
pop rdi
ret
Function at 0x18000bce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov byte [rsp + 0x28], 0x89
mov byte [rsp + 0x29], 0xff
mov byte [rsp + 0x2a], 0x54
mov byte [rsp + 0x2b], 0xff
mov byte [rsp + 0x2c], 0x24
mov byte [rsp + 0x2d], 0xff
mov byte [rsp + 0x2e], reloc.WS2_32.dll_recv
mov byte [rsp + 0x2f], 0xff
mov byte [rsp + 0x30], 0x4c
mov byte [rsp + 0x31], 0xff
mov byte [rsp + 0x32], 0x89
mov byte [rsp + 0x33], 0xff
mov byte [rsp + 0x34], 0x44
mov byte [rsp + 0x35], 0xff
mov byte [rsp + 0x36], 0x24
mov byte [rsp + 0x37], 0xff
mov byte [rsp + 0x38], 0x18
mov byte [rsp + 0x39], 0xff
mov byte [rsp + 0x3a], 0x4c
mov byte [rsp + 0x3b], 0xff
mov byte [rsp + 0x3c], 0x89
mov byte [rsp + 0x3d], 0xff
mov byte [rsp + 0x3e], 0x4c
mov byte [rsp + 0x3f], 0xff
mov byte [rsp + 0x40], 0x24
mov byte [rsp + 0x41], 0xff
mov byte [rsp + 0x42], 0x20
mov byte [rsp + 0x43], 0xff
mov byte [rsp + 0x44], 0x48
mov byte [rsp + 0x45], 0xff
mov byte [rsp + 0x46], 0x83
mov byte [rsp + 0x47], 0xff
mov byte [rsp + 0x48], 0xec
mov byte [rsp + 0x49], 0xff
mov byte [rsp + 0x4a], 0x28
mov byte [rsp + 0x4b], 0xff
mov byte [rsp + 0x4c], 0x48
mov byte [rsp + 0x4d], 0xff
mov byte [rsp + 0x4e], 0x85
mov byte [rsp + 0x4f], 0xff
mov byte [rsp + 0x50], 0xc9
mov byte [rsp + 0x51], 0xff
lea r8, [rsp + 0x28]
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.18001b0a0
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x18000bfe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 1
jne 0x18000c01e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18000b930]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18005dc50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x18005dd1b
cmp qword [rcx + 0x268], 0
je 0x18005dcce
mov qword [rsp + 0x40], rbx
call fcn.180052670
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1800527b0
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1800527b0
mov rbx, qword [rsp + 0x40]
jmp 0x18005dd1b
mov ecx, esi
test edx, edx
je 0x18005dcde
sub ecx, 1
je 0x18005dcde
cmp ecx, 1
jne 0x18005dd1b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1800a7a10]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18005fb30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x18005fe40
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x18005fe6a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800a7c48]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x18005fece
mov rcx, rbx
test r14, r14
je 0x18005feb8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x18005ff06
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18005ff06
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x18005ffca
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x18005ff30
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x18005ffbc
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18005ffbc
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x18005ff63
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x18005ff75
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x18005ff90
mov rcx, rsi
test r14, r14
je 0x18005ffb3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x18005ffb9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1800a09b2]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x18006d240
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.180055e90
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.18006b2a0
mov rcx, rdi
mov rsi, rax
call fcn.18006b2a0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18006d2f0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.180055e90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.180055f20
cmp rax, 0x3e8
ja 0x18006d323
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x18006d2a0
test rsi, rsi
je 0x18006d2fe
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x18006d30c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x18006d331
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x18006d33f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x18006d30e
Function at 0x18006d7d0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x18006d96e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x18006d94e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x18006d83e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18006d830
inc rbx
jmp 0x18006d840
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x18006d84d
lea ebp, [rax + 0xe]
jmp 0x18006d859
cmp eax, 0x17
jne 0x18006d8f1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x18006d8f1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18006d8f1
cmp rax, rbp
jb 0x18006d8f1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov r14, rax
test rax, rax
je 0x18006d900
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x18006d8de
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x18006d8ee
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x18006d820
jmp 0x18006d906
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x18006d920
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x18006d949
test rdi, rdi
je 0x18006d945
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1800a09b2]
mov rdi, rbx
test rbx, rbx
jne 0x18006d930
xor edi, edi
jmp 0x18006d95d
test rdi, rdi
jne 0x18006d95d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x18006dc60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x18006dc97
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x18006dd00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x18006ddcb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.18005bad0
cmp eax, 4
jne 0x18006dd7c
cmp byte [0x1800e88a4], r14b
jne 0x18006dd88
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x18006ddcd
mov eax, dword [rsp + 0x50]
jmp 0x18006dda7
imul eax, dword [0x1800e88a0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1800e88a0], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x18006ddc2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x18006ddb0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x18006dd30
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18006dde0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1800e78c8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x18006df8c
test r14b, 1
je 0x18006df8c
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, 0x2b
mov qword [r11 - 0x38], r13
je 0x18006df0b
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.18005bad0
cmp eax, 4
jne 0x18006deac
cmp byte [0x1800e88a4], r13b
jne 0x18006debc
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x18006df4d
mov eax, dword [rsp + 0x20]
jmp 0x18006dedb
imul eax, dword [0x1800e88a0], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1800e88a0], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x18006df02
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x18006def0
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x18006de60
mov eax, ecx
test ecx, ecx
jne 0x18006df4d
test r14, r14
je 0x18006df48
lea rdx, [0x1800ab2d0]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x18006df20
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18009f960
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x18006df6d
Function at 0x180070d20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x18005ccb0.0]
mov rdi, rax
test rax, rax
je 0x180070d9d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x180070dc8
cmp ebx, esi
je 0x180070dc8
cmp ebx, 0x8000
ja 0x180070dc8
cmp ebx, esi
jb 0x180070dc3
mov edx, ebx
mov rcx, rdi
call qword [case.0x18005ccb0.0]
mov rdi, rax
test rax, rax
jne 0x180070d60
mov rcx, rbp
call qword [fcn.1800a09b2]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x180070da8
mov rcx, rdi
jmp 0x180070da0

Function at 0x180075d30
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180075d8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.18005dd40
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1800758d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret