joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084e48
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140084e78
xor eax, eax
jmp 0x140084f3b
mov rbp, rbx
cmp word [rax], si
je 0x140084e9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140084e84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140084e80
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140084d68
movsxd r14, eax
test eax, eax
jne 0x140084edb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140084e71
mov rcx, r14
call fcn.14003d1d0
mov rdi, rax
test rax, rax
jne 0x140084ef4
xor ecx, ecx
call fcn.14005c310
jmp 0x140084ed0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140084d68
test eax, eax
jne 0x140084f25
mov rcx, rdi
call fcn.14005c310
jmp 0x140084f2f
xor ecx, ecx
call fcn.14005c310
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140084f58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140084fdf
mov rsi, rbx
cmp word [rax], bp
je 0x140084f9e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140084f88
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140084f84
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003d1d0
mov rdi, rax
test rax, rax
je 0x140084fcc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008fbd0
mov rbp, rdi
xor ecx, ecx
call fcn.14005c310
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008767c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400876c6
call fcn.140070a68
mov dword [rax], 0xf
call fcn.14005c6d8
mov dword [rax], 0xd
call fcn.14007f784
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005e230
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400876d1
lea eax, [rbx + 1]
jmp 0x1400876b3
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 0x1400876b1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400876b3

Function at 0x140087c9c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140087cb2
mov al, 1
jmp 0x140087d12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140087cc3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140087d10
mov ecx, dword [rcx + 0x18]
nop
call fcn.140070b9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140087d10
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140087d10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140087d10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140087d12
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14008c298
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400685f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008c322
cmp byte [rbp - 0x21], r15b
je 0x14008c31d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008c358
call fcn.14007dbb4
test eax, eax
jne 0x14008c344
cmp byte [rbp - 0x21], r15b
je 0x14008c33c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008c358
cmp byte [rbp - 0x21], r15b
je 0x14008c355
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14006dadc
test eax, eax
jne 0x14008c3f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400685f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008c397
cmp byte [rbp - 0x21], r15b
je 0x14008c3cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008c3cc
call fcn.14007dbb4
test eax, eax
jne 0x14008c3b8
cmp byte [rbp - 0x21], r15b
je 0x14008c3b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008c3cc
cmp byte [rbp - 0x21], r15b
je 0x14008c3c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14006dadc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008c3f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008c3fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008c409
mov rcx, rdi
call fcn.14005c310
cmp byte [rbp + 0x3f], r15b
je 0x14008c418
mov rcx, qword [rbp + 0x27]
call fcn.14005c310
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ac7b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400edb10]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x216
call fcn.140052d50
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400226e0
cmp byte [rsi + 0x17], 0
jns 0x1400ac826
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ac8be
test al, 0x10
mov eax, 0x40000000
mov edx, 2
cmove edx, eax
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rbx
mov rcx, rdi
mov rdx, rax
call fcn.14003dfa0
mov rax, qword [rdi]
inc rax
test rax, 0xfffffffffffffffe
setne dil
cmp rax, 2
jb 0x1400ac8be
call fcn.14003e070
mov rcx, qword [rsp + 0x40]
call fcn.1400580d0
lea rcx, [rsp + 0x60]
call fcn.140022760
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14005e230
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400edb10]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x235
call fcn.140052d50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400226e0
cmp byte [rdi + 0x17], 0
jns 0x1400ac962
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.140022760
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14005e230
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ad000
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400edb10]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1400f7b2b]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x44a
call fcn.140052d50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400226e0
cmp byte [rdi + 0x17], 0
jns 0x1400ad072
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140022760
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14005e230
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400aed30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14011b620], 0
je 0x1400aed76
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14005e230
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14011b628]
test rdi, rdi
jne 0x1400aee43
mov ecx, 0x18
call fcn.14005c69c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140090270
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400edb10]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140009010
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1400aedf0
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400aee27
add rax, rax
test rax, rax
je 0x1400aee27
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400aedf8
cmp rdx, 0xfffffffffffffffe
je 0x1400aee27
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140016bb0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400213b0
mov qword [0x14011b628], rdi
cmp byte [rdi + 0x17], 0
jns 0x1400aee4c
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14011b620], rax
inc rax
cmp rax, 1
ja 0x1400aed59
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140090270
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1400aef88
mov rcx, qword [0x14011b628]
lea rdx, [rsp + 0x40]
call fcn.14000b7c0
mov rcx, qword [0x14011b628]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1400aef8f
test al, al
je 0x1400aefa0
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400aef1a
lea rdx, [0x1400ee9aa]
mov r8d, 1
call fcn.1400213b0
mov rcx, qword [0x14011b628]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400213b0
mov rcx, qword [0x14011b628]
cmp byte [rcx + 0x17], 0
jns 0x1400aef3c
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14011b620], rax
inc rax
cmp rax, 1
ja 0x1400aed59
mov qword [0x14011b620], 0
xor esi, esi
jmp 0x1400aed59
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400aefa0
mov rdx, qword [rcx]
jmp 0x1400aeef9
ud2
Function at 0x1400d6100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
sets al
test rdx, rdx
sete cl
or cl, al
je 0x1400d611c
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call 0x1400d6160
test edi, edi
je 0x1400d6115
cmp byte [rsi + rdi - 1], 0xa
je 0x1400d6115
lea rcx, [0x1400edc61]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400d6160
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400d61d7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400d61d7
add rdi, rax
test ecx, ecx
jne 0x1400d619d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005e230
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400d6160
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
sets al
test rdx, rdx
sete cl
or cl, al
je 0x1400d611c
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call 0x1400d6160
test edi, edi
je 0x1400d6115
cmp byte [rsi + rdi - 1], 0xa
je 0x1400d6115
lea rcx, [0x1400edc61]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400d6160
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400d61d7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400d61d7
add rdi, rax
test ecx, ecx
jne 0x1400d619d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005e230
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x404820
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x404960
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x005ea720]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x005ea818]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x4049e1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x005ea818]
jmp 0x4049fd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x005ea818], r11
mov qword [0x005ea7b8], rax
mov rax, qword [0x005ca070]
mov qword [0x005ea690], r11
mov qword [0x005ea7a0], rdi
mov dword [0x005ea680], 0xc0000409
mov dword [0x005ea684], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x005ca068]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00561590]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x005ca070]
jne 0x55e9a9
rol rcx, 0x10
test cx, 0xffff
jne 0x55e9a5
ret
ror rcx, 0x10
jmp 0x404960
Function at 0x407df0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x40], r13
mov rdi, rdx
mov rsi, rcx
mov ecx, 8
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x407e6a
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
mov rcx, rbx
call fcn.0042d2e0
test al, al
jne 0x407e6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
xor edi, edi
mov rbx, rdi
test rbx, rbx
setne r12b
add rsi, 8
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x407eba
mov r13, qword [rsi + 8]
cmp r13, rbx
je 0x407eac
cmp byte [rsi], 0
je 0x407ea7
test r13, r13
je 0x407ea7
mov rcx, r13
call fcn.0042d2f0
mov rcx, r13
call fcn.00442df0
mov byte [rsi], r12b
jmp 0x407eb4
test r12b, r12b
je 0x407eb4
mov byte [rsi], 1
mov qword [rsi + 8], rbx
jmp 0x407ed5
test r12b, r12b
je 0x407ed5
test rbx, rbx
je 0x407ed5
mov rcx, rbx
call fcn.0042d2f0
mov rcx, rbx
call fcn.00442df0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x407ef1
xor al, al
jmp 0x407ef3
mov al, 1
test al, al
sete al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x4142f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x58
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
mov rdi, rdx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::allocator_unsigned_short_int__const____ptr64____ptr64]
nop
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41436c
mov byte [rsp + 0x21], al
lea r8, [rsp + 0x21]
lea rdx, [0x005610a8]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void____ptr64]
mov rax, rdi
jmp 0x4143c9
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x41439f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______ptr64___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const____ptr64____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0042ab90
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x41e500
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x58], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x400
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x58], 1
mov rcx, qword [rbx + 0x10]
add ecx, 0xffffffff
mov dword [rsp + 0x50], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
lea r8, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x41e57b
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
jmp 0x41e593
mov r8, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r8, qword [r8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
add rsp, 0x30
pop rbx
ret