joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x14000d150]
mov rsi, qword [rax]
lea rbx, [rsi + 0x64000]
mov rcx, rbx
call fcn.14000790a
mov rcx, rbx
call fcn.1400072a2
test eax, eax
je 0x140004230
mov rcx, rbx
call fcn.14000789c
mov rcx, rbx
call fcn.140007105
lea rcx, [rsi + 0x60000]
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400074a7
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140004239
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000d0a0]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000425b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.1400048f5
mov rax, qword [0x14000d150]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0x68000
add rsp, 0x20
pop rbx
jmp fcn.140007e00
Function at 0x1400070a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
lea rax, [0x14000c8f0]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
sub rax, 0x10
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x38], 0x40001
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x140007100
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x140007105
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007120
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140007127
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
mov dword [0x14007dea0], 0x68
lea rax, [rsp + 0x58]
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x4000000
mov qword [rsp + 0x48], rax
lea rax, [0x14007dea0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], ecx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
xor eax, eax
test edx, edx
je 0x14000718e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x140007193
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
mov dword [rcx], 0x70
mov qword [rcx + 0x40], rax
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x1400073d4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400073fb
mov edx, eax
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140007403
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
call fcn.1400073d4
mov esi, eax
cmp eax, 0xffffffff
je 0x140007451
mov rcx, rbx
test edi, 1
je 0x140007449
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140007442
and edi, 4
jne 0x140007451
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140007451
mov eax, 1
jmp 0x140007453
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000742c
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000745b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x58], edx
mov edi, r8d
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x140007482
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov r8d, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
ret

Function at 0x1400074a7
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, 0x64
movabs rbp, 0x610073006e
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x28], rbp
call r13
mov ecx, 0x1a
xor edx, edx
xor r8d, r8d
div ecx
mov r9, rbx
mov rcx, rdi
add word [rsp + 0x2c], dx
lea rdx, [rsp + 0x28]
call r12
test eax, eax
jne 0x14000750c
dec esi
jne 0x1400074d6
mov word [rbx], 0
xor ebx, ebx
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000751c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007543
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x140007549
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007570
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x140007614
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rax, qword [0x14000d0b0]
inc dword [rax + 0x10]
add rsp, 0x28
ret

Function at 0x14000772d
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, r8
xor r8d, r8d
mov rbx, r9
cmp dword [rsp + 0x80], 0
setne r8b
lea r9, [rsp + 0x38]
mov dword [rsp + 0x30], 0x4000
shl r8d, 9
or r8d, 0x20019
call fcn.140007695
test eax, eax
je 0x140007770
mov word [rbx], 0
jmp 0x1400077ba
lea rax, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rbx + 0x3ffe], 0
test esi, esi
jne 0x140007769
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140007769
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x1400079df
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
je 0x140007a0b
mov rcx, qword [0x14000a040]
cmp rcx, 0xffffffffffffffff
je 0x1400079fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000a040], 0xffffffffffffffff
jmp 0x140007aa5
cmp dword [0x14006d420], 0
je 0x140007aa5
cmp word [0x140075440], 0
je 0x140007a9b
cmp qword [0x14000a040], 0xffffffffffffffff
je 0x140007a63
lea rbx, [0x14006c420]
lea rdx, [0x14000c356]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000a040]
mov rdx, rbx
lea r8d, [rax + rax]
add rsp, 0x20
pop rbx
jmp fcn.140007549
lea rcx, [0x140075440]
mov r8d, 4
mov edx, 0x40000000
call fcn.14000745b
mov qword [0x14000a040], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140007aa5
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [0x14000a040], 0xffffffffffffffff
jne 0x140007a2c
add rsp, 0x20
pop rbx
ret

Function at 0x140007d5e
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x140075ea0]
mov rdx, rcx
mov rcx, rsi
call fcn.140007881
mov rcx, rsi
call fcn.1400072cc
mov rbx, rax
test rax, rax
jne 0x140007d8b
xor eax, eax
jmp 0x140007df8
mov rcx, rax
call fcn.14000790a
mov rax, qword [0x14000d0d0]
test byte [rax], 0x80
je 0x140007dad
mov ax, word [rbx]
test ax, ax
je 0x140007d87
cmp ax, 0x5c
je 0x140007d87
sub rbx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_lstrlenW]
sar rbx, 1
mov rcx, rsi
call rdi
mov rcx, rsi
cdqe
cmp rax, rbx
jle 0x140007de2
call fcn.140007d2f
test rax, rax
je 0x140007dd8
test byte [rax], 0x10
je 0x140007d87
mov rcx, rsi
call fcn.140007265
jmp 0x140007dba
call fcn.14000789c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140007e00
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov r12d, edx
mov rbx, rcx
mov edi, edx
call fcn.140007d5e
and r12d, 4
mov r13d, eax
test edi, 8
je 0x140007e4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [0x14000d0b0]
cmp eax, 1
adc dword [rdx + 8], 0
jmp 0x14000807f
mov r14d, edi
and r14d, 1
je 0x140007e73
test eax, eax
jne 0x140007e67
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x140008063
test edi, 2
je 0x140007ff9
lea rbp, [0x140079ea0]
mov rdx, rbx
mov rcx, rbp
call fcn.140007881
test r14d, r14d
je 0x140007e9b
lea rdx, str..
mov rcx, rbp
call sub.KERNEL32.dll_lstrcatW
jmp 0x140007ea3
mov rcx, rbx
call fcn.140007265
cmp word [rbx], 0
jne 0x140007eb3
cmp word [0x140079ea0], 0x5c
jne 0x140007ec2
lea rdx, [0x14000c340]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
movsxd rsi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
add rsi, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
add rsi, rbx
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140007fe1
lea rax, [rsp + 0x5c]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x5c], 0x2e
jne 0x140007f30
mov ax, word [rsp + 0x5e]
test ax, ax
je 0x140007fc5
cmp ax, 0x2e
jne 0x140007f30
cmp word [rsp + 0x60], 0
je 0x140007fc5
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140007881
test byte [rsp + 0x30], 0x10
je 0x140007f58
mov eax, edi
not eax
test al, 3
jne 0x140007fc5
mov edx, edi
mov rcx, rbx
call fcn.140007e00
jmp 0x140007fc5
mov rdx, rbx
lea rcx, str.Delete:_DeleteFile___s__
call fcn.140007cc9
mov edx, r12d
mov rcx, rbx
call fcn.140007403
mov rdx, rbx
test eax, eax
jne 0x140007fbb
test r12d, r12d
je 0x140007fa3
lea rcx, str.Delete:_DeleteFile_on_Reboot___s__
call fcn.140007cc9
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006ab6
xor edx, edx
mov rcx, rbx
call fcn.140007614
jmp 0x140007fc5
lea rcx, str.Delete:_DeleteFile_failed___s__
call fcn.140007cc9
mov rax, qword [0x14000d0b0]
inc dword [rax + 8]
jmp 0x140007fc5
mov ecx, 0xfffffff2
call fcn.140006ab6
mov rdx, qword [rsp + 0x20]
mov rcx, rbp
call r15
test eax, eax
jne 0x140007f08
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x14000807f
mov word [rsi - 2], 0
test r13d, r13d
je 0x140007e58
mov rcx, rbx
call fcn.140007d2f
test rax, rax
je 0x14000807f
mov rcx, rbx
call fcn.14000789c
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory___s__
call fcn.140007cc9
mov edx, r12d
mov rcx, rbx
or edx, 1
call fcn.140007403
mov rdx, rbx
test eax, eax
jne 0x140008074
test r12d, r12d
je 0x14000805c
lea rcx, str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.140007cc9
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006ab6
xor edx, edx
mov rcx, rbx
call fcn.140007614
jmp 0x14000807f
lea rcx, str.RMDir:_RemoveDirectory_failed___s__
call fcn.140007cc9
mov rax, qword [0x14000d0b0]
inc dword [rax + 8]
jmp 0x14000807f
mov ecx, 0xffffffe5
call fcn.140006ab6
nop
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008093
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov edx, 0x104
lea rbx, [rsp + 0x24]
mov qword [rsp + 0x270], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9, qword [rsp + 0x270]
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x1400080d7
cmp word [rsp + rdx*2 + 0x24], 0x5c
sete dl
movzx edx, dl
jmp 0x1400080de
xor eax, eax
mov edx, 1
mov eax, eax
add rdx, rdx
add rax, rax
lea rcx, [rbx + rax]
lea rax, [0x14000c340]
lea r8, [rax + rdx]
lea rdx, str._s_S.dll
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0x260
pop rbx
ret
Function at 0x180001070
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rdx
mov dword [rsp + 0x50], 0
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rbp
mov edi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x48], 0
mov r9d, ebx
mov edx, eax
mov r8, rbp
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WTSAPI32.dll_WTSSendMessageA]
call qword [sym.imp.EOSSDK_Win64_Shipping.dll_EOS_Shutdown]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800013e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001408
xor eax, eax
lea r8, [0x1800011f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000709c
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 0x18000710b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000710b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000710b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000710b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000710b
cmp dword [rcx + 0x84], 0xe
jbe 0x18000710b
cmp dword [rcx + 0xf8], 0
je 0x18000710b
mov ecx, ebx
call fcn.1800071bc
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.180006f98
nop
cmp dword [rbp + 0x20], 0
je 0x180007159
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180007164
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000709c
Function at 0x18000c8f8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000c928
xor eax, eax
jmp 0x18000c9eb
mov rbp, rbx
cmp word [rax], si
je 0x18000c94d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000c934
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000c930
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000c818
movsxd r14, eax
test eax, eax
jne 0x18000c98b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000c921
mov rcx, r14
call fcn.180008e78
mov rdi, rax
test rax, rax
jne 0x18000c9a4
xor ecx, ecx
call fcn.1800082ec
jmp 0x18000c980
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000c818
test eax, eax
jne 0x18000c9d5
mov rcx, rdi
call fcn.1800082ec
jmp 0x18000c9df
xor ecx, ecx
call fcn.1800082ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800103bc
Capabilities:
Get file size

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

Function at 0x1800137a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800137c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800137c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007d80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400420e0]
test rcx, rcx
je 0x140007dbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007de0
mov rcx, qword [0x1400420e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140043100], 0
jne 0x140007df8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400420e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e3d2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043120]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007ec4
test al, 0x10
je 0x140007dc4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007dc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e70
jmp 0x140007dc4

Function at 0x14000e530
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015eb0
sub rsp, rax
mov eax, dword [0x140047120]
mov rsi, rcx
test eax, eax
je 0x14000e5d0
xor ebx, ebx
lea rdi, [0x140045120]
test eax, eax
jg 0x14000e56c
jmp 0x14000e580
add rbx, 1
cmp dword [0x140047120], ebx
jle 0x14000e580
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e560
jmp 0x14000e5b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e595
cmp word [rsi + 2], 0x3a
je 0x14000e5b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e620
movsxd rbx, dword [0x140047120]
cmp ebx, 0x3ff
jle 0x14000e638
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e65a
movsxd rbx, dword [0x140047120]
mov rcx, rdi
lea rdi, [0x140045120]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047120]
add eax, 1
mov dword [0x140047120], eax
jmp 0x14000e551
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5a4
xor eax, eax
jmp 0x14000e5bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047120], 1
mov rdx, rax
lea rax, [0x140045120]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5b7
mov rcx, rbx
call fcn.140007cc0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014b90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001baf0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001baf0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140015862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140047248]
test eax, eax
je 0x1400158fa
lea rax, [0x140047220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140047250]
mov qword [rbp - 8], rax
jmp 0x1400158de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400158d2
cmp qword [rbp - 0x10], 0
je 0x1400158d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140015898
lea rax, [0x140047220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400158fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015a00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015a28
mov eax, 0
jmp 0x140015a76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140015a51
mov eax, 0
jmp 0x140015a76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015a71
mov eax, 0
jmp 0x140015a76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140015a7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015afa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015af1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015af1
mov rax, qword [rbp - 8]
jmp 0x140015b0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015ac4
mov eax, 0
add rsp, 0x20
pop rbp
ret