joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030de0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14003101e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140084010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x140069a70]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x140030fe6
mov rcx, rbp
call fcn.1400300e0
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x140030eb1
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x140030ea1
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x140030e99
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x140030e9c
mov rdx, rcx
test rdx, rdx
jne 0x140030e70
cmp r8, r10
je 0x140030eb1
cmp dword [r8], r9d
jne 0x140030eb1
mov rcx, qword [r8 + 8]
jmp 0x140030eb3
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x140030f47
cmp qword [rcx + 0x18], 0
jne 0x140030f3c
mov qword [rcx + 0x18], rbx
jmp 0x140030f47
cmp qword [rcx + 0x20], 0
jne 0x140030f47
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov rcx, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140030f7c
nop
mov rcx, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140030f70
mov r9d, dword [rcx]
lea r8, str.DockNode__02X
lea rcx, [rsp + 0x20]
mov edx, 0x14
call fcn.1400148d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x140030fd8
cmp r9b, 0x23
jne 0x140030fbb
cmp byte [r8], r9b
jne 0x140030fbb
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x140030fa8
not ecx
call fcn.14001d880
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x140030e30
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140063e60
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140063550
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400635d4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140068a80]
cmp byte [rcx + rax], 0
je 0x1400635d4
dec r8
sub rdx, 1
jne 0x1400635ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140064cec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064d36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140064d36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140064d36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140064d36
cmp dword [rcx + 0x84], 0xe
jbe 0x140064d36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140064d38
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000fe90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000fea0]
mov dword [rax], 1
mov rax, qword [0x14000feb0]
mov dword [rax], 1
mov rax, qword [0x14000fe10]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000fe80]
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 [0x14000ff60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ff40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000fdf0]
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 0x14000223e
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 0x1400022af
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, [0x14000e418]
mov rcx, rax
call dbg.__mingw_printf
jmp 0x140002381
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 0x1400022e0
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Deleted_filter_id:__llu._n
mov rcx, rax
call dbg.__mingw_printf
jmp 0x140002316
cmp dword [rbp - 4], 0x80320003
jne 0x1400022fa
lea rax, str.____The_filter_does_not_exist.
mov rcx, rax
call sym.puts
jmp 0x140002316
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 dbg.__mingw_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 0x140002374
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 0x140002365
cmp dword [rbp - 4], 0x8032000a
je 0x140002374
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, str.____FwpmProviderDeleteByKey0_failed_with_error_code:_0x_x._n
mov rcx, rax
call dbg.__mingw_printf
jmp 0x140002374
lea rax, str.Deleted_custom_WFP_provider.
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x50
pop rbp
ret
Function at 0x1400029bb
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 0x140002a7b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3f0
je 0x140002a32
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 dbg.__mingw_printf
mov eax, 0
jmp 0x140002b98
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 0x140002a7b
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 dbg.__mingw_printf
mov eax, 0
jmp 0x140002b98
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 0x140002ad6
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 dbg.__mingw_printf
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002b98
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 0x140002b4d
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 dbg.__mingw_printf
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002b98
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x514
jne 0x140002b83
lea rax, str.____Failed_to_get_SeDebugPrivilege._You_might_not_be_able_to_get_the_process_handle_of_the_EDR_process.
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002b98
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 0x140002cb8
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 0x140002cf2
cmp qword [rbp + 0x208], 0
jne 0x140002cfc
mov eax, 3
jmp 0x140002e0a
lea rdx, [rbp + 0x1c0]
mov rax, qword [rbp + 0x200]
mov r8d, 0xa
mov rcx, rax
call sym.GetDriveName
test eax, eax
jne 0x140002d26
mov eax, 4
jmp 0x140002e0a
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 0x140002d51
mov eax, 5
jmp 0x140002e0a
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._S_S
mov rcx, rax
call sym.swprintf
mov qword [rbp + 0x1d8], 0
jmp 0x140002de8
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 0x140002da5
mov eax, 0
add rsp, 0x268
pop rbx
pop rbp
ret

Function at 0x140002e14
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 0x140002e2e
mov eax, 0
jmp 0x140002e53
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 0x140002e4e
mov eax, 0
jmp 0x140002e53
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x140003500
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 0x140003570
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140013184]
mov rbx, rcx
test esi, esi
jle 0x1400036a0
mov rax, qword [0x140013188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400035bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003645
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400035a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400036c2
mov rax, qword [0x140013188]
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 [0x140013188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400036a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000363e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003650
add dword [0x140013184], 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 [0x140013188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000363e
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 0x1400035c8
mov rax, qword [0x140013188]
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 0x140003c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400131e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400131c0]
test rbx, rbx
je 0x140003cc4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003cbb
test eax, eax
jne 0x140003cbb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003ca0
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 0x140003f00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003f18
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003f20
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003f30
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 0x140003f7d
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 0x140003f74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003f7f
add rax, 0x28
cmp rax, r9
jne 0x140003f60
xor eax, eax
ret

Function at 0x140003f80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140004010
mov rdx, qword [0x14000fe10]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140003ffe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003ffe
cmp word [rax + 0x18], 0x20b
jne 0x140003ffe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140004010
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003fe9
add rbx, 0x28
cmp rbx, rdi
je 0x140004010
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003fe0
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 0x140004020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000fe10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004040
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004048
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004040
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000409d
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 0x140004094
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004040
add rax, 0x28
cmp rax, r9
jne 0x140004080
xor eax, eax
ret

Function at 0x1400040a0
Capabilities:
Parse pe header

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

Function at 0x1400040e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000fe10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004100
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004108
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004100
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140004158
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000414f
test rcx, rcx
je 0x140004100
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140004140
xor eax, eax
ret
Function at 0x140004160
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000fe10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400041c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400041c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400041c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400041c0
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 0x140004214
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004220
add rdx, 0x28
cmp r9, rdx
jne 0x140004200
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000fe10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004252
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004260
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004252
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004252
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140004252
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 0x1400042b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400042c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400042a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400042d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400042e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400042be
test ecx, ecx
jg 0x1400042d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003960
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400039bd
lea rbx, [0x1400c9100]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400039a4
cmp r10, 2
jb 0x1400039a4
cmp byte [r9], r8b
jne 0x1400039a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003980
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400039ff
lea rbx, [0x1400c9100]
cmp r8b, 0x23
jne 0x1400039e3
cmp byte [r9], r8b
jne 0x1400039e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400039d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140003b5a
mov qword [r8], 0
lea rdx, [0x1400c83c0]
call fcn.140003a10
mov rbx, rax
test rax, rax
jne 0x140003b7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003c53
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003c53
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003c53
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003c53
cmp rdi, 0xffffffffffffffff
je 0x140003c53
mov rax, qword [0x1401b9020]
test rax, rax
je 0x140003bf0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003c53
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003c40
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401b9020]
test rax, rax
je 0x140003c35
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003c5c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140003c4e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140003c5e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret