joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023460
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rdi, qword [rcx + 0x190]
mov rbx, rcx
mov rsi, qword [rcx + 0x198]
mov rbp, qword [rcx + 0x188]
cmp edx, 0x64
jne 0x180023520
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, rdi
call fcn.18001be5c
cmp eax, 1
jne 0x1800234df
mov eax, dword [rsp + 0x20]
sub eax, dword [rsp + 0x38]
cmp eax, dword [0x180035514]
jmp 0x1800234ed
mov eax, dword [rsp + 0x24]
sub eax, dword [rsp + 0x3c]
cmp eax, dword [0x180035510]
jge 0x1800235b2
mov rcx, rbx
call fcn.1800231b4
mov rcx, qword [rbx + 0x178]
mov r9d, 0x501
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rcx, rbx
call fcn.1800232c0
jmp 0x1800235ca
cmp edx, 0x65
jne 0x1800235ca
call fcn.18001f480
cmp qword [rbx + 0x178], rax
je 0x1800235ca
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rdi, rax
cmp qword [rbx + 0x150], rax
je 0x1800235ca
mov esi, 0x104
lea rdx, [rsp + 0x50]
mov r8d, esi
mov ecx, edi
call sub.KERNEL32.dll_VerLanguageNameW
movzx ecx, di
lea r8, [rsp + 0x50]
mov r9d, esi
mov edx, 0x59
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, 2
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_CharUpperBuffW]
lea rcx, [rbx + 0x158]
mov r8d, 4
lea rdx, [rsp + 0x50]
call sub.ntdll.dll_memcpy
mov qword [rbx + 0x150], rdi
mov rcx, qword [rbx + 0x178]
mov r9d, 0x501
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180023cc0
Capabilities:
Open clipboard
Write clipboard data

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, 0x20
movsxd rbp, r8d
mov r14, rdx
mov rdi, rcx
call fcn.18001f480
mov rbx, rax
test rax, rax
je 0x180023d4b
lea rsi, [rdi + 0x88]
mov rdx, rax
mov rcx, rsi
call fcn.18001c050
test eax, eax
je 0x180023d4b
mov rcx, rbx
call fcn.18001c134
test eax, eax
je 0x180023d4b
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x180023d4b
mov rdx, rbx
mov rcx, rsi
call fcn.18001ba38
test rax, rax
je 0x180023d3c
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.18001c170
mov rcx, rbx
call fcn.18001bd68
test rax, rax
je 0x180023d5b
jmp 0x180023d58
mov rcx, qword [rdi + 0xd8]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rbx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180023dd3
lea eax, [rbp + 1]
mov ecx, 2
movsxd rsi, eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x180023dcd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov rbx, rax
call sub.ntdll.dll_memcpy
mov rcx, rdi
mov byte [rbp + rbx], 0
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x180023dc4
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180023ec8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
and dword [rbp - 0x10], 0
mov r14, r9
mov rsi, r8
mov qword [r11 - 0x28], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180023fae
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x10]
mov ebx, eax
test ecx, ecx
je 0x180023fa4
call fcn.180001e70
mov rdi, rax
test rax, rax
je 0x180023f9f
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x180023f95
mov rcx, qword [rbp + 0x30]
mov qword [r14], rdi
test rcx, rcx
je 0x180023f85
mov eax, dword [rbp - 0x10]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x180023fa4
mov eax, dword [rbp - 0xc]
mov dword [rcx], eax
jmp 0x180023fa4
mov rcx, rdi
call fcn.180001e84
jmp 0x180023fa4
mov ebx, 8
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret

Function at 0x180023fcc
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rax, [r11 + 0x10]
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
mov rbx, rcx
mov ebp, r14d
mov edi, r14d
lea edx, [r14 + 3]
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
cmp eax, 0x80000005
je 0x180024013
cmp eax, 0xc0000023
jne 0x180024066
mov ecx, dword [rsp + 0x58]
call fcn.180001e70
mov rdi, rax
test rax, rax
je 0x180024066
mov r9d, dword [rsp + 0x58]
lea rax, [rsp + 0x58]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
test eax, eax
js 0x180024066
mov ebx, dword [rdi]
lea rdx, [rdi + 4]
mov r8d, ebx
mov rcx, rdi
call sub.ntdll.dll_memcpy
shr rbx, 1
mov rbp, rdi
mov word [rdi + rbx*2], r14w
test esi, esi
je 0x180024077
test rdi, rdi
je 0x180024077
mov rcx, rdi
call fcn.180001e84
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180024174
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov eax, edx
mov r11d, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov r9d, eax
shl r9d, 2
movsxd r9, r9d
add r9, rcx
neg eax
movsxd r10, eax
je 0x1800241c1
imul eax, dword [r9 + r10*4], 0xcc9e2d51
rol eax, 0xf
imul ecx, eax, 0x1b873593
xor r8d, ecx
rol r8d, 0xd
add r8d, 0xfaddaf14
lea r8d, [r8 + r8*4]
add r10, 1
jne 0x180024198
mov ecx, r11d
and ecx, 3
sub ecx, 1
je 0x1800241e8
sub ecx, 1
je 0x1800241de
cmp ecx, 1
jne 0x180024200
movzx edx, byte [r9 + 2]
shl edx, 0x10
movzx eax, byte [r9 + 1]
shl eax, 8
xor edx, eax
movzx eax, byte [r9]
xor eax, edx
imul ecx, eax, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor r8d, eax
xor r8d, r11d
mov eax, r8d
shr eax, 0x10
xor eax, r8d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret
Function at 0x1800252b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x38]
mov rdi, rcx
mov ebx, dword [rdi + 0x50]
mov edx, dword [rdi + 0x8c]
sub ebx, edx
mov eax, dword [rdi + 0x94]
sub ebx, eax
jne 0x1800252fa
test edx, edx
jne 0x180025309
test eax, eax
jne 0x180025309
mov ebx, ebp
jmp 0x180025390
cmp ebx, 0xffffffff
jne 0x180025309
mov ebx, 0xfffffffe
jmp 0x180025390
mov ecx, dword [rdi + 0x38]
add ecx, 0xfffffefa
add ecx, ebp
cmp edx, ecx
jb 0x180025390
mov rcx, qword [rdi + 0x48]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.ntdll.dll_memcpy
mov r9d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebp
sub dword [rdi + 0x8c], ebp
sub dword [rdi + 0x7c], ebp
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x180025343
mov rax, qword [rdi + 0x58]
mov r9d, ebp
lea r8, [rax + rbp*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x18002536e
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x18002544f
mov eax, dword [rdi + 0x8c]
mov r15d, dword [rdi + 0x94]
add r15, rax
mov eax, dword [rsi + 8]
add r15, qword [rdi + 0x48]
mov r14d, eax
cmp eax, ebx
cmova r14d, ebx
test r14d, r14d
je 0x1800253fb
sub eax, r14d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x2c], 0
jne 0x1800253e3
mov rdx, qword [rsi]
mov r8d, r14d
mov ecx, dword [rsi + 0x4c]
call fcn.180027248
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov rcx, r15
mov r8d, r14d
mov ebx, r14d
call sub.ntdll.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r14d
add dword [rdi + 0x94], r14d
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x180025439
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x18002544f
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1800252d6
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180027248
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r10, rdx
shr ecx, 0x10
test rdx, rdx
jne 0x180027381
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x180027345
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x180027288
test edx, edx
je 0x18002735b
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x180027349
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x18002725f
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x3b1b9d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.3b1b9d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x3b1b9d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1b9d06f
add dl, dl
jne 0x3b1b9d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1b9d0f6
xor eax, eax
add dl, dl
jne 0x3b1b9d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1b9d1ad
add dl, dl
jne 0x3b1b9d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1b9d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1b9d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1b9d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x3b1b9d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x3b1b9d07e
mov eax, 1
add dl, dl
jne 0x3b1b9d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1b9d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1b9d0fb
sub eax, ebx
mov ebx, 1
jne 0x3b1b9d14c
mov ecx, 1
add dl, dl
jne 0x3b1b9d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3b1b9d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1b9d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1b9d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x3b1b9d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3b1b9d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1b9d15d
cmp eax, 0x7d00
jae 0x3b1b9d19b
cmp eax, 0x500
jb 0x3b1b9d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1b9d07e
cmp eax, 0x7f
ja 0x3b1b9d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1b9d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x3b1b9d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x3b1b9d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001ec40
Capabilities:
Terminate process

Disassembly:
jmp 0x140050690
push rsi
push rdi
sub rsp, 0x38
mov rsi, qword [rcx + 0x30]
mov rcx, rsi
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400506b0
xor eax, eax
jmp 0x140050720
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140050718
mov rdi, rax
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400506d6
cmp eax, 0x102
je 0x1400506ac
jmp 0x1400506f0
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400506ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140044640
mov rax, rdi
shl rax, 0x20
or rax, 2
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140021680
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140021690
test al, 1
je 0x1400216af
test al, 2
jne 0x1400216c7
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1409933f8]
mov edx, 0x23
call fcn.1400735e0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140993438]
mov edx, 0x25
call fcn.1400735e0
int3

Function at 0x14003b010
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14003b030
test al, 1
je 0x14003b0f9
test al, 2
jne 0x14003b111
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.14003dc80
test rax, rax
je 0x14003b08e
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x20], rdx
call qword [rdx]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14003b08e
mov r8, qword [rax + 0x10]
call fcn.140018a60
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x14003b129
jne 0x14003b0ef
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
lea rcx, [rax + 0x28]
call fcn.140034e50
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x14003b0db
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x20]
call fcn.140018a60
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1409933f8]
mov edx, 0x23
call fcn.1400735e0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140993438]
mov edx, 0x25
call fcn.1400735e0
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.14006ee90]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_P4
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140993480]
lea rcx, [rbp - 0x58]
call fcn.140073510
int3

Function at 0x14003e9f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14004a1a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14004a240
jmp 0x14004a22f
jae 0x14004a2ff
cmp r8, 0x201
jae 0x14004a240
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x14004a297
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14004a26f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.1400726e0
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
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 0x14004a2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004a379
mov r8d, r13d
cmp r12, r8
jne 0x14004a220
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004a3ad
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14004a22f
jmp 0x14004a240
cmp r14, r8
jb 0x14004a3c7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.14004d750
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x14004a362
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140018a60
mov rax, rsi
add rsp, 0x498
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 + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14004a34d
jmp 0x14004a362
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400735e0
jmp 0x14004a3dc
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400739e0
ud2
Function at 0x14004aba0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14004abb0
mov rcx, rdx
mov rdx, r8
jmp fcn.14004abc0
mov rcx, rdx
mov rdx, r8
jmp fcn.140055d10

Function at 0x140050690
Capabilities:
Terminate process

Disassembly:
jmp 0x140050690
push rsi
push rdi
sub rsp, 0x38
mov rsi, qword [rcx + 0x30]
mov rcx, rsi
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400506b0
xor eax, eax
jmp 0x140050720
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140050718
mov rdi, rax
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400506d6
cmp eax, 0x102
je 0x1400506ac
jmp 0x1400506f0
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400506ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140044640
mov rax, rdi
shl rax, 0x20
or rax, 2
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400517f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14006f4e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140058950]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x14004ea11.287
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1400519e0
test r15, r15
je 0x1400519ac
cmp r15, 0x1000
ja 0x140051a02
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x140051980
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140051910
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1400519a0
add r12, rax
cmp r12, r15
je 0x140051970
jbe 0x1400518c0
jmp 0x1400519ee
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14005186e
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140044640
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140044640
jmp 0x1400519ac
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1400739f0
jmp 0x140051a16
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1400739e0
ud2
Function at 0x140055d10
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14005f730
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140055d75
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.140060d40
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x140055d80
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140055dac
test rdi, rdi
je 0x140055dd8
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140018a60
xor eax, eax
jmp 0x140055d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140055d78
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140018a60
jmp 0x140055d75
xor eax, eax
jmp 0x140055d78