joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140011868
cmp eax, 1
je 0x14001179b
call fcn.1400106a0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140010020
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400117b0
cmp r12d, 1
jne 0x140011840
mov rcx, rbp
call fcn.140010310
test rdi, rdi
je 0x14001179b
mov rcx, rdi
call fcn.140010a40
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140010b20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140010dc0
mov ecx, dword [0x140016438]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400118a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140010dc0
mov ecx, dword [0x140016438]
call r12
test rax, rax
je 0x140011890
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140010dc0
mov ecx, dword [0x140016438]
call r12
test rax, rax
je 0x140011880
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140011786
mov ecx, 2
call qword [fcn.14000f8a0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140011786
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140010e70
test rax, rax
jne 0x140011829
jmp 0x140015825
call fcn.140010e70
test rax, rax
jne 0x140011805
jmp 0x14001583e
call fcn.140010e70
test rax, rax
jne 0x1400117df
jmp 0x140015834
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140011b30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011ba8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140014100
cmp esi, dword [rbx + 0x48]
jae 0x140011b83
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140011b83
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140014140
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140010e70
mov rbx, rax
jmp 0x140011b5d
Function at 0x140011bc0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011cc0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140014100
cmp esi, dword [rbx + 0x48]
jae 0x140011c40
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140014140
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140011ccd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140011ccd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140011c0f
call fcn.140010e70
mov rbx, rax
jmp 0x140011bfa
mov rcx, r13
call fcn.140014140
mov eax, 0xc
jmp 0x140011c2d

Function at 0x140011d50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011d78
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140010e70
test rax, rax
jne 0x140011d6a
add rsp, 0x28
ret

Function at 0x140011de0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011e08
add rax, 0x18
add rsp, 0x28
ret
call fcn.140010e70
test rax, rax
jne 0x140011dfa
jmp 0x140011dfe

Function at 0x140011f20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x140011f38
xor eax, eax
add rsp, 0x28
ret
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011f68
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140011f2e
test byte [rax + 0x40], 3
je 0x140011f2e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140011f30
call fcn.140010e70
test rax, rax
jne 0x140011f4e
jmp 0x140011f2e

Function at 0x140011f80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011fc0
test ebx, ebx
jle 0x140011fb0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140010e70
test rax, rax
jne 0x140011f9d
add rsp, 0x20
pop rbx
ret
Function at 0x1400120b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012128
test byte [rbx + 0x40], 0xc
jne 0x1400120df
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x1400120f0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140010020
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140012113
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140012113
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001213c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140010310
call fcn.140010e70
mov rbx, rax
test rax, rax
jne 0x1400120cf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001215a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140010310
call fcn.140011fd0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400121e0
call fcn.140013290
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140012218
call fcn.140010dc0
mov ecx, dword [0x140016438]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012270
test esi, esi
je 0x1400121f6
call fcn.1400120b0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012250
mov edx, edi
call fcn.140013340
call fcn.1400120b0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012260
call fcn.1400120b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400120b0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010dc0
mov ecx, dword [0x140016438]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400121b5
call fcn.140010e70
mov rbx, rax
jmp 0x1400121b5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400121ce
call fcn.140010e70
jmp 0x1400121f6
call fcn.140010e70
mov rbx, rax
jmp 0x1400121b1
Function at 0x140012170
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012128
test byte [rbx + 0x40], 0xc
jne 0x1400120df
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x1400120f0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140010020
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140012113
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140012113
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001213c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140010310
call fcn.140010e70
mov rbx, rax
test rax, rax
jne 0x1400120cf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001215a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140010310
call fcn.140011fd0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400121e0
call fcn.140013290
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140012218
call fcn.140010dc0
mov ecx, dword [0x140016438]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012270
test esi, esi
je 0x1400121f6
call fcn.1400120b0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012250
mov edx, edi
call fcn.140013340
call fcn.1400120b0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012260
call fcn.1400120b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400120b0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010dc0
mov ecx, dword [0x140016438]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400121b5
call fcn.140010e70
mov rbx, rax
jmp 0x1400121b5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400121ce
call fcn.140010e70
jmp 0x1400121f6
call fcn.140010e70
mov rbx, rax
jmp 0x1400121b1

Function at 0x140012280
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400122f0
test esi, esi
je 0x1400122d0
call fcn.1400120b0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012300
mov edx, esi
call fcn.140013340
call fcn.1400120b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400120b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400120b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010e70
mov rbx, rax
jmp 0x1400122a1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400122ba
Function at 0x140002b60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400a4ee0]
mov rax, qword [rsi]
test rax, rax
je 0x140002bf0
cmp qword [rax + 0x30], 0
jne 0x140002c10
lea rbx, [0x140087938]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140002bc0
cmp qword [rax + 0x30], 0
jne 0x140002be0
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140012a90
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140002ba2
test rax, rax
jne 0x140002be0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140002bb0
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140002b80
test rax, rax
jne 0x140002c10
call fcn.140007a60
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140002b8b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2

Function at 0x140002c20
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 0x140002d32
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140002d0a
add rax, 1
cmp rax, 0x6b
je 0x140002d27
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140002d00
cmp edx, 0x6a
je 0x140002d27
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 0x140002d1b
Function at 0x140003740
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 [0x1400a4ee0]
mov rax, qword [rsi]
test rax, rax
je 0x140003930
cmp qword [rax + 0x28], 0
jne 0x140003918
lea rcx, [0x1400a7088]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140003925
call fcn.140002d50
mov rax, qword [rsi]
test rax, rax
je 0x1400037c0
cmp qword [rax + 0x30], 0
jne 0x1400037e0
lea rdx, [0x140087938]
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 0x1400037f4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003790
test rax, rax
jne 0x1400037e0
call fcn.140007a60
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 0x1400037ae
call fcn.140002890
cmp qword [0x1400aa050], 0
mov rbx, rax
je 0x1400037ae
test rax, rax
je 0x1400037ae
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 fcn.140009900
cmp eax, 1
je 0x14000399d
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 0x140012a96
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 0x140003978
cmp qword [rax + 0x30], 0
je 0x140003960
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140012a96
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 0x14000377c
mov rax, qword [rsi]
jmp 0x140003789
call fcn.140007a60
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140003768
test rax, rax
jne 0x140003918
call fcn.140007a60
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
jmp 0x140003781
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400038ee
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003960
test rax, rax
jne 0x1400038ea
call fcn.140007a60
jmp 0x1400038ea
call fcn.140002c20
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1400a4ee0]
mov rdx, qword [rax]
lea rax, [0x1400a7098]
mov qword [rdx + 0x10], rax
ret
Function at 0x140007a60
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400a7180]
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 0x140007a83
lea rax, [0x1400a7188]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140007acb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140007ac8
lea rax, [0x1400a71c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140007afb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140007af8
xor ecx, ecx
mov byte [0x1400a71d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400a71e2], rdx
lea r8, [0x1400a7180]
lea rbx, [0x1400a71da]
mov qword [0x1400a71f2], rdx
mov qword [0x1400a7202], rdx
mov qword [0x1400a7212], rdx
xor edx, edx
mov qword [0x1400a71da], rax
mov qword [0x1400a71ea], rax
mov qword [0x1400a71fa], rax
mov qword [0x1400a720a], rax
mov byte [0x1400a721a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007cd6
lea rcx, [0x1400a71c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140007c21
lea rsi, [0x1400a70c0]
lea r8, [0x1400a721a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140007bcd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140007bc0
lea rcx, [0x1400a71c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140007cc3
lea rcx, [0x140007970]
mov qword [0x1400a70c0], 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 [0x1400a70c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400a71c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400a721a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140007cf6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140007c73
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140007c60
mov rax, rdx
mov qword [0x1400a70c0], rax
lea rsi, [0x1400a70c0]
jmp 0x140007c99
cmp rdx, rsi
je 0x140007bff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140007c90
cmp rdx, rsi
je 0x140007bff
mov qword [rdx + 8], rsi
lea rcx, [0x140007970]
call sub.msvcrt.dll__onexit
jmp 0x140007bff
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400078e0
xor eax, eax
jmp 0x140007c18
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400078e0
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.1400078e0
xor eax, eax
jmp 0x140007c7f
Function at 0x14000b3b0
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.140011c90
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.140011c90
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 0x14000b420
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400a72b4]
mov r12, rcx
test ebx, ebx
jle 0x14000b550
mov rax, qword [0x1400a72b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b46c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b4f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b450
mov rcx, r12
call fcn.14000bdc0
mov rsi, rax
test rax, rax
je 0x14000b572
mov rax, qword [0x1400a72b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000bef0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400a72b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b557
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b4ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b500
add dword [0x1400a72b4], 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 [0x1400a72b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b4ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b3b0
nop dword [rax]
xor ebx, ebx
jmp 0x14000b477
mov rax, qword [0x1400a72b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b3b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b3b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400a7320]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400a7300]
test rbx, rbx
je 0x14000ba84
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 0x14000ba7b
test r12, r12
je 0x14000ba7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba60
lea rcx, [0x1400a7320]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bdc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400a4e60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bde0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bde8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bde0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000be35
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 0x14000be2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bde0
add rax, 0x28
cmp rax, r9
jne 0x14000be18
xor eax, eax
ret

Function at 0x14000be40
Capabilities:
Parse pe header

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

Function at 0x14000bef0
Capabilities:
Parse pe header

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