joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029a2c
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b7c
cmp rax, 0xffffffffffffffff
je 0x140029b7c
xor edi, edi
test rbp, rbp
jle 0x140029b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f948
mov rbx, rax
test rax, rax
jne 0x140029ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a99c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dd10
cmp eax, 0xffffffff
je 0x140029afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029ac4
mov edx, r15d
mov ecx, r14d
call fcn.14001a99c
jmp 0x140029b1d
cmp byte [rsi + 0x38], dil
je 0x140029b14
cmp dword [rsi + 0x34], 5
jne 0x140029b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b700
jmp 0x140029b90
jns 0x140029b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d034
cmp rax, 0xffffffffffffffff
jne 0x140029b48
cmp byte [rsi + 0x30], dil
je 0x140029b90
mov edi, dword [rsi + 0x2c]
jmp 0x140029b90
mov ecx, r14d
call fcn.140018e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b89
mov eax, dword [rsi + 0x2c]
jmp 0x140029b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d034
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ac80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1406e98a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xfffffffffc0a9fb7
lea rsp, [rsp + 0x30]
jne 0x1406efb64
call fcn.14072f0d9
mov qword [rsp], 0x64af913d
lea rsp, [rsp + 0x18]
mov qword [rbp + riz - 0x10], rsp
call fcn.1407181af
movzx edi, byte [rdx]
push 0x1c01090c
rol qword [rsp], 0xd9
setb byte [rsp]
xor edi, ebp
sar word [rsp + 2], 0xad
and edi, 0xff
jmp 0x14073706c
call fcn.1406f0776
Function at 0x140003636
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14000370a
cmp eax, 0x1edab0ed
jne 0x14000365e
mov rbx, qword [rdi + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov ecx, dword [rax + rbx + 0x88]
mov eax, 0x12
test rcx, rcx
je 0x1400036f7
mov r15d, dword [rcx + rbx + 0x18]
mov r14d, dword [rcx + rbx + 0x1c]
add r14, rbx
mov r12d, dword [rcx + rbx + 0x20]
add r12, rbx
mov r13d, dword [rcx + rbx + 0x24]
add r13, rbx
xor edi, edi
cmp rdi, r15
je 0x1400036f2
mov rbp, rdi
mov ecx, dword [r12 + rdi*4]
add rcx, rbx
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x1400036bf
lea rdi, [rbp + 1]
sub rdx, rcx
call fcn.14000370a
cmp eax, esi
jne 0x1400036ad
movzx eax, word [r13 + rbp*2]
cmp r15, rax
jbe 0x140003708
mov eax, dword [r14 + rax*4]
add rax, rbx
add rax, 0x12
jmp 0x1400036f7
mov eax, 0x12
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x14000370a
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x140003746
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x140003725
inc r8
jmp 0x140003712
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140003720
ret
Function at 0x14000e792
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x14000e80e
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x14000e7ee
cmp rdi, r14
ja 0x14000e84b
cmp r14, rax
ja 0x14000e84b
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14000e7f8
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x14000e7db
jmp 0x14000e800
mov rdx, rbx
mov rdi, r14
jbe 0x14000e7b5
jmp 0x14000e80e
mov rdx, rbx
mov rdi, r14
jmp 0x14000e7b5
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14000e802
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x14000e82c
mov r11, r8
jmp 0x14000e843
cmp r8, r10
je 0x14000e84b
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14000e802
xor al, 1
jmp 0x14000e816
ud2

Function at 0x14000f3f3
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
not ecx
lea rax, [0x1414e3e30]
mov r9d, 0xff
cmp r8, 0x40
jb 0x14000f52e
mov r11, r8
shr r11, 4
xor r10d, r10d
cmp r10, 0x40
je 0x14000f523
sub r11, 1
jb 0x14000f555
movzx edi, byte [rdx + r10 + 0xf]
movzx esi, byte [rdx + r10 + 0xe]
mov esi, dword [rax + rsi*4 + 0x400]
xor esi, dword [rax + rdi*4]
movzx edi, byte [rdx + r10 + 0xd]
xor esi, dword [rax + rdi*4 + 0x800]
movzx edi, byte [rdx + r10 + 0xc]
xor esi, dword [rax + rdi*4 + 0xc00]
movzx edi, byte [rdx + r10 + 0xb]
xor esi, dword [rax + rdi*4 + 0x1000]
movzx edi, byte [rdx + r10 + 0xa]
xor esi, dword [rax + rdi*4 + 0x1400]
movzx edi, byte [rdx + r10 + 9]
xor esi, dword [rax + rdi*4 + 0x1800]
movzx edi, byte [rdx + r10 + 8]
xor esi, dword [rax + rdi*4 + 0x1c00]
movzx edi, byte [rdx + r10 + 7]
xor esi, dword [rax + rdi*4 + 0x2000]
movzx edi, byte [rdx + r10 + 6]
xor esi, dword [rax + rdi*4 + 0x2400]
movzx edi, byte [rdx + r10 + 5]
xor esi, dword [rax + rdi*4 + 0x2800]
movzx edi, byte [rdx + r10 + 4]
xor esi, dword [rax + rdi*4 + 0x2c00]
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [rdx + r10 + 3]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3000]
mov edi, ecx
shr edi, 0x10
and edi, r9d
movzx ebx, byte [rdx + r10 + 2]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3400]
mov edi, ecx
shr edi, 8
and edi, r9d
movzx ebx, byte [rdx + r10 + 1]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3800]
and ecx, r9d
movzx edi, byte [rdx + r10]
xor edi, ecx
xor esi, dword [rax + rdi*4 + 0x3c00]
add r10, 0x10
mov ecx, esi
jmp 0x14000f419
sub r8, r10
add rdx, r10
jmp 0x14000f405
xor r9d, r9d
cmp r8, r9
je 0x14000f54d
mov r10b, byte [rdx + r9]
xor r10b, cl
movzx r10d, r10b
shr ecx, 8
xor ecx, dword [rax + r10*4]
inc r9
jmp 0x14000f531
not ecx
mov eax, ecx
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140010524
Capabilities:
Encrypt data using aes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx + 0xf0], 0xe
lea rcx, [0x1414dffd1]
call fcn.1400106ee
mov ebp, eax
mov dword [rsi], eax
lea rcx, [0x1414dffd5]
call fcn.1400106ee
mov edi, eax
mov dword [rsi + 4], eax
lea rcx, [0x1414dffd9]
call fcn.1400106ee
mov ebx, eax
mov dword [rsi + 8], eax
lea rcx, [0x1414dffdd]
call fcn.1400106ee
mov r14d, eax
mov dword [rsi + 0xc], eax
lea rcx, [0x1414dffe1]
call fcn.1400106ee
mov dword [rsi + 0x10], eax
lea rcx, [0x1414dffe5]
call fcn.1400106ee
mov dword [rsi + 0x14], eax
lea rcx, [0x1414dffe9]
call fcn.1400106ee
mov dword [rsi + 0x18], eax
lea rcx, [0x1414dffed]
call fcn.1400106ee
mov dword [rsi + 0x1c], eax
xor ecx, ecx
lea rdx, [0x1414e7f48]
mov r8d, 0xff
lea r9, [0x1414e8348]
lea r10, [0x1414e8748]
lea r11, [0x1414e8b48]
mov r12d, eax
shr r12d, 0xe
and r12d, 0x3fc
movzx r12d, byte [r12 + rdx + 3]
shl r12d, 0x18
xor r12d, ebp
mov r13d, eax
shr r13d, 8
and r13d, r8d
movzx ebp, byte [r9 + r13*4 + 2]
shl ebp, 0x10
mov r13d, eax
and r13d, r8d
movzx r13d, byte [r10 + r13*4 + 1]
shl r13d, 8
xor r13d, ebp
xor r13d, r12d
mov r12d, eax
shr r12d, 0x18
movzx ebp, byte [r11 + r12*4]
xor ebp, r13d
lea r15, [0x1414e8f48]
xor ebp, dword [rcx + r15]
mov dword [rsi + rcx*8 + 0x20], ebp
xor edi, ebp
mov dword [rsi + rcx*8 + 0x24], edi
xor ebx, edi
mov dword [rsi + rcx*8 + 0x28], ebx
xor r14d, ebx
mov dword [rsi + rcx*8 + 0x2c], r14d
cmp rcx, 0x18
je 0x1400106dd
mov r12d, r14d
shr r12d, 0x18
movzx r12d, byte [rdx + r12*4 + 3]
shl r12d, 0x18
xor r12d, dword [rsi + rcx*8 + 0x10]
mov r13d, r14d
shr r13d, 0xe
and r13d, 0x3fc
movzx r13d, byte [r13 + r9 + 2]
shl r13d, 0x10
mov r15d, r14d
shr r15d, 8
and r15d, r8d
movzx r15d, byte [r10 + r15*4 + 1]
shl r15d, 8
xor r15d, r13d
mov r13d, r14d
and r13d, r8d
movzx r13d, byte [r11 + r13*4]
xor r13d, r15d
xor r13d, r12d
mov dword [rsi + rcx*8 + 0x30], r13d
xor r13d, dword [rsi + rcx*8 + 0x14]
mov dword [rsi + rcx*8 + 0x34], r13d
xor r13d, dword [rsi + rcx*8 + 0x18]
mov dword [rsi + rcx*8 + 0x38], r13d
xor eax, r13d
mov dword [rsi + rcx*8 + 0x3c], eax
add rcx, 4
jmp 0x1400105e2
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140016d84
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1414ebda0]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140016def
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140016e1b
test eax, eax
js 0x140016dfc
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x140016e12
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [0x1414ebe18]
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140017001
mov rcx, rax
call fcn.140016ad1
mov ecx, 7
int 0x29
ud2

Function at 0x1400195e9
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140019646
mov ecx, eax
add rsp, 0x28
jmp fcn.14002f2d8

Function at 0x14001961a
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140019646
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14002f2e0

Function at 0x140019646
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, dword [rcx + 0x18]
test edi, edi
je 0x140019660
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400196ce
mov rax, qword [0x1414f9038]
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140019705
cmp dword [rsp + 0x2c], 0
je 0x1400196fd
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140019707
mov edi, eax
mov rax, qword [0x1414f60a8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1414f60a8], rsi
jne 0x1400196a9
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140019656
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140019705
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140019656
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140019656
mov edi, dword [rsi + 0x18]
jmp 0x140019654
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x140019d53
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
movabs rbx, 0x8000000000000000
lea r14, [rsp + 0x78]
mov rcx, r14
call fcn.14001a5d5
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.14001a7f3
mov rax, qword [rsi]
cmp rax, rbx
jne 0x140019da0
mov qword [rdi], rbx
jmp 0x140019f1b
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
and qword [rax], 0
mov qword [rax + 8], 2
and qword [rax + 0x10], 0
mov r8d, 0x200
mov r15d, 2
xor r12d, r12d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x140019dfa
lea rbp, [rsp + 0x78]
mov ebx, 0x200
mov rsi, r8
jmp 0x140019e2f
sub r8, r13
lea rcx, [rsp + 0x60]
mov rdx, r8
call fcn.140016827
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
cmp r12, r14
mov r13d, 0xffffffff
cmovb r13, r12
mov qword [rsp + 0x70], r13
mov rbp, r15
mov rbx, r13
mov rsi, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, esi
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x140019e55
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140019ed3
mov r8d, edi
cmp rsi, r8
jne 0x140019e7d
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140019f30
add rsi, rsi
cmp rsi, r14
cmovae rsi, r14
mov r8, rsi
jmp 0x140019de2
jb 0x140019de2
cmp rbx, r8
jb 0x140019f30
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.140016027
mov rcx, r12
mov rdx, r15
call fcn.140015e8a
movabs rdi, 0x8000000000000000
cmp qword [rsi], rdi
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
je 0x140019f01
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x140019f0e
call fcn.1400168d2
mov qword [rsp + 0x48], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, r15
call fcn.140015e8a
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov qword [rax], rdi
mov rcx, qword [rsp + 0x48]
call fcn.140015bb8
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
call fcn.140015e8a
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14001abea
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1414ebda0]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14001ac4e
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x14001ac86
cmp eax, 0x103
je 0x14001ac92
test eax, eax
js 0x14001ac70
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x14001ac86
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xa0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [0x1414ebe18]
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140017001
mov rcx, rax
call fcn.140016ad1
mov ecx, 7
int 0x29
ud2
Function at 0x14001fcc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.14001fd3f
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rdi
call fcn.14001a7f3
mov rdi, qword [rbx]
cmp rdi, r14
je 0x14001fd30
mov rbx, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14001fd25
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov r14, rdi
jmp 0x14001fd30
mov rcx, rdi
mov rdx, rbx
call fcn.140015e8a
mov qword [rsi], r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002fce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140030a80
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x1414ee660]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140030a80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14002fd50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1414f6144]
mov rbx, rcx
test esi, esi
jle 0x14002fe80
mov rax, qword [0x1414f6148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002fd9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14002fe25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14002fd80
mov rcx, rbx
call fcn.1400307a0
mov rdi, rax
test rax, rax
je 0x14002fea2
mov rax, qword [0x1414f6148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400308e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1414f6148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002fe87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002fe1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14002fe30
add dword [0x1414f6144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1414f6148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002fe1e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, [0x1414ee6d8]
mov edx, eax
call fcn.14002fce0
nop dword [rax]
xor esi, esi
jmp 0x14002fda8
mov rax, qword [0x1414f6148]
mov edx, dword [rdi + 8]
lea rcx, [0x1414ee6a0]
mov r8, qword [rax + rbx + 0x18]
call fcn.14002fce0
mov rdx, rbx
lea rcx, [0x1414ee680]
call fcn.14002fce0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140030410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1414f61a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1414f6180]
test rbx, rbx
je 0x14003046c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140030463
test rsi, rsi
je 0x140030463
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140030448
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400307a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1414ee870]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400307c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400307c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400307c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003081d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140030814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400307c0
add rax, 0x28
cmp rax, r9
jne 0x140030800
xor eax, eax
ret

Function at 0x140030820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1414ee870]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003083f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140030848
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003083f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400308e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1414ee870]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400308ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140030908
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140036390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov r10, rcx
mov r15, rdx
mov ecx, r9d
inc rax
shl r11, cl
mov edx, eax
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp qword [rsp + 0x88], rdx
mov rdx, 0xffffffffffffffd2
setb dil
cmp r8d, 0xff
seta cl
or dil, cl
jne 0x1400365c1
mov rdx, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x1400365c1
mov edx, 1
lea esi, [r8 + 1]
lea rbx, [r10 + 4]
mov ecx, r9d
mov r8d, edx
mov dword [rsp + 8], esi
mov esi, 1
shl r8d, cl
movzx ecx, r9w
or ecx, 0x10000
lea ebp, [r8 - 1]
mov r14d, ecx
mov r12d, ecx
lea ecx, [r9 - 1]
shl edx, cl
xor ecx, ecx
mov dword [rsp + 0xc], edx
mov edx, ebp
mov r11w, word [r15 + rcx*2]
cmp r11w, 0xffff
jne 0x140036458
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x140036466
xor edi, edi
cmp r11w, word [rsp + 0xc]
cmovge esi, edi
mov dil, 1
mov r13, qword [rsp + 0x80]
mov word [r13 + rcx*2], r11w
mov r11d, dword [rsp + 8]
inc rcx
cmp ecx, r11d
jb 0x14003643a
test dil, dil
je 0x140036493
shl esi, 0x10
movzx r14d, r14w
or r14d, esi
mov r12d, r14d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 1
shr ecx, 3
lea ecx, [r11 + rcx + 3]
cmp edx, ebp
jne 0x140036546
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
mov r13, r11
lea r12, [rax + rbp]
movsx rdi, word [r15 + r11*2]
imul r13, r14
mov dword [rsp + 0xc], edi
mov rsi, rdi
mov edi, 8
mov qword [r12], r13
cmp dword [rsp + 0xc], edi
jle 0x1400364f9
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x1400364e9
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x1400364c9
movsxd rdi, r8d
xor esi, esi
xor r11d, r11d
mov r12b, byte [rax + rsi]
mov rbp, rdx
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
mov rbp, rdx
mov r12b, byte [rax + rsi + 1]
add rsi, 2
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
and r11, rdx
cmp rsi, rdi
jb 0x140036510
xor r11d, r11d
jmp 0x140036580
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x14003656a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x14003655e
inc esi
jmp 0x140036552
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x14003654b
or rdx, 0xffffffffffffffff
test eax, eax
je 0x140036541
jmp 0x1400365c1
cmp r11d, r8d
jae 0x1400365bf
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
jmp 0x140036580
xor edx, edx
mov rax, rdx
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret