joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400385b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003863f
mov rsi, rbx
cmp word [rax], bp
je 0x1400385fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400385e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400385e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009270
mov rdi, rax
test rax, rax
je 0x14003862c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140019d40
mov rbp, rdi
xor ecx, ecx
call fcn.14000fc60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003b2d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003b2ea
mov al, 1
jmp 0x14003b34a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003b2fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003b348
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025bfc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b348
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003b348
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003b348
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003b34a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005f3f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x14005f403
cmp dword [0x1400912d0], ecx
jle 0x14005f40a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.14005f450
test edi, edi
je 0x14005f403
cmp byte [rsi + rdi - 1], 0xa
je 0x14005f403
lea rcx, str._nl_
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14005f450

Function at 0x14005f450
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14007c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14005f4c7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x14005f4c7
add rdi, rax
test ecx, ecx
jne 0x14005f48d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017c70
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140421980
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11d, dword [rcx]
mov rsi, r8
mov ebx, dword [rcx + 4]
mov rdi, rdx
movsxd rbp, r9d
mov r10, rcx
test r9d, r9d
jle 0x1404219e7
sub rdi, r8
inc r11b
movzx r11d, r11b
mov r8b, byte [r11 + r10 + 8]
add bl, r8b
movzx ebx, bl
mov cl, byte [rbx + r10 + 8]
mov byte [r11 + r10 + 8], cl
add cl, r8b
mov byte [rbx + r10 + 8], r8b
movzx eax, cl
mov cl, byte [rax + r10 + 8]
xor cl, byte [rdi + rsi]
mov byte [rsi], cl
inc rsi
sub rbp, 1
jne 0x1404219ad
mov rbp, qword [rsp + 0x10]
mov eax, r9d
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r10 + 4], ebx
mov rbx, qword [rsp + 8]
mov dword [r10], r11d
ret
Function at 0x140421d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x140421de3
xor eax, eax
jmp 0x140421f35
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0xffffffff
mov rax, qword [rsp + 0x88]
and rax, 0xffffffffffff0000
test rax, rax
jne 0x140421e34
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140421ee7
mov dword [rsp + 0x28], 0xffffffff
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x140421e6b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140421eb3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.1404224a8
test eax, eax
jne 0x140421eb1
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x140421eb3
jmp 0x140421e61
cmp dword [rsp + 0x28], 0
jl 0x140421ee7
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140421efc
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jb 0x140421f00
xor eax, eax
jmp 0x140421f35
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
add rsp, 0x78
ret
Function at 0x140003f30
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 0x140003f8d
lea rbx, [0x14014dc40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003f74
cmp r10, 2
jb 0x140003f74
cmp byte [r9], r8b
jne 0x140003f74
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 0x140003f50
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140003fcf
lea rbx, [0x14014dc40]
cmp r8b, 0x23
jne 0x140003fb3
cmp byte [r9], r8b
jne 0x140003fb3
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 0x140003fa0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004190
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1400041bf
mov r8d, 0x7d4
lea rdx, str.D:DarkPanelV2BLUE_CONTIEXLUimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x1400041cb
mov qword [rdi], 0
lea rdx, [0x14014d468]
mov rcx, rbx
call fcn.140003fe0
mov rbx, rax
test rax, rax
jne 0x1400041ed
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400042c4
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 0x1400042c4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400042c4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400042c4
cmp rsi, 0xffffffffffffffff
je 0x1400042c4
mov rax, qword [0x14023f910]
test rax, rax
je 0x140004261
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1400042c4
mov r9, rbx
mov r8, rsi
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, rsi
je 0x1400042b1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14023f910]
test rax, rax
je 0x1400042a6
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400042cd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1400042bf
mov qword [rdi], rsi
mov rax, rbp
jmp 0x1400042cf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007a10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xf0], 0
mov rsi, rcx
movsxd rdi, edx
jg 0x140007a4c
mov r8d, 0x712
lea rdx, str.D:DarkPanelV2BLUE_CONTIEXLUimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0xf8]
lea rdx, [0x14014dc40]
movsxd r8, dword [rsi + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [rsi]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140007ac7
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001f130
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400172a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14023f910]
mov edi, ecx
cmp byte [rbx + 0x4a75], 0
jne 0x1400172f2
cmp byte [rbx + 0x4a76], 0
jne 0x1400172f2
movsx r9d, word [rbx + 0x5b9a]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.140003d90
test dil, 1
je 0x14001741f
jmp 0x14001737b
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140157558]
xor eax, eax
mulss xmm1, dword [0x140157540]
addss xmm0, dword [rbx + 0xe08]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47c0], rax
mov dword [rbx + 0x47ac], 1
movss dword [rbx + 0x47b8], xmm0
movss dword [rbx + 0x47bc], xmm1
movss xmm0, dword [rbx + 0x38f8]
mulss xmm0, dword [0x1401574a8]
or dword [rbx + 0x47a8], 0x41
movss dword [rbx + 0x4808], xmm0
movsx r9d, word [rbx + 0x5b9a]
call fcn.140003d90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400173d0
lea r11, [0x14014dc40]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400173b3
cmp byte [r8], r9b
jne 0x1400173b3
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 0x1400173a0
not ecx
call fcn.14000be20
test rax, rax
je 0x14001741f
cmp byte [rax + 0xb6], 0
je 0x14001741f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5b9a]
movsx r9d, word [rbx + 0x5b9a]
call fcn.140003d90
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000eb90
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001d740
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 + 0x5c80], 0
lea rbx, [rcx + 0x5c88]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001d7e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001d79a
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.14001ffc0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140004720
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c80]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c90]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14023f908]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001d7ef
mov rcx, rbx
call fcn.140004720
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001dcb0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x14023f910]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x14001dd14
lea r10, [0x14014dc40]
cmp r8b, 0x23
jne 0x14001dcf7
cmp byte [rdx], r8b
jne 0x14001dcf7
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001dce4
mov eax, dword [r14 + 0x5bf8]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x14001dd75
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x14001dd3a
cmp edi, eax
jl 0x14001dd54
mov r8d, 0x709
lea rdx, str.D:DarkPanelV2BLUE_CONTIEXLUimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 0x5c00]
cmp dword [rax + rbp + 8], ebx
je 0x14001dd92
mov eax, dword [r14 + 0x5bf8]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x14001dd31
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x14001dd9f
cmp edi, dword [r14 + 0x5bf8]
jl 0x14001ddb9
mov r8d, 0x709
lea rdx, str.D:DarkPanelV2BLUE_CONTIEXLUimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x5c00]
lea rax, [rax + rcx*8]
jmp 0x14001dd77
Function at 0x14003e3e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x320
mov rbp, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003e417
xor eax, eax
jmp 0x14003e56d
mov dword [rsp + 0xe0], 0x238
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14003e562
lea rdx, [rsp + 0x10c]
lea rcx, [rsp + 0x20]
call fcn.1400469d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400466e0
nop
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140046e80
nop
lea rcx, [rsp + 0x60]
call fcn.1400465f0
lea rdx, [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
setae r10b
mov r8, qword [rsp + 0x40]
cmovae rdx, r8
mov rax, rbp
sub rdx, rbp
nop
movzx ebx, byte [rax]
movzx ecx, byte [rax + rdx]
sub ebx, ecx
jne 0x14003e4c2
inc rax
test ecx, ecx
jne 0x14003e4b0
test r10b, r10b
je 0x14003e4f5
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x14003e4ec
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e54d
mov rcx, r8
call fcn.140119ee4
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003e533
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e52e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e554
call fcn.140119ee4
test ebx, ebx
je 0x14003e55b
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14003e433
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
mov esi, dword [rsp + 0xe8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003ebd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rcx, qword [0x14016f0d0]
cmp rcx, 0xffffffffffffffff
je 0x14003ec7e
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14003ec1c
mov rcx, qword [0x14016f0d0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [0x14016f0d0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14003ec4d
mov rcx, qword [0x14016f0d0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [0x14016f0d0]
lea rdx, [rsp + 0x38]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14003ec7e
mov rcx, qword [0x14016f0d0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x28
ret
Function at 0x14003f7c0
Capabilities:
Create process on windows
Delete file
Download url
Receive data

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
xor r14d, r14d
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
mov r8, rdx
jb 0x14003f7e4
mov r8, qword [rdx]
cmp qword [rcx + 0x18], 0x10
jb 0x14003f7ee
mov rcx, qword [rcx]
mov rdx, rcx
mov qword [rsp + 0x20], r14
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x14003f95f
xorps xmm0, xmm0
mov qword [rsp + 0xe8], rsi
movups xmmword [rbp - 0x29], xmm0
lea rax, str.runas
mov qword [rsp + 0xf0], rdi
mov rdi, qword [rbx + 0x10]
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x19], rax
mov eax, 2
movups xmmword [rbp - 9], xmm0
lea rcx, [rdi + 1]
mov dword [rbp - 0x29], reloc.WS2_32.dll_WSASetLastError
mul rcx
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov rcx, 0xffffffffffffffff
mov dword [rbp - 0x25], 0x40
movups xmmword [rbp + 0x27], xmm0
cmovo rax, rcx
mov qword [rbp - 0x21], r14
mov rcx, rax
movups xmmword [rbp + 0x37], xmm0
call fcn.140119f88
cmp qword [rbx + 0x18], 0x10
mov rsi, rax
mov rdx, rbx
jb 0x14003f888
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rdx, rsi
mov word [rsi + rdi*2], r14w
lea rcx, [rbp - 0x49]
call fcn.1400469d0
mov rcx, rsi
call fcn.140119ee4
cmp qword [rbp - 0x31], 8
lea rax, [rbp - 0x49]
xorps xmm0, xmm0
mov dword [rbp + 7], 1
cmovae rax, qword [rbp - 0x49]
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x11], rax
movdqa xmmword [rbp - 9], xmm0
mov qword [rbp + 0xf], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
test eax, eax
je 0x14003f909
mov rcx, qword [rbp + 0x3f]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 0x10
jb 0x14003f913
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14003f95f
mov rcx, qword [rbp - 0x49]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f95a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f95a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140119ee4
add rsp, 0xc0
pop r14
pop rbx
pop rbp
ret
Function at 0x1400461b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140046343
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140046343
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x140046249
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140046367
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14004625f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x14004625f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140046272
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x1400462bd
mov r9d, eax
cmp eax, 0x800
jae 0x14004628c
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x1400462bd
cmp eax, 0x10000
jae 0x1400462a6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x1400462bd
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140046343
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x1400462e1
cmp r10d, 3
jae 0x1400462ed
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14004631e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140046300
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x1400461fe
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140046352