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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401230d8]
test ecx, ecx
je 0x1400f09a0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f09b9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400f09b9
add rdi, 0x10
jmp 0x1400f0a9a
lea rcx, [0x1401230c0]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400f098d
mov ecx, dword [0x1401230d8]
test ecx, ecx
je 0x1400f0a7b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400f0a98
mov rsi, rax
test rax, rax
jne 0x1400f0a4a
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x1400f0a0b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400f0ab4
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400f0ab4
mov rsi, rax
lea rax, [0x1401230c0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401230d8]
test ecx, ecx
je 0x1400f0aa4
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400f0a9a
test rcx, rcx
je 0x1400f0a9a
lock dec qword [rcx]
jne 0x1400f0a9a
call fcn.140105cd0
jmp 0x1400f0a9a
lea rcx, [0x1401230c0]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400f09d8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401230c0]
call fcn.1400ed5d0
mov ecx, eax
jmp 0x1400f0a42
ud2
Function at 0x1400f0f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140123070]
test ecx, ecx
je 0x1400f0f30
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f0f49
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400f0f49
add rdi, 0x10
jmp 0x1400f102a
lea rcx, [0x140123058]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400f0f1d
mov ecx, dword [0x140123070]
test ecx, ecx
je 0x1400f100b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400f1028
mov rsi, rax
test rax, rax
jne 0x1400f0fda
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x1400f0f9b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400f1044
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400f1044
mov rsi, rax
lea rax, [0x140123058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140123070]
test ecx, ecx
je 0x1400f1034
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400f102a
test rcx, rcx
je 0x1400f102a
lock dec qword [rcx]
jne 0x1400f102a
call fcn.1400e27e0
jmp 0x1400f102a
lea rcx, [0x140123058]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400f0f68
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140123058]
call fcn.1400ed5d0
mov ecx, eax
jmp 0x1400f0fd2
ud2
Function at 0x1400f1e20
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x1400f1e5d
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400f1f0d
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400f1f0d
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400f1f20]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400f1f00
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400f1edb
cmp qword [rbx + 0x10], 0x11
jb 0x1400f1eca
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x1400f3900
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400f3a60
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x1400f3a36
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x1400f39b1
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
mov r12, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x1400f3a36
mov r13, qword [rdi + r15]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.1400fb2d0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x1400f3980
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.1400f8b00
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1400f3980
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x1400f3a48
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1400f3a6e
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400f6520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x140123138]
test ecx, ecx
je 0x1400f6550
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f6569
cmp qword [rax + 8], 0
je 0x1400f6569
add rax, 0x10
jmp 0x1400f6647
lea rcx, [0x140123120]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400f6540
mov ecx, dword [0x140123138]
test ecx, ecx
je 0x1400f6628
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400f6645
mov rdi, rax
test rax, rax
jne 0x1400f65fa
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x1400f65bb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400f665e
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400f665e
mov rdi, rax
lea rax, [0x140123120]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140123138]
test ecx, ecx
je 0x1400f664e
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x1400f6614
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400f6616
mov rcx, qword [rsi + 8]
jmp 0x1400f6616
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
jmp 0x1400f6647
lea rcx, [0x140123120]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400f6588
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140123120]
call fcn.1400ed5d0
mov ecx, eax
jmp 0x1400f65f2
ud2
Function at 0x1400fca20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, rdx
mov rax, qword [r8 + 8]
mov rdx, qword [r8 + 0x10]
sub rax, rdx
jb 0x1400fcbe3
mov rdi, r8
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x40], r8
cmp r8, 0xffffffffffffffff
je 0x1400fcbe3
mov r8, qword [rdi]
mov qword [rsp + 0x30], rdx
add r8, rdx
mov qword [rsp + 0x38], r8
mov r12, qword [rcx + 0x10]
mov r14, qword [rcx + 0x20]
cmp rax, 0x7fffffff
mov r13d, 0x7fffffff
cmovb r13, rax
nop word cs:[rax + rax]
lea rcx, [rsp + 0x20]
mov rdx, r12
mov r8, rbx
xor r9d, r9d
call fcn.1401052c0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400fcc00
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400fcc47
movzx r15d, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x1400fcc12
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400fcc17
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14004d270
cmp al, 0xd
jne 0x1400fcb36
test r14, r14
je 0x1400fcb36
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lock inc qword [rdx]
jle 0x1400fcc5d
add rcx, 0x10
mov r8, qword [r14 + 0x10]
movzx r9d, byte [r14 + 0x18]
call fcn.14004d180
test rax, rax
cmovne rsi, rax
mov rcx, rsi
call fcn.14004d270
cmp al, 0xd
jne 0x1400fcc44
and ebp, 0x23
mov rax, qword [r12 + 0xd0]
xor rbp, 0x2f
mov rcx, r15
shl rcx, 0x10
nop dword [rax]
mov edx, eax
shr edx, 0x10
cmp r15b, dl
jne 0x1400fcb7d
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r12 + 0xd0], rdx
jne 0x1400fcb60
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400fca90
test rax, rax
je 0x1400fca90
mov rbp, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, rbp
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400fcbca
cmp qword [r15 + 0x10], 0x11
jb 0x1400fcbb9
mov rbp, qword [rbp - 8]
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapFree
dec rsi
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
jmp 0x1400fca90
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rbx
xor r9d, r9d
call fcn.1401052c0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400fcc07
mov eax, 1
jmp 0x1400fcc49
cmp al, 2
jne 0x1400fcc5d
mov rbp, qword [rsp + 0x20]
jmp 0x1400fcc47
movsxd rdx, eax
jmp 0x1400fcc19
xor edx, edx
mov r8, qword [rsp + 0x30]
lea rax, [rdx + r8]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jbe 0x1400fcc32
mov qword [rdi + 0x18], rax
mov rcx, rax
add rdx, r8
jb 0x1400fcc5d
cmp rax, rcx
ja 0x1400fcc5d
mov qword [rdi + 0x10], rax
xor ebp, ebp
jmp 0x1400fcc47
mov rbp, rsi
xor eax, eax
mov rdx, rbp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1400fcc70
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov rdi, r8
mov qword [rsp + 0x28], rcx
mov r14, qword [rdx + 0x18]
cmp r14, 0xffffffffffffffff
je 0x1400fce00
mov rax, qword [rsp + 0xb0]
mov r15, qword [rdx + 0x10]
mov r13, qword [rdx + 0x20]
cmp rax, 0x7fffffff
mov r12d, 0x7fffffff
cmovb r12, rax
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, rdi
mov r9b, 1
call fcn.1401052c0
movzx eax, byte [rsp + 0x39]
cmp al, 3
je 0x1400fce1d
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x1400fce34
movzx ebx, byte [rsp + 0x38]
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400fce46
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14004d270
cmp al, 0xd
jne 0x1400fcd59
test r13, r13
je 0x1400fcd59
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1400fce7b
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
call fcn.14004d180
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.14004d270
cmp al, 0xd
jne 0x1400fce5a
and esi, 0x23
mov rax, qword [r15 + 0xd0]
xor rsi, 0x2f
mov rcx, rbx
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x1400fcd9b
mov edx, esi
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0xd0], rdx
jne 0x1400fcd80
mov eax, ebp
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400fccc0
test rax, rax
je 0x1400fccc0
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp + 7]
mov rcx, rsi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400fcde7
cmp qword [rbx + 0x10], 0x11
jb 0x1400fcdd6
mov rsi, qword [rsi - 8]
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
dec rbp
mov rcx, qword [0x1401a4160]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapFree
jmp 0x1400fccc0
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov r9b, 1
call fcn.1401052c0
movzx eax, byte [rsp + 0x39]
cmp al, 3
jne 0x1400fce2b
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400fce6a
cmp al, 2
jne 0x1400fce7b
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1400fce6a
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400fce6a
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rbp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x140102170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140123190]
test ecx, ecx
je 0x14010219f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1401021b8
mov rsi, rax
cmp qword [rax + 8], 0
je 0x1401021b8
add rsi, 8
jmp 0x1401022e7
lea rcx, [0x140123178]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14010218c
mov ecx, dword [0x140123190]
test ecx, ecx
je 0x1401022c8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1401022e5
mov rsi, rax
test rax, rax
jne 0x14010224d
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x14010220a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140102303
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140102303
mov rsi, rax
lea rax, [0x140123178]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140123190]
test ecx, ecx
je 0x1401022f0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x140102278
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140102303
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x30
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140102303
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 0x1401022e7
lock dec qword [rcx]
jne 0x1401022e7
call fcn.140047ea0
jmp 0x1401022e7
lea rcx, [0x140123178]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1401021d7
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140123178]
call fcn.1400ed5d0
mov ecx, eax
jmp 0x140102245
ud2
Function at 0x140102310
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 [0x140123170]
test ecx, ecx
je 0x1401024e3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140102345
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140102518
mov ecx, dword [0x140123170]
test ecx, ecx
je 0x14010251e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14010253b
mov rsi, rax
test rax, rax
jne 0x1401023da
movzx eax, byte [0x1401a4170]
mov rcx, qword [0x1401a4160]
test rcx, rcx
jne 0x140102397
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14010255d
mov rcx, rax
mov qword [0x1401a4160], rax
mov r8d, 0x60
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14010255d
mov rsi, rax
lea rax, [0x140123158]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140123170]
test ecx, ecx
je 0x14010254a
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rsi + 8]
test rdi, rdi
je 0x1401023ff
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x140173cc8]
cmovne rcx, rdx
jmp 0x140102406
lea rcx, [0x140173cc8]
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 0x140102518
mov rax, qword [rsp + 0x80]
cmp rax, 2
je 0x140102518
lea rcx, [rsp + 0x88]
test rax, rax
je 0x140102505
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x140102518
call fcn.140105ef0
jmp 0x140102518
lea rcx, [0x140123158]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140102337
jmp 0x140102345
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x140102518
call fcn.1401064e0
add rsi, 0x10
jmp 0x14010253d
lea rcx, [0x140123158]
call fcn.1400ed5d0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140102364
xor esi, esi
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x140123158]
call fcn.1400ed5d0
mov ecx, eax
jmp 0x1401023d2
ud2
Function at 0x140121c30
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.1401229f0
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.1401229f0
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 0x140121ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401a4204]
mov rbx, rcx
test esi, esi
jle 0x140121dd0
mov rax, qword [0x1401a4208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140121ceb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140121d75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140121cd0
mov rcx, rbx
call fcn.140122710
mov rdi, rax
test rax, rax
je 0x140121df2
mov rax, qword [0x1401a4208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140122850
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401a4208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140121dd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140121d6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140121d80
add dword [0x1401a4204], 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 [0x1401a4208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140121d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140121c30
nop dword [rax]
xor esi, esi
jmp 0x140121cf8
mov rax, qword [0x1401a4208]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140121c30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140121c30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140122380
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401a4260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401a4240]
test rbx, rbx
je 0x1401223dc
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 0x1401223d3
test eax, eax
jne 0x1401223d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401223b8
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 0x140122710
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140199770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140122730
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140122738
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140122730
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14012278d
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 0x140122784
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140122730
add rax, 0x28
cmp rax, r9
jne 0x140122770
xor eax, eax
ret

Function at 0x140122790
Capabilities:
Parse pe header

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

Function at 0x140122850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140199770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14012286f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140122878
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret