joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ff1
Capabilities:
Read file on windows

Disassembly:
push r12
mov eax, 0x10030
push rbp
push rdi
push rsi
push rbx
call fcn.140005720
sub rsp, rax
xor edx, edx
mov r8d, 2
lea r12, str._nPAR.pm_n
mov edi, ecx
lea rbp, [rsp + 0x28]
call sub.msvcrt.dll__lseek
mov ecx, 0x10000
lea ebx, [rax - 1]
mov eax, ebx
cdq
idiv ecx
sub ebx, edx
test ebx, ebx
js 0x1400020a8
xor r8d, r8d
mov edx, ebx
mov ecx, edi
call sub.msvcrt.dll__lseek
inc eax
jne 0x14000204b
lea rcx, str.lseek_failed
jmp 0x140002067
mov r8d, 0x10008
mov rdx, rbp
mov ecx, edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
jne 0x14000206c
lea rcx, str.read_failed
call fcn.140001fa5
cdqe
lea rsi, [rbp + rax - 8]
cmp rax, 7
jbe 0x1400020a0
cmp rsi, rbp
jb 0x1400020a0
mov r8d, 8
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140002098
dec rsi
jmp 0x140002079
sub rsi, rbp
lea eax, [rbx + rsi]
jmp 0x1400020ab
sub ebx, 0x10000
jmp 0x14000202e
or eax, 0xffffffff
add rsp, 0x10030
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140002628
Capabilities:
Delete directory

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.140001db1
mov rcx, rax
call fcn.140001d87
mov rsi, rax
call fcn.140001f71
test rbx, rbx
je 0x140002676
test eax, eax
je 0x140002676
cmp byte [rbx], 0
je 0x140002676
lea rdx, str.par_
mov rcx, rsi
call sub.msvcrt.dll_strstr
cmp rsi, rax
jne 0x140002676
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400017b0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000267d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
xor r8d, r8d
xor edx, edx
mov ebx, ecx
call sub.msvcrt.dll__lseek
inc eax
jne 0x14000269d
lea rcx, str.lseek_failed
jmp 0x1400026be
lea rdi, [rsp + 0x20]
mov r8d, 0x40
mov ecx, ebx
mov rdx, rdi
call sub.msvcrt.dll__read
cmp eax, 0x40
je 0x1400026c3
lea rcx, str.short_read
call fcn.140001fa5
cmp word [rsp + 0x20], 0x5a4d
je 0x1400026ed
mov ecx, 2
call qword [fcn.14000b5d0]
lea r8, str.MZ_magic_bytes
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001b3d
mov esi, dword [rsp + 0x5c]
xor r8d, r8d
mov ecx, ebx
mov edx, esi
call sub.msvcrt.dll__lseek
inc eax
je 0x140002694
mov r8d, 0x1a
mov rdx, rdi
mov ecx, ebx
call sub.msvcrt.dll__read
cmp eax, 0x1a
jne 0x1400026b7
cmp dword [rsp + 0x20], 0x4550
je 0x140002741
mov ecx, 2
call qword [fcn.14000b5d0]
lea r8, str.PE_header
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001b3d
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x38]
cmp dx, 0xe0
jne 0x140002756
cmp ax, 0x10b
je 0x140002784
cmp dx, 0xf0
jne 0x140002763
cmp ax, 0x20b
je 0x140002784
mov ecx, 2
call qword [fcn.14000b5d0]
lea r8, str.IMAGE_NT_OPTIONAL_HDR_MAGIC
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001b3d
xor r8d, r8d
lea edx, [rsi + 0x5c]
mov ecx, ebx
call sub.msvcrt.dll__lseek
inc eax
je 0x140002694
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x140004400
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14000b5d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14000b5d0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400050d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14062e168]
test eax, eax
je 0x14000516a
lea rax, [0x14062e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14062e170]
mov qword [rbp - 8], rax
jmp 0x14000514e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140005142
cmp qword [rbp - 0x10], 0
je 0x140005142
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140005108
lea rax, [0x14062e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000516b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140005270
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140005298
mov eax, 0
jmp 0x1400052e6
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 0x1400052c1
mov eax, 0
jmp 0x1400052e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400052e1
mov eax, 0
jmp 0x1400052e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400052ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000536a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140005361
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140005361
mov rax, qword [rbp - 8]
jmp 0x14000537f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140005334
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001df10
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x2f], dl
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x40], ecx
mov byte [rsp + 0x47], dl
mov edx, 8
call fcn.140019ca0
mov ecx, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x3c], 0xff
mov edx, dword [rsp + 0x3c]
call fcn.140019af0
mov dl, byte [rsp + 0x2f]
xor al, dl
movzx eax, al
mov qword [rsp + 0x30], rax
cmp rax, 0x100
setb al
test al, 1
jne 0x14001df64
jmp 0x14001df8a
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rax, [0x141bc6950]
mov eax, dword [rax + rdx*4]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
call fcn.140019b10
nop
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x30]
lea r8, [0x141bc6920]
mov edx, pe_nt_image_headers64
call fcn.140083e90
int3
Function at 0x140041da0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], r8
mov rax, rdx
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
xor eax, 0xffffffff
mov dword [rsp + 0x3c], eax
call fcn.140040830
mov rcx, rax
call fcn.1400410a0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rcx, [rsp + 0x40]
call fcn.140041150
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x140041e1e
mov eax, dword [rsp + 0x3c]
xor eax, 0xffffffff
add rsp, 0x78
ret
mov rax, qword [rsp + 0x50]
mov cl, byte [rax]
mov byte [rsp + 0x77], cl
mov eax, dword [rsp + 0x3c]
xor al, cl
movzx eax, al
mov qword [rsp + 0x20], rax
cmp rax, 0x100
setb al
test al, 1
jne 0x140041e46
jmp 0x140041e64
mov rcx, qword [rsp + 0x20]
lea rax, [0x141bcbf0c]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0x3c]
shr ecx, 8
xor eax, ecx
mov dword [rsp + 0x3c], eax
jmp 0x140041de9
mov rcx, qword [rsp + 0x20]
lea r8, [0x141bcbed8]
mov edx, pe_nt_image_headers64
call fcn.140083e90
int3
Function at 0x14004a0f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14004a190
jmp 0x14004a17f
jae 0x14004a250
cmp r8, 0x201
jae 0x14004a190
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14004a1e8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14004a1bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140083020
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14004a211
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004a2b8
mov r8d, r14d
cmp r15, r8
jne 0x14004a170
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004a2e5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14004a17f
jmp 0x14004a190
cmp rsi, r8
jb 0x14004a2ff
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14004dcf0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14004a2a1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140017890
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14004a289
jmp 0x14004a2a1
lea rcx, [0x141bd0890]
lea r8, [0x141bd3318]
mov edx, 0x28
call fcn.140083df0
jmp 0x14004a314
lea rax, [0x141bd3300]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140084340
ud2
Function at 0x14004a370
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14005e6a0
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x14004a3c6
lea rcx, [rbp - 0x50]
call fcn.140044700
mov qword [rsi], rdi
jmp 0x14004a5b1
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14004a450
jmp 0x14004a43f
jae 0x14004a516
cmp r8, 0x201
jae 0x14004a450
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14004a4a8
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14004a47f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140083020
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14004a4d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004a5eb
mov r8d, esi
cmp r12, r8
jne 0x14004a430
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004a626
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14004a43f
jmp 0x14004a450
cmp r15, r8
jb 0x14004a640
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.14004dcf0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x14004a578
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140017890
cmp qword [rbp + 0x3d0], rdi
jne 0x14004a5c8
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140044700
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14004a5b1
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140017890
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14004a59c
jmp 0x14004a5b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x14004a560
jmp 0x14004a578
lea rcx, [0x141bd0890]
lea r8, [0x141bd3318]
mov edx, 0x28
call fcn.140083df0
jmp 0x14004a655
lea rax, [0x141bd3300]
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140084340
ud2
Function at 0x14004ae70
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14004ae80
mov rcx, rdx
mov rdx, r8
jmp fcn.14004ae90
mov rcx, rdx
mov rdx, r8
jmp fcn.140054840

Function at 0x1400515e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400820b0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140057800]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.1400575a0
cmp qword [rbp + 0xfe8], 0
jne 0x1400517b7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140051783
cmp r12, 0x1000
ja 0x1400517d9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140051757
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140051700
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14005175d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140051740
jbe 0x1400516b0
jmp 0x1400517c5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140051665
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140044700
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140044700
jmp 0x140051783
lea r8, [0x141bd2ca0]
mov rcx, r13
mov rdx, r12
call fcn.1400843c0
jmp 0x1400517ed
lea r8, [0x141bd2ca0]
mov edx, 0x1000
mov rcx, r12
call fcn.140084340
ud2
Function at 0x140054840
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14005e6a0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
je 0x140054884
xor byte [rax - 0x45], cl
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
or byte [rax + 0x39], 0xd8
je fcn.140054901
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
and al, 0x50
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400563e0
sbb r8d, dword [rax]
invalid
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je fcn.140054901
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ah, 8
add eax, dword [rax]
test eax, eax
je 0x1400548d5
invalid
test rdi, rdi
je 0x1400548d1
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140017890
xor esi, esi
jmp fcn.140054901
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x1400548fe
add rdi, rdi
mov r8d, 2
add al, byte [rax]
add byte [rax], al
mov rcx, rsi
mov rdx, rdi
call fcn.140017890
invalid
mov rsi, rbx

Function at 0x140055150
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x141bd28c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140055194
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400551f3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140055202
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14005523a
cmp eax, 0x103
je 0x140055244
test eax, eax
js 0x14005521f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14005523a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x141bd2928]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14004d920
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140044c80
mov ecx, 7
int 0x29
ud2
Function at 0x1400552b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x141bd28c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400552f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14005535a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140055391
test eax, eax
js 0x14005536b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140055384
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x141bd2928]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14004d920
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140044c80
mov ecx, 7
int 0x29
ud2

Function at 0x140056ba0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x1400575a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78
Function at 0x14005d770
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14005d7a8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14005d7c0
nop
add rsp, 0x38
ret

Function at 0x14005d7c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14005d803
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [case.0x14004aefb.114]
mov qword [rbp - 0x28], rax
lea rax, [0x141bd2e50]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x141bd2e88]
lea rcx, [rbp - 0x60]
call fcn.140083d20
ud2
Function at 0x14006c7f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006c86a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14006c860
cmp r11, r10
ja 0x14006c8f5
cmp r10, rdx
ja 0x14006c907
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14006c862
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14006c840
jmp 0x14006c8d7
ja 0x14006c86a
mov r11, r10
cmp rax, r8
jne 0x14006c812
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14006c8db
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14006c8b0
mov r8, r10
sub ecx, r9d
jns 0x14006c8ce
jmp 0x14006c8dd
cmp r10, rdx
je 0x14006c8e9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14006c8dd
xor al, 1
cmp r8, rdx
jne 0x14006c890
jmp 0x14006c8dd
xor eax, eax
jmp 0x14006c8dd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x141bd65f8]
call fcn.140083c90
lea r8, [0x141bd6610]
mov rcx, r11
mov rdx, r10
call fcn.1400843c0
lea r8, [0x141bd6610]
mov rcx, r10
call fcn.140084340
int3
Function at 0x14008291c
Capabilities:
Parse pe header

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