joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov eax, r8d
mov rbp, rdx
mov qword [rsp + 0x40], rsi
shr eax, 4
add ax, 1
mov ebx, r8d
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x401da5
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x401da5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x401da5
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x401ce6
nop
cmp rdi, r11
jae 0x401da5
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x401cd0
cmp rdi, r11
jae 0x401da5
movzx eax, word [rdi]
test ax, ax
je 0x401da5
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x401d1c
mov edx, ebx
mov rcx, rsi
call fcn.00401ac0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x401d3c
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.004138d0
test eax, eax
je 0x401d7b
cmp eax, 0xc
je 0x401d75
cmp eax, 0x16
je 0x401d6f
cmp eax, 0x22
je 0x401d6f
cmp eax, 0x50
je 0x401d7b
call fcn.0040e5c4
int3
call fcn.0040e5c4
int3
call fcn.0040e57c
int3
test ebx, ebx
js 0x401d9a
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x401d9a
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x401da7
mov ecx, 0x80070057
call fcn.00401aa0
int3
xor eax, eax
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x401dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x401e0b
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x401e4f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x401e4a
cmp rbx, r11
jae 0x401e4f
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x401e38
cmp rbx, r11
jb 0x401e53
xor eax, eax
jmp 0x401e5f
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x4179a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0043a0d0]
jne 0x41326a
rol rcx, 0x10
test cx, 0xffff
jne 0x413266
repz ret
ror rcx, 0x10
jmp 0x417900
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043fa30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0043fb28]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x417985
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0043fa30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x4179a7
mov rax, qword [rsp + 0x88]
mov qword [0x0043fb28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043fac8], rax
mov rax, qword [0x0043fb28]
mov qword [0x0043f9a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043fab0], rax
mov dword [0x0043f990], 0xc0000409
mov dword [0x0043f994], 1
mov rax, qword [0x0043a0d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0043a0d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0043fa28], eax
mov ecx, 1
call fcn.00420a80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042f7f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043fa28], 0
jne 0x417a2e
mov ecx, 1
call fcn.00420a80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x420550
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00417270
xor ebx, ebx
cmp qword [0x004402d0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x420681
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x4205b3
xor eax, eax
jmp 0x420761
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4205ac
mov rcx, rax
call fcn.00417200
lea rdx, [0x0042f988]
mov rcx, rbp
mov qword [0x004402d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00417200
lea rdx, [0x0042f970]
mov rcx, rbp
mov qword [0x004402d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00417200
lea rcx, [rsp + 0x30]
mov qword [0x004402e0], rax
call fcn.004134f0
test eax, eax
je 0x420637
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00417fa0
cmp dword [rsp + 0x30], 2
jne 0x420681
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00417200
test rax, rax
mov qword [0x004402f0], rax
je 0x420681
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00417200
mov qword [0x004402e8], rax
mov rcx, qword [0x004402e8]
cmp rcx, rsi
je 0x420713
cmp qword [0x004402f0], rsi
je 0x420713
call fcn.004172d0
call rax
test rax, rax
mov rbp, rax
je 0x4206de
mov rcx, qword [0x004402f0]
call fcn.004172d0
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4206de
test byte [rsp + 0x48], 1
jne 0x420713
lea rcx, [rsp + 0x34]
call fcn.00413540
test eax, eax
je 0x420700
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00417fa0
cmp dword [rsp + 0x34], 4
jb 0x42070d
bts edi, 0x15
jmp 0x420747
bts edi, 0x12
jmp 0x420747
mov rcx, qword [0x004402d8]
cmp rcx, rsi
je 0x420747
call fcn.004172d0
call rax
test rax, rax
mov rbx, rax
je 0x420747
mov rcx, qword [0x004402e0]
cmp rcx, rsi
je 0x420747
call fcn.004172d0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004402d0]
call fcn.004172d0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x7ff754e72050
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 r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x7ff754e72149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x7ff754e72151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x7ff754e7218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x7ff754e72160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x7ff754e721b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x7ff754e721db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x7ff754e721c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
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
ret

Function at 0x7ff754e7a3d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section._________1]
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 0x7ff754e7a475
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x7ff754e7a42d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x7ff754e7a420
cmp rcx, 1
jb 0x7ff754e7a4a6
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 0x7ff754e7a443
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.7ff754e80150
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x7ff754e7a410
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.7ff754e7b7e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.7ff754e7fe14
int3
Function at 0x7ff754e7a530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section._________1]
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 0x7ff754e7a575
xor al, al
jmp 0x7ff754e7a5c2
cmp word [rbx], 0
je 0x7ff754e7a58d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x7ff754e7a580
cmp word [rsp + 0x30], 0
je 0x7ff754e7a5bb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x7ff754e7a5e3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x7ff754e7a5a0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff754e7b7e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.7ff754e7fe14
int3
Function at 0x7ff754e7ad70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.7ff754e8ffc0
sub rsp, rax
mov rax, qword [section._________1]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x7ff754ea0dd4]
lea rsi, [0x7ff754ea5e10]
mov rdi, rcx
test r11d, r11d
jne 0x7ff754e7ade9
mov r8d, 0x1000
lea rdx, [0x7ff754e9a8a8]
lea rcx, [rsp + 0x20]
call fcn.7ff754e7a5f0
test al, al
je 0x7ff754e7aec9
lea rcx, [rsp + 0x20]
call fcn.7ff754e84510
movsxd r11, dword [0x7ff754ea0dd4]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x7ff754ea0dd4], r11d
xor r9d, r9d
test r11d, r11d
jle 0x7ff754e7ae24
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 0x7ff754e7ae14
add rax, 2
test ecx, ecx
jne 0x7ff754e7ae00
test edx, edx
je 0x7ff754e7ae47
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x7ff754e7adf4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x7ff754e7ae30
cmp rax, 2
jne 0x7ff754e7ae4b
cmp word [rdi + 2], 0x3a
jne 0x7ff754e7ae4b
mov al, 1
jmp 0x7ff754e7aea8
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 0x7ff754e7ae76
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x7ff754e7ae9d
mov bl, 1
cmp dword [0x7ff754ea0dd4], 0x400
jge 0x7ff754e7ae9d
mov rcx, rdi
call fcn.7ff754e84510
movsxd rdx, dword [0x7ff754ea0dd4]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x7ff754ea0dd4], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.7ff754e7b7e0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, [0x7ff754e9a8a8]
call fcn.7ff754e7ac10
int3
Function at 0x7ff754e7aff0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x7ff754ea0dd8]
test rcx, rcx
je 0x7ff754e7b02b
mov edx, 0x1388
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x7ff754e7b01e
mov rcx, qword [0x7ff754ea0dd8]
xor edx, edx
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [0x7ff754ea0dd8]
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp byte [0x7ff754ea0de8], 0
je 0x7ff754e7b11e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x7ff754e9a8b8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x7ff754ea3610]
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 0x7ff754e7b0ff
test al, 0x10
je 0x7ff754e7b0ff
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 0x7ff754e7b0a5
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 0x7ff754e7c0a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff754e7c0ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff754e7c0ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff754e7c0ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff754e7c0ea
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff754e7c0ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff754e7c0ec
xor al, al
add rsp, 0x28
ret

Function at 0x7ff754e7fe08
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 0x7ff754e7fc73
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff754e7fc73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff754e7fc73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff754e7fc73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff754e7fc73
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff754e7fc73
cmp dword [rcx + 0xf8], 0
je 0x7ff754e7fc73
mov ecx, ebx
call fcn.7ff754e7fd24
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.7ff754e7fb00
nop
cmp dword [rbp + 0x20], 0
je 0x7ff754e7fcc1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.7ff754e7fccc
int3
xor r8d, r8d
xor edx, edx
jmp 0x7ff754e7fc04
Function at 0x7ff754e893f4
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 0x7ff754e8947b
mov rsi, rbx
cmp word [rax], bp
je 0x7ff754e8943a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x7ff754e89424
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x7ff754e89420
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.7ff754e86c24
mov rdi, rax
test rax, rax
je 0x7ff754e89468
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.7ff754e906d0
mov rbp, rdi
xor ecx, ecx
call fcn.7ff754e85c48
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 0x7ff754e8ba44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff754e8ba5a
mov al, 1
jmp 0x7ff754e8baba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff754e8ba6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff754e8bab8
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff754e89b98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff754e8bab8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff754e8bab8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff754e8bab8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff754e8baba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x7ff754e8fed0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x7ff754e8fef8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x7ff754e8fef8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1808ff0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808ff237
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 0x1808ff0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ff0c7
add dl, dl
jne 0x1808ff0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ff14e
xor eax, eax
add dl, dl
jne 0x1808ff0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ff205
add dl, dl
jne 0x1808ff10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ff11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ff128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ff135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808ff142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1808ff0d6
mov eax, 1
add dl, dl
jne 0x1808ff15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ff16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ff153
sub eax, ebx
mov ebx, 1
jne 0x1808ff1a4
mov ecx, 1
add dl, dl
jne 0x1808ff186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ff193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ff17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ff0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1808ff1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ff1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ff1b5
cmp eax, 0x7d00
jae 0x1808ff1f3
cmp eax, 0x500
jb 0x1808ff1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ff0d6
cmp eax, 0x7f
ja 0x1808ff1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ff0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808ff22a
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 0x1808ff0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002980
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800029dd
lea rbx, [0x18006b110]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800029c4
cmp r10, 2
jb 0x1800029c4
cmp byte [r9], r8b
jne 0x1800029c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800029a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180002a1f
lea rbx, [0x18006b110]
cmp r8b, 0x23
jne 0x180002a03
cmp byte [r9], r8b
jne 0x180002a03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800029f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180002b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180002b7a
mov qword [r8], 0
lea rdx, [0x18006ad84]
call fcn.180002a30
mov rbx, rax
test rax, rax
jne 0x180002b9a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180002c71
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002c71
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180002c71
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002c71
cmp rdi, 0xffffffffffffffff
je 0x180002c71
mov rax, qword [0x180085540]
test rax, rax
je 0x180002c0e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180002c71
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180002c5e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180085540]
test rax, rax
je 0x180002c53
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180002c7a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180002c6c
mov qword [r14], rdi
mov rax, rsi
jmp 0x180002c7c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret