joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x1400323c4
test al, al
jne 0x1400323a9
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x1400323a9
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x1400323a0
cmp sil, 6
je 0x1400323a0
mov r11d, 2
cmp rax, 2
jb 0x1400325ad
cmp r11, rax
jne 0x1400324f7
xor eax, eax
xor r8d, r8d
xor eax, eax
xor r10d, r10d
add rax, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, rax
sete al
movzx r10d, byte [r10 + r11]

Function at 0x14003d6a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
movaps xmmword [rsp + 0x320], xmm7
movaps xmmword [rsp + 0x310], xmm6
mov qword [rsp + 0x288], r9
mov rax, r8
mov qword [rsp + 0x280], rdx
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 8
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 8
mov qword [rsp + 0x58], 0
movzx ebx, byte [r8 + 0xec]
movups xmm7, xmmword [r8 + 0xb0]
lea rcx, [rsp + 0x120]
mov r8d, 0xf8
mov rdx, rax
call sub.msvcrt.dll_memcpy
xorps xmm6, xmm6
movups xmmword [rsp + 0x218], xmm6
mov qword [rsp + 0x228], 1
mov qword [rsp + 0x230], 1
movups xmmword [rsp + 0x238], xmm6
movups xmmword [rsp + 0x241], xmm6
mov byte [rsp + 0x251], bl
mov dword [rsp + 0x252], 0
movups xmmword [rsp + 0x258], xmm7
mov eax, 8
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x2a0], rax
xor r12d, r12d
xor eax, eax

Function at 0x140042850
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140011460
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400428dd
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14004290f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140042922
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14004293a
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140010f70
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14004293a
mov edx, 1
mov rcx, rdi
call fcn.140010f70
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140044450
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140044486
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x1400553f0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_sys_pal_windows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140018560
ud2
Function at 0x140046260
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x14004628b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x1401aa0d0]
cmp rax, 3
jne 0x140046407
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140046300
cmp word [rbx], 0
je 0x140046376
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x14004638b
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14004631a
mov r14d, eax
cmp eax, 0x2726
jne 0x1400463f6
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400463ee
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400462d8
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x1400463f6
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x1400463c9
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140046280
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x140046280
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x140046279
call fcn.140043970
jmp 0x14004629c
Function at 0x140052ec0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400690e8]
test ecx, ecx
je 0x140052fb6
dec ecx
call fcn.1400623ac
cmp rax, 2
jb 0x140052ef0
cmp qword [rax + 8], 0
je 0x140052ef0
add rax, 0x10
jmp 0x140052fb0
mov ecx, dword [0x1400690e8]
test ecx, ecx
je 0x140052fc9
dec ecx
call fcn.1400623ac
cmp rax, 1
je 0x140052f90
mov rsi, rax
test rax, rax
jne 0x140052f60
movzx eax, byte [0x1401aa178]
mov edx, 0x20
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x140052fef
mov rsi, rax
lea rax, [0x1400690d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400690e8]
test ecx, ecx
je 0x140052fdc
dec ecx
mov rdx, rsi
call fcn.1400623b4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140052f94
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140052f9c
xor eax, eax
jmp 0x140052fb0
call fcn.140044450
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400690d0]
call fcn.140055ea0
mov ecx, eax
jmp 0x140052ed5
lea rcx, [0x1400690d0]
call fcn.140055ea0
mov ecx, eax
jmp 0x140052f00
lea rcx, [0x1400690d0]
call fcn.140055ea0
mov ecx, eax
jmp 0x140052f58
mov ecx, 8
mov edx, 0x20
call fcn.140012a40
int3
Function at 0x1400541d0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call fcn.1400544d0
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jne 0x14005421f
mov rcx, qword [rsp + 0xa0]
call fcn.140044c70
mov qword [rsi], rdi
jmp 0x1400543d5
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x1400542b0
jmp 0x14005428f
jae 0x14005435b
cmp r8, 0x201
jae 0x1400542b0
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x1400542f7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400542d7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1400518e0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140054322
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140054409
mov r8d, r15d
cmp r12, r8
jne 0x140054280
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140054433
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14005428f
jmp 0x1400542b0
cmp rdi, r8
jb 0x14005444d
lea rcx, [rsp + 0x78]
mov rdx, rbp
call fcn.1400439d0
movabs r14, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x1400543a9
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140010f70
cmp rsi, r14
jne 0x1400543ea
mov rax, qword [rsp + 0x38]
mov qword [rax], r14
mov rcx, rdi
call fcn.140044c70
cmp qword [rsp + 0x40], 0
je 0x1400543d5
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140010f70
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov qword [rax + 8], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x40], 0
jne 0x1400543c6
jmp 0x1400543d5
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
movabs r14, 0x8000000000000000
mov rsi, r14
test rbx, rbx
jne 0x14005439a
jmp 0x1400543a9
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140018900
jmp 0x140054462
lea rax, str.library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14001d160
ud2
Function at 0x140055c30
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 [0x1401aa178]
mov edx, 0x10
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x140055ce5
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140055d40]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140055cd8
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x140055cb7
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140010f70
mov edx, 8
mov rcx, rsi
call fcn.140010f70
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
mov ecx, 8
mov edx, 0x10
call fcn.140012a40
ud2

Function at 0x140055ea0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140055f25
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140055f66
cmp dword [rsp + 0x2c], 0
je 0x140055f4a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140055f8c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401aa0e8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401aa0e8], rsi
jne 0x140055f00
mov byte [0x1401aa0e0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140055f5c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140055fd6
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140055f4f
mov edi, dword [rsp + 0x28]
jmp 0x140055f5c
mov edi, dword [rsi + 0x18]
jmp 0x140055f5a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x14019d180]
lea r9, str.library_std_src_sys_pal_windows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140034ef0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, [0x14019d120]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_repos_rust1.77.0_library_std_src_thread_local.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_sys_pal_windows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140018560
lea rax, [0x14019d120]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_repos_rust1.77.0_library_std_src_thread_local.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140034e60
int3
Function at 0x1400560c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140069148]
test ecx, ecx
je 0x14005617a
dec ecx
call fcn.1400623ac
cmp rax, 2
jb 0x1400560f0
cmp qword [rax + 8], 0
je 0x1400560f0
add rax, 0x10
jmp 0x140056174
mov ecx, dword [0x140069148]
test ecx, ecx
je 0x14005618d
dec ecx
call fcn.1400623ac
cmp rax, 1
je 0x140056172
mov rsi, rax
test rax, rax
jne 0x140056158
movzx eax, byte [0x1401aa178]
mov edx, 0x20
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x1400561b0
mov rsi, rax
lea rax, [0x140069130]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140069148]
test ecx, ecx
je 0x1400561a0
dec ecx
mov rdx, rsi
call fcn.1400623b4
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140056174
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140069130]
call fcn.140055ea0
mov ecx, eax
jmp 0x1400560d5
lea rcx, [0x140069130]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056100
lea rcx, [0x140069130]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056150
mov ecx, 8
mov edx, 0x20
call fcn.140012a40
int3

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140069168]
test ecx, ecx
je 0x140056559
dec ecx
call fcn.1400623ac
cmp rax, 2
jb 0x1400564b4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400564b4
add rdi, 0x10
jmp 0x14005654f
mov ecx, dword [0x140069168]
test ecx, ecx
je 0x14005656c
dec ecx
call fcn.1400623ac
cmp rax, 1
je 0x14005654d
mov rsi, rax
test rax, rax
jne 0x14005651c
movzx eax, byte [0x1401aa178]
mov edx, 0x18
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x14005658f
mov rsi, rax
lea rax, [0x140069150]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140069168]
test ecx, ecx
je 0x14005657f
dec ecx
mov rdx, rsi
call fcn.1400623b4
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 0x14005654f
test rcx, rcx
je 0x14005654f
lock dec qword [rcx]
jne 0x14005654f
call fcn.14003a0b0
jmp 0x14005654f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140069150]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056496
lea rcx, [0x140069150]
call fcn.140055ea0
mov ecx, eax
jmp 0x1400564c4
lea rcx, [0x140069150]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056514
mov ecx, 8
mov edx, 0x18
call fcn.140012a40
int3
Function at 0x140056680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140069120]
test ecx, ecx
je 0x140056759
dec ecx
call fcn.1400623ac
cmp rax, 2
jb 0x1400566b4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400566b4
add rdi, 0x10
jmp 0x14005674f
mov ecx, dword [0x140069120]
test ecx, ecx
je 0x14005676c
dec ecx
call fcn.1400623ac
cmp rax, 1
je 0x14005674d
mov rsi, rax
test rax, rax
jne 0x14005671c
movzx eax, byte [0x1401aa178]
mov edx, 0x18
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x14005678f
mov rsi, rax
lea rax, [0x140069108]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140069120]
test ecx, ecx
je 0x14005677f
dec ecx
mov rdx, rsi
call fcn.1400623b4
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 0x14005674f
test rcx, rcx
je 0x14005674f
lock dec qword [rcx]
jne 0x14005674f
call fcn.140039f40
jmp 0x14005674f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140069108]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056696
lea rcx, [0x140069108]
call fcn.140055ea0
mov ecx, eax
jmp 0x1400566c4
lea rcx, [0x140069108]
call fcn.140055ea0
mov ecx, eax
jmp 0x140056714
mov ecx, 8
mov edx, 0x18
call fcn.140012a40
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400690c8]
test ecx, ecx
je 0x14005820c
dec ecx
call fcn.1400623ac
cmp rax, 2
jb 0x140058199
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400581fb
mov ecx, dword [0x1400690c8]
test ecx, ecx
je 0x14005821f
dec ecx
call fcn.1400623ac
cmp rax, 1
je 0x140058201
mov rsi, rax
test rax, rax
jne 0x1400581f5
movzx eax, byte [0x1401aa178]
mov edx, 0x10
xor ecx, ecx
call fcn.140042800
test rax, rax
je 0x140058242
mov rsi, rax
lea rax, [0x1400690b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400690c8]
test ecx, ecx
je 0x140058232
dec ecx
mov rdx, rsi
call fcn.1400623b4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140058203
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400690b0]
call fcn.140055ea0
mov ecx, eax
jmp 0x140058185
lea rcx, [0x1400690b0]
call fcn.140055ea0
mov ecx, eax
jmp 0x1400581a5
lea rcx, [0x1400690b0]
call fcn.140055ea0
mov ecx, eax
jmp 0x1400581ed
mov ecx, 8
mov edx, 0x10
call fcn.140012a40
int3

Function at 0x14005860e
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14005862f
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400623b4
mov rcx, rax
call fcn.140055ea0
mov ecx, eax
jmp 0x140058622

Function at 0x14005a49f
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14005a4b8
dec ecx
add rsp, 0x28
jmp fcn.1400623ac
mov rcx, rax
call fcn.140055ea0
mov ecx, eax
jmp 0x14005a4af
Function at 0x14005f103
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14005f10a
test al, 1
je 0x14005f129
test al, 2
jne 0x14005f141
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401a04d8]
mov edx, 0x23
call fcn.140018900
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401a0518]
mov edx, 0x25
call fcn.140018900
int3

Function at 0x140063960
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140064780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140064780
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400639d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401aa204]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140063b80
mov rax, qword [0x1401aa208]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140063a1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140063aa7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140063a00
mov rcx, r12
call fcn.140064480
mov rbp, rax
test rax, rax
je 0x140063bdd
mov rax, qword [0x1401aa208]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400645b0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401aa208]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140063bc2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140063aa0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140063b30
add dword [0x1401aa204], 1
cmp ebx, 8
jae 0x140063ad8
test bl, 4
jne 0x140063b90
test ebx, ebx
je 0x140063ac9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140063bb0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140063ac9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140063b0a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401aa208]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140063aa0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140063960
xor edi, edi
jmp 0x140063a27
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140063ac9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140063ac9
mov rax, qword [0x1401aa208]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140063960
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140063960
nop
nop dword [rax]
Function at 0x1400640f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401aa260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401aa240]
test rbx, rbx
je 0x140064144
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14006413b
test r12, r12
je 0x14006413b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140064120
lea rcx, [0x1401aa260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140064480
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1401a1740]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400644f9
mov rcx, r10
call fcn.140064350
test eax, eax
je 0x1400644f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400644f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400644ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400644f9
add r8, 0x28
cmp r8, r9
jne 0x1400644d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret