joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016bb60
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x1f8]
cmp r12, qword [r14 + 0x10]
jbe 0x14016bdee
push rbp
mov rbp, rsp
sub rsp, 0x270
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x290], rcx
mov qword [rsp + 0x298], rdi
mov qword [rsp + 0x288], rbx
nop
nop
call fcn.140093d20
xorps xmm15, xmm15
mov r14, qword [0x1405123c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x280]
mov rcx, qword [rax]
mov rax, rcx
call fcn.14014dae0
test rbx, rbx
jne 0x14016bd62
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x130]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.1400674f4
mov rbp, qword [rbp]
mov qword [rsp + 0x258], 0
movups xmmword [rsp + 0x260], xmm15
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x268], 0x20
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x258], rdx
mov rbx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x298]
mov rsi, rax
lea rax, [rsp + 0x258]
call fcn.14014d400
nop dword [rax + rax]
test rbx, rbx
jne 0x14016bd4c
mov rdx, qword [rsp + 0x280]
mov rcx, qword [rdx + 8]
lea rdi, [rsp + 0x30]
nop word [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.1400674f4
mov rbp, qword [rbp]
mov qword [rsp + 0x240], 0
movups xmmword [rsp + 0x248], xmm15
mov qword [rsp + 0x248], 0
mov qword [rsp + 0x250], 0x20
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x240], rdx
mov rbx, rax
mov rdi, qword [rsp + 0x238]
lea rax, [rsp + 0x240]
call fcn.14014ff60
mov qword [rsp + 0x230], rax
mov rdx, qword [rsp + 0x238]
mov rsi, qword [rdx]
mov rsi, qword [rsi + 8]
shl rsi, 6
sub rsi, qword [rdx + 8]
lea rdx, [rsi + 7]
sar rdx, 0x3f
shr rdx, 0x3d
lea rcx, [rdx + rsi]
lea rcx, [rcx + 7]
sar rcx, 3
mov qword [rsp + 0x28], rcx
nop
mov rbx, rcx
lea rax, [0x14026d860]
call fcn.14004bf60
mov rdx, qword [rsp + 0x230]
mov rsi, qword [rdx]
mov rdx, qword [rdx + 8]
mov r8, qword [rsp + 0x28]
mov rcx, r8
xor ebx, ebx
jmp 0x14016bd80
xor eax, eax
mov rdi, rbx
mov rsi, rcx
xor ebx, ebx
mov rcx, rbx
add rsp, 0x270
pop rbp
ret
xor eax, eax
mov rdi, rbx
mov rsi, rcx
xor ebx, ebx
mov rcx, rbx
add rsp, 0x270
pop rbp
ret
inc rbx
mov r8, r10
nop
cmp rbx, rdx
jge 0x14016bd99
mov r9, qword [rsi + rbx*8]
xor edi, edi
jmp 0x14016bdb8
test r9, r9
je 0x14016bd78
jmp 0x14016bdce
mov r10, r8
jmp 0x14016bd78
mov rbx, rcx
xor edi, edi
xor esi, esi
add rsp, 0x270
pop rbp
ret
mov byte [r8 + rax - 1], r9b
inc rdi
shr r9, 8
mov r8, r10
cmp rdi, 8
jge 0x14016bd94
lea r10, [r8 - 1]
test r10, r10
jl 0x14016bd8d
cmp rcx, r10
ja 0x14016bda9
jmp 0x14016bde5
lea rax, [0x14026d520]
lea rbx, [0x14032ce40]
nop dword [rax]
call fcn.1400372c0
mov rax, r10
call fcn.140067220
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140064f40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax + rax]
jmp fcn.14016bb60
Function at 0x14016e5e0
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x14016e5f8
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x14016e5f8
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x14016e600
xor eax, eax
ret
cmp rbx, 3
je 0x14016e60c
cmp rbx, 4
jne 0x14016e639
cmp al, 0x2c
ja 0x14016e626
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x14016e636
cmp al, 0x24
je 0x14016e636
nop dword [rax]
cmp al, 0x26
jae 0x14016e636
jmp 0x14016e639
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x14016e636
cmp al, 0x5b
je 0x14016e636
cmp al, 0x5d
jne 0x14016e639
xor eax, eax
ret
cmp al, 0x2f
ja 0x14016e672
nop dword [rax]
cmp al, 0x26
ja 0x14016e651
cmp al, 0x24
je 0x14016e691
cmp al, 0x26
je 0x14016e691
jmp 0x14016e70b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x14016e691
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x14016e708
cmp al, 0x2f
je 0x14016e691
jmp 0x14016e70b
cmp al, 0x3d
ja 0x14016e689
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x14016e691
nop
cmp al, 0x3d
je 0x14016e691
jmp 0x14016e70b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x14016e700
cmp rbx, 2
jg 0x14016e6c7
cmp rbx, 1
je 0x14016e6c1
nop dword [rax]
cmp rbx, 2
jne 0x14016e70b
cmp al, 0x2f
je 0x14016e6b2
cmp al, 0x3b
je 0x14016e6b2
cmp al, 0x2c
jne 0x14016e6b9
mov ecx, 1
jmp 0x14016e6be
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x14016e6ea
cmp al, 0x40
je 0x14016e6d9
cmp al, 0x2f
je 0x14016e6d9
cmp al, 0x3f
jne 0x14016e6e2
mov ecx, 1
nop
jmp 0x14016e6e7
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x14016e6f9
cmp rbx, 7
jne 0x14016e70b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x14016e708
cmp al, 0x7e
jne 0x14016e70b
xor eax, eax
ret
cmp rbx, 7
jne 0x14016e721
cmp al, 0x21
je 0x14016e71d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x14016e721
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x1401b8760
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 0x1401b8835
movdqa xmm0, xmmword [0x14032c460]
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 0x1401b87a1
movdqa xmm0, xmmword [0x14032c470]
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 0x1401b88b7
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 0x1401b888b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x14032c0c8]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x14032c480]
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 0x1401e89a0
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1401e8ac9
push rbp
mov rbp, rsp
sub rsp, 0x28
test rax, rax
je 0x1401e8ac1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov rcx, rax
mov qword [rsp + 0x20], rax
test rbx, rbx
je 0x1401e89e8
mov rax, rcx
mov edi, 0x40
call fcn.1401e9700
nop
test al, al
je 0x1401e8ab9
call fcn.1401ed340
mov rax, qword [rsp + 0x20]
mov rcx, rax
mov ebx, 0x40
mov rax, rcx
nop dword [rax]
call fcn.1401e8640
test al, al
jne 0x1401e8ab1
mov rdx, qword [rsp + 0x20]
cmp word [rdx], 0x5a4d
jne 0x1401e8aa9
mov edx, dword [rdx + 0x3c]
cmp edx, 0x400
jg 0x1401e8aa1
movsxd rdx, edx
mov rax, qword [rsp + 0x38]
add rdx, rax
mov qword [rsp + 0x20], rdx
mov rbx, qword [rsp + 0x40]
nop dword [rax]
test rbx, rbx
je 0x1401e8a5d
mov ecx, 8
mov edi, 0xf8
call fcn.1401e9700
test al, al
je 0x1401e8a98
mov rdx, qword [rsp + 0x20]
mov rax, rdx
mov ebx, 0x40
call fcn.1401e8640
test al, al
jne 0x1401e8a90
call fcn.1401ed480
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
nop
je 0x1401e8a8a
xor eax, eax
add rsp, 0x28
pop rbp
ret
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
nop
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140064f40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1401e89a0

Function at 0x1401f5f90
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.140201160
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.140201160
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 0x1401f6000
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140519294]
mov r12, rcx
test ebx, ebx
jle 0x1401f6130
mov rax, qword [0x140519298]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401f604c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401f60d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1401f6030
mov rcx, r12
call fcn.1401f69a0
mov rsi, rax
test rax, rax
je 0x1401f6152
mov rax, qword [0x140519298]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1401f6ad0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140519298]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401f6137
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401f60cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401f60e0
add dword [0x140519294], 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 [0x140519298]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401f60cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401f5f90
nop dword [rax]
xor ebx, ebx
jmp 0x1401f6057
mov rax, qword [0x140519298]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401f5f90
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1401f5f90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401f6610
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x1404af300]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401f69c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401f69c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401f69c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401f6a15
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 0x1401f6a0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401f69c0
add rax, 0x28
cmp rax, r9
jne 0x1401f69f8
xor eax, eax
ret

Function at 0x1401f6a20
Capabilities:
Parse pe header

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

Function at 0x1401f6ad0
Capabilities:
Parse pe header

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

Function at 0x1401f8480
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1404af380]
mov rax, qword [rsi]
test rax, rax
je 0x1401f8510
cmp qword [rax + 0x30], 0
jne 0x1401f8530
lea rbx, [0x14024af88]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1401f84e0
cmp qword [rax + 0x30], 0
jne 0x1401f8500
lea rdx, [0x14024af88]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1402012f0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401fd380
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401f84c2
test rax, rax
jne 0x1401f8500
call fcn.1401fd380
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1401f84d0
call fcn.1401fd380
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401f84a0
test rax, rax
jne 0x1401f8530
call fcn.1401fd380
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1401f84ab
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1401f8540
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 0x1401f8652
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1401f862a
add rax, 1
cmp rax, 0x6b
je 0x1401f8647
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1401f8620
cmp edx, 0x6a
je 0x1401f8647
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 0x1401f863b
Function at 0x1401f9060
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 [0x1404af380]
mov rax, qword [rsi]
test rax, rax
je 0x1401f9250
cmp qword [rax + 0x28], 0
jne 0x1401f9238
lea rcx, [0x1405193b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1401f9245
call fcn.1401f8670
mov rax, qword [rsi]
test rax, rax
je 0x1401f90e0
cmp qword [rax + 0x30], 0
jne 0x1401f9100
lea rdx, [0x14024af88]
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 0x1401f9114
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401fd380
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401f90b0
test rax, rax
jne 0x1401f9100
call fcn.1401fd380
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 0x1401f90ce
call fcn.1401f81b0
cmp qword [0x14051d050], 0
mov rbx, rax
je 0x1401f90ce
test rax, rax
je 0x1401f90ce
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.1401ff220
cmp eax, 1
je 0x1401f92bd
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 0x1402012f6
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 0x1401f9298
cmp qword [rax + 0x30], 0
je 0x1401f9280
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1402012f6
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 0x1401f909c
mov rax, qword [rsi]
jmp 0x1401f90a9
call fcn.1401fd380
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401f9088
test rax, rax
jne 0x1401f9238
call fcn.1401fd380
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401f909c
jmp 0x1401f90a1
lea rdx, [0x14024af88]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1401f920e
call fcn.1401fd380
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401f9280
test rax, rax
jne 0x1401f920a
call fcn.1401fd380
jmp 0x1401f920a
call fcn.1401f8540
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1404af380]
mov rdx, qword [rax]
lea rax, [0x1405193c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x1401fd200
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 0x1401fd220
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 0x1401fd268
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1401fd214
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 0x1401fd255
Function at 0x1401fd380
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1405194a0]
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 0x1401fd3a3
lea rax, [0x1405194a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1401fd3eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401fd3e8
lea rax, [0x1405194e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1401fd41b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401fd418
xor ecx, ecx
mov byte [0x1405194f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140519502], rdx
lea r8, [0x1405194a0]
lea rbx, [0x1405194fa]
mov qword [0x140519512], rdx
mov qword [0x140519522], rdx
mov qword [0x140519532], rdx
xor edx, edx
mov qword [0x1405194fa], rax
mov qword [0x14051950a], rax
mov qword [0x14051951a], rax
mov qword [0x14051952a], rax
mov byte [0x14051953a], 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 0x1401fd5f6
lea rcx, [0x1405194e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1401fd541
lea rsi, [0x1405193e0]
lea r8, [0x14051953a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1401fd4ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1401fd4e0
lea rcx, [0x1405194e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1401fd5e3
lea rcx, [0x1401fd290]
mov qword [0x1405193e0], 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 [0x1405193e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1405194e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14051953a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1401fd616
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1401fd593
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1401fd580
mov rax, rdx
mov qword [0x1405193e0], rax
lea rsi, [0x1405193e0]
jmp 0x1401fd5b9
cmp rdx, rsi
je 0x1401fd51f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1401fd5b0
cmp rdx, rsi
je 0x1401fd51f
mov qword [rdx + 8], rsi
lea rcx, [0x1401fd290]
call sub.msvcrt.dll__onexit
jmp 0x1401fd51f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1401fd200
xor eax, eax
jmp 0x1401fd538
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1401fd200
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.1401fd200
xor eax, eax
jmp 0x1401fd59f