joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002434
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r13, [rsp + 0x58]
xor ebx, ebx
mov r14, qword [r13]
mov rdi, rcx
mov qword [r13], rbx
cmp dword [rcx], ebx
je 0x1400025c1
cmp qword [0x140011090], rbx
je 0x1400025c1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov r15, qword [rax]
mov qword [rax], rbx
mov rax, qword [0x140005060]
test rax, rax
jne 0x14000253f
mov rdx, qword [0x140011088]
lea r9, [rsp + 0x58]
test rdx, rdx
jne 0x1400024ae
mov rdx, qword [0x140011080]
mov qword [0x140011088], rdx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r11d, dword [rcx + 0x1c]
mov r8d, dword [rcx + 0x20]
add r11, rdx
mov esi, dword [rcx + 0x24]
add r8, rdx
mov ebp, dword [rcx + 0x18]
add rsi, rdx
mov edx, ebx
test ebp, ebp
je 0x14000252e
mov ecx, dword [r8]
movabs r10, 0xcbf29ce484222325
add rcx, qword [0x140011088]
mov al, byte [rcx]
test al, al
je 0x140002524
inc rcx
movsx rax, al
xor r10, rax
movabs r12, 0x100000001b3
imul r10, r12
mov al, byte [rcx]
test al, al
jne 0x1400024f3
movabs rax, 0x8a9495b5004b3e52
cmp r10, rax
je 0x1400025ab
inc edx
add r8, 4
cmp edx, ebp
jb 0x1400024d9
int3
mov qword [r9], rbx
mov rcx, rbx
mov qword [0x140005060], rax
lea rcx, [rsp + 0x58]
mov qword [rcx], r15
lea rdx, [rsp + 0x60]
movsxd rcx, dword [rdi]
call qword [0x1400040b0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400025c1
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, qword [0x140011090]
mov rbp, qword [rdi + 0x18]
call fcn.140001a20
mov rsi, rax
test rax, rax
je 0x1400025c1
and eax, 0xfff
mov ecx, 0x1000
sub ecx, eax
mov rdx, rbp
call fcn.140001a14
mov rdx, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
mov r8, rax
mov rcx, rsi
call fcn.1400025e4
jmp 0x1400025c6
mov eax, edx
movzx ecx, word [rsi + rax*2]
mov eax, dword [r11 + rcx*4]
add rax, qword [0x140011088]
jmp 0x140002532
mov ebx, 0xc0000001
mov eax, ebx
mov qword [r13], r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400025e4
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [rsp + 0x48]
xor ebx, ebx
mov r13, qword [rax]
mov r15, r9
mov qword [rsp + 0x50], r13
mov r14, r8
mov r12, rdx
test rcx, rcx
je 0x140002834
lea rax, [rsp + 0x48]
movabs r11, 0xcbf29ce484222325
mov qword [rax], rbx
mov rax, qword [0x1400110a8]
test rax, rax
jne 0x14000270d
mov r8, qword [0x140011088]
lea r10, [rsp + 0x48]
test r8, r8
jne 0x140002662
mov r8, qword [0x140011080]
mov qword [0x140011088], r8
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x88]
add rdx, r8
mov esi, dword [rdx + 0x1c]
mov r9d, dword [rdx + 0x20]
add rsi, r8
mov ebp, dword [rdx + 0x24]
add r9, r8
mov edi, dword [rdx + 0x18]
add rbp, r8
mov r8d, ebx
test edi, edi
je 0x1400026fc
mov edx, dword [r9]
add rdx, qword [0x140011088]
mov al, byte [rdx]
test al, al
je 0x1400026d0
movabs r13, 0x100000001b3
inc rdx
movsx rax, al
xor r11, rax
imul r11, r13
mov al, byte [rdx]
test al, al
jne 0x1400026a8
mov r13, qword [rsp + 0x50]
movabs rax, 0x2be3b7dda50ff6fe
cmp r11, rax
je 0x1400026e8
inc r8d
add r9, 4
cmp r8d, edi
jae 0x1400026fc
movabs r11, 0xcbf29ce484222325
jmp 0x14000268e
mov eax, r8d
movzx edx, word [rbp + rax*2]
mov eax, dword [rsi + rdx*4]
add rax, qword [0x140011088]
jmp 0x140002700
int3
mov qword [r10], rbx
mov rdx, rbx
mov qword [0x1400110a8], rax
lea rdx, [rsp + 0x48]
mov r8d, 4
mov qword [rdx], rbx
mov rdx, r14
call qword [0x1400040b0]
mov rdi, rax
test rax, rax
je 0x140002834
mov r8, r14
mov rdx, r12
mov rcx, rax
call fcn.140002f40
mov qword [r15], r14
lea r12, [rsp + 0x48]
mov r15, qword [r12]
mov qword [r12], rbx
mov rax, qword [0x1400110b0]
test rax, rax
jne 0x14000280f
mov rdx, qword [0x140011088]
lea r8, [rsp + 0x48]
test rdx, rdx
jne 0x14000277d
mov rdx, qword [0x140011080]
mov qword [0x140011088], rdx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r11d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add r11, rdx
mov esi, dword [rcx + 0x24]
add r9, rdx
mov ebp, dword [rcx + 0x18]
add rsi, rdx
mov edx, ebx
test ebp, ebp
je 0x1400027fe
mov ecx, dword [r9]
movabs r10, 0xcbf29ce484222325
add rcx, qword [0x140011088]
mov al, byte [rcx]
test al, al
je 0x1400027f4
movabs r12, 0x100000001b3
inc rcx
movsx rax, al
xor r10, rax
imul r10, r12
mov al, byte [rcx]
test al, al
jne 0x1400027cc
movabs rax, 0x47e1ca0e288956c0
lea r12, [rsp + 0x48]
cmp r10, rax
je 0x140002821
inc edx
add r9, 4
cmp edx, ebp
jb 0x1400027a8
int3
mov qword [r8], rbx
mov rcx, rbx
mov qword [0x1400110b0], rax
mov rdx, r14
mov qword [r12], r15
mov rcx, rdi
call qword [0x1400040b0]
jmp 0x140002839
mov eax, edx
movzx ecx, word [rsi + rax*2]
mov eax, dword [r11 + rcx*4]
add rax, qword [0x140011088]
jmp 0x140002802
mov ebx, 0xc0000001
mov rbp, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov rsi, qword [rsp + 0x68]
mov qword [rax], r13
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002bd8
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
and dword [rbp + 0x6f], 0
lea r13, [rbp + 0x5f]
xor eax, eax
mov rbx, rcx
mov dword [rbp + 0x73], eax
mov r14, qword [r13]
and qword [r13], rax
mov rax, qword [0x1400110b8]
test rax, rax
jne 0x140002ccb
mov rdx, qword [0x140011088]
lea r9, [rbp + 0x5f]
test rdx, rdx
jne 0x140002c3c
mov rdx, qword [0x140011080]
mov qword [0x140011088], rdx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r11d, dword [rcx + 0x1c]
mov r8d, dword [rcx + 0x20]
add r11, rdx
mov edi, dword [rcx + 0x24]
add r8, rdx
mov esi, dword [rcx + 0x18]
add rdi, rdx
xor edx, edx
test esi, esi
je 0x140002cbc
mov ecx, dword [r8]
movabs r10, 0xcbf29ce484222325
add rcx, qword [0x140011088]
mov al, byte [rcx]
test al, al
je 0x140002cb2
inc rcx
movsx rax, al
xor r10, rax
movabs r15, 0x100000001b3
imul r10, r15
mov al, byte [rcx]
test al, al
jne 0x140002c81
movabs rax, 0x30e36d1e897986ef
cmp r10, rax
je 0x140002d55
inc edx
add r8, 4
cmp edx, esi
jb 0x140002c67
int3
xor ecx, ecx
mov qword [r9], rcx
mov qword [0x1400110b8], rax
lea rdx, [0x140003260]
mov qword [r13], r14
lea rcx, [rbp - 0x19]
call qword [0x1400040b0]
and dword [rsp + 0x50], 0
lea rax, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r9, [rbp - 9]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x40
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x38], 5
xorps xmm0, xmm0
and dword [rsp + 0x30], 0
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140002dbc
test rbx, rbx
jne 0x140002d69
xor eax, eax
jmp 0x140002d7b
movzx ecx, word [rdi + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, qword [0x140011088]
jmp 0x140002cbf
cmp byte [rbx], 0
mov rax, rbx
je 0x140002d79
inc rax
cmp byte [rax], 0
jne 0x140002d71
sub eax, ebx
and qword [rsp + 0x40], 0
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x77]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000fef0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000ff00]
mov dword [rax], 1
mov rax, qword [0x14000ff10]
mov dword [rax], 1
mov rax, qword [0x14000fea0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000fee0]
mov dword [0x14001300c], 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 [0x14000ffc0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ffa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000fe50]
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
mov rcx, qword [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 0x1400022b2
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 0x140002323
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, [0x14000e418]
mov rcx, rax
call sym.printf
jmp 0x1400023f5
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 0x140002354
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Deleted_filter_id:__llu._n
mov rcx, rax
call sym.printf
jmp 0x14000238a
cmp dword [rbp - 4], 0x80320003
jne 0x14000236e
lea rax, str.____The_filter_does_not_exist._n
mov rcx, rax
call sym.printf
jmp 0x14000238a
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
mov r8d, edx
mov rdx, rax
lea rax, str.____Failed_to_delete_filter_id:__llu_with_error_code:_0x_x._n
mov rcx, rax
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 0x1400023e8
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 0x1400023d9
cmp dword [rbp - 4], 0x8032000a
je 0x1400023e8
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, str.____FwpmProviderDeleteByKey0_failed_with_error_code:_0x_x._n
mov rcx, rax
call sym.printf
jmp 0x1400023e8
lea rax, str.Deleted_custom_WFP_provider._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140002ade
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0
pxor xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
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 0x140002b9e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3f0
je 0x140002b55
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____OpenThreadToken_failed_with_error_code:_0x_x._n
mov rcx, rax
call sym.printf_1
mov eax, 0
jmp 0x140002cbb
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 0x140002b9e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____OpenProcessToken_failed_with_error_code:_0x_x._n
mov rcx, rax
call sym.printf_1
mov eax, 0
jmp 0x140002cbb
lea rax, [rbp - 0x20]
add rax, 4
mov r8, rax
lea rax, str.SeDebugPrivilege
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
jne 0x140002bf9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____LookupPrivilegeValueA_failed_with_error_code:_0x_x._n
mov rcx, rax
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 0x140002cbb
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 0x140002c70
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____AdjustTokenPrivileges_failed_with_error_code:_0x_x._n
mov rcx, rax
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 0x140002cbb
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x514
jne 0x140002ca6
lea rax, str.____Failed_to_get_SeDebugPrivilege._You_might_not_be_able_to_get_the_process_handle_of_the_EDR_process._n
mov rcx, rax
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 0x140002cbb
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 0x140002ddb
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov qword [rbp + 0x208], rdx
mov qword [rbp + 0x210], r8
cmp qword [rbp + 0x200], 0
je 0x140002e15
cmp qword [rbp + 0x208], 0
jne 0x140002e1f
mov eax, 3
jmp 0x140002f2d
lea rdx, [rbp + 0x1c0]
mov rax, qword [rbp + 0x200]
mov r8d, 0xa
mov rcx, rax
call sym.GetDriveName
test eax, eax
jne 0x140002e49
mov eax, 4
jmp 0x140002f2d
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1c0]
mov r8d, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
call rax
test eax, eax
jne 0x140002e74
mov eax, 5
jmp 0x140002f2d
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.wcslen
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x200]
lea rcx, [rdx + rax]
lea r8, [rbp - 0x50]
mov rdx, qword [rbp + 0x210]
mov rax, qword [rbp + 0x208]
mov qword [rsp + 0x20], rcx
mov r9, r8
lea r8, str._ls_ls
mov rcx, rax
call sym.swprintf
mov qword [rbp + 0x1d8], 0
jmp 0x140002f0b
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x208]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp + 0x208]
lea rbx, [rcx + rdx]
mov ecx, eax
call sym.towlower
mov word [rbx], ax
add qword [rbp + 0x1d8], 1
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x208]
add rax, rdx
movzx eax, word [rax]
test ax, ax
jne 0x140002ec8
mov eax, 0
add rsp, 0x268
pop rbx
pop rbp
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x140002f51
mov eax, 0
jmp 0x140002f76
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x140002f71
mov eax, 0
jmp 0x140002f76
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x140003620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140003690
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140013194]
mov rbx, rcx
test esi, esi
jle 0x1400037c0
mov rax, qword [0x140013198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400036db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003765
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400036c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400037e2
mov rax, qword [0x140013198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140013198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400037c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000375e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003770
add dword [0x140013194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140013198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000375e
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 esi, esi
jmp 0x1400036e8
mov rax, qword [0x140013198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003d50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140013200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400131e0]
test rbx, rbx
je 0x140003dac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003da3
test rsi, rsi
je 0x140003da3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003d88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003fc0
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000403d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140004034
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000403f
add rax, 0x28
cmp rax, r9
jne 0x140004020
xor eax, eax
ret

Function at 0x140004040
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400040d0
mov rdx, qword [0x14000fea0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400040be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400040be
cmp word [rax + 0x18], 0x20b
jne 0x1400040be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400040d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400040a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400040d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400040a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000fea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004100
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004108
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004100
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000415d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004154
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004100
add rax, 0x28
cmp rax, r9
jne 0x140004140
xor eax, eax
ret

Function at 0x140004160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000fea0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000417f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140004188
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000417f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400041a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000fea0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400041c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400041c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400041c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140004210
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140004207
test rcx, rcx
je 0x1400041c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400041f8
xor eax, eax
ret
Function at 0x140004220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000fea0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000423f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004248
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000fea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004280
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140004280
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400042d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400042e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400042c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000fea0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004312
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004320
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004312
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004312
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140004312
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140004375
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004388
add rdx, 0x28
cmp rdx, r10
jne 0x140004360
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004397
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400043a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000437e
test ecx, ecx
jg 0x140004390
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret