joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ed200
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 0x1401ed2d5
movdqa xmm0, xmmword [0x1403a8bf0]
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 0x1401ed241
movdqa xmm0, xmmword [0x1403a8c00]
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 0x1401ed357
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 0x1401ed32b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x1403a8638]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x1403a90e0]
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 0x140235fa0
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140236155
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
nop dword [rax + rax]
test rax, rax
je 0x140236149
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov rcx, rax
mov qword [rsp + 0x30], rax
nop dword [rax + rax]
test rbx, rbx
je 0x140235fff
mov rax, rcx
mov edi, 0x40
call fcn.140236ee0
test al, al
je 0x14023613d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [0x1402d05a0]
call fcn.14000dec0
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x1405965f8]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.14010d7a0
nop word [rax + rax]
test rax, rax
jne 0x140236131
mov rdx, qword [rsp + 0x30]
cmp word [rdx], 0x5a4d
jne 0x140236125
mov edx, dword [rdx + 0x3c]
nop dword [rax]
cmp edx, 0x400
jg 0x140236119
movsxd rdx, edx
mov rax, qword [rsp + 0x48]
add rdx, rax
mov qword [rsp + 0x30], rdx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14023609e
mov ecx, 8
mov edi, 0xf8
call fcn.140236ee0
test al, al
je 0x14023610d
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea rax, [0x1402d05a0]
call fcn.14000dec0
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x1405965f8]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.14010d7a0
test rax, rax
jne 0x140236101
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1402360f7
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
xor eax, eax
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.1400632e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140235fa0
Function at 0x140236400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1402364c2
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 0x10
jae 0x1402364b6
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], cl
mov qword [rsp + 0x10], rax
xor ebx, ebx
call fcn.140235fa0
nop dword [rax]
test rax, rax
je 0x1402364aa
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x10]
call fcn.140236240
test al, al
je 0x140236470
mov ecx, dword [rsp + 0x38]
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
lea rcx, [rdx + rcx*8]
lea rcx, [rcx + 0x88]
jmp 0x140236483
mov edx, dword [rsp + 0x38]
mov edx, edx
mov rbx, qword [rsp + 0x18]
lea rcx, [rbx + rdx*8]
lea rcx, [rcx + 0x78]
movzx edx, byte [rsp + 0x3c]
test dl, dl
jne 0x140236491
cmp dword [rcx], 0
je 0x14023649e
mov rax, rcx
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov byte [rsp + 0x14], cl
call fcn.1400632e0
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
movzx ecx, byte [rsp + 0x14]
jmp fcn.140236400

Function at 0x14023e890
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.140249a30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.___________________________n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140249a30
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 0x14023e900
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1405f4694]
mov r12, rcx
test ebx, ebx
jle 0x14023ea30
mov rax, qword [0x1405f4698]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14023e94c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14023e9d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14023e930
mov rcx, r12
call fcn.14023f2a0
mov rsi, rax
test rax, rax
je 0x14023ea52
mov rax, qword [0x1405f4698]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14023f3d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405f4698]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14023ea37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14023e9cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14023e9e0
add dword [0x1405f4694], 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 [0x1405f4698]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14023e9cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14023e890
nop dword [rax]
xor ebx, ebx
jmp 0x14023e957
mov rax, qword [0x1405f4698]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14023e890
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14023e890
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14023ef10
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140591a00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14023f2c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14023f2c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14023f2c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14023f315
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 0x14023f30c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14023f2c0
add rax, 0x28
cmp rax, r9
jne 0x14023f2f8
xor eax, eax
ret

Function at 0x14023f320
Capabilities:
Parse pe header

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

Function at 0x14023f3d0
Capabilities:
Parse pe header

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

Function at 0x140240d50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140591a80]
mov rax, qword [rsi]
test rax, rax
je 0x140240de0
cmp qword [rax + 0x30], 0
jne 0x140240e00
lea rbx, [0x1402a8d68]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140240db0
cmp qword [rax + 0x30], 0
jne 0x140240dd0
lea rdx, [0x1402a8d68]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140249bc0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140245c50
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140240d92
test rax, rax
jne 0x140240dd0
call fcn.140245c50
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140240da0
call fcn.140245c50
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140240d70
test rax, rax
jne 0x140240e00
call fcn.140245c50
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140240d7b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140240e10
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 0x140240f22
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140240efa
add rax, 1
cmp rax, 0x6b
je 0x140240f17
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140240ef0
cmp edx, 0x6a
je 0x140240f17
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 0x140240f0b
Function at 0x140241930
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 [0x140591a80]
mov rax, qword [rsi]
test rax, rax
je 0x140241b20
cmp qword [rax + 0x28], 0
jne 0x140241b08
lea rcx, [0x1405f47b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140241b15
call fcn.140240f40
mov rax, qword [rsi]
test rax, rax
je 0x1402419b0
cmp qword [rax + 0x30], 0
jne 0x1402419d0
lea rdx, [0x1402a8d68]
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 0x1402419e4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140245c50
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140241980
test rax, rax
jne 0x1402419d0
call fcn.140245c50
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 0x14024199e
call fcn.140240a80
cmp qword [0x1405f8050], 0
mov rbx, rax
je 0x14024199e
test rax, rax
je 0x14024199e
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.140247af0
cmp eax, 1
je 0x140241b8d
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 0x140249bc6
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 0x140241b68
cmp qword [rax + 0x30], 0
je 0x140241b50
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140249bc6
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 0x14024196c
mov rax, qword [rsi]
jmp 0x140241979
call fcn.140245c50
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140241958
test rax, rax
jne 0x140241b08
call fcn.140245c50
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14024196c
jmp 0x140241971
lea rdx, [0x1402a8d68]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140241ade
call fcn.140245c50
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140241b50
test rax, rax
jne 0x140241ada
call fcn.140245c50
jmp 0x140241ada
call fcn.140240e10
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140591a80]
mov rdx, qword [rax]
lea rax, [0x1405f47c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140245ad0
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 0x140245af0
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 0x140245b38
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140245ae4
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 0x140245b25
Function at 0x140245c50
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1405f48a0]
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 0x140245c73
lea rax, [0x1405f48a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140245cbb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140245cb8
lea rax, [0x1405f48e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140245ceb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140245ce8
xor ecx, ecx
mov byte [0x1405f48f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1405f4902], rdx
lea r8, [0x1405f48a0]
lea rbx, [0x1405f48fa]
mov qword [0x1405f4912], rdx
mov qword [0x1405f4922], rdx
mov qword [0x1405f4932], rdx
xor edx, edx
mov qword [0x1405f48fa], rax
mov qword [0x1405f490a], rax
mov qword [0x1405f491a], rax
mov qword [0x1405f492a], rax
mov byte [0x1405f493a], 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 0x140245ec6
lea rcx, [0x1405f48e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140245e11
lea rsi, [0x1405f47e0]
lea r8, [0x1405f493a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140245dbd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140245db0
lea rcx, [0x1405f48e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140245eb3
lea rcx, [0x140245b60]
mov qword [0x1405f47e0], 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 [0x1405f47e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1405f48e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1405f493a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140245ee6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140245e63
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140245e50
mov rax, rdx
mov qword [0x1405f47e0], rax
lea rsi, [0x1405f47e0]
jmp 0x140245e89
cmp rdx, rsi
je 0x140245def
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140245e80
cmp rdx, rsi
je 0x140245def
mov qword [rdx + 8], rsi
lea rcx, [0x140245b60]
call sub.msvcrt.dll__onexit
jmp 0x140245def
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140245ad0
xor eax, eax
jmp 0x140245e08
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140245ad0
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.140245ad0
xor eax, eax
jmp 0x140245e6f
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push rcx
mov eax, 0xa5e9c01a
insb byte [rdi], dx
wait
invalid
test byte [rdx + 0x5f], al
pop rdi
enter 0x7290, 0xffffffffffffffb9
cmp dword [rcx - 0x1243edae], edi
invalid
in eax, dx
mov ecx, 0xedbc1252
mov esp, 0x3a2baded
lodsd eax, dword [rsi]
sub edi, dword [rdx]
xchg ecx, eax
mov edx, 0xed87a62c
hlt
jp 0x14003f673
xchg ebp, eax
invalid
cmp edx, dword [rcx + 0x178ff4d4]
scasd eax, dword [rdi]
jg 0x14003f640
adc byte [rcx + 0x60e57058], bl
mov dh, byte [rcx - 0x76908b7e]
outsb dx, byte [rsi]
xchg esi, eax
std
mov esp, 0x5ae0b6ac
invalid
xchg edi, eax
adc dword [rdx - 0x6c1189e], esi
xchg edx, eax
mov eax, 0xe040afec
movabs dword [0xc1d9acb141978d86], eax
xchg edi, eax
mov r9b, 0xac
fld st(1)
xchg edi, eax
mov r9b, 0xac
fld st(1)
jnp 0x14003f67b
cmp byte [rbx + 0x111c702c], 0xdc
invalid
xlatb
lea ecx, [rdi + 0x1c]
invalid
xchg esi, eax
movsd dword [rdi], dword [rsi]
xchg esp, eax
jae 0x14003f78f
adc eax, 0x4fdb1fcc
cdq
movsd dword [rdi], dword [rsi]
cmp r15, qword [rsi]
neg dword [rax - 0x296016a5]
invalid
adc byte [rcx + 0x1f], dh
ret 0x5637

Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020640]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f118]
lea rcx, [0x140020640]
mov rdi, rdx
inc rdx
mov qword [0x14001f118], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021210]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret