joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140181860
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004da0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401819e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004da0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140184f70
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov esi, edx
test rcx, rcx
jne 0x140184f9d
xor edi, edi
jmp 0x140184fa1
lea rdi, [rcx + 0x10]
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], r8
mov rbx, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov edx, esi
mov dword [rbp - 0x4c], edx
mov r8, rbx
mov qword [rbp - 0x5c], r8
lea rcx, [rbp - 0x88]
call fcn.140004da0
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x4c]
mov r8, qword [rbp - 0x5c]
call sub.KERNEL32.dll_K32EnumProcesses
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.1400033a5
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140189890
Capabilities:
Connect pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov rdi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x48], rcx
mov rdx, rsi
mov qword [rbp - 0x50], rdx
lea rcx, [rbp - 0x78]
call fcn.140004da0
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
call sub.KERNEL32.dll_ConnectNamedPipe
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
test esi, esi
setne sil
movzx esi, sil
cmp byte [rbp - 0x40], 0
je 0x14018991f
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140189980
Capabilities:
Connect pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov rdi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x48], rcx
mov rdx, rsi
mov qword [rbp - 0x50], rdx
lea rcx, [rbp - 0x78]
call fcn.140004da0
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
call sub.KERNEL32.dll_ConnectNamedPipe
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
test esi, esi
setne sil
movzx esi, sil
cmp byte [rbp - 0x40], 0
je 0x140189a0f
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140189c90
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004da0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140189d53
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140189dd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004da0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x140189e80
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140189ed0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004da0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140189f93
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14018a010
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140108f30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004da0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004df0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x14018a0c0
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140108fc0
call fcn.1400033a5
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14018a110
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
xor eax, eax
mov qword [rbp - 0x50], rax
mov rsi, rcx
mov edi, edx
mov ebx, r8d
mov r14d, r9d
mov r15, qword [rbp + 0x48]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
lea rcx, [0x1402c4448]
call fcn.140004970
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 4
mov byte [rax + 0x14], 1
mov byte [rax + 0x15], 1
mov qword [rax + 8], rcx
mov qword [rbp - 0x60], rax
test rsi, rsi
je 0x14018a184
add rsi, 0xc
jmp 0x14018a186
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x58], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r12d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r12d
mov r12d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r12d
mov r12d, dword [rbp + 0x40]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r15
mov rcx, rsi
mov qword [rbp - 0x74], rcx
mov edx, edi
mov dword [rbp - 0x64], edx
mov r8d, ebx
mov dword [rbp - 0x68], r8d
mov r9d, r14d
mov dword [rbp - 0x6c], r9d
lea rcx, [rbp - 0xa0]
call fcn.140004da0
mov rcx, qword [rbp - 0x74]
mov edx, dword [rbp - 0x64]
mov r8d, dword [rbp - 0x68]
mov r9d, dword [rbp - 0x6c]
call sub.KERNEL32.dll_CreateNamedPipeW
mov rsi, rax
lea rcx, [rbp - 0xa0]
call fcn.140004df0
mov qword [rbp - 0x48], rsi
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x58], rax
xor eax, eax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x3c], 1
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x60]
mov qword [rdx + 8], rax
call fcn.1400033a5
mov dword [rax + 8], esi
mov rdx, qword [rbp - 0x60]
mov rax, rdx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401ca5b0
Capabilities:
Hash data using murmur3

Disassembly:
xor eax, eax
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x1401ca5ee
mov r9d, eax
lea r9, [rdx + r9*8 + 0x10]
mov r9, qword [r9]
mov r10, r9
test r10, r10
jne 0x1401ca5d3
xor r10d, r10d
jmp 0x1401ca5d7
mov r10d, dword [r9 + 0x14]
mov r9d, ecx
rol r9d, 0xd
add r9d, ecx
mov ecx, r9d
xor ecx, r10d
inc eax
cmp r8d, eax
jg 0x1401ca5bb
mov eax, ecx
rol eax, 0xf
add eax, ecx
ret

Function at 0x1401cd110
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
sub rsp, 0x28
mov esi, ecx
mov edi, edx
call fcn.140001067
mov eax, dword [rax]
add eax, 0x165667b1
add eax, 8
imul edx, esi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, edi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
mov edx, eax
shr edx, 0xf
xor eax, edx
imul eax, eax, 0x85ebca77
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae3d
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x1800013d0
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmovg r8, r8
cmovb rdx, rdx
push rax
pop rax
cmovl r12, r12
xchg rsi, rsi
cmove rax, rax
cmovb rsi, rsi
xor ecx, 0x41424344
mov r11, qword [rax + 0x20]
mov r10, r11
nop dword [rax + rax]
mov r8, qword [r10 + 0x50]
jmp 0x180001437
test r8, r8
je 0x1800014fc
jmp 0x18000145e
movzx eax, word [r8]
test ax, ax
je 0x180001500
mov rdx, r8
nop
lea r9d, [rax - 0x41]
cmovb rdi, rdi
cmovb rcx, rcx
cmp r9w, 0x19
ja 0x180001495
cmova rsi, rsi
cmovg rcx, rcx
cmovb r9, r9
add eax, 0x20
mov word [rdx], ax
movzx eax, word [rdx + 2]
add rdx, 2
cmovl r8, r8
cmovg rdi, rdi
test ax, ax
cmovb r9, r9
push rax
pop rax
cmova r14, r14
jne 0x180001470
movzx edx, word [r8]
test dx, dx
je 0x180001500
mov eax, 0x1505
nop word [rax + rax]
mov r9d, eax
cmova rbx, rbx
xchg r14, r14
cmovg r11, r11
add r8, 2
shl r9d, 5
add eax, r9d
add eax, edx
movzx edx, word [r8]
test dx, dx
jne 0x1800014c8
cmp ecx, eax
je 0x180001522
mov r10, qword [r10]
cmp r11, r10
jne 0x180001408
xor eax, eax
ret
jmp 0x180001519
mov eax, 0x1505
cmp ecx, eax
jne 0x1800014f0
cmovg rcx, rcx
cmovg r15, r15
xchg rdi, rdi
cmove rsi, rsi
mov rax, qword [r10 + 0x20]
ret
Function at 0x14000b390
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015bd0
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.140015bd0
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 0x14000b400
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e5094]
test esi, esi
mov rbx, rcx
jle 0x14000b530
mov rax, qword [0x1400e5098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b44b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b4d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b430
mov rcx, rbx
call fcn.14000be50
test rax, rax
mov rdi, rax
je 0x14000b552
mov rax, qword [0x1400e5098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bf90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e5098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b537
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b4ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b4e0
add dword [0x1400e5094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400e5098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b4ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b390
nop dword [rax]
xor esi, esi
jmp 0x14000b458
mov rax, qword [0x1400e5098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b390
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000b390
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000bac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e5100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e50e0]
test rbx, rbx
je 0x14000bb1c
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 0x14000bb13
test rsi, rsi
je 0x14000bb13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000baf8
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 0x14000be50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c02e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000be70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000be78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000be70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000becd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000bec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000be70
add rax, 0x28
cmp rax, r9
jne 0x14000beb0
xor eax, eax
ret

Function at 0x14000bed0
Capabilities:
Parse pe header

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

Function at 0x14000bf90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c02e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bfaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bfb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140078c50
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x140078c98
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140078c6a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b3f60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b9040]
jmp 0x14000ccb0

Function at 0x1400b3f70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b9040]
jmp 0x14000ccb0
Function at 0x1400b4720
Capabilities:
Convert ip address from string
Create raw socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x628
call fcn.14000b180
lea rbp, [rsp + 0x68]
xor r9d, r9d
lea r8, [0x1400ba00e]
mov rcx, rbp
lea rax, [rsp + 0x78]
lea rdx, [r8 - 0xe]
mov qword [rsp + 0x68], rax
call fcn.140001454
lea r12, [rsp + 0x48]
xor r9d, r9d
lea r8, [0x1400ba01c]
mov rcx, r12
lea rax, [rsp + 0x58]
lea rdx, [r8 - 0xd]
mov qword [rsp + 0x48], rax
call fcn.140001454
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htonl]
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x220], eax
lea rax, [rsp + 0x224]
mov rsi, qword [rsp + 0x48]
lea rdx, [rsp + 0x88]
mov rdi, rax
mov rcx, r8
rep movsb byte [rdi], byte [rsi]
lea rsi, [r8 + 4]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400b47ea
mov rcx, qword [0x1400bfcd0]
lea rdx, str.WSAStartup_failed.
call fcn.1400b1100
mov rcx, rax
call fcn.1400af480
mov ecx, 1
call sub.msvcrt.dll_exit
mov r8d, 0xff
mov edx, 3
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, rax
jne 0x1400b4843
mov rcx, qword [0x1400bfcd0]
lea rdx, str.Socket_creation_failed:
call fcn.1400b1100
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140072160
mov rcx, rax
call fcn.1400af480
jmp 0x1400b48d4
lea rdi, [rsp + 0x3a]
mov ecx, 0xe
xor eax, eax
mov rdx, qword [rsp + 0x68]
rep stosb byte [rdi], al
mov word [rsp + 0x38], 2
lea r8, [rsp + 0x3c]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 0x10
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x220]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
inc eax
mov rdi, qword [sym.imp.WS2_32.dll_closesocket]
jne 0x1400b48dc
mov rcx, qword [0x1400bfcd0]
lea rdx, str.sendto_failed:
call fcn.1400b1100
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
call fcn.140072160
mov rcx, rax
call fcn.1400af480
mov rcx, rbx
call rdi
call r13
jmp 0x1400b47e0
mov rcx, rbx
call rdi
call r13
mov rcx, qword [0x1400bfcf0]
lea rdx, str.Sent_packet_to
call fcn.1400b1100
mov rcx, rax
mov rdx, rbp
call fcn.1400b1400
mov rcx, rax
call fcn.1400af480
mov rcx, r12
call fcn.14009d600
mov rcx, rbp
call fcn.14009d600
xor eax, eax
add rsp, 0x628
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001b34
Capabilities:
Parse pe header

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

Function at 0x14000746c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400074db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400074db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400074db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400074db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400074db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400074db
cmp dword [rcx + 0xf8], 0
je 0x1400074db
mov ecx, ebx
call fcn.14000758c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007368
nop
cmp dword [rbp + 0x20], 0
je 0x140007529
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007534
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000746c

Function at 0x140007670
Capabilities:
Parse pe header

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