joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov ecx, dword [0x14033ef90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x14017fd70]
mov rbx, rax
call qword [rcx + 0x120]
mov ecx, dword [0x14033ef90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rbx, rbx
je 0x140009162
cmp byte [rbx + 0x74], 0
je 0x140009162
mov rcx, rbx
mov qword [rsp + 0x70], rdi
call fcn.140008e00
mov rdx, qword [0x14033ef08]
test rdx, rdx
je 0x1400090e9
mov rax, qword [0x14017fd70]
lea r9, str.D:winx64_packages_build_srcmysysmy_thr_init.c
xor r8d, r8d
mov dword [rsp + 0x20], 0x17a
lea rcx, [rsp + 0x30]
call qword [rax + 0x178]
lea rcx, [0x14033eee0]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
je 0x1400090f6
mov rax, qword [0x14017fd70]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x180]
jmp 0x1400090f6
lea rcx, [0x14033eee0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140336414], 0xffffffff
mov rdi, qword [rsp + 0x70]
jne 0x140009129
mov rcx, qword [0x14033ee98]
test rcx, rcx
je 0x14000911d
mov rax, qword [0x14017fd70]
call qword [rax + 0x158]
lea rcx, [0x14033ee90]
call fcn.14000a4e0
mov rcx, qword [0x14033ef08]
test rcx, rcx
je 0x140009142
mov rax, qword [0x14017fd70]
call qword [rax + 0x148]
lea rcx, [0x14033eee0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
mov byte [rbx + 0x74], 2
add rsp, 0x60
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x60
pop rbx
ret

Function at 0x140009380
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x140336418], 0
je 0x140009394
xor al, al
add rsp, 0x28
ret
cmp byte [0x140336410], 0
mov qword [rsp + 0x20], rbx
mov byte [0x140336418], 1
jne 0x1400093e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ebx, ebx
mov dword [0x14033ef90], eax
cmp eax, 0xffffffff
sete bl
jne 0x1400093e8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Cant_initialize_threads:_error__d_n
mov rcx, rax
call fcn.140003850
mov rbx, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
mov byte [0x140336410], 1
call fcn.1400096d0
call fcn.140009420
test al, al
jne 0x1400093dc
call fcn.140008dc0
mov dword [0x14033e898], eax
call fcn.140009590
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
Function at 0x140009420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
xor bl, bl
cmp byte [0x140336418], bl
jne 0x140009438
mov al, 1
add rsp, 0x60
pop rbx
ret
mov ecx, dword [0x14033ef90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140009584
call fcn.140008dd0
mov edx, 0xa8
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140009477
mov bl, 1
movzx eax, bl
add rsp, 0x60
pop rbx
ret
mov ecx, dword [0x14033ef90]
mov rdx, rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x58], eax
mov rcx, qword [rsp + 0x70]
call fcn.140009760
mov eax, dword [0x14017f830]
lea rcx, [rsp + 0x70]
neg eax
cdqe
add rcx, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], rcx
mov rdx, qword [0x14033ef08]
test rdx, rdx
je 0x14000951a
mov rax, qword [0x14017fd70]
lea r9, str.D:winx64_packages_build_srcmysysmy_thr_init.c
xor r8d, r8d
mov dword [rsp + 0x20], 0x133
lea rcx, [rsp + 0x30]
call qword [rax + 0x178]
lea rcx, [0x14033eee0]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
je 0x140009527
mov rax, qword [0x14017fd70]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x180]
jmp 0x140009527
lea rcx, [0x14033eee0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x70]
mov rdx, qword [0x140336420]
mov rdi, qword [rsp + 0x78]
inc rdx
mov qword [0x140336420], rdx
mov qword [rax + 0x68], rdx
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x60], rdx
inc dword [0x140336414]
mov rcx, qword [0x14033ef08]
test rcx, rcx
je 0x14000956e
mov rdx, qword [0x14017fd70]
call qword [rdx + 0x148]
lea rcx, [0x14033eee0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x70]
mov byte [rcx + 0x74], 1
movzx eax, bl
add rsp, 0x60
pop rbx
ret

Function at 0x140009c20
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403338e8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x14033a458]
test rax, rax
jne 0x140009cd7
movzx eax, word [0x1400377c0]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x1400377c2]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140009cb7
cmp rax, 6
jne 0x140009ca0
jmp 0x140009cbc
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x140180e10]
lea rax, [0x140180bf0]
cmove rax, rcx
mov qword [0x14033a458], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400331d0
add rsp, 0x48
ret
Function at 0x140007e40
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x14000f090]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x14000f188]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007ec1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x14000f188]
jmp 0x140007edd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x14000f188], r11
mov qword [0x14000f128], rax
mov rax, qword [0x14000e9a8]
mov qword [0x14000f000], r11
mov qword [0x14000f110], rdi
mov dword [0x14000eff0], 0xc0000409
mov dword [0x14000eff4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x14000e9a0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000bd98]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x14000e9a8]
jne 0x1400085c9
rol rcx, 0x10
test cx, 0xffff
jne 0x1400085c5
ret
ror rcx, 0x10
jmp 0x140007e40
Function at 0x140007fd0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x14000f5a0], rbx
je 0x140008016
cmp rax, rbx
jne 0x140008009
mov edi, 1
jmp 0x140008016
mov ecx, 0x3e8
call qword [sym.imp.orauts.dll_Sleep]
jmp 0x140007ff0
mov eax, dword [0x14000f59c]
cmp eax, 1
jne 0x14000802b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x14000806a
mov eax, dword [0x14000f59c]
test eax, eax
jne 0x140008060
mov dword [0x14000f59c], 1
lea rdx, [0x140009598]
lea rcx, [0x140009580]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x14000806a
mov eax, 0xff
jmp 0x14000814b
mov dword [0x14000f584], 1
mov eax, dword [0x14000f59c]
cmp eax, 1
jne 0x140008092
lea rdx, [0x140009578]
lea rcx, [0x140009560]
call sub.MSVCR80.dll__initterm
mov dword [0x14000f59c], 2
test edi, edi
jne 0x14000809d
xchg qword [0x14000f5a0], rsi
cmp qword [0x14000f5b8], 0
je 0x1400080c6
lea rcx, [0x14000f5b8]
call fcn.140008510
test eax, eax
je 0x1400080c6
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000f5b8]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x14000f568]
mov qword [rcx], rax
mov r8, qword [0x14000f568]
mov rdx, qword [0x14000f570]
mov ecx, dword [0x14000f560]
call fcn.140001000
mov dword [0x14000f580], eax
cmp dword [0x14000f564], 0
jne 0x140008107
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x14000f584], 0
jne 0x14000811c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x14000f580]
jmp 0x14000814b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.140007d80
add rsp, 0x28
jmp 0x140007fd0
Function at 0x1800017d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
movzx eax, byte [0x18000bb84]
test eax, eax
jne 0x1800017e8
mov byte [0x18000bb84], 1
jmp 0x1800017ea
jmp 0x180001821
cmp dword [0x180007148], 0x1db0
je 0x180001802
cmp dword [0x180007148], 0x1db1
jne 0x180001809
call fcn.180001550
jmp 0x18000180e
call fcn.180001680
mov rdx, qword [0x180007150]
lea rcx, str.PspTerminateThreadByPointer:__p_n
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x28
ret
Function at 0x180002540
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
cmp dword [0x18000bb74], 0
je 0x18000255d
mov eax, dword [0x18000bb74]
jmp 0x180002667
mov dword [rsp + 0x30], 0x11c
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov qword [rsp + 0x150], 0
lea rdx, str.RtlGetVersion
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x1800025bd
lea rcx, [rsp + 0x30]
call qword [rsp + 0x150]
jmp 0x1800025d5
xor r9d, r9d
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x34]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x34], 5
jne 0x1800025ef
cmp dword [rsp + 0x38], 1
jne 0x1800025ef
mov dword [0x18000bb74], 0x33
jmp 0x180002661
cmp dword [rsp + 0x34], 6
jne 0x180002609
cmp dword [rsp + 0x38], 1
jne 0x180002609
mov dword [0x18000bb74], 0x3d
jmp 0x180002661
cmp dword [rsp + 0x34], 6
jne 0x180002623
cmp dword [rsp + 0x38], 2
jne 0x180002623
mov dword [0x18000bb74], 0x3e
jmp 0x180002661
cmp dword [rsp + 0x34], 6
jne 0x18000263d
cmp dword [rsp + 0x38], 3
jne 0x18000263d
mov dword [0x18000bb74], 0x3f
jmp 0x180002661
cmp dword [rsp + 0x34], 0xa
jne 0x180002657
cmp dword [rsp + 0x38], 0
jne 0x180002657
mov dword [0x18000bb74], 0x64
jmp 0x180002661
mov dword [0x18000bb74], 0x64
mov eax, dword [0x18000bb74]
add rsp, 0x160
pop rdi
ret
Function at 0x180003590
Capabilities:
Create device object
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov dword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x130]
lea rax, [0x1800019f0]
mov qword [rcx + 0x70], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001a50]
mov qword [rcx + 0x80], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001920]
mov qword [rcx + 0xe0], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001aa0]
mov qword [rcx + 0x68], rax
lea rdx, str.DeviceBEIKESHOUHU
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x108]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x180003668
mov eax, dword [rsp + 0x110]
jmp 0x18000386b
lea rdx, str.DosDevicesGlobalBEIKESHOUHU
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x1800036be
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x110]
jmp 0x18000386b
lea rcx, str.BeiKeShouHu_Driver_loaded____n
call sub.ntoskrnl.exe_DbgPrint
call fcn.180001b80
call fcn.180002540
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
lea rax, [0x180002af0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
mov edx, 0x1fffff
lea rcx, [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov r11, qword [rsp + 0x130]
mov qword [rsp + 0x30], r11
lea rax, [0x180002b60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov edx, 0x1fffff
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov r11, qword [rsp + 0x130]
mov qword [rsp + 0x30], r11
lea rax, [0x180002250]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x1fffff
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
xor eax, eax
add rsp, 0x128
ret
Function at 0x11d80b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11d8237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x11d80e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x11d80c7
add dl, dl
jne 0x11d80ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x11d814e
xor eax, eax
add dl, dl
jne 0x11d80fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x11d8205
add dl, dl
jne 0x11d810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11d811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11d8128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11d8135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x11d8142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x11d80d6
mov eax, 1
add dl, dl
jne 0x11d815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11d816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x11d8153
sub eax, ebx
mov ebx, 1
jne 0x11d81a4
mov ecx, 1
add dl, dl
jne 0x11d8186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11d8193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x11d817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x11d80d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11d81c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11d81cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x11d81b5
cmp eax, 0x7d00
jae 0x11d81f3
cmp eax, 0x500
jb 0x11d81ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x11d80d6
cmp eax, 0x7f
ja 0x11d81f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x11d80d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x11d822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x11d80d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14295ee62
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, 0x4ad0f95
jmp 0x142913ae0
push r13
setle bh
cwd
push rax
rdtsc
cwd
movzx eax, r11w
push rbp
cwd
movsx ecx, r12w
movzx ax, bh
push r12
push r15
pushfq
not dl
clc
and bl, 0xd1
push r14
movsx r10, r13w
push r11
cwd
push r8
mov r8, 0x7d4d2d87
btr r11d, 0x68
and rcx, rsp
movabs rcx, 0
stc
push rcx
shld ax, sp, 0x1b
mov r10d, dword [rsp + 0x90]
shr r11b, 0xd2
test r15b, r12b
neg r10d
rdtsc
cmc
rol r10d, 1
add r10d, 0x7f127262
lahf
rol r10d, 3
lea r10, [r10 + rcx]
movabs rdx, 0x100000000
sar r11b, 0x12
lea r10, [r10 + rdx]
cwde
cwd
ror r11w, cl
mov rbx, rsp
sub rsp, 0x180
shl ah, cl
movsx r8w, al
movsx r11, si
and rsp, 0xfffffffffffffff0
cwde
shld r11w, dx, 0x26
mov r8, r10
movabs rdx, 0
cdqe
sub r8, rdx
add r11b, 0x2d
not ah
bsf r11, rcx
lea r11, [0x142902fb6]
mov eax, dword [r10]
add r10, 4
cmp r12b, 0x48
stc
xor eax, r8d
stc
clc
rol eax, 3
sub eax, 0x7cc064bb
cmp r10, rdx
jmp 0x14285c080
inc eax
push r8
xor dword [rsp], eax
btc r8w, r11w
pop r8
cmp sp, 0x4167
movsxd rax, eax
cmc
clc
add r11, rax
jmp 0x142935dda
push r11
ret
push rcx
push r9
movzx ecx, ax
movzx rcx, r10w
push rsi
movsxd rcx, r15d
movzx cx, r8b
push rbx
push rdi
setno bl
movzx ebx, r8w
push r10
setbe bl
mov r10b, 0x87
bswap r10w
push rdx
jmp 0x142902ee4
Function at 0x140006140
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x1400061a4
mov rdx, rax
call fcn.1400250f0
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x1400061bc
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400061c2
mov r14, rdi
mov rcx, rdi
lea r13, [rax + rcx]
cmp rdi, r13
je 0x1400062c1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140006266
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000624d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140006242
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000625c
mov rcx, rbx
call fcn.140025240
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140006210
inc r14
cmp r14, r13
jne 0x1400061e0
cmp r15d, 0xfffffffa
jle 0x1400062c1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400062b9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400062ae
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400062c1
mov rcx, rbx
call fcn.140025240
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140006309
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400062f5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400062ed
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140006300
mov r9b, 0x3d
mov rcx, rbx
call fcn.140025240
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400062d0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140007030
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400070a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140007070
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005e370
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400070d0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000713f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140007110
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005e370
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140007170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140007030
test rax, rax
jne 0x140007190
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x1400071a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400071a5
xor al, al
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
lea rsi, [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400071e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400071c0
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret
Function at 0x1400077f0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140007828
cmp ax, 0x17
jne 0x14000789d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14000789d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140007882
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001bf80
mov al, 1
jmp 0x14000789f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14005e370
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140007915
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400077f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005e370
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x1400078c0