joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180067224
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 0x180067254
xor eax, eax
jmp 0x180067317
mov rbp, rbx
cmp word [rax], si
je 0x180067279
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180067260
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18006725c
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.18006590c
movsxd r14, eax
test eax, eax
jne 0x1800672b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18006724d
mov rcx, r14
call fcn.18005fd9c
mov rdi, rax
test rax, rax
jne 0x1800672d0
xor ecx, ecx
call fcn.18005fd60
jmp 0x1800672ac
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.18006590c
test eax, eax
jne 0x180067301
mov rcx, rdi
call fcn.18005fd60
jmp 0x18006730b
xor ecx, ecx
call fcn.18005fd60
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 0x18006b70c
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.18005fa00
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 0x18006b7ad
cmp ebx, dword [rsp + 0x30]
je 0x18006b7a6
test esi, esi
je 0x18006b7a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18006b781
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18006b78e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18006b76b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18006b792
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18006b7af
mov eax, 1
jmp 0x18006b7af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006f9a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18006f9c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18006f9c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14183f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14183f1df
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 0x14183f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14183f06f
add dl, dl
jne 0x14183f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14183f0f6
xor eax, eax
add dl, dl
jne 0x14183f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14183f1ad
add dl, dl
jne 0x14183f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14183f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14183f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14183f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14183f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14183f07e
mov eax, 1
add dl, dl
jne 0x14183f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14183f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14183f0fb
sub eax, ebx
mov ebx, 1
jne 0x14183f14c
mov ecx, 1
add dl, dl
jne 0x14183f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14183f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14183f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14183f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14183f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14183f15d
cmp eax, 0x7d00
jae 0x14183f19b
cmp eax, 0x500
jb 0x14183f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183f07e
cmp eax, 0x7f
ja 0x14183f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14183f1d2
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 0x14183f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000a900
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000a96f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000a96f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000a96f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000a96f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a96f
cmp dword [rcx + 0x84], 0xe
jbe 0x18000a96f
cmp dword [rcx + 0xf8], 0
je 0x18000a96f
mov ecx, ebx
call fcn.18000aa14
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000a808
nop
cmp dword [rbp + 0x20], 0
jne 0x18000a9d0
call fcn.18000ea1c
cmp eax, 1
jne 0x18000a9c0
xor dl, dl
jmp 0x18000a9ca
call fcn.18000e9e8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18000a9db
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000a9e4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000a900
Function at 0x18001051c
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 0x18001054c
xor eax, eax
jmp 0x18001060f
mov rbp, rbx
cmp word [rax], si
je 0x180010571
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180010558
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180010554
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.18001043c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800105b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180010545
call fcn.18000bae0
mov rdi, rax
test rax, rax
jne 0x1800105c8
xor ecx, ecx
call fcn.18000ba80
jmp 0x1800105a7
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.18001043c
test eax, eax
jne 0x1800105f9
mov rcx, rdi
call fcn.18000ba80
jmp 0x180010603
xor ecx, ecx
call fcn.18000ba80
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 0x180012cf8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180012d0e
mov al, 1
jmp 0x180012d7a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180012d1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180012d78
mov ecx, dword [rcx + 0x18]
nop
call fcn.180013668
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012d78
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180012d78
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180012d78
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180012d7a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180017320
Capabilities:
Parse pe header

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

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140032738], rbx
je 0x14001ad27
cmp rax, rbx
jne 0x14001ad1a
mov ebx, 1
mov esi, ebx
jmp 0x14001ad2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001acff
mov ebx, 1
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001ad44
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001adb0
mov eax, dword [0x140032740]
test eax, eax
jne 0x14001ada5
mov dword [0x140032740], ebx
lea r15, [0x1400206d8]
lea rdi, [0x1400206c0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14001ad97
test eax, eax
jne 0x14001ad9b
cmp qword [rdi], r14
je 0x14001ad8c
mov rax, qword [rdi]
mov rcx, qword [0x140020620]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001ad6e
test eax, eax
je 0x14001adab
mov eax, 0xff
jmp 0x14001af06
mov dword [0x140031ff0], ebx
mov edi, 0x1f
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001add7
lea rdx, [0x1400206b8]
lea rcx, [0x140020628]
call sub.msvcrt.dll__initterm
mov dword [0x140032740], 2
test esi, esi
jne 0x14001ade5
mov rax, r14
xchg qword [0x140032738], rax
cmp qword [0x140032758], r14
je 0x14001ae18
lea rcx, [0x140032758]
call fcn.14001b3b0
test eax, eax
je 0x14001ae18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140032758]
mov r9, qword [0x140020620]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001ae31
mov eax, 0xff
jmp 0x14001af06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001aeb7
test ax, ax
je 0x14001ae4c
test edx, edx
jne 0x14001aeb7
sub ax, bx
cmp ax, di
ja 0x14001ae62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001ae4c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140004034
mov dword [0x140031fec], eax
cmp dword [0x140032010], r14d
jne 0x14001aea0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140031ff0], r14d
jne 0x14001aeb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140031fec]
jmp 0x14001af06
cmp ax, 0x22
jne 0x14001aecb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001ae3a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140168000
add rsp, 0x28
jmp 0x14001acc0
Function at 0x180001a30
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x470
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp qword [0x180031df0], 0
jne 0x180001b83
mov eax, dword [0x180031de8]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 8
jne 0x180001aac
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea rcx, [0x1800306a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x180031df0], 0
jne 0x180001ae7
mov ecx, 0xb8
call fcn.18000c438
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180001ae0
mov rcx, rax
call fcn.1800047f8
nop
mov qword [0x180031df0], rax
lea rcx, [0x1800306a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9d, dword [0x180031de8]
lea ecx, [r9 + 1]
imul ecx, r9d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 3
jne 0x180001b83
xor edi, edi
lea rsi, [rsp + 0x40]
xor r10d, r10d
lea ebx, [r10 + 1]
lea ecx, [rdi + 1]
mov eax, r9d
cdq
idiv ecx
mov r8d, edx
mov ecx, r9d
sub ecx, edi
imul r8d, ecx
mov eax, r9d
cdq
idiv ebx
add r8d, eax
sub r8d, r10d
mov edx, r8d
lea rcx, [0x180026cb8]
call fcn.18000cfd8
mov r10d, ebx
add rsi, 4
cmp ebx, 0x18
jge 0x180001b73
mov r9d, dword [0x180031de8]
jmp 0x180001b2a
inc edi
cmp edi, 0xb
jge 0x180001b83
mov r9d, dword [0x180031de8]
jmp 0x180001b27
mov rax, qword [0x180031df0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18000bd80
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180006724
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [0x180031de8]
mov eax, 0x2aaaaaab
mov bl, 1
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 6
jne 0x18000679f
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
xor ebx, ebx
imul ecx, eax
mov eax, 0x92492493
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 3
jne 0x18000679f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov al, bl
add rsp, 0x30
pop rbx
ret
Function at 0x180007c50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180007c93
mov qword [0x180031df8], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180007b3c]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180007c98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x55
add rsp, 0x38
ret
Function at 0x180008518
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [str.chrome.dll]
mov rbx, rcx
lea r8, str.chrome.dll
mov qword [rbp - 0x20], rax
mov rax, qword [0x180027180]
lea rdx, [0x180009b74]
mov qword [rbp - 0x18], rax
mov eax, dword [0x180027188]
lea rcx, [0x180026e38]
mov dword [rbp - 0x10], eax
movzx eax, word [0x18002718c]
mov word [rbp - 0xc], ax
call fcn.1800067f8
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1800086b9
lea r8, [rbp - 0x20]
lea rdx, [0x180009eb4]
lea rcx, str.GetQueuedCompletionStatus
call fcn.1800067f8
mov ecx, dword [0x180031de8]
mov qword [rbx + 0x38], rax
mov eax, 0x2aaaaaab
imul ecx, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x13
jne 0x1800085df
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp qword [rbx + 0x38], 0
je 0x1800086e2
lea r8, str.chrome.dll
lea rdx, [0x180009fc0]
lea rcx, [0x1800271e0]
call fcn.1800067f8
mov ecx, dword [0x180031de8]
mov qword [rbx + 0x48], rax
mov eax, 0x2aaaaaab
imul ecx, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x12
jne 0x180008646
call fcn.18000d08c
mov ecx, dword [0x180031de8]
cmp ecx, eax
jne 0x180008646
dec ecx
mov dword [0x180031de8], ecx
cmp qword [rbx + 0x48], 0
je 0x18000870b
lea r8, str.chrome.dll
lea rdx, [0x180009cf4]
lea rcx, [0x1800271f8]
call fcn.1800067f8
mov qword [rbx + 0x28], rax
test rax, rax
je 0x180008734
lea r8, str.chrome.dll
lea rdx, [0x180009bf8]
lea rcx, [0x180027220]
call fcn.1800067f8
mov qword [rbx + 0x30], rax
test rax, rax
je 0x18000875d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000bd80
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
lea rax, str.Failure_to_hook_0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x40], rax
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
lea rax, str.Failure_to_hook_1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x40], rax
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
lea rax, str.Failure_to_hook_1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x40], rax
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
lea rax, str.Failure_to_hook_2
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x40], rax
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
lea rax, str.Failure_to_hook_3
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x40], rax
call fcn.18000ce08
lea rdx, [0x18002d958]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
Function at 0x140bd04d0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bd0657
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 0x140bd0501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd04e7
add dl, dl
jne 0x140bd050e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd056e
xor eax, eax
add dl, dl
jne 0x140bd051d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd0625
add dl, dl
jne 0x140bd052e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd053b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd0548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd0555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bd0562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bd04f6
mov eax, 1
add dl, dl
jne 0x140bd057e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd058b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd0573
sub eax, ebx
mov ebx, 1
jne 0x140bd05c4
mov ecx, 1
add dl, dl
jne 0x140bd05a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd05b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd059b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd04f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bd05e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd05ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd05d5
cmp eax, 0x7d00
jae 0x140bd0613
cmp eax, 0x500
jb 0x140bd060e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd04f6
cmp eax, 0x7f
ja 0x140bd0616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd04f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bd064a
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 0x140bd04f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x40147c
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x00421f60]
mov dword [rax], 1
mov rax, qword [0x00421f70]
mov dword [rax], 1
mov rax, qword [0x00421f80]
mov dword [rax], 1
mov rax, qword [0x00421f50]
mov dword [rax], 1
mov rax, qword [0x00421e30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014da
mov eax, 0
jmp 0x401587
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x401506
mov eax, 0
jmp 0x401587
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x40152c
cmp eax, 0x20b
je 0x401553
jmp 0x401582
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x40153f
mov eax, 0
jmp 0x401587
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401587
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x40156e
mov eax, 0
jmp 0x401587
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401587
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x4042d8
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x404308
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x40430d
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x40e505
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret