joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b700
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.1401c2864
mov rbx, rax
test rax, rax
je 0x14008b81c
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 0x14008b76c
mov rcx, rbx
call fcn.1401c141c
mov ecx, dword [rsp + 0x48]
call fcn.1401c2864
mov rbx, rax
test rax, rax
je 0x14008b862
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 0x14008b799
mov rcx, rbx
call fcn.1401c141c
xor eax, eax
jmp 0x14008b80c
mov rax, rbx
test rbx, rbx
je 0x14008b7be
cmp dword [rax + 0x58], 0
je 0x14008b7b5
test byte [rax + 0x5c], 0x18
jne 0x14008b7b5
cmp dword [rax + 0x68], 1
jne 0x14008b7b5
inc edi
mov rax, qword [rax + 8]
test rax, rax
jne 0x14008b7a1
movsxd rcx, edi
shl rcx, 2
call fcn.1401c2864
mov qword [rsi], rax
test rax, rax
je 0x14008b8a8
mov rdx, rbx
test rbx, rbx
je 0x14008b802
cmp dword [rdx + 0x58], 0
je 0x14008b7f9
test byte [rdx + 0x5c], 0x18
jne 0x14008b7f9
cmp dword [rdx + 0x68], 1
jne 0x14008b7f9
mov ecx, dword [rdx + 4]
mov dword [rax], ecx
add rax, 4
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x14008b7de
mov rcx, rbx
call fcn.1401c141c
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, 0x268
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x26c
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x284
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
Function at 0x14008c084
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1402aaed0]
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 0x14008c174
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, 0x980
call fcn.14008bc74
mov ecx, reloc.WS2_32.dll_recv
mov rbx, rax
call fcn.1400920bc
xor ecx, ecx
mov qword [rbx + 0x928], rax
call fcn.1400920bc
mov qword [rbx + 0x930], rax
mov dword [rbx], 1
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 0x14008c115
and qword [rbx + 0x10], 0
and dword [rbx], 0
mov eax, dword [0x1402ae524]
test eax, eax
jne 0x14008c141
xor r9d, r9d
lea edx, [rax + 1]
xor ecx, ecx
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1402ae538], rax
mov eax, dword [0x1402ae524]
inc eax
mov rcx, rbx
mov dword [0x1402ae524], eax
call fcn.140091e88
mov qword [rbx + 0x910], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x1e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x743
lea rdx, str...microstackILibParsers.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 1
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
Function at 0x14008d69c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rax, qword [rcx + 0x928]
lea rsi, [0x1402b2820]
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov r14d, r15d
mov rbx, qword [rax + 0x18]
mov dword [rsp + 0x30], 0x5265c00
mov qword [rsp + 0x38], r15
test rbx, rbx
je 0x14008d7fa
mov r12d, 0x208
mov rdi, qword [rbx]
test rdi, rdi
je 0x14008d7fa
cmp qword [rdi], r15
je 0x14008d7ed
lea rax, [rsp + 0x30]
mov dword [rbp + 0x570], r15d
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x360]
mov dword [rbp + 0x150], r15d
lea rdx, [rbp + 0x570]
mov dword [rbp + 0x360], r15d
mov rcx, rdi
call qword [rdi]
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x570]
call fcn.1401baf40
test eax, eax
jne 0x14008d79d
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x360]
call fcn.1401baf40
test eax, eax
jne 0x14008d79d
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call fcn.1401baf40
test eax, eax
je 0x14008d7ed
lea rax, [rsp + 0x38]
mov ecx, 0x40
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x360]
lea rdx, [rbp + 0x570]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14008d7ed
mov r9, qword [rdi + 0x30]
lea r8, [0x140287fa8]
movsxd rax, r14d
mov edx, 0x1000
sub rdx, rax
lea rcx, [rax + rsi]
call fcn.1400010e4
add r14d, eax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14008d707
test r14d, r14d
lea rax, str.UNKNOWN
cmovle rsi, r15
test rsi, rsi
cmovne rax, rsi
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1401b98c0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x14008deb0
Capabilities:
Write file on windows

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
mov ebp, dword [rsp + 0x60]
mov rdi, r9
mov rsi, rdx
mov rbx, r8
mov r14, rcx
mov qword [rax - 0x18], rbx
mov rdx, rdi
mov rcx, rsi
xor r9d, r9d
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008df79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008df72
mov ecx, 0x50
call fcn.1401c2864
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x38]
call fcn.14008ba98
mov rcx, qword [rsp + 0x68]
lea r9, [0x14008dcf0]
or r8d, 0xffffffff
and dword [rax + 0x14], 0
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov qword [rax + 8], rdi
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], rsi
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call fcn.14008e57c
xor eax, eax
jmp 0x14008df7e
mov eax, 0xfffffffc
jmp 0x14008df7e
mov eax, 1
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 0x14008e354
Capabilities:
Read file on windows

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 r12
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x88]
mov r15, r9
mov r14, r8
mov r12, rdx
test rbp, rbp
jne 0x14008e38b
xor eax, eax
jmp 0x14008e398
mov edx, 0x400
mov rcx, rbp
call fcn.1401c21d0
add eax, 8
movsxd rsi, eax
mov eax, 0xffffffff
lea rbx, [rsi + 0x20]
cmp rbx, rax
jae 0x14008e3cb
mov eax, 0xffffffdf
cmp rax, rsi
je 0x14008e3cb
mov eax, 0xffffffe7
cmp rbx, rax
jae 0x14008e3cb
lea rcx, [rsi + 0x38]
call fcn.1401c2864
jmp 0x14008e3cd
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.14008ba98
mov ecx, 0x40
mov rdi, rax
call fcn.1401c2864
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x28]
call fcn.14008ba98
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rdx, r15
mov qword [rsp + 0x20], r14
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x80]
lea rax, [fcn.14006e0cc]
mov qword [rbx + 8], rax
lea r8, str._s__READ_
mov qword [rbx + 0x20], rcx
test rbp, rbp
mov qword [rbx], r15
lea rcx, [rdi + 0x20]
mov qword [rbx + 0x18], r14
mov rdx, rsi
mov qword [rbx + 0x10], r12
mov rax, qword [r14 + 0x18]
mov qword [rdi], rax
lea rax, [0x14008de04]
mov qword [rdi + 8], rax
lea rax, [0x140244268]
cmove rbp, rax
mov qword [rdi + 0x10], rbx
mov r9, rbp
call fcn.1400010e4
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14009073c
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 0x140090788
cmp dword [0x1402abb58], 0
jne 0x140090788
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov r8d, 0x1895
lea rdx, str...microstackILibParsers.c
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140093d88
xor eax, eax
jmp 0x14009082b
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400907ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9d, [rbx + 3]
mov r8d, 0x1896
jmp 0x14009076f
cmp word [rdi], 0x17
jne 0x1400907d5
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 0x140090836
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 0x140090828
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 3
lea rdx, str...microstackILibParsers.c
mov r8d, 0x18a3
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140093d88
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140090781
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, 0x189a
xor ecx, ecx
call fcn.140093d88
mov ecx, 0xfd
call fcn.1401bbfb8
int3

Function at 0x140093374
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 rbx, [0x1402af820]
mov rdi, rcx
mov dword [rax - 0x10], 0x1000
mov r8, rdx
mov qword [rax - 0x18], rbx
xor edx, edx
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140244b2c]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1401bc86c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009343e
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1401bcd10
mov rcx, qword [rsp + 0x50]
call fcn.1401bc4fc
movsxd rbx, eax
test eax, eax
js 0x14009343e
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.1401bcd10
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.1401c2864
mov rsi, rax
test rax, rax
je 0x140093454
mov r9, qword [rsp + 0x50]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1401c279c
movsxd rcx, eax
mov rbx, rax
mov byte [rcx + rsi], 0
mov rcx, qword [rsp + 0x50]
call fcn.1401bc954
mov eax, ebx
mov qword [rdi], rsi
jmp 0x140093444
and qword [rdi], 0
xor eax, eax
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, 0x22b8
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
Function at 0x14009349c
Capabilities:
Write 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 + 0x20], 0
lea rsi, [0x1402af820]
movsxd rbx, r8d
mov rdi, rdx
mov r8, rcx
mov dword [rax - 0x10], 0x1000
mov ecx, 0xfde9
mov qword [rax - 0x18], rsi
or r9d, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140245a90]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1401bc86c
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x140093515
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1401c12c0
mov rcx, qword [rsp + 0x58]
call fcn.1401bc954
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140093d88
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1402aaed0]
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.140093624
lea r9, [rsp + 0x58]
mov edx, 0x1000
lea rcx, [0x1402ae820]
test rdi, rdi
je 0x140093dff
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 0x140093e10
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 0x140093e8f
mov r8, qword [0x1402ae508]
test r8, r8
je 0x140093e8f
and qword [rsp + 0x50], 0
lea rdi, [0x1402af820]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140288070]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1401bc86c
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x140093e8f
movsxd r8, ebx
lea rcx, [0x1402ae820]
mov edx, 1
call fcn.1401c12c0
mov rcx, qword [rsp + 0x50]
call fcn.1401bc954
lea rax, [0x1402ae820]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140095674
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, edx
mov rbx, rcx
mov rcx, rdi
mov rsi, r9
mov rbp, r8
call fcn.1401c2864
mov qword [rbx], rax
mov r9, rax
test rax, rax
je 0x140095757
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x78]
mov dword [rbx + 8], edi
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x48], rsi
test rax, rax
je 0x1400956d0
mov qword [rbx + 0xa8], rax
mov r8, qword [rbx + 0x78]
test r8, r8
je 0x14009570d
mov rax, qword [rbx + 0xa8]
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [fcn.1400951b8]
mov qword [rsp + 0x30], rbx
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.14008dfd0
jmp 0x140095742
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and qword [rsp + 0x28], 0
lea r8, [0x140094ff8]
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 + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibProcessPipe.c
mov ebx, 0x524
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
Function at 0x1400959ac
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 0x140095b03
cmp qword [rcx + 0x30], 0
jne 0x1400959e9
xor ecx, ecx
call fcn.1400920bc
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 0x140095a22
mov edx, esi
mov rcx, rbp
call fcn.140093f80
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rdx, rax
call fcn.1400923cc
jmp 0x140095aaa
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 0x140095a47
mov edi, eax
jmp 0x140095aaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140095ac0
mov edx, esi
mov rcx, rbp
xor edi, edi
call fcn.140093f80
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rdx, rax
call fcn.1400923cc
mov edx, 0x5df
lea rcx, str...microstackILibProcessPipe.c
call fcn.14008dbd4
mov rdx, qword [rbx + 0x78]
lea r9, [0x140094de8]
mov rcx, qword [rbx + 0x20]
or r8d, 0xffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rcx + 0x20]
call fcn.14008e57c
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140095b03
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 0x140095afb
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140095af5
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdx + 0x18]
call fcn.14008e750
mov rcx, rbx
call qword [rbx + 0x40]
mov rcx, rbx
call fcn.14009418c
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 0x14009638c
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xe8]
mov r13, rdx
xor edx, edx
movsxd r14, r8d
mov rsi, r9
mov rbx, rcx
lea r8d, [rdx + 2]
call fcn.1401bcd10
mov rcx, rbx
call fcn.1401bc4ec
movsxd rbp, dword [rsp + 0xe0]
mov r12, rax
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
lea rcx, [rsp + 0x2c]
test rdi, rdi
je 0x140096425
mov eax, 0x30
mov r8, rdi
mov r9d, eax
mov edx, eax
call section..text
jmp 0x140096430
xor edx, edx
lea r8d, [rdx + 0x30]
call fcn.1401bad90
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 0x3b]
call fcn.1401c12c0
mov r9, rbx
mov r8, r14
mov edx, 1
mov rcx, r13
mov rdi, rax
mov r15, r14
call fcn.1401c12c0
mov rcx, rbx
add rdi, rax
call fcn.1401bc4ec
mov r14, rax
test rsi, rsi
je 0x140096488
mov r8, rbp
mov r9, rbx
mov edx, 1
mov rcx, rsi
call fcn.1401c12c0
add rdi, rax
mov rcx, rbx
call fcn.1401c8c70
neg rsi
lea rdx, [r15 + 0x3c]
sbb eax, eax
and eax, ebp
cdqe
add rdx, rax
cmp rdi, rdx
jae 0x1400964e2
mov rcx, rbx
call fcn.1401cc4cc
mov ecx, eax
call fcn.1401cbcfc
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rbx
call fcn.1401cc4cc
mov ecx, eax
call fcn.1401cbcfc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
jmp 0x1400964e5
mov rax, r14
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140096504
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x1140
call fcn.1401b9e30
sub rsp, rax
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rsp + 0x1130], rax
mov ebp, edx
mov rdi, rcx
test rcx, rcx
jne 0x140096548
xor eax, eax
jmp 0x1400966a7
lea rbx, [rcx + 0x18]
mov rcx, qword [rcx]
call fcn.1401bc4ec
cmp rax, qword [rdi + 0x1020]
je 0x140096541
cmp ebp, 0x20
je 0x140096572
mov esi, 0x48
cmp ebp, 0x40
lea eax, [rsi - 0xc]
cmovne esi, eax
jmp 0x140096577
mov esi, 0x40
mov r9, qword [rdi]
mov r14d, 1
mov edx, r14d
mov r8, rsi
mov rcx, rbx
call fcn.1401c279c
cmp eax, esi
jl 0x140096541
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 4]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 8]
mov dword [rbx + 4], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 8], eax
mov rcx, qword [rdi]
call fcn.1401bc4ec
movsxd rcx, dword [rbx + 4]
add rax, rcx
mov qword [rbx - 8], rax
mov eax, 0xff8
sub eax, esi
cmp dword [rbx + 4], eax
jg 0x140096541
movsxd r8, dword [rbx + 4]
lea rcx, [rsi + rbx]
mov r9, qword [rdi]
mov edx, r14d
call fcn.1401c279c
cmp eax, dword [rbx + 4]
jne 0x140096541
mov esi, dword [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.1400b02f0
test esi, esi
jle 0x14009664b
mov r15d, 0x1000
mov r9, qword [rdi]
lea rcx, [rsp + 0x130]
mov eax, esi
cmp esi, r15d
mov rdx, r14
cmovg eax, r15d
movsxd r8, eax
call fcn.1401c279c
mov rbp, rax
test eax, eax
jle 0x14009664b
movsxd r8, ebp
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.1400b0380
sub esi, ebp
test esi, esi
jg 0x14009660a
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x100]
call fcn.1400b02d0
cmp dword [rbx + 8], 0
jle 0x1400966a4
lea rcx, [rbx + 0xc]
mov r8d, 0x30
lea rdx, [rsp + 0x100]
call fcn.1401baf40
test eax, eax
je 0x1400966a4
movsxd rdi, dword [rbx + 4]
cmp edi, 4
jbe 0x140096541
lea r8d, [rdi - 4]
xor ecx, ecx
lea rdx, [rbx + 0x3c]
call fcn.1400a59d0
cmp eax, dword [rdi + rbx + 0x38]
jne 0x140096541
mov rax, rbx
mov rcx, qword [rsp + 0x1130]
xor rcx, rsp
call fcn.1401b98c0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140096ae8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov dword [rax - 0x20], 0x1000
or r9d, 0xffffffff
lea rdi, [0x1402af820]
test r8d, r8d
mov qword [rax - 0x28], rdi
mov r8, rsi
mov ecx, 0xfde9
jne 0x140096bfa
test edx, edx
je 0x140096b46
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 5
jmp 0x140096b67
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140096bdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140096bdf
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov edx, 2
mov rcx, rbx
call fcn.1401cbd74
cmp eax, 0xffffffff
je 0x140096c57
lea rdx, str.wbN
jmp 0x140096c4b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140096c60
xor edx, edx
mov rcx, rax
call fcn.1401cbd74
cmp eax, 0xffffffff
je 0x140096c57
lea rdx, [0x140288228]
mov ecx, eax
call fcn.1401cc4c4
test rax, rax
jne 0x140096c62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret