joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b7c0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.18001b650
test eax, eax
jne 0x18001b807
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18001b87e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18001b866
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001b85a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18001b4a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18001b820
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18001b8a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180095a60]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001b913
mov eax, 0xa
jmp 0x18001b9a6
test esi, esi
je 0x18001b935
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18001b958
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18001b958
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18001b951
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18001b958
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800264d0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001b9d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180095a6c]
mov ebx, edi
test ecx, ecx
je 0x18001bb83
mov rax, qword [0x180095a60]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18001ba20
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001ba00
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18001bb83
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.18001b650
test eax, eax
jne 0x18001ba4e
mov eax, 9
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x70], r13
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x18001bad3
test r13d, r13d
je 0x18001bad3
mov qword [rsp + 0x38], r14
mov r14, r12
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18001babf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
mov edx, 0xffffffff
mov rcx, rbp
setne r8b
call fcn.18001b4a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
sub r15, 1
jne 0x18001ba81
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x180095a6c]
cmp ebx, r8d
jae 0x18001bb18
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180095a60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18001bb11
mov edx, esi
mov ecx, ebx
call fcn.18001b8a0
mov edi, eax
test eax, eax
jne 0x18001bb18
mov r8d, dword [0x180095a6c]
inc ebx
cmp ebx, r8d
jb 0x18001bae0
test r12, r12
je 0x18001bb74
test r13d, r13d
je 0x18001bb62
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001bb58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x18001bb30
mov rcx, qword [0x1800958d0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001bf10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800958c8], ebp
je 0x18001bf67
cmp rbx, 0x20
jae 0x18001bf50
xor ecx, ecx
jmp 0x18001bf52
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800958c8], ebp
jne 0x18001bf46
cmp qword [0x1800958d0], r15
je 0x18001c061
test rdi, rdi
jne 0x18001bf87
mov ecx, esi
call fcn.18001b9d0
mov edi, eax
jmp 0x18001c066
mov ecx, dword [0x180095a6c]
mov ebx, r15d
test ecx, ecx
je 0x18001bfaf
mov rdx, qword [0x180095a60]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18001bfb9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001bfa0
mov edi, 4
jmp 0x18001c066
cmp ebx, 0xffffffff
je 0x18001bfaf
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18001c058
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18001b7c0
mov edi, eax
test eax, eax
jne 0x18001c066
mov edx, esi
mov ecx, ebx
call fcn.18001b8a0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18001c066
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001c042
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001c038
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18001c010
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800958d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c066
neg esi
sbb edi, edi
add edi, 6
jmp 0x18001c066
mov edi, 2
xchg dword [0x1800958c8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x18001cdc0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x88], rcx
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x28], rbx
xor r8d, r8d
lea rdx, [0x180084ef0]
lea rcx, [0x180094450]
call fcn.180013a20
mov ecx, 3
call fcn.180027990
call fcn.180027880
mov rsi, rax
test rax, rax
je 0x18001cf7f
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b890
lea rdx, str.Content_Type:_application_json
xor ecx, ecx
call fcn.180027d10
mov r8, rax
mov edx, 0x2727
mov rcx, rsi
call fcn.18002b890
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx + 0x2f]
mov rcx, rsi
call fcn.18002b890
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.18002b890
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18001ce89
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, rsi
call fcn.18002b890
mov edx, Ordinal_50
lea r8d, [rdx - 0x2e]
mov rcx, rsi
call fcn.18002b890
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001ceb4
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.18002b890
lea r8, [0x18001cd20]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.18002b890
mov rcx, rsi
call fcn.180027940
test eax, eax
je 0x18001cf77
mov ecx, eax
call fcn.180028710
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180006740
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.18001ca80
nop
mov r8, rax
lea rdx, [0x180087358]
lea rcx, [rsp + 0x48]
call fcn.180013d60
mov rcx, rax
call fcn.1800022b0
mov qword [0x1800958e0], rax
lea rcx, [rsp + 0x48]
call fcn.180002310
nop
lea rcx, [rsp + 0x68]
call fcn.180002310
nop
lea rcx, [rsp + 0x28]
call fcn.1800066e0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800958d8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rsi
call fcn.180027870
call fcn.180027950
lea rdx, [0x180094450]
mov rcx, rbp
call fcn.180006780
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18001cfce
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18001cfc9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d050
mov rcx, r8
call fcn.1800269cc
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001d017
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d012
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d057
mov rcx, r8
call fcn.1800269cc
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbp
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800264d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18001d6b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x90], rdx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
mov ecx, 3
call fcn.180027990
call fcn.180027880
mov rdi, rax
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b890
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001d72f
mov r8, qword [rbx]
mov edx, 0x2712
mov rcx, rdi
call fcn.18002b890
xor r8d, r8d
lea edx, [r8 + 0x29]
mov rcx, rdi
call fcn.18002b890
lea r8, [0x18001d060]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.18002b890
lea r8, [rsp + 0x80]
mov edx, 0x2711
mov rcx, rdi
call fcn.18002b890
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.18002b890
xor r8d, r8d
lea edx, [r8 + 0x2b]
mov rcx, rdi
call fcn.18002b890
lea r8, [0x18001d0f0]
mov edx, 0x4e58
mov rcx, rdi
call fcn.18002b890
lea r8, [0x1800958e8]
mov edx, 0x2749
mov rcx, rdi
call fcn.18002b890
mov edx, reloc.WS2_32.dll_listen
mov r8d, 0xc350
mov rcx, rdi
call fcn.18002b890
lea r8, str.libcurl_agent_1.0
mov edx, 0x2722
mov rcx, rdi
call fcn.18002b890
mov rcx, rdi
call fcn.180027940
test eax, eax
je 0x18001d885
mov ecx, eax
call fcn.180028710
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180006740
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18001ca80
nop
mov r8, rax
lea rdx, str.Error:
lea rcx, [rsp + 0x40]
call fcn.180013d60
mov rcx, rax
call fcn.1800022b0
mov qword [0x1800958e0], rax
lea rcx, [rsp + 0x40]
call fcn.180002310
nop
lea rcx, [rsp + 0x60]
call fcn.180002310
nop
lea rcx, [rsp + 0x20]
call fcn.1800066e0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800958d8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
call fcn.180027870
call fcn.180027950
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001d8d3
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d8ce
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d90e
mov rcx, r8
call fcn.1800269cc
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800264d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x18001daa0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 3
nop dword [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x18001dab0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180022b50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x180022b5b
xor eax, eax
ret
lea r11, [0x180083340]
not ecx
cmp r8d, 8
jb 0x180022c31
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x180022b80
test r8d, r8d
je 0x180022c5d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x180022c40
not ecx
mov eax, ecx
ret

Function at 0x1800235b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10d, edx
mov rdi, r9
imul r10d, r8d
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x180023608
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180023602
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x18002363e
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800264d0
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180023660
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x70], rbp
mov rbx, rcx
mov qword [rsp + 0x78], rsi
mov esi, 1
je 0x1800236c3
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x34]
mov r8d, esi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800236bd
mov byte [rdi], sil
mov ebp, dword [rsp + 0x34]
jmp 0x1800236f4
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x1800236d4
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
mov ebp, esi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x78]
cmp ebp, 1
mov rbp, qword [rsp + 0x70]
jne 0x180023723
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800264d0
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x18002370b
cmp byte [rdi], 0
je 0x18002370b
mov eax, 0xffffffff
jmp 0x18002370d
Function at 0x1800248b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x180024ab7
cmp dword [rcx + 0x1c], 0
je 0x180024ab7
cmp qword [rcx + 0x80], 0
je 0x1800248df
call fcn.180024e50
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.180024460
test eax, eax
je 0x180024906
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x18002492d
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x180024975
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x1800249c4
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.180022ee0
test eax, eax
jne 0x1800249c4
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x1800249f0
movzx eax, byte [rdi + 0x3d]
jmp 0x1800249f4
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x180024a8b
lea r8, [0x180083340]
movzx eax, byte [rsi]
test al, al
je 0x180024a8b
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x180024a31
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1800257b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov rbp, rcx
mov ecx, 0x458
call fcn.180026610
mov rsi, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0x458
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
mov qword [rsi], r15
mov rdi, 0xffffffffffffffff
mov dword [rsi + 8], edi
mov dword [rsi + 0x23c], edi
mov qword [rsi + 0x240], r15
mov qword [rsi + 0x248], r15
test rbx, rbx
je 0x18002584e
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x180025820
inc rcx
call fcn.180026a00
mov qword [rsi + 0x240], rax
sub rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov byte [rax + rbx], cl
lea rbx, [rbx + 1]
test cl, cl
jne 0x180025840
cmp qword [rsi], 0
jne 0x180025975
cmp dword [rsi + 8], 0xffffffff
jne 0x180025975
lea rdx, [rsi + 0x250]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax]
nop dword [rax + rax]
lea rdi, [rdi + 1]
cmp word [rsi + rdi*2 + 0x250], 0
jne 0x180025880
movzx eax, word [rsi + rdi*2 + 0x24e]
cmp ax, 0x5c
je 0x1800258ae
cmp ax, 0x2f
je 0x1800258ae
mov dword [rsi + rdi*2 + 0x250], gethostname
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18002596e
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, Ordinal_50
call fcn.180026610
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], rbp
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], r15d
cmp edi, 0xffffffff
je 0x180025941
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.180023910
mov qword [rsi], rax
test rax, rax
je 0x18002596e
mov dword [0x1800958f0], r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.180026610
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1800259bf
mov eax, 0x200
jmp 0x18002597a
mov eax, 0x1000000
mov dword [0x1800958f0], eax
mov rcx, qword [rsi + 0x240]
test rcx, rcx
je 0x180025991
call fcn.1800269cc
mov qword [rsi + 0x240], r15
mov rcx, qword [rsi + 0x248]
test rcx, rcx
je 0x1800259a9
call fcn.1800269cc
mov qword [rsi + 0x248], r15
mov edx, 0x458
mov rcx, rsi
call fcn.1800269cc
xor eax, eax
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