joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180243c80
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 0x180243cb0
xor eax, eax
jmp 0x180243d73
mov rbp, rbx
cmp word [rax], si
je 0x180243cd5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180243cbc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180243cb8
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.1802406d4
movsxd r14, eax
test eax, eax
jne 0x180243d13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180243ca9
mov rcx, r14
call fcn.18023de30
mov rdi, rax
test rax, rax
jne 0x180243d2c
xor ecx, ecx
call fcn.18023ac24
jmp 0x180243d08
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.1802406d4
test eax, eax
jne 0x180243d5d
mov rcx, rdi
call fcn.18023ac24
jmp 0x180243d67
xor ecx, ecx
call fcn.18023ac24
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 0x180243d90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x180243e17
mov rsi, rbx
cmp word [rax], bp
je 0x180243dd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180243dc0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180243dbc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18023de30
mov rdi, rax
test rax, rax
je 0x180243e04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18021b040
mov rbp, rdi
xor ecx, ecx
call fcn.18023ac24
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180246894
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180237dec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180246935
cmp ebx, dword [rsp + 0x30]
je 0x18024692e
test esi, esi
je 0x18024692e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180246909
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180246916
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1802468f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18024691a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180246937
mov eax, 1
jmp 0x180246937
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180249e7c
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.18023cbdc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18023cbdc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180249fcc
cmp rax, 0xffffffffffffffff
je 0x180249fcc
xor edi, edi
test rbp, rbp
jle 0x180249f77
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18023b0b0
mov rbx, rax
test rax, rax
jne 0x180249f04
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180249f6d
mov edx, 0x8000
mov ecx, r14d
call fcn.180249d00
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.18023a91c
cmp eax, 0xffffffff
je 0x180249f4d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180249f14
mov edx, r15d
mov ecx, r14d
call fcn.180249d00
jmp 0x180249f6d
cmp byte [rsi + 0x38], dil
je 0x180249f64
cmp dword [rsi + 0x34], 5
jne 0x180249f64
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180249f6d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18023ac24
jmp 0x180249fe0
jns 0x180249fe0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18023cbdc
cmp rax, 0xffffffffffffffff
jne 0x180249f98
cmp byte [rsi + 0x30], dil
je 0x180249fe0
mov edi, dword [rsi + 0x2c]
jmp 0x180249fe0
mov ecx, r14d
call fcn.180235ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180249fe0
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 0x180249fe0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180249fd9
mov eax, dword [rsi + 0x2c]
jmp 0x180249fde
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18023cbdc
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 0x140001000
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x2058
call fcn.1400020a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x2000
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400010c8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.YourApp
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x14000109f
lea rdx, str.Value:
call fcn.140001110
mov rcx, rax
lea rdx, [rsp + 0x40]
jmp 0x1400010a6
lea rdx, str.Failed_to_read_value_or_value_not_found.
call fcn.140001110
lea rdx, [0x1400012e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400010eb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_open_registry_key.
call fcn.140001110
mov rcx, rax
lea rdx, [0x1400012e0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1400013a0
add rsp, 0x2058
ret

Function at 0x140001c68
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x6fcffd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6fd00d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6fcff5
lea eax, [rcx + 1]
jmp 0x6fd01b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6fd02e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6fd014
sub eax, 3
jb 0x6fd04e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6fd09d
sar eax, 1
movsxd rbp, eax
jb 0x6fd084
jmp 0x6fd05c
add ebx, ebx
jne 0x6fd05a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6fd084
inc ecx
add ebx, ebx
jne 0x6fd06a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6fd084
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6fd07d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6fd06c
add ecx, 2
jmp 0x6fd089
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006fcfb2
jmp 0x6fcffd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x130c00
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6fd0e9
cmp rsi, rcx
jae 0x6fd0f1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6fd0d0
cmp al, 0x8f
ja 0x6fd0d0
cmp byte [rsi - 2], 0xf
je 0x6fd0d6
sub al, 0xe8
cmp al, 1
ja 0x6fd0ba
cmp rsi, rcx
jae 0x6fd0f1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6fd0c0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6fd0f1
lodsb al, byte [rsi]
jmp 0x6fd0d0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2f7000]
mov eax, dword [rdi]
or eax, eax
je 0x6fd14e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2fd000]
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 0x6fd0fe
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 0x6fd148
mov qword [rbx], rax
add rbx, 8
jmp 0x6fd11e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x6fd192
cmp al, 0xef
ja 0x6fd17a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6fd15a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x6fd169
mov eax, dword [rdi]
add rdi, 4
jmp 0x6fd169
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 + 0x1af]
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 0x6fd1e6
sub rsp, 0xffffffffffffff80
jmp 0x4648e0
Function at 0x140862708
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14086288f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140862739
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086271f
add dl, dl
jne 0x140862746
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408627a6
xor eax, eax
add dl, dl
jne 0x140862755
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086285d
add dl, dl
jne 0x140862766
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140862773
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140862780
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14086278d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14086279a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14086272e
mov eax, 1
add dl, dl
jne 0x1408627b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408627c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408627ab
sub eax, ebx
mov ebx, 1
jne 0x1408627fc
mov ecx, 1
add dl, dl
jne 0x1408627de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408627eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408627d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086272e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140862818
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140862825
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14086280d
cmp eax, 0x7d00
jae 0x14086284b
cmp eax, 0x500
jb 0x140862846
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086272e
cmp eax, 0x7f
ja 0x14086284e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086272e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140862882
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 0x14086272e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400102f0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14001030e
mov edx, 0x5e
jmp 0x140010341
cmp qword [rdi + 0x40], 0
lea rax, [rdi + 0x40]
jne 0x140010388
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9, [0x140031c80]
lea rcx, [0x140031c40]
lea r8d, [rdx + 0x17]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140010388
mov edx, 0x65
mov r9d, eax
lea r8, str.d:hd_audio2017_rtkaudservice_88_vs2017mmdeviceapilibmmdeviceapibase.cpp
lea rcx, str._MMDevAPILib__EXIT_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.14000ee50
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x14001036e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x40], 0
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, str.CMMDeviceAPIBase::Init___failed_n
call fcn.14000ee50
xor al, al
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 8]
mov qword [rsp + 0x48], rsi
mov esi, 3
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x1400103a0
lea rbx, [rdi + 0x28]
mov esi, 2
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x1400103d0
lea rax, [rdi + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400104a0]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x20], rax
mov al, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140019978
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400197a4
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004480]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004490]
mov dword [rax], 1
mov rax, qword [0x1400044a0]
mov dword [rax], 1
mov rax, qword [0x140004430]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004470]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002210
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000225d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002254
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000225f
add rax, 0x28
cmp rax, r9
jne 0x140002240
xor eax, eax
ret

Function at 0x140002260
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022f0
mov rdx, qword [0x140004430]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022de
cmp word [rax + 0x18], 0x20b
jne 0x1400022de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400022f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000237d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002320
add rax, 0x28
cmp rax, r9
jne 0x140002360
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000239f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004430]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002430
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002427
test rcx, rcx
je 0x1400023e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002418
xor eax, eax
ret
Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000245f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002468
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400024a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400024f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002500
add rdx, 0x28
cmp r9, rdx
jne 0x1400024e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002510
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004430]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002532
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002540
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002532
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002532
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002532
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002595
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002580
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000259e
test ecx, ecx
jg 0x1400025b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
lea rcx, str.supervirusRAT.XWorm.Wacatac.UAC_Bypass.Ransomware.exe
movups xmmword [rsp + 0x74], xmm0
xor eax, eax
xor r9d, r9d
mov dword [r11 - 0x24], eax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
movups xmmword [r11 - 0x74], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400010f0
add rsp, 0xf8
ret

Function at 0x1400019b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a04
xor al, al
add rsp, 0x28
ret