joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e5150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movzx eax, byte [rdx]
mov r12, rdx
mov r15, rcx
mov edx, eax
cmp al, 0xb0
jne 0x1401e5175
movzx edx, byte [r12 + 2]
cmp dl, 0xb1
je 0x1401e5290
cmp dl, 0x8a
je 0x1401e51a0
mov rdx, r12
mov rcx, r15
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401e9840
mov rdx, qword [r12 + 0x20]
mov rdx, qword [rdx + 0x20]
mov ebx, dword [rdx]
cmp ebx, 1
je 0x1401e5183
mov dword [r8], 0
cmp al, 0x8a
je 0x1401e52a0
mov eax, dword [r15 + 0x38]
lea r13d, [rax + 1]
add eax, ebx
mov dword [r15 + 0x38], eax
test ebx, ebx
jle 0x1401e5273
xor r14d, r14d
lea rdi, [0x14016e3c0]
lea rbp, [rsp + 0x30]
lea rsi, [0x140155c00]
jmp 0x1401e5225
mov rcx, rbp
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x20], rdx
call fcn.14016f840
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x2c]
jne 0x1401e5262
mov rcx, r15
add r14d, 1
call fcn.1401e8300
cmp r14d, ebx
je 0x1401e5273
movsxd rax, r14d
lea r8d, [r13 + r14]
shl rax, 5
add rax, qword [r12 + 0x20]
cmp byte [r15 + 0x23], 0
mov rdx, qword [rax + 8]
je 0x1401e5214
mov eax, 2
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x54], ax
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x58], 0
test rdx, rdx
jne 0x1401e51f0
mov rcx, r15
add r14d, 1
call fcn.1401e8ba0
cmp r14d, ebx
jne 0x1401e5225
mov eax, r13d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r12 + 0x20]
mov ebx, dword [rdx]
jmp 0x1401e51ab
mov rdx, r12
mov rcx, r15
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401e4cd0
Function at 0x1401e8ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r14, qword [rcx + 0x58]
mov r13d, r8d
mov rsi, rcx
mov r12, rdx
mov edi, r8d
shr r13d, 0x1f
test r14, r14
je 0x1401e8c38
test r13b, r13b
je 0x1401e8c38
mov eax, dword [r14]
lea rbx, [r14 + 8]
test eax, eax
jle 0x1401e8c38
sub eax, 1
shl rax, 5
lea rbp, [r14 + rax + 0x28]
jmp 0x1401e8bf1
add rbx, 0x20
cmp rbp, rbx
je 0x1401e8c38
test byte [rbx + 0x14], 8
je 0x1401e8be8
mov rdx, qword [rbx]
test rdx, rdx
je 0x1401e8cd8
test r12, r12
je 0x1401e8cd8
xor ecx, ecx
mov r9d, 0xffffffff
mov r8, r12
call fcn.1401942e0
test eax, eax
jne 0x1401e8be8
mov eax, dword [rbx + 0x18]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test r12, r12
je 0x1401e8cd0
mov rcx, qword [rsi]
mov rdx, r12
xor r9d, r9d
xor r8d, r8d
call fcn.140177060
mov r12, rax
test rax, rax
je 0x1401e8cd0
test byte [rax + 4], 8
jne 0x1401e8cf0
mov rdx, r14
mov r8, r12
mov rcx, rsi
call fcn.140187ea0
mov rdx, rax
mov eax, edi
test rdx, rdx
je 0x1401e8cb9
mov eax, dword [rdx]
shl r13d, 3
sub eax, 1
cdqe
mov rcx, rax
shl rcx, 5
lea r8, [rdx + rcx + 0x10]
movzx ecx, byte [r8 + 0xc]
and ecx, 0xfffffff7
or r13d, ecx
mov byte [r8 + 0xc], r13b
test edi, edi
jns 0x1401e8caf
mov edi, dword [rsi + 0x38]
add edi, 1
mov dword [rsi + 0x38], edi
shl rax, 5
mov dword [rdx + rax + 0x20], edi
mov eax, edi
mov qword [rsi + 0x58], rdx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r12d, r12d
jmp 0x1401e8c64
cmp rdx, r12
jne 0x1401e8be8
mov eax, dword [rbx + 0x18]
jmp 0x1401e8c23
mov rbx, qword [rsi + 0x10]
movsxd rbp, dword [rbx + 0x90]
cmp ebp, dword [rbx + 0x94]
jge 0x1401e8dc4
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
movsxd rax, ebp
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 0xf
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rcx, qword [rsi]
mov byte [rsi + 0x23], 0
mov eax, edi
cmp byte [rcx + 0x67], 0
jne 0x1401e8d6c
test edi, edi
js 0x1401e8db9
cmp qword [rsi + 0x10], 0
je 0x1401e8d6c
mov r8d, eax
mov rcx, rsi
mov rdx, r12
mov dword [rsp + 0x3c], eax
call fcn.1401e8020
mov rcx, qword [rsi]
mov eax, dword [rsp + 0x3c]
mov byte [rsi + 0x23], 1
mov rdx, r12
mov dword [rsp + 0x3c], eax
call fcn.1401690e0
mov r8, qword [rbx]
mov eax, dword [rsp + 0x3c]
lea rdx, [0x1404f53c0]
mov ecx, dword [rbx + 0x90]
cmp byte [r8 + 0x67], 0
jne 0x1401e8da7
mov rdx, qword [rbx + 0x88]
lea r8, [rbp + rbp*2]
lea rdx, [rdx + r8*8]
mov dword [rdx + 8], ecx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rsi + 0x38]
add eax, 1
mov dword [rsi + 0x38], eax
jmp 0x1401e8d4c
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.140182280
movsxd rbp, eax
jmp 0x1401e8d39
Function at 0x1401e8df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x60
cmp byte [rcx + 0x23], 0
mov r12, rcx
je 0x1401e8e54
mov eax, 2
mov dword [rsp + 0x58], 0
mov word [rsp + 0x54], ax
lea rax, [0x14016e3c0]
mov qword [rsp + 0x38], rax
lea rax, [0x140155c00]
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x1401e8e68
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x20], rdx
call fcn.14016f840
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x2c]
jne 0x1401e8e68
mov rcx, r12
add rsp, 0x60
pop r12
jmp fcn.1401e8300
mov rcx, r12
add rsp, 0x60
pop r12
jmp fcn.1401e8ba0

Function at 0x1401e9840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x60
mov r12, rcx
mov rbx, r8
test rdx, rdx
jne 0x1401e9865
jmp 0x1401e9883
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401e9883
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1401e98f0
test eax, 0x80000
jne 0x1401e9858
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1401e9865
movzx eax, byte [r12 + 0x1f]
test al, al
je 0x1401e9978
sub eax, 1
mov byte [r12 + 0x1f], al
movzx eax, al
mov esi, dword [r12 + rax*4 + 0xe8]
mov r8d, esi
mov rcx, r12
call fcn.1401e5f10
cmp eax, esi
je 0x1401e9968
test esi, esi
jne 0x1401e98d0
mov dword [rbx], 0
add rsp, 0x60
pop rbx
pop rsi
pop r12
ret
movzx edx, byte [r12 + 0x1f]
cmp dl, 7
ja 0x1401e98bb
lea ecx, [rdx + 1]
mov byte [r12 + 0x1f], cl
mov dword [r12 + rdx*4 + 0xe8], esi
jmp 0x1401e98bb
cmp byte [r12 + 0x23], 0
je 0x1401e9883
cmp byte [rdx], 0xb0
je 0x1401e9883
mov eax, 2
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov word [rsp + 0x54], ax
lea rax, [0x14016e3c0]
mov qword [rsp + 0x38], rax
lea rax, [0x140155c00]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], 0
call fcn.14016f840
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x28]
je 0x1401e9883
mov r8d, 0xffffffff
mov rcx, r12
mov dword [rbx], 0
add rsp, 0x60
pop rbx
pop rsi
pop r12
jmp fcn.1401e8ba0
mov dword [rbx], esi
add rsp, 0x60
pop rbx
pop rsi
pop r12
ret
mov eax, dword [r12 + 0x38]
lea esi, [rax + 1]
mov dword [r12 + 0x38], esi
jmp 0x1401e98a4
Function at 0x1401ea5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov rbx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
mov r11, rcx
movzx ecx, byte [rdx]
cmp cl, 0xb0
je 0x1401ea5e8
cmp cl, 0x8a
je 0x1401ea630
xor eax, eax
cmp cl, 0xb1
je 0x1401ea610
pop rbx
ret
movzx eax, byte [rdx + 2]
cmp al, 0xb1
je 0x1401ea670
mov rcx, rdx
cmp al, 0x8a
je 0x1401ea650
mov eax, dword [rdx + 0x2c]
mov qword [rbx], rcx
add eax, r8d
pop rbx
ret
movsxd r8, r8d
mov rcx, r11
shl r8, 5
add r8, qword [rdx + 0x20]
mov rdx, qword [r8 + 8]
mov r8, r10
mov qword [rbx], rdx
pop rbx
jmp fcn.1401e9840
mov rdx, qword [rdx + 0x20]
movsxd rax, r8d
shl rax, 5
add rax, qword [rdx + 0x20]
mov rax, qword [rax + 8]
mov qword [rbx], rax
lea eax, [r8 + r9]
pop rbx
ret
mov rax, qword [rdx + 0x20]
mov r9, qword [rax + 0x20]
cmp dword [r9], 1
jle 0x1401ea5fb
movsxd rax, r8d
shl rax, 5
mov rcx, qword [r9 + rax + 8]
jmp 0x1401ea5fb
mov rcx, qword [rdx + 0x20]
cmp dword [rcx], 1
jle 0x1401ea68a
movsxd rax, r8d
shl rax, 5
mov rcx, qword [rcx + rax + 8]
jmp 0x1401ea5fb
mov rcx, rdx
jmp 0x1401ea5fb
Function at 0x14022c090
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd rdi, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rbp, r8
cmp qword [rcx + rdi*8 + 0x28], 0
mov rsi, rdi
lea r12, [rdi + 4]
mov r13, r9
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
je 0x14022c130
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x14022c0e8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rbx + rdi*8 + 0x28]
mov r8, rbp
mov edx, 1
mov rcx, r12
call fcn.14019f3e0
mov rcx, r12
call fcn.140202be0
cmp eax, 0x65
je 0x14022c150
cmp eax, 0x64
je 0x14022c180
mov rcx, r12
call fcn.1401d17e0
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x14022c0d6
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rdi*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.140220990
mov qword [rbx + r12*8 + 8], rax
jmp 0x14022c0cf
test esi, esi
lea rdx, str.__parent
mov r9, r13
mov r8, rbp
lea rax, str.__rowid
mov rcx, rbx
cmove rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1401c58e0
jmp 0x14022c10f
xor edx, edx
mov rcx, r12
call fcn.14016ba50
mov r9, rax
cmp rax, r13
je 0x14022c10f
test esi, esi
lea rdx, str.__parent
mov r8, rbp
mov rcx, rbx
lea rax, str.__rowid
mov qword [rsp + 0x30], r13
cmove rax, rdx
mov qword [rsp + 0x28], rbp
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1401c58e0
jmp 0x14022c10f
Function at 0x1402489b0
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.140253d60
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.140253d60
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 0x140248a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1404f6334]
mov r12, rcx
test ebx, ebx
jle 0x140248b50
mov rax, qword [0x1404f6338]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140248a6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140248af3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140248a50
mov rcx, r12
call fcn.1402493c0
mov rsi, rax
test rax, rax
je 0x140248b72
mov rax, qword [0x1404f6338]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1402494f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1404f6338]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140248b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140248aec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140248b00
add dword [0x1404f6334], 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 [0x1404f6338]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140248aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402489b0
nop dword [rax]
xor ebx, ebx
jmp 0x140248a77
mov rax, qword [0x1404f6338]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1402489b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1402489b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140249030
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140452220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1402493e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1402493e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1402493e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140249435
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 0x14024942c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1402493e0
add rax, 0x28
cmp rax, r9
jne 0x140249418
xor eax, eax
ret

Function at 0x140249440
Capabilities:
Parse pe header

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

Function at 0x1402494f0
Capabilities:
Parse pe header

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

Function at 0x14024b080
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1404522a0]
mov rax, qword [rsi]
test rax, rax
je 0x14024b110
cmp qword [rax + 0x30], 0
jne 0x14024b130
lea rbx, [0x140273968]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14024b0e0
cmp qword [rax + 0x30], 0
jne 0x14024b100
lea rdx, [0x140273968]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1402540a0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14024ff80
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14024b0c2
test rax, rax
jne 0x14024b100
call fcn.14024ff80
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14024b0d0
call fcn.14024ff80
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14024b0a0
test rax, rax
jne 0x14024b130
call fcn.14024ff80
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14024b0ab
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14024b140
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 0x14024b252
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14024b22a
add rax, 1
cmp rax, 0x6b
je 0x14024b247
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14024b220
cmp edx, 0x6a
je 0x14024b247
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 0x14024b23b
Function at 0x14024bc60
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 [0x1404522a0]
mov rax, qword [rsi]
test rax, rax
je 0x14024be50
cmp qword [rax + 0x28], 0
jne 0x14024be38
lea rcx, [0x1404f6458]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x14024be45
call fcn.14024b270
mov rax, qword [rsi]
test rax, rax
je 0x14024bce0
cmp qword [rax + 0x30], 0
jne 0x14024bd00
lea rdx, [0x140273968]
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 0x14024bd14
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14024ff80
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14024bcb0
test rax, rax
jne 0x14024bd00
call fcn.14024ff80
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 0x14024bcce
call fcn.14024adb0
cmp qword [0x1404fa050], 0
mov rbx, rax
je 0x14024bcce
test rax, rax
je 0x14024bcce
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.140251e20
cmp eax, 1
je 0x14024bebd
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 0x1402540a6
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 0x14024be98
cmp qword [rax + 0x30], 0
je 0x14024be80
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1402540a6
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 0x14024bc9c
mov rax, qword [rsi]
jmp 0x14024bca9
call fcn.14024ff80
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x14024bc88
test rax, rax
jne 0x14024be38
call fcn.14024ff80
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14024bc9c
jmp 0x14024bca1
lea rdx, [0x140273968]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14024be0e
call fcn.14024ff80
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14024be80
test rax, rax
jne 0x14024be0a
call fcn.14024ff80
jmp 0x14024be0a
call fcn.14024b140
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1404522a0]
mov rdx, qword [rax]
lea rax, [0x1404f6468]
mov qword [rdx + 0x10], rax
ret
Function at 0x14024fe00
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 0x14024fe20
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 0x14024fe68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14024fe14
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 0x14024fe55
Function at 0x14024ff80
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1404f6540]
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 0x14024ffa3
lea rax, [0x1404f6548]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14024ffeb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14024ffe8
lea rax, [0x1404f6580]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14025001b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140250018
xor ecx, ecx
mov byte [0x1404f6599], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1404f65a2], rdx
lea r8, [0x1404f6540]
lea rbx, [0x1404f659a]
mov qword [0x1404f65b2], rdx
mov qword [0x1404f65c2], rdx
mov qword [0x1404f65d2], rdx
xor edx, edx
mov qword [0x1404f659a], rax
mov qword [0x1404f65aa], rax
mov qword [0x1404f65ba], rax
mov qword [0x1404f65ca], rax
mov byte [0x1404f65da], 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 0x1402501f6
lea rcx, [0x1404f6580]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140250141
lea rsi, [0x1404f6480]
lea r8, [0x1404f65da]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1402500ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1402500e0
lea rcx, [0x1404f6580]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1402501e3
lea rcx, [0x14024fe90]
mov qword [0x1404f6480], 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 [0x1404f6480]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1404f6580]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1404f65da]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140250216
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140250193
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140250180
mov rax, rdx
mov qword [0x1404f6480], rax
lea rsi, [0x1404f6480]
jmp 0x1402501b9
cmp rdx, rsi
je 0x14025011f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1402501b0
cmp rdx, rsi
je 0x14025011f
mov qword [rdx + 8], rsi
lea rcx, [0x14024fe90]
call sub.msvcrt.dll__onexit
jmp 0x14025011f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14024fe00
xor eax, eax
jmp 0x140250138
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14024fe00
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.14024fe00
xor eax, eax
jmp 0x14025019f