joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001f0a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180069040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180093ae8]
mov edi, ecx
cmp byte [rbx + 0x4a75], 0
jne 0x18001f101
cmp byte [rbx + 0x4a76], 0
jne 0x18001f101
movsx r9d, word [rbx + 0x5b9a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.18000f120
test dil, 1
je 0x18001f22f
jmp 0x18001f18c
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b9a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180060e90]
mov edx, 0x10
mulss xmm1, dword [0x180060e74]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47c0], rax
mov dword [rbx + 0x47ac], 1
movss dword [rbx + 0x47b8], xmm0
movss dword [rbx + 0x47bc], xmm1
movss xmm0, dword [rbx + 0x38f8]
mulss xmm0, dword [0x180060dc4]
or dword [rbx + 0x47a8], 0x41
movss dword [rbx + 0x4808], xmm0
call fcn.18000f120
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x18001f1e0
lea r11, [0x18005a490]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001f1c3
cmp byte [r8], r9b
jne 0x18001f1c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18001f1b0
not ecx
call fcn.180015fb0
test rax, rax
je 0x18001f22f
cmp byte [rax + 0xb6], 0
je 0x18001f22f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5b9a]
movsx r9d, word [rbx + 0x5b9a]
call fcn.18000f120
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.180018710
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180055b80
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180024ad0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c80], 0
lea rbx, [rcx + 0x5c88]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180024b77
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180024b2a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800270c0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000fc30
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c80]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c90]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180093a9d]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180024b7f
mov rcx, rbx
call fcn.18000fc30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180024f10
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180093ae8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180024f73
mov qword [rsp], rbx
lea rbx, [0x18005a490]
nop dword [rax]
cmp r9b, 0x23
jne 0x180024f53
cmp byte [r8], r9b
jne 0x180024f53
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180024f40
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bf8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180024fa7
mov r10, qword [r10 + 0x5c00]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180024fae
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180024f94
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18004fbd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180069040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18004fc1f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180093e50]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004fc5d
cmp rsi, r14
jb 0x18004fc55
cmp rsi, r15
jae 0x18004fc55
cmp qword [rsi + 8], 0
jne 0x18004fe27
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18004fc40
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18004fcf2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18004fce9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004fce9
cmp dword [rsp + 0x40], 0x10000
je 0x18004fd6b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18004fce9
sub rbx, rbp
cmp rbx, r14
jae 0x18004fcb0
test rsi, rsi
jne 0x18004fdd0
cmp rdi, r15
ja 0x18004fe0f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004fe0f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004fe0f
cmp dword [rsp + 0x40], 0x10000
je 0x18004fda1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18004fd22
jmp 0x18004fe0f
test rbx, rbx
je 0x18004fce9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18004fdd0
cmp rbx, r14
jae 0x18004fc90
jmp 0x18004fcf2
test rdi, rdi
je 0x18004fe0f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18004fdd0
cmp rdi, r15
jbe 0x18004fd00
jmp 0x18004fe0f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18004fde0
mov rax, qword [0x180093e50]
mov qword [rsi], rax
mov qword [0x180093e50], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180055b80
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800507c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180069040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800508eb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800508e2
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800508c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800508c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800508c4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180050882
mov rcx, qword [0x180093af0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800508e2
jmp 0x1800508b7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800508b7
mov rcx, qword [0x180093af0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800508e2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180050830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180050945
cmp dword [rbx + 0xc], esi
jbe 0x180050945
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005093e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180050610
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180050900
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180055b80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180050970
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180069040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180093e40]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800509e3
mov eax, 0xa
jmp 0x180050a76
test esi, esi
je 0x180050a05
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180050a28
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180050a28
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180050a21
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180050a28
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180055b80
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180050aa0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180093e4c]
mov ebx, edi
test ecx, ecx
je 0x180050bdd
mov rax, qword [0x180093e40]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180050af8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180050ad0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180050bdd
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800507c0
mov r8d, dword [0x180093e4c]
cmp ebx, r8d
jae 0x180050b68
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180093e40]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180050b61
mov edx, esi
mov ecx, ebx
call fcn.180050970
mov edi, eax
test eax, eax
jne 0x180050b68
mov r8d, dword [0x180093e4c]
inc ebx
cmp ebx, r8d
jb 0x180050b30
cmp qword [rsp + 0x20], 0
je 0x180050bdd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050bc9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180050bba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180050b90
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180093af0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180050f50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180093acc], ebp
je 0x180050fa7
cmp rbx, 0x20
jae 0x180050f90
xor ecx, ecx
jmp 0x180050f92
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180093acc], ebp
jne 0x180050f86
cmp qword [0x180093af0], r15
je 0x1800510a3
test rdi, rdi
jne 0x180050fc7
mov ecx, esi
call fcn.180050aa0
mov ebp, eax
jmp 0x1800510a8
mov ecx, dword [0x180093e4c]
mov ebx, r15d
test ecx, ecx
je 0x180050fef
mov r8, qword [0x180093e40]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180050ff9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180050fe0
mov ebp, 4
jmp 0x1800510a8
cmp ebx, 0xffffffff
je 0x180050fef
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18005109a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800507c0
mov edx, esi
mov ecx, ebx
call fcn.180050970
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800510a8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180051084
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005107a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180051050
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180093af0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800510a8
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800510a8
mov ebp, 2
xchg dword [0x180093acc], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x100401080
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [str.clear]
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea rdx, str.Usage:__s__options__n
mov r8, rbx
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov r9, qword [rax + 0x18]
lea rcx, str._nOptions:_n___T_TERM_____use_this_instead_of__TERM_n___V__________print_curses_version_n___x__________do_not_try_to_clear_scrollback_n
mov r8d, 0x82
mov edx, 1
call sub.cygwin1.dll_fwrite
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop
jmp 0x1004014a0
jmp qword [sym.imp.cygwin1.dll_putchar]

Function at 0x100401190
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov dword [0x10040704c], 2
mov rbx, rcx
mov esi, edx
mov rdx, rcx
mov ecx, 2
call sub.cygwin1.dll_tcgetattr
test eax, eax
js 0x100401210
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov byte [section..bss], 1
mov qword [0x100407020], rax
mov qword [0x100407028], rdx
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov qword [0x100407030], rax
mov qword [0x100407038], rdx
mov rax, qword [rbx + 0x20]
mov qword [0x100407040], rax
mov eax, dword [rbx + 0x28]
mov dword [0x100407048], eax
mov eax, dword [0x10040704c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov ecx, 1
mov dword [0x10040704c], 1
call sub.cygwin1.dll_tcgetattr
test eax, eax
jns 0x1004011b7
xor ecx, ecx
mov rdx, rbx
mov dword [0x10040704c], 0
call sub.cygwin1.dll_tcgetattr
test eax, eax
jns 0x1004011b7
lea rcx, str._dev_tty
mov edx, 2
call sub.cygwin1.dll_open
test eax, eax
mov dword [0x10040704c], eax
jns 0x100401280
test sil, sil
jne 0x100401294
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.cygwin1.dll_fileno
mov dword [0x10040704c], eax
jmp 0x100401203
mov rdx, rbx
mov ecx, eax
call sub.cygwin1.dll_tcgetattr
test eax, eax
jns 0x1004011b7
jmp 0x100401262
call sub.cygwin1.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.cygwin1.dll_strerror
mov rdi, rax
mov rax, qword [0x100403120]
mov rsi, qword [rax]
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str.terminal_attributes
lea rdx, str._s:__s:__s_n
mov qword [rsp + 0x20], rdi
mov r8, rsi
call sub.cygwin1.dll_fprintf
cmp byte [section..bss], 0
je 0x1004012f3
mov ecx, dword [0x10040704c]
lea r8, [0x100407020]
mov edx, 3
call sub.cygwin1.dll_tcsetattr
call sub.cygwin1.dll___getreent
mov rdx, qword [rax + 0x18]
mov ecx, 0xa
call sub.cygwin1.dll_fputc
lea ecx, [rbx + 4]
call sub.cygwin1.dll_exit
nop
nop
cmp byte [section..bss], 0
jne 0x100401320
ret
mov ecx, dword [0x10040704c]
lea r8, [0x100407020]
mov edx, 3
jmp sub.cygwin1.dll_tcsetattr

Function at 0x140001b58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ba2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ba2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ba2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ba2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ba2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ba4
xor al, al
add rsp, 0x28
ret
Function at 0x140009e58
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.Cmmlib.dll_public:_bool___cdecl_Cmm::CStringT_wchar_t_::empty_void_const___ptr64]
test al, al
je 0x140009e98
mov eax, 1
jmp 0x140009f85
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0xff
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140009edf
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.Global_
lea rcx, [rsp + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x140009f23
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
lea rdx, [0x140026188]
lea rcx, [rsp + 0x28]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov r9, rax
mov ebx, 1
mov r8d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14003bbd0], rax
test rax, rax
je 0x140009f6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140009f6c
xor ebx, ebx
lea rcx, [rsp + 0x28]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001fc80
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rbp
ret
Function at 0x14000a010
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a0a5
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14000a098
lea rdx, str.zTscoder.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000a08a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x14000a08a
mov edx, dword [rsp + 0x28]
lea rcx, [0x140009fb0]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000a057
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x270
pop rbx
ret
Function at 0x14000f038
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::constructor_void____ptr64]
nop
mov edx, 5
lea r8d, [rdx - 4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::GetSpecialDirectory_enum_Cmm::CFileName::SpecialFolder__int____ptr64]
lea rdx, [0x140026918]
lea rcx, [rsp + 0x20]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, str.transcoding.ini
lea rcx, [rsp + 0x20]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov r9, rax
xor r8d, r8d
lea rdx, str.SaveAllTempRecordFiles
lea rcx, [0x140026de8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
cmp eax, 1
sete bl
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CFileName::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x50
pop rbx
ret

Function at 0x1400120d8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14001216e
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140012148
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012167
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012167
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [0x140024f78]
jmp 0x140012157
cmp dword [rdi + 8], 0
je 0x140012167
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x140012157
cmp byte [0x14003bc58], 0
jne 0x1400121b9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400121a5
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14003bc50], rax
jmp 0x1400121ac
mov r10, qword [0x14003bc50]
mov eax, 1
mov byte [0x14003bc58], al
jmp 0x1400121c0
mov r10, qword [0x14003bc50]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x140012151
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [0x140024f78]
jmp 0x140012157