joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000938c
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r10d, r10d
mov rbx, rcx
mov r11, rdx
mov rsi, r8
test rdx, rdx
jle 0x1400094d6
xor r10d, r10d
cmp byte [rcx], 0x2b
sete r10b
cmp rdx, r10
jle 0x1400094d3
mov al, byte [rcx + r10]
sub eax, 0x30
cmp al, 9
ja 0x1400094d3
mov qword [r8], 0
movsd xmm3, qword [0x140058960]
movabs rdi, 0x7fffffffffffffff
movq xmm2, qword [0x140058970]
movzx r9d, byte [rbx + r10]
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x1400094d6
sub r9, 0x30
mov rax, rdi
mov r8d, 0xa
mov rcx, qword [rsi]
sub rax, r9
cqo
idiv r8
cmp rcx, rax
jle 0x140009420
mov qword [rsi], rdi
jmp 0x140009471
cvtsi2sd xmm1, rcx
imul r12, rcx, 0xa
mulsd xmm1, xmm3
cvtsi2sd xmm0, r12
ucomisd xmm1, xmm0
jp 0x14000943a
je 0x140009455
subsd xmm0, xmm1
movaps xmm4, xmm1
andps xmm4, xmm2
andps xmm0, xmm2
mulsd xmm0, qword [0x140058980]
comisd xmm4, xmm0
jb 0x1400094c5
lea r8, [rsp + 0x28]
mov rdx, r9
mov rcx, r12
call fcn.140009370
test al, al
jne 0x1400094c5
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r10
call fcn.140009370
test al, al
jne 0x1400094c5
mov r10, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
cmp r10, r11
jge 0x1400094d6
test r10, r10
jns 0x1400094a9
lea rdx, [r11 - 1]
mov rcx, r10
call fcn.14000559e
jmp 0x1400094d3
cmp byte [rbx + r10], 0x5f
jne 0x1400093ed
mov edx, 1
mov rcx, r10
call fcn.140009370
test al, al
je 0x1400094cc
call fcn.1400036fb
jmp 0x1400094d3
mov r10, qword [rsp + 0x28]
jmp 0x140009491
xor r10d, r10d
mov rax, r10
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
push r12
sub rsp, 0x20
mov r11, qword [rcx]
mov r10, qword [rcx + 8]
mov r12, r10
mov r9, rdx
lea rdx, [r11 - 1]
mov rcx, r8
mov rax, rdx
sub rax, r8
cmp rax, 0xffffffffffffffff
je 0x140009513
test r8, r8
js 0x140009532
cmp r11, r8
jle 0x140009532
lea rdx, [rax + 1]
test r10, r10
je 0x140009521
lea r12, [rcx + r10 + 8]
mov r8, r9
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x14000938c
mov r8, r11
call fcn.140007297
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x1400094e3
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r10d, r10d
mov rbx, rcx
mov r11, rdx
mov rsi, r8
test rdx, rdx
jle 0x1400094d6
xor r10d, r10d
cmp byte [rcx], 0x2b
sete r10b
cmp rdx, r10
jle 0x1400094d3
mov al, byte [rcx + r10]
sub eax, 0x30
cmp al, 9
ja 0x1400094d3
mov qword [r8], 0
movsd xmm3, qword [0x140058960]
movabs rdi, 0x7fffffffffffffff
movq xmm2, qword [0x140058970]
movzx r9d, byte [rbx + r10]
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x1400094d6
sub r9, 0x30
mov rax, rdi
mov r8d, 0xa
mov rcx, qword [rsi]
sub rax, r9
cqo
idiv r8
cmp rcx, rax
jle 0x140009420
mov qword [rsi], rdi
jmp 0x140009471
cvtsi2sd xmm1, rcx
imul r12, rcx, 0xa
mulsd xmm1, xmm3
cvtsi2sd xmm0, r12
ucomisd xmm1, xmm0
jp 0x14000943a
je 0x140009455
subsd xmm0, xmm1
movaps xmm4, xmm1
andps xmm4, xmm2
andps xmm0, xmm2
mulsd xmm0, qword [0x140058980]
comisd xmm4, xmm0
jb 0x1400094c5
lea r8, [rsp + 0x28]
mov rdx, r9
mov rcx, r12
call fcn.140009370
test al, al
jne 0x1400094c5
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r10
call fcn.140009370
test al, al
jne 0x1400094c5
mov r10, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
cmp r10, r11
jge 0x1400094d6
test r10, r10
jns 0x1400094a9
lea rdx, [r11 - 1]
mov rcx, r10
call fcn.14000559e
jmp 0x1400094d3
cmp byte [rbx + r10], 0x5f
jne 0x1400093ed
mov edx, 1
mov rcx, r10
call fcn.140009370
test al, al
je 0x1400094cc
call fcn.1400036fb
jmp 0x1400094d3
mov r10, qword [rsp + 0x28]
jmp 0x140009491
xor r10d, r10d
mov rax, r10
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
push r12
sub rsp, 0x20
mov r11, qword [rcx]
mov r10, qword [rcx + 8]
mov r12, r10
mov r9, rdx
lea rdx, [r11 - 1]
mov rcx, r8
mov rax, rdx
sub rax, r8
cmp rax, 0xffffffffffffffff
je 0x140009513
test r8, r8
js 0x140009532
cmp r11, r8
jle 0x140009532
lea rdx, [rax + 1]
test r10, r10
je 0x140009521
lea r12, [rcx + r10 + 8]
mov r8, r9
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x14000938c
mov r8, r11
call fcn.140007297
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x14000d399
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x50], xmm9
xor esi, esi
movq xmm8, qword [0x14005b800]
mov rax, rdx
mov rbp, rcx
mov rbx, rdx
mov ecx, 4
cqo
idiv rcx
xor ecx, ecx
cvtsi2sd xmm6, rax
mulsd xmm6, qword [0x14005b7f0]
lea r14, [rax*4]
cvtsi2sd xmm7, r14
movaps xmm9, xmm6
andps xmm9, xmm8
ucomisd xmm6, xmm7
jp 0x14000d407
je 0x14000d42b
movaps xmm0, xmm7
subsd xmm0, xmm6
andps xmm0, xmm8
mulsd xmm0, qword [0x14005b810]
comisd xmm9, xmm0
jae 0x14000d42b
call fcn.1400036fb
jmp 0x14000d52e
cmp rcx, r14
jl 0x14000d445
mov rax, rbx
mov r8d, 4
add rbp, rcx
cqo
idiv r8
xor eax, eax
jmp 0x14000d4b9
cmp rcx, rbx
jl 0x14000d453
lea rdx, [rbx - 1]
jmp 0x14000d528
lea r13, [rcx + 4]
mov eax, dword [rbp + rcx]
xor rcx, r13
test r13, rcx
js 0x14000d421
imul ecx, eax, 0xcc9e2d51
mov edx, 0xf
call fcn.14000d380
mov rcx, qword [0x140061660]
mov edi, eax
call fcn.140044040
cmp byte [rax], 0
jne 0x14000d52e
imul ecx, edi, 0x1b873593
mov edx, 0xd
xor ecx, esi
call fcn.14000d380
mov rcx, r13
lea esi, [rax + rax*4]
sub esi, 0x19ab949c
jmp 0x14000d3ff
movzx r8d, byte [rbp + r8]
shl eax, 8
or eax, r8d
test rdx, rdx
jg 0x14000d511
imul ecx, eax, 0xcc9e2d51
mov edx, 0xf
call fcn.14000d380
mov rcx, qword [0x140061660]
mov edi, eax
call fcn.140044040
cmp byte [rax], 0
jne 0x14000d52e
imul edi, edi, 0x1b873593
xor esi, ebx
xor esi, edi
mov edx, esi
shr edx, 0x10
xor edx, esi
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
jmp 0x14000d52e
lea r8, [rdx - 1]
lea r9, [rcx + r8]
mov rdx, r8
cmp rbx, r9
jg 0x14000d4ad
lea rdx, [rbx - 1]
mov rcx, r9
call fcn.14000559e
nop
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
mov rax, r12
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
mov r8, qword [rcx]
mov rcx, qword [rcx + 8]
test r8, r8
js 0x14000d57b
test rcx, rcx
je 0x14000d56f
add rcx, 8
mov rdx, r8
add rsp, 0x28
jmp 0x14000d399
lea rdx, [r8 - 1]
xor ecx, ecx
call fcn.140007297
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000d556
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x50], xmm9
xor esi, esi
movq xmm8, qword [0x14005b800]
mov rax, rdx
mov rbp, rcx
mov rbx, rdx
mov ecx, 4
cqo
idiv rcx
xor ecx, ecx
cvtsi2sd xmm6, rax
mulsd xmm6, qword [0x14005b7f0]
lea r14, [rax*4]
cvtsi2sd xmm7, r14
movaps xmm9, xmm6
andps xmm9, xmm8
ucomisd xmm6, xmm7
jp 0x14000d407
je 0x14000d42b
movaps xmm0, xmm7
subsd xmm0, xmm6
andps xmm0, xmm8
mulsd xmm0, qword [0x14005b810]
comisd xmm9, xmm0
jae 0x14000d42b
call fcn.1400036fb
jmp 0x14000d52e
cmp rcx, r14
jl 0x14000d445
mov rax, rbx
mov r8d, 4
add rbp, rcx
cqo
idiv r8
xor eax, eax
jmp 0x14000d4b9
cmp rcx, rbx
jl 0x14000d453
lea rdx, [rbx - 1]
jmp 0x14000d528
lea r13, [rcx + 4]
mov eax, dword [rbp + rcx]
xor rcx, r13
test r13, rcx
js 0x14000d421
imul ecx, eax, 0xcc9e2d51
mov edx, 0xf
call fcn.14000d380
mov rcx, qword [0x140061660]
mov edi, eax
call fcn.140044040
cmp byte [rax], 0
jne 0x14000d52e
imul ecx, edi, 0x1b873593
mov edx, 0xd
xor ecx, esi
call fcn.14000d380
mov rcx, r13
lea esi, [rax + rax*4]
sub esi, 0x19ab949c
jmp 0x14000d3ff
movzx r8d, byte [rbp + r8]
shl eax, 8
or eax, r8d
test rdx, rdx
jg 0x14000d511
imul ecx, eax, 0xcc9e2d51
mov edx, 0xf
call fcn.14000d380
mov rcx, qword [0x140061660]
mov edi, eax
call fcn.140044040
cmp byte [rax], 0
jne 0x14000d52e
imul edi, edi, 0x1b873593
xor esi, ebx
xor esi, edi
mov edx, esi
shr edx, 0x10
xor edx, esi
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
jmp 0x14000d52e
lea r8, [rdx - 1]
lea r9, [rcx + r8]
mov rdx, r8
cmp rbx, r9
jg 0x14000d4ad
lea rdx, [rbx - 1]
mov rcx, r9
call fcn.14000559e
nop
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
mov rax, r12
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
mov r8, qword [rcx]
mov rcx, qword [rcx + 8]
test r8, r8
js 0x14000d57b
test rcx, rcx
je 0x14000d56f
add rcx, 8
mov rdx, r8
add rsp, 0x28
jmp 0x14000d399
lea rdx, [r8 - 1]
xor ecx, ecx
call fcn.140007297
xor eax, eax
add rsp, 0x28
ret
Function at 0x140042cf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14004a2e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14004a2e0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140043922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14006fa48]
test eax, eax
je 0x1400439ba
lea rax, [0x14006fa20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14006fa50]
mov qword [rbp - 8], rax
jmp 0x14004399e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140043992
cmp qword [rbp - 0x10], 0
je 0x140043992
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140043958
lea rax, [0x14006fa20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400439bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140043ac0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140043ae8
mov eax, 0
jmp 0x140043b36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140043b11
mov eax, 0
jmp 0x140043b36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140043b31
mov eax, 0
jmp 0x140043b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140043b3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140043bba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140043bb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140043bb1
mov rax, qword [rbp - 8]
jmp 0x140043bcf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140043b84
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14004b6d4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14004b81e
mov rcx, qword [rbp + 0x10]
call fcn.14004fcad
cmp eax, 1
jne 0x14004b811
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14004b7c7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14004b7dd
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14004b7c3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14004b7fc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14004b81f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14004ca15
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14004c83b]
mov rdx, rax
lea rax, [0x1400704d0]
mov rcx, rax
call fcn.14004be46
mov eax, dword [0x140057490]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14004ca68
mov rax, qword [rbp - 0x10]
jmp 0x14004cbc8
call fcn.14004b5b0
mov qword [rbp - 0x10], rax
mov rax, qword [0x140073050]
test rax, rax
je 0x14004ca84
cmp qword [rbp - 0x10], 0
jne 0x14004ca8e
mov eax, 0
jmp 0x14004cbc8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14004b6d4
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14004cb69
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140057490]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14004cbc4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14004ccc2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14004ca15
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14004c869
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14004cd2f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140057490]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14004ce73
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14004cdcc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14004cd87
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14004b48c
mov qword [rbp - 0x10], 0
mov eax, dword [0x140057490]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14004ce73
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14004ce06
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14004ce73
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14004b48c
mov qword [rbp - 0x10], 0
mov eax, dword [0x140057490]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100189000
add rsp, 0x28
jmp 0x10000bae0