joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cca0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov r10, r8
mov rbx, rdx
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004ca46
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004ca89
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004ca70
mov rax, qword [rdx]
test rax, rax
jne 0x14004ca40
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cae5
or rax, 0xffffffffffffffff
jmp 0x14004ca40
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004ca9c
cmp rax, 0xffffffffffffffff
je 0x14004ca9c
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b60
jmp 0x14004ca3d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009b6c8]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004ca39
test rax, rax
je 0x14004ca39
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b60
mov rcx, rbx
call fcn.140039bd0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004ca3d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004ca00

Function at 0x14004d1d0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004d202
call fcn.14003abf0
test al, al
jne 0x14004d21f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004d215
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14004d540
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov byte [0x1400b28ee], dil
test ebx, ebx
je 0x14004d5b6
mov byte [0x1400b28ef], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x14004d420]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400164c4
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14004d5eb
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400b28ef], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400b28ee], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x14004d7b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14004d790
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14004e320
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rdx], esi
mov word [rdx + 4], si
cmp qword [rcx + 0x28], rsi
je 0x14004e3ba
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004e490
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x14004e36f
cmp byte [rsp + 0x30], al
jne 0x14004e378
cmp byte [rdi + 0x1e], sil
jne 0x14004e378
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x14004e38b
cmp byte [rdi + 0x1f], sil
jne 0x14004e38b
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x14004e39b
cmp byte [rdi + 0x20], sil
jne 0x14004e39b
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x14004e3ab
cmp byte [rdi + 0x21], sil
jne 0x14004e3ab
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x14004e490
jmp 0x14004e486
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x14004e3df
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e3e8
cmp byte [rdi + 0x1e], sil
jne 0x14004e3e8
mov byte [rbx], 1
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e408
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e412
cmp byte [rdi + 0x1f], sil
jne 0x14004e412
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e432
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e43c
cmp byte [rdi + 0x20], sil
jne 0x14004e43c
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e45c
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e466
cmp byte [rdi + 0x21], sil
jne 0x14004e466
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e486
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e490
cmp byte [rdi + 0x22], sil
jne 0x14004e490
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004e650
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov r8, qword [rdx]
mov rdi, rcx
mov rsi, rdx
mov r12d, dword [r8 + rcx]
lea rax, [r8 + 4]
mov rcx, 0xffffffffffffffff
mov qword [rdx], rax
lea eax, [r12 + 1]
movsxd r8, eax
mov eax, 2
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140014c1c
lea ecx, [r12 + r12]
movsxd rbx, ecx
mov rcx, qword [rsi]
mov rbp, rax
lea rdx, [rdi + rcx]
mov r8, rbx
mov rcx, rax
call fcn.140014710
add qword [rsi], rbx
xor eax, eax
movsxd r11, r12d
mov word [rbp + r11*2], ax
test r12d, r12d
jle 0x14004e6e2
mov rax, rbp
mov ecx, r12d
xor word [rax], r12w
add rax, 2
dec rcx
jne 0x14004e6d5
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r12
ret
Function at 0x140050050
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, edx
mov dl, 1
call fcn.14004d1d0
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x1400500ac
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, pe_nt_image_headers64
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, ebx
jmp 0x1400500e8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, pe_nt_image_headers64
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
shl eax, 0x10
mov edx, 0x101
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
xor edx, edx
call fcn.14004d1d0
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140051d10
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x1400c3e20]
mov r12d, r9d
mov r13d, r8d
call fcn.1400381d0
movsxd r10, eax
mov rax, qword [0x1400c3ec0]
mov r10, qword [rax + r10*8]
mov rbx, qword [r10]
cmp rbp, rsi
jne 0x140051d9b
cmp qword [rbx + 0x2d0], 0
je 0x140051e0d
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rsi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x140051e2d
lea rcx, [0x1400c3e20]
mov rdx, rbp
call fcn.14004afd0
cmp eax, 0xffffffff
je 0x140051e0d
movsxd rdi, eax
mov rax, qword [0x1400c3ee8]
mov rcx, qword [rax + rdi*8]
mov rdx, qword [rcx]
mov al, byte [rdx + 0xf4]
cmp al, 0xe
je 0x140051e0d
cmp al, 0xf
je 0x140051e0d
cmp al, 0x13
je 0x140051e0d
cmp al, 0x10
je 0x140051e0d
cmp qword [rdx + 0x10], 0
je 0x140051e0d
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [0x1400c3ee8]
and qword [rsp + 0x28], 0
mov rax, qword [r11 + rdi*8]
mov rcx, qword [rax]
mov rax, qword [rbx]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140051d84
movzx r9d, r12w
movzx eax, r13w
mov r8, rbp
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rsi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140055410
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov sil, r9b
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14005543f
mov r8b, r9b
call fcn.1400552e0
jmp 0x140055533
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
mov eax, dword [rdx + 0xe0]
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x14005549e
lea edx, [rax + 0x15]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14004b7f0
jmp 0x140055533
mov rdx, qword [rdi + 0xc0]
and qword [rsp + 0x20], 0
mov r9d, ebp
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rcx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x48], rcx
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400554e4
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x14005551d
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [rsp + 0x70]
shl rcx, 0x20
mov eax, eax
or rcx, rax
mov qword [rbx + 0x18], rcx
test sil, sil
je 0x140055515
mov rdx, rdi
mov rcx, rbx
call fcn.14004ba20
jmp 0x140055525
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b7f0
lea rcx, [rsp + 0x40]
mov bl, al
call fcn.140038ce0
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140055550
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
cmp dword [rdx + 0xe4], 4
mov esi, dword [rcx + 0x90]
mov r14b, r9b
mov r13b, r8b
mov r12, rdx
mov rbx, rcx
jne 0x140055588
bts esi, 0x17
mov eax, dword [rdx + 0xe0]
mov r10, qword [rdx + 0x60]
and qword [rsp + 0x38], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
and dword [rsp + 0x30], 0
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x1400555e1
lea edx, [rax + 0xb]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14004b7f0
jmp 0x14005571d
and qword [rsp + 0x38], 0
mov r8, qword [r12 + 0xc0]
mov dword [rsp + 0x30], esi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rcx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x28], rcx
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x14005562c
lea edx, [rax + 0xc]
jmp 0x1400556ff
test r13b, r13b
je 0x14005563f
mov r8, r12
mov rdx, rax
mov rcx, rbx
call fcn.14004ba30
bt esi, 0xc
jae 0x14005567e
mov r12d, 4
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
lea esi, [r12 + 0x1b]
mov rcx, rdi
mov dword [rbp + 0x38], r12d
mov edx, esi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rbp + 0x30], 8
lea r8, [rbp + 0x30]
mov r9d, r12d
mov edx, esi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1400556fa
mov rcx, rdi
call fcn.140038d90
cmp eax, 0xc8
jne 0x1400556fa
and dword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x20]
mov edx, 5
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x20]
call fcn.1400156a4
mov rcx, rbx
mov qword [rbx + 0x18], rax
test r14b, r14b
je 0x1400556f0
mov rdx, rdi
call fcn.14004ba20
jmp 0x140055710
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14005570b
mov edx, reloc.WSOCK32.dll_listen
mov rcx, rbx
mov r8d, 0xdeadbeef
xor r9d, r9d
call fcn.14004b7f0
lea rcx, [rbp - 0x30]
mov bl, al
call fcn.140038ce0
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140055c20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov ebx, r8d
mov esi, edx
call fcn.14004c2f0
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.14004c220
test esi, esi
je 0x140055c6a
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.14004c2b0
xor byte [rdi], al
inc rdi
dec rbx
jne 0x140055c56
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140055f60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [reloc.WSOCK32.dll_accept]
jne 0x140055f71
call fcn.14004c4c0
mov rax, qword [0x1400c2970]
pxor xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400c2970], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400a08e8]
add rsp, 0x28
ret

Function at 0x140055fd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [reloc.WSOCK32.dll_accept]
jne 0x140055fe1
call fcn.14004c4c0
mov rax, qword [0x1400c2970]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400c2970], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret

Function at 0x140056320
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
mov rdi, rcx
je 0x140056388
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140056388
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x58]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x58]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 0x58]
call fcn.140039bd0
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400563a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x58], 0
mov rbx, rcx
jne 0x1400563d7
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x1400562c0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret
Function at 0x1400568d0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, edx
mov edi, ecx
lea rdx, str.SeShutdownPrivilege
lea rcx, [rsp + 0x30]
call fcn.14004d680
lea rcx, [rsp + 0x30]
call fcn.14003ef00
xor ebx, ebx
test al, al
je 0x14005695f
cmp edi, 0x20
je 0x14005694e
cmp edi, 0x40
je 0x140056953
test dil, 0xb
jne 0x140056920
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x14005695d
test dil, 0x14
mov r9d, ebx
mov eax, 1
cmovne r9d, eax
test dil, 2
mov dword [rsp + 0x28], esi
cmovne ebx, eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x14005695d
mov ebx, 1
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140050630
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140056980
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov bl, dl
lea rdx, [rsp + 0x60]
call fcn.1400130c0
lea rcx, [rsp + 0x60]
call fcn.14003b200
xor edi, edi
test al, al
je 0x140056a1a
lea rcx, [rsp + 0x60]
test bl, bl
jne 0x1400569cc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x140056a1a
call fcn.140014a44
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rdi
mov word [rsp + rax*2 + 0x62], di
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140056a30
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rbx, rdx
lea rdx, [rbp + 0x170]
mov dil, r8b
call fcn.1400130c0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400130c0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x140056abb
test dil, dil
je 0x140056ab4
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call fcn.14001565c
test eax, eax
je 0x140056aad
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x140056b63
xor al, al
jmp 0x140056b63
lea rcx, [rbp + 0x170]
call fcn.14003b200
test al, al
je 0x140056ab4
lea rcx, [rsp + 0x60]
call fcn.14003b200
test al, al
je 0x140056b78
test dil, dil
je 0x140056ab4
lea rdx, str..
lea rcx, [rbp + 0x170]
call fcn.140014a68
lea rcx, [rbp + 0x170]
call fcn.140014a44
lea rcx, [rsp + 0x60]
mov word [rbp + rax*2 + 0x172], bx
call fcn.140014a44
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
lea rax, [rbp + 0x170]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 2
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14003ad80
test al, al
je 0x140056ab4
lea rcx, [rsp + 0x60]
call fcn.14003b200
test al, al
jmp 0x140056ae0
Function at 0x140056ba0
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1028]
mov eax, 0x1100
call fcn.1400243b0
sub rsp, rax
mov rbx, rdx
lea rdx, [rbp + 0x360]
xor edi, edi
mov r13b, r9b
mov r14b, r8b
mov sil, dil
call fcn.1400130c0
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.1400130c0
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x360]
call fcn.14003b150
lea rcx, [rbp + 0x360]
mov r15b, al
call fcn.14003b200
test al, al
je 0x140056c2e
lea rdx, str..
lea rcx, [rbp + 0x360]
call fcn.140014a68
lea rcx, [rbp + 0x570]
call fcn.14003b200
test al, al
je 0x140056c51
lea rdx, str..
lea rcx, [rbp + 0x570]
call fcn.140014a68
lea rax, [rbp + 0xdf0]
lea r9, [rbp + 0x9d0]
lea r8, [rbp + 0xbe0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x20], rax
call fcn.1400160bc
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12b, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140056ddf
cmp r12b, 1
jne 0x140056ddf
test byte [rbp + 0x780], 0x10
jne 0x140056db2
lea rax, [rbp + 0x150]
lea r9, [rbp + 0x570]
lea r8, [rbp + 0xdf0]
lea rdx, [rbp + 0x9d0]
lea rcx, [rbp + 0x7ac]
mov qword [rsp + 0x20], rax
call fcn.14003af90
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140014a94
lea rdx, [rbp + 0xbe0]
lea rcx, [rsp + 0x40]
call fcn.140014a68
lea rdx, [rbp + 0x7ac]
lea rcx, [rsp + 0x40]
call fcn.140014a68
lea rcx, [rbp + 0x150]
call fcn.14003b270
test al, al
je 0x140056d51
test r14b, r14b
je 0x140056dd2
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140056d70
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
cmp r13b, 1
jne 0x140056da2
test r15b, r15b
jne 0x140056d88
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140056dab
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140056de2
jmp 0x140056daf
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140056dd2
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140056dab
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140056dd2
mov sil, 1
lea rdx, [rbp + 0x780]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140056ca0
mov r12b, dil
jmp 0x140056ca0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x140056dee
mov dil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, dil
lea r11, [rsp + 0x1100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret