joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067f2c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x68]
mov r14, rax
inc ecx
movsxd rcx, ecx
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x68]
xor esi, esi
mov qword [rdi], rax
test ecx, ecx
jle 0x140068043
xor ebx, ebx
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
mov r8, qword [rbx + r14]
and qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jle 0x14006801d
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
xor edx, edx
mov r8, qword [rbx + r14]
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov rbp, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
je 0x140067ffe
mov rcx, qword [rdi]
mov qword [rbx + rcx], rbp
jmp 0x140068031
lea rcx, [0x14011a8e4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [rdi]
mov qword [rbx + rcx], rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140068031
lea rcx, [0x14011a8e4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [rdi]
mov qword [rbx + rcx], rax
mov ecx, dword [rsp + 0x68]
inc esi
add rbx, 8
cmp esi, ecx
jl 0x140067f87
mov rax, qword [rdi]
movsxd rcx, ecx
and qword [rax + rcx*8], 0
mov rcx, r14
call qword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400684c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
movsxd r14, r9d
mov rbp, r8
mov r15, rdx
call qword [sym.imp.kernel32.dll_GetLogicalDrives]
mov edi, eax
lea ebx, [rsi + 0x41]
test dil, 1
je 0x14006851b
mov rdx, r14
lea r8, str._c:_
mov r9d, ebx
mov rcx, rbp
call fcn.14006ee9c
mov r8, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, r15
call fcn.14008416c
inc esi
inc ebx
shr edi, 1
cmp ebx, 0x5a
jle 0x1400684ee
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400688e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rbx, rax
test eax, eax
jle 0x14006891a
movsxd rcx, ebx
mov al, byte [rcx + rdi - 1]
cmp al, 0x2f
je 0x140068918
cmp al, 0x5c
jne 0x14006891a
dec ebx
mov esi, 1
cmp ebx, esi
jge 0x140068927
xor eax, eax
jmp 0x14006898c
cmp ebx, 2
jne 0x140068960
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x140068960
cmp byte [rdi + 1], 0x3a
jne 0x140068960
mov al, byte [rdi]
lea rdx, [0x14012104c]
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x40], al
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rdi, [rsp + 0x40]
mov ebx, 3
mov r8d, ebx
lea rdx, [0x140145db0]
mov rcx, rdi
call fcn.140069640
mov rcx, qword [0x140145db0]
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140068988
test al, 0x10
jne 0x14006898a
xor esi, esi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140068ef8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
mov rcx, rdx
or r8d, 0xffffffff
lea rdx, [0x140145db0]
call fcn.140069640
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
Function at 0x14006924c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rax, r8
mov rdi, rdx
test r8, r8
je 0x140069278
movsxd rdx, r9d
lea r8, str.open__s
mov r9, rdi
mov rcx, rax
call fcn.14006ee9c
mov dword [rsp + 0x28], 5
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.shell32.dll_ShellExecuteA]
cmp rax, 0x20
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400692d8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140145e38]
mov rsi, r9
mov ebx, r8d
test rax, rax
jne 0x14006930b
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140145e38], rax
neg bl
mov qword [rsp + 0x20], rax
sbb edx, edx
xor r9d, r9d
and edx, 0xfffffff7
xor r8d, r8d
add edx, 0x23
xor ecx, ecx
call qword [sym.imp.shell32.dll_SHGetFolderPathW]
test eax, eax
je 0x140069333
xor eax, eax
jmp 0x1400693ed
mov rcx, qword [0x140145e38]
lea rdx, [rsp + 0x30]
and qword [rsp + 0x30], 0
call fcn.140069be8
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x140145e38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x140069370
cmp byte [rsi], 0
jne 0x140069377
lea rsi, str.unknown
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140069386
cmp byte [rdi], 0
jne 0x14006938d
lea rdi, str.unknown
mov rcx, qword [0x140145e38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [0x140145e38]
mov ebx, 0x800
sub rbx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, qword [0x140145e38]
lea r8, str.__s__s.prefs
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rbx
call fcn.14006ee9c
mov rax, qword [0x140145e38]
mov rcx, rax
mov dl, byte [rax]
jmp 0x1400693e9
cmp dl, 0x5c
jne 0x1400693e4
mov byte [rcx], 0x2f
inc rcx
mov dl, byte [rcx]
test dl, dl
jne 0x1400693dc
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140069488
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
mov rcx, rdx
or r8d, 0xffffffff
lea rdx, [0x140145db0]
call fcn.140069640
or r8d, 0xffffffff
lea rdx, [0x140145db8]
mov rcx, rbx
call fcn.140069640
mov rdx, qword [0x140145db8]
mov rcx, qword [0x140145db0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]

Function at 0x1400694d4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
mov rcx, rdx
or r8d, 0xffffffff
lea rdx, [0x140145db0]
call fcn.140069640
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]

Function at 0x1400694fc
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov rcx, rdx
or r8d, 0xffffffff
lea rdx, [0x140145db0]
call fcn.140069640
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
Function at 0x14006af60
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x30
lea eax, [rcx + 7]
mov esi, edx
cdq
mov r14d, ecx
and edx, 7
mov r15, r8
lea edi, [rdx + rax]
lea eax, [rcx + 0xf]
sar edi, 3
cdq
and edx, 0xf
lea ebx, [rdx + rax]
sar ebx, 4
add ebx, ebx
mov ecx, ebx
imul ecx, esi
movsxd rcx, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
mov r9, rax
mov r8d, 1
test esi, esi
jle 0x14006b005
sub ebx, edi
lea r12, [0x140139260]
movsxd rbx, ebx
mov r10d, esi
test edi, edi
jle 0x14006affd
mov r11, rdi
movzx edx, byte [r15]
add r15, r8
mov eax, edx
shr rdx, 4
and eax, 0xf
mov cl, byte [rax + r12]
mov al, cl
xor al, byte [rdx + r12]
and al, 0xf
xor al, cl
mov byte [r9], al
add r9, r8
sub r11, r8
jne 0x14006afd4
add r9, rbx
sub r10, r8
jne 0x14006afcd
mov r9d, r8d
mov qword [rsp + 0x20], rbp
mov edx, esi
mov ecx, r14d
call qword [sym.imp.gdi32.dll_CreateBitmap]
mov rcx, rbp
mov rbx, rax
call fcn.140031d40
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140070410
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140070445
call fcn.1400705ec
cmp byte [rbx + 0x58], 0
je 0x14007043c
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x14007044e
cmp dword [rcx + 0x24], 0xcb
jne 0x1400704c5
mov rax, qword [rbx + 0x240]
cmp byte [rax + 0x20], 0
je 0x1400704b7
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140070469
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1400704af
cmp eax, 2
je 0x1400704b7
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007045b
dec eax
test eax, 0xfffffffd
jne 0x14007045b
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x14007045b
mov ecx, dword [rbx + 0x190]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x14007045b
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov dword [rbx + 0xa4], eax
jmp 0x1400704e9
cmp dword [rcx + 0x24], 0xcc
je 0x1400704e9
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x15
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400704f8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, 0xcc
lea r14, [rcx + 0x220]
lea rsi, [rcx + 0x98]
mov rdi, rcx
cmp dword [rcx + 0x24], ebx
je 0x14007058b
mov rax, qword [r14]
call qword [rax]
mov dword [rdi + 0x24], ebx
jmp 0x140070588
mov eax, dword [rsi]
jmp 0x140070572
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140070555
mov dword [rcx + 8], eax
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rdi
mov rax, qword [rdi + 0x10]
call qword [rax]
mov rax, qword [rdi + 0x228]
xor r9d, r9d
mov ebx, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rdi
call qword [rax + 8]
mov eax, dword [rsi]
cmp eax, ebx
je 0x1400705be
cmp eax, dword [rdi + 0x78]
jb 0x140070536
mov rax, qword [r14]
mov rcx, rdi
call qword [rax + 8]
mov rax, qword [r14]
mov rcx, rdi
call qword [rax]
and dword [rsi], 0
mov rax, qword [r14]
cmp byte [rax + 0x10], 0
jne 0x140070532
mov al, byte [rdi + 0x59]
neg al
mov al, 1
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov dword [rdi + 0x24], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x1400705a8
Function at 0x14007d794
Capabilities:
Read file on windows

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, 0x20
and dword [r9], 0
mov rdi, r9
xor r10d, r10d
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
mov r14d, 0x40000000
mov ecx, dword [rbx + 0x1c]
mov r8d, esi
sub r8d, r10d
mov edx, r10d
cmp r8d, r14d
cmova r8d, r14d
add rdx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
test eax, eax
jle 0x14007d7f6
mov r10d, dword [rdi]
add r10d, eax
mov dword [rdi], r10d
cmp r10d, esi
jb 0x14007d7c6
test eax, eax
jns 0x14007d81a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
or edi, 0xffffffff
mov rcx, rbx
mov r8, rax
mov edx, edi
call fcn.14007d074
mov eax, edi
jmp 0x14007d827
test eax, eax
jne 0x14007d825
mov dword [rbx + 0x50], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140084074
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, edx
call fcn.140084090
mov ecx, eax
call qword [sym.imp.user32.dll_GetKeyState]
cwde
and eax, 0xfffffffe
add rsp, 0x28
ret

Function at 0x140084118
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x140139980]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x20]
mov ebx, edx
call qword [sym.imp.user32.dll_GetKeyboardState]
mov ecx, ebx
call fcn.140084090
movsxd rcx, eax
movzx eax, byte [rsp + rcx + 0x20]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400a6970
add rsp, 0x130
pop rbx
ret
Function at 0x140085ff0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rcx + 8], 0
mov rdi, rcx
call fcn.14002f6d0
mov edx, 0xa0
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.14009acb8
mov rbx, rax
test rax, rax
jne 0x140086040
mov rcx, rdi
call fcn.140030f28
mov rcx, qword [rdi]
mov dword [rcx + 0x28], 0x38
mov rcx, qword [rdi]
and dword [rcx + 0x2c], ebx
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx]
lea rax, [fcn.140085bf0]
mov dword [rbx + 0x5c], 0x3b9aca00
mov qword [rbx], rax
mov ecx, 1
lea rax, [fcn.140085a54]
mov qword [rbx + 8], rax
lea rax, [fcn.140085b1c]
mov qword [rbx + 0x10], rax
lea rax, [fcn.140085970]
mov qword [rbx + 0x18], rax
lea rax, [0x1400863dc]
mov qword [rbx + 0x20], rax
lea rax, [0x140086340]
mov qword [rbx + 0x28], rax
lea rax, [0x14008617c]
mov qword [rbx + 0x30], rax
lea rax, [0x1400857f0]
mov qword [rbx + 0x38], rax
lea rax, [0x14008566c]
mov qword [rbx + 0x40], rax
lea rax, [fcn.140085ebc]
mov qword [rbx + 0x48], rax
lea rax, [0x140086478]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
lea rax, [rbx + 0x78]
and qword [rax - 0x10], 0
and qword [rax], 0
lea rax, [rax - 8]
sub rcx, 1
jns 0x1400860cf
and qword [rbx + 0x80], 0
lea rcx, str.JPEGMEM
and qword [rbx + 0x88], 0
mov qword [rbx + 0x90], 0xa0
mov qword [rdi + 8], rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140086156
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.14004ac94
test eax, eax
jle 0x140086156
mov al, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x140086149
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x14008614d
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008cb50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, dword [rcx + 0x64]
mov rbx, rcx
mov rsi, qword [rcx + 0x270]
cmp r15d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rsi
sete al
mov edx, 1
mov byte [rsi + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rbx + 0x7c]
cmovne r8d, ecx
mov rcx, rbx
call qword [rax + 0x10]
mov qword [rsi + 0x30], rax
xor edi, edi
mov eax, dword [rsi + 0x28]
cmp dword [rbx + 0x7c], edi
jle 0x14008cc87
xor r10d, r10d
lea r14, [rsi + 0x3c]
mov ecx, dword [r14]
cdq
idiv ecx
mov dword [rsp + 0x60], eax
cmp r15d, 1
jne 0x14008cbd8
mov rax, qword [rsi + 0x30]
add qword [rax + r10], 0xff
mov rax, qword [rsi + 0x30]
lea r9d, [rcx - 1]
xor r8d, r8d
mov edx, edi
mov rcx, rbx
xor r13d, r13d
mov r11, qword [r10 + rax]
call fcn.14008cf78
mov esi, dword [rsp + 0x60]
xor ebp, ebp
xor r12d, r12d
mov r8d, eax
cmp ebp, r8d
jle 0x14008cc1c
inc r13d
mov edx, edi
mov r8d, r13d
mov rcx, rbx
call fcn.14008cf78
mov r8d, eax
cmp ebp, eax
jg 0x14008cc05
movzx eax, r13b
inc ebp
movzx ecx, sil
imul ecx, eax
mov byte [r12 + r11], cl
inc r12
cmp r12, 0xff
jle 0x14008cc00
mov rsi, qword [rsp + 0x68]
cmp r15d, 1
jne 0x14008cc70
mov ecx, 1
lea rdx, [r11 - 1]
mov al, byte [r11]
mov byte [rdx], al
dec rdx
mov al, byte [r11 + 0xff]
mov byte [r11 + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x14008cc4d
mov eax, dword [rsp + 0x60]
inc edi
add r14, 4
add r10, 8
cmp edi, dword [rbx + 0x7c]
jl 0x14008cbbc
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140094320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
cmp byte [rcx + 0x290], r9b
je 0x140094363
cmp dword [rcx + 0x180], r9d
jbe 0x140094363
mov rax, qword [rcx + 0x178]
mov r8b, byte [rax]
and r8b, 0xf0
cmp r8b, 0x70
jbe 0x14009435c
lea rax, str.invalid_window_size__libpng_
mov qword [rcx + 0x198], rax
lea eax, [r9 - 3]
ret
mov byte [rcx + 0x290], r9b
add rcx, 0x178
jmp fcn.14007b6b4
Function at 0x14009511c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8d, 4
movzx edx, cl
lea rax, [0x140128bd0]
shr ecx, 8
xor ecx, dword [rax + rdx*4]
sub r8, 1
jne 0x140095122
mov eax, ecx
ret
Function at 0x140095144
Capabilities:
Encode data using xor

Disassembly:
mov r8d, r8d
jmp 0x140095144
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r11, r8
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x14009516d
xor eax, eax
jmp 0x1400953f2
lea r15, [0x140000000]
not r9d
cmp r8, 0x17
jb 0x140095383
test r10b, 3
je 0x1400951a9
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x128bd0]
sub r11, 1
jne 0x140095181
movabs rax, 0xcccccccccccccccd
xor edi, edi
mul r11
xor esi, esi
xor ebp, ebp
mov rbx, rdx
xor r14d, r14d
shr rbx, 4
lea rax, [rbx + rbx*4]
shl rax, 2
sub r11, rax
sub rbx, 1
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], rbx
je 0x14009533c
xor r9d, dword [r10]
lea rdx, [0x140000000]
xor edi, dword [r10 + 4]
mov r12d, 1
xor esi, dword [r10 + 8]
xor ebp, dword [r10 + 0xc]
xor r14d, dword [r10 + 0x10]
movzx eax, r9b
add r10, 0x14
mov r13d, r9d
mov r11d, edi
mov ebx, esi
mov r9d, dword [r15 + rax*4 + 0x1293d0]
movzx eax, dil
mov qword [rsp + 0x78], r10
mov edi, dword [r15 + rax*4 + 0x1293d0]
movzx eax, sil
mov esi, dword [r15 + rax*4 + 0x1293d0]
mov eax, ebp
mov qword [rsp + 0x20], rax
mov r10, qword [rsp + 0x20]
movzx eax, bpl
mov ebp, dword [r15 + rax*4 + 0x1293d0]
mov eax, r14d
mov qword [rsp + 0x28], rax
movzx eax, r14b
mov r14d, dword [r15 + rax*4 + 0x1293d0]
mov r15d, 0x100
lea eax, [r12*8]
inc r12d
movsxd r8, eax
mov rax, r13
mov rcx, r8
shr rax, cl
movzx ecx, al
mov rax, r11
add rcx, r15
xor r9d, dword [rdx + rcx*4 + 0x1293d0]
mov rcx, r8
shr rax, cl
movzx ecx, al
mov rax, rbx
add rcx, r15
xor edi, dword [rdx + rcx*4 + 0x1293d0]
mov rcx, r8
shr rax, cl
movzx edx, al
lea rax, [0x140000000]
add rdx, r15
xor esi, dword [rax + rdx*4 + 0x1293d0]
mov rax, r10
shr rax, cl
movzx edx, al
lea rax, [0x140000000]
add rdx, r15
xor ebp, dword [rax + rdx*4 + 0x1293d0]
lea rdx, [0x140000000]
mov rax, qword [rsp + 0x28]
shr rax, cl
movzx ecx, al
add rcx, r15
add r15, 0x100
xor r14d, dword [rdx + rcx*4 + 0x1293d0]
cmp r12d, 4
jl 0x140095272
sub qword [rsp + 0x88], 1
lea r15, [0x140000000]
mov r10, qword [rsp + 0x78]
jne 0x1400951eb
mov r11, qword [rsp + 0x80]
lea r15, [0x140000000]
xor r9d, dword [r10]
mov ecx, r9d
call fcn.14009511c
xor eax, dword [r10 + 4]
xor eax, edi
mov ecx, eax
call fcn.14009511c
xor eax, dword [r10 + 8]
xor eax, esi
mov ecx, eax
call fcn.14009511c
xor eax, dword [r10 + 0xc]
xor eax, ebp
mov ecx, eax
call fcn.14009511c
xor eax, dword [r10 + 0x10]
xor eax, r14d
mov ecx, eax
call fcn.14009511c
mov r9d, eax
add r10, 0x14
cmp r11, 8
jb 0x1400953c5
mov rdx, r11
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add r11, rcx
mov r8d, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x128bd0]
sub r8, 1
jne 0x14009539d
sub rdx, 1
jne 0x140095397
test r11, r11
je 0x1400953ec
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x128bd0]
sub r11, 1
jne 0x1400953ca
not r9d
mov eax, r9d
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a71d0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004c0df0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004c0e00]
mov dword [rax], 1
mov rax, qword [0x004c0e10]
mov dword [rax], 1
mov rax, qword [0x004c0d90]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004c0de0]
mov dword [0x004e7020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004c0f00]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x004c0ee0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004c01b0]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x40bb70
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]