joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002c40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002d17
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002d17
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xeb918340
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180002d12
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002cf0
cmp r8d, 0xee59b80e
je 0x180002d1c
test r9d, r9d
jne 0x180002cd0
mov rax, qword [rax]
jmp 0x180002ca0
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180013b08]
addsd xmm8, qword [0x180013b08]
movups xmm9, xmmword [0x180013a38]
movups xmm10, xmmword [0x18001a2c0]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.1800025c0
cmp word [rax], 0
je 0x180002d96
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180002d80
xor edx, edx
add ecx, 1
je 0x180002d9a
mov rdx, rax
jmp 0x180002d9a
xor edx, edx
mov ecx, edx
mov rax, qword [0x180016778]
movaps xmm0, xmmword [0x180013d90]
mov rbx, qword [0x1800167f8]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001a768]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x100
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x180002e48
mov rax, qword [0x180016920]
lea r8, str.Canvas.K2_DrawText
add rax, 0x13efec8
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001a768], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x260]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
Function at 0x180002ea0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002f77
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002f77
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x6c858260
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180002f72
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002f50
cmp r8d, 0xba43a22e
je 0x180002f7c
test r9d, r9d
jne 0x180002f30
mov rax, qword [rax]
jmp 0x180002f00
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180013b08]
addsd xmm8, qword [0x180013b08]
movups xmm9, xmmword [0x180013a38]
movups xmm10, xmmword [0x18001a2c0]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.1800025c0
cmp word [rax], 0
je 0x180002ff6
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180002fe0
xor edx, edx
add ecx, 1
je 0x180002ffa
mov rdx, rax
jmp 0x180002ffa
xor edx, edx
mov ecx, edx
mov rax, qword [0x180016778]
movaps xmm0, xmmword [0x180013d90]
mov rbx, qword [0x1800167f8]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001a768]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x101
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x1800030a8
mov rax, qword [0x180016920]
lea r8, str.Canvas.K2_DrawText
add rax, 0x13efec8
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001a768], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x260]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
Function at 0x140001d94
Capabilities:
Create process on windows
Self delete

Disassembly:
push rbx
sub rsp, 0x300
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140008260
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001de3
mov r9, qword [rbx]
lea r8, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del__f__q___s_
mov edx, 0x208
lea rcx, [rsp + 0xe0]
call fcn.140001d00
lea rdx, [rsp + 0xe0]
call fcn.1400028a0
mov rcx, rax
call fcn.140002818
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001ea1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001e9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001eca
mov rcx, r8
call fcn.140005c10
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140005bf0
add rsp, 0x300
pop rbx
ret
call fcn.14000ecc4
int3
Function at 0x140001ed0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
xor edi, edi
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rax, [rsp + 0x30]
or rbp, 0xffffffffffffffff
inc rbp
cmp byte [rax + rbp], dil
jne 0x140001f24
mov r15, qword [rbx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, rbp
jb 0x140002066
mov r12, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001f57
mov r12, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
lea r13, [r15 + rbp]
mov edi, 0xf
mov r14, rsi
cmp r13, rdi
jbe 0x140001fc6
mov rdi, r13
or rdi, 0xf
cmp rdi, rcx
jbe 0x140001f91
mov rdi, rcx
movabs rcx, 0x8000000000000000
jmp 0x140001faa
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140001fb4
call fcn.1400032b4
mov r14, rax
jmp 0x140001fc3
test rcx, rcx
je 0x140001fc0
call fcn.140005d10
jmp 0x140001faf
xor r14d, r14d
mov qword [rsi], r14
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], rdi
mov r8, rbp
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140007b90
lea rcx, [r14 + rbp]
mov r8, r15
mov rdx, r12
call fcn.140007b90
xor edi, edi
mov byte [r14 + r13], dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002029
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002024
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000206c
mov rcx, r8
call fcn.140005c10
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rax, rsi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140005bf0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400012d0
nop
call fcn.14000ecc4
int3
Function at 0x140002074
Capabilities:
Copy file
Create process on windows
Download url
Receive data
Set console window title
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xec20]
mov eax, 0xed20
call fcn.140006350
sub rsp, rax
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rbp + 0xec10], rax
lea rcx, [0x1400372e4]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, str.Updating_EC_loader...
call fcn.1400028a0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.stuff3.tmp
lea rcx, [rsp + 0x78]
call fcn.140002354
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001ed0
nop
lea rcx, [rbp - 0x30]
call fcn.1400022e8
mov r8, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.https:__d1jnd5n1poyj9v.cloudfront.net_loader.prod.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140002354
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140002b24
nop
lea rcx, [rsp + 0x58]
call fcn.1400022f8
lea rdx, [rbp - 0x68]
call fcn.140002b7c
mov rcx, rax
call fcn.1400022c0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140002388
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x10]
call fcn.140002354
nop
lea rcx, [rbp - 0x68]
call fcn.1400022e8
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14000e7cc
lea rcx, [rbp + 0x10]
call fcn.1400022e8
mov rbx, rax
lea rcx, [rbp - 0x10]
call fcn.1400022e8
mov rcx, rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rbp - 0x10]
call fcn.1400022e8
mov rcx, rax
call fcn.14000c8d8
lea rcx, [rbp + 0x10]
call fcn.1400022e8
lea rbx, [0x14003e9d0]
mov rdx, rbx
sub rdx, rax
mov cl, byte [rax]
mov byte [rdx + rax], cl
inc rax
test cl, cl
jne 0x1400021dd
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x34]
call fcn.140008260
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
mov dword [rbp + 0x30], 0x68
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], al
jne 0x140002210
inc r8
mov rdx, rbx
lea rcx, [rbp + 0x1b0]
call fcn.14000c57c
lea rdx, str.Updated.
call fcn.1400028a0
mov rcx, rax
call fcn.1400022c0
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000010
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
lea rcx, [rbp - 0x68]
call fcn.1400022e8
mov rcx, rax
call fcn.14000c8d8
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.140002388
mov rcx, rax
call fcn.140001d94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004ad8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140004b06
xor eax, eax
jmp 0x140004bec
cmp qword [rcx + 0x68], 0
je 0x140004b17
call fcn.140004c08
jmp 0x140004bec
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004b2e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b30
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b62
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140007b90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140004be6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004b99
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140004bc2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000fba8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140004be6
cmp rsi, rbx
ja 0x140004ba0
test rsi, rsi
je 0x140004be6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000fba8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140006944
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14000c83c
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14000e817
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x14000e84b
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000e84b
call fcn.14001886c
xor ebx, ebx
test eax, eax
jne 0x14000e839
cmp byte [rbp - 0x48], bl
je 0x14000e832
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x14000e84b
cmp byte [rbp - 0x48], bl
je 0x14000e849
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14000c6c0
mov esi, eax
test eax, eax
je 0x14000e887
call fcn.140011448
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x14000e8e0
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14000c6c0
mov edi, eax
test eax, eax
je 0x14000e8c3
call fcn.140011448
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x14000e8d2
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14001a558
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x14000e8e0
mov rcx, qword [rbp - 0x50]
call fcn.140018508
cmp byte [rbp - 8], bl
je 0x14000e8ee
mov rcx, qword [rbp - 0x20]
call fcn.140018508
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001494c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001473c

Function at 0x140018ff0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140019010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400113bc
or eax, 0xffffffff
jmp 0x140019012
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001ba7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001baae
call fcn.140011448
mov dword [rax], 0x16
call fcn.14000eca4
jmp 0x14001bbcd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001bbcd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001bbcd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001badd
lock or dword [rcx + 0x14], 0x10
jmp 0x14001bbcd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001baf1
call fcn.14001d0e0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001a158
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001c85c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001bbbb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001bb86
mov rcx, rsi
call fcn.14001a158
cmp eax, edi
je 0x14001bb71
mov rcx, rsi
call fcn.14001a158
cmp eax, 0xfffffffe
je 0x14001bb71
mov rcx, rsi
call fcn.14001a158
movsxd rbx, eax
lea r14, [0x14003e450]
mov rcx, rsi
sar rbx, 6
call fcn.14001a158
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001bb78
lea rdx, [0x14003c3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001bb86
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001bbaa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001bbaa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001bbaa
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001bbd0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001bef8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006350
sub rsp, rax
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a158
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001bf47
mov rax, rbp
jmp 0x14001c04f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3e450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d034
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001c04b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c04b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d034
test rax, rax
js 0x14001c04b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001c04b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001c03d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001c03d
cmp byte [rcx], 0xd
jne 0x14001c023
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001c032
cmp byte [rcx + 1], 0xa
jne 0x14001c032
inc rcx
jmp 0x14001c032
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001c005
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001c04f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005bf0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c3b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003e450]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001c40e
cmp word [rdx], r12w
jne 0x14001c40e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001c414
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001c56f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001c54a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001c44d
mov rcx, r9
jmp 0x14001c470
cmp r9, rdx
jae 0x14001c487
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001c431
jmp 0x14001c56f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c544
cmp dword [rsp + 0x80], edi
je 0x14001c544
mov rdx, r14
lea r11, [0x14003e450]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001c51d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001c4f0
mov word [rbx], r12w
jmp 0x14001c56b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001c4f9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001c56b
cmp word [rsp + 0x70], r12w
jne 0x14001c52a
cmp rbx, rsi
je 0x14001c4ea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001d03c
cmp word [rsp + 0x70], r12w
je 0x14001c56f
mov word [rbx], r13w
jmp 0x14001c56b
lea r11, [0x14003e450]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001c567
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001c56f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret