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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002051
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000206f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000208b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000208d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400020c9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000215e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002104
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000213e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000215e
cmp rbx, rax
ja 0x140002110
test rbx, rbx
je 0x14000215e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400025c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400025ed
xor eax, eax
jmp 0x140002759
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002627
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002627
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002759
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000274c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000266a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002695
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002751
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002704
sub eax, 1
je 0x140002704
cmp eax, 2
jne 0x14000274c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002751
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002732
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000274c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002751
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003ab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400029e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002ab3
cmp byte [rcx + 0x71], 0
je 0x140002ab3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002aaf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002a74
sub eax, 1
je 0x140002a78
cmp eax, 2
jne 0x140002aaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003ab0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002aa6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002aaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a5c
xor al, al
jmp 0x140002a5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003ab0
add rsp, 0x60
pop rbx
ret

Function at 0x140004658
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
test rdx, rdx
setne byte [rsp + 0x27]
mov eax, dword [0x1403bbae8]
lea edx, [rax - 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
setne al
sete dl
cmp dword [0x1403bb7c8], 0xa
mov r14, rcx
setge cl
setl bl
xor bl, dl
or cl, al
xor cl, 1
or cl, bl
mov ebp, 0xaeed36a4
mov eax, 0xdfc148a2
cmove ebp, eax
mov edi, 0x5fb8486e
cmove edi, eax
mov eax, 0x8ef83fb0
mov r15d, 0x23cd74d8
cmp eax, 0x23cd74d7
jg 0x140015886
cmp eax, 0x8ef83fb0
je 0x140015896
cmp eax, 0x99c558a5
jne 0x140015865
mov eax, 0x41ad664e
mov rbx, qword [rsp + 0x28]
jmp 0x140015865
cmp eax, 0x23cd74d8
je 0x1400158a8
cmp eax, 0x41ad664e
jne 0x140015865
jmp 0x140015900
cmp byte [rsp + 0x27], 0
mov eax, 0x41ad664e
cmovne eax, r15d
xor ebx, ebx
jmp 0x140015865
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x30], rax
mov eax, 0xc5214f36
cmp eax, 0xdfc148a1
jg 0x1400158d3
cmp eax, 0xaeed36a4
je 0x1400158ec
cmp eax, 0xc5214f36
jne 0x1400158ba
mov eax, edi
jmp 0x1400158ba
cmp eax, 0xdfc148a2
je 0x1400158e5
cmp eax, 0x5fb8486e
jne 0x1400158ba
mov eax, ebp
jmp 0x1400158ba
mov eax, 0x5fb8486e
jmp 0x1400158ba
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, 0x99c558a5
jmp 0x140015865
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, r14
call sub.msvcrt.dll_fwrite
mov rcx, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp sub.msvcrt.dll_fflush
Function at 0x140017da4
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1403ba0a0]
mov qword [rsp + 0x30], rax
mov eax, 0x50a9edf3
mov r14, qword [fcn.1401188b0]
mov r15d, 0xaeed36a4
mov r12d, 0x5fb8486e
mov r13d, 0x23cd74d8
lea rsi, str.out_of_memory_n
mov ebp, 0x58a46ac8
cmp eax, 0x58a46ac7
jg 0x140017e18
cmp eax, 0xc9b18617
je 0x140017e36
cmp eax, 0x39fe5dd9
je 0x140017e3d
cmp eax, 0x50a9edf3
jne 0x140017dea
cmp qword [rsp + 0x30], 0
sete byte [rsp + 0x2e]
mov eax, 0x5e23473b
jmp 0x140017dea
cmp eax, 0x58a46ac8
je 0x140017e4b
cmp eax, 0x5e23473b
je 0x140017f43
cmp eax, 0x7c908275
jne 0x140017dea
jmp 0x140017f77
mov eax, 0x58a46ac8
jmp 0x140017dea
mov rax, qword [rsp + 0x30]
call rax
mov eax, 0xc9b18617
jmp 0x140017dea
mov ecx, 2
call r14
mov rdi, rax
mov byte [rsp + 0x2f], 1
mov eax, dword [0x1403bbae8]
lea ecx, [rax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
setne al
sete cl
cmp dword [0x1403bb7c8], 0xa
setge dl
setl bl
xor bl, cl
or dl, al
xor dl, 1
or dl, bl
mov eax, 0xdfc148a2
cmovne eax, r15d
mov ecx, 0xdfc148a2
cmovne ecx, r12d
mov edx, 0x8ef83fb0
cmp edx, 0x23cd74d7
jg 0x140017ec5
cmp edx, 0x8ef83fb0
je 0x140017ed7
cmp edx, 0x99c558a5
jne 0x140017ea1
mov edx, 0x41ad664e
mov r8, qword [rsp + 0x38]
jmp 0x140017ea1
cmp edx, 0x23cd74d8
je 0x140017eea
cmp edx, 0x41ad664e
jne 0x140017ea1
jmp 0x140017f55
cmp byte [rsp + 0x2f], 0
mov edx, 0x41ad664e
cmovne edx, r13d
xor r8d, r8d
jmp 0x140017ea1
mov qword [rsp + 0x40], 0xe
mov edx, 0xc5214f36
cmp edx, 0xdfc148a1
jg 0x140017f14
cmp edx, 0xaeed36a4
je 0x140017f2f
cmp edx, 0xc5214f36
jne 0x140017ef8
mov edx, ecx
jmp 0x140017ef8
cmp edx, 0xdfc148a2
je 0x140017f28
cmp edx, 0x5fb8486e
jne 0x140017ef8
mov edx, eax
jmp 0x140017ef8
mov edx, 0x5fb8486e
jmp 0x140017ef8
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rdx
mov edx, 0x99c558a5
jmp 0x140017ea1
cmp byte [rsp + 0x2e], 0
mov eax, 0x39fe5dd9
cmovne eax, ebp
jmp 0x140017dea
mov edx, 1
mov rcx, rsi
mov r9, rdi
call sub.msvcrt.dll_fwrite
mov rcx, rdi
call sub.msvcrt.dll_fflush
mov eax, 0x7c908275
jmp 0x140017dea
mov ecx, 1
call sub.msvcrt.dll_exit
int3
Function at 0x1400502f5
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov ecx, 2
call qword [fcn.1401188b0]
mov qword [rsp + 0x20], rax
mov eax, 0x93187729
mov r14d, 0xe906b3e5
mov r15d, 0xc638f3d7
mov r12d, 0xa1a26c2f
mov r13d, 0x79dade0a
mov ebp, 0x5ebb23c3
cmp eax, 0x1ceebff4
jle 0x140050398
cmp eax, 0x1ceebff5
je 0x1400503e8
cmp eax, 0x5ebb23c3
je 0x1400504d6
cmp eax, 0x79dade0a
jne 0x14005033d
mov eax, dword [0x1403bb8bc]
mov ecx, dword [0x1403bb9ac]
lea edx, [rax - 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
sete r8b
cmp ecx, 0xa
setl bl
xor bl, r8b
mov ebx, 0x1ceebff5
cmovne ebx, ebp
test eax, edx
mov eax, ebx
cmove eax, ebp
jmp 0x1400503dd
cmp eax, 0x93187729
je 0x1400503f2
cmp eax, 0xd98f913b
jne 0x14005033d
mov eax, dword [0x1403bb8bc]
mov ecx, dword [0x1403bb9ac]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, 0xffffffff
sete al
cmp ecx, 0xa
setl bl
xor bl, al
mov ebx, 0x1ceebff5
cmovne ebx, r13d
cmp edx, 0xffffffff
mov eax, ebx
cmove eax, r13d
cmp ecx, 0xa
cmovge eax, ebx
jmp 0x14005033d
mov eax, 0x79dade0a
jmp 0x14005033d
mov rbx, qword [rsp + 0x20]
mov edx, 1
mov rcx, rdi
mov r8, rsi
mov r9, rbx
call sub.msvcrt.dll_fwrite
mov eax, 0x88ed98e0
cmp eax, 0xc638f3d6
jle 0x14005046c
cmp eax, 0xc638f3d7
je 0x140050481
cmp eax, 0xe68cb8fd
je 0x1400504cc
cmp eax, 0xe906b3e5
jne 0x14005040f
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov eax, dword [0x1403bba38]
lea ecx, [rax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
sete cl
mov eax, 0xc638f3d7
cmove eax, r12d
cmp dword [0x1403bb818], 0xa
cmovge eax, r15d
setl dl
xor dl, cl
cmovne eax, r12d
jmp 0x14005040f
cmp eax, 0x88ed98e0
je 0x140050493
cmp eax, 0xa1a26c2f
jne 0x14005040f
mov eax, 0xe68cb8fd
jmp 0x14005040f
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov eax, 0xe906b3e5
jmp 0x14005040f
mov eax, dword [0x1403bba38]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
sete cl
mov eax, 0xc638f3d7
cmove eax, r14d
cmp dword [0x1403bb818], 0xa
cmovge eax, r15d
setl dl
xor dl, cl
cmovne eax, r14d
jmp 0x14005040f
mov eax, 0xd98f913b
jmp 0x14005033d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140112b40
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.1401188b0
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.1401188b0
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 0x140112bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403baa14]
mov rbx, rcx
test esi, esi
jle 0x140112ce0
mov rax, qword [0x1403baa18]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140112bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140112c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140112be0
mov rcx, rbx
call fcn.140113600
mov rdi, rax
test rax, rax
je 0x140112d02
mov rax, qword [0x1403baa18]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140113740
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403baa18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140112ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140112c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140112c90
add dword [0x1403baa14], 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 [0x1403baa18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140112c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140112b40
nop dword [rax]
xor esi, esi
jmp 0x140112c08
mov rax, qword [0x1403baa18]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140112b40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140112b40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140113270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403baa80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403baa60]
test rbx, rbx
je 0x1401132cc
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 eax, eax
jne 0x1401132c3
test rsi, rsi
je 0x1401132c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401132a8
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 0x140113600
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140113680
Capabilities:
Parse pe header

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

Function at 0x140113740
Capabilities:
Parse pe header

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

Disassembly:
call fcn.141c7e1df
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 0x141c7e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7e06f
add dl, dl
jne 0x141c7e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7e0f6
xor eax, eax
add dl, dl
jne 0x141c7e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7e1ad
add dl, dl
jne 0x141c7e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c7e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c7e07e
mov eax, 1
add dl, dl
jne 0x141c7e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7e0fb
sub eax, ebx
mov ebx, 1
jne 0x141c7e14c
mov ecx, 1
add dl, dl
jne 0x141c7e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c7e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c7e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c7e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7e15d
cmp eax, 0x7d00
jae 0x141c7e19b
cmp eax, 0x500
jb 0x141c7e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7e07e
cmp eax, 0x7f
ja 0x141c7e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c7e1d2
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 0x141c7e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1400018e4
Capabilities:
Parse pe header

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

Disassembly:
call fcn.142e231df
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 0x142e23089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e2306f
add dl, dl
jne 0x142e23096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e230f6
xor eax, eax
add dl, dl
jne 0x142e230a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e231ad
add dl, dl
jne 0x142e230b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e230c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e230d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e230dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x142e230ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x142e2307e
mov eax, 1
add dl, dl
jne 0x142e23106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e23113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e230fb
sub eax, ebx
mov ebx, 1
jne 0x142e2314c
mov ecx, 1
add dl, dl
jne 0x142e2312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142e2313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e23123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e2307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142e23168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142e23175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e2315d
cmp eax, 0x7d00
jae 0x142e2319b
cmp eax, 0x500
jb 0x142e23196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e2307e
cmp eax, 0x7f
ja 0x142e2319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e2307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x142e231d2
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 0x142e2307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20