joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a941
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14014f160]
mov r8, rcx
mov rcx, r9
call fcn.14006a870
test eax, eax
je 0x14006a96d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14006a894
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006b280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x130
mov rbx, rcx
call sub.msvcrt.dll__errno
xor ecx, ecx
mov dword [rax], ecx
test rbx, rbx
jne 0x14006b2a8
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x14006b2b8
cmp byte [rbx], 0
jne 0x14006b2bf
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
xor ebx, ebx
jmp 0x14006b39c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14006b2da
call sub.msvcrt.dll__errno
mov dword [rax], 2
jmp 0x14006b2b8
test al, 0x10
je 0x14006b2ad
lea rdi, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sub.msvcrt.dll__fullpath
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
jne 0x14006b31d
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x14006b2b8
lea rsi, [rax + 0x244]
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_strcpy
cmp byte [rbx + 0x244], 0
je 0x14006b35e
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov al, byte [rbx + rax + 0x243]
cmp al, 0x5c
je 0x14006b35e
cmp al, 0x2f
je 0x14006b35e
lea rdx, [0x14014e6b0]
mov rcx, rsi
call sub.msvcrt.dll_strcat
lea rdx, [0x14014e6b2]
mov rcx, rsi
call sub.msvcrt.dll_strcat
xor edx, edx
xor eax, eax
mov ecx, 0x41
mov qword [rbx + 0x128], rdx
lea rdx, [rbx + 0x130]
mov dword [rbx + 0x240], eax
mov rdi, rdx
xor eax, eax
mov qword [rbx + 0x238], 0xffffffffffffffff
rep stosd dword [rdi], eax
mov rax, rbx
add rsp, 0x130
pop rbx
pop rsi
pop rdi
ret
Function at 0x140075bb3
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140087f38], eax
inc eax
jne 0x140075bcd
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x140075d41
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x140075ddd
call fcn.14007593a
dec eax
jne 0x140075dd6
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov eax, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rax], 0
je 0x140075db5
inc rax
cmp rax, 0x6b
jne 0x140075da4
jmp 0x140075dcb
cmp eax, 0x6a
je 0x140075dcb
movsxd rdx, eax
inc eax
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x140075e7f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
call fcn.140075de8
mov ecx, dword [0x140087f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140075f8e
call fcn.140075c95
cmp qword [0x14016a048], 0
mov rbx, rax
je 0x140075f8e
test rax, rax
je 0x140075f8e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140075d41
xor edx, edx
xor ecx, ecx
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], edx
mov qword [rbx + 0x28], rcx
call rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rdx, rsi
mov dword [rsp + 0x28], r8d
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140075f54
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140087f38]
mov rdx, rbx
mov dword [rbx + 0xc0], eax
xor eax, eax
mov dword [rbx + 0xbc], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140075f4f
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x140076b0f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140075e7f
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.1400765e7
test byte [rbx + 0x40], 0x30
jne 0x140076b48
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x140087f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140076bd3
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x140076b83
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x140076b78
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov esi, dword [rbx + 8]
mov qword [rbx + 0x30], rcx
jmp 0x140076bbd
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x140076b9b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rbx + 0x30], rdx
test byte [rbx + 0x44], 4
je 0x140076bd3
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call fcn.140075f99
mov ecx, dword [0x140087f38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop rdi
xor eax, dword [rax - 0x1b80b7a]
mov ebp, dword [0x15b3f6cbe]
pop rcx
mov edx, dword [rdi + rcx + 0x70a610c0]
int1
mov bh, 0x56
invalid
Function at 0x141a96000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x141a9600a
jmp 0x141a9800f
jmp fcn.1411ec108
Function at 0x1400073c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r15
xor r9d, r9d
movsxd rdi, edx
mov rbx, rcx
mov r15, r8
mov rcx, rdi
test edx, edx
jle 0x140007520
mov qword [rsp + 0x18], rbp
mov r11d, 2
mov qword [rsp + 0x20], rsi
add rbx, r11
dec rcx
mov qword [rsp + 0x28], r14
mov r14, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov r10, r8
mov rsi, rdx
shr rsi, 1
inc rsi
nop word [rax + rax]
movzx ecx, byte [rbx - 2]
lea ebp, [r11 - 1]
cmp ebp, edi
jl 0x140007431
xor r8d, r8d
jmp 0x140007436
movzx r8d, byte [rbx - 1]
cmp r11d, edi
jl 0x14000743f
xor edx, edx
jmp 0x140007442
movzx edx, byte [rbx]
mov rax, rcx
add r9d, 2
shr rax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [rax + r14]
mov byte [r10], al
mov eax, r8d
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r10 + 1], al
add r10, 2
cmp ebp, edi
jge 0x140007499
and r8d, 0xf
mov rax, rdx
shr rax, 6
inc r9d
shl r8d, 2
mov ecx, r8d
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r10], al
inc r10
cmp r11d, edi
jge 0x1400074af
and edx, 0x3f
inc r9d
movzx eax, byte [rdx + r14]
mov byte [r10], al
inc r10
add r11d, 3
add rbx, 3
sub rsi, 1
jne 0x140007420
mov r14, qword [rsp + 0x28]
mov eax, r9d
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
and eax, 0x80000003
jge 0x1400074e1
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x14000750f
movsxd rcx, r9d
add rcx, r15
nop dword [rax + rax]
inc r9d
mov byte [rcx], 0x3d
mov eax, r9d
lea rcx, [rcx + 1]
and eax, 0x80000003
jge 0x14000750b
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x1400074f0
movsxd rax, r9d
mov byte [rax + r15], 0
mov rbx, qword [rsp + 0x30]
pop r15
pop rdi
ret
mov rbx, qword [rsp + 0x30]
movsxd rax, r9d
mov byte [rax + r8], r9b
pop r15
pop rdi
ret
Function at 0x140009e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov r14, rdx
lea rax, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001ServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140009ea7
mov ecx, 2
call fcn.140052dd4
mov rcx, rax
lea r8, str.SYSTEMControlSet001ServicesTcpipParametersInterfaces
mov r9d, ebx
lea rdx, str.cannot_open_reg_key__S:__ld_n
call fcn.140006910
mov eax, 0xffffffff
jmp 0x14000a036
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x5b0], r15
lea r8, [rbp + 0x60]
xor r15d, r15d
mov dword [rsp + 0x54], 0x400
mov qword [rsp + 0x38], r15
xor edx, edx
mov qword [rsp + 0x30], r15
mov edi, 0xffffffff
mov qword [rsp + 0x28], r15
mov ebx, r15d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a021
nop dword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009f9e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.NameServer
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009f64
cmp word [rsp + 0x60], r15w
jne 0x140009fe4
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.DhcpNameServer
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009f9e
cmp word [rsp + 0x60], r15w
jne 0x140009fe4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x60]
mov qword [rsp + 0x30], r15
inc ebx
mov qword [rsp + 0x28], r15
mov edx, ebx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x54], 0x400
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140009f00
jmp 0x14000a021
mov edx, 0x2c
lea rcx, [rsp + 0x60]
call fcn.14004cfa4
test rax, rax
je 0x140009ffc
mov word [rax], r15w
lea r9, [rsp + 0x60]
mov rdx, r14
lea r8, [0x1400893e0]
mov rcx, rsi
call fcn.140003a00
mov rcx, qword [rsp + 0x48]
mov edi, r15d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x5b0]
mov eax, edi
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x570
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000dcf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14003fab0
sub rsp, rax
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, qword [rcx + 0x90]
mov rdi, rcx
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x1c]
cmp eax, 1
jne 0x14000de3d
xor r8d, r8d
mov eax, 0x1000
sub rax, qword [rcx + 0x68]
cmp qword [rcx + 0x68], 0x1000
cmovb r8, rax
cmp r8, rdx
cmovbe rdx, r8
test rdx, rdx
je 0x14000ddd1
mov r9, qword [rbx]
lea rcx, [rsp + 0x20]
mov r8, rdx
mov edx, 1
call fcn.140054018
mov rsi, rax
test rax, rax
je 0x14000ddd1
call fcn.140013da0
cvttsd2si rcx, xmm0
movsxd r9, esi
lea r8, [rsp + 0x20]
mov qword [rdi + 0x78], rcx
lea rcx, [rdi + 0x60]
mov rdx, qword [rcx + 8]
call fcn.140006960
add qword [rbx + 0x10], rsi
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov r8d, 0x181b
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x14000ddd1
mov r9d, dword [rbx + 0x10]
lea rcx, str._p_sent__d__total__d_
mov r8d, esi
mov rdx, rdi
call fcn.140003d70
mov rax, qword [rbx + 8]
cmp qword [rbx + 0x10], rax
jl 0x14000dede
mov r8d, 0x1822
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 3
call fcn.140003ad0
test eax, eax
je 0x14000de11
mov r9d, dword [rbx + 0x18]
lea rcx, str._p_done___d_bytes__ka__d
mov r8d, dword [rbx + 0x10]
mov rdx, rdi
call fcn.140003d70
cmp dword [rbx + 0x18], 0
jne 0x14000de21
or dword [rdi + 0xd0], 0x400
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000de2e
call fcn.1400531cc
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x14000dede
cmp eax, 2
jne 0x14000df03
mov qword [rsp + 0x1048], r14
test rdx, rdx
jne 0x14000de58
xor r8d, r8d
jmp 0x14000de64
cmp rdx, qword [rcx + 0x50]
mov r8, rdx
cmovae r8, qword [rcx + 0x50]
mov r9, qword [rbx]
mov edx, 1
mov rcx, qword [rcx + 0x48]
call fcn.1400547c0
mov rsi, rax
test rax, rax
je 0x14000dea0
mov r8, qword [rdi + 0x50]
cmp rax, r8
ja 0x14000de9a
mov rcx, qword [rdi + 0x48]
sub r8, rax
lea rdx, [rcx + rax]
call fcn.14004c3b0
sub qword [rdi + 0x50], rsi
add qword [rbx + 0x10], rsi
jmp 0x14000dea5
test rsi, rsi
je 0x14000deaf
mov rax, qword [rbx + 8]
cmp qword [rbx + 0x10], rax
jl 0x14000ded6
cmp dword [rbx + 0x18], 0
jne 0x14000debf
or dword [rdi + 0xd0], 0x400
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000decc
call fcn.1400531cc
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov r14, qword [rsp + 0x1048]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14003fb10
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14000dede
call fcn.140009b30
jmp 0x14000dede
Function at 0x14000ef00
Capabilities:
Initialize winsock library

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x200
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov qword [r11 + 0x10], rbx
xorps xmm0, xmm0
mov qword [r11 + 0x20], rdi
mov rbx, 0xffffffffffffffff
mov qword [r11 - 0x10], r14
mov rsi, rcx
movaps xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x28], r14
mov qword [rcx + 0x30], r14
mov qword [rcx + 0x38], r14
mov qword [rcx + 0x20], rdx
lea rdx, [rsp + 0x40]
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x10], rbx
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [reloc.WS2_32.dll_accept]
mov eax, 8
movsxd rcx, edi
mul rcx
mov dword [rsi + 0x28], edi
cmovo rax, rbx
mov rcx, rax
call fcn.14005f49c
mov qword [rsi + 0x30], rax
test edi, edi
jle 0x14000effd
mov qword [rsp + 0x220], rbp
mov ebx, r14d
mov qword [rsp + 0x1f0], r15
mov ebp, edi
lea r15, [0x1400ab028]
mov rdi, qword [rbx + r15]
mov edx, 0x18
lea ecx, [rdx - 0x17]
call fcn.14005f480
mov qword [rax], rsi
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdi
mov rcx, qword [rsi + 0x30]
mov qword [rbx + rcx], rax
mov rax, qword [rsi + 0x30]
mov rcx, qword [rbx + rax]
mov rax, qword [rcx + 0x10]
call qword [rax]
lea rbx, [rbx + 8]
sub rbp, 1
jne 0x14000efb1
mov r15, qword [rsp + 0x1f0]
mov rbp, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x1f8]
mov rdi, qword [rsp + 0x228]
mov rbx, qword [rsp + 0x218]
test rcx, rcx
je 0x14000f028
call fcn.14006218c
mov qword [rsi + 0x38], rax
mov r8d, 0x999
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x14000f04f
lea rcx, [0x140087d58]
call fcn.140003d70
mov r8d, 0x99a
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x14000f079
mov rdx, rsi
lea rcx, str.init_mgr_p
call fcn.140003d70
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x200
pop rsi
ret
Function at 0x14000f4b0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
movzx ecx, word [rcx]
mov esi, edx
mov dword [rsp + 0x34], 1
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f56d
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000f55d
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x14000f55d
cmp esi, 2
je 0x14000f53f
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14000f55d
mov rcx, rbx
call fcn.140013410
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
mov rax, rbx
jmp 0x14000f56d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400113f0
Capabilities:
Reference google public dns server

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rsp + 0x128]
mov r12, r9
mov r14d, r8d
mov rbp, rdx
mov r15, rcx
mov rdi, qword [rsi]
test rdi, rdi
jne 0x140011434
mov rdi, qword [rcx + 0x38]
mov r8d, 0x2f0e
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x140011465
mov r9, qword [rsi + 0x18]
lea rcx, str._s__d__p
mov r8d, r14d
mov rdx, rbp
call fcn.140003d70
mov edx, 0x438
mov ecx, 1
call fcn.14005f480
mov rbx, rax
test rax, rax
je 0x14001156c
mov r8d, 0x400
mov rdx, rbp
mov rcx, rax
call fcn.1400623b0
mov rax, qword [rsp + 0x120]
mov ecx, 2
mov qword [rbx + 0x410], rax
mov eax, dword [rsi + 8]
test eax, eax
mov byte [rbx + 0x3ff], 0
cmovne ecx, eax
mov dword [rbx + 0x400], r14d
mov eax, dword [rsi + 0xc]
test eax, eax
mov dword [rbx + 0x420], ecx
mov ecx, 5
cmovne ecx, eax
mov qword [rbx + 0x408], r12
movsxd rax, ecx
mov qword [rbx + 0x418], rax
test rdi, rdi
jne 0x140011504
lea edx, [rdi + 0x11]
lea rcx, [rsp + 0x78]
call fcn.140009e20
cmp eax, 0xffffffff
lea rdi, [rsp + 0x78]
lea rcx, str.8.8.8.8
cmove rdi, rcx
mov r9, rdi
lea r8, str.udp:___s:53
mov edx, 0x1a
lea rcx, [rsp + 0x90]
call fcn.140003a00
xorps xmm0, xmm0
lea r9, [rsp + 0x20]
xor eax, eax
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x70], rax
lea r8, [0x1400111b0]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x90]
movsd xmm0, qword [rsp + 0x70]
mov rcx, r15
movsd qword [rsp + 0x40], xmm0
call fcn.140008610
mov rcx, rax
test rax, rax
jne 0x140011573
mov rcx, rbx
call fcn.14005f488
mov eax, 0xffffffff
jmp 0x140011588
mov qword [rax + 0xa8], rbx
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140011586
mov qword [rax], rcx
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013010
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, r8
mov esi, edx
mov rdi, rcx
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov r8d, 0x2750
mov ecx, 4
mov rbp, r9
call fcn.140003ad0
test eax, eax
je 0x140013065
mov r9d, ebp
lea rcx, str._p__d__d
mov r8d, esi
mov rdx, rdi
call fcn.140003d70
lea r9, [rsp + 0x20]
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140013100
call fcn.140013da0
cvttsd2si rax, xmm0
movsxd r9, ebp
lea rcx, [rdi + 0x60]
mov r8, r14
mov qword [rdi + 0x78], rax
mov rdx, qword [rdi + 0x68]
call fcn.140006960
mov r8, qword [rsp + 0x20]
test r8, r8
je 0x1400130d4
xor edx, edx
cmp qword [rdi + 0x68], r8
je 0x1400130d4
nop word [rax + rax]
mov rcx, qword [rdi + 0x60]
mov rax, rdx
and eax, 3
add rcx, r8
movzx eax, byte [rsp + rax + 0x28]
xor byte [rcx + rdx], al
inc rdx
mov rax, qword [rdi + 0x68]
sub rax, r8
cmp rdx, rax
jb 0x1400130b0
cmp esi, 8
jne 0x1400130e3
or dword [rdi + 0xd0], 0x400
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140013410
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x38
ret
Function at 0x140015670
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor bl, bl
xor r15d, r15d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp qword [rcx + 0x10], r15
je 0x14001584e
cmp qword [rdx + 0x10], r15
je 0x14001584e
cmp qword [rdx + 0x18], 0x10
mov rcx, rdx
mov qword [rsp + 0x50], r12
jb 0x1400156bf
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r12d, eax
test eax, eax
je 0x140015849
mov ecx, r12d
mov qword [rsp + 0x58], rbp
lea rdx, [0x14008ca48]
call fcn.14003fb6c
mov rbp, rax
test rax, rax
je 0x140015823
cmp qword [rdi + 0x18], 0x10
jb 0x1400156fe
mov rdi, qword [rdi]
mov edx, dword [rsp + 0x40]
mov r9, rbp
mov r8d, r12d
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x14001580e
lea r9, [rsp + 0x44]
mov rcx, rbp
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14001580e
mov rax, qword [rsp + 0x30]
lea rdx, [0x14008ca48]
mov ecx, dword [rax]
movzx edi, cx
shr ecx, 0x10
shl edi, 0x10
or edi, ecx
mov ecx, 0x80
call fcn.14003fb6c
mov r15, rax
test rax, rax
je 0x14001580e
cmp qword [r14 + 0x18], 0x10
jb 0x140015772
mov r14, qword [r14]
mov r9d, edi
mov qword [rsp + 0x20], r14
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, r15
call fcn.140015920
lea r9, [rsp + 0x44]
mov rdx, r15
lea r8, [rsp + 0x38]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140015802
mov r9, qword [rsp + 0x38]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x1400157b3
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x1400157f4
mov rdi, rsi
cmp rax, 0x10
jb 0x1400157d2
mov rdi, qword [rsi]
mov r8, rbx
mov qword [rsi + 0x10], rbx
mov rdx, r9
mov rcx, rdi
call fcn.14004c3b0
mov byte [rdi + rbx], 0
mov rcx, rbp
mov bl, 1
call fcn.14003f74c
jmp 0x14001581b
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400152b0
mov rcx, rbp
mov bl, 1
call fcn.14003f74c
jmp 0x14001581b
mov rcx, rbp
call fcn.14003f74c
test r15, r15
je 0x140015823
mov rcx, r15
call fcn.14003f74c
mov rbp, qword [rsp + 0x58]
movzx eax, bl
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, bl
jmp 0x14001582b
movzx eax, bl
jmp 0x140015830