joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009da50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140083b78
xor ebx, ebx
mov rdi, rax
cmp qword [0x1418b5c28], rbx
jne 0x14009db56
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14009dc2b
lea rdx, [0x1400ca5e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009dc2b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400ca5d8]
mov rcx, rsi
mov qword [0x1418b5c28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400ca5c0]
mov rcx, rsi
mov qword [0x1418b5c30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1418b5c38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1418b5c48], rax
test rax, rax
je 0x14009db4d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1418b5c40], rax
jmp 0x14009db5d
mov rax, qword [0x1418b5c40]
jmp 0x14009db64
mov rax, qword [0x1418b5c40]
mov r11, qword [0x1418b5c48]
cmp rax, rdi
je 0x14009dbcc
cmp r11, rdi
je 0x14009dbcc
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1418b5c48]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14009dbcc
test rax, rax
je 0x14009dbcc
call rsi
test rax, rax
je 0x14009dbc6
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14009dbc6
test byte [rsp + 0x38], 1
jne 0x14009dbcc
bts ebp, 0x15
jmp 0x14009dc0a
mov rcx, qword [0x1418b5c30]
cmp rcx, rdi
je 0x14009dc0a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009dc0a
call rax
mov rbx, rax
test rax, rax
je 0x14009dc0a
mov rcx, qword [0x1418b5c38]
cmp rcx, rdi
je 0x14009dc0a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009dc0a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1418b5c28]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009dc2b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14009dc2d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a4f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a4ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a4a0
cmp rcx, 1
jb 0x14000a526
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a4c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000dd1c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a490
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b9b0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000da20
int3
Function at 0x14000a5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5f5
xor al, al
jmp 0x14000a642
cmp word [rbx], 0
je 0x14000a60d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a600
cmp word [rsp + 0x30], 0
je 0x14000a63b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a663
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a620
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b9b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000da20
int3
Function at 0x14000ae60
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001c260
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd30]
lea rsi, [0x14002fd70]
mov rdi, rcx
test r11d, r11d
jne 0x14000aed9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a670
test al, al
je 0x14000afbf
lea rcx, [rsp + 0x20]
call fcn.14001134c
movsxd r11, dword [0x14002dd30]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd30], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000af14
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000af04
add rax, 2
test ecx, ecx
jne 0x14000aef0
test edx, edx
je 0x14000af37
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000aee4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000af20
cmp rax, 2
jne 0x14000af3b
cmp word [rdi + 2], 0x3a
jne 0x14000af3b
mov al, 1
jmp 0x14000af9e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000af68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000af68
mov bl, 1
jmp 0x14000af6c
test bl, bl
je 0x14000af93
cmp dword [0x14002dd30], 0x400
jge 0x14000af93
mov rcx, rdi
call fcn.14001134c
movsxd rdx, dword [0x14002dd30]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd30], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b9b0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ad00
int3
Function at 0x14000b0e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd38]
test rcx, rcx
je 0x14000b11b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b10e
mov rcx, qword [0x14002dd38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031d88], 0
je 0x14000b20e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025930]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002dd70]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b1ef
test al, 0x10
je 0x14000b1ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b195
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000da14
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d8a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d8a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d8a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d8a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d8a7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d8a7
cmp dword [rcx + 0xf8], 0
je 0x14000d8a7
mov ecx, ebx
call fcn.14000d948
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d738
cmp dword [rbp + 0x20], 0
je 0x14000d8f4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d8fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d840
Function at 0x180001cb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov r15, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180001da0
test r9, r9
je 0x180001da0
movsxd r10, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div r10
test rdx, rdx
jne 0x180001da0
mov qword [rsp + 0x48], r14
xor r14d, r14d
test rax, rax
je 0x180001d90
mov qword [rsp + 0x40], rbp
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1800014f0
cmp byte [rbx + 8], 0
mov rax, rdi
je 0x180001d55
xor edx, edx
cmp dword [rbx + 0x3d0], edx
jle 0x180001d55
lea r8, [rbx + 0x3f8]
sub r8, rdi
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001d40
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rsi
call fcn.1800045e0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r15
inc r14d
div rcx
add rsi, rcx
add rdi, rcx
movsxd rcx, r14d
cmp rcx, rax
jb 0x180001d10
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
nop word [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x180003150
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov word [rsp + 0x18], r8w
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x80]
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x20], esi
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rax], esi
xor ecx, ecx
mov rax, qword [rsp + 0x78]
mov qword [rax], rsi
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x180003282
mov qword [rsp + 0x38], rsi
mov r8d, 0x1bb
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_InternetConnectA]
test rax, rax
je 0x180003282
mov qword [rsp + 0x38], rsi
lea r9, str.HTTP_1.1
mov dword [rsp + 0x30], 0x84c02100
lea rdx, str.POST
mov qword [rsp + 0x28], rsi
mov r8, rdi
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
je 0x180003282
lea r9d, [rsi + 4]
mov dword [rsp + 0x70], 0x3180
lea r8, [rsp + 0x70]
mov rcx, rax
lea edx, [rsi + 0x1f]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r9d, [rsi + 4]
mov dword [rsp + 0x60], 0x493e0
lea r8, [rsp + 0x60]
mov rcx, rbx
lea edx, [rsi + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r9d, [rsi + 4]
mov rcx, rbx
lea r8, [rsp + 0x60]
lea edx, [rsi + 6]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r9d, [rsi + 4]
mov rcx, rbx
lea r8, [rsp + 0x60]
lea edx, [rsi + 5]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180003410
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rbx, rcx
mov dword [rbp + 0x17], 0x61657243
lea rcx, str.kernel32.dll
mov dword [rbp + 0x1b], 0x69466574
mov r15, rdx
mov dword [rbp + 0x1f], 0x614d656c
mov dword [rbp + 0x23], 0x6e697070
mov word [rbp + 0x27], 0x4167
mov byte [rbp + 0x29], 0
mov dword [rbp - 0x19], 0x5670614d
mov dword [rbp - 0x15], 0x4f776569
mov dword [rbp - 0x11], 0x6c694666
mov word [rbp - 0xd], 0x65
mov dword [rbp + 7], 0x616d6e55
mov dword [rbp + 0xb], 0x65695670
mov dword [rbp + 0xf], 0x46664f77
mov dword [rbp + 0x13], 0x656c69
mov dword [rbp - 9], 0x74726956
mov dword [rbp - 5], 0x506c6175
mov dword [rbp - 1], 0x65746f72
mov word [rbp + 3], 0x7463
mov byte [rbp + 5], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32.dll
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32.dll
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r13d, r13d
xor r9d, r9d
mov edx, 0x80000000
mov qword [0x180024cb8], rax
mov qword [rsp + 0x30], r13
mov rcx, rbx
mov dword [rsp + 0x28], r13d
lea r8d, [r13 + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180003575
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_open_ntdll.dll__u
call fcn.1800032b0
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 0x1000002
mov rcx, rdi
call rsi
mov rbx, rax
test rax, rax
jne 0x1800035b4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.file_mapping_failed__u
call fcn.1800032b0
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 4]
call r14
mov rsi, rax
test rax, rax
jne 0x1800035f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.mapping_failed__u
call fcn.1800032b0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rsi
call fcn.180003310
mov rcx, rsi
call r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x90]
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
Function at 0x180007cb8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180007ad8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007ad8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180007ad8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180007ad8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007ad8
cmp dword [rcx + 0x84], 0xe
jbe 0x180007ad8
cmp dword [rcx + 0xf8], esi
je 0x180007ad8
mov ecx, r14d
call fcn.180007c20
mov ecx, 2
call fcn.18000af90
nop
cmp byte [0x180023d28], 0
jne 0x180007ba2
mov r15d, 1
mov eax, r15d
xchg dword [0x180023d18], eax
test ebx, ebx
jne 0x180007b4b
mov rdi, qword [0x180023018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x180023d20]
cmp rcx, rax
je 0x180007b42
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.180002020]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x180023e78]
jmp 0x180007b57
cmp ebx, r15d
jne 0x180007b5d
lea rcx, [0x180023e90]
call fcn.180009fa8
nop
test ebx, ebx
jne 0x180007b74
lea rdx, [0x180015308]
lea rcx, [0x1800152e8]
call fcn.18000a200
lea rdx, [0x180015318]
lea rcx, [0x180015310]
call fcn.18000a200
movzx eax, byte [0x180023d28]
test esi, esi
cmove eax, r15d
mov byte [0x180023d28], al
jmp 0x180007ba2
mov ecx, 2
call fcn.18000afe4
test esi, esi
jne 0x180007bb9
mov ecx, r14d
call fcn.180007bd4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x180007a68
Function at 0x141aa53c8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141aa554f
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 0x141aa53f9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141aa53df
add dl, dl
jne 0x141aa5406
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141aa5466
xor eax, eax
add dl, dl
jne 0x141aa5415
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141aa551d
add dl, dl
jne 0x141aa5426
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141aa5433
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141aa5440
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141aa544d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141aa545a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141aa53ee
mov eax, 1
add dl, dl
jne 0x141aa5476
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141aa5483
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141aa546b
sub eax, ebx
mov ebx, 1
jne 0x141aa54bc
mov ecx, 1
add dl, dl
jne 0x141aa549e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141aa54ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141aa5493
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141aa53ee
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141aa54d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141aa54e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141aa54cd
cmp eax, 0x7d00
jae 0x141aa550b
cmp eax, 0x500
jb 0x141aa5506
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141aa53ee
cmp eax, 0x7f
ja 0x141aa550e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141aa53ee
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141aa5542
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 0x141aa53ee
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20