joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077340
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x60]
mov edi, r8d
lea r8, [rdx + 8]
mov edx, reloc.WS2_32.dll_recv
mov r9d, edx
lea rcx, [rsp + 0x30]
call fcn.140076f84
mov edx, 0x29
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov rcx, rbx
lea r8d, [rdx - 0x1d]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a5d00
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14007773c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x20
and qword [rax + 0x18], 0
xor ebx, ebx
mov rdi, rdx
test rcx, rcx
jne 0x140077766
xor eax, eax
jmp 0x140077823
mov rdx, rcx
lea r8, [0x140239e7c]
lea rcx, [rsp + 0x40]
call fcn.1401acfe0
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x140077820
cmp qword [rdi], rbx
jne 0x1400777e3
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 2]
call fcn.1401a8f2c
mov rcx, qword [rsp + 0x40]
call fcn.1401a893c
mov rcx, qword [rsp + 0x40]
movsxd rsi, eax
mov eax, 0x400
cmp rsi, rax
cmova rsi, rax
xor r8d, r8d
xor edx, edx
call fcn.1401a8f2c
lea rcx, [rsi + 1]
call fcn.1401ae494
mov qword [rdi], rax
test rax, rax
jne 0x140077808
mov rcx, qword [rsp + 0x40]
call fcn.1401a8b70
jmp 0x14007775f
mov esi, 0x3ff
cmp rbx, rsi
jae 0x14007780f
mov rcx, qword [rdi]
mov r8, rsi
sub r8, rbx
mov edx, 1
call fcn.1401ae3cc
add rbx, rax
test rax, rax
je 0x14007780f
mov r9, qword [rsp + 0x40]
jmp 0x1400777e8
mov rcx, qword [rdi]
mov byte [rbx + rcx], 0
mov rcx, qword [rsp + 0x40]
call fcn.1401a8b70
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140077834
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x1402cfc9c]
inc eax
mov dword [0x1402cfc9c], eax
cmp eax, 1
jg 0x1400778fd
xor edx, edx
xor ecx, ecx
call fcn.1401726f0
xor edx, edx
mov ecx, 0x200002
call fcn.1401726f0
xor edx, edx
lea ecx, [rdx + 2]
call fcn.1400b3260
xor edx, edx
lea ecx, [rdx + 0xc]
call fcn.1400b3260
xor edx, edx
lea ecx, [rdx + 4]
call fcn.1400b3260
xor edx, edx
lea ecx, [rdx + 8]
call fcn.1400b3260
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400778fd
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400778f4
mov edx, 0x40
lea rcx, [rsp + 0x20]
call rax
test al, al
je 0x1400778f4
movsd xmm2, qword [0x1402acad0]
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.1400b4c60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x230
pop rbx
ret
Function at 0x1400780c4
Capabilities:
Create udp socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
lea r9, [rax + 0x18]
xor edx, edx
mov rdi, r8
mov rbp, rcx
lea r8, [rax + 0x10]
lea ecx, [rdx + 0x60]
call fcn.1400791e8
mov rsi, qword [rsp + 0x78]
mov ecx, gethostname
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x20], rax
lea rax, str.ILibIPAddressMonitor
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x40], rdi
call fcn.1401ae494
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x20]
call fcn.140079034
xor r8d, r8d
mov qword [rsi + 0x58], rax
mov qword [rax + 0x18], rsi
lea ecx, [r8 + 2]
mov edx, ecx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x48], rax
lea rcx, [rsi + 0x50]
mov r10, rax
xor r9d, r9d
lea rax, [0x140077fc8]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, 0x28000017
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rcx, r10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rax, [0x14007809c]
mov rdx, rsi
mov rcx, rbp
mov qword [rsi + 0x10], rax
call fcn.1400796e4
mov rbx, qword [rsp + 0x70]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078730
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor esi, esi
mov r14, rdx
mov rdi, rcx
cmp dword [rcx + 0xb0], esi
jle 0x1400787ef
xor ebp, ebp
mov rax, qword [rdi + 0x48]
cmp qword [rax + rbp], 0
je 0x1400787dd
mov rax, qword [rdi + 0x38]
xor edx, edx
mov r9, qword [rdi + 0xa8]
add r9, 4
movsxd rcx, esi
shl rcx, 4
mov rbx, qword [rax + 0x60]
lea r8d, [rdx + 9]
add r9, rcx
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rdi + 0x60]
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [0x1402d0fc0]
mov qword [rsp + 0x20], r14
mov rcx, rbx
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc esi
add rbp, 8
cmp esi, dword [rdi + 0xb0]
jl 0x14007875f
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14007880c
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0xc0], edi
jle 0x14007888b
mov rax, qword [rbx + 0xb8]
mov edx, 0x29
mov rcx, qword [rbx + 0x40]
movsxd r8, edi
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x60]
lea r9, [rax + r8*4]
lea r8d, [rdx - 0x20]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x1402d0fc0]
xor r9d, r9d
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 0x60]
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc edi
cmp edi, dword [rbx + 0xc0]
jl 0x14007882b
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140078e44
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
mov ecx, 0x1c0
mov dword [rsp + 0x48], ecx
call fcn.1401ae494
mov rbx, rax
test rax, rax
je 0x140078f60
lea rax, [rsp + 0x48]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rdi + 0x2a]
lea ecx, [rdi + 0x17]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x140078eb0
mov rcx, rbx
call fcn.1401ad038
mov ecx, dword [rsp + 0x48]
call fcn.1401ae494
mov rbx, rax
test rax, rax
je 0x140078fa6
xor r8d, r8d
lea rax, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x2a]
lea ecx, [rdx - 0x13]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x140078edd
mov rcx, rbx
call fcn.1401ad038
xor eax, eax
jmp 0x140078f50
mov rax, rbx
test rbx, rbx
je 0x140078f02
cmp dword [rax + 0x58], 0
je 0x140078ef9
test byte [rax + 0x5c], 0x18
jne 0x140078ef9
cmp dword [rax + 0x68], 1
jne 0x140078ef9
inc edi
mov rax, qword [rax + 8]
test rax, rax
jne 0x140078ee5
movsxd rcx, edi
shl rcx, 2
call fcn.1401ae494
mov qword [rsi], rax
test rax, rax
je 0x140078fec
mov rdx, rbx
test rbx, rbx
je 0x140078f46
cmp dword [rdx + 0x58], 0
je 0x140078f3d
test byte [rdx + 0x5c], 0x18
jne 0x140078f3d
cmp dword [rdx + 0x68], 1
jne 0x140078f3d
mov ecx, dword [rdx + 4]
mov dword [rax], ecx
add rax, 4
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x140078f22
mov rcx, rbx
call fcn.1401ad038
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x239
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.1401a83f8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x23d
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.1401a83f8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x255
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.1401a83f8
int3
Function at 0x14007957c
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebx, ecx
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140079693
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, 0x560
call fcn.1400791e8
mov ecx, reloc.WS2_32.dll_recv
mov rbx, rax
call fcn.14007daa0
xor ecx, ecx
mov qword [rbx + 0x510], rax
call fcn.14007daa0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
and dword [rsp + 0x20], 0
mov qword [rbx + 0x518], rax
mov dword [rbx], 1
lea edx, [r9 + 2]
mov ecx, edx
lea r8d, [r9 + 0x11]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbx + 0x4f0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov qword [rbx + 0x10], rax
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
jne 0x140079634
and qword [rbx + 0x10], 0
and dword [rbx], 0
mov eax, dword [0x1402cfcbc]
test eax, eax
jne 0x140079660
xor r9d, r9d
lea edx, [rax + 1]
xor ecx, ecx
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1402cfcd0], rax
mov eax, dword [0x1402cfcbc]
inc eax
mov rcx, rbx
mov dword [0x1402cfcbc], eax
call fcn.14007d870
mov qword [rbx + 0x4f8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x1e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x6e3
lea rdx, str...microstackILibParsers.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 1
xor ecx, ecx
call fcn.14007f3d4
mov r8d, ebx
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 1
call fcn.1401a83f8
int3
Function at 0x14007a05c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rax, qword [rcx + 0x510]
lea rbx, [0x1402cffc0]
xor esi, esi
mov qword [rsp + 0x40], rdx
mov r13, r9
mov dword [rsp + 0x50], esi
mov r12, rdx
mov r14, rcx
mov rdi, qword [rax + 0x18]
mov r15d, esi
mov dword [rsp + 0x30], 0x5265c00
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x14007a1db
xor r12d, r12d
test rdi, rdi
je 0x14007a0d8
mov rsi, qword [rdi]
jmp 0x14007a0db
mov rsi, r12
test rsi, rsi
je 0x14007a1d4
cmp qword [rsi], r12
je 0x14007a1c7
lea rax, [rsp + 0x30]
mov dword [rbp + 0x580], r12d
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
mov dword [rbp + 0x160], r12d
lea rdx, [rbp + 0x580]
mov dword [rbp + 0x370], r12d
mov rcx, rsi
call qword [rsi]
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x580]
call fcn.1401a71d0
test eax, eax
jne 0x14007a177
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x370]
call fcn.1401a71d0
test eax, eax
jne 0x14007a177
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.1401a71d0
test eax, eax
je 0x14007a1c7
lea rax, [rsp + 0x38]
mov ecx, 0x40
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
lea rdx, [rbp + 0x580]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14007a1c7
mov r9, qword [rsi + 0x28]
lea r8, [0x1402394b0]
movsxd rax, r15d
mov edx, 0x1000
sub rdx, rax
lea rcx, [rax + rbx]
call fcn.1400010e4
add r15d, eax
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x14007a0d3
mov r12, qword [rsp + 0x40]
xor esi, esi
test r15d, r15d
cmovle rbx, rsi
test rbx, rbx
jne 0x14007a21d
mov rcx, qword [r14 + 0x4f0]
mov rdx, r13
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14007a216
mov rcx, qword [r14 + 0x4f0]
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea rbx, str.UNKNOWN
test eax, eax
je 0x14007a21d
lea rbx, str.ILibForceUnblockChain
mov rax, rbx
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1401a5d00
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007c154
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rdi, rcx
cmp word [rcx], 0x17
jne 0x14007c1a0
cmp dword [0x1402cdb60], 0
jne 0x14007c1a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov r8d, 0x1560
lea rdx, str...microstackILibParsers.c
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14007f3d4
xor eax, eax
jmp 0x14007c243
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14007c1c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9d, [rbx + 3]
mov r8d, 0x1561
jmp 0x14007c187
cmp word [rdi], 0x17
jne 0x14007c1ed
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14007c24e
cmp word [rdi], 0x17
mov eax, 0x1c
mov rdx, rdi
mov rcx, rbx
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14007c240
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 3
lea rdx, str...microstackILibParsers.c
mov r8d, 0x156e
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14007f3d4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007c199
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibParsers.c
mov r9d, eax
mov r8d, 0x1565
xor ecx, ecx
call fcn.14007f3d4
mov ecx, 0xfd
call fcn.1401a83f8
int3

Function at 0x14007eb50
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
lea r8, [0x1402311c0]
mov rdi, rcx
lea rcx, [rax + 0x18]
call fcn.1401acfe0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x14007eb89
and qword [rdi], rcx
xor eax, eax
jmp 0x14007ebf1
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1401a8f2c
mov rcx, qword [rsp + 0x50]
call fcn.1401a893c
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call fcn.1401a8f2c
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.1401ae494
mov rsi, rax
test rax, rax
je 0x14007ec01
mov r9, qword [rsp + 0x50]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1401ae3cc
movsxd rcx, eax
mov rbx, rax
mov byte [rcx + rsi], 0
mov rcx, qword [rsp + 0x50]
call fcn.1401a8b70
mov eax, ebx
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibParsers.c
mov ebx, 0x1f60
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14007f3d4
mov r8d, ebx
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401a83f8
int3
Function at 0x14007ec48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rdi, rdx
mov rdx, rcx
movsxd rbx, r8d
lea rcx, [rsp + 0x48]
lea r8, [0x140231b68]
call fcn.1401acfe0
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x14007ec96
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1401acc60
mov rcx, qword [rsp + 0x48]
call fcn.1401a8b70
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14007f3d4
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x20
lea rcx, [rsp + 0x58]
mov ebp, r9d
mov esi, r8d
call fcn.14007eca4
lea r9, [rsp + 0x58]
mov edx, 0x1000
lea rcx, [0x1402e0fc0]
test rdi, rdi
je 0x14007f44b
mov eax, dword [rsp + 0xd0]
lea r8, str._r_n__s___s:_d___d__d___s
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.1400010e4
jmp 0x14007f45c
lea r8, str._r_n__s___s
mov qword [rsp + 0x20], rbx
call fcn.1400010e4
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0xffe
ja 0x14007f4b3
mov rdx, qword [0x1402cfcd8]
test rdx, rdx
je 0x14007f4b3
and qword [rsp + 0x50], 0
lea r8, [0x1402ab2f8]
lea rcx, [rsp + 0x50]
call fcn.1401acfe0
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14007f4b3
movsxd r8, ebx
lea rcx, [0x1402e0fc0]
mov edx, 1
call fcn.1401acc60
mov rcx, qword [rsp + 0x50]
call fcn.1401a8b70
lea rax, [0x1402e0fc0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14007fd5c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x28], 0
lea r8, [0x14007fd18]
and dword [rsp + 0x20], 0
mov rbx, rdx
mov r9, rdx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x50], rax
add rsp, 0x30
pop rbx
ret
Function at 0x14008128c
Capabilities:
Create thread
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rdi, edx
mov rbx, rcx
mov rcx, rdi
mov rsi, r9
mov rbp, r8
call fcn.1401ae494
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x140081362
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbx + 0x50], rax
mov rax, qword [rbx + 0x78]
mov dword [rbx + 8], edi
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x48], rsi
test rax, rax
je 0x14008131a
mov rcx, qword [rbx + 0x68]
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x78]
lea rax, [0x140080a94]
mov rcx, qword [rbx + 0x20]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, qword [rdx + 0x18]
call fcn.14007f7f0
jmp 0x14008134d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and qword [rsp + 0x28], 0
lea r8, [0x1400810cc]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x60], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibProcessPipe.c
mov ebx, 0x5e3
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14007f3d4
mov r8d, ebx
lea rdx, str...microstackILibProcessPipe.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401a83f8
int3
Function at 0x1400815dc
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
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
mov edi, 0xfffffffc
test rcx, rcx
je 0x14008170e
cmp qword [rcx + 0x30], 0
jne 0x140081619
xor ecx, ecx
call fcn.14007daa0
mov qword [rbx + 0x30], rax
mov rcx, qword [rbx + 0x30]
or edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x18], 0
je 0x14008164c
mov edx, esi
mov rcx, rbp
call fcn.14007f5a4
mov rcx, qword [rbx + 0x30]
mov rdx, rax
call fcn.14007dcec
jmp 0x1400816b9
mov rax, qword [rbx + 0x78]
xor r9d, r9d
mov rcx, qword [rbx + 0x70]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140081671
mov edi, eax
jmp 0x1400816b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400816cf
mov edx, esi
mov rcx, rbp
xor edi, edi
call fcn.14007f5a4
mov rcx, qword [rbx + 0x30]
mov rdx, rax
call fcn.14007dcec
mov rdx, qword [rbx + 0x78]
lea rax, [0x140080ca8]
mov rcx, qword [rbx + 0x20]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, qword [rdx + 0x18]
call fcn.14007f7f0
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14008170e
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp qword [rbx + 0x40], 0
je 0x140081706
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140081700
mov rdx, qword [rbx + 0x78]
mov rdx, qword [rdx + 0x18]
call fcn.14007f730
mov rcx, rbx
call qword [rbx + 0x40]
mov rcx, rbx
call fcn.14007fed0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140081850
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x80], 0
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x14008189c
xor r8d, r8d
lea r9, [rax + 8]
lea edx, [r8 + 8]
lea ecx, [rdx + 0x18]
call fcn.1400791e8
mov qword [rbx + 0x80], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], rbx
mov r9, qword [rbx + 0x80]
lea rax, [0x14005f2a0]
mov rcx, qword [rbx + 0x70]
mov r8d, esi
mov qword [rbx + 0x98], rax
mov rdx, rbp
lea rax, [0x1400817f0]
mov qword [rbx + 0x90], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
jne 0x1400818e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400818e2
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400818f8
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xd8]
mov r15, rdx
xor edx, edx
movsxd r14, r8d
mov rsi, r9
mov rbx, rcx
lea r8d, [rdx + 2]
call fcn.1401a8f2c
movsxd rbp, dword [rsp + 0xd0]
lea ecx, [rbp + 0x3c]
add ecx, r14d
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebp
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x28], eax
test rdi, rdi
je 0x140081987
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x2c], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsp + 0x3c], xmm1
movups xmmword [rsp + 0x4c], xmm0
jmp 0x140081997
xor edx, edx
lea rcx, [rsp + 0x2c]
lea r8d, [rdx + 0x30]
call fcn.1401a72b0
mov r8d, 0x3c
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r12d, [r8 - 0x3b]
mov edx, r12d
call fcn.1401acc60
mov r8, r14
mov r9, rbx
mov edx, r12d
mov rcx, r15
call fcn.1401acc60
mov rcx, rbx
call fcn.1401a892c
mov rdi, rax
test rsi, rsi
je 0x1400819e3
mov r8, rbp
mov r9, rbx
mov edx, r12d
mov rcx, rsi
call fcn.1401acc60
mov rcx, rbx
call fcn.1401b48a0
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret