joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cc74
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400025e0
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.14000a8d4
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.14000a8d4
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000b1a0]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000c7f4
mov rcx, rdi
mov ebx, eax
call fcn.14000b660
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000e900
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov qword [rcx + 0x20], 0
ret
Function at 0x140010510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [r9]
xor r15d, r15d
mov esi, r8d
and r10d, 7
cmp rdx, 5
mov r14, rcx
mov r11, r15
jae 0x140010548
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
add esi, 5
mov qword [rsp], r13
mov r13d, dword [rsp + 0x60]
or r12, 0xffffffffffffffff
lea rdi, [rcx + rdx - 4]
lea r9, [0x140000000]
nop
nop
lea r8, [r11 + r14]
cmp r8, rdi
jae 0x1400105a3
nop
nop
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x1400105a3
add r8, 1
cmp r8, rdi
jb 0x140010590
mov r11, r8
sub r11, r14
cmp r8, rdi
jae 0x1400106f1
mov rax, r11
sub rax, r12
cmp rax, 3
jbe 0x1400105e2
mov r10d, r15d
movzx eax, byte [r8 + 4]
mov r12, r11
test al, al
je 0x14001062a
cmp al, 0xff
je 0x14001062a
and r10d, 3
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x140010580
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x1400105c1
movzx eax, byte [r10 + r9 + 0x26808]
mov rcx, r8
sub rcx, rax
cmp byte [r10 + r9 + 0x26800], r15b
movzx eax, byte [rcx + 4]
je 0x140010613
test al, al
je 0x140010613
cmp al, 0xff
jne 0x1400105c1
and r10d, 3
mov r12, r11
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x140010580
movzx r9d, al
movzx eax, byte [r8 + 3]
movsxd rbp, r10d
shl r9d, 8
lea r14, [0x140000000]
or r9d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
nop
test r13d, r13d
je 0x14001066d
lea edx, [r11 + r9]
add edx, esi
jmp 0x140010675
mov edx, r9d
sub edx, r11d
sub edx, esi
test r10d, r10d
je 0x1400106b7
movzx ebx, byte [r14 + rbp + 0x26808]
mov ecx, 0x18
mov r9d, edx
shl ebx, 3
sub ecx, ebx
shr r9d, cl
test r9b, r9b
je 0x14001069e
cmp r9b, 0xff
jne 0x1400106b7
mov ecx, 0x20
mov r9d, 1
sub ecx, ebx
shl r9d, cl
sub r9d, 1
xor r9d, edx
jmp 0x140010660
mov r14, qword [rsp + 0x40]
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
lea r9, [0x140000000]
and al, 1
sub al, 1
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
add r11, 5
mov byte [r8 + 2], al
jmp 0x140010580
mov r13, qword [rsp]
mov rdi, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x48]
mov rax, r11
sub rax, r12
mov r12, qword [rsp + 8]
cmp rax, 3
ja 0x140010722
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r15d, r10d
mov rax, qword [rsp + 0x58]
mov dword [rax], r15d
mov rax, r11
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x140017330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
add byte [rcx + 1], 4
mov rax, qword [rbx]
add word [rax + 2], 4
movzx eax, byte [rcx - 5]
cmp byte [rcx + 1], al
jbe 0x140017398
mov eax, dword [rcx]
lea rdx, [rcx - 6]
lea r8, [rsp + 0x30]
mov dword [r8], eax
movzx eax, word [rcx + 4]
mov word [r8 + 4], ax
mov eax, dword [rdx]
mov dword [rcx], eax
movzx eax, word [rdx + 4]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdx], eax
movzx eax, word [rcx + 4]
mov word [rdx + 4], ax
mov qword [rbx + 0x10], rdx
cmp byte [rdx + 1], 0x7c
jbe 0x140017398
mov rcx, rbx
call fcn.1400170f0
mov rcx, qword [rbx + 0x10]
movzx edx, word [rcx + 4]
movzx eax, word [rcx + 2]
shl edx, 0x10
or rdx, rax
add rdx, qword [rbx + 0x40]
cmp dword [rbx + 0x18], 0
jne 0x1400173c7
cmp rdx, qword [rbx + 0x58]
jbe 0x1400173c7
mov qword [rbx + 8], rdx
mov qword [rbx], rdx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140016c30

Function at 0x140018084
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x1400180b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x1400180b4
xor al, al
jmp 0x1400180c7
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400181dc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002bc50]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400181dc

Function at 0x140018210
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002bc50]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400181dc

Function at 0x140018278
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14002bc50]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x1400182b8
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1400180d4
xor ebx, ebx
cmp al, bl
jne 0x1400182e4
xor al, al
jmp 0x1400182f9
cmp qword [rsp + 0x40], rdi
jne 0x1400182e0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140022940
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x14002e3c0]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
add edx, 1
shr eax, 1
and ecx, 1
add r8, 4
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x140022950
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x140022a41
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop
nop
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
sub r9, 1
mov dword [r8 - 4], eax
jne 0x140022a20
lea rax, [0x140022ca0]
mov qword [0x14002e368], rax
call fcn.140022a80
mov rcx, qword [0x14002e368]
lea rdx, [0x140022bb0]
test eax, eax
cmove rcx, rdx
mov qword [0x14002e368], rcx
add rsp, 0x28
ret
Function at 0x14002328c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400303c8], rdi
je 0x1400232e5
cmp rax, rdi
jne 0x1400232d8
mov esi, 1
jmp 0x1400232e5
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x1400232bf
mov eax, dword [0x1400303c0]
cmp eax, 1
jne 0x1400232fa
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002335f
mov eax, dword [0x1400303c0]
test eax, eax
jne 0x140023355
mov dword [0x1400303c0], 1
lea r12, [0x140024820]
lea rdi, [0x140024808]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140023347
test eax, eax
jne 0x140023347
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002333c
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x140023325
test eax, eax
je 0x14002335f
mov eax, 0xff
jmp 0x1400234a9
mov dword [0x14002e394], 1
mov eax, dword [0x1400303c0]
cmp eax, 1
jne 0x140023387
lea rdx, [0x140024800]
lea rcx, [0x140024720]
call sub.msvcrt.dll__initterm
mov dword [0x1400303c0], 2
test esi, esi
jne 0x140023394
xor eax, eax
xchg qword [0x1400303c8], rax
cmp qword [0x1400303d0], 0
je 0x1400233bd
lea rcx, [0x1400303d0]
call fcn.140023698
test eax, eax
je 0x1400233bd
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400303d0]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x140023448
cmp byte [rdi], 0
je 0x1400233de
test esi, esi
jne 0x140023448
cmp byte [rdi], 0
je 0x1400233f2
cmp byte [rdi], 0x20
ja 0x1400233f2
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400233de
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000a34c
mov dword [0x14002e390], eax
cmp dword [0x14002e374], 0
jne 0x140023431
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002e394], 0
jne 0x140023446
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002e390]
jmp 0x1400234a9
cmp byte [rdi], 0x22
jne 0x14002345a
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002346f
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400233d0
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.14002378c
add rsp, 0x28
jmp 0x14002328c
Function at 0x1400236ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140023739
cmp rcx, 0xffffffffffffffff
je 0x140023739
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023731
cmp dword [rcx + 0x3c], edx
jl 0x140023731
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140023731
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140023739
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14025d440
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14025d44d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14025d45d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14025d445
lea eax, [rcx + 1]
jmp 0x14025d46b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14025d47e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14025d464
sub eax, 3
jb 0x14025d49e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14025d4ed
sar eax, 1
movsxd rbp, eax
jb 0x14025d4d4
jmp 0x14025d4ac
add ebx, ebx
jne 0x14025d4aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14025d4d4
inc ecx
add ebx, ebx
jne 0x14025d4ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14025d4d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14025d4cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14025d4bc
add ecx, 2
jmp 0x14025d4d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14025d402
jmp 0x14025d44d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1f000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14025d539
cmp rsi, rcx
jae 0x14025d541
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14025d520
cmp al, 0x8f
ja 0x14025d520
cmp byte [rsi - 2], 0xf
je 0x14025d526
sub al, 0xe8
cmp al, 1
ja 0x14025d50a
cmp rsi, rcx
jae 0x14025d541
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14025d510
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14025d541
lodsb al, byte [rsi]
jmp 0x14025d520
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25b000]
mov eax, dword [rdi]
or eax, eax
je 0x14025d5aa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x26d5b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14025d54e
jns 0x14025d583
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14025d58d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14025d5a4
mov qword [rbx], rax
add rbx, 8
jmp 0x14025d56e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14025d5ee
cmp al, 0xef
ja 0x14025d5d6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14025d5b6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14025d5c5
mov eax, dword [rdi]
add rdi, 4
jmp 0x14025d5c5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14025d642
sub rsp, 0xffffffffffffff80
jmp 0x140003718
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140016f20]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140016f30]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14001a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140016e90]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000dc40
mov rcx, qword [0x140016fb0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140016f10]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000da50
mov ebx, dword [0x14001a028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x14001a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x14001a020], rbp
call fcn.14000d790
mov rax, qword [0x140016ea0]
mov r8, qword [0x14001a018]
mov ecx, dword [0x14001a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14001a020]
call fcn.14000d7b0
mov ecx, dword [0x14001a00c]
mov dword [0x14001a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14001a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140016f30]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000f010
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140016f50]
mov rcx, qword [0x140016f40]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140016f70]
mov rcx, qword [0x140016f60]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001890
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
lea rdx, [0x140011129]
mov rbx, rcx
call fcn.1400046c0
mov rbp, rax
test rax, rax
je 0x1400019d8
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x1400019b0
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019ee
cmp byte [r12 + 0x10], 1
je 0x140001990
mov rdi, rax
test rsi, rsi
jne 0x140001918
jmp 0x140001970
add rdi, rbx
sub rsi, rbx
je 0x140001970
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001910
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002b70
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
nop dword [rax + rax]
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001970
jmp 0x14000195d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002b70
jmp 0x140001965
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002a70
jmp 0x140001978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x20], esi
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002b70
jmp 0x140001965
Function at 0x140007930
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e820
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x140007a30
mov dword [rsp + 0x20], 0x5c
lea rsi, [rsp + 0x30]
mov r9, rdi
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rsi
mov ebp, 0x1000
lea r12, [0x140012e35]
lea r13, [rsp + 0x1030]
call fcn.14000ee60
mov edx, 0x5c
mov rcx, rbx
movsxd rdi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
sub rbp, rdi
add rdi, rsi
mov r15, rax
test rax, rax
jne 0x1400079e6
jmp 0x140007a40
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov r15, rax
test rax, rax
je 0x140007a40
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov rcx, rdi
mov r8, r12
sub r9d, ebx
mov rdx, rbp
call fcn.14000ee60
mov rcx, rsi
call fcn.140004680
test eax, eax
jne 0x1400079d0
mov rdx, r13
mov rcx, rsi
mov r8d, 0x1000
call fcn.140008ea0
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400079d0
mov eax, 0xffffffff
jmp 0x140007a42
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140007a60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e820
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140012e3a]
call fcn.1400046c0
mov rbx, rax
test rax, rax
je 0x140007b4e
mov rcx, rsi
lea rdx, [0x140012e3d]
call fcn.1400046c0
mov rsi, rax
test rax, rax
je 0x140007b46
lea rdi, [rsp + 0x20]
jmp 0x140007aef
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r8, rax
test rax, rax
je 0x140007b30
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140007b20
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140007b20
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140007ab0
xor edi, edi
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov edi, 0xffffffff
jmp 0x140007afd
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140007afb
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x140007b28
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov edi, 0xffffffff
jmp 0x140007b0d
Function at 0x140007b60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007c50
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007c50
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007c50
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007c50
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007c50
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x140007c50
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007c3a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140007c70
mov rbx, r15
test rbx, rbx
jne 0x140007c20
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007bc9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007c52