joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d7fc0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x1400d802b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x1400d8059
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.140123e20
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x1400d8024
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x1400d8000
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x1400d8085
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140123e5c
jmp 0x1400d7ffb
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x1400d8042
mov rcx, rdi
call fcn.1400d3de0
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400d8059
mov rax, rdi
shr rax, 0x3d
je 0x1400d7fdf
call fcn.14015f3e0
cmp rdi, rbx
jae 0x1400d801c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x1400d8187
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400d818c
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400d8101
cmp rcx, rdi
jb 0x1400d8108
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x1400d8108
lea rax, [rdi - 1]
and rcx, rax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x1400d801c
lea r11, [rdi - 1]
jmp 0x1400d816e
mov qword [rdx + rax*8], r8
jmp 0x1400d815c
and rax, r11
cmp rax, rcx
je 0x1400d8159
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x1400d8121
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x1400d801c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400d8127
cmp rax, rdi
jb 0x1400d812a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x1400d812a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.14014334c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1401c1c20]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x1400d823f
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x1400d823f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x1400d824a
mov rcx, rax
call fcn.1400d3de0
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x1400d801c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140187a30
Function at 0x1400d8690
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140203f10]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d86f0
mov rsi, qword [0x140203f08]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140203f10]
call fcn.140123f80
cmp dword [0x140203f10], 0xffffffff
jne 0x1400d86cc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140127960
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140123e20
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140203f58]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d87b0
lea r8, [0x140203f28]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140081830
mov qword [0x140203f08], rsi
lea rcx, [0x140203f10]
call fcn.140124018
jmp 0x1400d86cc
lea rcx, [0x140203f58]
call fcn.140123f80
cmp dword [0x140203f58], 0xffffffff
jne 0x1400d8781
xorps xmm0, xmm0
movups xmmword [0x140203f48], xmm0
movups xmmword [0x140203f38], xmm0
movups xmmword [0x140203f28], xmm0
lea rcx, [0x140203f28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140203f58]
call fcn.140124018
jmp 0x1400d8781
Function at 0x1400d9010
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140203fd8]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d91fc
mov rsi, qword [0x140203fd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400d9242
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x140203f80], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x140203f84]
mov dword [0x140203f84], ebx
cmovne ebp, ecx
mov eax, dword [0x140203f88]
cmp ebp, eax
je 0x1400d91db
test eax, eax
je 0x1400d916c
mov rax, qword [str._G_b_]
lea rcx, [0x1400d92f0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400d9260
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1400d9289
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140203ff0]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140203fe0]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x140203f90]
cmp r8, 2
jb 0x1400d9271
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x140203f90], rax
mov ecx, dword [0x140203f88]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x140203f88], ebp
test ebx, ebx
je 0x1400d91db
mov rax, qword [str._G_b_]
lea rcx, [0x1400d92f0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400d924f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1400d92ba
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140203ff0]
mov qword [0x140203fe0], rax
mov ecx, dword [0x140203f88]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401249d0
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140203fd8]
call fcn.140123f80
cmp dword [0x140203fd8], 0xffffffff
jne 0x1400d904e
mov ecx, 8
call fcn.140123e20
mov rsi, rax
mov rcx, rax
call fcn.1400d9bb0
mov qword [0x140203fd0], rsi
lea rcx, [0x140203fd8]
call fcn.140124018
jmp 0x1400d904e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400d9066
mov rcx, rdi
call qword [0x140215008]
mov rax, qword [rdi]
jmp 0x1400d91c8
mov rcx, rdi
call qword [0x140215008]
mov rax, qword [rdi]
jmp 0x1400d9100
cmp rcx, rax
je 0x1400d9159
add rcx, rdx
cmp rcx, 1
ja 0x1400d9159
jmp 0x1400d92eb
mov r8, qword [0x140203ff0]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1400d90fb
mov r8, qword [0x140203ff0]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1400d91c8
int3
Function at 0x1400d9390
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400d96e0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140203fa0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400d93ee
jnp 0x1400d9454
ucomisd xmm0, xmm6
jne 0x1400d93f6
jnp 0x1400d9450
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401c0e50]
subpd xmm1, xmmword [0x1401c0e60]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401c0750]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1400d9428
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140203fb0]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d9569
mov eax, dword [0x140203fc0]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d95a3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140203fb8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401ce588]
ucomisd xmm2, xmm1
ja 0x1400d93ee
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140203fa8]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401c0e50]
subpd xmm0, xmmword [0x1401c0e60]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140203fa0], xmm0
jmp 0x1400d93ee
lea rcx, [0x140203fb0]
call fcn.140123f80
cmp dword [0x140203fb0], 0xffffffff
jne 0x1400d949d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140203fa8], rdx
lea rcx, [0x140203fb0]
call fcn.140124018
jmp 0x1400d949d
lea rcx, [0x140203fc0]
call fcn.140123f80
cmp dword [0x140203fc0], 0xffffffff
jne 0x1400d94c2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140203fb8], rax
lea rcx, [0x140203fc0]
call fcn.140124018
jmp 0x1400d94c2
Function at 0x1400d9970
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400d9a0a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400d99f4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400d99d1
mov qword [rsi], rdi
call fcn.1400ef4f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1400d9a0e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ef4f0
mov rcx, qword [rsi]
call fcn.1400d8800
mov qword [rsi], 0
jmp 0x1400d99bf
mov byte [rsi + 8], 0
int3
Function at 0x1400f6b70
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x1400f6c49
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x1400f6c4d
xor eax, eax
lea rcx, [0x1401d2e20]
nop
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x1400f6bc0
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.1400f61b0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400f6c65
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1400f6c10
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401249d0
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400f6c33
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x1400f6bb5
jmp 0x1400f6c4f
bt eax, 9
jae 0x1400f6c85
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x1400f6c10
lea rcx, [0x140004520]
jmp 0x1400f6c0d
call fcn.1401976e0
lea rax, [0x140197ee0]
test rdi, rdi
je 0x1400f6c10
lea rcx, [0x1401975c0]
jmp 0x1400f6c0d

Function at 0x140104050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14010407b
xor ecx, ecx
lea r9, [0x1401d3900]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140104060
ret
Function at 0x140107540
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400b28e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140204898]
lea rdx, [0x1400b2780]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401075d4
cmp dword [0x1402048a0], 0
jne 0x1401075d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1402048a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401075d0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1401075b8
call fcn.14013e2b0
int3
Function at 0x14011cd30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test edx, edx
jne 0x14011ce11
movabs rax, 0xfffffffc00000000
and rax, rsi
cmp rax, qword [0x1401e8e08]
jne 0x14011cd73
mov rcx, rsi
call fcn.1400c7550
mov ecx, 0x30
call fcn.140123e20
mov rdi, rax
lea rdx, [0x1401aacd0]
lea r8, [0x1400fd580]
mov rcx, rax
call fcn.1400efcc0
lea rax, [fcn.14011cd30]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rsi
mov qword [rsp + 0x28], rdi
mov rax, qword [rsi + 0x98]
mov edi, dword [rax + 0x40]
mov r14, qword [rax + 0x30]
cmp byte [rax + 0x48], 0
je 0x14011cf02
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rsi + 8]
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
je 0x14011ce90
lea rcx, [rsi + 0xc8]
mov r9, qword [r14 + 0x10]
mov edx, VarR8FromUI1
mov r8d, edi
call fcn.1400f4410
movsxd rcx, edi
call fcn.14011cb90
lea rcx, [rsp + 0x28]
call fcn.1400efd70
mov rax, qword [rsi + 0x98]
mov rcx, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rcx, rcx
je 0x14011ce33
lock dec dword [rcx + 8]
je 0x14011cf26
mov rax, qword [rsi + 0x98]
mov dword [rax + 0x40], 0
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x14011cf74
lea rbx, [rsp + 0x30]
mov qword [rbx], rcx
mov qword [rsi + 0xa0], 0
mov rax, qword [rcx + 8]
mov edx, edi
call qword [0x140215008]
mov rcx, rbx
call fcn.1400efd70
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401249d0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, eax
cmp eax, 0x2733
jne 0x14011cf3c
mov byte [rsi + 0x91], 1
lea rcx, [rsi + 0xa8]
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.1400efd00
mov rsi, qword [rsi + 0x98]
lea rbx, [rsi + 0x78]
lea rdx, str.WatchForRead
lea r8, str....._net_socket_tcp_socket_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xcf
call fcn.1400ef4d0
mov rdx, qword [rsi + 8]
add rsi, 0x58
mov rcx, rbx
mov r8, rsi
mov r9, r14
call fcn.1400d88f0
mov rcx, rdi
jmp 0x14011ce73
mov rdx, qword [rax + 8]
mov rcx, qword [rsi + 8]
mov r8d, 0x21
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rax, qword [rsi + 0x98]
mov byte [rax + 0x48], 1
jmp 0x14011cdc2
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140215008]
jmp 0x14011ce33
mov ecx, ebx
call fcn.1400c08c0
mov edi, eax
lea rcx, [rsi + 0xc8]
mov edx, VarR8FromUI1
mov r8d, eax
mov r9d, ebx
call fcn.1401ad0b0
lea rcx, [rsp + 0x28]
call fcn.1400efd70
cmp edi, 0xffffffff
jne 0x14011ce11
jmp 0x14011ce78
int3
Function at 0x140121230
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x1401f78f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1d8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 0x1d8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1401f6920], 9
jne 0x1401212c5
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [0x140215008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x1401212ae

Function at 0x140124c34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140124c7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140124c7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140124c7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140124c7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140124c7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140124c80
xor al, al
add rsp, 0x28
ret

Function at 0x1401250bc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140125134
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140125134
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140125134
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140125128
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140125146
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140125116
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140125136
Function at 0x140138028
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14013805f
call fcn.14013b2f4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14013c990
xor eax, eax
jmp 0x1401380ed
mov rdx, r9
mov rcx, r8
call fcn.140138110
mov rbx, rax
test rax, rax
je 0x1401380ea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140138180]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401380d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14013b334
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401380be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401380cd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400cb040
jmp 0x1401380ea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401380e7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140138254
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14013839c
Function at 0x140138680
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14013d208
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14013d208
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401387d0
cmp rax, 0xffffffffffffffff
je 0x1401387d0
xor edi, edi
test rbp, rbp
jle 0x14013877b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400cb0e0
mov rbx, rax
test rax, rax
jne 0x140138708
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140138771
mov edx, 0x8000
mov ecx, r14d
call fcn.14013e388
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140141ba0
cmp eax, 0xffffffff
je 0x140138751
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140138718
mov edx, r15d
mov ecx, r14d
call fcn.14013e388
jmp 0x140138771
cmp byte [rsi + 0x38], dil
je 0x140138768
cmp dword [rsi + 0x34], 5
jne 0x140138768
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x140138771
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400cb040
jmp 0x1401387e4
jns 0x1401387e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14013d208
cmp rax, 0xffffffffffffffff
jne 0x14013879c
cmp byte [rsi + 0x30], dil
je 0x1401387e4
mov edi, dword [rsi + 0x2c]
jmp 0x1401387e4
mov ecx, r14d
call fcn.14013b74c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401387e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1401387e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401387dd
mov eax, dword [rsi + 0x2c]
jmp 0x1401387e2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14013d208
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14013bd3c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14013bd86
call fcn.14013b314
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14013b2f4
mov dword [rax], SafeArrayDestroy
call fcn.14013c990
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401249d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14013bd91
lea eax, [rbx + 1]
jmp 0x14013bd73
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14013bd71
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14013bd73