joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015260
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov ebx, r8d
lea rcx, [0x140043960]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8d, ebx
lea rdx, [0x14000f9a0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
xor ebx, ebx
mov r8d, eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 0xe]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000f9a8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 4]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000f9b8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140043988]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 2]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000f9c0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140043960]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001ec80
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019400
Capabilities:
Enumerate network shares

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x40], 0xffffffff
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0x4000
mov r9, rcx
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x13]
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x14001951c
mov qword [rsp + 0x68], rbx
mov ebx, dword [rsp + 0x30]
mov qword [rsp + 0x50], rdi
nop word [rax + rax]
mov rcx, qword [0x1400439a0]
lea r8, [rbx + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140019460
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x1400194f5
nop word [rax + rax]
xor ebx, ebx
cmp dword [rsp + 0x40], ebx
jbe 0x1400194d9
nop dword [rax + rax]
lea rcx, [rbx + rbx*2]
shl rcx, 4
add rcx, rdi
test byte [rcx + 0xc], 2
je 0x1400194c8
call fcn.140019400
jmp 0x1400194d1
mov rcx, qword [rcx + 0x18]
call fcn.140018f60
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1400194b0
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x1400194a0
mov rcx, qword [0x1400439a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001ec80
add rsp, 0x58
ret
Function at 0x140019530
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor eax, eax
mov rbp, rcx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x4c], eax
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x28], rax
mov rcx, rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.NETAPI32.dll_NetShareEnum]
mov esi, eax
test eax, eax
je 0x1400195b8
cmp eax, 0xea
jne 0x14001966f
mov rbx, qword [rsp + 0x40]
mov edi, 1
cmp dword [rsp + 0x48], edi
jb 0x14001965a
nop dword [rax]
test dword [rbx + 8], 0x7fffffff
jne 0x140019645
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x140019645
mov rcx, qword [rbx]
lea rdx, [0x14000ff30]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140019645
lea rdx, [0x14000ff40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14000fe94]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x60]
call fcn.140018f60
add rbx, 0x18
inc edi
cmp edi, dword [rsp + 0x48]
jbe 0x1400195d0
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 0xea
je 0x140019570
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001ec80
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400196a0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rsp + 0x28], rax
movzx edi, cx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x1400439a0]
mov edx, 8
lea r8d, [rdx + 0x46]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400196d0
lea rdx, [0x14000ff48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbx + 0xa]
lea rdx, [0x14000ff54]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
mov word [rbx + 8], di
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140019790
cmp eax, 5
je 0x140019790
cmp eax, 4
je 0x140019734
mov rcx, rbx
call fcn.140018f60
jmp 0x140019790
mov dword [rsp + 0x20], 0x104
nop dword [rax]
mov rcx, qword [0x1400439a0]
mov edx, 8
mov r8d, 0x248
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140019740
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rbx + 8]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x14001977e
mov rcx, rdi
call fcn.140018f60
mov rcx, qword [0x1400439a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400439a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001ec80
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001b770
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, dword [rsp + 0xd0]
xor r15d, r15d
mov rsi, r9
mov rbp, r8
mov r13, rdx
cmp r14d, 0x40
jb 0x14001b886
mov qword [rsp + 0xb0], rbx
lea rbx, [r9 + 0x3c]
mov qword [rsp + 0x78], rdi
lea rdi, [r8 + 0x3c]
mov qword [rsp + 0x70], r12
mov r12d, r14d
shr r12, 6
nop
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140019d00
lea rcx, [rsp + 0x5c]
mov rax, r15
cmp rsi, rcx
ja 0x14001b7f4
lea rcx, [rsp + 0x20]
cmp rbx, rcx
jae 0x14001b800
cmp rsi, rdi
ja 0x14001b817
cmp rbx, rbp
jb 0x14001b817
nop
mov ecx, dword [rdi + rax*4 - 0x3c]
xor ecx, dword [rsp + rax*4 + 0x20]
mov dword [rbx + rax*4 - 0x3c], ecx
inc rax
cmp rax, 0x10
jl 0x14001b800
jmp 0x14001b856
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rdi - 0x2c]
pxor xmm0, xmmword [rsp + 0x20]
pxor xmm1, xmmword [rsp + 0x30]
movdqu xmmword [rsi], xmm0
movdqu xmm0, xmmword [rdi - 0x1c]
movdqu xmmword [rbx - 0x2c], xmm1
movdqu xmm1, xmmword [rdi - 0xc]
pxor xmm0, xmmword [rsp + 0x40]
pxor xmm1, xmmword [rsp + 0x50]
movdqu xmmword [rbx - 0x1c], xmm0
movdqu xmmword [rbx - 0xc], xmm1
add r14d, 0xffffffc0
add rbp, 0x40
add rdi, 0x40
add rsi, 0x40
add rbx, 0x40
sub r12, 1
jne 0x14001b7d0
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb0]
test r14d, r14d
je 0x14001b994
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140019d00
cmp r14d, 0x40
jb 0x14001b960
lea eax, [r14 - 1]
mov ecx, eax
lea rdx, [rax + rsi]
lea rax, [rsp + 0x20]
add rax, rcx
cmp rsi, rax
ja 0x14001b8cb
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x14001b960
lea rax, [rcx + rbp]
cmp rsi, rax
ja 0x14001b8dd
cmp rdx, rbp
jae 0x14001b960
mov edx, r14d
and edx, 0xffffffc0
mov r8d, 0x20
nop dword [rax]
mov eax, r15d
add r15d, 0x40
movdqu xmm0, xmmword [rsp + rax + 0x20]
movdqu xmm1, xmmword [rax + rbp]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
lea eax, [r8 - 0x10]
movdqu xmm0, xmmword [rsp + rax + 0x20]
movdqu xmm1, xmmword [rax + rbp]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
mov eax, r8d
movdqu xmm0, xmmword [rsp + rax + 0x20]
movdqu xmm1, xmmword [rax + rbp]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
lea eax, [r8 + 0x10]
add r8d, 0x40
movdqu xmm1, xmmword [rax + rbp]
movdqu xmm0, xmmword [rsp + rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
cmp r15d, edx
jb 0x14001b8f0
cmp r15d, r14d
jae 0x14001b994
mov eax, r15d
lea rcx, [rsp + 0x20]
add rcx, rax
lea rax, [rsp + 0x20]
sub rbp, rax
lea rax, [rsp + 0x20]
sub rsi, rax
sub r14d, r15d
mov edx, r14d
movzx eax, byte [rcx + rbp]
xor al, byte [rcx]
mov byte [rcx + rsi], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14001b981
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001ec80
add rsp, 0x80
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret
Function at 0x14002adb0
Capabilities:
Parse pe header

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

Function at 0x14002fe48
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002fe68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140027720
or eax, 0xffffffff
jmp 0x14002fe6a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140ccaad8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ccaae2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ccab0b
pop rbp
sub rbp, 0x33
sub rbp, 0xccaad8
sub rsp, 0x20
jmp 0x140ccab2a
mov rax, 0xccaad8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x1c2b79
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ccab49
jmp 0x140ccab60
xor eax, esi
nop
invalid
Function at 0x140001c90
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14005c98d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005c99d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005c985
lea eax, [rcx + 1]
jmp 0x14005c9ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005c9be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005c9a4
sub eax, 3
jb 0x14005c9de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005ca2d
sar eax, 1
movsxd rbp, eax
jb 0x14005ca14
jmp 0x14005c9ec
add ebx, ebx
jne 0x14005c9ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ca14
inc ecx
add ebx, ebx
jne 0x14005c9fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ca14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005ca0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005c9fc
add ecx, 2
jmp 0x14005ca19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005c942
jmp 0x14005c98d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x34600
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005ca7d
cmp rsi, rcx
jae 0x14005ca85
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005ca64
cmp al, 0x8f
ja 0x14005ca64
cmp byte [rsi - 2], 0xf
je 0x14005ca6a
sub al, 0xe8
cmp al, 1
ja 0x14005ca4e
cmp rsi, rcx
jae 0x14005ca85
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005ca54
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005ca85
lodsb al, byte [rsi]
jmp 0x14005ca64
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x59000]
mov eax, dword [rdi]
or eax, eax
je 0x14005cae2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5c1a0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005ca92
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005cadc
mov qword [rbx], rax
add rbx, 8
jmp 0x14005cab2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005cb1c
cmp al, 0xef
ja 0x14005cb0e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005caee
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005cafd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005cb70
sub rsp, 0xffffffffffffff80
jmp 0x14000f1a0
Function at 0x1400019d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x140001a44
add rdx, 2
test eax, eax
jne 0x140001a30
test ecx, ecx
je 0x140001a5c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001a20
jmp 0x140001a60
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140007150
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140001a90
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ad1
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
movsxd rbx, eax
mov rdx, rbx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x140001b44
cmp dword [rsi], 0x905a4d
jne 0x140001b44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140002100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021fb
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002203
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000223a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002210
lea rdx, [r11 + 4]
movabs r9, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002265
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r9
xor edx, edx
mov r8, rbx
sub r8, r11
cmp r11, rbx
cmova r8, rdx
test r8, r8
je 0x14000229f
nop dword [rax]
movzx ecx, byte [r11]
lea r11, [r11 + 1]
imul rcx, r15
inc rdx
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp rdx, r8
jb 0x140002280
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000b300
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b345
xor al, al
jmp 0x14000b392
cmp word [rbx], 0
je 0x14000b35d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b350
cmp word [rsp + 0x30], 0
je 0x14000b38b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b3b3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b370
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c470
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.1400101c4
int3
Function at 0x14000bae0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.140020a70
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140031db0]
lea rsi, [0x140033de0]
mov rdi, rcx
test r11d, r11d
jne 0x14000bb59
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000b3c0
test al, al
je 0x14000bc3f
lea rcx, [rsp + 0x20]
call fcn.140015704
movsxd r11, dword [0x140031db0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140031db0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000bb94
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000bb84
add rax, 2
test ecx, ecx
jne 0x14000bb70
test edx, edx
je 0x14000bbb7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000bb64
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000bba0
cmp rax, 2
jne 0x14000bbbb
cmp word [rdi + 2], 0x3a
jne 0x14000bbbb
mov al, 1
jmp 0x14000bc1e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000bbe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000bbe8
mov bl, 1
jmp 0x14000bbec
test bl, bl
je 0x14000bc13
cmp dword [0x140031db0], 0x400
jge 0x14000bc13
mov rcx, rdi
call fcn.140015704
movsxd rdx, dword [0x140031db0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140031db0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c470
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000b930
int3
Function at 0x14000bd60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140031db8]
test rcx, rcx
je 0x14000bd9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000bd8e
mov rcx, qword [0x140031db8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031db8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140035e08], 0
je 0x14000be8e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a4d0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140031de0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000be6f
test al, 0x10
je 0x14000be6f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000be15
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1400101b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010023
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010023
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010023
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010023
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010023
cmp dword [rcx + 0x84], 0xe
jbe 0x140010023
cmp dword [rcx + 0xf8], 0
je 0x140010023
mov ecx, ebx
call fcn.1400100d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000feb0
nop
cmp dword [rbp + 0x20], 0
je 0x140010071
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001007c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ffb4