joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003470
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
push rdi
sub rsp, 0x80
mov eax, 0x6f46a6c8
mov edx, 0x1be882de
mov r8d, edx
mov r9b, 0xdb
mov r10b, byte [rsp + 0x7f]
mov r11b, r10b
or r11b, r11b
mov byte [rsp + 0x7f], r11b
mov qword [rsp + 0x68], 0xb5ea1e3
mov dword [rsp + 0x5c], 0x6f46a6c8
mov r11b, r10b
invalid
invalid

Function at 0x140004b78
Capabilities:
Encode data using xor

Disassembly:
mov r9b, byte [rsp + 0x96]
xor r9b, 0x7f
mov byte [rsp + 0x167], r9b
mov qword [rsp + 0x138], rax
mov r8d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x5c]
and al, 0x5c
cmp r8d, r10d
je 0x140004a87
jmp 0x1400048e6

Function at 0x1400057cc
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
push rbx
sub rsp, 0x68
xor eax, eax
mov r9d, eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x60], 0x79b9589d
and al, 0x60
popfq
pop rax
mov ecx, 0x44c74879
and al, 0x48
sbb dword [rcx - 0xd], edi
invalid
mov r10, qword [rsp + 0x58]
mov r11, r10
sub r11, r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
jmp 0x1400057d0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
and al, 8
jmp 0x14000581b
mov rax, qword [rsp + 0x18]
lea rcx, [0x1400cc4d0]
mov dx, word [rsp + 0x52]
or dx, 0xd501
mov word [rsp + 0x52], dx
mov r8d, dword [rcx + rax*4]
mov r9d, dword [rsp + 0x3c]
cmp r8d, r9d
mov qword [rsp + 0x10], rax
mov dword [rsp + 0xc], r8d
jb 0x1400057c6
jmp 0x140005782
Function at 0x140001000
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov rax, qword [0x140025008]
xor rax, rbp
mov qword [rbp + 8], rax
cmp qword [rcx + 0x50], 0xffffffffffffffff
mov rbx, rcx
je 0x140001111
movsxd r8, dword [rcx + 8]
lea rax, [r8 + 1]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140001048
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400183c0
sub rsp, rcx
lea rdi, [rsp + 0x30]
lea rcx, [rdi + 1]
call fcn.140007380
mov eax, dword [rbx + 0x58]
cmp eax, 0xffffffff
jne 0x14000112b
mov dword [rbx + 0x58], 0
lea rsi, [rbx + 0x10]
xor al, al
nop
mov byte [rdi], al
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rcx, qword [rbx + 0x50]
inc r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001171
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400010ce
mov eax, dword [rbx + 0x58]
inc eax
mov dword [rbx + 0x58], eax
cmp eax, 0xff
jl 0x140001080
jmp 0x1400010ed
lea r8, [rbp]
mov rcx, qword [rbx + 0x50]
mov r9d, 1
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140001171
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140001111
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], 0xffffffffffffffff
xor al, al
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.1400039b0
mov rbx, qword [rbp + 0x40]
lea rsp, [rbp + 0x10]
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi], al
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 8]
lea rsi, [rbx + 0x10]
mov rcx, qword [rbx + 0x50]
inc r8d
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001168
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400010ed
lea r8, [rbp + 4]
jmp 0x1400010d2
mov al, 1
jmp 0x140001113
Function at 0x140001180
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], rbx
mov rax, qword [0x140025008]
xor rax, rbp
mov qword [rbp + 8], rax
movsxd rax, dword [rcx + 4]
mov rbx, rcx
inc rax
mov r15d, r8d
mov rsi, rdx
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400011c6
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400183c0
sub rsp, rcx
mov dword [rbp], 0
mov rcx, qword [rbx + 0x48]
lea rdi, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
movzx eax, byte [rbx + 0x58]
lea r14, [rbx + 0x30]
mov byte [rdi], al
lea r9, [rbp]
mov r8d, dword [rbx + 4]
mov rdx, rdi
mov rcx, qword [rbx + 0x50]
inc r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001223
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000127f
mov ecx, dword [rbx + 4]
mov r8d, dword [rbp]
lea eax, [rcx + 1]
cmp r8d, eax
jae 0x140001277
mov rcx, qword [rbx + 0x48]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x50]
lea r8, [rbp]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140001264
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x14000127f
mov ecx, dword [rbx + 4]
mov r8d, dword [rbp]
lea eax, [rcx + 1]
cmp r8d, eax
jae 0x140001277
xor eax, eax
jmp 0x140001298
lea eax, [rcx + 1]
cmp r8d, eax
je 0x140001286
mov eax, 0xffffffff
jmp 0x140001298
movsxd r8, ecx
lea rdx, [rdi + 1]
mov rcx, rsi
call fcn.140007380
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.1400039b0
mov rbx, qword [rbp + 0x58]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002760
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r14, r8
mov qword [rsp + 0x30], rbp
mov rdi, rdx
mov dword [rsp + 0x28], ebp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400027b0
xor al, al
jmp 0x14000281f
xor edx, edx
mov qword [rsp + 0x50], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
mov dword [rdi], ebx
call fcn.140007a14
mov qword [r14], rax
mov rdi, rbp
test ebx, ebx
je 0x14000280f
nop word [rax + rax]
mov rdx, qword [r14]
lea r9, [rsp + 0x40]
add rdx, rdi
mov dword [rsp + 0x40], ebp
mov r8d, ebx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002836
mov eax, dword [rsp + 0x40]
add rdi, rax
sub ebx, eax
jne 0x1400027e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400039b0
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000281a

Function at 0x140002850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, r8
mov qword [rsp + 0x30], rbp
mov ebx, edx
mov dword [rsp + 0x28], ebp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002900
test ebx, ebx
jle 0x1400028cf
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, ebx
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400028f7
mov eax, dword [rsp + 0x40]
sub ebx, eax
add rdi, rax
test ebx, ebx
jg 0x1400028a1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400039b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400028da

Function at 0x140004588
Capabilities:
Parse pe header

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

Function at 0x14000b580
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b370
Function at 0x140010990
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 0x1400109c0
xor eax, eax
jmp 0x140010a83
mov rbp, rbx
cmp word [rax], si
je 0x1400109e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400109cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400109c8
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.1400108e0
movsxd r14, eax
test eax, eax
jne 0x140010a23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400109b9
mov rcx, r14
call fcn.14000bf44
mov rdi, rax
test rax, rax
jne 0x140010a3c
xor ecx, ecx
call fcn.14000bf08
jmp 0x140010a18
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.1400108e0
test eax, eax
jne 0x140010a6d
mov rcx, rdi
call fcn.14000bf08
jmp 0x140010a77
xor ecx, ecx
call fcn.14000bf08
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 0x140015c4c
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.14000f9e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140015cd6
cmp byte [rbp - 0x21], r15b
je 0x140015cd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140015d0c
call fcn.14000c718
test eax, eax
jne 0x140015cf8
cmp byte [rbp - 0x21], r15b
je 0x140015cf0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140015d0c
cmp byte [rbp - 0x21], r15b
je 0x140015d09
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.14000efc0
test eax, eax
jne 0x140015dac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f9e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140015d4b
cmp byte [rbp - 0x21], r15b
je 0x140015d80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015d80
call fcn.14000c718
test eax, eax
jne 0x140015d6c
cmp byte [rbp - 0x21], r15b
je 0x140015d65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015d80
cmp byte [rbp - 0x21], r15b
je 0x140015d7d
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.14000efc0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015dac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015daf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015dbd
mov rcx, rdi
call fcn.14000bf08
cmp byte [rbp + 0x3f], r15b
je 0x140015dcc
mov rcx, qword [rbp + 0x27]
call fcn.14000bf08
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 0x140018380
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 2
lea rbx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [section..data]
lea rdx, str._s:
mov rcx, rax
call fcn.140004b70
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
call fcn.140004ea0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140004960
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [section..data]
lea rdx, str.usage:___s__s_n
mov rcx, rax
mov r9, rbx
call fcn.140004b70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004503b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400010d0
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
movsxd rdi, ecx
cmp edi, 2
jg 0x140001302
cmp dword [0x140005038], 0
je 0x140001302
mov rcx, qword [0x140005050]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x1400012f6
mov eax, dword [0x140005038]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
test al, 1
je 0x1400011b5
mov rcx, qword [0x140006000]
lea rax, [0x140003470]
movzx edx, word [rax + rdi*4]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rbp, [rsp + 0x80]
call fcn.140001000
mov rbx, qword [rsp + 0x78]
mov rsi, rax
mov ecx, 2
cmp edi, 1
je 0x14000117e
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [rsi]
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x20], rbp
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
movzx edx, word [0x140005ff8]
mov rcx, qword [0x140006000]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [0x140005038]
test al, 2
je 0x1400012d6
lea rbx, [rsp + 0x80]
call fcn.140001000
mov r9, qword [rsp + 0x78]
xor esi, esi
mov qword [rsp + 0x28], rbx
mov r8d, 0x1388
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
cmp edi, 1
jne 0x14000125e
lea rdi, [0x140005640]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
mov rbp, qword [0x140005040]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x140001207
test ebx, ebx
je 0x1400012d6
nop dword [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400012ca
mov edx, dword [rsp + 0x30]
lea rcx, str.Wrote__u_bytes_to_file_successfully._n
call fcn.140001010
mov ecx, dword [rsp + 0x30]
add rdi, rcx
sub ebx, ecx
jne 0x140001220
jmp 0x1400012d6
lea rdi, [0x140005a50]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
mov rbp, qword [0x140005048]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], sil
jne 0x140001280
test ebx, ebx
je 0x1400012d6
nop dword [rax]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400012ca
mov edx, dword [rsp + 0x34]
lea rcx, str.Wrote__u_bytes_to_file_successfully._n
call fcn.140001010
mov ecx, dword [rsp + 0x34]
add rdi, rcx
sub ebx, ecx
jne 0x140001290
jmp 0x1400012d6
lea rcx, str.Terminal_failure:_Unable_to_write_to_file._n
call fcn.140001070
mov rcx, qword [0x140005050]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x140001302
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001f80
add rsp, 0x60
pop rdi
ret
Function at 0x140001320
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x68
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140005050]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x14000144f
mov qword [rsp + 0x60], rbx
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.140001000
mov r9, qword [rsp + 0x70]
lea rdi, [0x140005a50]
xor ebp, ebp
mov qword [rsp + 0x28], rbx
mov r8d, 0x1388
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
mov rsi, qword [0x140005048]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rdi + rbx], bpl
jne 0x1400013c0
test ebx, ebx
je 0x140001416
nop dword [rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000140a
mov edx, dword [rsp + 0x30]
lea rcx, str.Wrote__u_bytes_to_file_successfully._n
call fcn.140001010
mov ecx, dword [rsp + 0x30]
add rdi, rcx
sub ebx, ecx
jne 0x1400013d0
jmp 0x140001416
lea rcx, str.Terminal_failure:_Unable_to_write_to_file._n
call fcn.140001070
movzx edx, word [0x140005ff8]
mov rcx, qword [0x140006000]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [0x140005050]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x14000145b
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001f80
add rsp, 0x68
ret
Function at 0x140642058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406421df
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 0x140642089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064206f
add dl, dl
jne 0x140642096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406420f6
xor eax, eax
add dl, dl
jne 0x1406420a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406421ad
add dl, dl
jne 0x1406420b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406420c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406420d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406420dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406420ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14064207e
mov eax, 1
add dl, dl
jne 0x140642106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140642113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406420fb
sub eax, ebx
mov ebx, 1
jne 0x14064214c
mov ecx, 1
add dl, dl
jne 0x14064212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140642123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140642168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140642175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064215d
cmp eax, 0x7d00
jae 0x14064219b
cmp eax, 0x500
jb 0x140642196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064207e
cmp eax, 0x7f
ja 0x14064219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406421d2
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 0x14064207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400079b0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400079e0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400079df
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400079e5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400079df
mov eax, 0
jmp 0x1400079df

Function at 0x140008060
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140008010
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 0x140011670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14001a1b0
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.14001a1b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]