joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009f4b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009f6de
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14009f4e0
test rax, rax
je 0x14009f514
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14009f6de
cmp r8w, 0x2f
je 0x14009f6de
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14009f4f0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14009f700
mov rsi, rax
test rax, rax
je 0x14009f60e
mov qword [rsp + 0x50], r14
call fcn.1400a05a0
mov r14, rax
test rax, rax
je 0x14009f5fb
mov rcx, rsi
call fcn.14009a240
test eax, eax
je 0x14009f5e4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14009f590
mov r8, rbx
mov rcx, rsi
call fcn.1401b590c
test eax, eax
je 0x14009f5b8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14009f580
jmp 0x14009f5c7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14009dca0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14009f5f2
mov rcx, rsi
call fcn.14009a1f0
test eax, eax
je 0x14009f5f2
mov rbp, rsi
xor esi, esi
jmp 0x14009f5f2
mov rdx, rsi
mov rcx, r14
call fcn.14009dca0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14009f6aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14009f6b3
mov rcx, rbx
call fcn.14009a0f0
mov rdi, rax
test rax, rax
je 0x14009f6b3
mov ecx, 0x37e4
call fcn.14009cef0
test eax, eax
je 0x14009f648
xor ecx, ecx
call fcn.1400a0240
jmp 0x14009f64d
call fcn.1400a05a0
mov rbx, rax
test rax, rax
je 0x14009f6a1
mov rdx, rdi
mov rcx, rax
call fcn.14009dca0
mov rbp, rax
test rax, rax
je 0x14009f698
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f67a
test al, 0x50
je 0x14009f698
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14009f68d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14009f6b3
xor ecx, ecx
jmp 0x14009f6c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009f6c6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400a05a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400a0602
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400a05f7
cmp edi, eax
jb 0x1400a05f7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a0bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400a0d37
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x1400a0c23
cmp eax, 0x2f
je 0x1400a0c23
mov ecx, eax
call fcn.1401b5280
test eax, eax
je 0x1400a0d37
cmp word [rbx + 2], 0x3a
jne 0x1400a0d37
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x1400a0c23
cmp ax, 0x2f
jne 0x1400a0d37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a0d1b
test al, 0x50
jne 0x1400a0d1b
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a0c90
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.1400a1620
test eax, eax
je 0x1400a0cc2
test r14d, r14d
je 0x1400a0cd6
cmp dword [rsp + 0x60], edi
jne 0x1400a0cd6
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14009d260
test eax, eax
je 0x1400a0ced
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x1400a0d0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a0c7a
xor ecx, ecx
jmp 0x1400a0c74
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400bb990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140211ea8]
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400bba78
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400bba78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rdi, rax
test rax, rax
je 0x1400bba78
mov ecx, SafeArrayPutElement
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1400bba5b
lea rax, [0x140211e98]
mov qword [rbx + 8], 0
lea rdx, [rbx + 8]
mov qword [rbx], rax
mov rcx, rdi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [rbx + 0x10], eax
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi]
xor ebx, ebx
mov rcx, rdi
call qword [rdx + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c1cc0
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [0x14027d190]
xor esi, esi
mov dword [rsp + 0x30], esi
test rax, rax
jne 0x1400c1f19
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, 0x110
call fcn.1401882a0
lea rcx, [rbp + 0x60]
mov dword [rbp + 0x60], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x64], 5
ja 0x1400c1d34
jne 0x1400c1f12
cmp dword [rbp + 0x68], 1
jb 0x1400c1f12
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400c1d9b
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x1400c1d84
mov r9d, 2
lea rdx, str.D:uworkspace03_28cefwinauto_srccbwcef_dark_aero_window.cpp
lea rcx, [rsp + 0x38]
lea r8d, [r9 + 0x49]
call fcn.1400c74b0
lea rdx, str.Couldnt_find_system_path
lea rcx, [rax + 8]
call fcn.1400025c0
mov esi, 1
test sil, 1
je 0x1400c1d94
lea rcx, [rsp + 0x38]
call fcn.1400c7810
xor eax, eax
jmp 0x1400c1f19
movdqa xmm0, xmmword [0x14020c440]
lea rax, [rbp + 0x180]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], si
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400c1dc0
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x38]
call fcn.1400258a0
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x1400c1e3f
mov qword [rsp + 0x4b0], rbx
cmp rdx, 8
lea rbx, [rbp + 0x38]
mov qword [rsp + 0x4b8], rdi
cmovae rbx, qword [rbp + 0x38]
lea rdi, [rcx + 0xb]
mov r8d, SafeArrayPutElement
mov qword [rbp + 0x48], rdi
lea rdx, [0x140212348]
lea rcx, [rbx + rcx*2]
call fcn.140187e90
mov word [rbx + rdi*2], si
mov rdi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
jmp 0x1400c1e62
lfence
xor r8d, r8d
mov qword [rsp + 0x20], reloc.WS2_32.dll_inet_addr
lea r9, [0x140212348]
lea rcx, [rbp + 0x38]
lea edx, [r8 + 0xb]
call fcn.140037d80
cmp qword [rbp + 0x50], 8
lea rcx, [rbp + 0x38]
cmovae rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14027d190], rax
test rax, rax
je 0x1400c1ed6
lea rdx, str.DwmExtendFrameIntoClientArea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14027d190]
lea rdx, str.DwmDefWindowProc
mov qword [0x14027d198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14027d190]
lea rdx, str.DwmIsCompositionEnabled
mov qword [0x14027d1a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027d1a8], rax
mov rax, qword [0x14027d190]
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x1400c1f19
mov rcx, qword [rbp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c1f0d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c1f39
call fcn.140157ef0
mov rax, qword [0x14027d190]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140157f90
mov rsi, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rbp
ret
call fcn.1401963ac
int3
Function at 0x14015e380
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14015e393
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14015f4c0
lea rdx, [0x1402734e0]
lea rcx, [rsp + 0x20]
call fcn.140188a1c
int3

Function at 0x14016cc88
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14027e230]
xor edx, edx
jmp fcn.14015e380

Function at 0x14016e6f8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14027e230]
jmp fcn.14015e380

Function at 0x14017ff98
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140180078]
mov r9, qword [r9 + 8]
jmp fcn.140169910

Function at 0x140180050
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140180088]
mov r9, qword [r9 + 8]
jmp fcn.140169910

Function at 0x1401b32b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401b32d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401b74d0
or eax, 0xffffffff
jmp 0x1401b32d2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401d1ff4
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 rbx, rcx
test rcx, rcx
jne 0x1401d1c9a
call fcn.1401b7540
mov dword [rax], SafeArrayPutElement
call fcn.14019638c
jmp 0x1401d1de5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401d1de5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401d1de5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401d1cc9
lock or dword [rcx + 0x14], 0x10
jmp 0x1401d1de5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401d1cdd
call fcn.1401d36e8
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401d1ced
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401d1cf0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401ccaac
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401d2d14
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401d1dd3
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401d1d81
mov rcx, rbx
call fcn.1401ccaac
cmp eax, 0xffffffff
je 0x1401d1d6c
mov rcx, rbx
call fcn.1401ccaac
cmp eax, 0xfffffffe
je 0x1401d1d6c
mov rcx, rbx
call fcn.1401ccaac
movsxd rdi, eax
lea r14, [0x14027f160]
mov rcx, rbx
sar rdi, 6
call fcn.1401ccaac
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401d1d73
lea rdx, [0x1402793e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401d1d81
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401d1da5
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401d1da5
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401d1da5
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401d1dc3
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401d1dce
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401d1dea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1401d1c64
Function at 0x1400020f0
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 0x1400021eb
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 0x1400021f3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000222a
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 0x140002200
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002255
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000227b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002260
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, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a410
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a4b5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a46d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a460
cmp rcx, 1
jb 0x14000a4e6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a483
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000dd7c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a450
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b820
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000da80
int3
Function at 0x14000a570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
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 0x14000a5b5
xor al, al
jmp 0x14000a602
cmp word [rbx], 0
je 0x14000a5cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a5c0
cmp word [rsp + 0x30], 0
je 0x14000a5fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a623
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b820
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000da80
int3
Function at 0x14000adb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001cab0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002cd14]
lea rsi, [0x140031d50]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae29
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a630
test al, al
je 0x14000af0f
lea rcx, [rsp + 0x20]
call fcn.140011498
movsxd r11, dword [0x14002cd14]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002cd14], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae64
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 0x14000ae54
add rax, 2
test ecx, ecx
jne 0x14000ae40
test edx, edx
je 0x14000ae87
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae34
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae70
cmp rax, 2
jne 0x14000ae8b
cmp word [rdi + 2], 0x3a
jne 0x14000ae8b
mov al, 1
jmp 0x14000aeee
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 0x14000aeb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aeb8
mov bl, 1
jmp 0x14000aebc
test bl, bl
je 0x14000aee3
cmp dword [0x14002cd14], 0x400
jge 0x14000aee3
mov rcx, rdi
call fcn.140011498
movsxd rdx, dword [0x14002cd14]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002cd14], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b820
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac50
int3
Function at 0x14000b030
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002cd18]
test rcx, rcx
je 0x14000b06b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b05e
mov rcx, qword [0x14002cd18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002cd18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140035d52], 0
je 0x14000b15e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140026968]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002f550]
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 0x14000b13f
test al, 0x10
je 0x14000b13f
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 0x14000b0e5
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 0x14000c0f4
Capabilities:
Parse pe header

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

Function at 0x14000da74
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d907
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d907
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d907
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d907
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d907
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d907
cmp dword [rcx + 0xf8], 0
je 0x14000d907
mov ecx, ebx
call fcn.14000d9a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d798
cmp dword [rbp + 0x20], 0
je 0x14000d954
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d95c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d8a0
Function at 0x14001c9f0
Capabilities:
Parse pe header

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