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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rax, [0x1400ae243]
mov rdi, qword [rcx]
mov r12, qword [rcx + 8]
test rdi, rdi
lea rcx, [r12 + 8]
cmove rcx, rax
mov rbp, rdx
lea rdx, [0x1400ae26d]
mov r13, r8
call fcn.140005400
mov rcx, qword [0x1400d4e60]
mov rsi, rax
call fcn.14009cf40
cmp byte [rax], 0
mov rbx, rax
jne 0x1400061c4
test rsi, rsi
je 0x1400061e8
test r13, r13
jle 0x1400062d0
mov rcx, rbp
mov r9, rsi
mov r8, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x1400061d8
movzx edi, byte [rbx]
mov byte [rbx], 0
mov rcx, rsi
call sub.msvcrt.dll_fclose
cmp byte [rbx], 0
jne 0x1400061c4
mov byte [rbx], dil
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
call fcn.140005660
movzx edi, byte [rbx]
jmp 0x1400061b1
mov edx, 8
mov ecx, 0x40
lea rbp, [0x1400ae244]
call fcn.14000bae0
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x30]
mov rbx, rax
mov rax, qword [0x1400d4ce0]
mov qword [rbx + 0x10], rbp
mov qword [rbx], rax
call fcn.140009d70
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
movabs rdx, 0x6f20746f6e6e6163
lea rax, [rsi + r14 + 8]
mov r13, rsi
mov qword [rax], rdx
add r13, 0xd
movabs rdx, 0x203a6e65706f20
mov qword [rax + 6], rdx
jo 0x140006310
test rdi, rdi
jle 0x1400062f9
mov rcx, rdi
add rcx, 1
jo 0x140006300
test rcx, rcx
js 0x1400062e8
lea rax, [r13 + r14 + 8]
mov r8, rcx
lea rdx, [r12 + 8]
mov rcx, rax
call sub.msvcrt.dll_memcpy
add rdi, r13
jo 0x140006300
mov qword [rbx + 0x18], rdi
mov rdx, rbp
mov rcx, rbx
lea r9, str.syncio.nim
mov qword [rbx + 0x20], r14
lea r8, str.writeFile
mov qword [rbx + 8], 0
mov qword [rsp + 0x20], 0x371
call fcn.14000b840
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r13 - 1]
xor ecx, ecx
call fcn.14000bc90
movzx edi, byte [rbx]
jmp 0x1400061b1
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.140009260
mov rdi, r13
jmp 0x140006289
call fcn.140008c20
jmp 0x1400062f9
call fcn.140008c20
mov r13, rsi
jmp 0x140006254

Function at 0x1400066c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x1400066df
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400a6a90
Function at 0x14000d510
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x1400e0040]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000d59f
mov rdi, qword [fcn.1400a6490]
xor r14d, r14d
lea r12, [rsp + 0x20]
lea rbp, [0x1400ad3e0]
jmp 0x14000d565
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000d5a6
mov ecx, 1
call rdi
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call fcn.14000d3c0
mov rcx, rbp
call fcn.14009cf40
cmp byte [rax], 0
je 0x14000d558
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [fcn.1400a6490]
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x1400ae499]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
call fcn.1400a6a90
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140012ed0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140012f30
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x140012ef0
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x140015be0
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x140015d6a
mov ebx, dword [rcx]
mov rcx, qword [0x1400d4e60]
call fcn.14009cf40
cmp byte [rax], 0
jne 0x140015d30
xor ebp, ebp
mov ecx, 4
jmp 0x140015c49
cmp rdi, rcx
jle 0x140015d40
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
lea ebp, [rax + rax*4 - 0x19ab949c]
cmp r13, rcx
jg 0x140015c38
mov rdx, rdi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015d73
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x140015d5c
cmp rdi, r8
jle 0x140015d5c
movzx edx, byte [r12 + r8]
test r9, r9
je 0x140015ceb
sub rax, 2
mov r8, rax
add r8, rcx
js 0x140015d5c
cmp r8, rdi
jge 0x140015d5c
movzx r8d, byte [r12 + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140015ceb
test rcx, rcx
js 0x140015d59
cmp rdi, rcx
jle 0x140015d59
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400d4e60]
call fcn.14009cf40
cmp byte [rax], 0
jne 0x140015d30
imul eax, ebx, 0x1b873593
xor ebp, edi
xor eax, ebp
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov esi, eax
shr esi, 0x10
xor esi, eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rdi - 1]
call fcn.14000bc90
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call fcn.14000bc90
jmp 0x140015d30
xor ecx, ecx
xor ebp, ebp
jmp 0x140015c69
xor ebx, ebx
jmp 0x140015cf4
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x140015da8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x140015be0
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.14000ea20
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015d80
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x140015d6a
mov ebx, dword [rcx]
mov rcx, qword [0x1400d4e60]
call fcn.14009cf40
cmp byte [rax], 0
jne 0x140015d30
xor ebp, ebp
mov ecx, 4
jmp 0x140015c49
cmp rdi, rcx
jle 0x140015d40
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
lea ebp, [rax + rax*4 - 0x19ab949c]
cmp r13, rcx
jg 0x140015c38
mov rdx, rdi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015d73
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x140015d5c
cmp rdi, r8
jle 0x140015d5c
movzx edx, byte [r12 + r8]
test r9, r9
je 0x140015ceb
sub rax, 2
mov r8, rax
add r8, rcx
js 0x140015d5c
cmp r8, rdi
jge 0x140015d5c
movzx r8d, byte [r12 + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140015ceb
test rcx, rcx
js 0x140015d59
cmp rdi, rcx
jle 0x140015d59
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400d4e60]
call fcn.14009cf40
cmp byte [rax], 0
jne 0x140015d30
imul eax, ebx, 0x1b873593
xor ebp, edi
xor eax, ebp
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov esi, eax
shr esi, 0x10
xor esi, eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rdi - 1]
call fcn.14000bc90
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call fcn.14000bc90
jmp 0x140015d30
xor ecx, ecx
xor ebp, ebp
jmp 0x140015c69
xor ebx, ebx
jmp 0x140015cf4
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x140015da8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x140015be0
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.14000ea20
xor eax, eax
add rsp, 0x28
ret
Function at 0x140052b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
lea rbp, [rdx + 7]
mov rsi, rcx
mov r14, rdx
cmovns rbp, rdx
mov ebx, r8d
sar rbp, 3
cmp rdx, 7
jle 0x140052c75
mov rcx, qword [0x1400d4e60]
call fcn.14009cf40
cmp byte [rax], 0
jne 0x140052c68
xor r8d, r8d
lea rcx, [0x1400b7860]
nop dword [rax + rax]
mov eax, dword [rsi + r8*8]
xor eax, ebx
mov ebx, dword [rsi + r8*8 + 4]
add r8, 1
mov edx, ebx
movzx r9d, bl
movzx edi, bh
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [rcx + rdx*4]
xor edx, dword [rcx + r9*4 + 0xc00]
movzx r9d, al
xor edx, dword [rcx + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor edx, dword [rcx + r9*4 + 0x1000]
xor edx, dword [rcx + rdi*4 + 0x800]
movzx edi, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x400]
xor edx, dword [rcx + rdi*4 + 0x1800]
mov ebx, dword [rcx + rax*4 + 0x1400]
xor ebx, edx
cmp rbp, r8
jg 0x140052bc0
shl rbp, 3
cmp r14, rbp
jle 0x140052c68
add rbp, rsi
lea rcx, [0x1400b7860]
add rsi, r14
nop dword [rax]
movzx edx, byte [rbp]
add rbp, 1
xor edx, ebx
shr ebx, 8
movzx edx, dl
xor ebx, dword [rcx + rdx*4]
cmp rbp, rsi
jne 0x140052c50
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
xor ebp, ebp
jmp 0x140052c37
Function at 0x14006fa20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movdqu xmm6, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm5, xmmword [rcx + 0x30]
movd xmm0, r8d
lea rax, [rdx - 0x40]
pxor xmm0, xmm6
cmp rax, 0x3f
jle 0x14006fc60
lea r8, [rdx - 0x80]
movdqa xmm4, xmmword [0x1400cbd60]
lea rax, [rcx + 0x40]
mov rdx, r8
and rdx, 0xffffffffffffffc0
lea rdx, [rcx + rdx + 0x80]
nop dword [rax]
movdqa xmm7, xmm3
movdqa xmm6, xmm2
movdqa xmm1, xmm5
add rax, 0x40
movdqa xmm8, xmm0
pclmulqdq xmm7, xmm4, 0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm8, xmm4, 0
pclmulqdq xmm5, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm3, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0x11
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
movdqu xmm8, xmmword [rax - 0x40]
pxor xmm1, xmm5
movdqu xmm7, xmmword [rax - 0x30]
movdqu xmm6, xmmword [rax - 0x20]
movdqu xmm5, xmmword [rax - 0x10]
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
pxor xmm5, xmm1
cmp rax, rdx
jne 0x14006fa80
mov rax, r8
shr rax, 6
lea rdx, [rax + 2]
shl rax, 6
mov r9, rax
mov rax, r8
shl rdx, 6
sub rax, r9
movdqa xmm1, xmmword [0x1400cbd50]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm1, 0x11
pxor xmm0, xmm4
pxor xmm3, xmm0
movdqa xmm0, xmm3
pclmulqdq xmm3, xmm1, 0x11
pclmulqdq xmm0, xmm1, 0
pxor xmm3, xmm0
pxor xmm2, xmm3
movdqa xmm3, xmm2
pclmulqdq xmm2, xmm1, 0x11
pclmulqdq xmm3, xmm1, 0
movdqa xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm5
cmp rax, 0xf
jle 0x14006fbe1
movdqa xmm2, xmm0
movdqu xmm7, xmmword [rcx + rdx]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
cmp rax, 0x1f
jle 0x14006fbe1
movdqa xmm2, xmm0
movdqu xmm7, xmmword [rcx + rdx + 0x10]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
cmp rax, 0x2f
jle 0x14006fbe1
movdqa xmm2, xmm0
movdqu xmm3, xmmword [rcx + rdx + 0x20]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm3
movdqa xmm2, xmm0
psrldq xmm0, 8
movaps xmm6, xmmword [rsp]
movdqa xmm3, xmmword [0x1400cbd90]
pclmulqdq xmm2, xmm1, 0x10
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmm0, xmm2
movdqa xmm2, xmmword [0x1400cbd70]
psrldq xmm0, 4
pand xmm1, xmm2
pclmulqdq xmm1, xmmword [0x1400cbd80], 0
pxor xmm1, xmm0
movdqa xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0x38
ret
mov edx, 0x40
jmp 0x14006fb22
Function at 0x14006fc70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x1400cbda0]
sar r8, 3
cmp rdx, 7
jle 0x14006fd40
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x14006fca0
shl r8, 3
cmp r10, r8
jle 0x14006fd38
add r8, r9
lea rcx, [0x1400cbda0]
add r9, r10
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x14006fd20
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x14006fd0e
Function at 0x14009c0b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1400a6490
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a6490
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14009c120
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e0ae4]
mov rbx, rcx
test esi, esi
jle 0x14009c250
mov rax, qword [0x1400e0ae8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009c16b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009c1f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009c150
mov rcx, rbx
call fcn.14009cb90
mov rdi, rax
test rax, rax
je 0x14009c272
mov rax, qword [0x1400e0ae8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009ccd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e0ae8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009c257
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009c1ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009c200
add dword [0x1400e0ae4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e0ae8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009c1ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009c0b0
nop dword [rax]
xor esi, esi
jmp 0x14009c178
mov rax, qword [0x1400e0ae8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009c0b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009c0b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009c800
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0b40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e0b20]
test rbx, rbx
je 0x14009c85c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009c853
test eax, eax
jne 0x14009c853
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009c838
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009cb90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d4e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009cbb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009cbb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009cbb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009cc0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009cc04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009cbb0
add rax, 0x28
cmp rax, r9
jne 0x14009cbf0
xor eax, eax
ret

Function at 0x14009cc10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d4e80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009cc2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009cc38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009cc2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14009ccd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d4e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009ccef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009ccf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400a7540
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 + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x1400a7642
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400a761a
add rax, 1
cmp rax, 0x6b
je 0x1400a7637
cmp byte [rcx + rax], 0
jne 0x1400a7610
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400a7637
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400a7628
Function at 0x1400a79e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e1740], 1
je 0x1400a7a58
lea rdi, [0x1400e1740]
mov rcx, rdi
call fcn.1400a72d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400a6c70
mov esi, dword [0x1400e1740]
test esi, esi
jne 0x1400a7a68
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400add98], eax
cmp eax, 0xffffffff
je 0x1400ac4d6
mov dword [0x1400e1740], 1
mov rcx, rbp
call fcn.1400a6f40
test rbx, rbx
je 0x1400a7a58
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400a7660
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400a7a38
mov ecx, 2
call qword [fcn.1400a6490]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400a7a38
call sub.msvcrt.dll_abort
nop

Function at 0x1400a7a90
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400a7770
cmp qword [0x1400e4048], 0
mov rbx, rax
je 0x1400a7ba8
test rax, rax
je 0x1400a7ba8
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.1400aad30
cmp eax, 1
je 0x1400a7bb6
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 rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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 fcn.1400ac4dc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400add98]
mov rdx, rbx
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
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400a7bbc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400a7540
nop
jmp fcn.1400ac4dc

Function at 0x1400a7bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400a79e0
mov ecx, dword [0x1400add98]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a7bf0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400a7a90
Function at 0x1400a8360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400a8488
cmp eax, 1
je 0x1400a83bb
call fcn.1400a72d0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400a6c70
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400a83d0
cmp r12d, 1
jne 0x1400a8460
mov rcx, rbp
call fcn.1400a6f40
test rdi, rdi
je 0x1400a83bb
mov rcx, rdi
call fcn.1400a7660
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400a7740]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400a79e0
mov ecx, dword [0x1400add98]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400a84c8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400a79e0
mov ecx, dword [0x1400add98]
call r12
test rax, rax
je 0x1400a84b0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400a79e0
mov ecx, dword [0x1400add98]
call r12
test rax, rax
je 0x1400a84a0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400a83a6
mov ecx, 2
call qword [fcn.1400a6490]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400a83a6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400a7a90
test rax, rax
jne 0x1400a8449
jmp 0x1400ac4f5
call fcn.1400a7a90
test rax, rax
jne 0x1400a8425
jmp 0x1400ac50e
call fcn.1400a7a90
test rax, rax
jne 0x1400a83ff
jmp 0x1400ac504
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400a8750
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400a79e0
mov ecx, dword [0x1400add98]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a87c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400aad40
cmp esi, dword [rbx + 0x48]
jae 0x1400a87a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400a87a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400aad80
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400a7a90
mov rbx, rax
jmp 0x1400a877d