joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ce90
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000f920
mov rcx, rdi
call fcn.14000da18
cmp rax, 0x104
ja 0x14000cf0d
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.14000dbd8
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400187d0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x140013560
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013698
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 0x1400136ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400136ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400136ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400136ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400136ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1400136ff
cmp dword [rcx + 0xf8], 0
je 0x1400136ff
mov ecx, ebx
call fcn.1400135e4
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.14001382c
cmp dword [rbp + 0x20], 0
je 0x14001374c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013640
int3

Function at 0x140015888
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400158a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400141f4
or eax, 0xffffffff
jmp 0x1400158aa
xor eax, eax
add rsp, 0x28
ret
Function at 0x140027130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov ebp, 2
cmovne ebp, ecx
cmp ebp, 2
je 0x1400272ee
cmp ebp, 1
jne 0x14002724d
mov ecx, 0x20a
call fcn.14000d924
mov rbx, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000f920
mov qword [rsp + 0x40], rbx
mov word [rbx], 0
lea rdx, str.mozlock.
mov rcx, rdi
mov r8, rbx
call fcn.1400273a0
test eax, eax
je 0x1400272e6
mov rcx, rbx
call fcn.14000da18
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
lea rbx, [rsi + 0x10]
mov rdx, rbx
call fcn.1400020d0
test eax, eax
js 0x1400272dc
cmp qword [rbx], 0
je 0x1400272dc
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 4
mov rcx, r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140027236
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
test r14, r14
je 0x140027295
mov rcx, r14
call fcn.14000dbd0
mov rbx, qword [rsi + 8]
jmp 0x140027295
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x60000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140027291
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], rbx
cmp rbx, 0xffffffffffffffff
je 0x1400272ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov eax, 2
cmovne eax, ecx
cmp ebp, eax
je 0x1400272ee
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400272d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
jmp 0x1400272ee
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400272ee
mov rcx, rbx
call fcn.14000dbd0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400187d0
nop
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400275b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140027624
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140027656
lea rdx, [rsp + 0x54]
lea rsi, [0x1400391ac]
mov r8d, 0x105
mov rcx, rsi
call fcn.14000dbd8
mov word [0x1400393b4], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400187d0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400275e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.14000dce8
cmp esi, 2
je 0x140027666
mov dword [rax], 9
jmp 0x14002766c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14002766c
call fcn.14000dce8
mov dword [rax], 2
xor esi, esi
jmp 0x140027608
Function at 0x180006140
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x530
mov rax, qword [0x18009f080]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r14, rdx
mov r15, rcx
mov bpl, 1
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov rbx, r12
nop word [rax + rax]
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x1800061cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x180006293
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180006190
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180006190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180006190
test eax, eax
je 0x18000621a
test bpl, bpl
jne 0x18000621a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180006190
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.180020ba0
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180006190
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x18000627e
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
inc esi
jmp 0x180006190
xor bpl, bpl
test esi, esi
jne 0x180006180
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1800062ad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, r12
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x1800062ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18000631c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x1800062b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1800062b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1800062b0
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1800112c0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180006350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18009f080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov qword [rsp + 0x40], rcx
mov rdi, rdx
lea r9, [rsp + 0x40]
mov rbx, rcx
xor ebp, ebp
mov rdx, rsi
mov dword [rsp + 0x40], ebp
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800063a0
mov byte [rbx + 0x18], bpl
jmp 0x1800063e8
mov r8d, dword [rsp + 0x40]
lea rax, [rsp + 0x28]
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], ebp
cmp rbx, rax
je 0x1800063ca
mov qword [rbx], rdi
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], r8d
mov byte [rbx + 0x18], 1
jmp 0x1800063e8
mov byte [rbx + 0x18], 1
test rdi, rdi
je 0x1800063e8
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800112c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000a450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
movzx ebp, r8b
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jns 0x18000a549
mov rdx, qword [rcx + 0x18]
lea rax, [rdx + 1]
cmp rax, qword [rcx + 0x20]
jbe 0x18000a495
mov eax, 0x80100009
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x38]
movzx eax, word [0x180094f44]
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x60]
mov word [rdx + rcx - 1], ax
inc qword [rbx + 0x18]
mov rcx, qword [rbx + 0x18]
test rsi, rsi
je 0x18000a515
mov r8, qword [rsi + 0x18]
lea rax, [r8 - 1]
add rax, rcx
cmp rax, qword [rbx + 0x20]
jbe 0x18000a4e7
mov eax, 0x80100009
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x38]
dec r8
mov rdx, qword [rsi + 0x38]
dec rax
add rcx, rax
call fcn.180020500
mov rax, qword [rsi + 0x18]
dec rax
add qword [rbx + 0x18], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x38]
mov byte [rax + rcx - 1], 0
movabs rdx, 0x8000000000000000
cmp rdi, rdx
je 0x18000a52e
mov rdx, rdi
neg rdx
cmovs rdx, rdi
mov rax, qword [rsp + 0x68]
xor r9d, r9d
movzx r8d, bpl
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.1800101c0
jmp 0x18000a4d2
test r9b, r9b
je 0x18000a574
mov rdx, qword [rcx + 0x18]
lea rax, [rdx + 1]
cmp rax, qword [rcx + 0x20]
ja 0x18000a480
movzx eax, word [0x180094f40]
mov rcx, qword [rcx + 0x38]
mov word [rcx + rdx - 1], ax
inc qword [rbx + 0x18]
mov rax, qword [rsp + 0x68]
mov rdx, rdi
mov r9, qword [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.1800101c0
Function at 0x180017868
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800178d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800178d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800178d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800178d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800178d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800178d7
cmp dword [rcx + 0xf8], 0
je 0x1800178d7
mov ecx, ebx
call fcn.180017988
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180017764
nop
cmp dword [rbp + 0x20], 0
je 0x180017925
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180017930
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180017868
Function at 0x18001bc20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001bc50
xor eax, eax
jmp 0x18001bd13
mov rbp, rbx
cmp word [rax], si
je 0x18001bc75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001bc5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001bc58
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001bb40
movsxd r14, eax
test eax, eax
jne 0x18001bcb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001bc49
mov rcx, r14
call fcn.18001a120
mov rdi, rax
test rax, rax
jne 0x18001bccc
xor ecx, ecx
call fcn.180019170
jmp 0x18001bca8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001bb40
test eax, eax
jne 0x18001bcfd
mov rcx, rdi
call fcn.180019170
jmp 0x18001bd07
xor ecx, ecx
call fcn.180019170
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800202a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800202c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800202c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140013b90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140013c72
call fcn.140031230
test al, al
jne 0x140013c72
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140013bc2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14003b0e0
test rax, rax
je 0x140013c07
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14003b0e0
mov rsi, rax
test rax, rax
je 0x140013c07
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x140013c3b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14002b000
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140013c20
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140023030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa5e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400230fb
cmp qword [rcx + 0x270], 0
je 0x1400230ae
mov qword [rsp + 0x40], rbx
call fcn.14000dfc0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14000e9d0
mov rcx, qword [rdi + 0x1e8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x270]
movzx edx, bl
mov rcx, rdi
call fcn.14000e9d0
mov rbx, qword [rsp + 0x40]
jmp 0x1400230fb
mov ecx, esi
test edx, edx
je 0x1400230be
sub ecx, 1
je 0x1400230be
cmp ecx, 1
jne 0x1400230fb
mov r9, qword [rdi + 0x1e0]
lea rax, [0x140075a00]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1e0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140027230
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x140027520
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14002754a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140076568]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
test rax, rax
je 0x1400275ab
mov rcx, rbx
test r14, r14
je 0x140027598
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1400275e2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400275e2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x1400276ac
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140027610
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002769e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002769e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140027643
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140027655
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140027670
mov rcx, rsi
test r14, r14
je 0x140027695
xor edx, edx
mov r8d, 8
call r14
jmp 0x14002769b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14006fffe]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14002c8e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140090c78]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14002c948
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14005e4c0
test al, al
je 0x14002c93c
mov dword [0x140090c78], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140090c78], 1
jmp 0x14002c94d
cmp eax, 2
je 0x14002c99f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14002c97e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14002c99f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14002d5f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140090840]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14002d73e
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x3c8]
test dword [rcx + 0x8c], 0x800
jne 0x14002d73e
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14002d6ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140009e60
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140023120
mov eax, 2
jmp 0x14002d740
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x100]
lea r8, [rbx + 0xce]
lea rcx, [rsp + 0x30]
call fcn.140025b10
test al, al
jne 0x14002d73e
mov qword [rsp + 0x1e0], rdi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140009e60
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140023120
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14002d740
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14006f000
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret

Function at 0x140032040
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140032055
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140031a60