joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14031fd50
Capabilities:
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x270
mov rax, qword [0x1403dc450]
lea r12, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebx, cx
mov qword [rsp + 0x30], rax
mov rax, qword [0x1403dc460]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
mov rax, qword [fcn.14031ff30]
mov qword [rsp + 0x48], rax
mov eax, dword [0x140419a30]
test eax, eax
je 0x14031fde0
movsxd rax, ebx
lea rdx, str.getaddrinfo
shl rax, 4
mov rax, qword [rdx + rax + 8]
add rsp, 0x270
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x14031fe20
movsxd rcx, ebx
lea rax, str.getaddrinfo
mov dword [0x140419a30], 1
shl rcx, 4
mov rax, qword [rax + rcx + 8]
jmp 0x14031fdc9
lea r14, [rsp + 0x160]
mov rdx, rsi
movabs rdi, 0x32335f3273775c
mov rcx, r14
call sub.msvcrt.dll_strcpy
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rbp, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, r14
mov qword [r14 + rax], rdi
call rbp
mov r13, rax
test rax, rax
je 0x14031fed0
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r12
mov rcx, rax
call rdi
test rax, rax
je 0x14031fec0
lea r12, [rsp + 0x20]
mov rdx, qword [r12]
mov rcx, r13
call rdi
mov qword [r12 + 8], rax
test rax, rax
je 0x14031ff1a
add r12, 0x10
cmp r12, rsi
jne 0x14031fe76
mov rax, qword [rsp + 0x28]
mov qword [0x140331e28], rax
mov rax, qword [rsp + 0x38]
mov qword [0x140331e38], rax
mov rax, qword [rsp + 0x48]
mov qword [fcn.14031ff30], rax
jmp 0x14031fdf7
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax]
movabs rdi, 0x3670696873775c
mov rdx, rsi
mov rcx, r14
call sub.msvcrt.dll_strcpy
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, r14
mov qword [r14 + rax], rdi
call rbp
mov r13, rax
test rax, rax
je 0x14031fdf7
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r12
mov rcx, rax
call rdi
test rax, rax
jne 0x14031fe71
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14031fdf7
Function at 0x1403208b0
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rbx], 0
mov byte [r12], 0
mov esi, edx
mov edi, r8d
mov r13d, r9d
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbp, rax
test rax, rax
je 0x140320980
cmp dword [rax + 0x10], 0x40002
jne 0x140320950
mov r14, qword [rax + 0x18]
mov rax, qword [r14]
test rax, rax
je 0x140320950
movzx r13d, r13w
jmp 0x140320920
add r14, 8
lea rbx, [rax + 0x28]
mov rax, qword [r14]
test rax, rax
je 0x140320950
mov r9d, dword [rax]
mov r8d, r13d
mov edx, edi
mov ecx, esi
call fcn.140320650
mov qword [rbx], rax
test rax, rax
jne 0x140320910
mov eax, 8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, qword [rbp]
mov r8d, 0x400
mov rcx, r12
call sub.msvcrt.dll_strncpy
xor eax, eax
mov byte [r12 + 0x400], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [rax - 0x2afa]
cmp edx, 3
mov edx, 0x2af9
cmovae eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140320ca0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.14032e5b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14032e5b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140320d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140419ac4]
mov r12, rcx
test ebx, ebx
jle 0x140320e40
mov rax, qword [0x140419ac8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140320d5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140320de5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140320d40
mov rcx, r12
call fcn.1403216e0
mov rsi, rax
test rax, rax
je 0x140320e62
mov rax, qword [0x140419ac8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140321810
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140419ac8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140320e47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140320dde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140320df0
add dword [0x140419ac4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140419ac8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140320dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140320ca0
nop dword [rax]
xor ebx, ebx
jmp 0x140320d68
mov rax, qword [0x140419ac8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140320ca0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140320ca0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140321330
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140419b20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140419b00]
test rbx, rbx
je 0x14032138c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140321383
test r12, r12
je 0x140321383
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140321368
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1403216e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403dc5a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140321700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140321708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140321700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140321755
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14032174c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140321700
add rax, 0x28
cmp rax, r9
jne 0x140321738
xor eax, eax
ret

Function at 0x140321760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403dc5a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140321780
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140321788
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140321780
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140321810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403dc5a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140321830
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140321838
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000284c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
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
lea rcx, [sym._matherr]
call sym.__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 0x140001a30
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 dword [rax]
Function at 0x140001aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007274]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140001c30
mov rax, qword [0x140007278]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140001aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140001b75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140001ad0
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x140001c82
mov rax, qword [0x140007278]
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 [0x140007278]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c65
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001be0
add dword [0x140007274], 1
cmp ebx, 8
jae 0x140001ba1
test bl, 4
jne 0x140001c40
test ebx, ebx
je 0x140001b96
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140001c54
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140001b96
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140001bba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140007278]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x140001af7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140001b96
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140001b96
mov rax, qword [0x140007278]
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, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140002250
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400072e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400072c0]
test rbx, rbx
je 0x1400022a4
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 0x14000229b
test rsi, rsi
je 0x14000229b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002280
lea rcx, [0x1400072e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024f0
Capabilities:
Parse pe header

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

Function at 0x140002510
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 0x140002551
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 0x140002548
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002553
add rax, 0x28
cmp rax, r9
jne 0x140002534
xor eax, eax
ret

Function at 0x140002600
Capabilities:
Enumerate pe sections

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

Function at 0x140002770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x1400027df
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400027df
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 0x1400027dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400027d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027e4
add rax, 0x28
cmp rax, r9
jne 0x1400027c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002873
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002873
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002873
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002873
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140002867
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002880
add rdx, 0x28
cmp rdx, r10
jne 0x140002853
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140002898
jmp 0x140002870
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400028a6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002870
test r8d, r8d
jg 0x140002890
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1405d5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405d51df
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 0x1405d5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d506f
add dl, dl
jne 0x1405d5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d50f6
xor eax, eax
add dl, dl
jne 0x1405d50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d51ad
add dl, dl
jne 0x1405d50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405d50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405d507e
mov eax, 1
add dl, dl
jne 0x1405d5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d50fb
sub eax, ebx
mov ebx, 1
jne 0x1405d514c
mov ecx, 1
add dl, dl
jne 0x1405d512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405d5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d515d
cmp eax, 0x7d00
jae 0x1405d519b
cmp eax, 0x500
jb 0x1405d5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d507e
cmp eax, 0x7f
ja 0x1405d519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405d51d2
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 0x1405d507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1411a4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411a41df
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 0x1411a4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a406f
add dl, dl
jne 0x1411a4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a40f6
xor eax, eax
add dl, dl
jne 0x1411a40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a41ad
add dl, dl
jne 0x1411a40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411a40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411a407e
mov eax, 1
add dl, dl
jne 0x1411a4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a40fb
sub eax, ebx
mov ebx, 1
jne 0x1411a414c
mov ecx, 1
add dl, dl
jne 0x1411a412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411a413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411a4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411a4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a415d
cmp eax, 0x7d00
jae 0x1411a419b
cmp eax, 0x500
jb 0x1411a4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a407e
cmp eax, 0x7f
ja 0x1411a419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411a41d2
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 0x1411a407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x413d60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x413eeb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431280
xorps xmm15, xmm15
mov r14, qword [0x00585a80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x413dc5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x413dd4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413df3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413e03
cmp rbx, 0x1000
jae 0x413dcb
jmp 0x413e6d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x413e15
xor edx, edx
jmp 0x413e64
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431280
xorps xmm15, xmm15
mov r14, qword [0x00585a80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x413df9
jmp 0x413de8
call fcn.00460c60
xorps xmm15, xmm15
mov r14, qword [0x00585a80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435600
lea rax, [0x0049821a]
mov ebx, 0x18
nop dword [rax]
call fcn.00435e80
mov rax, qword [rsp + 0x38]
call fcn.00435bc0
lea rax, [0x004986d0]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435e80
mov rax, qword [rsp + 0x30]
call fcn.00435bc0
call fcn.00435840
call fcn.00435660
lea rax, [0x0049a6e4]
mov ebx, 0x21
call fcn.00433c60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d5c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413d60