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

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, 0x40
mov rdi, qword [rcx + 8]
mov r14d, edx
add rdi, 0xb8
mov rbp, rcx
mov qword [rsp + 0x30], rdi
xor eax, eax
mov ebx, 2
mov esi, 1
lock cmpxchg dword [rdi], esi
je 0x14031cc1e
cmp ebx, 0x10
jae 0x14031cc0b
test ebx, ebx
je 0x14031cc07
mov eax, ebx
nop dword [rax]
pause
sub rax, rsi
jne 0x14031cc00
add ebx, ebx
jmp 0x14031cc16
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [rdi], esi
jne 0x14031cbf2
mov rax, qword [rbp + 8]
xor ebx, ebx
mov byte [rsp + 0x38], sil
cmp byte [rax + 0x19], bl
jne 0x14031cc35
mov edi, ebx
jmp 0x14031ccde
mov dword [rax + 0xb0], ebx
lea r8, [0x14031cd40]
mov rax, qword [rbp + 8]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov byte [rax + 0x24], bl
mov rax, qword [rbp + 8]
mov byte [rax + 0x19], bl
mov rcx, qword [rbp + 8]
movzx eax, byte [rbp + 0x10]
mov byte [rcx + 0x18], al
xor ecx, ecx
mov rax, qword [rbp + 8]
mov dword [rax + 0x1c], r14d
mov rax, qword [rbp + 8]
inc dword [rax + 8]
mov rdi, qword [rbp + 8]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14031ccd3
lea r9, str.thrd_success__ret
mov edx, 0x103
lea r8, [0x1404d34b0]
lea rcx, str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
lea edi, [rax - 1]
call sym.WetypeInstaller.exe___ASSERT
mov rax, qword [rbp + 8]
lea rdx, [rsp + 0x30]
mov byte [rax + 0x19], sil
mov rax, qword [rbp + 8]
mov dword [rax + 0x1c], 0xffffffff
mov rcx, qword [rbp + 8]
call fcn.140316f50
movzx esi, byte [rsp + 0x38]
jmp 0x14031ccd9
mov qword [rdi + 0x10], rax
mov edi, ebx
test sil, sil
je 0x14031cce5
mov rcx, qword [rsp + 0x30]
xchg dword [rcx], ebx
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140321900
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rdx
mov esi, dword [rdx]
mov eax, 0x80000000
mov r10d, 0xc0000000
cmp esi, 2
cmovne r10d, eax
cmp qword [rdx + 0x18], 0
je 0x14032194e
cmp esi, 2
mov edx, 2
je 0x140321953
mov edx, 3
mov eax, 0x100
mov r8d, 1
cmp esi, 2
cmovne eax, r8d
cmp byte [rbx + 0x68], 0
je 0x140321998
lea rcx, [rbx + 0x48]
cmp qword [rcx + 0x18], 8
jb 0x140321979
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1403219c3
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 0x10
jb 0x1403219a6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
mov qword [rdi + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x1403219df
lea rdx, str.failed_opening_file
jmp 0x140321aae
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140321a2f
cmp esi, 2
jne 0x140321a2f
mov rax, rdx
sar rax, 0x20
mov dword [rsp + 0x40], eax
xor r9d, r9d
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140321a15
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140321a26
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140321a2f
lea rdx, str.failed_setting_file_size
jmp 0x140321aae
lea rcx, [0x1404aabd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1404aabe8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x80]
test rax, rax
je 0x140321a6e
lea rdx, [rsp + 0x40]
call rax
test eax, eax
je 0x140321aa7
movsxd rcx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
jmp 0x140321a84
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140321aa7
mov ecx, dword [rsp + 0x40]
mov eax, eax
shl rcx, 0x20
or rcx, rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140321a9e
cmp rcx, rax
cmovl rax, rcx
jmp 0x140321aa1
mov rax, rcx
mov qword [rdi + 0x78], rax
jmp 0x140321ab7
lea rdx, str.failed_querying_file_size
mov rcx, rdi
call fcn.1403211e0
nop
lea rcx, [rbx + 0x28]
call fcn.1403210d0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140324620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rsi, rdx
mov rdi, rcx
jb 0x14032463f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14032466e
mov r8, rsi
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140324310
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x140324682
mov dword [rsi], 0
call fcn.14031e4a0
mov qword [rsi + 8], rax
bt ebx, 0xa
jae 0x1403246c9
mov rcx, rdi
call fcn.140323c60
test al, al
je 0x1403246b4
test bl, 0x10
mov eax, 4
mov ecx, listen
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1403246f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbp, rdx
mov dword [rsp + 0x20], esi
mov rdi, rcx
call fcn.14031e4a0
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov qword [rsp + 0x28], rax
jb 0x140324727
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14032474e
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140324310
mov esi, dword [rsp + 0x20]
mov ebx, dword [rax]
jmp 0x140324787
call fcn.14031e4a0
bt ebx, 0xa
jae 0x14032477e
mov rcx, rdi
call fcn.140323c60
test al, al
je 0x140324777
test bl, 0x10
mov eax, listen
mov ebx, 4
cmovne ebx, eax
jmp 0x140324787
mov ebx, 9
jmp 0x14032478b
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
je 0x14032478d
xor esi, esi
lea r9, str.mars_boost::filesystem::remove
mov r8, rbp
mov rdx, rdi
mov ecx, esi
call fcn.140323920
test al, al
je 0x1403247a9
xor al, al
jmp 0x1403247b6
mov r8, rbp
mov edx, ebx
mov rcx, rdi
call fcn.140324a40
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1403247d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor esi, esi
mov r14, rdx
mov ebp, esi
mov dword [rsp + 0x20], esi
mov rdi, rcx
call fcn.14031e4a0
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov qword [rsp + 0x28], rax
jb 0x140324807
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14032482e
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140324310
mov ebp, dword [rsp + 0x20]
mov ebx, dword [rax]
jmp 0x140324867
call fcn.14031e4a0
bt ebx, 0xa
jae 0x14032485e
mov rcx, rdi
call fcn.140323c60
test al, al
je 0x140324857
test bl, 0x10
mov eax, listen
mov ebx, 4
cmovne ebx, eax
jmp 0x140324867
mov ebx, 9
jmp 0x14032486b
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
je 0x14032486d
mov ebp, esi
lea r9, str.mars_boost::filesystem::remove_all
mov r8, r14
mov rdx, rdi
mov ecx, ebp
call fcn.140323920
test al, al
je 0x140324889
xor eax, eax
jmp 0x1403248a1
cmp ebx, 1
jbe 0x14032489e
mov r8, r14
mov edx, ebx
mov rcx, rdi
call fcn.1403248c0
mov rsi, rax
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140324a40
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x140324a79
test r8, r8
je 0x140324b2d
xor eax, eax
mov dword [r8], eax
call fcn.14031e4a0
mov qword [rdi + 8], rax
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x140324acb
cmp qword [rcx + 0x18], 8
jb 0x140324a8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140324b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x140324ab2
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x140324b13
cmp eax, 0x7b
je 0x140324b13
cmp eax, 0x57
je 0x140324b13
cmp eax, 0xa1
je 0x140324b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140324b15
cmp qword [rcx + 0x18], 8
jb 0x140324ad5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140324b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x140324afa
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x140324b13
cmp eax, 0x7b
je 0x140324b13
cmp eax, 0x57
je 0x140324b13
cmp eax, 0xa1
je 0x140324b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140324b15
xor eax, eax
lea r9, str.mars_boost::filesystem::remove
mov r8, rdi
mov rdx, rbx
mov ecx, eax
call fcn.140323920
test al, al
je 0x140324b3a
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140324bb0
Capabilities:
Get disk size

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rbx, rcx
mov rcx, rdx
mov rsi, r8
mov rdi, rdx
jb 0x140324bce
mov rcx, qword [rdx]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
xor ecx, ecx
lea r9, str.mars_boost::filesystem::space
test eax, eax
mov r8, rsi
mov rdx, rdi
sete cl
call fcn.140323920
test al, al
jne 0x140324c43
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x48]
mov qword [rbx + 8], rcx
mov ecx, dword [rsp + 0x4c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x58]
mov qword [rbx + 0x10], rcx
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
add rcx, rax
mov rax, rbx
mov qword [rbx], rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov qword [rbx + 0x10], 0
mov rax, rbx
mov qword [rbx + 8], 0
mov qword [rbx], 0
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140324c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140324ca5
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x140324cc6
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140324310
jmp 0x140324e1f
xor ebp, ebp
bt r15d, 0xa
jae 0x140324df1
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140324ce0
mov rdx, qword [rdi]
mov qword [rsp + 0x48], rbp
movdqa xmm0, xmmword [0x140535b70]
movdqu xmmword [rsp + 0x58], xmm0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x140324d00
lea rcx, [rsp + 0x48]
call fcn.140078ce0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140324d93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140324d8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140324e43
call fcn.140398020
movdqa xmm0, xmmword [0x140535b70]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
cmp rbx, 0xffffffffffffffff
jne 0x140324dbd
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140324310
nop
jmp 0x140324e1f
mov rcx, rdi
call fcn.140323c60
test al, al
jne 0x140324de8
mov edx, r15d
mov rcx, rdi
call fcn.140323fc0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140324e1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x140324e02
mov dword [r14], ebp
call fcn.14031e4a0
mov qword [r14 + 8], rax
mov ebx, r15d
mov edx, r15d
mov rcx, rdi
call fcn.140323fc0
and ebx, 0x10
setne bpl
add ebp, 2
mov dword [rsi], ebp
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140398000
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1403a7ee4
nop
int3
Function at 0x140326620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140326770
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14058f430]
cmp ecx, 0xffffffff
jne 0x14032678e
xor esi, esi
jmp 0x140326797
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140326890
mov rax, qword [rsi + 0x30]
nop dword [rax]
test rax, rax
jne 0x1403267c0
cmp qword [rsi + 0x18], 0
je 0x140326869
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140326828
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140326807
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1403267d0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x1403267b5
nop dword [rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14032684f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14032684f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1403254a0
cmp qword [rsi + 0x30], 0
jne 0x140326830
xor eax, eax
jmp 0x1403267b0
lea rdx, [0x140325bc0]
lea rcx, [0x14059ff28]
call fcn.1403259d0
mov ecx, dword [0x14058f430]
cmp ecx, 0xffffffff
je 0x140326890
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1403268c2
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1403268c2
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140326770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140326770
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14058f430]
cmp ecx, 0xffffffff
jne 0x14032678e
xor esi, esi
jmp 0x140326797
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140326890
mov rax, qword [rsi + 0x30]
nop dword [rax]
test rax, rax
jne 0x1403267c0
cmp qword [rsi + 0x18], 0
je 0x140326869
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140326828
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140326807
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1403267d0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x1403267b5
nop dword [rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14032684f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14032684f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1403254a0
cmp qword [rsi + 0x30], 0
jne 0x140326830
xor eax, eax
jmp 0x1403267b0
lea rdx, [0x140325bc0]
lea rcx, [0x14059ff28]
call fcn.1403259d0
mov ecx, dword [0x14058f430]
cmp ecx, 0xffffffff
je 0x140326890
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1403268c2
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1403268c2
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140329510
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push r14
sub rsp, 0x50
cmp byte [rcx + 0x5c], 0
mov rbx, r9
mov rax, r8
mov r14, rdx
mov rsi, rcx
jne 0x14032954f
mov rcx, rbx
call fcn.14007cb70
mov rax, qword [rsp + 0x90]
mov qword [rax], 0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x90]
and r8d, 7
mov qword [rsp + 0x48], rdi
xor edi, edi
mov qword [rsp + 0x38], r13
mov r13, rax
shr r13, 3
mov qword [rcx], r8
test r13, r13
je 0x14032968f
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r15
nop dword [rax]
mov r8, qword [r14 + rdi*8]
xor r9d, r9d
mov r11d, dword [rsi + 0xc]
mov rax, r8
mov ebp, dword [rsi + 0x10]
mov r15d, dword [rsi + 0x14]
mov r12d, dword [rsi + 0x18]
lea r10d, [r9 + 0x10]
mov qword [rsp + 0x70], r8
shr rax, 0x20
nop word [rax + rax]
mov edx, eax
lea r9d, [r9 - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, ebp
shl ecx, 4
add ecx, r11d
xor edx, ecx
lea ecx, [r9 + rax]
xor edx, ecx
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
add edx, r12d
add ecx, r15d
xor edx, ecx
lea ecx, [r9 + r8]
xor edx, ecx
add eax, edx
sub r10, 1
jne 0x1403295c0
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x70], r8d
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 8
jb 0x140329644
lea rax, [rcx + 8]
mov rdx, rbx
mov qword [rbx + 0x10], rax
cmp r8, 0x10
jb 0x140329634
mov rdx, qword [rbx]
mov rax, qword [rsp + 0x70]
mov qword [rdx + rcx], rax
mov byte [rdx + rcx + 8], 0
jmp 0x140329661
xor r8d, r8d
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x70]
mov rcx, rbx
lea edx, [r8 + 8]
call fcn.14010f390
inc rdi
cmp rdi, r13
jb 0x140329590
mov rax, qword [rsp + 0x90]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
mov r8, qword [rax]
mov rax, qword [rsp + 0x80]
sub r14, r8
mov rcx, rbx
lea rdx, [rax + r14]
mov r13, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rsi
pop rbx
jmp fcn.14008b0e0
Function at 0x14033b290
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14033b38b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x14033b393
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14033b3ca
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x14033b3a0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x14033b3f5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14033b41b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x14033b400
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret