joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c61b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1807b4cd8], eax
je 0x1800c61dd
mov eax, 0x10dd
jmp 0x1800c63f6
cmp dword [0x1807b4cdc], 0
je 0x1800c61f1
mov eax, dword [0x1807b4cdc]
jmp 0x1800c63f6
cmp qword [rsp + 0x78], 0
jne 0x1800c6203
mov eax, 0x57
jmp 0x1800c63f6
cmp qword [rsp + 0x70], 0
jne 0x1800c6215
mov eax, 6
jmp 0x1800c63f6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800c6247
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1807b4cdc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1807b4ce0], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800c63f6
mov ecx, 0x30
call fcn.1800c8370
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800c62b9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1807b4cdc], eax
cmp qword [rsp + 0x30], 0
je 0x1800c62a4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1800c8734
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1807b4ce0], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800c63f6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800c6180
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800c6180
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1800c6316
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1800c6333
mov dword [rsp + 0x20], 9
cmp dword [0x1807b4cd0], 0
je 0x1800c632e
jmp 0x1800c627a
jmp 0x1800c6270
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800c6360
mov dword [rsp + 0x20], 9
cmp dword [0x1807b4cd0], 0
je 0x1800c635b
jmp 0x1800c627a
jmp 0x1800c6270
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800c6397
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800c6270
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1807b4cf0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1807b4cf0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800c6400
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1807b4cd8], eax
je 0x1800c641b
mov eax, 0x10dd
jmp 0x1800c6540
mov rax, qword [0x1807b4cf0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800c64c5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800c6490
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800c6490
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800c4e00
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1800c8734
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800c6427
mov qword [0x1807b4cf0], 0
call fcn.1800c5860
mov rax, qword [0x1807b4ce8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800c6529
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800c8734
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800c64e1
mov qword [0x1807b4ce8], 0
mov dword [0x1807b4cd8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800c6a70
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1807b4cdc], 0
je 0x1800c6a8d
mov eax, dword [0x1807b4cdc]
jmp 0x1800c6b53
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800c6aa0
xor eax, eax
jmp 0x1800c6b53
mov ecx, 0x10
call fcn.1800c8370
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800c6b0e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800c6af3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800c8734
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1807b4cdc], eax
mov qword [0x1807b4ce0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800c6b53
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800c6b28
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800c6ac9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1807b4ce8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1807b4ce8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800c815c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800c81e0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800cee30]
cmp byte [rcx + rax], 0
je 0x1800c81e0
dec r8
sub rdx, 1
jne 0x1800c81c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800020b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x180002102
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
mov dl, byte [r11]
movsxd rax, edi
mov cl, dl
xor cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, r10b
mov r10b, dl
cdq
mov byte [r11], cl
idiv r9d
inc r11
mov edi, edx
sub rbx, 1
jne 0x1800020d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180002104
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18000214c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
movsxd rax, edi
mov cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, byte [r11]
cdq
idiv r9d
xor cl, r10b
mov byte [r11], cl
mov edi, edx
inc r11
mov r10b, cl
sub rbx, 1
jne 0x18000211d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800021ac
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbp, dword [rsp + 0x70]
mov r12d, ecx
mov rsi, r9
mov edi, r8d
mov ebx, edx
lea ecx, [rbp + 0x30]
call fcn.180002150
mov r10d, dword [0x180004288]
mov r8, rbp
mov rdx, rsi
mov r13, rax
mov r15, qword [rax + 8]
lea r14, [r15 + 0x13]
mov dword [r15 + 0x2c], ebp
mov dword [r14 + 0xe], edi
lea rdi, [r15 + 0x30]
mov dword [r14], r10d
mov rcx, rdi
mov r10d, dword [0x180004270]
mov dword [r14 + 4], r10d
mov dword [r14 + 8], 0xa787da43
mov byte [r14 + 0xc], r12b
mov byte [r14 + 0xd], bl
mov dword [r14 + 0x12], ebp
call fcn.180002ecc
mov edx, select
lea ecx, [rdx - 0xa]
call fcn.180002e94
lea rbx, [r15 + 4]
mov dword [r15], eax
mov rcx, rbx
mov edx, eax
call fcn.180002e80
mov r9d, 0x1f
lea r8, [0x1800040c0]
mov rcx, r14
lea esi, [r9 - 9]
mov edx, esi
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, esi
mov rcx, r14
mov r8, rbx
call fcn.1800020b8
mov edx, ebp
lea r9d, [rsi + 9]
mov rcx, rdi
lea r8, [0x1800040c0]
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, ebp
mov rcx, rdi
mov r8, rbx
call fcn.1800020b8
mov rdx, r13
lea rcx, [0x180004290]
call fcn.180001604
cmp r12d, 6
je 0x1800022be
mov rcx, qword [0x180004170]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x1400117c0
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002209f]
call fcn.140011370
lea rax, [0x140019c23]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140011879
mov rcx, qword [rbp + 8]
call fcn.140011177
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.test
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c00]
call fcn.140011307
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400111b3
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014060
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014080
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014093
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400140bd
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400140d1
xor al, al
jmp 0x140014101
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140e3
xor al, al
jmp 0x140014101
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140ff
xor al, al
jmp 0x140014101
mov al, 1
add rsp, 0x38
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rdi, 0x9737788b53a92c20
fadd qword [rdi + 0x5c7e33bd]
imul edi, edx, 0x1e
invalid
Function at 0x1400041d0
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 r13d, r13d
cmp r8, 0x201
jae 0x140004260
jmp 0x14000424f
jae 0x140004320
cmp r8, 0x201
jae 0x140004260
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x1400042b8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000428f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001c1a0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3d8], r13
mov rbx, rdi
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400042e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004388
mov r8d, r14d
cmp r15, r8
jne 0x140004240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400043ab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000424f
jmp 0x140004260
cmp rsi, r8
jb 0x1400043c5
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400068a0
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 0x140004371
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001840
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 0x140004359
jmp 0x140004371
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001cdf0
jmp 0x1400043da
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d240
ud2
Function at 0x140004430
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000d170
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400045a6
mov qword [rbp + 0x408], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor esi, esi
cmp r8, 0x201
jae 0x1400044e0
jmp 0x1400044cf
jae 0x1400045b8
cmp r8, 0x201
jae 0x1400044e0
lea r13, [rbp - 0x60]
mov r15d, 0x200
mov r12, r8
jmp 0x140004537
sub r8, rsi
sub rbx, rsi
cmp rbx, r8
jae 0x14000450f
lea rcx, [rbp + 0x3e8]
mov rdx, rsi
call fcn.14001c1a0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rbp + 0x3f8], rsi
mov rbx, rdi
mov r13, qword [rbp + 0x418]
mov r15, rsi
mov r12, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140004567
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000468b
mov r8d, r14d
cmp r12, r8
jne 0x1400044c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400046b5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400044cf
jmp 0x1400044e0
lea rcx, [rbp - 0x58]
call fcn.1400020b0
mov byte [rsi + 0x18], 2
jmp 0x14000464a
cmp r15, r8
jb 0x1400046cf
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.1400068a0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140004609
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x418]
mov rdx, rdi
call fcn.140001840
cmp byte [rbp + 0x3d8], 2
jne 0x140004661
mov rsi, qword [rbp + 0x408]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400020b0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
je 0x14000464a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
call fcn.140001840
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x408]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
jne 0x140004635
jmp 0x14000464a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x1400045f1
jmp 0x140004609
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001cdf0
jmp 0x1400046e4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001d240
ud2
Function at 0x1400072a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400072d0
test ecx, ecx
jne 0x140007320
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400072dc
test ecx, ecx
jne 0x140007320
mov rcx, rdi
call fcn.140007180
movzx eax, al
test bpl, bpl
jne 0x140007327
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140007313.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140007498]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140007313.2
xor eax, eax
test bpl, bpl
je 0x1400072ec
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140007479
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000735a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400073d9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400073a0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400073bb
inc rax
dec rdi
cmp rax, 1
jne 0x140007380
jmp 0x1400073d9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400073bb
cmp ebx, 0x5c
je 0x1400073bb
inc rax
dec rdi
cmp rax, 1
jne 0x1400073a0
jmp 0x1400073d9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140007487
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140007403
mov al, 9
cmp rdx, 2
je 0x140007407
cmp rdx, 1
jne 0x140007417
cmp byte [r8], 0x2e
jne 0x140007417
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140007417
mov al, 0xa
jmp 0x140007417
cmp byte [r8], 0x2e
jne 0x140007417
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140007313.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140007313.2
mov ecx, 2
jmp case.0x140007313.2
lea r8, str.library_std_srcpath.rs
call fcn.14001d1c0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001d1c0
ud2