joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012c1b9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140298730
mov rax, rcx
neg rcx
test rax, 7
je 0x14029874d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402987a8
test al, 7
jne 0x140298740
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140298761
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402987d2
test dh, dh
je 0x1402987cc
shr rdx, 0x10
test dl, dl
je 0x1402987c6
test dh, dh
je 0x1402987c0
shr rdx, 0x10
test dl, dl
je 0x1402987ba
test dh, dh
je 0x1402987b4
shr edx, 0x10
test dl, dl
je 0x1402987ae
test dh, dh
jne 0x140298761
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14012c213
Capabilities:
Query environment variable

Disassembly:
jmp 0x14035ecf0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14035e870
lea rcx, [rsp + 0x20]
call fcn.14035e8c0
movzx eax, al
test eax, eax
jne 0x14035ed35
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14035e8a0
mov rax, qword [rsp + 0x40]
jmp 0x14035ee2f
lea rcx, [rsp + 0x20]
call fcn.14035e9c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14035e960
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, [0x1403dc0b0]
mov edx, 2
mov rcx, rax
call fcn.14012c880
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14012b674
lea rcx, [rsp + 0x28]
call fcn.14012d186
movzx eax, al
test eax, eax
jne 0x14035edcf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14012f6f2
lea rcx, [rsp + 0x20]
call fcn.14035e8a0
mov rax, qword [rsp + 0x50]
jmp 0x14035ee2f
lea rcx, [rsp + 0x20]
call fcn.14035e9c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1401312c7
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14012c727
lea rcx, [rsp + 0x28]
call fcn.1401323d4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14012f6f2
lea rcx, [rsp + 0x20]
call fcn.14035e8a0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14012ca6f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1401d1580
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 [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x140d4a129]
call fcn.140131470
nop
mov rax, qword [rbp + 0x230]
add rax, 0x99
mov rcx, rax
call fcn.1401300f7
movzx eax, al
test eax, eax
je 0x1401d15ff
mov eax, 0xffffffff
jmp 0x1401d1742
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 0x1401d1624
mov eax, 0xffffffff
jmp 0x1401d1742
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.14012865e
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.1401316be
mov rcx, qword [rbp + 0x230]
add rcx, 0x48
mov rdx, rax
call fcn.140130ceb
nop
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.14012e135
cmp rax, 0xffffffffffffffff
jne 0x1401d16b9
mov eax, 0xffffffff
jmp 0x1401d1742
cmp dword [rbp + 0x240], 0
jne 0x1401d173c
mov dword [rbp + 0xa4], 0x80
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.14012e135
lea r8, [rbp + 0xa4]
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1401d16ff
mov eax, 0xffffffff
jmp 0x1401d1742
movzx eax, word [rbp + 0x10]
cmp eax, 2
jne 0x1401d1719
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1401d1742
movzx eax, word [rbp + 0x10]
cmp eax, 0x17
jne 0x1401d1733
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1401d1742
mov eax, 0xffffffff
jmp 0x1401d1742
mov eax, dword [rbp + 0x240]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14012fad5
mov rax, rdi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret

Function at 0x14012cb50
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140296890
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140296210
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402968cf
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 [0x140d4c020]
jmp 0x1402968d9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14012d023
Capabilities:
Query environment variable

Disassembly:
jmp 0x14035ea40
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14035e870
lea rcx, [rsp + 0x40]
call fcn.14035e9f0
movzx eax, al
test eax, eax
jne 0x14035ea88
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14035e8a0
mov rax, qword [rsp + 0x70]
jmp 0x14035ec59
lea rcx, [rsp + 0x40]
call fcn.14035e9c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14035e960
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.14035e9c0
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.14012f03a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14035eb2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14035e8a0
mov rax, qword [rsp + 0x80]
jmp 0x14035ec59
mov r9d, 0x66
lea r8, [0x1403dc0b0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14012c880
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14012c498
lea rcx, [rsp + 0x48]
call fcn.14012ba1b
movzx eax, al
test eax, eax
jne 0x14035eb95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401296bc
lea rcx, [rsp + 0x40]
call fcn.14035e8a0
mov rax, qword [rsp + 0x88]
jmp 0x14035ec59
lea rcx, [rsp + 0x48]
call fcn.14012d938
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14035e9c0
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.14012f03a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14035ec2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401296bc
lea rcx, [rsp + 0x40]
call fcn.14035e8a0
mov rax, qword [rsp + 0xa0]
jmp 0x14035ec59
lea rcx, [rsp + 0x48]
call fcn.14012c3fd
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401296bc
lea rcx, [rsp + 0x40]
call fcn.14035e8a0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14012d046
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402967c0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140296190
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140296801
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 [0x140d4c020]
jmp 0x140296807
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14012d18b
Capabilities:
Get geographical location

Disassembly:
jmp 0x140330a10
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.14032f940
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140330a77
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 [0x140d4c030]
jmp 0x140330a99
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14012b92b
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 0x14012d1bd
Capabilities:
Terminate process

Disassembly:
jmp 0x140274670
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 0x14012d86b
Capabilities:
Print debug messages

Disassembly:
jmp 0x14036bb80
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14036bba6
jmp 0x14036bc23
mov rcx, qword [rbp + 0x30]
call fcn.14012c1b9
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14036bbbf
jmp 0x14036bc23
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14036bbdc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140129a95
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.14012a57b
test eax, eax
jne 0x14036bc23
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14012de56
Capabilities:
Get geographical location

Disassembly:
jmp 0x140220190
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, [0x1403b5198]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1402201cd
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.14013141b
add rsp, 0x58
ret

Function at 0x14012e04f
Capabilities:
Set environment variable

Disassembly:
jmp 0x140360ba0
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 0x14012e59a
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140186600
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 [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x140d4a129]
call fcn.140131470
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 0x140186670
mov rax, qword [rbp + 0x2a0]
mov byte [rax], 1
mov rax, qword [rbp + 0x2a0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1403a2bc0]
call fcn.14012fad5
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret

Function at 0x14012e617
Capabilities:
Parse pe header

Disassembly:
jmp 0x140274f20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140274f40
xor al, al
jmp 0x140274fc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140274f53
xor al, al
jmp 0x140274fc1
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 0x140274f7d
xor al, al
jmp 0x140274fc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140274f91
xor al, al
jmp 0x140274fc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140274fa3
xor al, al
jmp 0x140274fc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140274fbf
xor al, al
jmp 0x140274fc1
mov al, 1
add rsp, 0x38
ret
Function at 0x14012e987
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x14019ffe0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x140d4a13f]
call fcn.140131470
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 0x1401a004e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401a0116
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 0x1401a0075
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401a0116
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 0x1401a00bf
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 0x1401a0116
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 0x1401a0107
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x48], 0
je 0x1401a0103
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1401a0116
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 0x14012f40e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14019fe40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140d4a13f]
call fcn.140131470
nop
mov rcx, qword [rbp + 0x100]
call fcn.140128d2f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14019fe94
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x14019fe94
mov dword [rbp + 0xd4], 1
jmp 0x14019fe9e
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14012f4ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140297880
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 0x1402978ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1401309df
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 0x140130a8e
Capabilities:
Print debug messages

Disassembly:
jmp 0x140344590
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 0x140130cd7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140296900
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140296250
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140296949
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 [0x140d4c020]
jmp 0x140296958
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

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

Disassembly:
jmp 0x1401dc250
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 [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x140d4a129]
call fcn.140131470
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 0x1401dc2e8
mov r9, qword [rbp + 0x1b0]
mov r8, qword [rbp + 0x1a8]
mov edx, dword [rbp + 0xa4]
lea rcx, [rbp + 0x10]
call fcn.14012b296
nop
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14012fad5
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14013138a
Capabilities:
Create thread

Disassembly:
jmp 0x1402b4dd0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1402b4dfc
mov dword [rsp + 0x30], 1
jmp 0x1402b4e04
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1402b4e4d
lea rax, [0x1403c0728]
mov qword [rsp + 0x28], rax
lea rax, [0x1403b6d20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, [0x1403c0760]
mov ecx, 2
call fcn.140129095
cmp eax, 1
jne 0x1402b4e4d
int3
cmp dword [rsp + 0x34], 0
jne 0x1402b4e8f
call fcn.14012b4b2
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], 0
mov r9d, 0xc8
lea r8, [0x1403c0760]
lea rdx, [0x1403c07f8]
lea rcx, [0x1403c0728]
call fcn.14012ff85
xor eax, eax
jmp 0x1402b4f8f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1402b48c0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402b46c0
lea rcx, [rsp + 0x40]
call fcn.1402b4730
movzx eax, al
test eax, eax
jne 0x1402b4edf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1402b4710
mov rax, qword [rsp + 0x50]
jmp 0x1402b4f8f
lea rcx, [rsp + 0x40]
call fcn.1402b4a70
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1402b4470]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1402b4f53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14012ab02
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1402b4710
mov rax, qword [rsp + 0x58]
jmp 0x1402b4f8f
cmp qword [rsp + 0xa8], 0
je 0x1402b4f6c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1402b4a30
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1402b4710
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x140131afb
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x140198800
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x140d4a129]
call fcn.140131470
nop
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0xf0]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rbp + 0xf0]
mov rdx, qword [rdx + 8]
mov r8, qword [rbp + 0xf0]
mov r8, qword [r8]
mov qword [rbp + 0xc0], r8
mov r9d, dword [rax]
mov r8d, dword [rcx]
mov rdx, qword [rdx]
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_send]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x140131b87
Capabilities:
Get system information on windows

Disassembly:
jmp 0x14021e5c0
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140334a60
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140129a95
sub rsp, rax
mov rax, qword [0x140d145c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140d234a0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, listen
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140334c52
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140334ba6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140334ba6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140334b8b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140334b28
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140334c12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140334c71
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140334c4d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140334c71
jmp 0x140334afe
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14012c6c3
add rsp, 0x1498
pop rdi
pop rsi
ret