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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140035b78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140012f54
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140012fba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012ff1
test eax, eax
js 0x140012fcb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012fe4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000da80
mov rcx, rax
call fcn.140008c70
mov ecx, 7
int 0x29
ud2

Function at 0x140021590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002160a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140021600
cmp r10, r11
jb 0x1400216a3
cmp r10, rdx
ja 0x1400216b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140021602
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400215e0
jmp 0x140021677
ja 0x14002160a
mov r11, r10
cmp rax, r8
jne 0x1400215b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002167b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140021650
mov r8, r10
sub ecx, r9d
jns 0x14002166e
jmp 0x14002167d
cmp r10, rdx
je 0x140021689
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002167d
xor al, 1
cmp r8, rdx
jne 0x140021630
jmp 0x14002167d
xor eax, eax
jmp 0x14002167d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140031630
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140031c00
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140031b80
ud2
Function at 0x1400230ec
Capabilities:
Parse pe header

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

Function at 0x1400274b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400272e4
Function at 0x140001750
Capabilities:
Accept command line arguments

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003780
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x1400017a3
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor r8d, r8d
lea rdx, [0x14001f6f8]
mov r9, rax
mov cl, 0x45
call fcn.140002360
mov ecx, 0x1e7
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8d, [rbx + 1]
lea rdx, str.called_with_NULL_pointer
lea rcx, str.ss_free
call fcn.140002010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x1400017d9
xor r8d, r8d
lea rdx, [0x14001f748]
lea rcx, str.ss_free
call fcn.140002010
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140001840
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
mov eax, 0x250
call fcn.140003780
sub rsp, rax
mov rax, qword [0x14002b778]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x20
lea rdx, [rsp + 0x20]
lea rcx, str._AsJob
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001ac6
lea rcx, str.C:MgrRun_
call fcn.140002850
test eax, eax
je 0x140001ac6
call fcn.1400025d0
mov rdx, rax
lea rcx, str.Han0
mov r8d, 4
call fcn.140001d60
test eax, eax
jne 0x140001ac6
mov byte [rsp + 0x20], al
mov word [rsp + 0x140], ax
call fcn.1400028a0
mov r9, rax
lea rdx, [rsp + 0x140]
xor r8d, r8d
xor ecx, ecx
call fcn.1400026b0
movups xmm0, xmmword [str.C:MgrRun_]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x14001f778]
movsd qword [rsp + 0x50], xmm0
call fcn.140002640
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001910
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001920
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001940
movsd xmm0, qword [str._Run_]
mov eax, dword [0x14001f790]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001970
lea r8, [rsp + 0x140]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001990
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400019b0
movsd xmm0, qword [str..log]
lea rdx, [rsp + 0x20]
movzx eax, word [0x14001f7a0]
mov r8d, 0x20
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, str._Job
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140001a0e
call fcn.140002930
lea rdx, [rsp + 0x20]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001a00
lea rcx, [rsp + 0x40]
call fcn.140002ce0
mov rbx, rax
test rax, rax
je 0x140001ac6
call fcn.1400029c0
mov rdx, rax
mov rcx, rbx
call fcn.140002f80
lea rdx, [0x14001f7ac]
mov rcx, rbx
call fcn.140002f80
call fcn.1400025d0
mov rdx, rax
mov rcx, rbx
call fcn.140002f80
lea rdx, [0x14001f7ac]
mov rcx, rbx
call fcn.140002f80
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002f80
lea rcx, [rsp + 0x20]
call fcn.140001ca0
cmp eax, 0x10
jge 0x140001a96
mov r8d, 0x10
lea rdx, [0x14001f7b0]
sub r8d, eax
mov rcx, rbx
call fcn.140002e60
lea rdx, [0x14001f7ac]
mov rcx, rbx
call fcn.140002f80
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
mov rcx, rbx
call fcn.140002f80
mov rcx, rbx
call fcn.140002fe0
mov rcx, rbx
call fcn.140002b90
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400037e0
add rsp, 0x250
pop rbx
ret
Function at 0x140001e50
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140003780
sub rsp, rax
cmp qword [0x14002c400], 0
mov rbp, rcx
jne 0x140001ecf
xor r8d, r8d
lea edx, [rax - 0x1f]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x14002c3f8], rax
test rax, rax
jne 0x140001eab
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_wc
call fcn.140002010
mov ecx, 0x1000
call fcn.1400017f0
mov ecx, 0x2000
mov qword [0x14002c400], rax
call fcn.1400017f0
mov qword [0x14002c408], rax
jmp 0x140001eff
mov rcx, qword [0x14002c3f8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140001eff
mov r8d, 1
lea rdx, [0x14001f7f0]
lea rcx, str.ss_wc
call fcn.140002010
movsxd rbx, dword [0x14002c3f0]
lea eax, [rbx + 1]
mov dword [0x14002c3f0], eax
cmp eax, 0x400
jl 0x140001f20
mov dword [0x14002c3f0], 0
mov rcx, rbp
call fcn.140001ca0
mov rcx, qword [0x14002c408]
mov rsi, rbx
lea edi, [rax*2 + 0x10]
cmp qword [rcx + rbx*8], 0
lea rbx, [rbx*4]
jne 0x140001f82
mov eax, 0x40
movsxd rcx, edi
cmp rcx, rax
cmovb rcx, rax
mov rax, qword [0x14002c400]
mov dword [rbx + rax], ecx
mov rcx, qword [0x14002c400]
mov ecx, dword [rbx + rcx]
call fcn.1400017f0
mov rcx, qword [0x14002c408]
mov qword [rcx + rsi*8], rax
mov rcx, qword [0x14002c408]
mov rax, qword [0x14002c400]
cmp dword [rbx + rax], edi
jge 0x140001fb3
mov rcx, qword [rcx + rsi*8]
call fcn.140001750
mov ecx, edi
call fcn.1400017f0
mov rdx, qword [0x14002c408]
mov qword [rdx + rsi*8], rax
mov rax, qword [0x14002c400]
mov dword [rbx + rax], edi
mov rcx, qword [0x14002c3f8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140001fdb
lea r8d, [rax + 1]
lea rdx, [0x14001f818]
lea rcx, str.ss_wc
call fcn.140002010
mov rcx, qword [0x14002c408]
mov rdx, rbp
mov rcx, qword [rcx + rsi*8]
call fcn.140003140
mov rax, qword [0x14002c408]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, qword [rax + rsi*8]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002010
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xc0
call fcn.140003780
sub rsp, rax
mov rax, qword [0x14002b778]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [section..data], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x140002221
mov qword [rsp + 0xf0], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf8], r14
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x66]
movzx r11d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0x40
mov dword [rsp + 0x30], r8d
lea r8, str._4.4d._2.2d._2.2d__2.2d:_2.2d:_2.2d._3.3d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140002260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400020d2
test ebp, ebp
mov eax, 1
cmovne ebx, eax
call fcn.140003180
lea rcx, [0x14001f894]
call fcn.1400022c0
mov r8d, ebx
lea rcx, [0x14001f898]
mov edx, ebx
call fcn.1400022c0
lea rdx, [rsp + 0x70]
lea rcx, str._Date:_______s_n
call fcn.1400022c0
call fcn.1400028a0
mov rdx, rax
lea rcx, str._Imagename:___s__n
call fcn.1400022c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, str._Command:_____s__n
call fcn.1400022c0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0xff
xor r14d, r14d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov dword [rsp + 0x28], 0x100
mov r8d, ebx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jle 0x1400021de
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400021de
movzx ecx, word [rdx]
mov rax, rdx
test cx, cx
je 0x1400021a5
cmp cx, 0xa
je 0x14000218e
cmp cx, 0xd
jne 0x140002193
mov word [rax], 0x20
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140002182
mov rdx, qword [rsp + 0x50]
cmp word [rax - 2], 0x20
jne 0x1400021b6
mov word [rax - 2], r14w
mov rdx, qword [rsp + 0x50]
cmp word [rax - 4], 0x20
jne 0x1400021c7
mov word [rax - 4], r14w
mov rdx, qword [rsp + 0x50]
lea rcx, str._Message:_____s__n
call fcn.1400022c0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [rsi], 0
mov r14, qword [rsp + 0xf8]
je 0x1400021fb
mov rdx, rsi
lea rcx, str._Function:____s__n
call fcn.1400022c0
cmp word [rdi], 0
je 0x140002210
mov rdx, rdi
lea rcx, str._Parameter:___s__n
call fcn.1400022c0
test ebp, ebp
jne 0x14000223e
call fcn.140003240
mov rbx, qword [rsp + 0xf0]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400037e0
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._Status:_____Program_aborted___n
call fcn.1400022c0
mov ecx, ebx
call fcn.14000dba4
int3
Function at 0x140002360
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x480
call fcn.140003780
sub rsp, rax
mov rax, qword [0x14002b778]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rax, [0x14001fa38]
xor r15d, r15d
mov qword [rsp + 0x50], rax
mov rbp, r9
mov qword [rsp + 0x68], r15
mov r14d, r8d
mov rbx, rdx
movzx edi, cl
call fcn.1400029c0
mov r8, rax
lea rdx, str._________Han._s_event_message_at__s__________n
mov r9, rbx
lea rcx, [rsp + 0x270]
call fcn.1400016e0
lea eax, [rdi - 0x57]
lea esi, [r15 + 4]
test al, 0xdf
jne 0x1400023d9
lea esi, [r15 + 2]
sub dil, 0x45
test dil, 0xdf
jne 0x1400023e8
mov esi, 1
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesEventlogApplication]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x60], rbp
movups xmm1, xmmword [0x14001fa80]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
mov eax, dword [0x14001faa0]
dec rcx
mov dword [rsp + 0xa0], eax
movzx eax, word [0x14001faa4]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x14001fa90]
mov word [rsp + 0xa4], ax
movzx eax, byte [0x14001faa6]
mov byte [rsp + 0xa6], al
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm0
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140002456
mov eax, dword [str.HAN.]
mov dword [rcx], eax
movzx eax, word [0x14001faac]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x70]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140002480
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002490
lea r9, str._Systemdrive_MgrHanEvents.dll
lea r8, str.EventMessageFile
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.1400033f0
test eax, eax
je 0x1400024d8
xor r8d, r8d
lea rdx, [0x14001faec]
lea rcx, [0x14001faf0]
call fcn.140002010
mov r9d, 7
lea r8, str.TypesSupportet
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.140003320
test eax, eax
je 0x140002510
xor r8d, r8d
lea rdx, [0x14001faec]
lea rcx, [0x14001faf0]
call fcn.140002010
mov eax, dword [str.Han.]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
dec rcx
movzx eax, byte [0x14001fb0c]
mov byte [rsp + 0x74], al
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140002530
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002540
lea rdx, [rsp + 0x70]
lea rcx, [0x14001f3f0]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov rbx, rax
mov r9d, r14d
lea rax, [rsp + 0x50]
movzx edx, si
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x28], 3
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400037e0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400025d0
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003780
sub rsp, rax
cmp byte [0x14002c428], 0
mov dword [rsp + 0x30], 0x10
jne 0x140002629
lea rbx, [0x14002c428]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x140002620
lea r8d, [rax + 1]
lea rdx, str.GetComputerName
lea rcx, str.ss_host
call fcn.140002010
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14002c428]
add rsp, 0x20
pop rbx
ret

Function at 0x140002640
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003780
sub rsp, rax
cmp word [0x14002c438], 0
mov dword [rsp + 0x30], 0x10
jne 0x14000269a
lea rbx, [0x14002c438]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140002691
lea r8d, [rax + 1]
lea rdx, [0x14001fb10]
lea rcx, str.ss_host
call fcn.140002010
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14002c438]
add rsp, 0x20
pop rbx
ret

Function at 0x140002850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003780
sub rsp, rax
lea rdx, [0x14001fb68]
mov rbx, rcx
call fcn.140001dd0
test eax, eax
je 0x14000288b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140002930
Capabilities:
Get session user name

Disassembly:
mov eax, 0x28
call fcn.140003780
sub rsp, rax
mov rax, qword [0x14002c468]
test rax, rax
jne 0x14000297d
mov ecx, 0x104
call fcn.1400017f0
mov qword [0x14002c468], rax
test rax, rax
jne 0x14000297d
lea r8d, [rax + 1]
lea rdx, str.ss_malloc_failed
lea rcx, str.ss_user
call fcn.140002010
mov rax, qword [0x14002c468]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1400029ae
lea r8d, [rax + 1]
lea rdx, str.GetUserName
lea rcx, str.ss_user
call fcn.140002010
mov rax, qword [0x14002c468]
add rsp, 0x28
ret
Function at 0x140002b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x30
call fcn.140003780
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140002bb9
lea eax, [rcx + 1]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx]
mov edi, 1
test rcx, rcx
je 0x140002c27
cmp dword [rbx + 0x1c], 0
je 0x140002bff
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x140002bff
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002bff
lea eax, [rdi - 2]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x18], 0
jne 0x140002c27
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test eax, eax
jne 0x140002c27
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.140002010
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002c35
call fcn.140001750
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002c43
call fcn.140001750
mov rcx, rbx
call fcn.140001750
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140002e60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140003780
sub rsp, rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140002e97
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
call fcn.140002010
cmp dword [rbx + 0x1c], 0
mov qword [rsp + 0x58], rdi
jne 0x140002ed7
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
xor edi, edi
mov r8d, esi
mov rdx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002f60
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jne 0x140002ef6
mov eax, esi
and eax, 0x80000fff
jge 0x140002ef2
dec eax
or eax, 0xfffff000
inc eax
test eax, eax
je 0x140002ea2
xor edi, edi
mov dword [rsp + 0x50], edi
test esi, esi
je 0x140002ec5
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov rcx, qword [rbx + 0x10]
dec esi
movsxd rdx, r8d
mov byte [rdx + rcx], al
mov r8d, dword [rbx + 0x24]
inc dword [rsp + 0x50]
inc r8d
mov dword [rbx + 0x24], r8d
cmp r8d, dword [rbx + 0x20]
jne 0x140002f4a
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002f60
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140002f00
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x58]
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140002f80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140003780
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140002fb5
lea r8d, [rax - 0x1f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite_b
call fcn.140002010
mov rcx, rdi
call fcn.140001ca0
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140002e60

Function at 0x140002fe0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140003780
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140003034
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fnl
call fcn.140002010
lea r8d, [rbx + 1]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
lea esi, [rbx + 2]
lea r14, [0x14001fce8]
call fcn.140002010
jmp 0x140003040
mov esi, 2
lea r14, [0x14001fce8]
mov qword [rsp + 0x60], rdi
xor edi, edi
cmp dword [rbx + 0x1c], edi
jne 0x140003088
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
lea rdx, [0x14001fce8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
mov edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov r8d, dword [rbx + 0x24]
mov dword [rsp + 0x50], edi
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov rcx, qword [rbx + 0x10]
dec esi
movsxd rdx, r8d
mov byte [rdx + rcx], al
mov r8d, dword [rbx + 0x24]
inc dword [rsp + 0x50]
inc r8d
mov dword [rbx + 0x24], r8d
cmp r8d, dword [rbx + 0x20]
jne 0x1400030da
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400030f0
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140003090
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140003180
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x78
call fcn.140003780
sub rsp, rax
mov rax, qword [0x14002b778]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x14002c480]
test rax, rax
jne 0x1400031ff
call fcn.1400036d0
mov r9d, eax
lea r8, str._8.8x_ss_lock_pr
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.140002260
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14002c480], rax
test rax, rax
jne 0x1400031ff
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_lock_pr
call fcn.140002010
mov rax, qword [0x14002c480]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14000322b
mov r8d, 1
lea rdx, [0x14001f7f0]
lea rcx, str.ss_lock_pr
call fcn.140002010
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400037e0
add rsp, 0x78
ret