joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402a70fc
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 0x1402a712c
xor eax, eax
jmp 0x1402a71ef
mov rbp, rbx
cmp word [rax], si
je 0x1402a7151
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402a7138
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402a7134
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.1402a2ce8
movsxd r14, eax
test eax, eax
jne 0x1402a718f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402a7125
mov rcx, r14
call fcn.14029ffe4
mov rdi, rax
test rax, rax
jne 0x1402a71a8
xor ecx, ecx
call fcn.14029ffa8
jmp 0x1402a7184
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.1402a2ce8
test eax, eax
jne 0x1402a71d9
mov rcx, rdi
call fcn.14029ffa8
jmp 0x1402a71e3
xor ecx, ecx
call fcn.14029ffa8
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 0x1402a720c
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 0x1402a7293
mov rsi, rbx
cmp word [rax], bp
je 0x1402a7252
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402a723c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402a7238
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14029ffe4
mov rdi, rax
test rax, rax
je 0x1402a7280
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14027bf80
mov rbp, rdi
xor ecx, ecx
call fcn.14029ffa8
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 0x1402ab41c
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.14028af80
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402ab4a6
cmp byte [rbp - 0x21], r15b
je 0x1402ab4a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402ab4dc
call fcn.1402a2554
test eax, eax
jne 0x1402ab4c8
cmp byte [rbp - 0x21], r15b
je 0x1402ab4c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402ab4dc
cmp byte [rbp - 0x21], r15b
je 0x1402ab4d9
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.14028ac7c
test eax, eax
jne 0x1402ab57c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14028af80
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402ab51b
cmp byte [rbp - 0x21], r15b
je 0x1402ab550
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402ab550
call fcn.1402a2554
test eax, eax
jne 0x1402ab53c
cmp byte [rbp - 0x21], r15b
je 0x1402ab535
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402ab550
cmp byte [rbp - 0x21], r15b
je 0x1402ab54d
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.14028ac7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402ab57c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402ab57f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402ab58d
mov rcx, rdi
call fcn.14029ffa8
cmp byte [rbp + 0x3f], r15b
je 0x1402ab59c
mov rcx, qword [rbp + 0x27]
call fcn.14029ffa8
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 0x14000b390
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140013130]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r14, 0xffffffffffffffff
mov r12, rcx
xor r13d, r13d
lea ecx, [r14 + 3]
lea r8d, [r14 + 7]
mov rdi, r14
lea edx, [rcx - 1]
mov qword [r11 - 0x40], rcx
call qword [sym.imp.WS2_32.dll_socket]
lea r15d, [r14 + 0x11]
mov rsi, rax
cmp rax, r14
je 0x14000b40f
lea rdx, [rsp + 0x28]
mov r8d, r15d
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp eax, r14d
je 0x14000b406
mov rdi, rsi
jmp 0x14000b417
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test ebx, ebx
jne 0x14000b462
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ebp, r13w
cmp eax, r14d
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x14000b459
mov rcx, r15
call fcn.14000de44
mov rsi, rax
test rax, rax
jne 0x14000b49a
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000e510
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140013e08]
mov ecx, dword [0x140013e0c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x14000b527
cmp edi, ecx
jne 0x14000b50d
cmp edi, 0x3fffffff
jg 0x14000b527
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x14000b527
test ecx, ecx
mov rcx, qword [0x140013e00]
mov eax, 1
lea r14d, [rdi + rdi]
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
mov r11, rax
test rax, rax
je 0x14000b527
mov dword [0x140013e0c], r14d
mov qword [0x140013e00], rax
jmp 0x14000b514
mov r11, qword [0x140013e00]
lea rcx, [r11 + rdi*8]
mov dword [0x140013e08], r15d
test rcx, rcx
je 0x14000b527
mov qword [rcx], rsi
mov word [r12], bp
jmp 0x14000b462
Function at 0x14000c1f4
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r12
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
je 0x14000c259
mov rcx, qword [rcx + 0x10]
lea r9, [rax + 8]
mov edx, 0xffff
mov r8d, 0x80
mov dword [rax + 8], 1
mov dword [rax - 0x18], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000c240
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000c254
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000c2a9
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000c292
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000c2a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret

Function at 0x14000d990
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
mov rax, qword [0x140013130]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov esi, ecx
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_ntohs]
xor r15d, r15d
lea rcx, [rsp + 0x42]
lea r8d, [r15 + 0x7e]
xor edx, edx
mov word [rsp + 0x40], r15w
call sub.msvcrt.dll_memset
lea edx, [r15 + 1]
lea r12d, [r15 + 2]
mov dword [rsp + 0x28], edx
lea r8d, [r15 + 6]
mov ecx, r12d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000da15
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14000dab3
lea rdx, [0x14000daec]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_BindIoCompletionCallback]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rbx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, reloc.msvcrt.dll___C_specific_handler
je 0x14000dab7
xor eax, eax
lea rdx, [rsp + 0x40]
mov r8d, 0x80
mov rcx, rbx
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, reloc.msvcrt.dll___C_specific_handler
jne 0x14000dab7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x14000dabc
mov qword [rdi], rbx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000e510
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14000db04
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140013130]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor ebp, ebp
mov rdi, r8
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rbp + 0x7e]
xor edx, edx
mov word [rsp + 0x30], bp
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, reloc.msvcrt.dll___C_specific_handler
jne 0x14000db6d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000db99
test rsi, rsi
je 0x14000db8a
cmp word [rsp + 0x30], 0x17
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x34]
cmovne rax, rcx
mov eax, dword [rax]
mov dword [rsi], eax
test rdi, rdi
je 0x14000db97
movzx eax, word [rsp + 0x32]
mov word [rdi], ax
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000e510
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000e818
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x14000e865
cmp rcx, 0xffffffffffffffff
je 0x14000e865
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e85d
cmp dword [rcx + 0x3c], edx
jl 0x14000e85d
cmp dword [rcx + 0x3c], reloc.msvcrt.dll___C_specific_handler
jae 0x14000e85d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], reloc.msvcrt.dll___C_specific_handler
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000e865
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000e9b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140013130]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x14000ea73
lea rcx, [rbp + 0x18]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x18]
mov qword [rbp + 0x10], r11
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_GetCurrentProcessId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_GetCurrentThreadId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetTickCount]
mov r11d, eax
shl r11, 0x18
xor qword [rbp + 0x10], r11
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_0.dll_GetTickCount]
lea rcx, [rbp + 0x20]
mov r11d, eax
lea rax, [rbp + 0x10]
xor r11, qword [rbp + 0x10]
xor r11, rax
mov qword [rbp + 0x10], r11
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140013130], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140013138], rax
add rsp, 0x20
pop rbp
ret
Function at 0x14000ebe8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_TerminateProcess]
Function at 0x14000dc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dword [rdx], 0
mov rdi, rdx
mov rbx, qword [rcx + 0x58]
test rbx, rbx
je 0x14000dca3
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xe8]
test eax, eax
je 0x14000dca3
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x48]
mov edx, dword [rax + 0x48]
cmp ecx, edx
jle 0x14000dc84
sub ecx, edx
add dword [rdi], ecx
jmp 0x14000dc98
jne 0x14000dc98
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xa8]
test eax, eax
je 0x14000dc98
inc dword [rdi]
mov rbx, qword [rbx + 0x58]
inc dword [rdi]
test rbx, rbx
jne 0x14000dc60
mov r9, qword [rbx + 0x10]
lea rdx, str.menu
mov r8, qword [rbx + 8]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400230d0
Function at 0x14002aab0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1038
call fcn.1400fc7a0
sub rsp, rax
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rcx, qword [0x140164a20]
test rcx, rcx
jne 0x14002aaf2
xor edx, edx
call fcn.140029a70
mov rcx, qword [0x140164a20]
test rcx, rcx
je 0x14002ad10
mov qword [rsp + 0x1030], rbx
call fcn.1400433b0
mov rdx, rax
lea rcx, [0x140164140]
mov r8d, 0x800
call fcn.14004dff0
lea r8, [0x14010129c]
mov edx, 0x800
lea rcx, [0x140164140]
call fcn.140084a70
mov rax, qword [str..cxx]
cmp byte [rax], 0x2e
jne 0x14002ab88
mov edx, 0x2f
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x14002ab81
mov rcx, qword [0x140164a20]
call fcn.1400433b0
mov rdx, rax
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14004dff0
mov r8, qword [str..cxx]
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.140084a70
jmp 0x14002ab9b
mov rax, qword [str..cxx]
mov r8d, 0x800
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.14004dff0
mov rax, qword [0x14014df88]
cmp byte [rax], 0x2e
jne 0x14002abfd
mov edx, 0x2f
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x14002abf6
mov rcx, qword [0x140164a20]
call fcn.1400433b0
mov rdx, rax
lea rcx, [rsp + 0x820]
mov r8d, 0x800
call fcn.14004dff0
mov r8, qword [0x14014df88]
lea rcx, [rsp + 0x820]
mov edx, 0x800
call fcn.140084a70
jmp 0x14002ac13
mov rax, qword [0x14014df88]
mov r8d, 0x800
lea rcx, [rsp + 0x820]
mov rdx, rax
call fcn.14004dff0
cmp dword [0x14016412c], 0
jne 0x14002ac21
call fcn.14002bc60
lea rdx, [rsp + 0x820]
lea rcx, [rsp + 0x20]
call fcn.140023560
cmp dword [0x14016412c], 0
mov ebx, eax
jne 0x14002ac43
call fcn.14002bdc0
mov r8d, 0x800
lea rdx, str._and
lea rcx, [rsp + 0x20]
call fcn.14004df60
mov r8d, 0x800
lea rdx, [rsp + 0x820]
lea rcx, [rsp + 0x20]
call fcn.14004df60
cmp dword [0x14016412c], 0
je 0x14002acc2
test ebx, ebx
jne 0x14002ad08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, str._s_:__s_n
call fcn.14000a030
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test ebx, ebx
jne 0x14002acea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, str.Cant_write__s:__s
call fcn.14004d0e0
jmp 0x14002ad08
mov rax, qword [0x1401580c8]
cmp byte [rax + 0x7c], 0
je 0x14002ad08
lea rdx, [rsp + 0x20]
lea rcx, str.Wrote__s
call fcn.14004d0e0
mov rbx, qword [rsp + 0x1030]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x1038
ret
Function at 0x14002ad30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x838
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rcx, qword [0x140164a20]
test rcx, rcx
jne 0x14002ad6c
xor edx, edx
call fcn.140029a70
mov rcx, qword [0x140164a20]
test rcx, rcx
je 0x14002ae0c
mov qword [rsp + 0x830], rbx
call fcn.1400433b0
mov rdx, rax
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14004dff0
movsxd r8, dword [0x140164138]
lea rax, str..txt
mov edx, 0x800
lea rcx, [rsp + 0x20]
mov r8, qword [rax + r8*8]
call fcn.140084a70
cmp dword [0x14016412c], 0
jne 0x14002adbb
call fcn.14002bc60
lea rcx, [rsp + 0x20]
call fcn.140024220
cmp dword [0x14016412c], 0
mov ebx, eax
jne 0x14002ae44
call fcn.14002bdc0
cmp dword [0x14016412c], 0
jne 0x14002ae44
test ebx, ebx
je 0x14002ae24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, str.Cant_write__s:__s
call fcn.14004d0e0
mov rbx, qword [rsp + 0x830]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x838
ret
mov rax, qword [0x1401580c8]
cmp byte [rax + 0x7c], 0
je 0x14002ae04
lea rdx, [rsp + 0x20]
lea rcx, str.Wrote__s
call fcn.14004d0e0
jmp 0x14002ae04
test ebx, ebx
je 0x14002ae04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, str._s_:__s_n
call fcn.14000a030
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140035ee0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x140159ee8], 0
mov rbx, rcx
je 0x140035f01
mov edx, dword [rcx + 0x10]
lea rcx, str.close_editor___called:_pid_ld_n
call fcn.140010500
cmp dword [rbx + 0x10], 0
je 0x1400360e8
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
mov rcx, qword [rbx]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x140036088
test eax, eax
je 0x1400360b5
cmp eax, 0x102
jne 0x140036088
mov ecx, dword [rbx + 0x10]
lea r8, str.Closed
mov rax, qword [rbx + 0x28]
lea rdx, str.Force_Close
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], ecx
lea rcx, str.Please_close_external_editor_npid_ld_file_s
call fcn.14004d060
test eax, eax
jne 0x14003609b
cmp dword [0x140159ee8], eax
je 0x140035f96
mov edx, dword [rbx + 0x10]
lea rcx, str.kill_editor___called:_pid_ld_n
call fcn.140010500
mov edi, dword [rbx + 0x10]
test edi, edi
je 0x14003609b
mov r8d, edi
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140036076
mov edx, edi
lea rcx, [0x140036ab0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov edx, 0x1f4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140036042
cmp dword [0x140159ee8], 0
je 0x140035ff8
mov edx, 0x1f4
lea rcx, str.WARNING:_sent_WIN_CLOSE__but_timeout_after__ld_msecs..trying_TerminateProcess_n
call fcn.140010500
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14003602c
cmp dword [0x140159ee8], eax
je 0x140036025
call fcn.140036100
mov r8, rax
lea rcx, str.ERROR:_TerminateProcess___for_pid_ld_failed:__s_n
mov edx, edi
call fcn.140010500
mov edi, 0xffffffff
jmp 0x14003602e
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x140036076
test edi, edi
jne 0x14003609b
jmp 0x14003604b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rbx + 0x10]
mov rcx, rbx
call fcn.140036870
cmp dword [0x140159ee8], 0
je 0x14003609b
mov r8d, dword [0x140166d10]
lea rcx, str._kill_editor___REAP_pid_ld_open_ld_n
mov edx, edi
call fcn.140010500
jmp 0x14003609b
mov rdx, qword [rbx + 0x28]
lea rcx, str.Cant_seem_to_close_editor_of_file:__s_nPlease_close_editor_and_hit_OK
call fcn.14004cfd0
jmp 0x14003609b
mov r8, qword [rbx + 0x28]
lea rcx, str.Error_reaping_external_editor_npid_ld_file_s
mov edx, dword [rbx + 0x10]
call fcn.14004cfd0
cmp dword [rbx + 0x10], 0
jne 0x140035f20
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov edi, dword [rbx + 0x10]
mov rcx, rbx
call fcn.140036870
cmp dword [0x140159ee8], 0
je 0x1400360de
mov r8d, dword [0x140166d10]
lea rcx, str._EDITOR_REAPED:_pid_ld_open_d_n
mov edx, edi
call fcn.140010500
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret