joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070e10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
mov rbx, rcx
mov r8, rcx
lea rcx, [0x1400ae4c8]
lea edx, [r9 + 0xd]
call fcn.140070b20
test al, al
je 0x140070e3b
mov al, 1
add rsp, 0x20
pop rbx
ret
mov r9b, 1
lea rcx, [0x1400ae4d8]
mov r8, rbx
mov edx, 5
add rsp, 0x20
pop rbx
jmp fcn.140070b20

Function at 0x140070e60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
mov rbx, rcx
mov r8, rcx
lea rcx, [0x1400ae4e8]
lea edx, [r9 + 0x27]
call fcn.140070b20
test al, al
je 0x140070e8b
mov al, 1
add rsp, 0x20
pop rbx
ret
mov r9b, 1
lea rcx, [0x1400ae4d8]
mov r8, rbx
mov edx, 5
add rsp, 0x20
pop rbx
jmp fcn.140070b20

Function at 0x140070eb0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
mov rbx, rcx
mov r8, rcx
lea rcx, [0x1400ae4f8]
lea edx, [r9 + 0xe]
call fcn.140070b20
test al, al
je 0x140070edb
mov al, 1
add rsp, 0x20
pop rbx
ret
mov r9b, 1
lea rcx, [0x1400ae4d8]
mov r8, rbx
mov edx, 5
add rsp, 0x20
pop rbx
jmp fcn.140070b20

Function at 0x140071660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea r8, [0x1400aa760]
mov ebp, 0x85
xor ecx, ecx
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edi, edi
mov rsi, rax
test rax, rax
jne 0x1400716c1
lea rcx, str._opautolib.pyd
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1400716c1
lea r8, [0x1400aa760]
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
and qword [rbx + 0x10], 0
mov r8d, eax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea rcx, [r8 + rbp]
cmp rbp, rcx
je 0x14007170c
mov rdx, rbp
mov rcx, rbx
call fcn.140003450
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007c5c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400d6120]
mov rdi, r8
cmp rax, r8
mov rsi, rdx
mov rbx, rcx
cmovb edi, eax
jmp 0x14007c609
mov eax, dword [rsp + 0x50]
cmp eax, 0xffffffff
jne 0x14007c5f1
int3
test eax, eax
jne 0x14007c62f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x14007c63f
mov rdx, rsi
mov rcx, rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14007c5e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x50]
jmp 0x14007c62f

Function at 0x14007d980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x50], 0
lea r8, [rbp - 0x50]
and dword [rbp - 0x4c], 0
xor eax, eax
and qword [rbp - 0x18], rax
xorps xmm0, xmm0
and dword [rbp - 0x48], 0
mov rsi, rdx
and qword [rbp - 0x30], 0
mov rbx, rcx
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
movdqa xmmword [rbp - 0x10], xmm0
call fcn.14007d8a0
test al, al
jne 0x14007d9dd
xor al, al
jmp 0x14007da31
mov rcx, qword [rbx + 0x60]
lea rax, [rbx + 0xe8]
and dword [rbp + 0x20], 0
lea r9, [rbp + 0x20]
mov r8d, 0x50
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
test dil, dil
je 0x14007da14
xor eax, eax
jmp 0x14007da1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test dil, dil
jne 0x14007da26
cmp eax, 0x3e5
jne 0x14007d9d9
mov rdx, rsi
mov rcx, rbx
call fcn.14007cd50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007da50
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xe0], 0
mov rbx, rcx
je 0x14007da69
xor al, al
jmp 0x14007db3d
xor r8d, r8d
mov dword [rcx + 0xe0], 2
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14007da62
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x100], rax
test rax, rax
je 0x14007da62
lea rcx, [rbx + 0x68]
mov dword [rsp + 0x28], 4
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14007d890]
mov r9, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x14007da62
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x14007dadf
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x58]
mov edx, 0x40080003
mov qword [rsp + 0x38], rax
mov eax, 0x40
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [rax - 0x3f]
lea r8d, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14007da62
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14007db3b
mov dword [rbx + 0xe0], 1
jmp 0x14007da62
mov al, 1
add rsp, 0x40
pop rbx
ret

Function at 0x140089180
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140089007
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140089007
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140089007
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140089007
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140089007
cmp dword [rcx + 0x84], 0xe
jbe 0x140089007
cmp dword [rcx + 0xf8], 0
je 0x140089007
mov ecx, ebx
call fcn.1400890a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140088e84
cmp dword [rbp + 0x20], 0
je 0x140089054
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008905c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140088fa0
Function at 0x14008d1f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140081310
sub rsp, rax
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.14008d458
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x14008d244
mov rax, r14
jmp 0x14008d35e
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0xd9d20]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.140097e14
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0xd9d20]
cmp r13, qword [rbx + rcx + 0x30]
je 0x14008d2ab
or rax, 0xffffffffffffffff
jmp 0x14008d35e
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0xd9d20]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008d2a2
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.140097e14
test rax, rax
js 0x14008d2a2
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14008d2a2
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x14008d352
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008d352
cmp byte [rcx], 0xd
jne 0x14008d338
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008d347
cmp byte [rcx + 1], 0xa
jne 0x14008d347
inc rcx
jmp 0x14008d347
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd65b0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x14008d31a
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400812a0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400984f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1400d9d20]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x14009855d
cmp byte [r14], 0xa
jne 0x14009855d
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14009857e
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1400986d8
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x140098698
cmp al, 0xd
je 0x1400985b2
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14009868d
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x1400985d8
cmp byte [rax], 0xa
jne 0x1400985ca
mov byte [rbx], 0xa
mov eax, 2
jmp 0x1400985d0
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x14009868a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098680
cmp dword [rsp + 0x78], 0
je 0x140098680
mov rcx, rdi
lea r10, [0x1400d9d20]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x140098650
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x14009865c
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14009868a
cmp byte [rsp + 0x70], 0xa
jne 0x140098661
cmp rbx, r14
jne 0x140098661
mov byte [rbx], 0xa
jmp 0x14009868a
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.140097e1c
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1400d9d20]
je 0x14009868d
jmp 0x140098687
lea r10, [0x1400d9d20]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x140098597
jmp 0x1400986d8
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1400986d1
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1400986d8
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400986f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1400d9d20]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x140098764
cmp word [r14], r10w
jne 0x140098764
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x140098785
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14009895e
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14009891c
cmp ax, cx
je 0x1400987c1
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x1400988b5
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x1400987e9
cmp word [rax], r10w
jne 0x1400987db
mov word [rbx], r10w
mov eax, 4
jmp 0x1400987e1
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1400988ff
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098904
cmp dword [rsp + 0x80], 0
je 0x140098904
mov rcx, rdi
lea r11, [0x1400d9d20]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1400988c3
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14009885b
mov word [rbx], r10w
jmp 0x1400988ad
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14009887c
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x1400987a1
jmp 0x14009895e
cmp word [rsp + 0x70], r10w
jne 0x1400988d0
cmp rbx, r14
je 0x140098855
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140097e1c
mov r10d, 0xa
lea r11, [0x1400d9d20]
cmp word [rsp + 0x70], r10w
je 0x1400988b0
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x1400988b5
mov ecx, 0xd
lea r11, [0x1400d9d20]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x1400988b5
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x140098955
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14009895e
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc4d3960
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4a40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4362
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d43fa
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d43de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d43d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d43d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4398
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d43fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4500
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4528
mov eax, 0
jmp 0x2fc4d4576
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4551
mov eax, 0
jmp 0x2fc4d4576
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4571
mov eax, 0
jmp 0x2fc4d4576
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d457c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d45fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d45f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d45f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d460f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d45c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005250
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov dword [rsp + 0x48], 0x1000
mov ecx, 0x1000
call fcn.140071b8c
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x14000528d
call fcn.140071a3c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x1400052df
mov ecx, dword [rsp + 0x48]
call fcn.140071b8c
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x1400052c5
call fcn.140071a3c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x1400052ec
mov rax, qword [rdi]
mov qword [rdi + 8], rax
jmp 0x14000531d
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x1400052fc
call fcn.140071a3c
call fcn.140005b40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.AdaptersInfo___GetAdaptersAddresses_failed__lu
mov rcx, rbx
call fcn.14001ed30
nop
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140011340
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x28], rcx
lea r8, [rsp + 0x20]
mov qword [rcx + 0x18], rdx
mov rbx, rcx
mov byte [rcx], 0
lea rdx, [rsp + 0x28]
add rcx, 0x20
xorps xmm0, xmm0
mov qword [rsp + 0x28], rcx
movss dword [rsp + 0x28], xmm0
call fcn.1400111d0
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [rbx + 4]
lea rcx, str.7e4a5678_bc70_45e8_8674_21a8e610fd02
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x1e0
pop rbx
ret
Function at 0x140016810
Capabilities:
Delete network filter via wfp api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov r8, qword [rcx + 0xd8]
mov rax, qword [rcx + 0xe0]
sub rax, r8
sar rax, 3
test rax, rax
je 0x1400168c8
mov ecx, dword [0x1400fa820]
mov rax, qword gs:[0x58]
lea rsi, [rax + rcx*8]
mov r14d, 4
nop word [rax + rax]
mov rdx, qword [r8 + rdi*8]
mov rcx, rbp
call sub.fwpuclnt.dll_FwpmFilterDeleteById0
test eax, eax
je 0x1400168a2
mov rax, qword [rsi]
mov eax, dword [r14 + rax]
cmp dword [0x1400f8b40], eax
jg 0x1400168ea
lea rdx, str.FirewallFilter::removeAllSplitTunnelingFilters____FwpmFilterDeleteById0_failed
lea rcx, [0x1400f8b08]
call fcn.14001ed30
inc rdi
mov r8, qword [rbx + 0xd8]
mov rax, qword [rbx + 0xe0]
sub rax, r8
sar rax, 3
cmp rdi, rax
jb 0x140016870
mov qword [rbx + 0xe0], r8
jmp 0x1400168cf
mov qword [rcx + 0xe0], r8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x1400f8b40]
call fcn.140071f6c
cmp dword [0x1400f8b40], 0xffffffff
jne 0x14001688f
lea rcx, [0x1400f8b08]
call fcn.14001dee0
lea rcx, [0x1400b2b50]
call fcn.140071dcc
nop
lea rcx, [0x1400f8b40]
call fcn.140071f0c
jmp 0x14001688f

Function at 0x140016930
Capabilities:
Delete network filter via wfp api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov r8, qword [rcx + 0xf0]
mov rax, qword [rcx + 0xf8]
sub rax, r8
sar rax, 3
test rax, rax
je 0x1400169e8
mov ecx, dword [0x1400fa820]
mov rax, qword gs:[0x58]
lea rsi, [rax + rcx*8]
mov r14d, 4
nop word [rax + rax]
mov rdx, qword [r8 + rdi*8]
mov rcx, rbp
call sub.fwpuclnt.dll_FwpmFilterDeleteById0
test eax, eax
je 0x1400169c2
mov rax, qword [rsi]
mov eax, dword [r14 + rax]
cmp dword [0x1400f8b40], eax
jg 0x140016a0a
lea rdx, str.FirewallFilter::removeIpsSplitTunnelingFilter____FwpmFilterDeleteById0_failed
lea rcx, [0x1400f8b08]
call fcn.14001ed30
inc rdi
mov r8, qword [rbx + 0xf0]
mov rax, qword [rbx + 0xf8]
sub rax, r8
sar rax, 3
cmp rdi, rax
jb 0x140016990
mov qword [rbx + 0xf8], r8
jmp 0x1400169ef
mov qword [rcx + 0xf8], r8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x1400f8b40]
call fcn.140071f6c
cmp dword [0x1400f8b40], 0xffffffff
jne 0x1400169af
lea rcx, [0x1400f8b08]
call fcn.14001dee0
lea rcx, [0x1400b2b50]
call fcn.140071dcc
nop
lea rcx, [0x1400f8b40]
call fcn.140071f0c
jmp 0x1400169af