joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013640
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x48
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14001366e
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
jmp 0x140013745
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140013743
mov rax, qword [rsp + 0x28]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1400136ba
mov rax, qword [rsp + 0x28]
add rax, 0xf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400136d4
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x140013743
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x50], eax
jb 0x140013741
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x50], eax
jae 0x140013741
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xc]
mov edx, dword [rsp + 0x50]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
add rax, rcx
jmp 0x140013745
jmp 0x1400136c6
xor eax, eax
add rsp, 0x48
ret
Function at 0x140013d90
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
cmp qword [0x140008920], 0
je 0x140013dfc
cmp qword [rsp + 0x80], 0
je 0x140013df0
mov rax, qword [rsp + 0x80]
mov ecx, dword [0x140008928]
mov dword [rax], ecx
mov rax, qword [0x140008920]
jmp 0x140013fca
lea rdx, [0x140016350]
lea rcx, [rsp + 0x50]
call fcn.1400023a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140013e2c
xor eax, eax
jmp 0x140013fca
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x48], 0
jne 0x140013e70
lea r9, [0x140016370]
lea r8, [0x140016380]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140013fca
mov eax, dword [rsp + 0x48]
mov r8d, 0x4b555341
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140013faa
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x140013eee
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140013faa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x38], rax
jb 0x140013fa5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x38], rax
jae 0x140013fa5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x10]
mov qword [0x140008920], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x18]
mov dword [0x140008928], eax
cmp qword [rsp + 0x80], 0
je 0x140013fa3
mov rax, qword [rsp + 0x80]
mov ecx, dword [0x140008928]
mov dword [rax], ecx
jmp 0x140013faa
jmp 0x140013ee4
cmp qword [rsp + 0x28], 0
je 0x140013fc3
mov edx, 0x4b555341
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop
mov rax, qword [0x140008920]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001670
add rsp, 0x70
pop rdi
ret
Function at 0x1400140d0
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140013d90
mov qword [rsp + 0x40], rax
cmp qword [0x140008930], 0
je 0x14001410b
mov rax, qword [0x140008930]
jmp 0x14001426d
cmp qword [rsp + 0x40], 0
jne 0x14001411a
xor eax, eax
jmp 0x14001426d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x108
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140014154
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x14001426b
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x140014266
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140014266
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x140014266
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x54494e49
je 0x140014266
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x45474150
je 0x140014266
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
lea rcx, [0x1400163c0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x60]
call fcn.1400035f0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x140014266
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 7]
mov qword [0x140008930], rax
mov rax, qword [0x140008930]
jmp 0x14001426d
jmp 0x140014146
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001670
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x1400182f0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc0], 0
jne 0x140018332
mov dword [rsp + 0x38], 1
jmp 0x14001833a
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0
je 0x140018368
xor r9d, r9d
mov r8d, 0xa3
lea rdx, [0x1400184f0]
lea rcx, [0x140018520]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x140018370
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0xc0], 0
jne 0x140018385
mov eax, 0xc000000d
jmp 0x1400184d7
xor ecx, ecx
call fcn.140013d90
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400183a3
mov eax, 0xc0000225
jmp 0x1400184d7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400183c5
mov eax, 0xc000007b
jmp 0x1400184d7
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
jmp 0x1400183ef
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x1400184d2
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x1400184cd
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0xb8]
movzx edx, byte [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call fcn.1400035f0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x1400184c7
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x3c]
jmp 0x1400184d7
jmp 0x1400183e1
mov eax, 0xc0000225
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001670
add rsp, 0x98
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140007950]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140007960]
mov dword [rax], 1
mov rax, qword [0x140007970]
mov dword [rax], 1
mov rax, qword [0x1400078c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140007940]
mov dword [0x14000b00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140007a10]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400079f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400078a0]
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 0x140002cbb
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 0x140002cf5
cmp qword [rbp + 0x208], 0
jne 0x140002cff
mov eax, 3
jmp 0x140002e0d
lea rdx, [rbp + 0x1c0]
mov rax, qword [rbp + 0x200]
mov r8d, 0xa
mov rcx, rax
call sym.GetDriveName
test eax, eax
jne 0x140002d29
mov eax, 4
jmp 0x140002e0d
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 0x140002d54
mov eax, 5
jmp 0x140002e0d
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 0x140002deb
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 0x140002da8
mov eax, 0
add rsp, 0x268
pop rbx
pop rbp
ret

Function at 0x140002e17
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 0x140002e31
mov eax, 0
jmp 0x140002e56
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 0x140002e51
mov eax, 0
jmp 0x140002e56
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x140003520
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140003590
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000b184]
mov rbx, rcx
test esi, esi
jle 0x1400036c0
mov rax, qword [0x14000b188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400035db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003665
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400035c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400036e2
mov rax, qword [0x14000b188]
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 [0x14000b188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400036c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000365e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003670
add dword [0x14000b184], 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 [0x14000b188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000365e
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 0x1400035e8
mov rax, qword [0x14000b188]
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 0x140003c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000b1e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b1c0]
test rbx, rbx
je 0x140003ce4
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 0x140003cdb
test eax, eax
jne 0x140003cdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003cc0
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 0x140003f70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003f88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003f90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003fa0
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 0x140003fed
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 0x140003fe4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003fef
add rax, 0x28
cmp rax, r9
jne 0x140003fd0
xor eax, eax
ret

Function at 0x140003ff0
Capabilities:
Parse pe header

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

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

Function at 0x140004110
Capabilities:
Parse pe header

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

Function at 0x140004150
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400078c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004170
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004178
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004170
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400041c8
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 0x1400041bf
test rcx, rcx
je 0x140004170
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400041b0
xor eax, eax
ret
Function at 0x1400041d0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400078c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400042c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400042d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400042c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400042c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400042c2
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 0x140004325
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004338
add rdx, 0x28
cmp r10, rdx
jne 0x140004310
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004347
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004357
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000432e
test ecx, ecx
jg 0x140004340
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140017cc0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1404ed618]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
call fcn.14034b1c0
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140017d4e
xor eax, eax
mov rcx, 0xffffffffffffffff
mov qword [rbx], rax
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140017d20
mov qword [rbx + 8], rcx
inc rcx
call fcn.140348ec8
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.14034ab10
jmp 0x140017d5d
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140348950
add rsp, 0x140
pop rbx
ret

Function at 0x1400193a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400193d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400193c0
ret
Function at 0x14001f580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14001fd30
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x1404ed618]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp word [rcx + 0xe], 3
movzx esi, r8b
mov rbx, rcx
jne 0x14001fdf1
cmp dword [rcx], 0
je 0x14001fdf1
mov eax, 0x405
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], ax
movabs rcx, 0xffff000000000000
mov rax, qword [rsp + 0x30]
and rax, rcx
or rax, rdx
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x14001fd97
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140021040
mov ecx, dword [rbx]
movabs rdx, 0xffffffffffff
mov rax, qword [rbx + 8]
and rax, rdx
shl rcx, 5
add rcx, rax
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x14001fdf1
movzx ecx, word [rax + 0x1e]
movzx eax, cl
shr al, 3
test al, 1
je 0x14001fdf1
cmp cx, 0xa
sete al
jmp 0x14001fdf5
movzx eax, sil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140348950
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret