joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d4cc
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.1400e78c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14010d556
cmp byte [rbp - 0x21], r15b
je 0x14010d551
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14010d58c
call fcn.1400fba84
test eax, eax
jne 0x14010d578
cmp byte [rbp - 0x21], r15b
je 0x14010d570
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14010d58c
cmp byte [rbp - 0x21], r15b
je 0x14010d589
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.1400f0f10
test eax, eax
jne 0x14010d62c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e78c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14010d5cb
cmp byte [rbp - 0x21], r15b
je 0x14010d600
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14010d600
call fcn.1400fba84
test eax, eax
jne 0x14010d5ec
cmp byte [rbp - 0x21], r15b
je 0x14010d5e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14010d600
cmp byte [rbp - 0x21], r15b
je 0x14010d5fd
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.1400f0f10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14010d62c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14010d62f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14010d63d
mov rcx, rdi
call fcn.1400fb780
cmp byte [rbp + 0x3f], r15b
je 0x14010d64c
mov rcx, qword [rbp + 0x27]
call fcn.1400fb780
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 0x14010e3b0
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.14010095c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010095c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010e500
cmp rax, 0xffffffffffffffff
je 0x14010e500
xor edi, edi
test rbp, rbp
jle 0x14010e4ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400fb708
mov rbx, rax
test rax, rax
jne 0x14010e438
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010e4a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400f8fd4
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.1400fcf54
cmp eax, 0xffffffff
je 0x14010e481
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010e448
mov edx, r15d
mov ecx, r14d
call fcn.1400f8fd4
jmp 0x14010e4a1
cmp byte [rsi + 0x38], dil
je 0x14010e498
cmp dword [rsi + 0x34], 5
jne 0x14010e498
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14010e4a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400fb780
jmp 0x14010e514
jns 0x14010e514
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010095c
cmp rax, 0xffffffffffffffff
jne 0x14010e4cc
cmp byte [rsi + 0x30], dil
je 0x14010e514
mov edi, dword [rsi + 0x2c]
jmp 0x14010e514
mov ecx, r14d
call fcn.140106cd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010e514
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 0x14010e514
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010e50d
mov eax, dword [rsi + 0x2c]
jmp 0x14010e512
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010095c
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 0x14010f4b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14010f4d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14010f4d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1402d2748
Capabilities:
Authenticate hmac

Disassembly:
xor r8w, di
sal dl, 2
add r8w, 0x379f
or rdx, rdx
dec dx
ror r8w, 1
sub r8w, 0xd6a7
lea rdx, [rdx*8 + 0x27b2beb6]
xor rdx, rdx
shr edx, 0x44
ror r8w, 1
shr edx, 0xb4
xor r8w, 0x702d
neg dl
jp 0x1402eee5d
mov rsi, rdi
call fcn.1402af9fa
neg dl
mov qword [rsp + rbp*2 - 0x780a8dd0], rbp
rol bp, 9
add dl, 0xbb
neg dl
rol byte [rsp + rbp - 0x3c05d08d], 0x64
xor r9b, dl
pop rbp
jmp 0x1402ecca3
rol r8w, 1
sar dl, 0xa3
xor di, r8w
add r8, rsp
xor rdx, qword [rdx + r8]
jmp 0x1402d5ebb
push r10
push rbp
call fcn.1402b0dc0
mov edx, 0x313cd51d
lea r10, [r10 + rdx*2 - 0x6279aa3c]
movsx r8d, dx
not dl
movzx r8d, word [r10 + rdx*2 - 0x6279abc4]
lea rdx, [rdx + rdx*2 - 0x15231e1]
jmp 0x1402c91f3
adc r8w, 0xd586
rol dl, 0xc1
sar rdx, 0x5c
jae 0x1402da568
Function at 0x1015bb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1015bbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1015bcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1015bb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1015be5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1015bd2
sub eax, 3
jb 0x1015bff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1015c36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1015c26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1015c24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1015c13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.01015b72
jmp 0x1015bbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xca00
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1015c82
cmp rsi, rcx
jae 0x1015c8a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1015c69
cmp al, 0x8f
ja 0x1015c69
cmp byte [rsi - 2], 0xf
je 0x1015c6f
sub al, 0xe8
cmp al, 1
ja 0x1015c53
cmp rsi, rcx
jae 0x1015c8a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1015c59
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1015c8a
lodsb al, byte [rsi]
jmp 0x1015c69
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13000]
mov eax, dword [rdi]
or eax, eax
je 0x1015cf3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x15764]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1015c97
jns 0x1015ccc
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1015cd6
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1015ced
mov qword [rbx], rax
add rbx, 8
jmp 0x1015cb7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1015d2d
cmp al, 0xef
ja 0x1015d1f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1015cff
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1015d0e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1015d81
sub rsp, 0xffffffffffffff80
jmp 0x100a67c
Function at 0x140027db0
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.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
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.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
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 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
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 0x14013cdce
Capabilities:
Encode data using xor

Disassembly:
pop rdi
push 0xffffffffc9889838
not eax
push 0xffffffffa215cb2b
call fcn.14013375c
mov r9, qword [r9]
push 0x5214b901
lea rsp, [rsp + 8]
jmp fcn.140155573
lea rsp, [rsp + 0x10]
je 0x140138458
mov r9d, 0xb3850e30
push rdi
lea r9, [0x1401448a0]
mov edi, 0xa69ba78b
push rdi
movzx edi, byte [rbx]
xor edi, eax
push 0x1d1e21ba
rol qword [rsp + 7], 0x13
and edi, 0xff
mov edi, dword [r9 + rdi*4]
shr eax, 8
xor byte [rsp + 0xc], 0xb4
xor eax, edi
inc rbx
xor eax, 0xdc937f21
dec qword [rsp + 8]
dec rcx
lea rsp, [rsp + 0x10]
jne 0x14013cde7
mov edi, 0x772f5e3b
lea rdi, [rdi*4 - 0x417018df]
jmp 0x140138457
Function at 0x140001ca0
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 fcn.140002ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002ae0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001e40
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001de5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d40
mov rcx, rbx
call fcn.140002780
mov rdi, rax
test rax, rax
je 0x140001e62
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400028c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001dde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001df0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001ca0
nop dword [rax]
xor esi, esi
jmp 0x140001d68
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001ca0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001ca0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000244c
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 0x140002443
test eax, eax
jne 0x140002443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002428
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 0x140002780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027fd
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 0x1400027f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027a0
add rax, 0x28
cmp rax, r9
jne 0x1400027e0
xor eax, eax
ret

Function at 0x140002800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000281f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002828
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000281f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400028df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180c792c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180c79447
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180c792f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c792d7
add dl, dl
jne 0x180c792fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c7935e
xor eax, eax
add dl, dl
jne 0x180c7930d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c79415
add dl, dl
jne 0x180c7931e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c7932b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c79338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c79345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180c79352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180c792e6
mov eax, 1
add dl, dl
jne 0x180c7936e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c7937b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c79363
sub eax, ebx
mov ebx, 1
jne 0x180c793b4
mov ecx, 1
add dl, dl
jne 0x180c79396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c793a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c7938b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c792e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180c793d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c793dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c793c5
cmp eax, 0x7d00
jae 0x180c79403
cmp eax, 0x500
jb 0x180c793fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c792e6
cmp eax, 0x7f
ja 0x180c79406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c792e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180c7943a
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 0x180c792e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rsp
cwde
lodsd eax, dword [rsi]
retf
Function at 0x14013f8ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x351e7c90
and r9d, 0xff
jmp 0x14013c348
jmp fcn.140132e99
not ebx
jmp 0x1401615e5
mov r9d, dword [rcx + r9*4]
call fcn.140163410
add r8, 0xc
xor ebx, ebx
test rax, rax
lea rsp, [rsp + 8]
je 0x14013913e
lea rcx, [0x14016c2e0]
mov r9d, 0xbdb0f69e
movzx r9d, byte [r10]
xor r9d, ebx
jmp 0x14012ef7c
jmp 0x140134ed5
mov dword [r8], ebx
jmp 0x140171417
jmp 0x14015d1ab
Function at 0x140001080
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x37853f20
call fcn.140001898
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400010c0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x7c2b67ad
call fcn.140001898
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001100
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x20b82624
call fcn.140001898
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140001724
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, dword [rcx + 0x3c]
mov r9, rcx
mov rbp, rdx
mov r8d, dword [r15 + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov r11d, dword [r8 + 0x20]
add rsi, rcx
mov r14d, dword [r8 + 0x24]
add r11, rcx
add r14, rcx
xor ecx, ecx
cmp rdx, 0x10000
jae 0x140001798
mov r10d, dword [r8 + 0x10]
movzx edx, bp
cmp edx, r10d
jb 0x140001891
mov ecx, dword [r8 + 0x14]
add ecx, r10d
cmp edx, ecx
jae 0x140001891
sub edx, r10d
mov ecx, dword [rsi + rdx*4]
jmp 0x1400017d9
xor eax, eax
cmp dword [r8 + 0x18], eax
jbe 0x1400017dc
mov r10d, dword [r11]
mov rdx, rbp
add r10, r9
sub r10, rbp
movzx ebx, byte [rdx]
movzx edi, byte [rdx + r10]
sub ebx, edi
jne 0x1400017bf
inc rdx
test edi, edi
jne 0x1400017ac
test ebx, ebx
je 0x1400017d1
inc eax
add r11, 4
cmp eax, dword [r8 + 0x18]
jb 0x1400017a0
jmp 0x1400017dc
movzx ecx, word [r14 + rax*2]
mov ecx, dword [rsi + rcx*4]
add rcx, r9
cmp rcx, r8
jb 0x140001875
mov eax, dword [r15 + r9 + 0x8c]
lea rdx, [rax + rax*4]
lea rax, [r8 + rdx*8]
cmp rcx, rax
jae 0x140001875
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rbx, rax
test rax, rax
je 0x140001891
mov edx, 0x2e
mov rcx, rax
call fcn.140001e88
mov rdi, rax
mov byte [rax], 0
mov rax, qword [0x140007068]
test rax, rax
jne 0x140001851
lea rcx, str.KERNEL32.DLL
call fcn.1400016c0
mov rcx, rax
lea rdx, [0x140004410]
call fcn.140001724
mov qword [0x140007068], rax
test rax, rax
je 0x140001891
mov rcx, rbx
call rax
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test rsi, rsi
je 0x140001891
lea rdx, [rdi + 1]
mov rcx, rsi
call fcn.140001724
mov rcx, rax
mov rax, rcx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x140001878

Function at 0x1400018dc
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x479a4d5e
cmp byte [rcx], r9b
je 0x140001906
movzx ecx, word [rcx]
mov edx, eax
ror edx, 8
inc r9d
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x1400018ec
ret