joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ccb40
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov dword [rcx + 8], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400ccb9f
mov dword [rdi + 8], 0x3e9
lea r8, [rsp + 0x40]
mov edx, 0x20
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400ccbbd
mov dword [rdi + 8], 0x3ea
mov r8d, 0x20
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x10]
call fcn.1400ccaa0
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x100
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x10]
call fcn.1400cc9c0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14012e750
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x1400cd340
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1400cd51d
push rbx
push rbp
push r14
sub rsp, 0x20
mov qword [rsp + 0x40], rsi
mov ebp, r8d
mov qword [rsp + 0x48], rdi
mov r14, rdx
mov qword [rsp + 0x50], r12
mov rbx, rcx
mov qword [rsp + 0x58], r15
xor r12d, r12d
lea r15, str._.C
nop dword [rax + rax]
mov ecx, dword [rbx + 0x38]
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rbx + 0x38]
mov esi, ebp
cmp eax, ebp
mov rdx, r14
cmovb esi, eax
add rcx, qword [rbx + 0x30]
mov r8d, esi
mov edi, esi
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx + 0x38], esi
add r14, rdi
sub ebp, esi
cmp dword [rbx + 0x38], 0x10
jne 0x1400cd4f9
mov rax, qword [rbx + 0x30]
mov r11d, r12d
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x38], r12d
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbx + 0x20]
movzx edi, byte [rax + 0xf]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rbx + 0x10]
lea r8d, [r11 + 0x20]
mov r10d, r11d
lea eax, [r8 - 0x10]
inc r11d
movzx edx, byte [rax + r9]
xor dl, byte [r10 + r9]
mov byte [r8 + r9], dl
mov rax, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x20]
movzx ecx, byte [r10 + rax]
movzx eax, dil
xor rcx, rax
movzx eax, byte [rcx + r15]
xor byte [rdx + r10], al
movzx edi, byte [rdx + r10]
cmp r11d, 0x10
jl 0x1400cd3e0
xor r8b, r8b
mov r9d, r12d
nop dword [rax]
mov r10d, 2
lea r11d, [r10 + 4]
nop word [rax + rax]
movzx eax, r8b
lea edx, [r10 - 2]
add rdx, qword [rbx + 0x10]
movzx eax, byte [rax + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 - 1]
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
mov edx, r10d
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 + 1]
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 + 2]
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 + 3]
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 + 4]
add rdx, qword [rbx + 0x10]
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
lea edx, [r10 + 5]
add rdx, qword [rbx + 0x10]
add r10d, 8
movzx eax, byte [r8 + r15]
xor byte [rdx], al
movzx r8d, byte [rdx]
sub r11, 1
jne 0x1400cd440
add r8b, r9b
inc r9d
cmp r9d, 0x12
jl 0x1400cd430
test ebp, ebp
jne 0x1400cd380
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x1400ced70
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400ced80
dec rax
mov qword [rsp + 0x38], rsi
add rax, rdi
cmp rax, rdi
jb 0x1400cedbe
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, 0x5c
je 0x1400cedbe
cmp cl, 0x2f
je 0x1400cedbe
cmp cl, 0x3a
je 0x1400cee65
dec rax
cmp rax, rdi
jae 0x1400ceda0
mov rcx, rdi
call fcn.14007ede0
add rdi, rax
mov edx, 0x2e
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r9, rax
test rax, rax
jne 0x1400cedea
mov rcx, rdi
call fcn.140084420
mov r9, rax
cmp rdi, r9
je 0x1400cee58
mov eax, r9d
sub eax, edi
cmp eax, 6
ja 0x1400cee58
mov rax, qword [str.CLOCK_]
lea r10, str.CLOCK_
test rax, rax
je 0x1400cee58
mov r11, qword [0x140440d00]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rax]
mov rdx, rdi
movzx ecx, byte [rdx]
cmp r8b, byte [rcx + r11]
jne 0x1400cee4b
inc rdx
cmp rdx, r9
jne 0x1400cee3e
cmp byte [rax + 1], 0
je 0x1400ceea5
movzx r8d, byte [rax + 1]
inc rax
test r8b, r8b
jne 0x1400cee27
mov rax, qword [r10 + 8]
add r10, 8
test rax, rax
jne 0x1400cee20
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rax, rdi
cmp rax, 1
jne 0x1400ceea5
mov qword [rsp + 0x30], rbx
movsx ebx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov rbx, qword [rsp + 0x30]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x1400ceea5
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt esi, edx
jb 0x1400cedbe
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d0960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x1400d0a1c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x1400d09e0
sub eax, ebx
jmp 0x1400d09e2
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1400d09d0
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x1400d0a10
sub eax, ebx
jmp 0x1400d0a12
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x1400d0a00
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400d0a96
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1400d0df0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400d0a80
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400d0a96
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400d0980
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ec070
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 + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400ec139
cmp qword [rcx + 0x268], 0
je 0x1400ec0ee
mov qword [rsp + 0x40], rbx
call fcn.1400da2d0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400da630
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1400da630
mov rbx, qword [rsp + 0x40]
jmp 0x1400ec139
mov ecx, esi
test edx, edx
je 0x1400ec0fe
sub ecx, 1
je 0x1400ec0fe
cmp ecx, 1
jne 0x1400ec139
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1403fa6d8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
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 0x1400ee020
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 0x1400ee300
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 0x1400ee32a
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, [0x1403fa940]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
test rax, rax
je 0x1400ee389
mov rcx, rbx
test r14, r14
je 0x1400ee376
xor edx, edx
lea r8d, [rdx + 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 0x1400ee3c0
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ee3c0
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 0x1400ee48a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400ee3f0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400ee47c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400ee47c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400ee423
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x1400ee435
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400ee450
mov rcx, rsi
test r14, r14
je 0x1400ee473
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400ee479
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14012f9dc]
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 0x1400ee4f0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400ee556
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400ee539
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400ee533
shr ax, 8
cmp al, 2
je 0x1400ee556
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x1e8
ret
call fcn.14011fa20
test eax, eax
jne 0x1400ee767
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400ee596
mov qword [0x1404bcda8], rsi
jmp 0x1400ee724
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExW
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1403fa940]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
test rax, rax
je 0x1400ee5fa
mov rcx, rbx
test rbp, rbp
je 0x1400ee5ec
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x1400ee6ec
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x1400ee6ec
test rbp, rbp
je 0x1400ee629
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ee629
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1400ee6ec
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x1400ee6e4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400ee6db
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400ee6db
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400ee680
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x1400ee692
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400ee6b0
mov rcx, rdi
test rbp, rbp
je 0x1400ee6d2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400ee6d8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14012f9dc]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1404bcda8], rsi
test rsi, rsi
je 0x1400ee724
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ee724
mov qword [0x1404bcda0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14011f5d0
test al, al
lea rcx, [0x14052a168]
setne byte [0x14052a164]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x1e8
ret
Function at 0x1400f6890
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1400f68a5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400f6320
Function at 0x1400ff860
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1400dff10
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400feb70
mov rcx, rdi
mov rsi, rax
call fcn.1400feb70
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400ff910
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400dff10
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400dffa0
cmp rax, 0x3e8
ja 0x1400ff941
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400ff8c0
test rsi, rsi
je 0x1400ff91d
mov rcx, rsi
call fcn.14012f9dc
test rbx, rbx
je 0x1400ff92a
mov rcx, rbx
call fcn.14012f9dc
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400ff94e
mov rcx, rsi
call fcn.14012f9dc
test rbx, rbx
je 0x1400ff95b
mov rcx, rbx
call fcn.14012f9dc
mov eax, 1
jmp 0x1400ff92c
Function at 0x1400ffdf0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1400fff8e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1400fff6e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1400ffe5e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ffe50
inc rbx
jmp 0x1400ffe60
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400ffe6d
lea ebp, [rax + 0xe]
jmp 0x1400ffe79
cmp eax, 0x17
jne 0x1400fff11
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1400fff11
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400fff11
cmp rax, rbp
jb 0x1400fff11
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400fff20
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x1400ffefe
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1400fff0e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400ffe40
jmp 0x1400fff26
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1400fff40
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1400fff69
test rdi, rdi
je 0x1400fff65
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14012f9dc]
mov rdi, rbx
test rbx, rbx
jne 0x1400fff50
xor edi, edi
jmp 0x1400fff7d
test rdi, rdi
jne 0x1400fff7d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x1401003f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x140100426
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x140100490
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14010056b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1400e62c0
cmp eax, 4
je 0x1401004e8
mov edx, eax
jmp 0x140100515
cmp byte [0x1404bcdb4], r14b
jne 0x14010051f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x14010056d
mov eax, dword [rsp + 0x50]
jmp 0x14010053e
imul eax, dword [0x1404bcdb0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1404bcdb0], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140100562
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140100550
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1401004c0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140100580
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x14010072c
test r14b, 1
je 0x14010072c
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, 0x2b
mov qword [r11 - 0x38], r13
je 0x1401006ab
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.1400e62c0
cmp eax, 4
je 0x140100628
mov ecx, eax
jmp 0x140100655
cmp byte [0x1404bcdb4], r13b
jne 0x140100663
mov r9d, 2
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x1401006ed
mov eax, dword [rsp + 0x20]
jmp 0x140100682
imul eax, dword [0x1404bcdb0], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1404bcdb0], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x1401006a2
sub rbp, rbx
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140100690
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x140100600
mov eax, ecx
test ecx, ecx
jne 0x1401006ed
test r14, r14
je 0x1401006e8
lea rdx, [0x1403fd030]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x1401006c0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012e750
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x14010070d
Function at 0x1401034f0
Capabilities:
Query environment variable

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 r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x1400e8400.0]
mov rdi, rax
test rax, rax
je 0x14010356d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140103598
cmp ebx, esi
je 0x140103598
cmp ebx, 0x8000
ja 0x140103598
cmp ebx, esi
jb 0x140103593
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400e8400.0]
mov rdi, rax
test rax, rax
jne 0x140103530
mov rcx, rbp
call qword [fcn.14012f9dc]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140103578
mov rcx, rdi
jmp 0x140103570

Function at 0x140104d60
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140104dbf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1400ec150
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140104900
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret