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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002393c
xor eax, eax
jmp 0x1400239ff
mov rbp, rbx
cmp word [rax], si
je 0x140023961
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023948
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023944
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400217d0
movsxd r14, eax
test eax, eax
jne 0x14002399f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023935
mov rcx, r14
call fcn.14001e60c
mov rdi, rax
test rax, rax
jne 0x1400239b8
xor ecx, ecx
call fcn.14001b960
jmp 0x140023994
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400217d0
test eax, eax
jne 0x1400239e9
mov rcx, rdi
call fcn.14001b960
jmp 0x1400239f3
xor ecx, ecx
call fcn.14001b960
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140023a1c
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 0x140023aa3
mov rsi, rbx
cmp word [rax], bp
je 0x140023a62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140023a4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023a48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e60c
mov rdi, rax
test rax, rax
je 0x140023a90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b070
mov rbp, rdi
xor ecx, ecx
call fcn.14001b960
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 0x140028484
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015924
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002850e
cmp byte [rbp - 0x21], r15b
je 0x140028509
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028544
call fcn.14001fe4c
test eax, eax
jne 0x140028530
cmp byte [rbp - 0x21], r15b
je 0x140028528
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028544
cmp byte [rbp - 0x21], r15b
je 0x140028541
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140015edc
test eax, eax
jne 0x1400285e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015924
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028583
cmp byte [rbp - 0x21], r15b
je 0x1400285b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400285b8
call fcn.14001fe4c
test eax, eax
jne 0x1400285a4
cmp byte [rbp - 0x21], r15b
je 0x14002859d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400285b8
cmp byte [rbp - 0x21], r15b
je 0x1400285b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140015edc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400285e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400285e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400285f5
mov rcx, rdi
call fcn.14001b960
cmp byte [rbp + 0x3f], r15b
je 0x140028604
mov rcx, qword [rbp + 0x27]
call fcn.14001b960
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029bbc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
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, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400018c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov dword [0x14000406c], 1
mov dword [0x140004070], 1
mov dword [0x140004074], 1
mov dword [0x140004080], 1
lea rax, [0x140000000]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000190e
xor eax, eax
jmp 0x1400019ef
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x14000193b
xor eax, eax
jmp 0x1400019ef
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
mov dword [rsp], eax
cmp dword [rsp], 0x10b
je 0x14000196b
cmp dword [rsp], 0x20b
je 0x1400019a7
jmp 0x1400019ed
mov rax, qword [rsp + 0x10]
cmp dword [rax + 0x5c], 0xe
ja 0x14000197a
xor eax, eax
jmp 0x1400019ef
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x10]
cmp dword [rcx + rax + 0x60], 0
je 0x140001999
mov dword [rsp + 4], 1
jmp 0x1400019a1
mov dword [rsp + 4], 0
mov eax, dword [rsp + 4]
jmp 0x1400019ef
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x6c], 0xe
ja 0x1400019c0
xor eax, eax
jmp 0x1400019ef
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x70], 0
je 0x1400019df
mov dword [rsp + 8], 1
jmp 0x1400019e7
mov dword [rsp + 8], 0
mov eax, dword [rsp + 8]
jmp 0x1400019ef
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400025a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov eax, dword [0x1400040b0]
test eax, eax
jne 0x1400025b0
jmp 0x14000261e
lea rcx, [0x140004088]
call sub.kernel32.dll_EnterCriticalSection
mov rax, qword [0x1400040b8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140002612
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
call sub.kernel32.dll_TlsGetValue
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140002602
cmp qword [rsp + 0x28], 0
je 0x140002602
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
call rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x1400025c8
lea rcx, [0x140004088]
call sub.kernel32.dll_LeaveCriticalSection
add rsp, 0x38
ret
Function at 0x1c69b13bd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
call sym.source_malicious4.dll_calculation
movabs rax, 0x737373737373614b
movabs rdx, 0x7373737373737373
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x7373737373737373
movabs rdx, 0x7373737373737373
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov word [rbp - 0x20], 0x31
mov dword [rbp - 4], 0
jmp 0x1c69b1471
mov eax, dword [rbp - 4]
cdqe
lea rdx, sym.source_malicious4.dll_shellcode
movzx eax, byte [rax + rdx]
mov r8d, eax
mov eax, dword [rbp - 4]
movsxd rcx, eax
movabs rdx, 0xf83e0f83e0f83e1
mov rax, rcx
mul rdx
mov rax, rdx
shr rax, 1
mov rdx, rax
shl rdx, 5
add rdx, rax
mov rax, rcx
sub rax, rdx
movzx eax, byte [rbp + rax - 0x40]
xor eax, r8d
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, sym.source_malicious4.dll_shellcode
mov byte [rax + rdx], cl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 0x7fe
jbe 0x1c69b1415
mov dword [rbp - 8], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x800
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1c69b14ca
mov eax, 0xffffffff
jmp 0x1c69b150f
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x800
lea r8, sym.source_malicious4.dll_shellcode
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x1c69b1504
mov eax, 0xfffffffe
jmp 0x1c69b150f
mov rax, qword [rbp - 0x18]
call rax
mov eax, 1
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x1c69b1515
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
je 0x1c69b1593
cmp dword [rbp + 0x18], 3
ja 0x1c69b159a
cmp dword [rbp + 0x18], 2
je 0x1c69b1596
cmp dword [rbp + 0x18], 2
ja 0x1c69b159a
cmp dword [rbp + 0x18], 0
je 0x1c69b1599
cmp dword [rbp + 0x18], 1
jne 0x1c69b159a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.source_malicious4.dll_ThreadFunction]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1c69b159a
nop
jmp 0x1c69b159a
nop
jmp 0x1c69b159a
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x1c69b1750
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1c69b17c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1c69b7064]
mov rbx, rcx
test esi, esi
jle 0x1c69b18f0
mov rax, qword [0x1c69b7068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1c69b180b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1c69b1895
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1c69b17f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1c69b1912
mov rax, qword [0x1c69b7068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1c69b7068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c69b18f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1c69b188e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1c69b18a0
add dword [0x1c69b7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1c69b7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c69b188e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1c69b1818
mov rax, qword [0x1c69b7068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1c69b1c90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1c69b70a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c69b7080]
test rbx, rbx
je 0x1c69b1cec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1c69b1ce3
test eax, eax
jne 0x1c69b1ce3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c69b1cc8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1c69b1f00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1c69b1f18
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1c69b1f20
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1c69b1f30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1c69b1f7d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1c69b1f74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1c69b1f7f
add rax, 0x28
cmp rax, r9
jne 0x1c69b1f60
xor eax, eax
ret

Function at 0x1c69b1f80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1c69b2010
mov rdx, qword [0x1c69b41e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1c69b1ffe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1c69b1ffe
cmp word [rax + 0x18], 0x20b
jne 0x1c69b1ffe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1c69b2010
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1c69b1fe9
add rbx, 0x28
cmp rbx, rdi
je 0x1c69b2010
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1c69b1fe0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1c69b2020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c69b41e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c69b2040
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c69b2048
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c69b2040
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1c69b209d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1c69b2094
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1c69b2040
add rax, 0x28
cmp rax, r9
jne 0x1c69b2080
xor eax, eax
ret

Function at 0x1c69b20a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c69b41e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1c69b20bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1c69b20c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1c69b20bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1c69b20e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1c69b41e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1c69b2100
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1c69b2108
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1c69b2100
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1c69b2150
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1c69b2147
test rcx, rcx
je 0x1c69b2100
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1c69b2138
xor eax, eax
ret

Function at 0x1c69b2160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c69b41e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1c69b217f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1c69b2188
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1c69b21a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c69b41e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c69b21c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c69b21c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c69b21c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1c69b21c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1c69b2214
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1c69b2220
add rdx, 0x28
cmp rdx, r9
jne 0x1c69b2200
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1c69b2230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1c69b41e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1c69b2252
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1c69b2260
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c69b2252
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1c69b2252
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1c69b2252
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1c69b22b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1c69b22c8
add rdx, 0x28
cmp r10, rdx
jne 0x1c69b22a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1c69b22d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1c69b22e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1c69b22be
test ecx, ecx
jg 0x1c69b22d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001a3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a460
cmp r10, r11
jb 0x14001a4d6
cmp r10, rdx
ja 0x14001a4ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a462
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a440
jmp 0x14001a4c4
ja 0x14001a46a
mov r11, r10
cmp rax, r8
jne 0x14001a404
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a4a0
mov rdi, r8
sub ecx, edx
jns 0x14001a4bb
jmp 0x14001a4c6
cmp r8, rsi
je 0x14001a4fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a4c6
xor al, 1
cmp rdi, rsi
jne 0x14001a480
jmp 0x14001a4c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x141398790]
mov rcx, r11
mov rdx, r10
call fcn.140053840
ud2
lea r8, [0x141398790]
mov rcx, r10
call fcn.1400535c0
ud2
lea rcx, [0x14139ce30]
lea r8, [0x141398778]
mov edx, 0x2b
call fcn.140053640
ud2