joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140231134
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140231161
mov rdx, qword [rsp + 0x20]
jmp 0x140231169
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x14023163b
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 8]
test rax, rax
je 0x14023169c
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1402316d4
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1402316cb
xor edi, edi
lea r8, [0x1404f14c8]
xor ebx, ebx
movzx esi, byte [rax + rdi]
or ebx, dword [r8 + rsi*4]
inc rdi
cmp rdx, rdi
jne 0x1402316b9
jmp 0x1402316cd
xor ebx, ebx
mov dword [rsp + 0x98], ebx
mov r14, qword [rcx + 0x40]
test r14, r14
je 0x140231718
xor r15d, r15d
mov rax, r14
shr rax, 0x3c
sete al
jne 0x1402317fc
mov rbx, qword [rcx + 0x38]
lea rdi, [r14*8]
mov r15b, al
shl r15, 3
test rdi, rdi
je 0x140231721
mov rcx, rdi
mov rdx, r15
call fcn.14002c720
mov rsi, rax
jmp 0x140231724
xor eax, eax
mov esi, 8
jmp 0x140231740
mov rsi, r15
test rsi, rsi
je 0x140231803
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
add rdi, 0xfffffffffffffff8
jne 0x14023172f
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x140231799
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1402317d0
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov ecx, 0x20
mov edx, 8
call fcn.14002c720
test rax, rax
je 0x14023180b
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x1402317e7
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400535c0
ud2
mov rcx, rdi
mov rdx, r15
jmp 0x140231815
mov ecx, 0x20
mov edx, 8
call fcn.1403af440
ud2
Function at 0x14023b339
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14023b366
xor eax, eax
jmp 0x14023b373
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14023b378
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14023b39c
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
jmp 0x14023b39e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140241310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140241343
test ecx, ecx
jne 0x140241392
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140241350
test ecx, ecx
jne 0x140241392
mov rcx, rdi
call fcn.1402411f0
movzx r10d, al
test bl, bl
jne 0x140241399
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140241386.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14024150c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140241386.2
xor r10d, r10d
test bl, bl
je 0x140241360
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1402414ee
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1402413cb
xor edi, edi
jmp 0x140241448
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140241410
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14024142b
inc rsi
dec rax
cmp rsi, 1
jne 0x1402413f0
jmp 0x140241448
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14024142b
cmp ebx, 0x5c
je 0x14024142b
inc rsi
dec rax
cmp rsi, 1
jne 0x140241410
jmp 0x140241448
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1402414fc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140241472
mov al, 9
cmp rdx, 2
je 0x140241476
cmp rdx, 1
jne 0x140241486
cmp byte [r9], 0x2e
jne 0x140241486
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140241486
mov al, 0xa
jmp 0x140241486
cmp byte [r9], 0x2e
jne 0x140241486
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140241386.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140241386.2
mov esi, 2
jmp case.0x140241386.2
lea r8, str.library_std_srcpath.rs
call fcn.1403af930
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1403af930
ud2
Function at 0x140246190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1402461ed
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x1402462ee
test r15w, r15w
je 0x1402461ed
cmp r15w, 0x2e
jne 0x1402462ee
test r12w, r12w
jne 0x1402462ee
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.1403ac180
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x1402462d4
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.KERNEL32.DLL_FindNextFileW]
jmp 0x140246250
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x1402462d4
cmp word [rsp + 0xac], 0x2e
jne 0x140246279
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140246240
cmp ax, 0x2e
jne 0x140246279
cmp word [rsp + 0xb0], 0
je 0x140246240
lock inc qword [r14]
jle 0x1402463d9
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x140246319
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x12
jne 0x140246365
mov qword [rsi], 0
jmp 0x1402463c7
lock inc qword [r14]
jle 0x1402463d9
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403abad0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403abad0
jmp 0x140246377
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.1403abad0
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x140247440
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
test cl, cl
je 0x14024745d
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.1402474d0
lea rcx, [rsp + 0x28]
call fcn.140245570
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1402474a6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x1402474b1
xor ebx, ebx
test rdi, rdi
mov edi, 0
je 0x1402474a6
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, rbx
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
mov rdi, rbx
jne 0x140247491
jmp 0x1402474a6

Function at 0x14024c9d0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x14051f208]
cmp rax, 3
jne 0x14024caf8
cmp rbx, 0x17f
ja 0x14024cb0a
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r8, rbx
call fcn.1403abad0
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x14024ca49
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x14024ca5c
inc rdx
cmp rcx, rdx
jne 0x14024ca30
mov rdx, r8
test rax, rax
jne 0x14024ca66
jmp 0x14024cac2
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.14005ebe0
test rax, rax
jne 0x14024ca66
jmp 0x14024cac2
mov eax, 1
test rax, rax
je 0x14024cac2
cmp rdx, rbx
jne 0x14024cac2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14024cad6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14024cae9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14024caec
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1403b9df0
cmp rbx, 0x17f
jbe 0x14024ca07
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, ebp
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1403b9e50
Function at 0x14024d5d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
test dx, dx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14024d621
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14024d692
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14024d635
cmp eax, 0x2739
jne 0x14024d67f
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14024d679
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
je 0x14024d69a
mov qword [rsi + 8], rdi
jmp 0x14024d618
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]
Function at 0x140254e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rcx
lea rcx, [rbp - 0x30]
call fcn.140245570
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140254e93
mov rbx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140254f0c
mov qword [r14], rbx
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rsi
jmp 0x140254f01
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140254ef9
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x140254ee7
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140254ed8
mov r8, qword [r8 - 8]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov qword [r14 + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [r14 + 8], 0
test rbx, rbx
je 0x140254f01
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_HeapFree]
Function at 0x140257260
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14002c720
mov rsi, rax
test rax, rax
je 0x140257347
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140257700]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140257339
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x140257313
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140257304
mov r8, qword [r8 - 8]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.1403af440
ud2
Function at 0x140257af0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1403aaf10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1403ac180
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140257cfc
mov r14, qword [sym.imp.KERNEL32.DLL_SleepEx]
mov r15d, 0xffffffff
lea r12, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x140257bc0
cmp dword [rbp + 0xfec], 0
jne 0x140257d01
mov eax, dword [rbp + 0xff0]
test eax, eax
je 0x140257d01
mov ebx, eax
cmp eax, 0x1000
ja 0x140257d4c
xor edi, edi
cmp rdi, rbx
ja 0x140257d31
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r13, rbx
sub rbx, rdi
cmp rbx, r15
cmovae rbx, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df20]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r8d, ebx
mov r9, r12
call qword [sym.imp.KERNEL32.DLL_WriteFileEx]
test eax, eax
je 0x140257cfc
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x140257c70
cmp dword [rbp + 0xfec], 0
jne 0x140257d01
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rbx, r13
cmp rdi, r13
jne 0x140257c00
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df20]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
jne 0x140257bc0
call sub.KERNEL32.DLL_GetLastError
mov rdi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rbx
mov rdx, rbx
call fcn.1403afbd0
jmp 0x140257d67
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
call fcn.1403af940
ud2
Function at 0x140257e00
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x14051f230]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x140257e62
lea rdx, [0x1404c2374]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140257e98
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x14051f230], rcx
jne 0x140257e52
mov rsi, qword [rsp + 0x30]
jmp 0x140257e62
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140257e98
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x140063050]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x1404c23c8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [0x1404c23e8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.L_
lea rcx, [rsp + 0x30]
call fcn.1403af870
ud2
Function at 0x14025a900
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14025aa04
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14025a937
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14025a9ee
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14025a9d1
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14025a98e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14025a9aa
jmp 0x14025a99f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x14025a9a5
cmp eax, 0x6d
jne 0x14025a9c1
mov byte [rsi + 1], 0
jmp 0x14025a9b5
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14025a9b7
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1403b9b60
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14025a944
mov r8d, 0x10
mov rcx, rbx
call fcn.1403b9b60
mov rax, qword [rbx]
jmp 0x14025a937
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1403ba0c0
ud2

Function at 0x14025f190
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14025f1b1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x14025f1e9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14025f1e2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14025f1e9
mov ecx, eax
call fcn.140257e00
mov r8d, dword [0x14051f7b8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0xb8], 1
mov qword [rcx + 0xc0], rax
mov qword [rcx + 0xc8], rdx
add rsp, 0x38
ret

Function at 0x14025f9b0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140245570
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14025fa04
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x14025fa0f
xor ebx, ebx
test rdi, rdi
mov edi, 0
je 0x14025fa04
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, rbx
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
mov rdi, rbx
jne 0x14025f9ef
jmp 0x14025fa04
Function at 0x14025fa30
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.140245570
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x14025fad6
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140245570
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14025fae3
mov qword [rbp - 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14025fb80]
lea r9, [rbp - 0x30]
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_CopyFileExW]
test eax, eax
je 0x14025faf4
mov rax, qword [rbp - 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x14025fb11
jmp 0x14025fb23
mov qword [rsi + 8], rcx
mov qword [rsi], 1
jmp 0x14025fb3c
mov qword [rsi + 8], rbx
mov qword [rsi], 1
mov r14, qword [rbp - 0x18]
jmp 0x14025fb23
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x14025fb23
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
cmp qword [rbp - 0x10], 0
je 0x14025fb3c
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.DLL_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret