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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x40
call fcn.140008650
sub rsp, rax
mov rdi, rcx
call fcn.140002de0
cmp word [rdi], 0x2d
mov rbx, rax
jne 0x1400033ae
cmp word [rdi + 2], 0
jne 0x1400033ae
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
mov rax, rbx
mov dword [rbx + 0x18], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov eax, dword [0x140030204]
xor r9d, r9d
mov qword [rsp + 0x58], rsi
mov edx, 0x40000000
xor esi, esi
mov rcx, rdi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000357a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
lea r8d, [rsi + 1]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000357a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000357a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000357a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000357a
test rbx, rbx
je 0x140003568
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003544
cmp dword [rbx + 0x1c], esi
je 0x14000351f
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x14000351f
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003568
cmp dword [rbx + 0x18], esi
jne 0x140003544
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140003544
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.140002950
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003552
call fcn.140001880
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140003560
call fcn.140001880
mov rcx, rbx
call fcn.140001880
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], rax
mov dword [rbx + 0x1c], 1
mov eax, dword [0x140030208]
mov dword [rbx + 0x20], eax
mov ecx, dword [0x140030208]
call fcn.140001920
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400035b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
mov eax, 0x30
call fcn.140008650
sub rsp, rax
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400035eb
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fread
call fcn.140002950
xor r14d, r14d
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], r14d
cmp qword [rbx + 0x10], r14
jne 0x140003628
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400036af
mov eax, dword [rsp + 0x50]
jmp 0x1400036c1
mov esi, r14d
cmp ebp, 1
jle 0x1400036bc
mov edx, dword [rbx + 0x24]
cmp edx, dword [rbx + 0x28]
jl 0x14000366d
mov r8d, dword [rbx + 0x20]
lea r9, [rsp + 0x50]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400036af
mov eax, dword [rsp + 0x50]
mov edx, r14d
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x24], r14d
test eax, eax
jle 0x1400036a1
mov rax, qword [rbx + 0x10]
movsxd rcx, edx
movzx r8d, byte [rcx + rax]
cmp r8b, 0xd
jne 0x140003687
lea eax, [rdx + 1]
mov dword [rbx + 0x24], eax
jmp 0x14000369a
cmp r8b, 0xa
je 0x1400036b6
mov byte [rdi], r8b
inc esi
inc dword [rbx + 0x24]
inc rdi
dec ebp
cmp ebp, 1
jg 0x140003634
jmp 0x1400036bc
test esi, esi
mov byte [rdi], dl
mov eax, 0xffffffff
cmove esi, eax
jmp 0x1400036bf
mov eax, 0xffffffff
jmp 0x1400036c1
lea eax, [rdx + 1]
mov dword [rbx + 0x24], eax
mov byte [rdi], r14b
mov eax, esi
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x1400036e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140008650
sub rsp, rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140003717
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
call fcn.140002950
cmp dword [rbx + 0x1c], 0
mov qword [rsp + 0x58], rdi
jne 0x140003757
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 0x1400037e0
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 0x140003776
mov eax, esi
and eax, 0x80000fff
jge 0x140003772
dec eax
or eax, 0xfffff000
inc eax
test eax, eax
je 0x140003722
xor edi, edi
mov dword [rsp + 0x50], edi
test esi, esi
je 0x140003745
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 0x1400037ca
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 0x1400037e0
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140003780
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 0x140003800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140008650
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140003835
lea r8d, [rax - 0x1f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite_b
call fcn.140002950
mov rcx, rdi
call fcn.140005340
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400036e0
Function at 0x140003860
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140008650
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x1400038b4
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fnl
call fcn.140002950
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, [0x140022d90]
call fcn.140002950
jmp 0x1400038c0
mov esi, 2
lea r14, [0x140022d90]
mov qword [rsp + 0x60], rdi
xor edi, edi
cmp dword [rbx + 0x1c], edi
jne 0x140003908
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
lea rdx, [0x140022d90]
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 0x14000395a
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 0x140003970
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140003910
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 0x140003a30
Capabilities:
Delete directory

Disassembly:
mov eax, 0x28
call fcn.140008650
sub rsp, rax
xor edx, edx
add rsp, 0x28
jmp 0x140003a50
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x9c0
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x9b0], rax
mov edi, edx
mov rbx, rcx
lea rdx, [rsp + 0x40]
call fcn.1400062c0
cmp dword [rsp + 0x40], 0
jne 0x140003a92
xor eax, eax
jmp 0x140003c21
mov eax, dword [rsp + 0x44]
cmp eax, 0xffffffff
je 0x140003bcd
test al, 0x10
je 0x140003bcd
bt edi, 0xa
jb 0x140003c1c
call fcn.140006a50
test eax, eax
je 0x140003abf
call fcn.140006e60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x140003b1a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x140003b1a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r8d, r8d
lea rcx, str.RemoveDirectory
mov rdx, rbx
call fcn.140002950
lea rax, [0x140032c80]
lock inc qword [rax]
mov eax, edi
jmp 0x140003c21
call fcn.140006970
test eax, eax
je 0x140003bbe
call fcn.140005420
call fcn.140006a50
test eax, eax
lea rax, [0x140022490]
je 0x140003b7f
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x128]
mov qword [rsp + 0x30], rax
lea r8, str.Rmdir:
lea rax, [rsp + 0x1a8]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rcx, str._2.2d.__11s__s__s__s_s_s_n
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call fcn.140002c60
jmp 0x140003bb9
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x128]
lea rax, [rsp + 0x1a8]
lea rdx, str.Rmdir:
mov qword [rsp + 0x20], rax
lea rcx, str.__11s__s__s__s_s_s_n
call fcn.140002c60
call fcn.1400054e0
lea rax, [0x140032c48]
lock inc qword [rax]
mov eax, edi
jmp 0x140003c21
call fcn.140003990
lea r9, [0x140032ca0]
movsxd r8, eax
lea rdx, [r8 + r8*4]
mov rcx, qword [r9 + rdx*8 + 0x10]
mov dword [r9 + rdx*8 + 4], edi
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140003bf0
mov rax, qword [r9 + rdx*8 + 0x18]
xor ecx, ecx
lea rdx, [0x140003c50]
mov word [rax], cx
mov ecx, r8d
call fcn.140006d50
mov eax, 1
mov rcx, qword [rsp + 0x9b0]
xor rcx, rsp
call fcn.1400086b0
mov rbx, qword [rsp + 0x9d8]
add rsp, 0x9c0
pop rdi
ret
Function at 0x140003a50
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x28
call fcn.140008650
sub rsp, rax
xor edx, edx
add rsp, 0x28
jmp 0x140003a50
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x9c0
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x9b0], rax
mov edi, edx
mov rbx, rcx
lea rdx, [rsp + 0x40]
call fcn.1400062c0
cmp dword [rsp + 0x40], 0
jne 0x140003a92
xor eax, eax
jmp 0x140003c21
mov eax, dword [rsp + 0x44]
cmp eax, 0xffffffff
je 0x140003bcd
test al, 0x10
je 0x140003bcd
bt edi, 0xa
jb 0x140003c1c
call fcn.140006a50
test eax, eax
je 0x140003abf
call fcn.140006e60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x140003b1a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x140003b1a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r8d, r8d
lea rcx, str.RemoveDirectory
mov rdx, rbx
call fcn.140002950
lea rax, [0x140032c80]
lock inc qword [rax]
mov eax, edi
jmp 0x140003c21
call fcn.140006970
test eax, eax
je 0x140003bbe
call fcn.140005420
call fcn.140006a50
test eax, eax
lea rax, [0x140022490]
je 0x140003b7f
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x128]
mov qword [rsp + 0x30], rax
lea r8, str.Rmdir:
lea rax, [rsp + 0x1a8]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rcx, str._2.2d.__11s__s__s__s_s_s_n
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call fcn.140002c60
jmp 0x140003bb9
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x128]
lea rax, [rsp + 0x1a8]
lea rdx, str.Rmdir:
mov qword [rsp + 0x20], rax
lea rcx, str.__11s__s__s__s_s_s_n
call fcn.140002c60
call fcn.1400054e0
lea rax, [0x140032c48]
lock inc qword [rax]
mov eax, edi
jmp 0x140003c21
call fcn.140003990
lea r9, [0x140032ca0]
movsxd r8, eax
lea rdx, [r8 + r8*4]
mov rcx, qword [r9 + rdx*8 + 0x10]
mov dword [r9 + rdx*8 + 4], edi
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140003bf0
mov rax, qword [r9 + rdx*8 + 0x18]
xor ecx, ecx
lea rdx, [0x140003c50]
mov word [rax], cx
mov ecx, r8d
call fcn.140006d50
mov eax, 1
mov rcx, qword [rsp + 0x9b0]
xor rcx, rsp
call fcn.1400086b0
mov rbx, qword [rsp + 0x9d8]
add rsp, 0x9c0
pop rdi
ret
Function at 0x140004180
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x9c0
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x9b0], rax
cmp word [rcx], 0
mov rbp, rcx
je 0x1400043c9
call fcn.140001fb0
test eax, eax
jne 0x1400043c9
call fcn.140005420
mov rdi, qword [0x140031888]
xor esi, esi
test rdi, rdi
jne 0x1400041ec
mov ecx, 0x800
call fcn.140001920
mov rdi, rax
mov qword [0x140031888], rax
mov rdx, rbp
mov word [rdi], si
mov rcx, rdi
call fcn.140001ea0
lea r14, [0x140022490]
mov rcx, rdi
mov rdx, r14
call fcn.140005690
cmp word [rdi + 0xa], 0x3a
lea rax, [rdi + 0xe]
mov r15d, 0x5c
cmovne rax, rdi
mov rbx, rax
cmp word [rax + 8], 0x55
jne 0x140004269
cmp word [rax + 0xa], 0x4e
jne 0x140004269
cmp word [rax + 0xc], 0x43
jne 0x140004269
mov edx, r15d
lea rcx, [rdi + 0x10]
call fcn.1400053b0
movsxd rcx, eax
mov ebx, 0x18
cmp word [rdi + rcx*2 + 0x14], 0x24
lea rax, [rdi + rcx*2]
mov ecx, 0x12
cmovne ebx, ecx
add rbx, rax
cmp word [rbx], si
je 0x1400043c9
movzx ecx, word [rbx]
test cx, cx
je 0x1400043c0
mov qword [rsp + 0x9f8], r12
movabs r12, 0x400040000000001
cmp cx, 0x3a
ja 0x140004297
bt r12, rcx
jb 0x1400043b8
cmp cx, r15w
jne 0x14000436d
mov rcx, rdi
mov word [rbx], si
call fcn.140001fb0
test eax, eax
jne 0x140004369
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000438f
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400062c0
call fcn.140006970
test eax, eax
je 0x140004369
call fcn.140005420
call fcn.140006a50
test eax, eax
lea rax, [rsp + 0x1a8]
je 0x140004332
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x128]
mov qword [rsp + 0x30], r14
lea r8, str.Mkdir:
mov qword [rsp + 0x28], rax
lea rcx, str._2.2d.__11s__s__s__s_s_s_n
lea rax, [rsp + 0xa8]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140002c60
jmp 0x140004364
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0xa8]
mov qword [rsp + 0x28], r14
lea r8, [rsp + 0x128]
lea rdx, str.Mkdir:
mov qword [rsp + 0x20], rax
lea rcx, str.__11s__s__s__s_s_s_n
call fcn.140002c60
call fcn.1400054e0
mov word [rbx], r15w
movzx ecx, word [rbx + 2]
add rbx, 2
test cx, cx
jne 0x140004287
mov r12, qword [rsp + 0x9f8]
call fcn.1400054e0
mov eax, esi
jmp 0x1400043cb
xor r8d, r8d
lea rcx, str.CreateDirectory
mov rdx, rdi
call fcn.140002950
xor r8d, r8d
lea rcx, str.Full_dir:
mov rdx, rbp
call fcn.140002ba0
mov esi, 1
mov r12, qword [rsp + 0x9f8]
call fcn.1400054e0
mov eax, esi
jmp 0x1400043cb
xor eax, eax
mov rcx, qword [rsp + 0x9b0]
xor rcx, rsp
call fcn.1400086b0
mov rbx, qword [rsp + 0xa00]
add rsp, 0x9c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004d00
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.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rax, [0x140023048]
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.140005170
mov r8, rax
lea rdx, str._________Han._s_event_message_at__s__________n
mov r9, rbx
lea rcx, [rsp + 0x270]
call fcn.140004c90
lea eax, [rdi - 0x57]
lea esi, [r15 + 4]
test al, 0xdf
jne 0x140004d79
lea esi, [r15 + 2]
sub dil, 0x45
test dil, 0xdf
jne 0x140004d88
mov esi, 1
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesEventlogApplication]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x60], rbp
movups xmm1, xmmword [0x140023090]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
mov eax, dword [0x1400230b0]
dec rcx
mov dword [rsp + 0xa0], eax
movzx eax, word [0x1400230b4]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x1400230a0]
mov word [rsp + 0xa4], ax
movzx eax, byte [0x1400230b6]
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 0x140004df6
mov eax, dword [str.HAN.]
mov dword [rcx], eax
movzx eax, word [0x1400230bc]
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 0x140004e20
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140004e30
lea r9, str._Systemdrive_MgrHanEvents.dll
lea r8, str.EventMessageFile
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.140007240
test eax, eax
je 0x140004e78
xor r8d, r8d
lea rdx, [0x1400230fc]
lea rcx, [0x140023100]
call fcn.140002950
mov r9d, 7
lea r8, str.TypesSupportet
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.140007170
test eax, eax
je 0x140004eb0
xor r8d, r8d
lea rdx, [0x1400230fc]
lea rcx, [0x140023100]
call fcn.140002950
mov eax, dword [str.Han.]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
dec rcx
movzx eax, byte [0x14002311c]
mov byte [rsp + 0x74], al
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140004ed0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140004ee0
lea rdx, [rsp + 0x70]
lea rcx, [0x14002311d]
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.1400086b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004f70
Capabilities:
Get hostname

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

Function at 0x140004fe0
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x20
call fcn.140008650
sub rsp, rax
cmp word [0x1400318a8], 0
mov dword [rsp + 0x30], 0x10
jne 0x14000503a
lea rbx, [0x1400318a8]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140005031
lea r8d, [rax + 1]
lea rdx, [0x140023120]
lea rcx, str.ss_host
call fcn.140002950
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1400318a8]
add rsp, 0x20
pop rbx
ret

Function at 0x1400050e0
Capabilities:
Get session user name

Disassembly:
mov eax, 0x28
call fcn.140008650
sub rsp, rax
mov rax, qword [0x1400318d8]
test rax, rax
jne 0x14000512d
mov ecx, 0x104
call fcn.140001920
mov qword [0x1400318d8], rax
test rax, rax
jne 0x14000512d
lea r8d, [rax + 1]
lea rdx, str.ss_malloc_failed
lea rcx, str.ss_user
call fcn.140002950
mov rax, qword [0x1400318d8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000515e
lea r8d, [rax + 1]
lea rdx, str.GetUserName
lea rcx, str.ss_user
call fcn.140002950
mov rax, qword [0x1400318d8]
add rsp, 0x28
ret

Function at 0x140005420
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x78
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400318f0]
test rax, rax
jne 0x14000549f
call fcn.1400074f0
mov r9d, eax
lea r8, str._8.8x_ss_lock_pr
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.140002c00
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400318f0], rax
test rax, rax
jne 0x14000549f
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_lock_pr
call fcn.140002950
mov rax, qword [0x1400318f0]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1400054cb
mov r8d, 1
lea rdx, [0x140022a48]
lea rcx, str.ss_lock_pr
call fcn.140002950
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400086b0
add rsp, 0x78
ret
Function at 0x140006980
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140008650
sub rsp, rax
mov eax, dword [0x1400305a4]
mov ebx, edx
mov dword [rsp + 0x40], 0x3f
mov rdi, rcx
cmp eax, 0xffffffff
jne 0x140006a3b
lea r8d, [rax + 5]
lea rdx, [rsp + 0x40]
lea rcx, str.ss_ts_debug
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400069da
mov dword [0x1400305a4], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [0x1400305a4], 1
call fcn.140006c70
call fcn.1400068f0
mov rdx, rax
lea rcx, str._s___ss_ts_debug:__s__d_n
mov r9d, ebx
mov r8, rdi
call fcn.140001820
mov rcx, qword [0x140031920]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140006a2b
lea r8d, [rax + 1]
lea rdx, str.ReleaseMutex:_ss_ts_lock
lea rcx, str.ss_ts_unlock
call fcn.140002950
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x1400069e4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret