joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x1400430e0]
test esi, esi
je 0x1400352ce
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400352c6
je 0x1400352c4
test rdi, rdi
je 0x14003526f
cmp dword [rdi], 0
mov dword [rdi], 0
je 0x14003526f
mov rdi, qword [rdi + 4]
jmp 0x140035271
xor edi, edi
movzx eax, byte [0x14009b108]
mov edx, 0xc
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x1400352ef
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400352bf
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x1400352c6
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430c8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035257
jmp 0x1400352c6
ud2

Function at 0x140035ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor ecx, ecx
jmp 0x140035ad0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x1400430c0]
test esi, esi
je 0x140035b72
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140035b6a
je 0x140035b13
test rdi, rdi
je 0x140035b17
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140035b19
mov rbx, qword [rdi + 8]
jmp 0x140035b19
xor eax, eax
jmp 0x140035b6a
xor ebx, ebx
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x140035b93
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140035b67
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430a8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035af7
jmp 0x140035b6a
ud2
Function at 0x14003a2e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x50], 0
lea r12, [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea rcx, [0x1400961b0]
lea r9, [0x140096194]
xor ebx, ebx
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x14003a3ef
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14003a406
mov rcx, r15
mov rdx, r14
call fcn.140036130
mov r14, rax
mov qword [rsp + 0x50], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x14003a428
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14003a440
test r14, r14
je 0x14003a3aa
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x14003a487
mov qword [rsi + 8], rbx
mov byte [rsi], 0x12
jmp 0x14003a46e
mov ecx, eax
call fcn.140036420
mov ebx, edx
test rax, rax
je 0x14003a406
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], ebx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
jmp 0x14003a477
mov ecx, eax
call fcn.140036420
mov r15d, edx
test rax, rax
je 0x14003a440
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
test r14, r14
je 0x14003a44d
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call fcn.140036420
mov ebp, edx
test rax, rax
je 0x14003a49e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
movzx eax, word [rsp + 0x50]
mov word [rsi + 1], ax
movzx eax, byte [rsp + 0x52]
mov byte [rsi + 3], al
mov dword [rsi + 4], ebp
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x14003a46e
Function at 0x140042180
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 fcn.140042f50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140042f50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400421f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14009b194]
mov rbx, rcx
test esi, esi
jle 0x140042320
mov rax, qword [0x14009b198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004223b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400422c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140042220
mov rcx, rbx
call fcn.140042c70
mov rdi, rax
test rax, rax
je 0x140042342
mov rax, qword [0x14009b198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140042db0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14009b198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140042327
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400422be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400422d0
add dword [0x14009b194], 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 [0x14009b198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400422be
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140042180
nop dword [rax]
xor esi, esi
jmp 0x140042248
mov rax, qword [0x14009b198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140042180
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140042180
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400428e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14009b200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14009b1e0]
test rbx, rbx
je 0x14004293c
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 rsi, rsi
je 0x140042933
test eax, eax
jne 0x140042933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140042918
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 0x140042c70
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140042cf0
Capabilities:
Parse pe header

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

Function at 0x140042db0
Capabilities:
Parse pe header

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

Function at 0x140002608
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000beb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000bec0]
mov dword [rax], 1
mov rax, qword [0x14000bed0]
mov dword [rax], 1
mov rax, qword [0x14000be40]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000bea0]
mov dword [0x14000f00c], 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 [0x14000bf80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000bf60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000bdf0]
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 [sym._matherr]
call sym.__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 0x1400019b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov r9, rdx
xor ecx, ecx
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400019f0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
je 0x140001a20
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140001a20
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
test rax, rax
je 0x140001a20
mov eax, dword [rax]
add rsp, 0x20
pop rbx
ret
mov ecx, 1
call qword [sym.__acrt_iob_func]
lea rdx, str._nERROR:__s:_Wrong_host_address_n_n
mov r8, rbx
mov rcx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x140001a16
Function at 0x1400033a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140003410
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0b4]
test esi, esi
mov rbx, rcx
jle 0x140003540
mov rax, qword [0x14000f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000345b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400034e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003440
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140003562
mov rax, qword [0x14000f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003547
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400034de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400034f0
add dword [0x14000f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000f0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400034de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140003468
mov rax, qword [0x14000f0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140003b2c
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 0x140003b23
test rsi, rsi
je 0x140003b23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003b08
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 0x140003d40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140003d50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140003d60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003d78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003d80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003d90
Capabilities:
Enumerate pe sections

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

Function at 0x140003de0
Capabilities:
Parse pe header

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

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

Function at 0x140003f00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000be40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003f1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003f28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003f1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003f40
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000be40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003f60
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003f68
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003f60
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140003fb0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003fa7
test rcx, rcx
je 0x140003f60
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003f98
xor eax, eax
ret

Function at 0x140003fc0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000be40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400040b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400040c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400040b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400040b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400040b2
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]
cmp rax, r9
mov r8, r9
jb 0x140004115
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004128
add rdx, 0x28
cmp rdx, r10
jne 0x140004100
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004137
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004147
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000411e
test ecx, ecx
jg 0x140004130
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140009810
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov ebx, ecx
mov rsi, rdx
call sym.__main
lea rdx, [sym.ctrl_c]
mov ecx, 2
call sym.signal
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rdx, rsi
mov ecx, ebx
add rsp, 0x1c8
pop rbx
pop rsi
jmp sym.main_func
Function at 0x140027420
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001adc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001adc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027570
cmp rax, 0xffffffffffffffff
je 0x140027570
xor edi, edi
test rbp, rbp
jle 0x14002751b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001d3b0
mov rbx, rax
test rax, rax
jne 0x1400274a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027511
mov edx, 0x8000
mov ecx, r14d
call fcn.140014f68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001baa0
cmp eax, 0xffffffff
je 0x1400274f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400274b8
mov edx, r15d
mov ecx, r14d
call fcn.140014f68
jmp 0x140027511
cmp byte [rsi + 0x38], dil
je 0x140027508
cmp dword [rsi + 0x34], 5
jne 0x140027508
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027511
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019488
jmp 0x140027584
jns 0x140027584
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001adc4
cmp rax, 0xffffffffffffffff
jne 0x14002753c
cmp byte [rsi + 0x30], dil
je 0x140027584
mov edi, dword [rsi + 0x2c]
jmp 0x140027584
mov ecx, r14d
call fcn.140016568
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027584
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027584
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002757d
mov eax, dword [rsi + 0x2c]
jmp 0x140027582
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001adc4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400286a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400286a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret