joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015080
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x14004ea40]
mov rcx, rdi
call fcn.140023f00
test rax, rax
je 0x1400152ba
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x1400152b2
cmp eax, 0x2f
je 0x1400152b2
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.1400152f8
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.140016ea0
lea r8, [rbx + 1]
lea rdx, [0x14004ea40]
mov rcx, rdi
call fcn.1400243c8
mov rcx, rdi
call fcn.14002084c
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400152be
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400152f1
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400152f1
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.1400152f8
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140016ea0
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001521d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001522f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.140015310
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.1400243c8
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14001528b
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x14001526d
mov rdi, rbx
mov rcx, rdi
call fcn.140015310
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400150d0
xor ebp, ebp
jmp 0x140015296
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400152f1
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140015150
xor ebp, ebp
jmp 0x14001528e
Function at 0x1800018f0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
lea r8, str.GlobalEzR51BHWxv3g5AZ8ZXlk
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18000197a
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x180001961
sub ebx, 1
je 0x18000194e
sub ebx, 1
je 0x180001953
cmp ebx, 1
je 0x180001958
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1800012a0
call fcn.1800012a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180001990
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x1e0
mov rax, qword [0x180022008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rcx, str.37019
mov ebp, r9d
mov rsi, r8
call fcn.180008a28
mov r14d, 2
lea rdx, [rsp + 0x30]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
lea edx, [r14 - 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
lea r8, [rsp + 0x24]
mov ecx, r14d
lea rdx, str.192.168.130.10
mov rdi, rax
call qword [sym.imp.WS2_32.dll_inet_pton]
movzx ecx, bx
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r14 + 0xe]
mov rcx, rdi
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x180001a35
xor al, al
jmp 0x180001a58
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180001ba0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006fe0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x140007118
mov rdi, rax
movsxd rax, dword [rbp - 0x24]
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea r13, [rdi + rax*8]
lea rbx, [rbp - 0x58]
lea r14, [rbp - 0x40]
lea r15, [rbp - 0x20]
mov r12, rdi
jmp 0x140007071
add r12, 8
mov rax, qword [rbp - 0x20]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbp - 0x48]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rax + rcx*8], xmm0
inc qword [rbp - 0x10]
cmp r12, r13
je 0x1400070bb
mov byte [rbp - 1], 1
mov rcx, r12
call fcn.14001ab80
lea rcx, [rax + rdx*2]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rcx
mov word [rbp - 0x30], 0
mov byte [rbp - 1], 1
mov rcx, rbx
mov rdx, r14
call fcn.14000f8b0
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x18]
jne 0x140007050
mov rcx, r15
call fcn.14000e740
mov rdx, qword [rbp - 0x10]
jmp 0x140007050
mov byte [rbp - 1], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x58], rax
mov byte [rbp - 1], 1
lea rcx, [rbp - 0x58]
call fcn.14001aa90
test al, al
je 0x140007128
mov byte [rbp - 1], 1
call fcn.14001b7e0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], edx
mov qword [rbp - 0x40], 1
mov rcx, qword [rbp - 0x10]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
test rax, rax
je 0x140007137
lea rcx, [rbp - 0x38]
mov byte [rbp - 1], 0
call fcn.14001aba0
jmp 0x140007137
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
jmp 0x140007137
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140009ae0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140009b22
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140009b2a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140009b3b
jmp 0x140009b52
xor r10d, r10d
jmp 0x140009bdd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140009b52
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140009b69
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140009b89
add r11, r8
jmp 0x140009cba
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140009c52
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140009c00
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140009c70
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140009c82
jmp 0x140009c9c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140009c9c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140009cb6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a530
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rsi, rcx
test dl, dl
je 0x14000a5b7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14000a57c
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0x70], xmm0
jmp 0x14000a5b7
call fcn.14001b7e0
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], edx
mov qword [rsp + 0x90], 1
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0x70], xmm0
test rax, rax
je 0x14000a5b7
lea rcx, [rsp + 0x98]
call fcn.14001aba0
test bl, bl
je 0x14000a64e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_K32GetPerformanceInfo]
test eax, eax
je 0x14000a64e
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0x80], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0x88], rax
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x140015030
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rdx + 0x10]
movzx r14d, byte [rdx + 0x18]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], r14b
movzx eax, byte [0x14005e1c1]
mov ecx, 0x5f0
mov edx, 8
call fcn.1400040b0
test rax, rax
mov qword [rbp - 8], rbx
je 0x1400152a6
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x10], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word cs:[rax + rax]
mov eax, 1
lock xadd qword [0x14005e1d8], rax
mov r13, rax
xor r13, rcx
lea r15, [rdx + r13]
mov rbx, r13
rol rbx, 0x10
xor rbx, r15
lea r12, [rbx + r8]
rol rbx, 0x15
add r13, r9
mov r15, r13
xor r15, r10
rol r13, 0x20
xor rax, r12
add rax, r15
rol r15, 0xd
xor r12, r11
xor r15, rax
rol rax, 0x20
xor r12, rbx
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r12, rax
xor r15, r13
rol r13, 0x20
xor rax, r11
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor r13, 0xff
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
add r13, r12
rol r12, 0x10
xor r12, r13
rol r12, 0x15
xor r15, rax
add r13, r15
rol r15, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r15
xor rax, r12
xor rax, r13
je 0x140015100
mov rdx, qword [rbp - 8]
mov rcx, qword [rdx + 0x40]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov r8, qword [rbp - 0x18]
mov qword [rsi + 0x138], r8
mov byte [rsi + 0x140], r14b
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov r8, qword [rbp - 0x10]
mov qword [rsi + 0x100], r8
mov qword [rsi + 0x108], rax
mov qword [rsi + 0x110], rcx
mov rcx, qword [rdx + 0x48]
test rcx, rcx
je 0x140015292
mov rdx, qword [rdx + 0x50]
test rdx, rdx
je 0x140015292
mov r8d, 1
call fcn.1400040c0
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.14003f6e0
ud2
Function at 0x14001f7b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x14001f7e6
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001f7f6
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14001f810
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14001f8a0
jmp 0x14001f88f
jae 0x14001f960
cmp r8, 0x201
jae 0x14001f8a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001f8f8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001f8cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003eb60
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14001f921
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001f9c8
mov r8d, r14d
cmp r15, r8
jne 0x14001f880
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001f9eb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001f88f
jmp 0x14001f8a0
cmp rsi, r8
jb 0x14001fa05
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140023600
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14001f9b1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400040c0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14001f999
jmp 0x14001f9b1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003f870
jmp 0x14001fa1a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003fcc0
ud2
Function at 0x14002a760
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14004cee0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002a7a4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002a80a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002a841
test eax, eax
js 0x14002a81b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002a834
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023140
mov rcx, rax
call fcn.14001d240
mov ecx, 7
int 0x29
ud2

Function at 0x14002c210
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
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 0x14002c248
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14002c260
nop
add rsp, 0x38
ret

Function at 0x14002c260
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002c2a3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140021510]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003f7c0
ud2
Function at 0x1400398a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003991a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140039910
cmp r11, r10
ja 0x1400399b3
cmp r10, rdx
ja 0x1400399c7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140039912
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400398f0
jmp 0x140039987
ja 0x14003991a
mov r11, r10
cmp rax, r8
jne 0x1400398c2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003998b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140039960
mov r8, r10
sub ecx, r9d
jns 0x14003997e
jmp 0x14003998d
cmp r10, rdx
je 0x140039999
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003998d
xor al, 1
cmp r8, rdx
jne 0x140039940
jmp 0x14003998d
xor eax, eax
jmp 0x14003998d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003f870
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003fd40
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003fcc0
ud2

Function at 0x14003b5dc
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [0x140020170]
xor rax, rsp
mov qword [rbp], rax
call fcn.14000918c
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x14001aba0]
movdqu xmmword [rsp + 0x38], xmm0
lea r8d, [rdi + 0xa]
lea rdx, str._user_path
lea rcx, [rsp + 0x28]
call fcn.140001a70
movsxd rcx, dword [rsp + 0x20]
lea rdx, [rbx + rcx*8]
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.1400096bc
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140001a08
mov rcx, rbx
call fcn.14000b710
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x78], di
mov qword [rbp - 8], rdi
call fcn.14000147c
mov qword [0x140021a78], rdi
lea rax, vtable.rpc_object_stub_class_cpt_control_agent_.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.14000c554
nop
lea rcx, [rsp + 0x58]
call fcn.14000c514
lea rcx, [rsp + 0x58]
call fcn.1400017f4
nop
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140015e70
add rsp, 0x110
pop rdi
pop rbx
pop rbp
ret