joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d9020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401f51d0]
test ecx, ecx
je 0x1401d904f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401d9068
mov rsi, rax
cmp qword [rax + 8], 0
je 0x1401d9068
add rsi, 8
jmp 0x1401d9197
lea rcx, [0x1401f51b8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401d903c
mov ecx, dword [0x1401f51d0]
test ecx, ecx
je 0x1401d9178
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401d9195
mov rsi, rax
test rax, rax
jne 0x1401d90fd
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401d90ba
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401d91b3
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401d91b3
mov rsi, rax
lea rax, [0x1401f51b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f51d0]
test ecx, ecx
je 0x1401d91a0
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401d9128
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401d91b3
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x30
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401d91b3
add rsi, 8
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov byte [rax + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x1401d9197
lock dec qword [rcx]
jne 0x1401d9197
call fcn.140077a90
jmp 0x1401d9197
lea rcx, [0x1401f51b8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401d9087
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401f51b8]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401d90f5
ud2
Function at 0x1401d91c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rdi, rcx
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x1401d9393
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401d91f5
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x1401d93c8
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x1401d93ce
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401d93eb
mov rsi, rax
test rax, rax
jne 0x1401d928a
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401d9247
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401d940d
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401d940d
mov rsi, rax
lea rax, [0x1401f5198]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x1401d93fa
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
lea rax, [rsi + 8]
test rdi, rdi
je 0x1401d92af
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x1402a2e70]
cmovne rcx, rdx
jmp 0x1401d92b6
lea rcx, [0x1402a2e70]
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rsp + 0xc0], rcx
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0xa0], xmm3
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsi + 8], 1
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x70], 0
je 0x1401d93c8
mov rax, qword [rsp + 0x80]
cmp rax, 2
je 0x1401d93c8
lea rcx, [rsp + 0x88]
test rax, rax
je 0x1401d93b5
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x1401d93c8
call fcn.1401db320
jmp 0x1401d93c8
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401d91e7
jmp 0x1401d91f5
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x1401d93c8
call fcn.1401db8d0
add rsi, 0x10
jmp 0x1401d93ed
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401d9214
xor esi, esi
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401d9282
ud2
Function at 0x1401f38d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1401f4690
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401f4690
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401f3940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402d91f4]
mov rbx, rcx
test esi, esi
jle 0x1401f3a70
mov rax, qword [0x1402d91f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401f398b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401f3a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401f3970
mov rcx, rbx
call fcn.1401f43b0
mov rdi, rax
test rax, rax
je 0x1401f3a92
mov rax, qword [0x1402d91f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401f44f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402d91f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401f3a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401f3a0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401f3a20
add dword [0x1402d91f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402d91f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401f3a0e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401f38d0
nop dword [rax]
xor esi, esi
jmp 0x1401f3998
mov rax, qword [0x1402d91f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401f38d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401f38d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401f4020
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402d9260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402d9240]
test rbx, rbx
je 0x1401f407c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1401f4073
test eax, eax
jne 0x1401f4073
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401f4058
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1401f43b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402c8830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401f43d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401f43d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401f43d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401f442d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401f4424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401f43d0
add rax, 0x28
cmp rax, r9
jne 0x1401f4410
xor eax, eax
ret

Function at 0x1401f4430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402c8830]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401f444f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401f4458
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401f444f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401f44f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402c8830]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401f450f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401f4518
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14004cb60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004cb6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004cb7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004cb65
lea eax, [rcx + 1]
jmp 0x14004cb8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004cb9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004cb84
sub eax, 3
jb 0x14004cbbe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004cc0d
sar eax, 1
movsxd rbp, eax
jb 0x14004cbf4
jmp 0x14004cbcc
add ebx, ebx
jne 0x14004cbca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004cbf4
inc ecx
add ebx, ebx
jne 0x14004cbda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004cbf4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004cbed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004cbdc
add ecx, 2
jmp 0x14004cbf9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004cb22
jmp 0x14004cb6d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004cc5d
cmp rsi, rcx
jae 0x14004cc65
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004cc44
cmp al, 0x8f
ja 0x14004cc44
cmp byte [rsi - 2], 0xf
je 0x14004cc4a
sub al, 0xe8
cmp al, 1
ja 0x14004cc2e
cmp rsi, rcx
jae 0x14004cc65
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004cc34
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004cc65
lodsb al, byte [rsi]
jmp 0x14004cc44
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x49000]
mov eax, dword [rdi]
or eax, eax
je 0x14004ccce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x50920]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004cc72
jns 0x14004cca7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004ccb1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004ccc8
mov qword [rbx], rax
add rbx, 8
jmp 0x14004cc92
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004cd08
cmp al, 0xef
ja 0x14004ccfa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004ccda
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004cce9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004cd5c
sub rsp, 0xffffffffffffff80
jmp 0x140015be4
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rcx
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1411ea058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411ea1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411ea089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ea06f
add dl, dl
jne 0x1411ea096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ea0f6
xor eax, eax
add dl, dl
jne 0x1411ea0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ea1ad
add dl, dl
jne 0x1411ea0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ea0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ea0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ea0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411ea0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411ea07e
mov eax, 1
add dl, dl
jne 0x1411ea106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ea113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ea0fb
sub eax, ebx
mov ebx, 1
jne 0x1411ea14c
mov ecx, 1
add dl, dl
jne 0x1411ea12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ea13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ea123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ea07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411ea168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ea175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ea15d
cmp eax, 0x7d00
jae 0x1411ea19b
cmp eax, 0x500
jb 0x1411ea196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ea07e
cmp eax, 0x7f
ja 0x1411ea19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ea07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411ea1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411ea07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400b8200
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400b8321
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400b8361
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400b8357
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400b835b
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400b8369
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400b82f4
mov dl, byte [r8 + 0x19]
jmp 0x1400b8350
xor r10d, r10d
jmp 0x1400b825f
cmp byte [r8 + 0x1a], 0
je 0x1400b8354
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400b8354
cmp ecx, 0x666f736f
jne 0x1400b8354
cmp edx, 0x76482074
jne 0x1400b8354
mov byte [r8 + 0x19], 1
jmp 0x1400b8354
Function at 0x1400b93c0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400b960c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140288e50], rax
jne 0x1400b960f
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1402516a0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1402516f0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, reloc.WS2_32.dll_recv
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b9592
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400b959f
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x1400b958b
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x1400b9612
mov edx, ecx
and edx, 0x1fc000
je 0x1400b9612
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1401369a0
mov ecx, dword [0x14028e3a8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14028c168]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140190b30
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x1400b94ec
mov rcx, rdi
call fcn.140136590
jmp 0x1400b9499
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1401346e0
test rax, rax
je 0x1400b9605
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x1400b9506
xor ebx, ebx
jmp 0x1400b9530
int3
int3
movaps xmm0, xmmword [0x14024afc0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1401cc4d0
mov rcx, rsi
call fcn.1400b2720
mov rcx, r14
call fcn.1401cc530
int3
Function at 0x1400bb9e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14028fe88], 0
jne 0x1400bba1d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400bba10
mov dword [rdi], eax
mov dword [0x14028fe90], eax
mov qword [0x14028fe88], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400c11a0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x1402530b0]
lea rax, [rsp + 0x50]
movaps xmmword [rax], xmm0
movabs rdx, 0x100000000
mov qword [rax + 0x10], rdx
movaps xmm0, xmmword [0x14024afc0]
lea r8, [rsp + 0x20]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8], 0
xorps xmm0, xmm0
movups xmmword [r8 + 8], xmm0
mov dword [r8 + 0x18], 3
mov qword [r8 + 0x20], rax
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140190b30
mov eax, ebx
add rsp, 0x70
pop rbx
ret

Function at 0x1400c3e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x1400c3ebb
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x1402a8008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x1400c3e9d
call fcn.14018f674
jmp 0x1400c3e9d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.140142e80
lea rdx, [0x140293f08]
mov rcx, rbx
call fcn.140143a60
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400c3efb
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1402a8008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14024afc0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x1402a8008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400c3f3e
mov edx, eax
and edx, 0x7f
jmp 0x1400c3f42
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x1400c3ead
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x1400c3f9e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1402a8008]
cmp eax, 0xffffffff
jne 0x1400c3f74
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x1400c3ead
test rdi, rdi
je 0x1400c3f72
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400c3f5a
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x1400c3f74