joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004024d
xor eax, eax
jmp 0x1400403b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140040287
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140040287
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400403b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400403ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400402ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400402f5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400403b1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140040364
sub eax, 1
je 0x140040364
cmp eax, 2
jne 0x1400403ac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400403b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140040392
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400403ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400403b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d3c30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040b40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040c13
cmp byte [rcx + 0x71], 0
je 0x140040c13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140040c0f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140040bd4
sub eax, 1
je 0x140040bd8
cmp eax, 2
jne 0x140040c0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d3c30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040c06
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140040c0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140040bbc
xor al, al
jmp 0x140040bbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d3c30
add rsp, 0x60
pop rbx
ret

Function at 0x1400417b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400d3eec
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140041a50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140041826
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d3c30
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140046010
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140046099
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140046099
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140046097
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400460a6
jmp 0x14004605b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400d3c30
add rsp, 0x288
ret
Function at 0x1400646f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x14006472f
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jne 0x14006475f
mov dword [rsp + 0x20], 1
jmp 0x140064767
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d3c30
add rsp, 0x48
ret
Function at 0x14006af30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x14006af45
xor eax, eax
jmp 0x14006afac
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14006af62
xor eax, eax
jmp 0x14006afac
mov dword [rsp + 4], 0x400
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x3c]
mov dword [rsp], eax
cmp dword [rsp], 0x400
jle 0x14006af82
xor eax, eax
jmp 0x14006afac
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x14006afa7
xor eax, eax
jmp 0x14006afac
mov rax, qword [rsp + 0x10]
add rsp, 0x28
ret
Function at 0x14006bd70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.14006bfc0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14006be8a
mov rax, qword [0x1400f4008]
cmp qword [rsp + 0x20], rax
jb 0x14006bdd4
mov rax, qword [0x1400f4010]
cmp qword [rsp + 0x20], rax
ja 0x14006bdd4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14006bd96
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400d4dc8
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14006be05
jmp 0x14006be8a
cmp dword [rsp + 0x50], 0x10000
jne 0x14006be6d
cmp qword [rsp + 0x48], 0x10000
jb 0x14006be6d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14006be4b
mov rax, qword [rsp + 0x28]
jmp 0x14006be8c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14006be5b
xor eax, eax
jmp 0x14006be8c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x14006be85
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.14006bfc0
mov qword [rsp + 0x20], rax
jmp 0x14006bd96
xor eax, eax
add rsp, 0x68
ret

Function at 0x14006bea0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.14006c000
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x14006bfb6
mov rax, qword [0x1400f4008]
cmp qword [rsp + 0x20], rax
jb 0x14006befb
mov rax, qword [0x1400f4010]
cmp qword [rsp + 0x20], rax
ja 0x14006befb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14006bebd
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400d4dc8
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14006bf2c
jmp 0x14006bfb6
cmp dword [rsp + 0x50], 0x10000
jne 0x14006bf94
cmp qword [rsp + 0x48], 0x10000
jb 0x14006bf94
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14006bf72
mov rax, qword [rsp + 0x28]
jmp 0x14006bfb8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14006bf82
xor eax, eax
jmp 0x14006bfb8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x14006bfb1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14006c000
mov qword [rsp + 0x20], rax
jmp 0x14006bebd
xor eax, eax
add rsp, 0x68
ret
Function at 0x14006c050
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006c5e0
mov qword [rsp + 0x28], 0
cmp qword [0x1400fb530], 0
jne 0x14006c098
cmp qword [0x1400fb528], 0
je 0x14006c098
mov rax, qword [0x1400fb528]
mov qword [0x1400fb530], rax
cmp qword [0x1400fb530], 0
je 0x14006c13e
mov rax, qword [0x1400fb530]
cmp qword [rax + 0x10], 0
je 0x14006c13e
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14006c13e
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14006c13e
mov rax, qword [0x1400fb530]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x14006c104
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14006c10b
xor eax, eax
jmp 0x14006c2b5
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1400d4dc8
mov rax, qword [rsp + 0x28]
jmp 0x14006c2b5
mov rax, qword [0x1400fb528]
mov qword [0x1400fb530], rax
jmp 0x14006c160
mov rax, qword [0x1400fb530]
mov rax, qword [rax + 8]
mov qword [0x1400fb530], rax
cmp qword [0x1400fb530], 0
je 0x14006c1ad
cmp qword [0x1400fb530], 0
je 0x14006c1ab
mov rax, qword [0x1400fb530]
cmp qword [rax + 0x10], 0
je 0x14006c1ab
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14006c1ab
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14006c1ab
jmp 0x14006c0dc
jmp 0x14006c14e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14006c2c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14006c2b3
mov rax, qword [rsp + 0x48]
mov qword [0x1400fb530], rax
mov rax, qword [0x1400fb530]
mov dword [rax], 0x52727464
mov rax, qword [0x1400fb530]
mov qword [rax + 0x10], 0
mov rax, qword [0x1400fb530]
mov rcx, qword [0x1400fb528]
mov qword [rax + 8], rcx
mov rax, qword [0x1400fb530]
mov qword [0x1400fb528], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400fb530]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x14006c264
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14006c29e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x14006c25a
mov rax, qword [0x1400fb530]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14006c0dc
xor eax, eax
add rsp, 0x58
ret
Function at 0x14006cfd0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14006d017
xor al, al
jmp 0x14006d0b9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x14006d041
xor al, al
jmp 0x14006d0b9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x14006d0b1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x14006d0b1
mov al, 1
jmp 0x14006d0b9
jmp 0x14006d0b7
xor al, al
add rsp, 0x78
ret

Function at 0x14006d3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400fb528]
mov qword [rsp + 0x28], rax
jmp 0x14006d3e0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14006d40f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14006d40d
call sub.KERNEL32.dll_GetLastError
jmp 0x14006d411
jmp 0x14006d3d2
xor eax, eax
add rsp, 0x38
ret
Function at 0x14006dad0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400fb540], eax
je 0x14006dafd
mov eax, 0x10dd
jmp 0x14006dd16
cmp dword [0x1400fb544], 0
je 0x14006db11
mov eax, dword [0x1400fb544]
jmp 0x14006dd16
cmp qword [rsp + 0x78], 0
jne 0x14006db23
mov eax, 0x57
jmp 0x14006dd16
cmp qword [rsp + 0x70], 0
jne 0x14006db35
mov eax, 6
jmp 0x14006dd16
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x14006db67
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1400fb544], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1400fb548], rax
mov eax, dword [rsp + 0x20]
jmp 0x14006dd16
mov ecx, Ordinal_50
call fcn.1400d3eec
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14006dbd9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1400fb544], eax
cmp qword [rsp + 0x30], 0
je 0x14006dbc4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x50]
call fcn.1400d4168
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1400fb548], rax
mov eax, dword [rsp + 0x20]
jmp 0x14006dd16
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14006daa0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.14006daa0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x14006dc36
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x14006dc53
mov dword [rsp + 0x20], 9
cmp dword [0x1400fb538], 0
je 0x14006dc4e
jmp 0x14006db9a
jmp 0x14006db90
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x14006dc80
mov dword [rsp + 0x20], 9
cmp dword [0x1400fb538], 0
je 0x14006dc7b
jmp 0x14006db9a
jmp 0x14006db90
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14006dcb7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x14006db90
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1400fb558]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1400fb558], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x14006dd20
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400fb540], eax
je 0x14006dd3b
mov eax, 0x10dd
jmp 0x14006de60
mov rax, qword [0x1400fb558]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14006dde5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x14006ddb0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x14006ddb0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.14006c720
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.1400d4168
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14006dd47
mov qword [0x1400fb558], 0
call fcn.14006d180
mov rax, qword [0x1400fb550]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14006de49
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.1400d4168
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x14006de01
mov qword [0x1400fb550], 0
mov dword [0x1400fb540], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x14006e390
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1400fb544], 0
je 0x14006e3ad
mov eax, dword [0x1400fb544]
jmp 0x14006e473
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x14006e3c0
xor eax, eax
jmp 0x14006e473
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400d3eec
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14006e42e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x14006e413
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.1400d4168
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1400fb544], eax
mov qword [0x1400fb548], 0
mov eax, dword [rsp + 0x20]
jmp 0x14006e473
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14006e448
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x14006e3e9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1400fb550]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1400fb550], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14006ec80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x14006ecb4
mov eax, esi
lea ecx, [rax + 0x31]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x14006eca0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14006e800
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14006ecd9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14006b060
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14006ed53
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ed4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006ed4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4168
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret