joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140137bf0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401df840
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1406d5120]
call fcn.14013cce5
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x1401df885
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x1401df916
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x1401df8db
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1401df8e5
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1401df87a
mov qword [rbp + 0x88], 0xe3
jmp 0x1401df934
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x1401df9dd
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x1401df999
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1401df9a3
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1401df923
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x1401dfa3d
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1401dfa47
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140137eb1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1401f1820
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x1406d5129]
call fcn.14013cce5
nop
mov rax, qword [rbp + 0x230]
add rax, 0x99
mov rcx, rax
call fcn.14013b840
movzx eax, al
test eax, eax
je 0x1401f189f
mov eax, 0xffffffff
jmp 0x1401f19e2
mov rax, qword [rbp + 0x230]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x230]
call qword [rax + 8]
movzx eax, al
test eax, eax
jne 0x1401f18c4
mov eax, 0xffffffff
jmp 0x1401f19e2
lea rax, [rbp + 0x188]
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x230]
add rax, 0x408
mov rdx, rax
mov rcx, qword [rbp + 0x1e8]
call fcn.1401336ae
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x248]
mov r8d, dword [rbp + 0x240]
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x230]
call fcn.14013cf56
mov rcx, qword [rbp + 0x230]
add rcx, 0x48
mov rdx, rax
call fcn.14013c4e3
nop
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.1401396da
cmp rax, 0xffffffffffffffff
jne 0x1401f1959
mov eax, 0xffffffff
jmp 0x1401f19e2
cmp dword [rbp + 0x240], 0
jne 0x1401f19dc
mov dword [rbp + 0xa4], 0x80
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.1401396da
lea r8, [rbp + 0xa4]
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1401f199f
mov eax, 0xffffffff
jmp 0x1401f19e2
movzx eax, word [rbp + 0x10]
cmp eax, 2
jne 0x1401f19b9
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1401f19e2
movzx eax, word [rbp + 0x10]
cmp eax, 0x17
jne 0x1401f19d3
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1401f19e2
mov eax, 0xffffffff
jmp 0x1401f19e2
mov eax, dword [rbp + 0x240]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14013b1e7
mov rax, rdi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret

Function at 0x140137f97
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402b8aa0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402b8420
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402b8adf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1406d7020]
jmp 0x1402b8ae9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1401384ce
Capabilities:
Query environment variable

Disassembly:
jmp 0x140380f60
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140380d90
lea rcx, [rsp + 0x40]
call fcn.140380f10
movzx eax, al
test eax, eax
jne 0x140380fa8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140380dc0
mov rax, qword [rsp + 0x70]
jmp 0x140381179
lea rcx, [rsp + 0x40]
call fcn.140380ee0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140380e80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140380ee0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14013a6c0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14038104e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140380dc0
mov rax, qword [rsp + 0x80]
jmp 0x140381179
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140137cb8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14013788a
lea rcx, [rsp + 0x48]
call fcn.140136d4a
movzx eax, al
test eax, eax
jne 0x1403810b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140134815
lea rcx, [rsp + 0x40]
call fcn.140380dc0
mov rax, qword [rsp + 0x88]
jmp 0x140381179
lea rcx, [rsp + 0x48]
call fcn.140138e51
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140380ee0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14013a6c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14038114b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140134815
lea rcx, [rsp + 0x40]
call fcn.140380dc0
mov rax, qword [rsp + 0xa0]
jmp 0x140381179
lea rcx, [rsp + 0x48]
call fcn.1401377ef
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140134815
lea rcx, [rsp + 0x40]
call fcn.140380dc0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1401384f1
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402b89d0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1402b83a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402b8a11
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1406d7020]
jmp 0x1402b8a17
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14013863b
Capabilities:
Get geographical location

Disassembly:
jmp 0x1403537f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140352720
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140353857
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1406d7030]
jmp 0x140353879
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140136c46
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140138677
Capabilities:
Terminate process

Disassembly:
jmp 0x140296880
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140138d75
Capabilities:
Print debug messages

Disassembly:
jmp 0x14038de80
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14038dea6
jmp 0x14038df23
mov rcx, qword [rbp + 0x30]
call fcn.140137579
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14038debf
jmp 0x14038df23
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14038dedc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140134c02
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140135783
test eax, eax
jne 0x14038df23
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1401393c9
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402448b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, [0x1403dc278]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1402448ed
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14013cc90
add rsp, 0x58
ret

Function at 0x1401395ea
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403830c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140139b7b
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x14019d5d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, WSACleanup
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2c8]
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x1406d5129]
call fcn.14013cce5
nop
mov rax, qword [rbp + 0x2a0]
mov byte [rax], 0
lea rdx, [rbp + 0x10]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14019d640
mov rax, qword [rbp + 0x2a0]
mov byte [rax], 1
mov rax, qword [rbp + 0x2a0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1403c6fc0]
call fcn.14013b1e7
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret

Function at 0x140139c07
Capabilities:
Parse pe header

Disassembly:
jmp 0x140297130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140297150
xor al, al
jmp 0x1402971d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140297163
xor al, al
jmp 0x1402971d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14029718d
xor al, al
jmp 0x1402971d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402971a1
xor al, al
jmp 0x1402971d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402971b3
xor al, al
jmp 0x1402971d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402971cf
xor al, al
jmp 0x1402971d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140139d65
Capabilities:
Query service status

Disassembly:
jmp 0x1401bb490
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x1406d5143]
call fcn.14013cce5
nop
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1401bb4fc
xor eax, eax
jmp 0x1401bb66f
mov rcx, qword [rbp + 0x210]
call fcn.1401364c1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
mov rcx, rax
call fcn.1401373d5
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x210]
call fcn.1401364c1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rbp + 0x24]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov r8d, 4
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x1c8], rax
mov rcx, qword [rbp + 0x1c8]
call fcn.140137a97
cmp qword [rbp + 0x1c8], 0
jne 0x1401bb5e7
mov qword [rbp + 0x1d8], 0
jmp 0x1401bb5fa
mov qword [rbp + 0x48], 0x8123
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x68], 0
jne 0x1401bb610
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor eax, eax
jmp 0x1401bb66f
lea rax, [rbp + 0xc4]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x88]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1401bb653
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor eax, eax
jmp 0x1401bb66f
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov eax, dword [rbp + 0xa4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14013b1e7
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x140139fa9
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x1401bae50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x1406d5140]
call fcn.14013cce5
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1401baebe
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401baf86
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1401baee5
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401baf86
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x1401baf2f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401baf86
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x1401baf77
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x48], 0
je 0x1401baf73
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401baf86
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14013aad5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1401b9eb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1406d5140]
call fcn.14013cce5
nop
mov rcx, qword [rbp + 0x100]
call fcn.140133dd9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1401b9f04
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x1401b9f04
mov dword [rbp + 0xd4], 1
jmp 0x1401b9f0e
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14013abb6
Capabilities:
Terminate process

Disassembly:
jmp 0x1402b9a90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1402b9abe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14013c1a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14013af1c
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x1401b9d30
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1406d5143]
call fcn.14013cce5
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1401b9d91
xor eax, eax
jmp 0x1401b9e2c
lea r8, [rbp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1401b9db7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401b9e2c
mov dword [rbp + 0x28], 1
mov eax, listen
imul rax, rax, 0
mov rcx, qword [rbp + 0x58]
mov qword [rbp + rax + 0x2c], rcx
mov eax, listen
imul rax, rax, 0
mov dword [rbp + rax + 0x34], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1401b9e1c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401b9e2c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14013b1e7
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x14013c263
Capabilities:
Print debug messages

Disassembly:
jmp 0x140367310
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14013c4ca
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402b8b10
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402b8460
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402b8b59
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1406d7020]
jmp 0x1402b8b68
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14013c83a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1401ff250
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14069d5c0]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1406d5129]
call fcn.14013cce5
nop
mov dword [rbp + 0xa4], 0x80
lea r8, [rbp + 0xa4]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401ff2e8
mov r9, qword [rbp + 0x1b0]
mov r8, qword [rbp + 0x1a8]
mov edx, dword [rbp + 0xa4]
lea rcx, [rbp + 0x10]
call fcn.140136539
nop
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14013b1e7
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140137add
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret