joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cd20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x58]
xor sil, sil
mov edi, 4
mov r14, rdx
movsxd rbp, r8d
mov rbx, rcx
add rdi, qword [rax]
nop word [rax + rax]
mov eax, dword [rdi]
cmp dword [0x14017d9d0], eax
jg 0x14003ce05
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x14003cd85
mov rcx, rbx
call fcn.14003d990
test al, al
jne 0x14003cd60
jmp 0x14003cdea
mov edi, 1
test ebp, ebp
je 0x14003cda0
mov r9, rcx
mov r8, rbp
mov rcx, r14
mov edx, edi
call fcn.1401049ac
jmp 0x14003cdaf
mov r8, r14
lea rdx, [0x14014a048]
call fcn.14003ccd0
cmp qword [0x14017d9d8], 0
jl 0x14003cdcc
cdqe
lock xadd qword [rbx + 0x38], rax
cmp rax, qword [0x14017d9d8]
setge sil
lock xadd dword [rbx + 0x40], edi
inc edi
cmp edi, 1
jne 0x14003cde6
xor ecx, ecx
xchg dword [rbx + 0x40], ecx
mov rcx, qword [rbx + 0x28]
call fcn.1401050b4
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x14017d9d0]
call fcn.1400f8950
cmp dword [0x14017d9d0], 0xffffffff
jne 0x14003cd6e
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax + 0x18]
mov qword [0x14017d9d8], rcx
lea rcx, [0x14017d9d0]
call fcn.1400f88f0
jmp 0x14003cd6e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 4
mov esi, r8d
mov rbp, rdx
mov r9, qword [rax]
mov eax, dword [rcx + r9]
cmp dword [0x14017d9e0], eax
jg 0x14003cf38
cmp qword [0x14017d9e8], 0
mov r8d, esi
mov rdx, rbp
jge 0x14003cea1
lea rcx, [rbx + 0x38]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp 0x14003cd20
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call 0x14003cd20
test al, al
je 0x14003cf23
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x34], ecx
cmp eax, ecx
je 0x14003cf23
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x14003cf1e
lea rax, [rbx + 0x38]
mov edx, 0x88
cmp rdi, rax
mov ecx, 0x38
cmove ecx, edx
lea rdi, [rcx + rbx]
mov rcx, rdi
call fcn.14003d0b0
mov rcx, rdi
call fcn.14003d990
test al, al
je 0x14003cf16
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.14003ee80
xor eax, eax
xchg dword [rbx + 0x34], eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14017d9e0]
call fcn.1400f8950
cmp dword [0x14017d9e0], 0xffffffff
jne 0x14003ce79
mov rax, qword [rbx + 0x18]
lea rcx, [0x14017d9e0]
mov qword [0x14017d9e8], rax
call fcn.1400f88f0
jmp 0x14003ce79
Function at 0x14003ce40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x58]
xor sil, sil
mov edi, 4
mov r14, rdx
movsxd rbp, r8d
mov rbx, rcx
add rdi, qword [rax]
nop word [rax + rax]
mov eax, dword [rdi]
cmp dword [0x14017d9d0], eax
jg 0x14003ce05
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x14003cd85
mov rcx, rbx
call fcn.14003d990
test al, al
jne 0x14003cd60
jmp 0x14003cdea
mov edi, 1
test ebp, ebp
je 0x14003cda0
mov r9, rcx
mov r8, rbp
mov rcx, r14
mov edx, edi
call fcn.1401049ac
jmp 0x14003cdaf
mov r8, r14
lea rdx, [0x14014a048]
call fcn.14003ccd0
cmp qword [0x14017d9d8], 0
jl 0x14003cdcc
cdqe
lock xadd qword [rbx + 0x38], rax
cmp rax, qword [0x14017d9d8]
setge sil
lock xadd dword [rbx + 0x40], edi
inc edi
cmp edi, 1
jne 0x14003cde6
xor ecx, ecx
xchg dword [rbx + 0x40], ecx
mov rcx, qword [rbx + 0x28]
call fcn.1401050b4
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x14017d9d0]
call fcn.1400f8950
cmp dword [0x14017d9d0], 0xffffffff
jne 0x14003cd6e
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax + 0x18]
mov qword [0x14017d9d8], rcx
lea rcx, [0x14017d9d0]
call fcn.1400f88f0
jmp 0x14003cd6e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 4
mov esi, r8d
mov rbp, rdx
mov r9, qword [rax]
mov eax, dword [rcx + r9]
cmp dword [0x14017d9e0], eax
jg 0x14003cf38
cmp qword [0x14017d9e8], 0
mov r8d, esi
mov rdx, rbp
jge 0x14003cea1
lea rcx, [rbx + 0x38]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp 0x14003cd20
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call 0x14003cd20
test al, al
je 0x14003cf23
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x34], ecx
cmp eax, ecx
je 0x14003cf23
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x14003cf1e
lea rax, [rbx + 0x38]
mov edx, 0x88
cmp rdi, rax
mov ecx, 0x38
cmove ecx, edx
lea rdi, [rcx + rbx]
mov rcx, rdi
call fcn.14003d0b0
mov rcx, rdi
call fcn.14003d990
test al, al
je 0x14003cf16
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.14003ee80
xor eax, eax
xchg dword [rbx + 0x34], eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14017d9e0]
call fcn.1400f8950
cmp dword [0x14017d9e0], 0xffffffff
jne 0x14003ce79
mov rax, qword [rbx + 0x18]
lea rcx, [0x14017d9e0]
mov qword [0x14017d9e8], rax
call fcn.1400f88f0
jmp 0x14003ce79
Function at 0x14003d630
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 8]
mov rdi, rcx
test rbx, rbx
je 0x14003d69b
cmp dword [rbx], 0
je 0x14003d69b
mov rax, qword gs:[0x58]
mov ecx, 4
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14017da00], eax
jg 0x14003d6a8
movzx ecx, byte [rdi]
mov rax, rdi
test cl, cl
je 0x14003d68e
movzx edx, byte [0x14017da04]
nop dword [rax + rax]
xor cl, dl
mov byte [rax], cl
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x14003d680
sub eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
lea rcx, [0x14017da00]
call fcn.1400f8950
cmp dword [0x14017da00], 0xffffffff
jne 0x14003d667
movzx eax, byte [rbx + 1]
lea rcx, [0x14017da00]
sub al, byte [rbx + 3]
sub al, byte [rbx + 2]
add al, byte [rbx]
mov byte [0x14017da04], al
call fcn.1400f88f0
jmp 0x14003d667
Function at 0x14003e410
Capabilities:
Create directory
Set file attributes

Disassembly:
test r8, r8
je 0x14003e4d9
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rdi, r8
mov rbx, rdx
mov rcx, rdx
jb 0x14003e436
mov rcx, qword [rdx]
mov rax, qword [rdx + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14003e44f
mov edx, 0x5c
mov rcx, rbx
call fcn.140043600
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14003e460
mov rdx, rdi
mov rcx, rbx
call fcn.140043270
mov r8, qword [rbx + 0x18]
mov rcx, rbx
cmp r8, 8
jb 0x14003e486
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14003e4a3
mov edx, 0x5c
mov rcx, rbx
call fcn.140043600
mov r8, qword [rbx + 0x18]
mov rcx, rbx
cmp r8, 8
jb 0x14003e4af
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [rbx + 0x18], 8
jb 0x14003e4c1
mov rbx, qword [rbx]
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003ee80
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1401770a0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14017da30], eax
jg 0x14003f02d
mov rcx, qword [0x14017da38]
cmp rcx, 2
jl 0x14003f006
movsxd rax, dword [rbx + 0x30]
sub rax, rcx
sub rax, 1
js 0x14003f006
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x38]
call fcn.14003de40
mov rdi, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x38]
call fcn.14003e760
nop
mov r9, rdi
mov r8, rax
lea rcx, [rsp + 0x40]
call fcn.14003fa70
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003ef5a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ef55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f062
call fcn.1400f877c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14003efb1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003efac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f068
call fcn.1400f877c
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003f006
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f001
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f027
call fcn.1400f877c
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f8730
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
call fcn.1400ff670
int3
lea rcx, [0x14017da30]
call fcn.1400f8950
cmp dword [0x14017da30], 0xffffffff
jne 0x14003eec2
mov rax, qword [rbx + 0x20]
mov qword [0x14017da38], rax
lea rcx, [0x14017da30]
call fcn.1400f88f0
jmp 0x14003eec2
call fcn.1400ff670
nop
call fcn.1400ff670
int3
Function at 0x1400500e0
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400500fb
xor eax, eax
add rsp, 0x28
pop rdi
pop rbx
ret
xorps xmm0, xmm0
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x20], rsi
mov qword [rcx + 0x50], rbp
xor eax, eax
mov dword [rcx + 0x58], ebp
mov qword [rcx + 0x48], rbp
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
mov dword [rcx + 0x38], eax
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140050138
call fcn.140104748
mov qword [rbx + 0x40], rbp
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x1400501ce
mov ecx, esi
call fcn.14010b1cc
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1400501ce
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400501ce
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x50], ebp
lea rdx, [0x140147764]
mov qword [rsp + 0x58], rbp
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400501ce
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
mov eax, ebp
cmp dword [rbx + 8], 0xfeef04bd
sete al
mov dword [rbx + 0x58], eax
mov rsi, qword [rsp + 0x20]
cmp dword [rbx + 0x58], ebp
je 0x140050219
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], ebp
lea rdx, str.VarFileInfoTranslation
mov qword [rsp + 0x50], rbp
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140050213
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x48], rax
mov eax, dword [rsp + 0x48]
shr eax, 2
mov dword [rbx + 0x54], eax
cmp qword [rbx + 0x48], rbp
jne 0x14005024a
mov qword [rbx + 0x50], rbp
xorps xmm0, xmm0
mov dword [rbx + 0x58], ebp
xor eax, eax
mov qword [rbx + 0x48], rbp
movups xmmword [rbx + 8], xmm0
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
mov dword [rbx + 0x38], eax
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14005024a
call fcn.140104748
mov qword [rbx + 0x40], rbp
mov eax, dword [rbx + 0x58]
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x140057fc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1400f92f0
sub rsp, rax
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1418]
xor r12d, r12d
mov word [rbp + 0x3c0], r12w
mov byte [rbp - 0x40], r12b
mov rbx, qword [rbp + 0x1420]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.1400022c0
mov edi, eax
mov dword [rsp + 0x20], 3
mov ecx, r12d
mov eax, 8
cmp dword [rbx + 8], 1
cmove ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, 1
lock xadd dword [0x14017e028], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, str.D:Bamboohomexml_data_build_dirCST_DLIN_SOURCES_srccst_commonwil_resource.h
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x14017db38]
test rax, rax
je 0x1400580b0
call rax
mov qword [rbp - 0x60], rax
jmp 0x1400580b4
mov qword [rbp - 0x60], r12
mov rax, qword [0x14017db50]
test rax, rax
je 0x1400580c7
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db48]
test rax, rax
je 0x1400580e4
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db40]
test rax, rax
je 0x1400580f7
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db00]
test rax, rax
je 0x140058111
test byte [rsp + 0x24], 2
jne 0x140058111
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r12d
jl 0x14005812e
mov dword [rsp + 0x28], 0x8000ffff
mov ecx, 0x8000ffff
call fcn.1400024d0
mov dword [rsp + 0x2c], eax
cmp byte [0x14017db79], r12b
jne 0x14005815c
mov rax, qword [0x14017db80]
test rax, rax
je 0x14005814b
call rax
movzx r12d, al
jmp 0x140058157
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r12b
test r12d, r12d
je 0x140058163
test byte [rsp + 0x24], 2
je 0x140058186
mov rax, qword [0x14017db88]
test rax, rax
je 0x1400581dc
cmp byte [0x14017db68], 0
jne 0x1400581dc
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x1400581dc
mov rax, qword [0x14017db88]
test rax, rax
je 0x1400581af
cmp byte [0x14017db68], 0
jne 0x1400581af
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x1400581cf
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001ed0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x1400581ec
cmp byte [0x14017db78], 0
je 0x1400581fb
mov rax, qword [0x14017db30]
test rax, rax
je 0x1400581fb
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.140053e70
int3
Function at 0x140058210
Capabilities:
Print debug messages

Disassembly:
jmp 0x140058530
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.1400f92f0
sub rsp, rax
mov rax, qword [0x1401770a0]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140053a20
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp dword [r8 + 8], edx
cmove ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x14017e028], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14014beb0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x14017db38]
test rax, rax
je 0x140058627
call rax
mov qword [rbp - 0x60], rax
jmp 0x14005862b
mov qword [rbp - 0x60], r15
mov rax, qword [0x14017db50]
test rax, rax
je 0x14005863e
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db48]
test rax, rax
je 0x14005865b
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db40]
test rax, rax
je 0x14005866e
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db00]
test rax, rax
je 0x140058688
test byte [rsp + 0x24], 2
jne 0x140058688
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x140058798
cmp byte [0x14017db79], r15b
jne 0x1400586c1
mov rax, qword [0x14017db80]
test rax, rax
je 0x1400586b0
call rax
movzx r15d, al
jmp 0x1400586bc
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x1400586c8
test byte [rsp + 0x24], 2
je 0x1400586eb
mov rax, qword [0x14017db88]
test rax, rax
je 0x140058741
cmp byte [0x14017db68], 0
jne 0x140058741
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140058741
mov rax, qword [0x14017db88]
test rax, rax
je 0x140058714
cmp byte [0x14017db68], 0
jne 0x140058714
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x140058734
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001ed0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140058751
cmp byte [0x14017db78], 0
je 0x140058760
mov rax, qword [0x14017db30]
test rax, rax
je 0x140058760
call rax
nop
test byte [rsp + 0x24], 1
jne 0x14005878d
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.1400f8730
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140053e70
nop
call fcn.1400540c0
nop
int3
Function at 0x140058530
Capabilities:
Print debug messages

Disassembly:
jmp 0x140058530
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.1400f92f0
sub rsp, rax
mov rax, qword [0x1401770a0]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140053a20
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp dword [r8 + 8], edx
cmove ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x14017e028], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14014beb0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x14017db38]
test rax, rax
je 0x140058627
call rax
mov qword [rbp - 0x60], rax
jmp 0x14005862b
mov qword [rbp - 0x60], r15
mov rax, qword [0x14017db50]
test rax, rax
je 0x14005863e
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db48]
test rax, rax
je 0x14005865b
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db40]
test rax, rax
je 0x14005866e
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x14017db00]
test rax, rax
je 0x140058688
test byte [rsp + 0x24], 2
jne 0x140058688
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x140058798
cmp byte [0x14017db79], r15b
jne 0x1400586c1
mov rax, qword [0x14017db80]
test rax, rax
je 0x1400586b0
call rax
movzx r15d, al
jmp 0x1400586bc
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x1400586c8
test byte [rsp + 0x24], 2
je 0x1400586eb
mov rax, qword [0x14017db88]
test rax, rax
je 0x140058741
cmp byte [0x14017db68], 0
jne 0x140058741
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140058741
mov rax, qword [0x14017db88]
test rax, rax
je 0x140058714
cmp byte [0x14017db68], 0
jne 0x140058714
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x140058734
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001ed0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140058751
cmp byte [0x14017db78], 0
je 0x140058760
mov rax, qword [0x14017db30]
test rax, rax
je 0x140058760
call rax
nop
test byte [rsp + 0x24], 1
jne 0x14005878d
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.1400f8730
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140053e70
nop
call fcn.1400540c0
nop
int3