joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007370
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, dword [0x18003f014]
xor ebx, ebx
mov r12, r9
mov r13, r8
mov esi, ebx
mov ebp, ebx
mov edi, ebx
mov r15d, ebx
mov r14d, ebx
cmp eax, 0xffffffff
je 0x1800073d4
mov ebx, dword [0x18003f010]
mov edi, dword [0x18003f018]
mov r15d, dword [0x18003f01c]
mov r14d, dword [0x18003f020]
mov ebp, dword [0x18003f024]
mov esi, eax
jmp 0x1800074b5
cmp dword [0x180041040], ebx
jne 0x1800073fb
lea rcx, [0x180041040]
mov dword [0x180041040], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180007485
mov esi, dword [0x180041044]
mov edi, dword [0x180041048]
mov r15d, dword [0x18004104c]
mov r14d, dword [0x180041050]
movzx ebp, word [0x180041154]
cmp esi, 0xa
jg 0x180007480
jne 0x18000742e
test edi, edi
jns 0x180007480
mov ebx, 6
jmp 0x180007485
cmp esi, 6
jg 0x180007427
jne 0x18000745d
cmp edi, 3
jge 0x180007427
cmp edi, 2
jge 0x180007456
cmp edi, 1
jge 0x18000744f
test edi, edi
js 0x180007479
mov ebx, 3
jmp 0x180007485
mov ebx, 4
jmp 0x180007485
mov ebx, 5
jmp 0x180007485
cmp esi, 5
jg 0x180007479
jne 0x180007485
cmp edi, 2
jge 0x180007479
cmp edi, 1
jge 0x180007479
test edi, edi
js 0x180007485
mov ebx, 1
jmp 0x180007485
mov ebx, 2
jmp 0x180007485
mov ebx, 7
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov dword [0x18003f010], ebx
mov dword [0x18003f014], esi
mov dword [0x18003f018], edi
mov dword [0x18003f01c], r15d
mov dword [0x18003f020], r14d
mov dword [0x18003f024], ebp
test rcx, rcx
je 0x1800074bc
mov dword [rcx], ebx
test rdx, rdx
je 0x1800074c3
mov dword [rdx], esi
test r13, r13
je 0x1800074cc
mov dword [r13], edi
test r12, r12
je 0x1800074d5
mov dword [r12], r15d
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1800074e5
mov dword [rax], r14d
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1800074f4
mov dword [rax], ebp
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 0x180007510
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
mov eax, dword [0x18003f010]
cmp eax, 0xffffffff
jne 0x180007652
mov qword [rsp + 0x40], rbx
xor ebx, ebx
cmp dword [0x18003f014], eax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov esi, ebx
mov r15d, ebx
mov ebp, ebx
mov edi, ebx
mov r14d, ebx
jne 0x180007634
cmp dword [0x180041040], ebx
jne 0x180007582
lea rcx, [0x180041040]
mov dword [0x180041040], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18000760c
mov esi, dword [0x180041044]
mov edi, dword [0x180041048]
mov r14d, dword [0x18004104c]
mov r15d, dword [0x180041050]
movzx ebp, word [0x180041154]
cmp esi, 0xa
jg 0x180007607
jne 0x1800075b5
test edi, edi
jns 0x180007607
mov ebx, 6
jmp 0x18000760c
cmp esi, 6
jg 0x1800075ae
jne 0x1800075e4
cmp edi, 3
jge 0x1800075ae
cmp edi, 2
jge 0x1800075dd
cmp edi, 1
jge 0x1800075d6
test edi, edi
js 0x180007600
mov ebx, 3
jmp 0x18000760c
mov ebx, 4
jmp 0x18000760c
mov ebx, 5
jmp 0x18000760c
cmp esi, 5
jg 0x180007600
jne 0x18000760c
cmp edi, 2
jge 0x180007600
cmp edi, 1
jge 0x180007600
test edi, edi
js 0x18000760c
mov ebx, 1
jmp 0x18000760c
mov ebx, 2
jmp 0x18000760c
mov ebx, 7
mov eax, ebx
mov dword [0x18003f010], ebx
mov dword [0x18003f014], esi
mov dword [0x18003f018], edi
mov dword [0x18003f01c], r14d
mov dword [0x18003f020], r15d
mov dword [0x18003f024], ebp
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1800079d0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1070
call fcn.18000d4e0
sub rsp, rax
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
xor ebp, ebp
mov rbx, rcx
mov rcx, qword [rdx]
or esi, 0xffffffff
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
test rcx, rcx
je 0x180007a1c
call fcn.180009de8
mov qword [rdi], rbp
mov rdx, rbp
lea rcx, [0x180031f88]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x46], ax
test ax, ax
jne 0x180007a30
lea rcx, [rsp + 0x48]
call fcn.180006de0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180008200
mov rbx, rax
test rax, rax
je 0x180007b6e
lea rcx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180007b66
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007b66
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008d84
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x180007b1a
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007b66
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008d84
mov dword [rsp + 0x30], eax
test eax, eax
jg 0x180007ae0
mov edx, 1
mov dword [rsp + 0x30], 0x14
lea ecx, [rdx + 0x13]
call fcn.180009da4
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, 2
mov qword [rdi], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007b64
mov rcx, qword [rdi]
test rcx, rcx
je 0x180007b66
call fcn.180009de8
mov qword [rdi], rbp
jmp 0x180007b66
mov esi, ebp
mov rcx, rbx
call fcn.18000cb34
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007b80
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180007b90
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.18000a0d0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007bc0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, rcx
mov rcx, qword [r8]
or edi, 0xffffffff
mov rbx, r8
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rbp
test rcx, rcx
je 0x180007bf5
call fcn.180009de8
mov qword [rbx], rbp
lea rcx, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180007ca5
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007ca5
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007ca5
mov edx, 1
mov dword [rsp + 0x58], 0x14
lea ecx, [rdx + 0x13]
call fcn.180009da4
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r8, rax
mov edx, 2
mov qword [rbx], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007ca3
mov rcx, qword [rbx]
test rcx, rcx
je 0x180007ca5
call fcn.180009de8
mov qword [rbx], rbp
jmp 0x180007ca5
mov edi, ebp
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180007cb7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180007cc7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x180007d30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea ecx, [rdx + 0x1f]
mov rsi, r8
call fcn.180009da4
lea r8, [0x180008500]
xor edx, edx
mov qword [rbx], rax
mov r14, rax
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov dword [rax + 0x1c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov r9, r14
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.18000d10c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov qword [r14], rax
neg rax
sbb eax, eax
neg eax
dec eax
add rsp, 0x30
pop r14
ret

Function at 0x180007dc0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180009e28
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180009e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009e42
xor eax, eax
test eax, eax
je 0x180009e52
mov ecx, eax
call fcn.180009bf4
or eax, 0xffffffff
jmp 0x180009e54
xor eax, eax
add rsp, 0x28
ret
Function at 0x180009ef8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180009f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009f10
xor eax, eax
test eax, eax
je 0x180009f20
mov ecx, eax
call fcn.180009bf4
or eax, 0xffffffff
jmp 0x180009f22
xor eax, eax
add rsp, 0x28
ret
jmp 0x180009ef8

Function at 0x180009f28
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180009f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009f10
xor eax, eax
test eax, eax
je 0x180009f20
mov ecx, eax
call fcn.180009bf4
or eax, 0xffffffff
jmp 0x180009f22
xor eax, eax
add rsp, 0x28
ret
jmp 0x180009ef8
Function at 0x140ad5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ad51df
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 0x140ad5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad506f
add dl, dl
jne 0x140ad5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad50f6
xor eax, eax
add dl, dl
jne 0x140ad50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad51ad
add dl, dl
jne 0x140ad50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ad50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ad507e
mov eax, 1
add dl, dl
jne 0x140ad5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad50fb
sub eax, ebx
mov ebx, 1
jne 0x140ad514c
mov ecx, 1
add dl, dl
jne 0x140ad512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ad513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ad5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ad5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad515d
cmp eax, 0x7d00
jae 0x140ad519b
cmp eax, 0x500
jb 0x140ad5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad507e
cmp eax, 0x7f
ja 0x140ad519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ad51d2
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 0x140ad507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002c10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002c5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002c5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002c5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002c5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002c5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002c5c
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d9
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403a
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004030
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040ce
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040ce
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040cd
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004084
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004075
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004024
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140015ed0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400147e0
push rbp
push rsi
push rdi
sub rsp, 0x460
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x1400260b6]
call fcn.14001138e
lea rax, [rbp + 0xe8]
lea rcx, str.PeH4equdpDDuX2s
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x118]
lea rcx, str.vdjG_EPVLAf4DL
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x150]
lea rcx, [0x14001e1e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x140
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x150]
lea rcx, str.address_of_raw_buffer:__p
call fcn.1400111a9
mov edx, 0x140
lea rcx, [rbp + 0x150]
call fcn.1400113d9
xor eax, eax
test eax, eax
je 0x1400148bf
mov edx, 0x140
lea rcx, [0x14001e380]
call fcn.1400111a9
lea rcx, str.Not_multiple_of_16_n_n
call fcn.1400111a9
xor eax, eax
jmp 0x14001494a
lea r8, [rbp + 0x118]
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0x10]
call fcn.140011375
mov r8d, 0x20
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x10]
call fcn.1400113b1
lea rcx, str._n_decrypted_buffer
call fcn.1400111a9
mov edx, 0x140
lea rcx, [rbp + 0x150]
call fcn.1400113d9
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x140
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x2a8], rax
mov r8d, 0x140
lea rdx, [rbp + 0x150]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400111c7
call qword [rbp + 0x2a8]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001e140]
call fcn.140011320
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x440]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017220
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017240
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017253
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001727d
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017291
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400172a3
xor al, al
jmp 0x1400172c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400172bf
xor al, al
jmp 0x1400172c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002600e]
call fcn.14001138e
mov byte [rbp + 4], 0
jmp 0x140011ee7
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x140011f6c
mov byte [rbp + 0x24], 0
jmp 0x140011eff
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x140011f67
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140011ef6
jmp 0x140011ede
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140013600
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002600e]
call fcn.14001138e
mov byte [rbp + 4], 0
jmp 0x14001362e
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14001368d
mov byte [rbp + 0x24], 0
jmp 0x140013646
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14001368b
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, [0x14001dcb0]
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14001363d
jmp 0x140013625
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180003380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800033a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000341c
mov rdi, r14
mov rcx, rbx
call fcn.1800051f0
test rax, rax
jle 0x1800033f4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180046500
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000340c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003414
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800033b6
sub r14, rdi
jmp 0x1800034ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003433
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003435
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003467
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180046500
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800034fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800034a2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800034dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18002bbe8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800034fc
cmp rbp, rax
ja 0x1800034b0
test rbp, rbp
je 0x1800034fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18002bbe8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180015e10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x180015fa6
cmp r9, 4
jb 0x180015e4a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x180015e31
xor r11d, r11d
test r9, r9
je 0x180015fa6
cmp r9, 8
jb 0x180015f7d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x180015e7c
cmp r10, r8
jae 0x180015f7d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x180015e91
cmp r10, rdx
jae 0x180015f7d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x180015f37
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x180015ed0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x180015f6f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x180015f50
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x180015fa6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x180015f90
add rsp, 8
ret

Function at 0x180036974
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003698a
mov al, 1
jmp 0x1800369ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003699b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800369e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004154c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800369e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800369e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800369e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800369ea
xor al, al
add rsp, 0x20
pop rbx
ret