joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e6b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
movq qword [rbp - 0x10], mm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
idiv byte [rax]
cmp rbx, 3
jb 0x1400e6c01
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1400e6c01
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1400e6c01
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1400e6cdc
cmp byte [rdx], 0xed
jne 0x1400e6ce5
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1400e6ce5
cmp rbx, 3
jb 0x1400e6c41
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x1400e6dcf
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
and eax, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x140121ab0]
cld
lodsd eax, dword [rsi]
add eax, dword [rax]
cmp rcx, 3
jbe 0x1400e6e01
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
invalid
std
jmp 0x1400e6d73
test rdi, rdi
je 0x1400e6d70
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1400e6d08
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x1400e6d70
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1400e6d00
cmp r10b, 0xe0
jb 0x1400e6cee
cmp r10b, 0xed
jne 0x1400e6d3f
cmp r8, rax
je 0x1400e6d70
lea r8, [r9 + 2]
cmp r8, rax
je 0x1400e6d70
cmp byte [r9 + 1], 0x9f
ja 0x1400e6d6c
add r9, 3
mov r8, r9
jmp 0x1400e6d00
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x1400e6d00
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1400e6d00
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1400e6da2
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.14011e3a0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1400e6d7b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.14011e3a0
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x1400e6c60
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.14011e3a0
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x1400e6cbe
Function at 0x1400e8520
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx

Function at 0x1400ea170
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov eax, dword [0x14017de08]
cmp eax, 3
jne 0x1400ea35e
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400ea384
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400ea208
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400ea2c4
inc rdx
cmp rax, rdx
jne 0x1400ea1f0
jmp 0x1400ea329
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400ea23e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400ea2c4
inc rdx
cmp rcx, rdx
jne 0x1400ea220
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400ea242
jmp case.0x1400e1816.539
lea rdx, [rdi - 0xf]
movabs r8, 0x101010101010100
movabs r9, 0x8080808080808080
nop word cs:[rax + rax]
mov rbx, rdx
call fcn.14011e640
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x1400ea1c5
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.14011e6b0
Function at 0x1400f3140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.1400e5630
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x1400f318d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x1400f31be
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.1400f3050
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x1400f3245
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400f322a
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x1400f31ee
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x1400f3217
cmp qword [rax + 0x10], 0x11
jb 0x1400f3208
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017de28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f3264
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400f3237
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x1400f3237
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400f5480
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14017dea0]
mov edx, 0x10
xor ecx, ecx
call fcn.1400f8170
test rax, rax
je 0x1400f5579
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400f56e0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400f556b
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x1400f5517
mov rcx, qword [rbp - 0x18]
call rax
mov r8, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x1400f5544
cmp qword [rax + 0x10], 0x11
jb 0x1400f5535
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017de28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140118750
ud2
Function at 0x1400fcef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov r14, rdx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400fd0c1
mov r15, qword [rcx + 8]
mov rdi, qword [rcx + 0x18]
jmp 0x1400fcf57
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0x28]
mov r8, r14
xor r9d, r9d
call fcn.140100920
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x1400fd0e8
cmp al, 2
jne 0x1400fd19e
mov r12, qword [rsp + 0x28]
jmp 0x1400fd126

Function at 0x1400fd1d0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
Function at 0x140117728
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14011e8cc
mov rbx, r8
mov r15, r8
inc r15
js 0x14011e8d8
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14017dea0]
xor ecx, ecx
mov rdx, r15
call fcn.1400f8170
test rax, rax
je 0x14011e8dd
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, 0x10
jae 0x14011e748
test rbx, rbx
je 0x14011e7ef
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14011e854
inc rax
cmp rbx, rax
jne 0x14011e730
jmp 0x14011e7ef
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x14011e7a1
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x101010101010100
movabs r8, 0x8080808080808080
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, rdx
sub r11, r10
or r11, r10
mov r10, rdx
sub r10, r9
or r10, r9
and r10, r11
not r10
test r10, r8
jne 0x14011e7cc
add rax, 0x10
cmp rax, rcx
jbe 0x14011e770
jmp 0x14011e7cc
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x14011e854
inc rcx
cmp rax, rcx
jne 0x14011e7b0
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14011e75b
cmp rax, rbx
je 0x14011e7ef
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14011e854
inc rax
cmp rbx, rax
jne 0x14011e7e0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.1400105e0
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14011e887
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14011e89b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14011e8bc
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.140119060
call fcn.1400104e0
mov ecx, 1
mov rdx, r15
call fcn.140118730
int3
Function at 0x140001830
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x50], 0x36
mov byte [rsp + 0x51], 0xfb
mov byte [rsp + 0x52], 0xd9
mov byte [rsp + 0x53], 0xe4
mov byte [rsp + 0x54], ILGetNext
mov byte [rsp + 0x55], 0x51
mov byte [rsp + 0x56], 0x39
mov byte [rsp + 0x57], 0xda
mov byte [rsp + 0x58], 0x5e
mov byte [rsp + 0x59], 0x62
mov dword [rsp + 0x24], 0xc8da1dc3
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0xa
jae 0x1400018d5
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
sub eax, dword [rsp + 0x24]
movzx ecx, byte [rsp + 0x24]
ror al, cl
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
add eax, 0x7667
imul eax, eax, 0x6c81
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001885
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400018f4
xor eax, eax
jmp 0x140001a2b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001914
xor eax, eax
jmp 0x140001a2b
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x140001941
xor eax, eax
jmp 0x140001a2b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001975
xor eax, eax
jmp 0x140001a2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x20], 0
je 0x140001a20
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x18], 0
je 0x140001a20
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x140001a20
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x140001a20
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x10], 0
jne 0x140001a26
xor eax, eax
jmp 0x140001a2b
mov eax, 1
add rsp, 0x68
ret
Function at 0x140143410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0xa8
mov dword [rsp + 0x34], 0x1634
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
movabs rax, 0x771862a88fe959
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x48]
jl 0x1401434a3
cmp dword [rsp + 0x34], 0x3383
je 0x140143484
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsp + 0xb0]
mov byte [rsp + 0x30], al
mov dword [rsp + 0x54], 0x6d51
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
jmp 0x140143549
movabs rax, 0x76aaa9ff9d10cb
mov rcx, qword [rsp + 0xc8]
sub rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x48]
jne 0x140143549
movsx eax, byte [rsp + 0x30]
movsx ecx, byte [rsp + 0xb0]
and eax, ecx
movsx ecx, byte [rsp + 0xd0]
cmp eax, ecx
jle 0x140143549
mov byte [rsp + 0xc0], 0xde
mov r9w, 0x50
mov r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov cx, 0x85
call fcn.1401429f0
movsx eax, byte [rsp + 0xb0]
movsx ecx, byte [rsp + 0xd0]
xor eax, ecx
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0xb8]
movzx ecx, al
mov rax, qword [rsp + 0x60]
shr rax, cl
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov edx, 0xe6
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.GDI32.dll_SetBkMode]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x1da5
je 0x140143560
jmp 0x1401435e8
mov eax, dword [rsp + 0x34]
or eax, 0x8c67
cmp eax, dword [rsp + 0x3c]
ja 0x1401435d9
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x48]
movzx r8d, byte [rsp + 0xc0]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
movzx ecx, byte [rsp + 0x30]
call fcn.140143410
mov eax, dword [rsp + 0x3c]
add eax, 0xebb6
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rax]
sub rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.GDI32.dll_InvertRgn]
mov dword [rsp + 0x6c], eax
jmp 0x1401435e6
mov eax, dword [rsp + 0x3c]
and eax, 0xf127
mov dword [rsp + 0x34], eax
jmp 0x140143625
lea rax, [rsp + 0x48]
mov qword [rsp + 0x88], rax
movzx eax, byte [rsp + 0xc0]
mov byte [rsp + 0x38], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov eax, 0x467
mov word [rsp + 0x50], ax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov eax, 0x57
add rsp, 0xa8
ret

Function at 0x1401444b0
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14014797f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014797f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014797f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014797f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014797f
cmp dword [rcx + 0x84], 0xe
jbe 0x14014797f
cmp dword [rcx + 0xf8], 0
je 0x14014797f
mov ecx, ebx
call fcn.140147a30
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14014780c
nop
cmp dword [rbp + 0x20], 0
je 0x1401479cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401479d8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140147910

Function at 0x140147b14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140147910
Function at 0x14014a570
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 0x14014a5f7
mov rsi, rbx
cmp word [rax], bp
je 0x14014a5b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14014a5a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14014a59c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14014af90
mov rdi, rax
test rax, rax
je 0x14014a5e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14014fee0
mov rbp, rdi
xor ecx, ecx
call fcn.140149238
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 0x14014f740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14014f768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14014f768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1407d4130
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d42b7
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 0x1407d4161
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d4147
add dl, dl
jne 0x1407d416e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d41ce
xor eax, eax
add dl, dl
jne 0x1407d417d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d4285
add dl, dl
jne 0x1407d418e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d419b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d41a8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d41b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d41c2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d4156
mov eax, 1
add dl, dl
jne 0x1407d41de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d41eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d41d3
sub eax, ebx
mov ebx, 1
jne 0x1407d4224
mov ecx, 1
add dl, dl
jne 0x1407d4206
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d4213
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d41fb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d4156
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d4240
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d424d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d4235
cmp eax, 0x7d00
jae 0x1407d4273
cmp eax, 0x500
jb 0x1407d426e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d4156
cmp eax, 0x7f
ja 0x1407d4276
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d4156
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d42aa
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 0x1407d4156
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20