joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402535b0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov r10d, dword [rdx]
mov rbp, rcx
mov eax, r10d
mov qword [rsp + 0x70], rsi
shr eax, 8
movabs rcx, 0xcbf29ce484222325
movzx r9d, al
mov rbx, rdx
mov r8, qword [rbp + 0x30]
movabs rdx, 0x100000001b3
movzx eax, r10b
xor rax, rcx
imul rax, rdx
xor r9, rax
mov eax, r10d
imul r9, rdx
shr eax, 0x10
movzx ecx, al
mov eax, r10d
xor r9, rcx
shr rax, 0x18
mov rcx, qword [rbp + 0x18]
imul r9, rdx
xor r9, rax
imul r9, rdx
mov rdx, qword [rbp + 8]
and r8, r9
add r8, r8
mov r9, qword [rcx + r8*8]
lea r11, [rcx + r8*8]
mov rax, r9
cmp r9, rdx
jne 0x14025363b
mov rcx, rdx
jmp 0x140253642
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140253657
cmp dword [rax + 0x10], r10d
je 0x140253652
mov rax, qword [rax]
jmp 0x140253631
cmp rax, rdx
jne 0x1402536d2
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x60]
mov rbx, qword [rdx]
lea r9, [0x14027d490]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 8]
lea rax, [rsp + 0x68]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rsi, qword [rbx + 8]
mov r8, rsi
call fcn.14024b240
mov rdx, rax
movabs rcx, 0xaaaaaaaaaaaaaa9
mov rax, qword [rbp + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x1402536e3
inc rax
mov rcx, rbp
mov qword [rbp + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rsi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [rbp + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.14024bca0
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
add rax, 0x14
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea rcx, str.list_T__too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140254440
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x670
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x660], rax
cmp qword [rcx + 0x18], 8
mov rdi, rcx
mov rax, rcx
jb 0x14025446b
mov rax, qword [rcx]
xor ecx, ecx
xor edx, edx
mov qword [rdi + 0x10], rcx
mov r8d, CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
mov word [rax], cx
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rax, [rsp + 0x250]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1402544b3
xor al, al
jmp 0x1402545c4
lea rdx, [0x14027b3d8]
mov qword [rsp + 0x688], rbx
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14027b3e8]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14027b3f0]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x250]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140254510
lea rdx, [rsp + 0x250]
mov rcx, rdi
call fcn.140086f50
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x140254538
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140254020
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14025457a
mov rcx, qword [rdi]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, 0x102
ja 0x1402545ba
lea rax, [rsp + 0x40]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1402545a0
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140086f50
mov rbx, qword [rsp + 0x688]
mov al, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1400e39a0
add rsp, 0x670
pop rdi
ret
Function at 0x140256430
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r11, [r8 + 0x10]
mov rbx, qword [r11 + 0x10]
mov rsi, rdx
mov rdi, rcx
jb 0x140256457
mov r11, qword [r11]
xor r9d, r9d
movabs r10, 0xcbf29ce484222325
test rbx, rbx
je 0x140256494
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + r11]
inc r9
xor r10, rax
imul r10, rcx
cmp r9, rbx
jb 0x140256480
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x18]
and rdx, r10
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x1402564d4
cmp rax, r8
jne 0x1402564ca
mov rax, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x1402564df
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x1402564df
cmp rax, r8
jne 0x1402564df
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
lea rcx, [rdi + 8]
mov rbx, qword [r8]
mov qword [rax], rbx
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov rdx, r8
dec qword [rcx + 8]
call fcn.140255240
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14025b7f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x690
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rcx, [r11 - 0x428]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdi, [rsi - 1]
test eax, eax
js 0x14025b89d
lea rax, [rsp + 0x270]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14025b890
jmp 0x14025b8eb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14025b8aa
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
lea r9, str.USERPROFILE
mov r8d, 0x204
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
nop
test eax, eax
jne 0x14025b949
lea rax, [rsp + 0x270]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14025b8e0
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140086f50
mov r8d, listen
lea rdx, str..nitro_test
mov rcx, rbx
call fcn.1400adcd0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14025b91d
mov rcx, qword [rbx]
cmp si, word [rcx]
je 0x14025b9e7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14025b935
test al, 0x10
jne 0x14025b949
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14025b942
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
cmp qword [rbx + 0x10], 0
jne 0x14025b958
mov rcx, rbx
call fcn.140254440
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.14024aea0
mov r8d, 1
lea rdx, [0x1402a3ea0]
mov rcx, rbx
call fcn.1400adcd0
lea rax, [rsp + 0x60]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14025b990
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400adcd0
mov r8d, 9
lea rdx, str._:d.log
mov rcx, rbx
call fcn.1400adcd0
mov rax, rbx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rsp + 0x48]
call fcn.140082580
lea rdx, [0x140359df0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14025e090
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov rdi, rcx
mov qword [rsp + 0x40], 0
lea rsi, vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xfa
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x70]
mov rbx, qword [rsp + 0x40]
add rcx, rbx
mov qword [rdi + 0x70], rcx
cmp rcx, qword [rdi + 0x60]
jbe 0x14025e11f
mov rcx, rdi
call fcn.14025d350
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x70], rbx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x14025e1aa
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x14025e185
mov rdx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14025e17f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14025e17f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082ab0
nop
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0x88]
lea rcx, [rsp + 0x188]
call fcn.140256780
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x1a8]
call fcn.1400d6c60
nop
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.140251a50
lea rdx, [0x14035afc0]
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140002b00
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.140004660
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.140004660
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 0x140002b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002ca0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002bbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ba0
mov rcx, rbx
call fcn.1400035c0
mov rdi, rax
test rax, rax
je 0x140002cc2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003700
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c50
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b00
nop dword [rax]
xor esi, esi
jmp 0x140002bc8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003230
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000328c
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 0x140003283
test rsi, rsi
je 0x140003283
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003268
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 0x1400035c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003640
Capabilities:
Parse pe header

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

Function at 0x140003700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000371f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003728
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011172
Capabilities:
Terminate process

Disassembly:
jmp 0x1400125b0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140025100]
call fcn.14001149c
lea rdx, [0x14001c328]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400111e0
cmp eax, 1
jne 0x14001265a
call fcn.140011299
test eax, eax
je 0x140012637
lea rdx, [0x14001c368]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rdx, str.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011249
Capabilities:
Resolve dns

Disassembly:
jmp 0x140012d10
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250fe]
call fcn.14001149c
mov r8d, recvfrom
xor edx, edx
mov rcx, qword [rbp + 0x110]
call fcn.1400113b1
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012d6b
mov eax, 0xffffffff
jmp 0x140012dd6
mov rax, qword [rbp + 8]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rbp + 8]
mov rdx, qword [rdx + 0x18]
mov r8, qword [rbp + 0x110]
add r8, 4
mov qword [rbp + 0xd8], r8
mov r8, rax
mov rdx, qword [rdx + rcx]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call fcn.14001124e
movzx ecx, word [rbp + 0x108]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbp + 0x110]
mov word [rcx + 2], ax
mov eax, 2
mov rcx, qword [rbp + 0x110]
mov word [rcx], ax
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Terminate process

Disassembly:
jmp 0x140014ce0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011348
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
jmp 0x140013570
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x308]
mov rax, qword [0x14001f018]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x140025100]
call fcn.14001149c
mov eax, 0x101
mov word [rbp + 4], ax
lea rdx, [rbp + 0x30]
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
je 0x1400135ef
lea rcx, str.WSAStartup_error
call qword [sym.imp.ucrtbased.dll_perror]
call fcn.1400114c4
call fcn.140011299
test eax, eax
je 0x140013605
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
call fcn.140011172
call fcn.14001138e
call fcn.14001131b
jmp 0x140013618
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001c1a0]
call fcn.14001140b
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret

Function at 0x140011352
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016030
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016050
xor al, al
jmp 0x1400160d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016063
xor al, al
jmp 0x1400160d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001608d
xor al, al
jmp 0x1400160d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400160a1
xor al, al
jmp 0x1400160d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400160b3
xor al, al
jmp 0x1400160d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400160cf
xor al, al
jmp 0x1400160d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011361
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x1400126a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x14001f018]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400250ff]
call fcn.14001149c
mov dword [rbp + 0x34], recvfrom
mov rcx, qword [rbp + 0x150]
call fcn.140011208
movsxd rcx, dword [0x14001f004]
mov edx, dword [0x14001f1a0]
mov dword [rsp + 0x28], edx
lea rdx, [0x14001f190]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rbp + 0x150]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0xffffffff
jne 0x140012745
lea rcx, str.sendto
call fcn.140011159
xor eax, eax
jmp 0x140012797
movsxd rax, dword [0x14001f004]
lea rcx, [rbp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0x80
lea rdx, [0x14001f230]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0xffffffff
jne 0x140012790
lea rcx, str.recvfrom
call fcn.140011159
xor eax, eax
jmp 0x140012797
lea rax, [0x14001f230]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14001140b
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400114c4
Capabilities:
Get hostname
Terminate process

Disassembly:
jmp 0x140012460
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f018]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x1400250ff]
call fcn.14001149c
call qword [sym.imp.ucrtbased.dll__getpid]
mov dword [section..data], eax
call fcn.14001148d
mov dword [0x14001f004], eax
cmp dword [0x14001f004], 0xffffffff
jne 0x1400124d5
lea rcx, str.Cannot_create_socket
call qword [sym.imp.ucrtbased.dll_perror]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov edx, 0x200
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_gethostname]
lea r8, [0x14001f190]
mov edx, 0x7e4
lea rcx, [rbp + 0x10]
call fcn.140011249
mov dword [0x14001f1a0], 0x10
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bde0]
call fcn.14001140b
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x140001a70
Capabilities:
Parse pe header

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

Function at 0x140008460
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000825c