joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fe9d0
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 [0x140d48558]
test rax, rax
jne 0x1400fea08
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x140d48558], 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.1400f72e0
test al, al
je 0x1400fead2
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400feb0b
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 0x1400feaa3
jmp 0x1400feaae
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x1400feaae
bt rsi, rdx
jb 0x1400fea90
test rdx, rdx
je 0x1400feaf0
mov rcx, rdi
mov rdx, r12
call fcn.1400fde80
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x1400feaa3
jmp 0x1400feaae
mov al, 1
test bl, bl
jne 0x1400feb1a
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.1400d81c0
xor eax, eax
jmp 0x1400feb1a
cmp dword [0x1402b18c4], 0
jg 0x1400feb03
mov dword [0x1402b18c4], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400d9ee0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400fff90
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 0x1400fffd3
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 0x1400fffd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400fffe0
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 0x140100027
mov rax, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x140100010
cmp rax, 0xf9d
jae 0x14010020a
mov r14, qword [r15]
mov al, 1
xchg byte [r14], al
test al, al
jne 0x140100179
mov rcx, qword [r15 + 8]
lea rax, [rcx + 1]
cmp rax, 3
ja 0x140100145
cmp rax, 1
je 0x140100145
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
je 0x140100161
cmp byte [rdi], 0x73
jne 0x1401000c8
mov bl, 0x73
mov edx, 1
lea rcx, str.stderr
nop dword [rax]
test bl, bl
je 0x140100161
movzx ebx, byte [rdi + rdx]
lea rsi, [rdx + 1]
cmp bl, byte [rdx + rcx]
mov rdx, rsi
je 0x140100080
mov dl, 0x73
mov eax, 1
lea rcx, str.stdout
mov ebx, 1
nop dword [rax + rax]
test dl, dl
je 0x140100161
movzx edx, byte [rdi + rbx]
lea rsi, [rbx + 1]
cmp dl, byte [rbx + rcx]
mov rbx, rsi
je 0x1401000b0
lea rsi, [r15 + 0x10]
lea r8, [0x14024ccc6]
mov edx, 0x1000
mov rcx, rsi
mov r9, rdi
call fcn.1400dfef0
cmp byte [r15 + 0x10], 0
je 0x140100165
lea rdi, [r15 + 0x11]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x140100116
mov rcx, rsi
xor edx, edx
call r12
test eax, eax
je 0x1401001a8
mov byte [rdi], bl
add rdi, 1
movzx ebx, byte [rdi]
cmp bl, 0x2f
je 0x140100130
cmp bl, 0x5c
je 0x140100130
test bl, bl
jne 0x140100112
jmp 0x140100165
mov byte [rdi], 0
mov rcx, rsi
call r13
cmp eax, 0xffffffff
je 0x140100100
and eax, 0x10
jne 0x140100110
jmp 0x140100100
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
jne 0x140100069
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 0x140100187
add esi, 1
cmp esi, 0x63
ja 0x140100190
pause
jmp 0x140100194
xor ecx, ecx
call rbx
cmp byte [r14], 0
jne 0x140100184
mov al, 1
xchg byte [r14], al
test al, al
jne 0x140100184
jmp 0x140100037
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_create_directory:
mov ecx, 2
mov r8d, 0x1f
xor r9d, r9d
call fcn.1400fa4a0
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [r15 + r8 + 0x11], 0
lea r8, [r8 + 1]
jne 0x1401001e0
mov qword [rsp + 0x20], 0
mov ecx, 2
mov rdx, rsi
xor r9d, r9d
call fcn.1400fa4a0
call fcn.1400d81f0
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.1400f0790
call fcn.1400d81f0
int3
Function at 0x1401079e0
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.140112bb0
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.140112bb0
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 0x140107a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x141210c74]
mov r12, rcx
test ebx, ebx
jle 0x140107b80
mov rax, qword [0x141210c78]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140107a9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140107b23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140107a80
mov rcx, r12
call fcn.1401083f0
mov rsi, rax
test rax, rax
je 0x140107ba2
mov rax, qword [0x141210c78]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140108520
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141210c78]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140107b87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140107b1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140107b30
add dword [0x141210c74], 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 [0x141210c78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140107b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401079e0
nop dword [rax]
xor ebx, ebx
jmp 0x140107aa7
mov rax, qword [0x141210c78]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401079e0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1401079e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140108060
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x141210ce0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rbx, qword [0x141210cc0]
test rbx, rbx
je 0x1401080b4
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 0x1401080ab
test r12, r12
je 0x1401080ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140108090
lea rcx, [0x141210ce0]
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 0x1401083f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14024e940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140108410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140108418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140108410
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140108465
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 0x14010845c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140108410
add rax, 0x28
cmp rax, r9
jne 0x140108448
xor eax, eax
ret

Function at 0x140108470
Capabilities:
Parse pe header

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

Function at 0x140108520
Capabilities:
Parse pe header

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

Function at 0x140109f00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14024e9c0]
mov rax, qword [rsi]
test rax, rax
je 0x140109f90
cmp qword [rax + 0x30], 0
jne 0x140109fb0
lea rbx, [0x140132948]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140109f60
cmp qword [rax + 0x30], 0
jne 0x140109f80
lea rdx, [0x140132948]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14011f870
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14010ee00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140109f42
test rax, rax
jne 0x140109f80
call fcn.14010ee00
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140109f50
call fcn.14010ee00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140109f20
test rax, rax
jne 0x140109fb0
call fcn.14010ee00
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140109f2b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [class.__tsan]
ud2
Function at 0x140109fc0
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 0x14010a0d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14010a0aa
add rax, 1
cmp rax, 0x6b
je 0x14010a0c7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14010a0a0
cmp edx, 0x6a
je 0x14010a0c7
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 0x14010a0bb
Function at 0x14010aae0
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 [0x14024e9c0]
mov rax, qword [rsi]
test rax, rax
je 0x14010acd0
cmp qword [rax + 0x28], 0
jne 0x14010acb8
lea rcx, [0x141210d98]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x14010acc5
call fcn.14010a0f0
mov rax, qword [rsi]
test rax, rax
je 0x14010ab60
cmp qword [rax + 0x30], 0
jne 0x14010ab80
lea rdx, [0x140132948]
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 0x14010ab94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14010ee00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14010ab30
test rax, rax
jne 0x14010ab80
call fcn.14010ee00
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 0x14010ab4e
call fcn.140109c30
cmp qword [0x141214050], 0
mov rbx, rax
je 0x14010ab4e
test rax, rax
je 0x14010ab4e
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.140110ca0
cmp eax, 1
je 0x14010ad3d
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 0x14011f876
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 0x14010ad18
cmp qword [rax + 0x30], 0
je 0x14010ad00
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14011f876
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 0x14010ab1c
mov rax, qword [rsi]
jmp 0x14010ab29
call fcn.14010ee00
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x14010ab08
test rax, rax
jne 0x14010acb8
call fcn.14010ee00
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14010ab1c
jmp 0x14010ab21
lea rdx, [0x140132948]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14010ac8e
call fcn.14010ee00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14010ad00
test rax, rax
jne 0x14010ac8a
call fcn.14010ee00
jmp 0x14010ac8a
call fcn.140109fc0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14024e9c0]
mov rdx, qword [rax]
lea rax, [0x141210da8]
mov qword [rdx + 0x10], rax
ret
Function at 0x14010ec80
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 0x14010eca0
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 0x14010ece8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14010ec94
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 0x14010ecd5
Function at 0x14010ee00
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x141210e80]
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 0x14010ee23
lea rax, [0x141210e88]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14010ee6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14010ee68
lea rax, [0x141210ec0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14010ee9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14010ee98
xor ecx, ecx
mov byte [0x141210ed9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x141210ee2], rdx
lea r8, [0x141210e80]
lea rbx, [0x141210eda]
mov qword [0x141210ef2], rdx
mov qword [0x141210f02], rdx
mov qword [0x141210f12], rdx
xor edx, edx
mov qword [0x141210eda], rax
mov qword [0x141210eea], rax
mov qword [0x141210efa], rax
mov qword [0x141210f0a], rax
mov byte [0x141210f1a], 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 0x14010f076
lea rcx, [0x141210ec0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14010efc1
lea rsi, [0x141210dc0]
lea r8, [0x141210f1a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14010ef6d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14010ef60
lea rcx, [0x141210ec0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14010f063
lea rcx, [0x14010ed10]
mov qword [0x141210dc0], 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 [0x141210dc0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x141210ec0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x141210f1a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14010f096
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14010f013
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14010f000
mov rax, rdx
mov qword [0x141210dc0], rax
lea rsi, [0x141210dc0]
jmp 0x14010f039
cmp rdx, rsi
je 0x14010ef9f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14010f030
cmp rdx, rsi
je 0x14010ef9f
mov qword [rdx + 8], rsi
lea rcx, [0x14010ed10]
call sub.msvcrt.dll__onexit
jmp 0x14010ef9f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14010ec80
xor eax, eax
jmp 0x14010efb8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14010ec80
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.14010ec80
xor eax, eax
jmp 0x14010f01f
Function at 0x140113b80
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
xor edi, edi
lea r14, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x140113bc4
mov ecx, 0x100000
call fcn.14011bba0
mov edx, 0x10000
mov rcx, rbx
call fcn.1400d9ee0
add rdi, 1
cmp rdi, 0x8000
je 0x140113bf0
mov rbx, qword [rsi + rdi*8 + 0x400010]
test rbx, rbx
je 0x140113bb7
mov rdx, qword [0x140d48558]
test rdx, rdx
jne 0x140113ba0
mov rcx, r14
call r15
mov edx, dword [rsp + 0x24]
mov qword [0x140d48558], rdx
jmp 0x140113ba0
mov byte [rsi + 0x400008], 0
lea rdi, [rsi + 0x400010]
test dil, 8
jne 0x140113c2d
lea rax, [rdi + 0x40000]
lea r8, [rdi + 0x10]
cmp rax, r8
cmova r8, rax
sub r8, rdi
add r8, 0xf
and r8, 0xfffffffffffffff0
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x140113c7c
xor eax, eax
nop
mov byte [rsi + rax + 0x400010], 0
mov byte [rsi + rax + 0x400011], 0
mov byte [rsi + rax + 0x400012], 0
mov byte [rsi + rax + 0x400013], 0
mov byte [rsi + rax + 0x400014], 0
mov byte [rsi + rax + 0x400015], 0
mov byte [rsi + rax + 0x400016], 0
mov byte [rsi + rax + 0x400017], 0
add rax, 8
cmp rax, 0x40000
jne 0x140113c30
test sil, 8
jne 0x140113cb1
lea rax, [rdi + 0x40000]
lea r8, [rdi - 0x400000]
cmp rax, r8
cmova r8, rax
sub r8, rdi
add r8, 0x40001f
and r8, 0xfffffffffffffff0
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x140113d07
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
mov byte [rsi + rax], 0
mov byte [rsi + rax + 1], 0
mov byte [rsi + rax + 2], 0
mov byte [rsi + rax + 3], 0
mov byte [rsi + rax + 4], 0
mov byte [rsi + rax + 5], 0
mov byte [rsi + rax + 6], 0
mov byte [rsi + rax + 7], 0
mov byte [rsi + rax + 8], 0
mov byte [rsi + rax + 9], 0
mov byte [rsi + rax + 0xa], 0
mov byte [rsi + rax + 0xb], 0
add rax, 0xc
cmp rax, 0x440010
jne 0x140113cc0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140113e10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, r8
mov r12, rdx
mov r14, rcx
test r8, r8
je 0x140113e32
mov byte [r15], 0
mov r8d, dword [r12 + 8]
xor esi, esi
test r8, r8
je 0x140114039
mov rbp, qword [r12]
test rbp, rbp
je 0x140114039
movabs rax, 0xc6a4a7935bd1e995
movabs rdx, 0x35253c9ade8f4ca8
imul rdx, r8
movabs rbx, 0x9747b28c9747b28c
xor rbx, rdx
cmp r8d, 1
jne 0x140113e7e
xor edi, edi
jmp 0x140113ed5
mov edx, r8d
and edx, 0xfffffffe
xor edi, edi
nop word cs:[rax + rax]
mov rcx, qword [rbp + rdi*8]
imul rcx, rax
mov rsi, rcx
shr rsi, 0x2f
xor rsi, rcx
imul rsi, rax
xor rsi, rbx
imul rsi, rax
mov rcx, qword [rbp + rdi*8 + 8]
imul rcx, rax
mov rbx, rcx
shr rbx, 0x2f
xor rbx, rcx
imul rbx, rax
xor rbx, rsi
imul rbx, rax
add rdi, 2
cmp rdx, rdi
jne 0x140113e90
test r8b, 1
je 0x140113efc
mov rdx, qword [rbp + rdi*8]
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
xor rcx, rbx
imul rcx, rax
mov rbx, rcx
mov ecx, dword [r12 + 0xc]
imul rcx, rax
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rax
xor rdx, rbx
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
mov rdi, rcx
shr rdi, 0x2f
xor rdi, rcx
mov eax, edi
and eax, 0xfffff
lea rbx, [r14 + rax*4]
mov r13d, 0x7fffffff
and r13d, dword [r14 + rax*4]
lea rcx, [r14 + 0x400008]
mov ebp, r13d
nop word cs:[rax + rax]
nop dword [rax + rax]
test ebp, ebp
je 0x140113fa3
mov esi, ebp
mov ebp, ebp
mov rdx, rbp
shr rdx, 0x10
mov rax, qword [r14 + rdx*8 + 0x400010]
test rax, rax
je 0x140113f92
movzx edx, bp
shl rdx, 4
mov ebp, dword [rax + rdx + 8]
cmp qword [rax + rdx], rdi
jne 0x140113f60
jmp 0x140114039
mov qword [rsp + 0x28], rcx
call fcn.14011f0f0
mov rcx, qword [rsp + 0x28]
jmp 0x140113f7c
mov rbp, rcx
mov qword [rsp + 0x28], r15
mov rcx, rbx
call fcn.140114080
mov r15d, eax
cmp eax, r13d
je 0x140113fe3
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, r15d
mov r9, rdi
call fcn.14011f510
test eax, eax
je 0x140113fe3
mov esi, eax
mov dword [rbx], r15d
jmp 0x140114039
mov esi, 1
lock xadd dword [r14 + 0x400000], esi
add esi, 1
js 0x14011404c
mov r13, rbx
mov rdx, rsi
shr rdx, 0x10
mov rbx, qword [r14 + rdx*8 + 0x400010]
test rbx, rbx
je 0x140114073
movzx ebp, si
shl rbp, 4
lea rcx, [rbx + rbp]
mov r8, r12
mov r9, rdi
call fcn.1400fd580
mov dword [rbx + rbp + 8], r15d
mov dword [r13], esi
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140114039
mov byte [rax], 1
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, esi
and r9d, 0x7fffffff
mov qword [rsp + 0x20], rsi
lea rcx, str....._sanitizer_common_sanitizer_stackdepotbase.h
lea r8, str.__s__kUnlockMask______s__
mov edx, 0x8c
call fcn.1400c44b0
mov rcx, rbp
call fcn.14011f0f0
mov rbx, rax
jmp 0x14011400d