joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400430c0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x58
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140043105
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14004310c
mov ecx, 0xdf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1400431ac
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x80], rbp
xor r8d, r8d
mov qword [rsp + 0x88], rdi
mov rcx, rsi
mov qword [rsp + 0x50], r14
cmp rbx, rdx
jle 0x1400431c0
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400431da
sub rbx, qword [rsp + 0x38]
je 0x140043195
mov ebp, 0x200
xor r14d, r14d
nop word [rax + rax]
cmp rbx, rbp
mov qword [rsp + 0x20], r14
mov rdi, rbx
lea r9, [rsp + 0x30]
cmova rdi, rbp
lea rdx, [0x1400ccf90]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jne 0x1400431da
sub rbx, rdi
jne 0x140043160
mov al, 1
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x58
pop rsi
pop rbx
ret
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400431da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140043195
xor al, al
jmp 0x140043197
Function at 0x1400435b0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
xor r12d, r12d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14000e930
nop
lea rcx, [rbp - 0x40]
call fcn.14004e350
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbp]
call fcn.140031990
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rbx, [0x14007ed20]
lea r15, [0x14007ee20]
lea esi, [r12 + 1]
test eax, eax
jne 0x14004369e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rcx, rbx
nop dword [rax]
cmp eax, dword [rcx]
je 0x140043671
add rcx, 8
cmp rcx, r15
jne 0x140043660
mov eax, esi
jmp 0x140043674
mov eax, dword [rcx + 4]
mov dword [rsp + 0x24], eax
cmp eax, 9
je 0x14004369e
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call fcn.14004e350
mov r8, rsi
lea rdx, [0x140087e3c]
mov rcx, rdi
call fcn.14000ece0
cmp qword [0x1400ccdb0], 0
jne 0x1400436d1
mov eax, dword [0x1400ccddc]
test eax, eax
jne 0x1400436d1
call fcn.14004e9b0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, qword [0x1400ccdb0]
mov rcx, rdi
call fcn.14000edf0
cmp qword [rdi + 0x18], 0x10
jb 0x1400436f3
mov r14, qword [rdi]
jmp 0x1400436f6
mov r14, rdi
lea rcx, [rbp + 0x50]
call fcn.140031990
lea rdx, [rbp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14004375a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
nop word [rax + rax]
cmp eax, dword [rbx]
je 0x14004372f
add rbx, 8
cmp rbx, r15
jne 0x140043720
jmp 0x140043732
mov esi, dword [rbx + 4]
mov dword [rsp + 0x2c], esi
cmp esi, 9
je 0x14004375a
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x80]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14000e930
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14000eb30
nop
mov r8, qword [rbp - 0x30]
inc r8
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14000f660
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.140043320
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.14000e930
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.14000e930
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140043f60
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x140043fd8
or rax, rdi
jmp 0x140044020
cmp esi, 0x17
jne 0x140044002
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.140066a10
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400444c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140044509
mov dword [rsp + 0x20], 0x2719
call fcn.140066a10
mov qword [rsp + 0x28], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x14004456e
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [r14]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov dword [rsp + 0x30], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rcx, dword [rsp + 0x30]
mov esi, eax
mov qword [r14], rcx
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x14004456c
mov dword [rsp + 0x20], esi
call fcn.140066a10
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140044690
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400446ba
cmp byte [rdx], 0
jne 0x1400446bc
xor edi, edi
test rbx, rbx
je 0x1400446c7
cmp byte [r8], 0
jne 0x1400446c9
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140044590
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax]
mov rax, rsi
movups xmmword [rsi], xmm0
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400447f0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14004483d
mov dword [rsp + 0x20], 0x2719
call fcn.140066a10
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x50
pop rsi
ret
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x30]
mov qword [rsp + 0x48], rbp
mov edx, 0x4004667f
xor ebp, ebp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], ebp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
test edi, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jne 0x1400448a7
mov dword [rsp + 0x20], ebp
call fcn.140066a10
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0x19
jne 0x1400448c6
mov dword [rsp + 0x20], 0x2736
call fcn.140066a10
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
cmp dword [rsi], ebp
jne 0x1400448ce
mov ebp, dword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x50
pop rsi
ret
Function at 0x140044d00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r8d, esi
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x50], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x140044d8f
mov dword [rsp + 0x40], 0x2746
jmp 0x140044d9f
cmp ecx, 0x4d2
jne 0x140044db2
mov dword [rsp + 0x40], 0x274d
call fcn.140066a10
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x140044dbb
or eax, 0xffffffff
jmp 0x140044dd6
mov dword [rsp + 0x40], ebp
call fcn.140066a10
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140044ff0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140045038
mov dword [rbp - 0x10], 0x2719
call fcn.140066a10
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
or eax, esi
jmp 0x140045115
cmp r8d, 0xa5100000
jne 0x1400450a5
cmp ebx, 2
jne 0x140045069
mov dword [rbp - 0x10], 0x2726
call fcn.140066a10
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
or eax, 0xffffffff
jmp 0x140045115
cmp ebx, 1
jne 0x1400450b9
cmp qword [rbp + 0x38], 4
jne 0x140045046
mov rax, qword [rbp + 0x30]
cmp dword [rax], 0
je 0x140045083
or byte [rdx], 4
jmp 0x140045086
and byte [rdx], 0xfb
mov dword [rbp - 0x10], 0
call fcn.140066a10
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
xor eax, eax
jmp 0x140045115
cmp r8d, 0xffff
jne 0x1400450b9
cmp ebx, 0x80
jne 0x1400450b9
or byte [rdx], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [rbp + 0x38]
mov r8d, ebx
mov r9, qword [rbp + 0x30]
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 8], rbx
mov rbx, qword [rbp + 0x40]
mov dword [rbp - 0x10], eax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x140045113
mov dword [rbp - 0x10], edi
call fcn.140066a10
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x140045130
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x14004525e
test r8b, r8b
je 0x1400451b0
test byte [rdx], 8
je 0x1400451b0
mov dword [rsp + 0x40], r15d
call fcn.140066a10
lea rax, [rsp + 0x48]
mov r9d, 0x80
mov qword [rsp + 0x30], rax
mov r8d, 0xffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 4
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rbp
call fcn.140044ff0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
test esi, esi
je 0x14004525e
call fcn.140066a10
cmp qword [rdi + 8], rax
jne 0x1400451f9
cmp dword [rdi], 0x2733
je 0x14004520c
call fcn.140066a10
cmp qword [rdi + 8], rax
jne 0x14004525a
cmp dword [rdi], 0x4d5
jne 0x14004525a
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140066a10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x140045275
mov dword [rsp + 0x48], r15d
call fcn.140066a10
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062f80
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140045610
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x58], rbp
xor r8d, r8d
mov rbp, rcx
mov qword [rsp + 0x50], rsi
mov rsi, rdx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x140045695
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.140066a10
lea rdx, str.thread.entry_event
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400307d0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400456f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.140066a10
lea rdx, str.thread.exit_event
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400307d0
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140045570]
mov r9, rsi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x40], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14004577a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x140045745
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140045754
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.140066a10
lea rdx, str.thread
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400307d0
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x80]
test rdi, rdi
je 0x1400457a6
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x60
pop rdi
ret
Function at 0x140045fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14004603c
call fcn.140046390
mov dword [rsp + 0x20], ebx
call fcn.140066a10
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x1400460cd
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1400ccdf0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1400ccdf0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.140045d20
test rax, rax
je 0x1400460a9
nop word [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140046099
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.140045d20
test rax, rax
jne 0x140046090
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1400ccdf0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400460ca
call fcn.140063354
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140046c40
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400ccdd8], eax
test eax, eax
je 0x140046cb7
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140005730]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140062f80
add rsp, 0x40
pop rbx
ret
Function at 0x14004e1d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rcx + 0x10], 0
cmp qword [rcx + 0x18], 0x10
jb 0x14004e20a
mov rax, qword [rcx]
jmp 0x14004e20d
mov rax, rcx
mov byte [rax], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004e331
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004e328
mov edx, dword [rsp + 0x48]
mov rax, qword [rdi + 0x10]
cmp rdx, rax
ja 0x14004e2a2
mov qword [rdi + 0x10], rdx
cmp qword [rdi + 0x18], 0x10
jb 0x14004e299
mov rax, qword [rdi]
jmp 0x14004e29c
mov rax, rdi
mov byte [rax + rdx], 0
jmp 0x14004e2b0
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.14000ec20
cmp qword [rdi + 0x18], 0x10
jb 0x14004e2bc
mov rax, qword [rdi]
jmp 0x14004e2bf
mov rax, rdi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004e328
mov r8, qword [rdi + 0x18]
cmp r8, 0x10
jb 0x14004e2fb
mov rcx, qword [rdi]
jmp 0x14004e2fe
mov rcx, rdi
mov rdx, qword [rdi + 0x10]
dec rdx
add rdx, rcx
cmp r8, 0x10
jb 0x14004e313
mov rax, qword [rdi]
jmp 0x14004e316
mov rax, rdi
sub rdx, rax
mov r8d, 1
mov rcx, rdi
call fcn.14000f660
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140062f80
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14004eb30
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r12, rcx
xor ebp, ebp
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0x48], ebp
lea rdx, str.System
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov r14, rax
test rax, rax
je 0x14004ecd2
mov qword [rsp + 0x50], rax
mov r15d, 0x10000
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14004ecba
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 9]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x14004ec04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004ec5a
mov eax, dword [rsp + 0x48]
mov r15d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14004ec4e
jmp 0x14004ebb0
mov rdi, rbx
mov esi, dword [rsp + 0x4c]
add rsi, rbx
cmp rbx, rsi
jae 0x14004ebb0
nop dword [rax]
nop word [rax + rax]
lea rdx, [rdi + 0x38]
lea rcx, str.EventLog
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14004ec3f
movzx eax, word [rdi + 0x14]
cmp eax, 0x1775
je 0x14004ec76
mov eax, dword [rdi]
add rdi, rax
cmp rdi, rsi
jb 0x14004ec20
jmp 0x14004ebb0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rbp
test rbx, rbx
je 0x14004ec69
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor al, al
jmp 0x14004ecd4
mov r8d, dword [rdi + 0xc]
lea rdx, [0x14008c28c]
lea rcx, [rsp + 0x60]
call fcn.14004ead0
cmp byte [rsp + 0x60], 0
je 0x14004eca9
lea rax, [rsp + 0x60]
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rax + rbp], 0
jne 0x14004eca0
mov r8, rbp
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14000ea50
nop
test rbx, rbx
je 0x14004ecc9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret