joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b46f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400b4898
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400b4755
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b4755
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b4755
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400b478c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400b47e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b47e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b47e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b47e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b47e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400b41a0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400b4844
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140090930
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400b4570
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b4890
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140090930
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b6000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f9080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400b6095
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400b60f6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140090930
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c91a0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400b61b1
sub ecx, 1
je 0x1400b6224
sub ecx, 1
je 0x1400b6160
cmp ecx, 1
je 0x1400b6143
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400e5a28]
call fcn.140090930
jmp 0x1400b6224
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400b5d30
test eax, eax
je 0x1400b6224
jmp 0x1400b60ca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400b6224
sub rax, rsi
cmp rax, rbp
jae 0x1400b6224
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140090ab0
jmp 0x1400b6224
cmp r8d, 4
jle 0x1400b6224
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400b6224
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140090850
mov esi, eax
test eax, eax
je 0x1400b6203
mov edx, 5
mov rcx, rbx
call fcn.1400b6cf0
mov eax, esi
jmp 0x1400b60ca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14009f120
mov rcx, r14
call fcn.14009f400
test eax, eax
je 0x1400b60c8
mov edx, 5
mov rcx, rbx
call fcn.1400b6cf0
mov eax, Ordinal_46
jmp 0x1400b60ca
Function at 0x1400c8fc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c9002
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c9049
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c90a2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c9060
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c90e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400de102]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400de103]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c90b0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ca13c
Capabilities:
Parse pe header

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

Disassembly:
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x100001683
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x100001683
lea rax, [rsp + 0x30]
mov edx, 0x29
lea rcx, [rsp + 0x30]
sub rbx, rax
mov r8d, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [rdx + 0x7fffffd5]
cmp rax, rdi
je 0x100001072
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001072
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100001050
cmp rdx, rdi
je 0x100001690
cmp r8d, edi
mov word [rcx], di
jl 0x1000010c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, edi
jl 0x1000010c8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1000010c8
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ole32.dll_CoRegisterSurrogateEx
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100157000
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100003018]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor ecx, ecx
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
mov r11d, 0x105
lea rcx, [rsp + 0x90]
mov edx, edi
sub rbx, rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [r11 + 0x7ffffef9]
cmp rax, rdi
je 0x100001482
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001482
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100001460
cmp r11, rdi
je 0x100001670
cmp edx, edi
mov word [rcx], di
jl 0x1000010c8
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x100001683
cmp word [rbx], 0x3a
je section..text
add rbx, 2
cmp word [rbx], di
jne 0x1000014ac
jmp 0x10000167e
sub rcx, 2
mov edx, 0x8007007a
jmp 0x10000148b
jmp 0x100001007
lea rbx, [rsp + 0x90]
jmp 0x10000102d
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x10000107b
Function at 0x140002c10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003a60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003a60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002db0
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cb0
mov rcx, rbx
call fcn.1400036d0
mov rdi, rax
test rax, rax
je 0x140002dd2
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003810
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d60
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c10
nop dword [rax]
xor esi, esi
jmp 0x140002cd8
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000339c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003393
test rsi, rsi
je 0x140003393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003378
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400036d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000374d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003744
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400036f0
add rax, 0x28
cmp rax, r9
jne 0x140003730
xor eax, eax
ret

Function at 0x140003750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005990]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000376f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003778
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000376f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000382f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003838
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x141164058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411641df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141164089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14116406f
add dl, dl
jne 0x141164096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411640f6
xor eax, eax
add dl, dl
jne 0x1411640a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411641ad
add dl, dl
jne 0x1411640b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411640c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411640d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411640dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411640ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14116407e
mov eax, 1
add dl, dl
jne 0x141164106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141164113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411640fb
sub eax, ebx
mov ebx, 1
jne 0x14116414c
mov ecx, 1
add dl, dl
jne 0x14116412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14116413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141164123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141164168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141164175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14116415d
cmp eax, 0x7d00
jae 0x14116419b
cmp eax, 0x500
jb 0x141164196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116407e
cmp eax, 0x7f
ja 0x14116419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411641d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14116407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001890
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
cmp qword [rsp + 0x90], 0
jne 0x1800018af
xor eax, eax
jmp 0x1800019a1
mov rcx, qword [rsp + 0x90]
call fcn.1800fbc94
add rax, 2
mov qword [rsp + 0x68], rax
mov eax, 2
mul qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800fb374
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1800fb1e0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1800fbcdc
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov eax, 0x414
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001995
cmp dword [rsp + 0x60], 0x402
je 0x180001995
mov dword [rsp + 0x78], 0
jmp 0x18000199d
mov dword [rsp + 0x78], 1
mov eax, dword [rsp + 0x78]
add rsp, 0x80
pop rdi
ret

Function at 0x180002590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x50], 0
jne 0x1800025bd
jmp 0x18000264e
mov rcx, qword [rsp + 0x50]
call fcn.1800fbc94
cmp rax, 2
jae 0x1800025cf
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800025f4
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x1800025f4
mov dword [rsp + 0x20], 1
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
mov word [rsp + 0x32], ax
xor eax, eax
mov word [rsp + 0x34], ax
xor eax, eax
mov word [rsp + 0x36], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
je 0x18000263a
cmp dword [rsp + 0x24], 1
jne 0x180002644
mov dword [rsp + 0x20], 1
jmp 0x18000264e
xor eax, eax
test eax, eax
jne 0x1800025b0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x48
ret

Function at 0x180002670
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180234e68], 0
jne 0x180002699
mov dword [0x180234e68], 1
mov edx, 0x104
lea rcx, [0x180234c60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180234c60]
add rsp, 0x28
ret

Function at 0x180002c20
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180236518], 0
jne 0x180002c49
mov dword [0x180236518], 1
mov edx, 0x104
lea rcx, [0x180236310]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180236310]
add rsp, 0x28
ret
Function at 0x180003400
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180238408], 0
jne 0x18000345f
mov dword [0x180238408], 1
call fcn.18012a240
test eax, eax
je 0x18000344d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x180238200]
call fcn.180132760
test eax, eax
je 0x18000344b
lea rdx, [0x1801aa200]
lea rcx, [0x180238200]
call fcn.1800fbcb0
jmp 0x18000345f
mov edx, 0x104
lea rcx, [0x180238200]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180238200]
add rsp, 0x28
ret

Function at 0x1800038c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180239488], 0
jne 0x18000391f
mov dword [0x180239488], 1
call fcn.18012a240
test eax, eax
je 0x18000390d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x180239280]
call fcn.18012bda0
test eax, eax
je 0x18000390b
lea rdx, [0x1801aa200]
lea rcx, [0x180239280]
call fcn.1800fbcb0
jmp 0x18000391f
mov edx, 0x104
lea rcx, [0x180239280]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180239280]
add rsp, 0x28
ret
Function at 0x180019b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
jne 0x180019b75
mov eax, 0x80000002
jmp 0x180019d6a
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [0x18023d770]
call fcn.1800c1540
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x180019bd6
mov eax, dword [rsp + 0x70]
and eax, 1
test eax, eax
je 0x180019bae
mov eax, 0x80000001
jmp 0x180019d6a
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x18023d770]
call fcn.1800c15b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
jmp 0x180019bff
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x18023d770]
call fcn.1800c0f40
test eax, eax
jne 0x180019bff
mov eax, 0x80000003
jmp 0x180019d6a
mov eax, dword [rsp + 0x70]
and eax, 0x100
test eax, eax
je 0x180019d37
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x2c]
call fcn.1800cb3d0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180019c34
cmp dword [rsp + 0x2c], 1
je 0x180019c4f
mov ecx, 1
call fcn.1800cb470
test eax, eax
jne 0x180019c4f
mov eax, dword [rsp + 0x20]
or eax, 0x80000008
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x70]
and eax, 0x1000
test eax, eax
je 0x180019cf1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov ecx, 1
call sym.TSandbox64.dll_AddFileControlPolicyByProcessID
lea rdx, [0x1801a9e70]
lea rcx, [rsp + 0x38]
call fcn.1800ebc90
mov r8, qword [rsp + 0x68]
lea rdx, [0x1801b91e0]
lea rcx, [rsp + 0x38]
call fcn.1800e9330
mov rcx, qword [rsp + 0x38]
call fcn.1800d0760
lea rdx, [0x1801a9e70]
lea rcx, [rsp + 0x40]
call fcn.1800ebc90
mov r8, qword [rsp + 0x60]
lea rdx, str.HKEY_USERSTSandbox__s
lea rcx, [rsp + 0x40]
call fcn.1800e9330
mov rcx, qword [rsp + 0x40]
call fcn.1800d0920
lea rcx, [rsp + 0x40]
call fcn.1800e8250
lea rcx, [rsp + 0x38]
call fcn.1800e8250
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x70]
and eax, 0x10000
test eax, eax
je 0x180019d11
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
and eax, 0x20000
test eax, eax
je 0x180019d29
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x34]
call fcn.1800cb590
call fcn.1800d27d0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x180019d66
mov rcx, qword [rsp + 0x68]
call fcn.180001830
test eax, eax
jne 0x180019d66
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret