joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007dbe8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007dc18
xor eax, eax
jmp 0x18007dcdb
mov rbp, rbx
cmp word [rax], si
je 0x18007dc3d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007dc24
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007dc20
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18007c2b0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18007dc7e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007dc11
call fcn.180076580
mov rdi, rax
test rax, rax
jne 0x18007dc94
xor ecx, ecx
call fcn.1800742f0
jmp 0x18007dc73
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18007c2b0
test eax, eax
jne 0x18007dcc5
mov rcx, rdi
call fcn.1800742f0
jmp 0x18007dccf
xor ecx, ecx
call fcn.1800742f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18008051c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18008058f
cmp word [rcx], si
je 0x18008058f
lea rdx, [0x18009e188]
call fcn.180084578
test eax, eax
je 0x18008058f
lea rdx, [0x18009e1a0]
mov rcx, rbx
call fcn.180084578
test eax, eax
jne 0x180080585
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800805ac
mov eax, dword [rsp + 0x30]
jmp 0x1800805be
mov rcx, rbx
call fcn.1800722ac
jmp 0x1800805be
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800805b0
xor eax, eax
jmp 0x1800805be
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800805be
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800805d0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180072808
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180080673
cmp edi, dword [rsp + 0x30]
je 0x18008066c
test ebp, ebp
je 0x18008066c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180080648
sub dx, 0x61
cmp dx, 0x19
ja 0x180080654
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180080635
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180080658
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180080675
mov eax, 1
jmp 0x180080675
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180085070
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007a6cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007a6cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800851bd
cmp rax, 0xffffffffffffffff
je 0x1800851bd
xor edi, edi
test rbp, rbp
jle 0x18008516b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180074270
mov rbx, rax
test rax, rax
jne 0x1800850f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180085161
mov edx, 0x8000
mov ecx, r14d
call fcn.180084ef4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800792c4
cmp eax, 0xffffffff
je 0x180085141
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180085108
mov edx, r15d
mov ecx, r14d
call fcn.180084ef4
jmp 0x180085161
cmp byte [rsi + 0x38], dil
je 0x180085158
cmp dword [rsi + 0x34], 5
jne 0x180085158
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180085161
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800742f0
jmp 0x1800851cf
jns 0x1800851cf
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007a6cc
cmp rax, 0xffffffffffffffff
jne 0x180085189
cmp byte [rsi + 0x30], dil
je 0x1800851cf
jmp 0x1800851c5
mov ecx, r14d
call fcn.180082890
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800851cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800851cf
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800851ca
mov edi, dword [rsi + 0x2c]
jmp 0x1800851cf
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007a6cc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180085870
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov edx, dword [0x1800b9350]
mov rax, qword gs:[0x58]
mov esi, 0x28
mov rbx, qword [rax + rdx*8]
mov eax, dword [rbx + rsi]
cmp dword [0x1800ba508], eax
jg 0x180085970
mov eax, dword [rbx + rsi]
cmp dword [0x1800ba510], eax
jg 0x1800859c3
cmp byte [0x1800ba50c], 0
je 0x1800858f4
mov eax, dword [rbx + rsi]
cmp dword [0x1800ba520], eax
jg 0x180085931
lea rdx, [0x1800ba518]
lea rcx, [rsp + 0x38]
call fcn.180030160
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
call fcn.180030180
jmp 0x1800858ff
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [0x1800ba500]
cvttsd2si rdx, xmm0
mov rcx, rdi
call fcn.180008c80
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1800ba520]
call fcn.18005c1e4
cmp dword [0x1800ba520], 0xffffffff
jne 0x1800858cc
lea rcx, [0x1800ba518]
call fcn.1800300d0
lea rcx, [0x180089120]
call fcn.18005c124
nop
lea rcx, [0x1800ba520]
call fcn.18005c178
jmp 0x1800858cc
lea rcx, [0x1800ba508]
call fcn.18005c1e4
cmp dword [0x1800ba508], 0xffffffff
jne 0x1800858a9
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x38]
movsd xmm1, qword [0x1800a2788]
divsd xmm1, xmm0
movsd qword [0x1800ba500], xmm1
lea rcx, [0x1800ba508]
call fcn.18005c178
jmp 0x1800858a9
lea rcx, [0x1800ba510]
call fcn.18005c1e4
cmp dword [0x1800ba510], 0xffffffff
jne 0x1800858b8
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb byte [0x1800ba50c]
lea rcx, [0x1800ba510]
call fcn.18005c178
jmp 0x1800858b8

Function at 0x180085b40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180085b68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180085b68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140f9ad5c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f9ad66
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f9ad8f
pop rbp
sub rbp, 0x33
sub rbp, 0xf9ad5c
sub rsp, 0x20
jmp 0x140f9adae
mov rax, 0xf9ad5c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa60b1cc7
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f9adcd
jmp 0x140f9ade4
invalid
Function at 0x14002eb70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002eb7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002eb8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002eb75
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002eba5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002eb92
sub eax, 3
jb 0x14002ebbf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002ebf6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002ebe6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002ebe4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002ebd3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002eb32
jmp 0x14002eb7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002ec42
cmp rsi, rcx
jae 0x14002ec4a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002ec29
cmp al, 0x8f
ja 0x14002ec29
cmp byte [rsi - 2], 0xf
je 0x14002ec2f
sub al, 0xe8
cmp al, 1
ja 0x14002ec13
cmp rsi, rcx
jae 0x14002ec4a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002ec19
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002ec4a
lodsb al, byte [rsi]
jmp 0x14002ec29
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2c000]
mov eax, dword [rdi]
or eax, eax
je 0x14002ecb3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2faf4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002ec57
jns 0x14002ec8c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002ec96
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002ecad
mov qword [rbx], rax
add rbx, 8
jmp 0x14002ec77
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002ed0b
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x180007c90
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 0x180007cd2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x180007cda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x180007ceb
jmp 0x180007d02
xor r10d, r10d
jmp 0x180007d8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x180007d02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x180007d19
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 0x180007d39
add r11, r8
jmp 0x180007e69
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x180007e02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x180007db0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x180007e1f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x180007e30
jmp 0x180007e4b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x180007e4b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x180007e65
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 0x18000aee0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov rdx, rbp
mov r8d, 0x20
call fcn.1800180a0
mov qword [rbp + 0x28], rax
test rax, rax
je 0x18000af54
mov qword [rbp + 0x30], rdx
mov rax, qword [rdx]
test rax, rax
je 0x18000af38
mov rcx, qword [rbp + 0x28]
call rax
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18000af9d
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
call fcn.18000ce60
jmp 0x18000af9d
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x50]
lea r8, [0x1800a2dc0]
lea rdx, [rbp - 0x20]
mov r9d, 8
call fcn.180017e80
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movaps xmm2, xmmword [rbp - 0x30]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
jmp fcn.180015970
Function at 0x180013500
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x18001380b
mov rax, rbx
shr rax, 0x20
je 0x180013558
mov rax, rbx
xor edx, edx
div rcx
jmp 0x18001355e
mov eax, ebx
xor edx, edx
div ecx
lea rdi, [rcx + rbx]
sub rdi, rdx
test rdx, rdx
cmove rdi, rbx
test rdi, rdi
cmove rdi, rcx
test r14, r14
je 0x1800136f3
shl r14, 4
add r14, r15
xor ecx, ecx
lea r9, [0x1800a9054]
lea r10, [0x1800a9038]
xor r8d, r8d
xor edx, edx
xor r12d, r12d
xor r11d, r11d
xor ebx, ebx
jmp 0x1800135b9
add r15, 0x10
mov r12b, 1
mov r8b, 1
nop dword [rax]
cmp r15, r14
je 0x180013727
mov r13, r15
lea r15, [r13 + 0x10]
mov ebp, dword [r13]
cmp ebp, 2
jne 0x18001360e
nop dword [rax]
cmp r15, r14
je 0x180013670
mov ebp, dword [r15]
cmp ebp, 2
jne 0x1800135f0
add r15, 0x10
cmp r15, r14
jne 0x1800135d9
jmp 0x180013670
mov r12d, ebp
movsxd r12, dword [r9 + r12*4]
add r12, r9
jmp r12
mov ebp, ebp
movsxd rbp, dword [r10 + rbp*4]
add rbp, r10
jmp rbp
mov r8b, 1
jmp 0x1800135b0
add r15, 0x10
mov r12b, 1
mov dl, 1
jmp 0x1800135b0
cmp r11, 1
sete r10b
test r8b, 1
je 0x18001370d
movzx r9d, dl
and r9d, 1
shl r9d, 5
add r9d, 0x20
test r10b, r10b
je 0x180013769
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 0x22]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, r9d
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov r14, rax
call fcn.18002b160
test r14, r14
je 0x1800137a1
cmp eax, 0xb7
jne 0x1800137aa
mov dword [rsi + 8], 9
jmp 0x1800137f0
xor ebx, ebx
xor r10d, r10d
xor edx, edx
xor ecx, ecx
or r10b, dl
mov r9d, 1
test r10b, 1
jne 0x18001371b
jmp 0x180013769
or dl, r10b
mov r9d, 0x10
test dl, 1
je 0x180013769
mov dword [rsi + 8], 7
jmp 0x1800137f0
cmp r11, 1
sete r10b
test r12b, 1
jne 0x180013678
test r8b, 1
je 0x1800136fc
movzx r8d, dl
and r8d, 1
lea r9d, [r8*2 + 2]
cmp r11, 1
jne 0x180013769
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 2]
jmp 0x1800136aa
test rbx, rbx
je 0x180013777
mov dword [rsi + 8], 8
jmp 0x1800137f0
mov rdx, rdi
mov r8d, 0x3000
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
je 0x180013793
mov qword [rsi], 1
jmp 0x1800137d7
call fcn.18002b160
mov dword [rsi + 8], 0xa
jmp 0x1800137ed
mov dword [rsi + 8], listen
jmp 0x1800137ed
mov r8, rdi
shr r8, 0x20
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, ebp
mov r9d, ebx
call sub.KERNEL32.dll_MapViewOfFile
test rax, rax
je 0x1800137e1
mov qword [rsi], 0
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x1800137f7
call fcn.18002b160
mov dword [rsi + 8], listen
mov dword [rsi + 0xc], eax
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fmmap_fixed_fixed_0.1.3_srclib.rs
call fcn.180055ff0
ud2
Function at 0x180018350
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1800183c2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x180018388
add rdi, rbx
sub rsi, rbx
je 0x1800183c2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x180018380
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x180018380
and ebp, 0x7fffffff
jmp 0x1800183c4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x18001f3e0
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x18001f480
jmp 0x18001f46f
jae 0x18001f54e
cmp r8, 0x201
jae 0x18001f480
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x18001f4e6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x18001f4be
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.180054780
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x18001f50f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001f5ba
mov r8d, r13d
cmp r12, r8
jne 0x18001f460
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001f5ee
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x18001f46f
jmp 0x18001f480
cmp r14, r8
jb 0x18001f608
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.180022dd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x18001f5a3
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.18000ce60
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x18001f58e
jmp 0x18001f5a3
lea rcx, str.internal_error:_entered_unreachable_codeH
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.180055a10
jmp 0x18001f61d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.180055dc0
ud2
Function at 0x180020000
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x180020015
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.180020030
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.18002a500

Function at 0x1800261c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.180045370
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call fcn.180053460
xorps xmm6, xmm6
lea rbx, [0x18002c620]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.18002c540
mov r14, rdx
test rax, rax
jne 0x18002635c
test r14, r14
je 0x18002632c
cmp r14, 0x1000
ja 0x180026400
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x1800263d7
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x180026326
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x1800262f0
cmp dword [rbp + 0xff8], 0
jne 0x18002632c
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x180026290
jmp 0x18002623b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x18002632c
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x18002639b
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800263bb
mov r8, qword [rax + 0x10]
call fcn.18000ce60
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.18000ce60
jmp 0x18002632c
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.180055e30
jmp 0x180026429
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.180055dc0
ud2