joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fa2b0
Capabilities:
Terminate process

Disassembly:
push r12
sub rsp, 0x20
mov r12d, ecx
xor ecx, ecx
call fcn.1400fa330
lea rcx, [0x1401931a8]
mov edx, 6
call fcn.1400fac30
cmp eax, 1
je 0x1400fa31b
test eax, eax
jl 0x1400fa2e1
add rsp, 0x20
pop r12
ret
xor edx, edx
mov ecx, 1
xor r8d, r8d
call fcn.1400fc620
mov ecx, 1
mov edx, 0x3a
xor r8d, r8d
call fcn.1400fc620
xor edx, edx
mov ecx, 1
xor r8d, r8d
call fcn.1400fc620
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
xor ecx, ecx
mov edx, r12d
add rsp, 0x20
pop r12
jmp 0x1400fc8e0
push r14
push r15
push rbp
sub rsp, 0x240
mov r15d, edx
mov ebp, r15d
mov r14d, r15d
mov rax, qword [0x14018b5c0]
and ebp, 4
xor rax, rsp
mov qword [rsp + 0x230], rax
and r14d, 2
je 0x1400fc92d
test cl, 2
je 0x1400fc949
test ebp, ebp
je 0x1400fc91e
test cl, 4
je 0x1400fc949
test r15d, 1
jne 0x1400fc9eb
jmp 0x1400fc983
test ebp, ebp
je 0x1400fc9b5
test cl, 4
je 0x1400fc949
test r15d, 1
jne 0x1400fc9eb
jmp 0x1400fc99c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
nop
fxsave [rsp + 0x30]
xor edx, edx
mov eax, dword [rsp + 0x4c]
test al, 0x40
cmove r14d, edx
test eax, 0x20000
cmove ebp, edx
test r15d, 1
jne 0x1400fc9eb
test r14d, r14d
je 0x1400fc998
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x40
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
test ebp, ebp
je 0x1400fc9be
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x20000
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
jmp 0x1400fc9be
test r15d, 1
jne 0x1400fc9eb
mov rcx, qword [rsp + 0x230]
mov qword [rsp + 0x230], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x1400fca07
add rsp, 0x240
pop rbp
pop r15
pop r14
ret
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x8000
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
jmp 0x1400fc97e
call fcn.14013ad30
nop
nop dword [rax]
push rdi
push r15
mov r11, rcx
mov r10, r11
movabs rax, 0x101010101010101
movzx r9, dl
imul r9, rax
lea rdx, [0x1400fd6b0]
vmovq xmm0, r9
cmp r8, 0x80
ja 0x1400fca50
mov rdi, r10
add rdi, r8
sub rdx, qword [rdx + r8*8]
notrack jmp rdx
lea rdx, [0x1400fcdb0]
mov rcx, r10
and rcx, 0x1f
je 0x1400fca83
neg rcx
add rcx, 0x20
sub r8, rcx
mov rdi, r10
add rdi, rcx
sub rdx, qword [rdx + rcx*8]
notrack jmp rdx
cmp r8, 0x100
jl 0x1400fcbc0
mov rcx, qword [0x14018be30]
mov rdi, rcx
shr rcx, 4
sub rdi, rcx
cmp r8, rdi
jae 0x1400fcb00
vpbroadcastd ymm0, xmm0
vmovdqa ymmword [r10], ymm0
vmovdqa ymmword [r10 + 0x20], ymm0
vmovdqa ymmword [r10 + 0x40], ymm0
vmovdqa ymmword [r10 + 0x60], ymm0
add r10, 0x100
sub r8, 0x100
vmovdqa ymmword [r10 - 0x80], ymm0
vmovdqa ymmword [r10 - 0x60], ymm0
vmovdqa ymmword [r10 - 0x40], ymm0
vmovdqa ymmword [r10 - 0x20], ymm0
cmp r8, 0x100
jge 0x1400fcaab
jmp 0x1400fcbd0
mov rdi, r10
mov rax, r9
mov rcx, r8
cld
rep stosb byte [rdi], al
jmp 0x1400fdac0
vpbroadcastd ymm0, xmm0
nop dword [rax]
nop dword [rax]
add r10, r8
mov rdi, r10
and r10, 0xffffffffffffffe0
lea rdx, [0x1400fceb0]
sub rdx, qword [rdx + r8*8]
notrack jmp rdx
vzeroupper
mov rax, r11
pop r15
pop rdi
ret
Function at 0x1401342c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14018b5c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbx, rdx
mov ecx, dword [0x1401924e8]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140192338], ecx
jg 0x140134387
mov rax, qword [0x140192330]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rax]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140134345
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14013ad30
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
mov ecx, eax
call fcn.1401343d0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140152648]
lea rcx, [rsp + 0x28]
call fcn.140060050
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140133cf0
lea rdx, [0x1401844e0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140192338]
call fcn.14013af9c
cmp dword [0x140192338], 0xffffffff
jne 0x140134308
lea rcx, [rsp + 0x20]
call fcn.1401343f0
mov qword [0x140192330], rax
lea rcx, [0x140192338]
call fcn.14013af3c
jmp 0x140134308
Function at 0x1401344f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x14018b5c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r8d
mov r14, rcx
mov esi, r8d
mov qword [rsp + 0x40], rsi
test r8d, r8d
jne 0x14013452e
xor ebx, ebx
jmp 0x140134539
mov rcx, rsi
call fcn.14010dd30
mov rbx, rax
mov qword [rsp + 0x48], rbx
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.14010a600
lea rbp, vtable.CryptoPP::NonblockingRng.0
mov qword [rsp + 0x28], rbp
lea rcx, [rsp + 0x30]
call fcn.140133be0
nop
mov ecx, dword [0x1401924e8]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140192338], ecx
jg 0x140134647
mov rax, qword [0x140192330]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rax]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140134605
mov qword [rsp + 0x28], rbp
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401345ba
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rax, qword [r14]
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call qword [rax + 0x18]
nop
mov rdi, rbx
xor eax, eax
mov rcx, rsi
rep stosb byte [rdi], al
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14013ad30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.1401343d0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140152648]
lea rcx, [rsp + 0x50]
call fcn.140060050
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140133cf0
lea rdx, [0x1401844e0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140192338]
call fcn.14013af9c
cmp dword [0x140192338], 0xffffffff
jne 0x140134588
lea rcx, [rsp + 0x20]
call fcn.1401343f0
mov qword [0x140192330], rax
lea rcx, [0x140192338]
call fcn.14013af3c
jmp 0x140134588
Function at 0x14013bcd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013bd1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013bd1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013bd1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013bd1a
cmp dword [rcx + 0x84], 0xe
jbe 0x14013bd1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14013bd1c
xor al, al
add rsp, 0x28
ret
Function at 0x328215e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
call sym._errno
mov dword [rax], 0
cmp qword [rbp + 0xe0], 0
jne 0x328215e42
call sym._errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x32821604f
mov rax, qword [rbp + 0xe0]
movzx eax, byte [rax]
test al, al
jne 0x328215e65
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x32821604f
mov rcx, qword [rbp + 0xe0]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0xffffffff
jne 0x328215e99
call sym._errno
mov dword [rax], 2
mov eax, 0
jmp 0x32821604f
mov eax, dword [rbp + 0xbc]
and eax, 0x10
test eax, eax
jne 0x328215ebb
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x32821604f
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call sym._fullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
add rax, 0x24b
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x328215f14
call sym._errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x32821604f
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x244]
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.strcpy
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + 0x244]
test al, al
je 0x328215fb6
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x2f
je 0x328215fb6
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x5c
je 0x328215fb6
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x5c
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x2a
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x238], 0xffffffffffffffff
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x240], 0
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x128], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12c], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12e], 0
mov rax, qword [rbp + 0xb0]
add rax, 0x130
mov r8d, 0x104
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rbp
ret

Function at 0x402d30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004064f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402d9d
mov rcx, r8
call fcn.00402c10
test eax, eax
je 0x402d9d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d9f
add rax, 0x28
cmp rax, r9
jne 0x402d80
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180001693
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800016d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800016d2
cmp rbx, r11
jae 0x1800016d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800016c0
cmp rbx, r11
jb 0x1800016db
xor eax, eax
jmp 0x1800016e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800121c0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x98]
mov r12, rax
test r13, r13
je 0x180012251
test rsi, rsi
je 0x18001222b
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x18001222b
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x180012260
test rdi, rdi
je 0x180012251
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180012251
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x180012260
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x18017a000]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180012290
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r9, qword [rbx]
mov rcx, rbx
mov r12, rax
call qword [r9 + 0x90]
mov rbp, rax
test r12, r12
je 0x18001231a
test rsi, rsi
je 0x1800122f7
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x1800122f7
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x180012326
test rdi, rdi
je 0x18001231a
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x18001231a
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x180012326
mov rdx, rdi
mov rcx, rsi
call qword [0x180179f10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x180012350
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x90]
mov r12, rax
test r13, r13
je 0x1800123e1
test rsi, rsi
je 0x1800123bb
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x1800123bb
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1800123f0
test rdi, rdi
je 0x1800123e1
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x1800123e1
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1800123f0
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x180179fe8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180012420
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x98]
mov r12, rax
test r13, r13
je 0x1800124b1
test rsi, rsi
je 0x18001248b
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x18001248b
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1800124c0
test rdi, rdi
je 0x1800124b1
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x1800124b1
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1800124c0
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x180179f48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180015de0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x90]
mov r12, rax
test r13, r13
je 0x180015e71
test rsi, rsi
je 0x180015e4b
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015e4b
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x180015e80
test rdi, rdi
je 0x180015e71
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015e71
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x180015e80
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x180179f08]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180015eb0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r9, qword [rbx]
mov rcx, rbx
mov r12, rax
call qword [r9 + 0x98]
mov rbp, rax
test r12, r12
je 0x180015f3a
test rsi, rsi
je 0x180015f17
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180015f17
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x180015f46
test rdi, rdi
je 0x180015f3a
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180015f3a
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x180015f46
mov rdx, rdi
mov rcx, rsi
call qword [0x180179ff0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x1800417f0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180175020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
xor edi, edi
mov dword [rcx], 0x2710
lea rbp, vtable.SpeedBit::Utils::StackBufferEx_128_.0
mov qword [rsp + 0x30], rbp
mov qword [r11 - 0x28], 0x80
lea rax, [rsp + 0x38]
mov qword [r11 - 0x30], rax
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x38]
call sub.MSVCR90.dll_memset
nop
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
mov rbx, rax
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov r8d, ebx
mov rdx, rax
lea rcx, str.SB_VAR_F3B44D29_36CA_4481_9EA7_B31ADA3C649E
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1800418be
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
cmp ebx, eax
jae 0x1800418be
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, rax
call fcn.1800416d0
mov edi, eax
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x1800418e8
test rcx, rcx
je 0x1800418e4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x1800418ea
mov eax, edi
jmp 0x1800418ea
mov eax, edi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800e9aa0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800427d0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x78
xor ebp, ebp
mov rbx, rcx
cmp byte [rcx + 0x229], bpl
je 0x18004283d
lea rdx, [rcx + 0x1b0]
mov rcx, qword [rcx + 0x180]
lea r8, [rax + 0x10]
xor r9d, r9d
mov dword [rax + 0x10], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x180042923
mov r8d, dword [rsp + 0x98]
test r8d, r8d
je 0x180042836
mov rdx, qword [rbx + 0x238]
mov rcx, rbx
call fcn.1800429e0
mov rcx, qword [rbx + 0x1c8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [rbx + 0x229], bpl
mov r8d, dword [rbx + 0x22c]
mov rdx, qword [rbx + 0x238]
mov rcx, qword [rbx + 0x180]
mov qword [rsp + 0xa0], rsi
lea rsi, [rbx + 0x1b0]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180042906
nop
cmp eax, 0x3e4
je 0x180042906
test edi, edi
je 0x1800429ad
mov r8d, dword [rsp + 0x90]
test r8d, r8d
je 0x1800428bb
mov rdx, qword [rbx + 0x238]
mov rcx, rbx
call fcn.1800429e0
mov rcx, qword [rbx + 0x1c8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 0x22c]
mov rdx, qword [rbx + 0x238]
mov rcx, qword [rbx + 0x180]
lea r9, [rsp + 0x90]
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180042890
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x70]
mov byte [rbx + 0x229], 1
mov al, 1
add rsp, 0x78
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x18004291a
test eax, eax
je 0x18004291a
cmp eax, 0x6d
jne 0x18004295d
mov rcx, qword [rbx + 0x198]
xor r8d, r8d
mov byte [rbx + 0x1a2], 1
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 8]
xor al, al
add rsp, 0x78
pop rbp
pop rbx
ret
cmp eax, 0xe9
jne 0x180042987
lea rdx, str.Server_had_terminated_client
lea rcx, [rsp + 0x30]
call fcn.18004e140
lea rdx, [0x18016f330]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
int3
lea rdx, str.Receive_pending_operation_problems.___s
lea rcx, [rsp + 0x40]
mov r8d, eax
call fcn.18004e190
lea rdx, [0x18016f350]
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll__CxxThrowException
int3
lea rdx, str.Data_read_problems.___s
lea rcx, [rsp + 0x58]
mov r8d, eax
call fcn.18004e190
lea rdx, [0x18016f350]
lea rcx, [rsp + 0x58]
call sub.MSVCR90.dll__CxxThrowException
int3
Function at 0x180045e70
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x180175020]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x104
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180045f2b
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180046000
mov ebx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, ebx
jmp 0x180045f30
mov eax, 0x270f
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800e9aa0
add rsp, 0x2a0
pop rbx
ret