joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014d60
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140014e62
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140014e3a
add rax, 1
cmp rax, 0x6b
je 0x140014e57
cmp byte [rcx + rax], 0
jne 0x140014e30
movsxd rdx, eax
cmp eax, 0x6a
je 0x140014e57
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140014e4b

Function at 0x140015200
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140023d00], 1
je 0x140015278
lea rdi, [0x140023d00]
mov rcx, rdi
call fcn.140014ae0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140014460
mov esi, dword [0x140023d00]
test esi, esi
jne 0x140015288
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001a338], eax
cmp eax, 0xffffffff
je 0x140019c46
mov dword [0x140023d00], 1
mov rcx, rbp
call fcn.140014750
test rbx, rbx
je 0x140015278
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140014e80
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140015258
mov ecx, 2
call qword [fcn.140013cf0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140015258
call sub.msvcrt.dll_abort
nop
Function at 0x1400152b0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140014f90
cmp qword [0x140025048], 0
mov rbx, rax
je 0x1400153c8
test rax, rax
je 0x1400153c8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140018530
cmp eax, 1
je 0x1400153d6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.140019c4c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14001a338]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400153dc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140014d60
nop
jmp fcn.140019c4c

Function at 0x1400153f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015410
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400152b0
Function at 0x140015b80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140015ca8
cmp eax, 1
je 0x140015bdb
call fcn.140014ae0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140014460
mov r12d, dword [rbx]
test r12d, r12d
je 0x140015bf0
cmp r12d, 1
jne 0x140015c80
mov rcx, rbp
call fcn.140014750
test rdi, rdi
je 0x140015bdb
mov rcx, rdi
call fcn.140014e80
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140014f60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140015200
mov ecx, dword [0x14001a338]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140015ce8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140015200
mov ecx, dword [0x14001a338]
call r12
test rax, rax
je 0x140015cd0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140015200
mov ecx, dword [0x14001a338]
call r12
test rax, rax
je 0x140015cc0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140015bc6
mov ecx, 2
call qword [fcn.140013cf0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140015bc6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400152b0
test rax, rax
jne 0x140015c69
jmp 0x140019c65
call fcn.1400152b0
test rax, rax
jne 0x140015c45
jmp 0x140019c7e
call fcn.1400152b0
test rax, rax
jne 0x140015c1f
jmp 0x140019c74
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140015f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015fe8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140018540
cmp esi, dword [rbx + 0x48]
jae 0x140015fc3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140015fc3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140018580
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400152b0
mov rbx, rax
jmp 0x140015f9d
Function at 0x140016000
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140016100
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140018540
cmp esi, dword [rbx + 0x48]
jae 0x140016080
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140018580
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001610d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001610d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001604f
call fcn.1400152b0
mov rbx, rax
jmp 0x14001603a
mov rcx, r13
call fcn.140018580
mov eax, 0xc
jmp 0x14001606d

Function at 0x140016190
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400161b8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400152b0
test rax, rax
jne 0x1400161aa
add rsp, 0x28
ret

Function at 0x140016220
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140016248
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400152b0
test rax, rax
jne 0x14001623a
jmp 0x14001623e

Function at 0x140016360
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140023d08]
test eax, eax
jne 0x140016378
xor eax, eax
add rsp, 0x28
ret
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400163a8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001636e
test byte [rax + 0x40], 3
je 0x14001636e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140016370
call fcn.1400152b0
test rax, rax
jne 0x14001638e
jmp 0x14001636e

Function at 0x1400163c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140016400
test ebx, ebx
jle 0x1400163f0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400152b0
test rax, rax
jne 0x1400163dd
add rsp, 0x20
pop rbx
ret
Function at 0x1400164f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140016568
test byte [rbx + 0x40], 0xc
jne 0x14001651f
mov eax, dword [0x140023d08]
test eax, eax
jne 0x140016530
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140014460
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140016553
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140016553
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001657c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140014750
call fcn.1400152b0
mov rbx, rax
test rax, rax
jne 0x14001650f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001659a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140014750
call fcn.140016410
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140016620
call fcn.1400176d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140016658
call fcn.140015200
mov ecx, dword [0x14001a338]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400166b0
test esi, esi
je 0x140016636
call fcn.1400164f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140016690
mov edx, edi
call fcn.140017780
call fcn.1400164f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400166a0
call fcn.1400164f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400164f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140015200
mov ecx, dword [0x14001a338]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400165f5
call fcn.1400152b0
mov rbx, rax
jmp 0x1400165f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001660e
call fcn.1400152b0
jmp 0x140016636
call fcn.1400152b0
mov rbx, rax
jmp 0x1400165f1
Function at 0x1400165b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140016568
test byte [rbx + 0x40], 0xc
jne 0x14001651f
mov eax, dword [0x140023d08]
test eax, eax
jne 0x140016530
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140014460
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140016553
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140016553
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001657c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140014750
call fcn.1400152b0
mov rbx, rax
test rax, rax
jne 0x14001650f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001659a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140014750
call fcn.140016410
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140016620
call fcn.1400176d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140016658
call fcn.140015200
mov ecx, dword [0x14001a338]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400166b0
test esi, esi
je 0x140016636
call fcn.1400164f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140016690
mov edx, edi
call fcn.140017780
call fcn.1400164f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400166a0
call fcn.1400164f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400164f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140015200
mov ecx, dword [0x14001a338]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400165f5
call fcn.1400152b0
mov rbx, rax
jmp 0x1400165f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001660e
call fcn.1400152b0
jmp 0x140016636
call fcn.1400152b0
mov rbx, rax
jmp 0x1400165f1

Function at 0x1400166c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140015200
mov ecx, dword [0x14001a338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140016730
test esi, esi
je 0x140016710
call fcn.1400164f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140016740
mov edx, esi
call fcn.140017780
call fcn.1400164f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400164f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400164f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400152b0
mov rbx, rax
jmp 0x1400166e1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400166fa
Function at 0x1800039d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800039f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180003a6c
mov rdi, r14
mov rcx, rbx
call fcn.180005230
test rax, rax
jle 0x180003a44
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180210e90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180003a5c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003a64
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180003a06
sub r14, rdi
jmp 0x180003b59
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003a83
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003a85
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003aba
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180210e90
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180003b56
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180003af5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180003b31
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18021e4ac
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x180003b6f
cmp rbp, rax
ja 0x180003b01
mov r8, rdi
test rdi, rdi
je 0x180003b56
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18021e4ac
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x180003b59
Function at 0x180003f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180003f7d
xor eax, eax
jmp 0x1800040c3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180003fb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180003fb7
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 0x1800040c3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800040b6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003ffa
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 0x180004009
movsx ecx, dil
jmp 0x18000405d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x180004077
sub eax, 1
je 0x180004077
cmp eax, 2
jne 0x1800040b6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.18021d2d0
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800040bb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800040a4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.18021ddc4
cmp rsi, rax
jne 0x1800040b6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1800040bb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18007b140
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180007a90
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov ebx, edx
mov dword [rsp], 0x4b435546
sar ebx, 2
xor r11d, r11d
mov dword [rsp + 4], 0x4341482d
mov r9, rcx
mov dword [rsp + 8], 0x2d52454b
mov dword [rsp + 0xc], 0x49534153
test ebx, ebx
je 0x180007b6e
nop word [rax + rax]
mov edx, dword [r9]
lea r8, [rsp + 0x10]
mov ecx, edx
movsxd r10, r11d
xor ecx, 0xfffe3175
not edx
mov eax, ecx
shr edx, 0x10
and eax, 0xff0000
dec ebx
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
xor ecx, ecx
or edx, eax
lea rax, [rsp + 0x10]
sub r10, rax
mov dword [rsp + 0x10], edx
nop word [rax + rax]
lea rax, [r10 + r8]
movzx edx, cl
shl dl, cl
lea r8, [r8 + 1]
and eax, 0xf
or dl, byte [rsp + rax]
or dl, cl
inc ecx
or dl, 0xa5
xor byte [r8 - 1], dl
cmp ecx, 4
jl 0x180007b30
mov eax, dword [rsp + 0x10]
inc r11d
xor eax, 0x1ce8a
mov dword [r9], eax
add r9, 4
test ebx, ebx
jne 0x180007ae0
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x20
pop rbx
ret
Function at 0x18000ab80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
movdqa xmm0, xmmword [0x1803174c0]
movdqu xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x38], 0x68
mov ecx, edi
nop
movzx eax, byte [rsp + 0x28]
xor byte [rsp + rcx + 0x29], al
inc rcx
cmp rcx, 0x10
jb 0x18000abd0
mov byte [rsp + 0x39], 0
mov r14, qword [rdx + 0x10]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
xor r8d, r8d
lea rdx, [0x180304043]
mov rcx, rbx
call fcn.1800052d0
mov dword [rsp + 0x20], 1
lea rdx, [r14 + r14]
mov rcx, rbx
call fcn.180009760
test r14, r14
je 0x18000aceb
nop dword [rax]
cmp qword [rsi + 0x18], 0x10
jb 0x18000ac40
mov rdx, qword [rsi]
movzx ecx, byte [rdi + rdx]
jmp 0x18000ac47
movzx ecx, byte [rsi + rdi]
mov rdx, rsi
sar cl, 4
movzx ebp, byte [rdx + rdi]
shl bpl, 4
movzx eax, cl
movzx r9d, byte [rsp + rax + 0x29]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000ac87
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18000ac7c
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000ac96
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180005c00
movzx eax, bpl
shr rax, 4
movzx r9d, byte [rsp + rax + 0x29]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000acd0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18000acc5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000acdf
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180005c00
inc rdi
cmp rdi, r14
jb 0x18000ac30
mov rcx, rsi
call fcn.180005250
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18007b140
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180013f00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fa0]
mov eax, 0x20a0
call fcn.18007c000
sub rsp, rax
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov qword [rbp - 0x40], rcx
mov byte [rsp + 0x50], 0x4d
mov al, 0x3e
mov cl, 0x39
mov dl, 0x28
mov r8b, 0x2c
mov r9b, 0x20
mov r10b, 0x63
movzx r11d, dl
mov bl, 0x35
movzx edi, dl
xor esi, esi
xor al, 0x4d
mov byte [rsp + 0x51], al
xor cl, 0x4d
mov byte [rsp + 0x52], cl
xor dl, 0x4d
mov byte [rsp + 0x53], dl
xor r8b, 0x4d
mov byte [rsp + 0x54], r8b
xor r9b, 0x4d
mov byte [rsp + 0x55], r9b
xor r10b, 0x4d
mov byte [rsp + 0x56], r10b
xor r11b, 0x4d
mov byte [rsp + 0x57], r11b
xor bl, 0x4d
mov byte [rsp + 0x58], bl
xor dil, 0x4d
mov byte [rsp + 0x59], dil
mov byte [rsp + 0x5a], sil
lea rcx, [rsp + 0x51]
call fcn.180010280
movdqa xmm0, xmmword [0x180317020]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp + 8], 0xa
xor r12d, r12d
mov ecx, r12d
movzx eax, byte [rbp - 8]
xor byte [rbp + rcx - 7], al
inc rcx
cmp rcx, 0x10
jb 0x180013fd1
mov byte [rbp + 9], sil
lea rcx, [rbp - 7]
call fcn.180010280
call fcn.1800783d4
mov rbx, rax
call fcn.1800783b8
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffa0a1eff
movabs r13, 0x7fffffffffffffff
cmp rax, rcx
jge 0x18001403f
add rax, 0x5f5e100
mov qword [rbp + 0x688], rax
jmp 0x180014046
mov qword [rbp + 0x688], r13
lea rcx, [rbp + 0x688]
call fcn.180017080
lea rcx, str._antivac_
jmp 0x180642f54