joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801cb944
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180250b90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801cb99b
cmp word [rdx], r13w
jne 0x1801cb99b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801cb9a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801cbac5
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801cbae6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801cb9d9
mov rdx, r9
mov word [rbx], cx
jmp 0x1801cba00
cmp r9, r8
jae 0x1801cba10
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801cb9ba
jmp 0x1801cbac5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801cbaba
cmp dword [rsp + 0x80], esi
je 0x1801cbaba
lea r8, [0x180250b90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801cba92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801cba62
mov word [rbx], r13w
jmp 0x1801cbac2
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1801cba6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801cbac2
cmp word [rsp + 0x70], r13w
jne 0x1801cba9f
cmp rbx, r14
je 0x1801cba5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801cc7ac
cmp word [rsp + 0x70], r13w
je 0x1801cbac5
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180250b90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801cbabf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801cbac5
Function at 0x1801cf82c
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 0x1801cf85c
xor eax, eax
jmp 0x1801cf91f
mov rbp, rbx
cmp word [rax], si
je 0x1801cf881
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801cf868
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801cf864
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.1801cac78
movsxd r14, eax
test eax, eax
jne 0x1801cf8bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801cf855
mov rcx, r14
call fcn.1801c59f4
mov rdi, rax
test rax, rax
jne 0x1801cf8d8
xor ecx, ecx
call fcn.1801c39a4
jmp 0x1801cf8b4
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.1801cac78
test eax, eax
jne 0x1801cf909
mov rcx, rdi
call fcn.1801c39a4
jmp 0x1801cf913
xor ecx, ecx
call fcn.1801c39a4
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 0x1801cf93c
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 0x1801cf9c3
mov rsi, rbx
cmp word [rax], bp
je 0x1801cf982
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801cf96c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801cf968
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801c59f4
mov rdi, rax
test rax, rax
je 0x1801cf9b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801d8b30
mov rbp, rdi
xor ecx, ecx
call fcn.1801c39a4
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 0x1801d28f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1801c3d9c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1801d2995
cmp ebx, dword [rsp + 0x30]
je 0x1801d298e
test esi, esi
je 0x1801d298e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801d2969
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801d2976
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801d2953
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801d297a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801d2997
mov eax, 1
jmp 0x1801d2997
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801d6e1c
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.1801b733c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1801d6ea6
cmp byte [rbp - 0x21], r15b
je 0x1801d6ea1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1801d6edc
call fcn.1801c7e4c
test eax, eax
jne 0x1801d6ec8
cmp byte [rbp - 0x21], r15b
je 0x1801d6ec0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1801d6edc
cmp byte [rbp - 0x21], r15b
je 0x1801d6ed9
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.1801baa10
test eax, eax
jne 0x1801d6f7c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1801b733c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1801d6f1b
cmp byte [rbp - 0x21], r15b
je 0x1801d6f50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1801d6f50
call fcn.1801c7e4c
test eax, eax
jne 0x1801d6f3c
cmp byte [rbp - 0x21], r15b
je 0x1801d6f35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1801d6f50
cmp byte [rbp - 0x21], r15b
je 0x1801d6f4d
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.1801baa10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1801d6f7c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1801d6f7f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1801d6f8d
mov rcx, rdi
call fcn.1801c39a4
cmp byte [rbp + 0x3f], r15b
je 0x1801d6f9c
mov rcx, qword [rbp + 0x27]
call fcn.1801c39a4
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 0x1801d7e8c
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.1801cc7ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801cc7ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801d7fdc
cmp rax, 0xffffffffffffffff
je 0x1801d7fdc
xor edi, edi
test rbp, rbp
jle 0x1801d7f87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801c597c
mov rbx, rax
test rax, rax
jne 0x1801d7f14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801d7f7d
mov edx, 0x8000
mov ecx, r14d
call fcn.1801d7d10
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.1801ca428
cmp eax, 0xffffffff
je 0x1801d7f5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801d7f24
mov edx, r15d
mov ecx, r14d
call fcn.1801d7d10
jmp 0x1801d7f7d
cmp byte [rsi + 0x38], dil
je 0x1801d7f74
cmp dword [rsi + 0x34], 5
jne 0x1801d7f74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1801d7f7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801c39a4
jmp 0x1801d7ff0
jns 0x1801d7ff0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801cc7ac
cmp rax, 0xffffffffffffffff
jne 0x1801d7fa8
cmp byte [rsi + 0x30], dil
je 0x1801d7ff0
mov edi, dword [rsi + 0x2c]
jmp 0x1801d7ff0
mov ecx, r14d
call fcn.1801d48b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801d7ff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1801d7ff0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801d7fe9
mov eax, dword [rsi + 0x2c]
jmp 0x1801d7fee
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801cc7ac
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 0x1801d8810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801d8838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801d8838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001510
Capabilities:
Allocate or change rwx memory
Check mutex and terminate process on windows
Check mutex on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1800130a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r8d, 0x104
lea rdx, [0x180013780]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [0x180013780]
call qword [sym.imp.msvcrt.dll_strrchr]
test rax, rax
je 0x180001558
mov byte [rax], 0
lea r9, [0x180013780]
mov edx, 0x104
lea r8, str._s_svcr.jpg
lea rcx, [rsp + 0x40]
call fcn.180001010
lea r8, [0x180010ecc]
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fopen_s]
test eax, eax
jne 0x180001749
cmp qword [rsp + 0x30], 0
je 0x180001749
lea r8, str.kkkkkkkkkkkkkkkk
mov qword [rsp + 0x170], rbx
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x1800015d5
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800015f7
mov rcx, rbx
call qword [0x18000c950]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x160], rdi
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_ftell]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180001739
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, rbx
jne 0x180001739
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov rcx, rdi
call fcn.180001070
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.msvcrt.dll_free]
test ebx, ebx
jne 0x18000170c
lea r9d, [rbx + 0x40]
mov r8d, 0x3000
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, rax
test rax, rax
je 0x180001701
mov rdi, qword [rsp + 0x20]
test rbx, rbx
je 0x1800016f1
mov r8, rdi
mov rdx, rax
sub r8, rax
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub rbx, 1
jne 0x1800016e0
call r9
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x180001711
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_free]
mov eax, 1
mov rdi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180005510
add rsp, 0x168
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
mov rcx, rdi
jmp 0x180001706
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180005510
add rsp, 0x168
ret
Function at 0x180001e48
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x180001eaf
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x180001e8e
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x180001ece
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x180002013
bt qword [0x18000c2c8], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x180013060]
call fcn.180001d7c
mov r14, rax
test rax, rax
je 0x180001e8c
mov r13d, 2
test r13b, r15b
je 0x180001f05
mov r8d, r13d
jmp 0x18000200b
test r15b, 4
je 0x180001f13
xor r8d, r8d
jmp 0x18000200b
bt qword [0x18000c2b0], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x180013048]
call fcn.180001d7c
test rax, rax
jne 0x180002005
bt qword [0x18000c2a8], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x180013040]
call fcn.180001d7c
mov r15, rax
test rax, rax
je 0x180001e8c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x180001f0b
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x180001fab
cmp word [rax], r12w
je 0x180001fab
inc rcx
add rax, r13
sub rdx, 1
jne 0x180001f99
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x18000201a
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x180002027
xchg qword [rsi], rdi
jmp 0x180001e8c
xchg qword [rsi], rax
test rax, rax
je 0x18000203c
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x180001e8e
Function at 0x180007c70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1800130a0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180007cac
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.180005708
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180007d68
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180007dd0
test ebx, ebx
jne 0x180007dd0
mov ecx, 2
call fcn.180005708
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180005510
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140b7f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b7f1df
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 0x140b7f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b7f06f
add dl, dl
jne 0x140b7f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b7f0f6
xor eax, eax
add dl, dl
jne 0x140b7f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b7f1ad
add dl, dl
jne 0x140b7f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b7f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b7f07e
mov eax, 1
add dl, dl
jne 0x140b7f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b7f0fb
sub eax, ebx
mov ebx, 1
jne 0x140b7f14c
mov ecx, 1
add dl, dl
jne 0x140b7f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b7f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b7f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b7f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b7f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b7f15d
cmp eax, 0x7d00
jae 0x140b7f19b
cmp eax, 0x500
jb 0x140b7f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7f07e
cmp eax, 0x7f
ja 0x140b7f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b7f1d2
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 0x140b7f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140103480]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140103490]
mov dword [rax], 1
mov rax, qword [0x1401034a0]
mov dword [rax], 1
mov rax, qword [0x140103400]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140103470]
mov dword [0x14010600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140103540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140103520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401033d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001430
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0xaf]
mov qword [rbp + 0xb0], rax
nop
nop
lea rcx, [rbp + 0xaf]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xe0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xaf]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov qword [rbp + 0xb8], 0
jmp 0x1400014d2
mov rdx, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xe0]
lea r9, section..rdata
mov r8d, 1
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::replace_unsigned_long_long__unsigned_long_long__char_const_
add qword [rbp + 0xb8], 1
mov rdx, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xe0]
mov r8, rdx
mov edx, 0x5c
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char__unsigned_long_long__const
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0xffffffffffffffff
setne al
test al, al
jne 0x1400014a7
jmp 0x140001543
mov rax, qword [rbp + 0xe0]
add rsp, 0x148
pop rbx
pop rbp
ret