joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010e1d0
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rdx, qword [0x14014c378]
mov rcx, rax
call fcn.140139750
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x14010e274
mov rdx, qword [0x140dce5d8]
test rdx, rdx
jne 0x14010e225
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
mov qword [0x140dce5d8], rdx
mov rcx, rdi
call fcn.140139750
mov r14, rax
xor ecx, ecx
mov rdx, rax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14010e2b1
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x140dce5c8]
test rbx, rbx
je 0x14010e274
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x14010e28d
add rdi, rax
mov qword [rsi + 8], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
mov edx, 0x19b8
xor r9d, r9d
call fcn.1400e1b70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x20], 0
lea rdx, str.Allocate
lea r8, str.allocate
mov rcx, r14
mov r9d, eax
call fcn.14010e420
int3

Function at 0x14010e4a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
nop
cmp byte [rsi + rdi], 0
lea rdi, [rdi + 1]
jne 0x14010e4b0
mov rbx, qword [0x14014c380]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x14010e54e
lea rcx, [0x14014c380]
call fcn.140117e50
mov rcx, qword [0x14014c388]
cmp rcx, 0xffffffffffffffff
je 0x14010e57c
lea rax, [rcx - 1]
cmp rax, 1
ja 0x14010e510
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x14010e537
add edi, 0xffffffff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010e540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rbx], 0
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor ebp, ebp
mov r14, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14010e55c
add ebp, 1
cmp ebp, 0x63
ja 0x14010e565
pause
jmp 0x14010e56a
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x14010e559
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x14010e559
jmp 0x14010e4cd
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400e1b70
int3
Function at 0x140117b60
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x140117c16
mov r14, r8
mov rsi, rdx
mov rax, qword [rsp + 0x80]
test rax, rax
lea rbx, [rsp + 0x2c]
cmovne rbx, rax
test r9, r9
lea rdi, [rsp + 0x30]
cmovne rdi, r9
mov dword [rbx], 0
mov qword [rdi], 0
lea rax, [rcx - 1]
cmp rax, 1
ja 0x140117bcc
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x140117c0c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x140117bf5
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x140117bfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
test esi, esi
setne al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx], 6
xor eax, eax
jmp 0x140117c02
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400e1b70
int3

Function at 0x140117d60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx]
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x140117df9
mov rcx, rbx
call fcn.140117e50
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140117e27
lea rax, [rcx - 1]
cmp rax, 1
ja 0x140117dbc
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x140117de0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140117de9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rdi], 0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
mov r15, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140117e07
add ebp, 1
cmp ebp, 0x63
ja 0x140117e10
pause
jmp 0x140117e15
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x140117e04
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x140117e04
jmp 0x140117d80
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400e1b70
int3
Function at 0x14011c090
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov ebx, r8d
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140dce5d8]
test rax, rax
jne 0x14011c0c8
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x140dce5d8], rax
cmp rax, 0x8001
mov ecx, 0x8000
cmovae rcx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, r12
call fcn.1401149a0
test al, al
je 0x14011c192
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14011c1cb
mov r14, qword [rdi + 0x10]
mov r15, qword [rdi + 0x18]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0
xor eax, eax
movabs rsi, 0x400100100002600
mov rcx, rbx
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x14011c163
jmp 0x14011c16e
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x14011c16e
bt rsi, rdx
jb 0x14011c150
test rdx, rdx
je 0x14011c1b0
mov rcx, rdi
mov rdx, r12
call fcn.14011b540
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x14011c163
jmp 0x14011c16e
mov al, 1
test bl, bl
jne 0x14011c1da
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.1400f5880
xor eax, eax
jmp 0x14011c1da
cmp dword [0x140337944], 0
jg 0x14011c1c3
mov dword [0x140337944], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400f75a0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14011d650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x14011d693
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14011d693
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14011d6a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov r15, rcx
test rdx, rdx
je 0x14011d6e7
mov rax, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x14011d6d0
cmp rax, 0xf9d
jae 0x14011d8ca
mov r14, qword [r15]
mov al, 1
xchg byte [r14], al
test al, al
jne 0x14011d839
mov rcx, qword [r15 + 8]
lea rax, [rcx + 1]
cmp rax, 3
ja 0x14011d805
cmp rax, 1
je 0x14011d805
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
je 0x14011d821
cmp byte [rdi], 0x73
jne 0x14011d788
mov bl, 0x73
mov edx, 1
lea rcx, str.stderr
nop dword [rax]
test bl, bl
je 0x14011d821
movzx ebx, byte [rdi + rdx]
lea rsi, [rdx + 1]
cmp bl, byte [rdx + rcx]
mov rdx, rsi
je 0x14011d740
mov dl, 0x73
mov eax, 1
lea rcx, str.stdout
mov ebx, 1
nop dword [rax + rax]
test dl, dl
je 0x14011d821
movzx edx, byte [rdi + rbx]
lea rsi, [rbx + 1]
cmp dl, byte [rbx + rcx]
mov rbx, rsi
je 0x14011d770
lea rsi, [r15 + 0x10]
lea r8, [0x1402d1d96]
mov edx, 0x1000
mov rcx, rsi
mov r9, rdi
call fcn.1400fd5b0
cmp byte [r15 + 0x10], 0
je 0x14011d825
lea rdi, [r15 + 0x11]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x14011d7d6
mov rcx, rsi
xor edx, edx
call r12
test eax, eax
je 0x14011d868
mov byte [rdi], bl
add rdi, 1
movzx ebx, byte [rdi]
cmp bl, 0x2f
je 0x14011d7f0
cmp bl, 0x5c
je 0x14011d7f0
test bl, bl
jne 0x14011d7d2
jmp 0x14011d825
mov byte [rdi], 0
mov rcx, rsi
call r13
cmp eax, 0xffffffff
je 0x14011d7c0
and eax, 0x10
jne 0x14011d7d0
jmp 0x14011d7c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
jne 0x14011d729
mov qword [r15 + 8], rax
mov byte [r14], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14011d847
add esi, 1
cmp esi, 0x63
ja 0x14011d850
pause
jmp 0x14011d854
xor ecx, ecx
call rbx
cmp byte [r14], 0
jne 0x14011d844
mov al, 1
xchg byte [r14], al
test al, al
jne 0x14011d844
jmp 0x14011d6f7
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_create_directory:
mov ecx, 2
mov r8d, 0x1f
xor r9d, r9d
call fcn.140117b60
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [r15 + r8 + 0x11], 0
lea r8, [r8 + 1]
jne 0x14011d8a0
mov qword [rsp + 0x20], 0
mov ecx, 2
mov rdx, rsi
xor r9d, r9d
call fcn.140117b60
call fcn.1400f58b0
movsx edx, byte [rdi]
movsx r8d, byte [rdi + 1]
movsx r9d, byte [rdi + 2]
movsx eax, byte [rdi + 3]
movsx ecx, byte [rdi + 4]
movsx ebx, byte [rdi + 5]
movsx esi, byte [rdi + 6]
movsx edi, byte [rdi + 7]
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rcx, str.ERROR:_Path_is_too_long:__c_c_c_c_c_c_c_c..._n
call fcn.14010de50
call fcn.1400f58b0
int3
Function at 0x140125590
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.140130760
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.140130760
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 0x140125600
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x141296d94]
mov r12, rcx
test ebx, ebx
jle 0x140125730
mov rax, qword [0x141296d98]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14012564c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401256d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140125630
mov rcx, r12
call fcn.140125fa0
mov rsi, rax
test rax, rax
je 0x140125752
mov rax, qword [0x141296d98]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1401260d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141296d98]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140125737
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401256cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401256e0
add dword [0x141296d94], 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 [0x141296d98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401256cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140125590
nop dword [rax]
xor ebx, ebx
jmp 0x140125657
mov rax, qword [0x141296d98]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140125590
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140125590
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140125c10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x141296e00]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rbx, qword [0x141296de0]
test rbx, rbx
je 0x140125c64
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 0x140125c5b
test r12, r12
je 0x140125c5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140125c40
lea rcx, [0x141296e00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
Function at 0x140125fa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402d3b40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140125fc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140125fc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140125fc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140126015
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 0x14012600c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140125fc0
add rax, 0x28
cmp rax, r9
jne 0x140125ff8
xor eax, eax
ret

Function at 0x140126020
Capabilities:
Parse pe header

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

Function at 0x1401260d0
Capabilities:
Parse pe header

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

Function at 0x140127ab0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1402d3bc0]
mov rax, qword [rsi]
test rax, rax
je 0x140127b40
cmp qword [rax + 0x30], 0
jne 0x140127b60
lea rbx, [0x140152448]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140127b10
cmp qword [rax + 0x30], 0
jne 0x140127b30
lea rdx, [0x140152448]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14013d420
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14012c9b0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140127af2
test rax, rax
jne 0x140127b30
call fcn.14012c9b0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140127b00
call fcn.14012c9b0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140127ad0
test rax, rax
jne 0x140127b60
call fcn.14012c9b0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140127adb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [class.__tsan]
ud2
Function at 0x140127b70
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 0x140127c82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140127c5a
add rax, 1
cmp rax, 0x6b
je 0x140127c77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140127c50
cmp edx, 0x6a
je 0x140127c77
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 sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140127c6b
Function at 0x140128690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1402d3bc0]
mov rax, qword [rsi]
test rax, rax
je 0x140128880
cmp qword [rax + 0x28], 0
jne 0x140128868
lea rcx, [0x141296eb8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140128875
call fcn.140127ca0
mov rax, qword [rsi]
test rax, rax
je 0x140128710
cmp qword [rax + 0x30], 0
jne 0x140128730
lea rdx, [0x140152448]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140128744
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14012c9b0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401286e0
test rax, rax
jne 0x140128730
call fcn.14012c9b0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1401286fe
call fcn.1401277e0
cmp qword [0x14129b050], 0
mov rbx, rax
je 0x1401286fe
test rax, rax
je 0x1401286fe
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.api_ms_win_core_synch_l1_2_0.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14012e850
cmp eax, 1
je 0x1401288ed
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 r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
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 0x14013d426
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [rsi]
test rax, rax
je 0x1401288c8
cmp qword [rax + 0x30], 0
je 0x1401288b0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14013d426
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401286cc
mov rax, qword [rsi]
jmp 0x1401286d9
call fcn.14012c9b0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401286b8
test rax, rax
jne 0x140128868
call fcn.14012c9b0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401286cc
jmp 0x1401286d1
lea rdx, [0x140152448]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14012883e
call fcn.14012c9b0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401288b0
test rax, rax
jne 0x14012883a
call fcn.14012c9b0
jmp 0x14012883a
call fcn.140127b70
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1402d3bc0]
mov rdx, qword [rax]
lea rax, [0x141296ec8]
mov qword [rdx + 0x10], rax
ret
Function at 0x14012c830
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14012c850
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14012c898
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14012c844
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14012c885
Function at 0x14012c9b0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x141296fa0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14012c9d3
lea rax, [0x141296fa8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14012ca1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14012ca18
lea rax, [0x141296fe0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14012ca4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14012ca48
xor ecx, ecx
mov byte [0x141296ff9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x141297002], rdx
lea r8, [0x141296fa0]
lea rbx, [0x141296ffa]
mov qword [0x141297012], rdx
mov qword [0x141297022], rdx
mov qword [0x141297032], rdx
xor edx, edx
mov qword [0x141296ffa], rax
mov qword [0x14129700a], rax
mov qword [0x14129701a], rax
mov qword [0x14129702a], rax
mov byte [0x14129703a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
test eax, eax
jne 0x14012cc26
lea rcx, [0x141296fe0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14012cb71
lea rsi, [0x141296ee0]
lea r8, [0x14129703a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14012cb1d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14012cb10
lea rcx, [0x141296fe0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14012cc13
lea rcx, [0x14012c8c0]
mov qword [0x141296ee0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x141296ee0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x141296fe0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14129703a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14012cc46
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14012cbc3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14012cbb0
mov rax, rdx
mov qword [0x141296ee0], rax
lea rsi, [0x141296ee0]
jmp 0x14012cbe9
cmp rdx, rsi
je 0x14012cb4f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14012cbe0
cmp rdx, rsi
je 0x14012cb4f
mov qword [rdx + 8], rsi
lea rcx, [0x14012c8c0]
call sub.msvcrt.dll__onexit
jmp 0x14012cb4f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14012c830
xor eax, eax
jmp 0x14012cb68
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14012c830
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.14012c830
xor eax, eax
jmp 0x14012cbcf