joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bc0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15, r8
mov rsi, rdx
xor ebx, ebx
mov r14d, ebx
mov dword [r11 - 0x44], ebx
mov edi, ebx
mov dword [r11 - 0x48], ebx
mov ecx, 0x1000
call fcn.140009800
mov rbp, rax
test rax, rax
je 0x140001d16
mov qword [rsp + 0x148], rax
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.14000b410
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x140]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140001d0b
mov r8d, dword [rsp + 0x140]
test r8d, r8d
je 0x140001cad
lea eax, [r8 + rdi]
cmp eax, 0x1000
jae 0x140001ca8
mov edx, edi
add rdx, rbp
lea r9, [rsp + 0x144]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001ca8
add edi, dword [rsp + 0x144]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x140]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x140001c52
jmp 0x140001d0b
mov r14d, ebx
jmp 0x140001d0b
mov r14d, 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea r8d, [r14 + 2]
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.140002120
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140001cea
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140001ce0
mov r8d, ebx
mov rcx, r15
call fcn.140002590
nop
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x140001d0b
call fcn.14000a0e0
nop
mov rcx, rbp
call fcn.140009a20
mov eax, r14d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001d40
Capabilities:
Check http status code

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, rdx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov edx, 0x20000013
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140001da1
cmp dword [rsp + 0x34], 0xc8
jne 0x140001da1
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x48
ret
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x48
ret
Function at 0x140002bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140002bf3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002c39
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140002c34
nop
cmp rbx, rcx
jae 0x140002c39
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140002c20
cmp rbx, rcx
jb 0x140002c3d
xor eax, eax
jmp 0x140002c49
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003090
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ecx, 0x2c0
xor ebx, ebx
mov dword [rbp - 1], 0x2c0
call fcn.140009800
mov rdi, rax
test rax, rax
jne 0x1400030d7
xor eax, eax
jmp 0x1400031dc
lea rdx, [rbp - 1]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140003101
mov rcx, rdi
call fcn.14000a49c
mov ecx, dword [rbp - 1]
call fcn.140009800
mov rdi, rax
test rax, rax
je 0x1400030d0
lea rdx, [rbp - 1]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1400031d2
xor eax, eax
mov word [rbp + 7], bx
or rbx, 0xffffffffffffffff
mov qword [rbp + 9], rax
mov qword [rbp + 0x11], rax
mov qword [rbp + 0x19], rax
mov qword [rbp + 0x21], rax
mov qword [rbp + 0x29], rax
mov qword [rbp + 0x31], rax
mov qword [rbp + 0x39], rax
mov dword [rbp + 0x41], eax
mov word [rbp + 0x45], ax
mov eax, dword [rdi + 0x198]
mov dword [rbp - 9], eax
movzx eax, word [rdi + 0x19c]
movzx edx, byte [rbp - 6]
movzx r8d, byte [rbp - 7]
movzx r9d, byte [rbp - 8]
movzx r10d, byte [rbp - 9]
mov word [rbp - 5], ax
movzx eax, byte [rbp - 4]
movzx ecx, byte [rbp - 5]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
lea edx, [rbx + 0x21]
lea r9, str._02X:_02X:_02X:_02X:_02X:_02X
lea rcx, [rbp + 7]
mov r8, rbx
mov dword [rsp + 0x20], r10d
call fcn.14000a4a4
lea rax, [rbp + 7]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400031b0
lea rdx, [rbp + 7]
lea rcx, [0x14002d9b0]
mov r8d, ebx
call fcn.140002590
mov ebx, 1
mov rcx, rdi
call fcn.14000a49c
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140009a40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400035b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rcx, qword [0x14002d9a8]
mov rbx, rdx
mov dword [rsp + 0x20], 0
cmp dword [rcx - 0x10], 0
jne 0x1400037d2
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400037a9
mov eax, dword [rsp + 0x64]
sub eax, 4
je 0x140003751
dec eax
je 0x1400036c6
dec eax
je 0x140003638
mov r8d, 7
lea rdx, str.Unknown
jmp 0x14000379d
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140003691
dec eax
je 0x14000365c
dec eax
jne 0x1400037a9
lea r8d, [rax + 4]
lea rdx, str.win8
jmp 0x14000379d
cmp byte [rsp + 0x17a], 1
lea rcx, [0x14002d9a8]
jne 0x14000367f
mov r8d, 4
lea rdx, str.win7
jmp 0x1400037a4
mov r8d, send
lea rdx, str.WinServer2008R2
jmp 0x1400037a4
cmp byte [rsp + 0x17a], 1
lea rcx, [0x14002d9a8]
jne 0x1400036b4
mov r8d, 5
lea rdx, str.vista
jmp 0x1400037a4
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.WinServer2008
jmp 0x1400037a4
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140003742
dec eax
je 0x140003739
dec eax
jne 0x1400037a9
cmp byte [rsp + 0x17a], 1
jne 0x1400036fc
cmp word [rsp + 0x28], 9
jne 0x1400036fc
lea r8d, [rax + 0x2d]
lea rdx, str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x14000379d
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14000371b
lea r8d, [rax + 0x1d]
lea rdx, str.Microsoft_Windows_Server_2003
jmp 0x14000379d
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400037a9
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2003_R2
jmp 0x14000379d
lea rdx, str.winxp
jmp 0x140003797
mov r8d, 7
lea rdx, str.Win2000
jmp 0x14000379d
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140003775
cmp eax, 0xa
je 0x14000376c
cmp eax, 0x5a
jne 0x1400037a9
lea rdx, str.Winme
jmp 0x140003797
lea rdx, str.Win98
jmp 0x140003797
mov eax, dword [rsp + 0x70]
cmp eax, 2
jne 0x14000378b
lea r8d, [rax + 5]
lea rdx, str.WINT4.0
jmp 0x14000379d
cmp eax, 1
jne 0x1400037a9
lea rdx, str.Win95
mov r8d, 5
lea rcx, [0x14002d9a8]
call fcn.140002590
call fcn.140004840
test eax, eax
je 0x1400037cb
lea rdx, str._x64
lea rcx, [0x14002d9a8]
mov r8d, 4
call fcn.140003890
mov rcx, qword [0x14002d9a8]
add rcx, 0xffffffffffffffe8
call fcn.140003800
add rax, 0x18
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x190
pop rbx
ret
Function at 0x1400045e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0xe0
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movsxd rbx, r9d
xor r9d, r9d
mov rbp, r8
mov qword [rsp + 0x30], 0
lea rcx, str..pipewangbax
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004645
xor eax, eax
jmp 0x1400046ed
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x100], rdi
call fcn.140009800
lea rcx, [rsp + 0x40]
mov r8d, 3
mov dword [rax], 0xcc00
mov dword [rax + 4], 1
mov dword [rax + 8], ebx
mov rdi, rax
lea rax, [rsp + 0x48]
mov rdx, rbp
mov qword [rsp + 0x40], rax
call fcn.140001ff0
mov rbp, qword [rsp + 0x40]
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
lea rcx, [rdi + 0xc]
call fcn.140009af0
lea rax, [rsp + 0x48]
cmp rbp, rax
je 0x1400046af
mov rcx, rbp
call fcn.14000a0e0
lea r8d, [rbx + 0x10]
lea r9, [rsp + 0xd0]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call fcn.14000a49c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x100]
mov eax, ebx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140009a40
add rsp, 0xe0
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004710
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
xor edi, edi
mov word [rsp + 0x60], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.14000b410
mov dword [rsp + 0x30], edi
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x60]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400047a2
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140002590
mov rax, qword [r15]
mov ecx, 1
cmp dword [rax - 0x10], 0
cmovg edi, ecx
mov dword [rsp + 0x30], edi
jmp 0x1400047e3
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400047ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
jg 0x140004819
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004840
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x14000487e
call rax
jmp 0x140004884
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
cmp cx, 9
je 0x1400048a9
cmp cx, 6
je 0x1400048a9
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x68
ret
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x68
ret

Function at 0x140005250
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000528d
xor eax, eax
jmp 0x1400052d8
lea rax, [0x14002d790]
lea rcx, [rbx + 2]
lea r9, [0x140024640]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14000a4a4
lea rcx, [rbx + 0x20a]
lea r9, [0x140024640]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call fcn.14000a4a4
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop rdi
ret

Function at 0x140005300
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
movzx edi, r8w
lea r8, [rsp + 0x30]
xor ebp, ebp
movzx esi, r9w
mov rbx, rcx
mov qword [rsp + 0x30], rbp
call fcn.1400053c0
test eax, eax
je 0x1400053a7
mov r9, qword [rsp + 0x30]
lea r8, [0x140005490]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
call fcn.14000af58
lea edx, [rbp + 1]
lea r8d, [rbp + 6]
lea ecx, [rbp + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400053a4
lea r9, [rsp + 0x30]
movzx r8d, si
movzx edx, di
mov rcx, rbx
call fcn.1400055f0
test eax, eax
je 0x1400053a4
mov r9, qword [rsp + 0x30]
lea r8, [0x1400056c0]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
call fcn.14000af58
lea eax, [rbp + 1]
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov word [rbx], bp
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400053c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, 2
mov rdi, r8
movzx ebx, dx
lea r8d, [rsi + 0xf]
mov edx, esi
mov ecx, esi
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x30]
lea r8d, [rsi + 0x1e]
mov edx, 0xffff
mov rcx, rax
mov qword [rdi], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx ecx, bx
mov word [rsp + 0x38], si
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi]
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x3c], 0
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140005460
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140005465
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400057c0
Capabilities:
Check if file exists
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov rbx, rcx
mov ecx, 0x10000
call fcn.140009800
mov rdi, rax
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call fcn.14000b410
xor r9d, r9d
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
jbe 0x140005944
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call fcn.14000b410
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rdi + 8]
mov r8d, 3
lea rcx, [rsp + 0x40]
call fcn.140002120
nop
xor eax, eax
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.140001dc0
nop
or rbx, 0xffffffffffffffff
xor esi, esi
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x14000588c
mov eax, esi
jmp 0x140005899
mov rax, rbx
nop
inc rax
cmp word [rdx + rax*2], si
jne 0x140005890
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140003890
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140005912
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbp
call fcn.140005970
test eax, eax
je 0x140005912
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, str.Send_End___
mov r8, rbx
mov edx, 0x10000
mov rcx, rdi
call fcn.14000b208
mov rax, rbx
lea rax, [rax + 1]
cmp byte [rdi + rax], sil
jne 0x1400058f3
lea r8d, [rax + 1]
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000592c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x140005940
call fcn.14000a0e0
mov eax, esi
jmp 0x140005946
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005970
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xa0]
xor r15d, r15d
mov rbp, r8
mov r14, rdx
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400059d2
xor eax, eax
jmp 0x140005a83
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rsi
mov edi, eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
je 0x140005a62
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
je 0x140005a62
sub edi, dword [rsp + 0x40]
je 0x140005a9b
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x140005a20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009a40
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret
mov ebx, 1
jmp 0x140005a6b
Function at 0x140005e90
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r9
mov r15d, edx
mov rdi, rcx
xor ebx, ebx
mov qword [rbp - 0x28], rbx
mov dword [rsp + 0x20], 0xf0000000
mov r14d, 1
mov r9d, r14d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140006021
mov qword [rbp - 0x30], rbx
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140005ffb
xor r9d, r9d
mov r8d, r15d
mov rdx, rdi
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140005ffb
mov dword [rbp - 0x34], 4
mov dword [rsp + 0x20], ebx
lea r9, [rbp - 0x34]
lea r8, [rbp - 0x38]
mov edx, 4
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp - 0x38]
call fcn.140009800
mov rdi, rax
mov ecx, dword [rbp - 0x38]
mov dword [rbp - 0x34], ecx
mov dword [rsp + 0x20], ebx
lea r9, [rbp - 0x34]
mov r8, rax
mov edx, 2
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea rdx, [0x140022b80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rbp - 0x34], 0
jbe 0x140005fec
nop word [rax + rax]
mov eax, ebx
movzx r8d, byte [rax + rdi]
lea rdx, str._02x
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
inc ebx
cmp ebx, dword [rbp - 0x34]
jb 0x140005fc0
test rdi, rdi
je 0x140005ffe
mov rcx, rdi
call fcn.140009a20
jmp 0x140005ffe
mov r14d, ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000600d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000601e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006740
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x270
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000677d
xor eax, eax
jmp 0x14000682a
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov qword [rsp + 0x288], rdi
xor edi, edi
call fcn.14000b410
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140006817
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x290], r14
lea r14, str.taskmgr.exe
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rax, rdi
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r14 + rax*2]
jne 0x14000684b
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r14 + rax*2 + 2]
jne 0x14000684b
add rax, 2
cmp rax, 0xc
jne 0x1400067e0
mov edi, 1
mov rbx, qword [rsp + 0x280]
mov r14, qword [rsp + 0x290]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140009a40
mov rbp, qword [rsp + 0x298]
add rsp, 0x270
pop rsi
ret
mov rax, qword [0x14002da30]
mov rcx, qword [0x14002da28]
mov rbx, rdi
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400068a4
nop dword [rax + rax]
mov rdx, qword [rcx + rbx*8]
lea rcx, [rsp + 0x4c]
call fcn.14000a948
test rax, rax
jne 0x140006802
mov rax, qword [0x14002da30]
mov rcx, qword [0x14002da28]
inc rbx
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x140006870
mov eax, dword [0x14002da08]
cmp dword [rbp + 0xc], eax
ja 0x140006904
mov rax, qword [0x14002da48]
mov rcx, qword [0x14002da40]
mov rbx, rdi
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140006904
nop dword [rax]
mov rdx, qword [rcx + rbx*8]
lea rcx, [rsp + 0x4c]
call fcn.14000a948
test rax, rax
jne 0x140006802
mov rax, qword [0x14002da48]
mov rcx, qword [0x14002da40]
inc rbx
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x1400068d0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400067d0
jmp 0x140006807