joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fb040
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x1401fb063
lea rcx, [0x14034e030]
call fcn.14028c4fc
lea rcx, str.C:ProgramData_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401fb07c
shr eax, 4
and al, 1
jne 0x1401fb088
lea rcx, str.C:ProgramData_
call fcn.14028aeb4
lea rcx, str.C:ProgramDataASUS_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401fb0a1
shr eax, 4
and al, 1
jne 0x1401fb0ad
lea rcx, str.C:ProgramDataASUS_
call fcn.14028aeb4
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401fb0c6
shr eax, 4
and al, 1
jne 0x1401fb0d2
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call fcn.14028aeb4
lea rcx, [0x14034e030]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401fb0eb
shr eax, 4
and al, 1
jne 0x1401fb0f7
lea rcx, [0x14034e030]
call fcn.14028aeb4
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
add rsp, 0x28
jmp fcn.140205ee0

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401fb126
xor al, al
add rsp, 0x28
ret
shr eax, 4
and al, 1
add rsp, 0x28
ret
Function at 0x14020bb00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14020bb78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14020bb78
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14020bb65
nop
cmp rbx, rcx
jae 0x14020bb78
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14020bb50
cmp rbx, rcx
jae 0x14020bb78
cmp word [rbx], 0
je 0x14020bb78
lfence
mov rax, rbx
jmp 0x14020bb7a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14028dc9c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14028da8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14028da8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14028da8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14028da8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14028da8b
cmp dword [rcx + 0x84], 0xe
jbe 0x14028da8b
cmp dword [rcx + 0xf8], 0
je 0x14028da8b
mov ecx, ebx
call fcn.14028dbbc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14028d810
cmp dword [rbp + 0x20], 0
je 0x14028dad8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14028dae0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14028da24

Function at 0x1402b4ff4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402b5014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140261070
or eax, 0xffffffff
jmp 0x1402b5016
xor eax, eax
add rsp, 0x28
ret

Function at 0x1402b89d4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1402b89f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140261070
or eax, 0xffffffff
jmp 0x1402b89f6
xor eax, eax
add rsp, 0x28
ret
Function at 0xfc6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xfc61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xfc6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xfc606f
add dl, dl
jne 0xfc6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xfc60f6
xor eax, eax
add dl, dl
jne 0xfc60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xfc61ad
add dl, dl
jne 0xfc60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xfc60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xfc607e
mov eax, 1
add dl, dl
jne 0xfc6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfc6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xfc60fb
sub eax, ebx
mov ebx, 1
jne 0xfc614c
mov ecx, 1
add dl, dl
jne 0xfc612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfc613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xfc6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xfc607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfc6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfc6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xfc615d
cmp eax, 0x7d00
jae 0xfc619b
cmp eax, 0x500
jb 0xfc6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xfc607e
cmp eax, 0x7f
ja 0xfc619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xfc607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xfc61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xfc607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180010f00
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp - 0x50], rcx
mov rax, rcx
mov qword [rbp - 0x48], rax
mov qword [rbp + 8], rcx
lea rcx, [rbp - 0x11]
lea rdx, [rbp - 0x10]
call fcn.180011060
lea rax, [rbp - 0x10]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
movsx eax, byte [rax + 0xf]
cmp eax, 0
je 0x180010fbc
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x58], rax
mov dword [rbp + 0x24], 0
cmp dword [rbp + 0x24], 0x10
jge 0x180010fb7
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rbp + 0x24]
movsx ecx, byte [rax + rcx]
mov eax, dword [rbp + 0x24]
mov r8d, 0x33
cdq
idiv r8d
mov rax, qword [rbp - 0x58]
add edx, 0x33
xor ecx, edx
mov dl, cl
movsxd rcx, dword [rbp + 0x24]
mov byte [rax + rcx], dl
mov eax, dword [rbp + 0x24]
add eax, 1
mov dword [rbp + 0x24], eax
jmp 0x180010f74
jmp 0x180010fbc
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp], rax
cmp qword [rbp], 0
je 0x180010fe7
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp]
call fcn.1800047f0
jmp 0x180011014
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x60], rcx
call fcn.180011090
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x50]
call fcn.180011140
jmp 0x180011006
lea rcx, [rbp - 0x38]
call fcn.1800111b0
jmp 0x180011014
mov rax, qword [rbp - 0x48]
add rsp, 0xc0
pop rbp
ret
Function at 0x18001e140
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x68], 0
je 0x18001e187
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x60], rax
jmp 0x18001e299
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp rax, qword [rsp + 0x58]
jge 0x18001e239
xor eax, eax
cmp rax, qword [rsp + 0x38]
jge 0x18001e239
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x38]
jge 0x18001e1d5
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov rcx, rax
call fcn.180016450
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
sub rax, rdx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov edx, eax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
xor eax, eax
cmp rax, qword [rsp + 0x58]
jge 0x18001e28a
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x18001e28a
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rax
mov rax, qword [rsp + 0x58]
sub rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x18001e6e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
cmp qword [rax + 0x68], 0
je 0x18001e722
mov rax, qword [rsp + 0x40]
test byte [rax + 0x71], 1
jne 0x18001e72c
mov byte [rsp + 0x67], 1
jmp 0x18001e873
call fcn.180016390
mov rcx, qword [rsp + 0x40]
mov edx, eax
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
mov dword [rsp + 0x3c], eax
call fcn.180016390
mov edx, dword [rsp + 0x3c]
mov ecx, eax
call fcn.1800163a0
test al, 1
jne 0x18001e75f
jmp 0x18001e769
mov byte [rsp + 0x67], 0
jmp 0x18001e873
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x50], reloc.WLDAP32.dll_Ordinal_32
mov rcx, qword [rdx + 0x68]
lea r9, [rsp + 0x90]
add rdx, 0x74
mov rax, rsp
lea r8, [rsp + 0x68]
mov qword [rax + 0x20], r8
mov rax, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
lea r8, [rsp + 0x70]
call rax
mov ecx, eax
mov dword [rsp + 0x38], ecx
test eax, eax
je 0x18001e7d8
jmp 0x18001e7b4
mov eax, dword [rsp + 0x38]
sub eax, 1
je 0x18001e7e1
jmp 0x18001e7c6
mov eax, dword [rsp + 0x38]
sub eax, 3
je 0x18001e85b
jmp 0x18001e86e
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x71], 0
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
sub rax, rcx
mov qword [rsp + 0x48], rax
xor eax, eax
cmp rax, qword [rsp + 0x48]
jae 0x18001e846
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rax
mov rax, qword [rsp + 0x30]
cmp rax, rcx
je 0x18001e846
mov byte [rsp + 0x67], 0
jmp 0x18001e873
mov rax, qword [rsp + 0x40]
mov al, byte [rax + 0x71]
xor al, 0xff
and al, 1
mov byte [rsp + 0x67], al
jmp 0x18001e873
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x71], 0
mov byte [rsp + 0x67], 1
jmp 0x18001e873
mov byte [rsp + 0x67], 0
mov al, byte [rsp + 0x67]
and al, 1
movzx eax, al
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18003f420
mov eax, dword [rsp + 0x2c]
add rsp, 0x98
ret
Function at 0x180038780
Capabilities:
Authenticate hmac

Disassembly:
sub rsp, 0x178
mov rax, qword [rsp + 0x1a8]
mov rax, qword [rsp + 0x1a0]
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x130]
xor edx, edx
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xf0]
mov edx, gethostname
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xb0]
mov edx, 0x5c
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memset
cmp qword [rsp + 0x58], 0x40
jbe 0x180038830
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x40
call fcn.180038990
jmp 0x180038847
lea rcx, [rsp + 0x130]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x44], 0x40
jge 0x1800388b0
movsxd rax, dword [rsp + 0x44]
movzx edx, byte [rsp + rax + 0x130]
movsxd rax, dword [rsp + 0x44]
movzx ecx, byte [rsp + rax + 0xf0]
xor ecx, edx
mov byte [rsp + rax + 0xf0], cl
movsxd rax, dword [rsp + 0x44]
movzx edx, byte [rsp + rax + 0x130]
movsxd rax, dword [rsp + 0x44]
movzx ecx, byte [rsp + rax + 0xb0]
xor ecx, edx
mov byte [rsp + rax + 0xb0], cl
mov eax, dword [rsp + 0x44]
add eax, 1
mov dword [rsp + 0x44], eax
jmp 0x18003884f
lea rax, [rsp + 0x90]
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0xf0]
mov edx, 0x40
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
call fcn.180038a60
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
mov edx, 0x40
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
call fcn.180038a60
cmp qword [rsp + 0x1a8], 0x20
jbe 0x180038933
mov eax, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x38], rax
jmp 0x180038940
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x1a0]
lea rdx, [rsp + 0x70]
mov r8, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18003f420
mov rax, qword [rsp + 0x30]
add rsp, 0x178
ret

Function at 0x18003aa70
Capabilities:
Hash data using sha256

Disassembly:
push rax
mov qword [rsp], rcx
mov rax, qword [rsp]
mov dword [rax + 0x28], 0
mov rax, qword [rsp]
mov qword [rax], 0
mov rax, qword [rsp]
mov dword [rax + 8], 0x6a09e667
mov rax, qword [rsp]
mov dword [rax + 0xc], 0xbb67ae85
mov rax, qword [rsp]
mov dword [rax + 0x10], 0x3c6ef372
mov rax, qword [rsp]
mov dword [rax + 0x14], 0xa54ff53a
mov rax, qword [rsp]
mov dword [rax + 0x18], 0x510e527f
mov rax, qword [rsp]
mov dword [rax + 0x1c], 0x9b05688c
mov rax, qword [rsp]
mov dword [rax + 0x20], 0x1f83d9ab
mov rax, qword [rsp]
mov dword [rax + 0x24], 0x5be0cd19
pop rax
ret
Function at 0x18003fe7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18003feb6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18003febb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18003ff04
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x18003ff04
dec r8
sub rdx, 1
jne 0x18003feea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800502d0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x180050436
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x18005041e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.180053820
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x180050391
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x180050350
cmp byte [rax + rcx - 1], 0xa
jne 0x180050378
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x18005038c
lea r8, [0x180090f70]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1800537b0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180050396
cmp qword [rdi + 0x718], 0
je 0x1800503de
mov dl, 1
mov rcx, rdi
call fcn.180040cf0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.180040cf0
jmp 0x180050416
mov r9, qword [rdi + 0x668]
lea rcx, [0x18008d858]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.18003f420
add rsp, 0x860
pop rdi
ret
Function at 0x180050440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x180050483
cmp qword [rcx + 0x678], 0
je 0x180050560
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.180053820
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800504b1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1800504f8
cmp byte [rdi + 0x1597], 0
jne 0x1800504f8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800504e0
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x180050558
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1800505b3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x180050579
mov dl, 1
mov rcx, rdi
call fcn.180040cf0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.180040cf0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18003f420
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x18008d858]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180050558
call fcn.1800556a0
int3

Function at 0x180050620
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180050662
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800507c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1800a9880]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1800508c7
lea rax, [0x180050670]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1800508c7
cmp qword [rbx], r13
je 0x18005084e
test rdi, rdi
je 0x1800508c7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.180060d70
cmp eax, 0xffffffff
je 0x1800508c7
test al, 1
je 0x1800508c7
mov rax, qword [rbx]
test rax, rax
jne 0x1800508a0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1800508c3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1800508c7
add qword [rbx + 0x10], rcx
jmp 0x1800508c7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x180050934
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180050900
mov dword [r14], 0x51
mov rax, r13
jmp 0x180050937
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.18003e3b0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180050440
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18003f420
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180050aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x180050afe
mov dl, 1
call fcn.180040cf0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.180040cf0
mov eax, ebx
jmp 0x180050b42
cmp ebx, 2
ja 0x180050b40
mov r9, qword [rdi + 0x668]
lea rdx, [0x18008d858]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180051770
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x18005178d
call fcn.180049f40
test eax, eax
jne 0x1800517b3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x180051786
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180051786
mov al, 1
add rsp, 0x28
ret