joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c2580
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x468
xor edx, edx
lea r8, [0x00cae6b0]
lea rcx, str.0.0.0.0
call fcn.0069de60
test eax, eax
jne 0x86ebd0
xor edx, edx
lea r8, [0x00cae6c0]
lea rcx, [0x0090ff28]
call fcn.0069deb0
test eax, eax
jne 0x86ebd0
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x6c26e4
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x6c2772
xor r8d, r8d
mov edx, 1
mov ecx, 2
mov rsi, qword [sym.imp.WS2_32.dll_socket]
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x6c26f0
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x6c2794
test byte [rsp + 0x1e2], 2
jne 0x6c265d
mov dword [0x00cae6a4], 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x6c27a8
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x6c2730
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x6c2780
test byte [rsp + 0x1e2], 2
jne 0x6c26d6
mov dword [0x00cae6a0], 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x6c275e
add rsp, 0x468
pop rbx
pop rsi
ret
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
lea edx, [rax - 0x273b]
cmp edx, 1
jbe 0x6c266f
sub eax, 0x273e
cmp eax, 1
jbe 0x6c266f
call rbx
lea rdx, [0x0090ff4d]
mov ecx, eax
call fcn.0069fe10
nop word cs:[rax + rax]
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
lea edx, [rax - 0x273b]
cmp edx, 1
jbe 0x6c26e4
sub eax, 0x273e
cmp eax, 1
jbe 0x6c26e4
call rbx
lea rdx, [0x0090ff4d]
mov ecx, eax
call fcn.0069fe10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.0069fe10
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.0069fe10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.0069fe10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.0069fe10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.0069fe10
nop dword [rax]
Function at 0x6c8850
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c2d108]
test eax, eax
je 0x6c8870
mov eax, dword [0x00c2d104]
add rsp, 0x28
ret
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6c88a0
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [0x00c2d104], eax
mov dword [0x00c2d108], 1
add rsp, 0x28
ret
mov eax, dword [0x00c2d104]
jmp 0x6c888f
Function at 0x6d0c10
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x9c], 1
mov dword [rcx + 0x29c], 1
mov rbx, rcx
jne 0x6d0c37
mov dword [rcx + 0x29c], 0
lea rcx, str.HWLOC_GROUPING
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6d0c70
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
jne 0x6d0c70
mov dword [rbx + 0x29c], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, dword [rbx + 0x29c]
test eax, eax
je 0x6d0c5e
movabs rax, 0x3c23d70a00000000
lea rcx, str.HWLOC_GROUPING_ACCURACY
mov dword [rbx + 0x2a4], 5
mov qword [rbx + 0x2a8], rax
movabs rax, 0x3d4ccccd3ca3d70a
mov qword [rbx + 0x2b0], rax
mov qword [rbx + 0x2b8], 0x3dcccccd
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6d0d40
mov ecx, 4
lea rdi, [0x00912618]
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x6d0d12
mov dword [rbx + 0x2a0], 0
lea rcx, str.HWLOC_GROUPING_VERBOSE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6d0c5e
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [rbx + 0x2a0], eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov dword [rbx + 0x2a4], 1
mov rcx, rax
call sub.msvcrt.dll_atof
pxor xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rbx + 0x2a8], xmm1
jmp 0x6d0cdd
mov dword [rbx + 0x2a4], 1
jmp 0x6d0cdd
Function at 0x6d2ae0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x2c0]
mov dword [rcx + 0xb4], 1
mov rsi, rcx
test rbx, rbx
je 0x6d2b91
lea rbp, str.components.c
lea rdi, str.backend__is_thissystem__0
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x6d2b34
mov eax, dword [rbx + 0x24]
cmp eax, 0xffffffff
je 0x6d2b34
test eax, eax
jne 0x6d2bc0
mov dword [rsi + 0xb4], 0
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x6d2b13
mov rbx, qword [rsi + 0x2c0]
test byte [rsi + 0x20], 2
jne 0x6d2bf4
test rbx, rbx
je 0x6d2b91
lea rbp, str.components.c
lea rdi, str.backend__is_thissystem__0
jmp 0x6d2b6c
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x6d2b91
cmp dword [rbx + 0x10], 1
jne 0x6d2b63
mov eax, dword [rbx + 0x24]
cmp eax, 0xffffffff
je 0x6d2b63
test eax, eax
jne 0x6d2be0
mov dword [rsi + 0xb4], 0
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x6d2b6c
lea rcx, str.HWLOC_THISSYSTEM
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6d2bb0
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [rsi + 0xb4], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x2d8
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6d2b2a
mov r8d, 0x2e6
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6d2b7e
mov dword [rsi + 0xb4], 1
jmp 0x6d2b4e
Function at 0x6d7620
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rdi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
je 0x6d76ae
mov dword [rdi + 0x2fc], 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll__open]
mov esi, eax
test eax, eax
js 0x6d76c0
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fstat64]
cmp eax, 0xffffffff
je 0x6d76a5
mov rbp, qword [rsp + 0x38]
test eax, eax
jne 0x6d76a5
cmp ebp, 0x10000
jg 0x6d76d5
lea ecx, [rbp + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov r8d, ebp
mov ecx, esi
mov rbx, rax
mov rdx, rax
call qword [sym.imp.msvcrt.dll__read]
cmp eax, ebp
je 0x6d7700
mov rcx, rbx
call fcn.00710f20
mov ecx, esi
call qword [sym.imp.msvcrt.dll__close]
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rbx
mov rcx, rdi
call fcn.006d6ea0
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 2
call qword [fcn.007116c0]
mov r9d, ebp
mov r8, rbx
lea rdx, str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6d76a5
cdqe
mov rdx, rbx
mov rcx, rdi
mov byte [rbx + rax], 0
call fcn.006d6ea0
jmp 0x6d769d
Function at 0x6d9f00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x88], rdx
mov edx, 0x29
mov ebx, r8d
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x98], r9
mov qword [rsp + 0x20], rcx
call sub.msvcrt.dll_strchr
mov r8, qword [rsp + 0x20]
test rax, rax
mov qword [rsp + 0x28], rax
je 0x6da172
movzx eax, byte [r8]
xor r15d, r15d
xor r13d, r13d
xor r14d, r14d
lea rbp, [0x00913f3e]
lea r12, [0x00913f30]
cmp al, 0x29
je 0x6d9ff2
lea eax, [rbx - 4]
cmp eax, 7
jbe 0x6da080
mov ecx, 7
lea rsi, str.memory
mov rdi, r8
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x6da0e0
mov ecx, 8
mov rsi, rbp
mov rdi, r8
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x6da101
lea r13, [r8 + 8]
lea rdx, [0x00913f47]
mov rcx, r13
mov qword [rsp + 0x80], r13
call sub.msvcrt.dll_strcspn
lea rsi, [r13 + rax]
mov r15, rax
mov qword [rsp + 0x80], rsi
movzx eax, byte [rsi]
cmp al, 0x20
je 0x6da0c1
cmp al, 0x29
jne 0x6da122
mov rax, qword [rsp + 0x98]
mov qword [rax], r14
test r13, r13
je 0x6da056
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x6da040
mov eax, dword [rsp + 0xb0]
test eax, eax
je 0x6da040
mov ecx, 2
call qword [fcn.007116c0]
mov r8d, 0x3c
mov edx, 1
lea rcx, str.Overwriting_duplicate_indexes_attribute_with_last_occurence_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0xa0]
mov qword [rax], r13
mov rax, qword [rsp + 0xa8]
mov dword [rax], r15d
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x88]
add r15, 1
mov qword [rax], r15
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 5
mov rsi, r12
mov rdi, r8
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x6d9f9a
lea rcx, [r8 + 5]
lea rdx, [rsp + 0x80]
call fcn.006d86d0
mov rsi, qword [rsp + 0x80]
mov r14, rax
movzx eax, byte [rsi]
cmp al, 0x20
jne 0x6d9fea
lea r8, [rsi + 1]
mov qword [rsp + 0x80], r8
movzx eax, byte [rsi + 1]
jmp 0x6d9f68
lea rcx, [r8 + 7]
lea rdx, [rsp + 0x80]
call fcn.006d86d0
mov rsi, qword [rsp + 0x80]
mov r14, rax
jmp 0x6d9fdf
mov ecx, dword [rsp + 0xb0]
test ecx, ecx
jne 0x6da14c
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x6da06c
mov edx, dword [rsp + 0xb0]
test edx, edx
je 0x6da10c
mov ecx, 2
call qword [fcn.007116c0]
mov r8, rsi
lea rdx, str.Missing_parameter_separator_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6da10c
mov qword [rsp + 0x20], r8
mov ecx, 2
call qword [fcn.007116c0]
mov r8, qword [rsp + 0x20]
lea rdx, str.Unknown_attribute_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6da10c
mov r9d, dword [rsp + 0xb0]
test r9d, r9d
je 0x6da10c
mov qword [rsp + 0x20], r8
mov ecx, 2
call qword [fcn.007116c0]
mov r8, qword [rsp + 0x20]
lea rdx, str.Missing_attribute_closing_bracket_in_synthetic_string_doesnt_have_a_number_of_objects_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6da10c
Function at 0x6daf60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov r12d, dword [rsp + 0xb0]
mov rbx, rax
mov rbp, rcx
mov edi, edx
mov r15, r9
test r9, r9
je 0x6db0e1
test dl, 4
jne 0x6db090
xor esi, esi
lea r13, str.topology_synthetic.c
nop
cmp dword [r15], 0xd
je 0x6dafcc
mov r8d, 0x530
mov rdx, r13
lea rcx, str.mchild__type__HWLOC_OBJ_NUMANODE
call qword [sym.imp.msvcrt.dll__assert]
test r12d, r12d
je 0x6dafec
cmp rbx, 1
jle 0x6dafe9
mov ecx, 0x20
add r14, 1
sub rbx, 1
mov word [r14 - 1], cx
add esi, 1
cmp rbx, 1
jle 0x6db004
mov edx, 0x5b
add r14, 1
sub rbx, 1
mov word [r14 - 1], dx
mov qword [rsp + 0x28], rbx
mov r9d, 0xffffffff
mov r8, r15
mov edx, edi
mov qword [rsp + 0x20], r14
mov rcx, rbp
add esi, 1
call fcn.006d9820
test eax, eax
js 0x6db0e5
add esi, eax
cdqe
cmp rbx, rax
jg 0x6db03f
test rbx, rbx
jle 0x6db045
lea eax, [rbx - 1]
cdqe
add r14, rax
sub rbx, rax
cmp rbx, 1
jle 0x6db05d
mov eax, 0x5d
add r14, 1
sub rbx, 1
mov word [r14 - 1], ax
mov r15, qword [r15 + 0x58]
add esi, 1
mov r12d, 1
test r15, r15
jne 0x6dafb0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp r8d, 1
ja 0x6db0ec
cmp dword [r9], 0xd
jne 0x6db0ec
test r12d, r12d
je 0x6db0ba
cmp rax, 1
jle 0x6db0ba
mov r8d, 0x20
add r14, 1
sub rax, 1
mov word [r14 - 1], r8w
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8, r15
mov edx, edi
mov qword [rsp + 0x20], r14
mov rcx, rbp
call fcn.006d9820
test eax, eax
js 0x6db0e5
lea esi, [rax + r12]
jmp 0x6db073
xor esi, esi
jmp 0x6db073
mov esi, 0xffffffff
jmp 0x6db073
mov r9d, dword [rsp + 0xb8]
test r9d, r9d
jne 0x6db10f
call qword [sym.imp.msvcrt.dll__errno]
mov esi, 0xffffffff
mov dword [rax], 0x16
jmp 0x6db073
mov ecx, 2
call qword [fcn.007116c0]
mov r8d, 0x5d
mov edx, 1
lea rcx, str.Cannot_export_to_synthetic_v1_if_multiple_memory_children_are_attached_to_the_same_location._n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6db0f9

Function at 0x6db740
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c2d180]
test eax, eax
je 0x6db760
mov eax, dword [0x00c2d17c]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6db7a0
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00c2d17c], eax
mov dword [0x00c2d180], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6db771
mov eax, dword [0x00c2d17c]
jmp 0x6db787

Function at 0x6db7c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c2d178]
test eax, eax
je 0x6db7e0
mov eax, dword [0x00c2d174]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6db820
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00c2d174], eax
mov dword [0x00c2d178], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6db7f1
mov eax, dword [0x00c2d174]
jmp 0x6db807
Function at 0x6dd060
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c2d188]
test eax, eax
je 0x6dd080
mov eax, dword [0x00c2d184]
add rsp, 0x28
ret
lea rcx, str.HWLOC_XML_VERBOSE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6dd0b0
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [0x00c2d184], eax
mov dword [0x00c2d188], 1
add rsp, 0x28
ret
mov eax, dword [0x00c2d184]
jmp 0x6dd09f
Function at 0x6e32f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rdi, [0x00915ff6]
mov rbx, rcx
mov ecx, 2
mov r13, rdx
mov qword [rsp + 0xb0], r8
mov rsi, rbx
lea rdx, [0x00915ff8]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
lea rax, str._dev_stdin
cmove rbx, rax
mov rcx, rbx
call sub.msvcrt.dll_fopen
mov r14, rax
test rax, rax
je 0x6e344c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.00707560
test eax, eax
je 0x6e3405
mov ecx, 0x1001
mov edi, 0x1000
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x6e343d
movabs r15, 0x7fffffffffffffff
mov rbp, rdi
xor ebx, ebx
jmp 0x6e33b7
lea r12, [rbp + rbp]
mov rcx, rsi
lea rdx, [r12 + 1]
call sub.msvcrt.dll_realloc
test rax, rax
je 0x6e3435
mov rdi, rbp
mov rsi, rax
mov rbp, r12
and rdi, r15
lea rcx, [rsi + rbx]
mov r9, r14
mov r8, rdi
mov edx, 1
call sub.msvcrt.dll_fread
add rbx, rax
mov byte [rsi + rbx], 0
cmp rdi, rax
je 0x6e3390
mov rcx, r14
add rbx, 1
call fcn.00710f78
mov rax, qword [rsp + 0xb0]
mov qword [r13], rsi
mov qword [rax], rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x26]
mov ecx, 0x1001
mov edi, 0x1000
and ax, 0xf000
cmp ax, 0x8000
jne 0x6e336b
mov eax, dword [rsp + 0x34]
lea edi, [rax + 1]
movsxd rdi, edi
lea rcx, [rdi + 1]
jmp 0x6e336b
mov rcx, rsi
call fcn.00710f20
mov rcx, r14
call fcn.00710f78
mov eax, 0xffffffff
jmp 0x6e33f4
mov eax, 0xffffffff
jmp 0x6e33f4

Function at 0x6e5e90
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x00876030]
mov eax, dword [rsp + 0x40]
cmp ebx, 1
jbe 0x6e5ed6
mov rdx, qword [0x00c2d1f8]
mov eax, ebx
shl eax, 6
test rdx, rdx
je 0x6e5ed6
lea ecx, [rbx - 1]
add ebx, 0x3ffffff
movzx ecx, cx
shl ebx, 6
call rdx
movzx eax, ax
add eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x6e8dd0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
cmp rdx, 2
jbe 0x6e8f66
movzx r10d, byte [rcx]
movzx eax, byte [rcx + 1]
lea r11, [rcx + 3]
sub rdx, 3
movzx esi, byte [rcx + 2]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov edi, r10d
mov ecx, eax
shl r10d, 4
shr cl, 4
and r10d, 0x30
shl eax, 2
add r10d, ecx
mov ecx, esi
and eax, 0x3c
shr dil, 2
shr cl, 6
and esi, 0x3f
add ecx, eax
mov eax, 4
cmp r9, 3
ja 0x6e8e7c
jmp 0x6e8f50
movzx r10d, byte [r11]
add r11, 3
add rax, 4
sub rdx, 3
movzx ecx, byte [r11 - 2]
movzx esi, byte [r11 - 1]
mov edi, r10d
shl r10d, 4
mov ebp, ecx
and r10d, 0x30
shl ecx, 2
shr bpl, 4
and ecx, 0x3c
shr dil, 2
add r10d, ebp
mov ebp, esi
and esi, 0x3f
shr bpl, 6
add ecx, ebp
cmp r9, rax
jb 0x6e8f50
and r10d, 0x7f
and ecx, 0x7f
and edi, 0x3f
movzx r10d, byte [rbx + r10]
movzx edi, byte [rbx + rdi]
mov byte [r8 + rax - 3], r10b
movzx r10d, byte [rbx + rcx]
mov rcx, rsi
and ecx, 0x3f
mov byte [r8 + rax - 4], dil
movzx ecx, byte [rbx + rcx]
mov byte [r8 + rax - 2], r10b
mov byte [r8 + rax - 1], cl
cmp rdx, 2
ja 0x6e8e30
test rdx, rdx
jne 0x6e8ed4
cmp rax, r9
jae 0x6e8f50
mov byte [r8 + rax], 0
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx ecx, byte [r11]
cmp rdx, 2
jne 0x6e8f5a
movzx r10d, byte [r11 + 1]
mov ebx, r10d
shl r10d, 2
shr bl, 4
and r10d, 0x3c
mov r11d, ecx
shl ecx, 4
lea rsi, [rax + 4]
and ecx, 0x30
shr r11b, 2
add ecx, ebx
cmp rsi, r9
ja 0x6e8f50
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
and r11d, 0x3f
and ecx, 0x7f
movzx ecx, byte [rbx + rcx]
movzx r11d, byte [rbx + r11]
mov byte [r8 + rax + 1], cl
lea rcx, [r8 + rax + 2]
mov byte [r8 + rax], r11b
add rax, 3
cmp rdx, 1
je 0x6e8f61
movzx r10d, r10b
movzx edx, byte [rbx + r10]
mov byte [rcx], dl
mov byte [r8 + rax], 0x3d
mov rax, rsi
jmp 0x6e8ec1
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r10d, r10d
xor ebx, ebx
jmp 0x6e8ef1
mov byte [rcx], 0x3d
jmp 0x6e8f43
mov r11, rcx
xor eax, eax
jmp 0x6e8ebc
Function at 0x6ec030
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x820
mov r12, rcx
mov rbx, rdx
test rcx, rcx
je 0x6ec1ed
test rdx, rdx
je 0x6ec1ed
mov r10, qword [rcx]
test r10, r10
je 0x6ec1ed
mov r9d, dword [rdx + 0x18]
mov r11, qword [rdx]
lea r13, [rsp + 0x20]
mov ecx, pe_nt_image_headers64
mov rdi, r13
mov eax, r9d
shl rax, 0xa
lea rsi, [r11 + rax - 0x400]
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rdx + 0x1c]
cmp ecx, 1
jbe 0x6ec139
cmp ecx, 3
jbe 0x6ec200
lea eax, [rcx - 4]
lea r14d, [r9 + r9 - 1]
mov edi, 3
and eax, 0xfffffffe
lea r15d, [rax + 5]
mov esi, r14d
add r14d, r9d
mov rax, r13
xor edx, edx
mov r8d, r14d
shl rsi, 0xa
shl r8, 0xa
add rsi, r11
add r8, r11
nop dword [rax]
movdqu xmm0, xmmword [rsi + rdx]
movdqu xmm1, xmmword [rsi + rdx + 0x10]
add rax, 0x20
pxor xmm0, xmmword [rax - 0x20]
pxor xmm1, xmmword [rax - 0x10]
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
movdqu xmm2, xmmword [r8 + rdx + 0x10]
movdqu xmm3, xmmword [r8 + rdx]
add rdx, 0x20
pxor xmm1, xmm2
pxor xmm0, xmm3
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
cmp rdx, 0x400
jne 0x6ec0d8
lea eax, [rdi + 2]
add r14d, r9d
cmp eax, r15d
je 0x6ec205
mov edi, eax
jmp 0x6ec0b5
lea r8, [rsp + 0x420]
mov rdi, r8
mov ecx, pe_nt_image_headers64
mov rsi, r13
mov edx, dword [r12 + 8]
rep movsq qword [rdi], qword [rsi]
mov r9d, 0x400
mov rcx, r10
lea r14, [rsp + 0x420]
mov r8, r14
call fcn.006ef8b0
mov r9d, dword [0x00c2d210]
test r9d, r9d
je 0x6ec19f
mov edx, 0x400
mov rcx, r13
call fcn.006ebfe0
mov r8d, dword [0x00c2d210]
test r8d, r8d
je 0x6ec19f
mov edx, 0x400
mov rcx, r14
call fcn.006ebfe0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x6ec251
mov r13d, dword [rbx + 0x10]
mov edx, dword [0x00c2d210]
mov rcx, qword [rbx]
shl r13d, 0xa
mov r13d, r13d
test edx, edx
je 0x6ec1cf
test rcx, rcx
je 0x6ec1cf
mov rdx, r13
call fcn.006ebfe0
mov eax, dword [rbx + 0x2c]
test eax, eax
jne 0x6ec1ed
mov rax, qword [r12 + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x6ec264
mov rdx, r13
call rax
nop
add rsp, 0x820
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 1
add edi, 1
lea r8, [rsp + 0x420]
mov esi, edi
imul esi, r9d
sub esi, 1
mov edx, esi
mov rax, r13
shl rdx, 0xa
add rdx, r11
nop dword [rax]
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmmword [rax]
add rax, 0x10
add rdx, 0x10
movaps xmmword [rax - 0x10], xmm0
cmp r8, rax
jne 0x6ec228
add esi, r9d
cmp ecx, edi
jbe 0x6ec141
add edi, 1
jmp 0x6ec219
mov edx, dword [r12 + 8]
mov rcx, qword [r12]
call fcn.006edc90
jmp 0x6ec1aa
call fcn.00710f20
jmp 0x6ec1ed

Function at 0x6ecb90
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax]
movdqu xmm1, xmmword [rdx + rax]
pxor xmm0, xmm1
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, 0x400
jne 0x6ecb98
ret
Function at 0x703410
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 fcn.007116c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.007116c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x703480
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00cad7f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x703628
mov rax, qword [0x00cad7f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x7034cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x703557
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x7034b0
mov rcx, r12
call fcn.007041e0
mov rbp, rax
test rax, rax
je 0x703662
mov rax, qword [0x00cad7f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00704310
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00cad7f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x703671
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x703550
sub eax, 4
and eax, 0xfffffffb
jne 0x7035e0
add dword [0x00cad7f4], 1
cmp ebx, 8
jae 0x703588
test bl, 4
jne 0x703630
test ebx, ebx
je 0x703579
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x703650
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 0x703579
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 0x7035ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00cad7f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x703550
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00703410
nop dword [rax]
xor edi, edi
jmp 0x7034d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x703579
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x703579
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00703410
mov rax, qword [0x00cad7f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00703410
nop
nop dword [rax]