joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f6560
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x1400f67a9
push rbp
mov rbp, rsp
sub rsp, 0xa8
nop word [rax + rax]
test rax, rax
je 0x1400f6794
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1400f65a2
xor ebx, ebx
xor ecx, ecx
nop
jmp 0x1400f65bc
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
mov rax, rdx
call fcn.1400e8ec0
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x1400f66d1
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop dword [rax + rax]
call fcn.140078ce0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x14023a720]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.14004f0c0
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.140003e00
xorps xmm15, xmm15
mov r14, qword [0x14037be40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x1400f669b
xor eax, eax
lea rbx, [0x14023a808]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x1401e5afc]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.14004f180
jmp 0x1400f66c8
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x14023a7e8]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.14004f0c0
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rax + 0x18]
call fcn.140078ce0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.140003e00
xorps xmm15, xmm15
mov r14, qword [0x14037be40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x1400f675e
xor eax, eax
lea rbx, [0x14023a808]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x1401e5afc]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.14004f180
jmp 0x1400f678b
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x14023a7e8]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.14004f0c0
add rsp, 0xa8
pop rbp
ret
lea rax, [0x1401e5ed7]
mov ebx, 5
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.1400637a0
mov rax, qword [rsp + 8]
jmp fcn.1400f6560
Function at 0x1400fa660
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x1400fa678
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x1400fa678
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x1400fa680
xor eax, eax
ret
cmp rbx, 3
je 0x1400fa68c
cmp rbx, 4
jne 0x1400fa6b9
cmp al, 0x2c
ja 0x1400fa6a6
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x1400fa6b6
cmp al, 0x24
je 0x1400fa6b6
nop dword [rax]
cmp al, 0x26
jae 0x1400fa6b6
jmp 0x1400fa6b9
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x1400fa6b6
cmp al, 0x5b
je 0x1400fa6b6
cmp al, 0x5d
jne 0x1400fa6b9
xor eax, eax
ret
cmp al, 0x2f
ja 0x1400fa6f2
nop dword [rax]
cmp al, 0x26
ja 0x1400fa6d1
cmp al, 0x24
je 0x1400fa711
cmp al, 0x26
je 0x1400fa711
jmp 0x1400fa78b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x1400fa711
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x1400fa788
cmp al, 0x2f
je 0x1400fa711
jmp 0x1400fa78b
cmp al, 0x3d
ja 0x1400fa709
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x1400fa711
nop
cmp al, 0x3d
je 0x1400fa711
jmp 0x1400fa78b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x1400fa780
cmp rbx, 2
jg 0x1400fa747
cmp rbx, 1
je 0x1400fa741
nop dword [rax]
cmp rbx, 2
jne 0x1400fa78b
cmp al, 0x2f
je 0x1400fa732
cmp al, 0x3b
je 0x1400fa732
cmp al, 0x2c
jne 0x1400fa739
mov ecx, 1
jmp 0x1400fa73e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x1400fa76a
cmp al, 0x40
je 0x1400fa759
cmp al, 0x2f
je 0x1400fa759
cmp al, 0x3f
jne 0x1400fa762
mov ecx, 1
nop
jmp 0x1400fa767
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x1400fa779
cmp rbx, 7
jne 0x1400fa78b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x1400fa788
cmp al, 0x7e
jne 0x1400fa78b
xor eax, eax
ret
cmp rbx, 7
jne 0x1400fa7a1
cmp al, 0x21
je 0x1400fa79d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x1400fa7a1
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x14010b760
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x14010b835
movdqa xmm0, xmmword [0x14023bfb0]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x14010b7a1
movdqa xmm0, xmmword [0x14023bfc0]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x14010b8b7
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x14010b88b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x14023bd58]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x14023bfd0]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x140150650
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rcx
test dl, dl
je 0x140150660
ret
jmp fcn.140150c40

Function at 0x140150670
Capabilities:
Log keystrokes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebx, ecx
mov edi, edx
mov rsi, r8
xor edx, edx
mov ebp, r9d
movzx ecx, cl
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp ebx, 0x5d
jg 0x140150740
cmp ebx, 0x20
jg 0x1401506d8
cmp ebx, 0x13
je 0x1401506eb
test rsi, rsi
je 0x1401506f5
mov rcx, rsi
test bpl, bpl
je 0x140150760
cmp edi, 1
mov edx, 0x100
movsxd r8, ebx
sbb edx, 0xffffffff
xor r9d, r9d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.USER32.dll_PostMessageW]
movabs rcx, 0x1c000000000038ff
lea edx, [rbx - 0x21]
bt rcx, rdx
jae 0x1401506a0
or edi, 1
nop
test rsi, rsi
jne 0x1401506a5
mov word [rsp + 0x28], bx
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov ecx, 1
mov dword [rsp + 0x20], 1
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], edi
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.USER32.dll_SendInput]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebx, 0xa3
je 0x1401506eb
lea edx, [rbx - 0xa5]
cmp edx, 0xf
ja 0x1401506a0
or edi, 1
jmp 0x1401506f0
call fcn.140150c40
mov rcx, rax
jmp 0x1401506b1

Function at 0x140150c40
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], ecx
lea rcx, [0x140150bc0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140151e50
Capabilities:
Get graphical window text

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.140151a40
lea r8, str.is_valid_failed.
test al, al
jne 0x140151e78
mov rax, r8
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 8]
mov r8d, 0x200
mov rcx, qword [rbx]
mov rdx, r12
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea r8, [0x14031847c]
test eax, eax
jle 0x140151e6a
mov edx, 8
mov ecx, 0x64
call sub.msvcrt.dll_calloc
mov r8, rax
test rax, rax
je 0x140151e6a
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov r8, rax
mov rax, r8
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x140158630
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.140163820
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.140163820
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 0x1401586a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140380df4]
mov r12, rcx
test ebx, ebx
jle 0x1401587d0
mov rax, qword [0x140380df8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401586ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140158773
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1401586d0
mov rcx, r12
call fcn.140159040
mov rsi, rax
test rax, rax
je 0x1401587f2
mov rax, qword [0x140380df8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140159170
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140380df8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401587d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14015876c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140158780
add dword [0x140380df4], 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 [0x140380df8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14015876c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140158630
nop dword [rax]
xor ebx, ebx
jmp 0x1401586f7
mov rax, qword [0x140380df8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140158630
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140158630
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140158cb0
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140318f00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140159060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140159068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140159060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401590b5
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 0x1401590ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140159060
add rax, 0x28
cmp rax, r9
jne 0x140159098
xor eax, eax
ret

Function at 0x1401590c0
Capabilities:
Parse pe header

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

Function at 0x140159170
Capabilities:
Parse pe header

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

Function at 0x14015ab20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140318f80]
mov rax, qword [rsi]
test rax, rax
je 0x14015abb0
cmp qword [rax + 0x30], 0
jne 0x14015abd0
lea rbx, [0x14019e8b8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14015ab80
cmp qword [rax + 0x30], 0
jne 0x14015aba0
lea rdx, [0x14019e8b8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1401639b0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14015fa20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14015ab62
test rax, rax
jne 0x14015aba0
call fcn.14015fa20
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14015ab70
call fcn.14015fa20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14015ab40
test rax, rax
jne 0x14015abd0
call fcn.14015fa20
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14015ab4b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14015abe0
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 0x14015acf2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14015acca
add rax, 1
cmp rax, 0x6b
je 0x14015ace7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14015acc0
cmp edx, 0x6a
je 0x14015ace7
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 0x14015acdb
Function at 0x14015b700
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 [0x140318f80]
mov rax, qword [rsi]
test rax, rax
je 0x14015b8f0
cmp qword [rax + 0x28], 0
jne 0x14015b8d8
lea rcx, [0x140380f18]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x14015b8e5
call fcn.14015ad10
mov rax, qword [rsi]
test rax, rax
je 0x14015b780
cmp qword [rax + 0x30], 0
jne 0x14015b7a0
lea rdx, [0x14019e8b8]
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 0x14015b7b4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14015fa20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14015b750
test rax, rax
jne 0x14015b7a0
call fcn.14015fa20
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 0x14015b76e
call fcn.14015a850
cmp qword [0x140385050], 0
mov rbx, rax
je 0x14015b76e
test rax, rax
je 0x14015b76e
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.1401618c0
cmp eax, 1
je 0x14015b95d
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 0x1401639b6
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 0x14015b938
cmp qword [rax + 0x30], 0
je 0x14015b920
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401639b6
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 0x14015b73c
mov rax, qword [rsi]
jmp 0x14015b749
call fcn.14015fa20
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x14015b728
test rax, rax
jne 0x14015b8d8
call fcn.14015fa20
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14015b73c
jmp 0x14015b741
lea rdx, [0x14019e8b8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14015b8ae
call fcn.14015fa20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14015b920
test rax, rax
jne 0x14015b8aa
call fcn.14015fa20
jmp 0x14015b8aa
call fcn.14015abe0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140318f80]
mov rdx, qword [rax]
lea rax, [0x140380f28]
mov qword [rdx + 0x10], rax
ret
Function at 0x14015f8a0
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 0x14015f8c0
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 0x14015f908
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14015f8b4
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 0x14015f8f5
Function at 0x14015fa20
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140381000]
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 0x14015fa43
lea rax, [0x140381008]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14015fa8b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14015fa88
lea rax, [0x140381040]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14015fabb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14015fab8
xor ecx, ecx
mov byte [0x140381059], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140381062], rdx
lea r8, [0x140381000]
lea rbx, [0x14038105a]
mov qword [0x140381072], rdx
mov qword [0x140381082], rdx
mov qword [0x140381092], rdx
xor edx, edx
mov qword [0x14038105a], rax
mov qword [0x14038106a], rax
mov qword [0x14038107a], rax
mov qword [0x14038108a], rax
mov byte [0x14038109a], 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 0x14015fc96
lea rcx, [0x140381040]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14015fbe1
lea rsi, [0x140380f40]
lea r8, [0x14038109a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14015fb8d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14015fb80
lea rcx, [0x140381040]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14015fc83
lea rcx, [0x14015f930]
mov qword [0x140380f40], 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 [0x140380f40]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140381040]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14038109a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14015fcb6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14015fc33
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14015fc20
mov rax, rdx
mov qword [0x140380f40], rax
lea rsi, [0x140380f40]
jmp 0x14015fc59
cmp rdx, rsi
je 0x14015fbbf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14015fc50
cmp rdx, rsi
je 0x14015fbbf
mov qword [rdx + 8], rsi
lea rcx, [0x14015f930]
call sub.msvcrt.dll__onexit
jmp 0x14015fbbf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14015f8a0
xor eax, eax
jmp 0x14015fbd8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14015f8a0
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.14015f8a0
xor eax, eax
jmp 0x14015fc3f