joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503d50
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush

Function at 0x507660
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x005bbd20], 0
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov byte [rbp - 0x119], 1
je 0x507757
mov rax, qword [0x005b4880]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x005b4880], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x507778
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x507728
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sym.strlen
lea r8, [0x005bbd40]
lea rcx, [0x00564040]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call sym.rawNewObj__system_5699
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sym.memcpy
mov rcx, r12
call qword [0x005bbd20]
mov rax, qword [0x005b4880]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x005b4880], rax
jne 0x5077e5
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x507800
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x005b4880]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x005b4880], rax
mov rax, qword [0x005bbb08]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x5077b5
add qword [rbx - 0x10], 8
mov rax, qword [0x005bbb08]
test rax, rax
je 0x5077d0
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x5077d0
call sym.addZCT__system_5316.constprop.0
cmp qword [rbp - 0x110], 0
mov qword [0x005bbb08], rbx
je 0x507757
mov rcx, qword [0x005bbb08]
test rcx, rcx
je 0x507830
call sym.raiseExceptionAux__system_2868
jmp 0x507757
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
jmp 0x507766
call sym.sysFatal__system_2900.constprop.0
nop
nop word cs:[rax + rax]
Function at 0x51b130
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [r8]
mov rbx, qword [r8 + 8]
mov rdi, rcx
mov rbp, rdx
test rcx, rcx
je 0x51b161
mov rcx, qword [rcx]
lea rdx, [0x005c62e0]
call sym.isObj
test al, al
je 0x51b200
mov rax, qword [rbp]
test rsi, rsi
js 0x51b1c8
test rax, rax
je 0x51b1b0
mov rdx, qword [rax]
cmp rdx, rsi
jle 0x51b1d0
add rbx, 1
jo 0x51b214
sub rbx, rsi
jo 0x51b20a
test rbx, rbx
js 0x51b1e0
mov rax, qword [rbp]
mov rcx, qword [rdi + 0x58]
mov r8, rbx
lea rdx, [rax + rsi + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.readBuffer__systemZio_144
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x51b177
test rax, rax
je 0x51b1b0
mov rdx, qword [rax]
sub rdx, 1
jmp 0x51b1b7
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x51b18f
call sym.raiseObjectConversionError
jmp 0x51b161
call sym.raiseOverflow
jmp 0x51b18a
call sym.raiseOverflow
jmp 0x51b181

Function at 0x51b220
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r12, rdx
mov rsi, r8
test rcx, rcx
je 0x51b249
mov rcx, qword [rcx]
lea rdx, [0x005c62e0]
call sym.isObj
test al, al
je 0x51b280
test rsi, rsi
js 0x51b268
mov rcx, qword [rbx + 0x58]
mov r8, rsi
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.readBuffer__systemZio_144
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call sym.raiseRangeErrorI
jmp 0x51b24e
call sym.raiseObjectConversionError
jmp 0x51b249
Function at 0x51cbe0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rsi, [rdx + 3]
test rdx, rdx
mov rbx, rcx
mov rdi, rdx
cmovns rsi, rdx
and rsi, 0xfffffffffffffffc
jle 0x51cd40
test rdx, rdx
jle 0x51cd30
cmp rdx, rsi
mov rax, rsi
cmovle rax, rdx
xor r12d, r12d
xor r13d, r13d
nop dword [rax]
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp r12, rax
jl 0x51cc28
cmp rsi, r12
jle 0x51cc95
lea rbp, [rdi - 1]
nop dword [rax + rax]
mov rdx, rbp
mov rcx, r12
call sym.raiseIndexError2
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp rsi, r12
jg 0x51cc60
mov rax, rdi
xor ebp, ebp
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x51ccf6
lea r12, [rdi - 1]
nop word cs:[rax + rax]
sub r14, 1
lea r15, [rsi + r14]
cmp rdi, r15
jg 0x51ccd8
mov rdx, r12
mov rcx, r15
call sym.raiseIndexError2
movzx eax, byte [rbx + r15]
shl ebp, 8
or ebp, eax
test r14, r14
jne 0x51ccc0
imul ebp, ebp, 0xcc9e2d51
rol ebp, 0xf
imul ebp, ebp, 0x1b873593
mov edx, r13d
xor edx, edi
xor edx, ebp
mov ebp, edx
shr ebp, 0x10
xor ebp, edx
imul ebp, ebp, 0x85ebca6b
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
jmp 0x51cc57
xor esi, esi
xor r13d, r13d
jmp 0x51cc95

Function at 0x51cd50
Capabilities:
Hash data using murmur3

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
mov r12, rcx
test rcx, rcx
je 0x51cd6c
mov rdx, qword [rcx]
test rdx, rdx
js 0x51cd80
add r12, 0x10
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.murmurHash__pureZhashes_192
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call sym.raiseIndexError4
mov rdx, qword [r12]
jmp 0x51cd68

Function at 0x5301f0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
test rdx, rdx
je 0x530256
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp rdx, 0xffffffffffffffff
je 0x530260
mov rax, 0xffffffffffffffff
xor edx, edx
div r10
not rdx
nop dword [rax]
lea rax, [r8 + r9]
xor r9, r8
ror r8, 9
mov r11, r9
xor r8, r9
ror r9, 0x1c
shl r11, 0xe
xor r8, r11
cmp rdx, rax
jb 0x530218
movq xmm0, r8
movq xmm1, r9
xor edx, edx
punpcklqdq xmm0, xmm1
movups xmmword [rcx], xmm0
lea rcx, [r10 + 1]
div rcx
mov r10, rdx
mov rax, r10
ret
lea r10, [r8 + r9]
xor r9, r8
ror r8, 9
mov rax, r9
xor r8, r9
ror r9, 0x1c
shl rax, 0xe
mov qword [rcx + 8], r9
xor r8, rax
mov rax, r10
mov qword [rcx], r8
ret
Function at 0x530290
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rdx
test rdx, rdx
je 0x5302fe
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp rdx, 0xffffffffffffffff
je 0x530308
mov rax, 0xffffffffffffffff
xor edx, edx
div r10
not rdx
nop word [rax + rax]
lea rax, [r9 + r8]
xor r9, r8
ror r8, 9
mov r11, r9
xor r8, r9
ror r9, 0x1c
shl r11, 0xe
xor r8, r11
cmp rax, rdx
ja 0x5302c0
movq xmm0, r8
movq xmm1, r9
xor edx, edx
punpcklqdq xmm0, xmm1
movups xmmword [rcx], xmm0
lea rcx, [r10 + 1]
div rcx
mov r8, rdx
mov rax, r8
ret
mov rax, r8
mov rdx, r8
add r8, r9
xor rax, r9
ror rdx, 9
mov r10, rax
xor rdx, rax
ror rax, 0x1c
shl r10, 0xe
mov qword [rcx + 8], rax
mov rax, r8
xor rdx, r10
mov qword [rcx], rdx
ret

Function at 0x534b20
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edx, 0x14
jmp sym.hash__neverwinterZresnwsync_56

Function at 0x561c50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x561cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x005b41b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x561e68
mov rax, qword [0x005b41b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x561d0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x561d97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x561cf0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x561ea2
mov rax, qword [0x005b41b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005b41b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x561eb1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x561d90
sub eax, 4
and eax, 0xfffffffb
jne 0x561e20
add dword [0x005b41b4], 1
cmp ebx, 8
jae 0x561dc8
test bl, 4
jne 0x561e70
test ebx, ebx
je 0x561db9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x561e90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x561db9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x561dfa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x005b41b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x561d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x561d17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x561db9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x561db9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x005b41b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x562690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005b44a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005b4480]
test rbx, rbx
je 0x5626e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x5626db
test r12, r12
je 0x5626db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x5626c0
lea rcx, [0x005b44a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x562910
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x562920
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x562930
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x562975
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x56296c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x562977
add rax, 0x28
cmp rax, r9
jne 0x562958
xor eax, eax
ret

Function at 0x562a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0059f680]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x562a99
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x562a99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x562a96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x562a8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x562a99
add r8, 0x28
cmp r8, r9
jne 0x562a78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x562b80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0059f680]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x562bef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x562bef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x562bed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x562be4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x562bf8
add rax, 0x28
cmp rax, r9
jne 0x562bd0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x562c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0059f680]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x562c88
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x562c88
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x562c88
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x562c88
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x562c7c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x562c90
add rdx, 0x28
cmp rdx, r10
jne 0x562c68
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x562ca0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x562cae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x562c85
test r8d, r8d
jg 0x562c98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x4722e0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x47231d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x4723ab
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x472341
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x472388
cmp ecx, 0x20b
je 0x472360
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
cmp dword [rax + 0x84], 0xe
ja 0x472374
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
cmp dword [rax + 0x74], 0xe
ja 0x472399
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0049f328], 0xffffffffffffffff
mov qword [0x0049f330], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0049cd84]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0049cd80]
mov dword [rcx], eax
call fcn.00472590
cmp dword [0x0049c720], 0
jne 0x472405
lea rcx, [fcn.00472590]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00474700]
lea rcx, [0x004746f8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0049cd7c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0049cd78]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004746f0]
lea rcx, [0x00474698]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x4724a6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x472496
cmp al, 0x22
je 0x472496
jmp 0x472480
cmp byte [r8], 0x22
jne 0x4724b6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724b6
cmp byte [r8], 0x20
jbe 0x4724b6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724a6
movzx eax, byte [r8]
test al, al
je 0x4724cc
cmp al, 0x20
ja 0x4724cc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724b6
test byte [rsp + 0x8c], 1
je 0x4724e1
movzx r9d, word [rsp + 0x90]
jmp 0x4724e7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call 0x53f000
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x472503
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x472527
mov eax, edi
jmp 0x472530
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x472660
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0049ce30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0049cf28]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x4726e1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0049cf28]
jmp 0x4726fd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0049cf28], r11
mov qword [0x0049cec8], rax
mov rax, qword [0x0049c730]
mov qword [0x0049cda0], r11
mov qword [0x0049ceb0], rdi
mov dword [0x0049cd90], 0xc0000409
mov dword [0x0049cd94], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x0049c728]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0047ed80]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x0049c730]
jne 0x472809
rol rcx, 0x10
test cx, 0xffff
jne 0x472805
ret
ror rcx, 0x10
jmp 0x472660

Function at 0x1406c7c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6c7c70
movabs r10, 0x6c7c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406c7c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406c7c50
lea rax, [r9 + r11]
jmp rax
Function at 0x1800011c0
Capabilities:
Delete registry value
Persist via appinit_dlls registry key

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
lea rdx, str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000120c
mov rcx, qword [rsp + 0x40]
lea rdx, str.LoadAppInit_DLLs
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180001254
mov rcx, qword [rsp + 0x40]
lea rdx, str.LoadAppInit_DLLs
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800012e0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp dword [0x1800a2750], 0
mov rdi, rcx
mov esi, 1
jne 0x18000134d
cmp dword [0x1800a2740], 0
jne 0x180001312
cmp dword [0x1800a2748], 0
je 0x180001324
cmp dword [0x1800a274c], 0
jne 0x180001324
cmp dword [0x1800a31d4], 0
je 0x180001347
cmp dword [0x1800a3728], 0
jne 0x180001347
xor ebx, ebx
xor eax, eax
mov dword [0x1800a2750], ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [0x1800a2750], esi
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800013c2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea r9d, [rbx + 2]
mov qword [rsp + 0x30], rax
lea r8, str.AppInit_DLLs
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1800013b7
cmp byte [rdi], bl
cmovne ebx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800013e0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp dword [0x1800a2750], 0
mov rdi, rcx
mov esi, 1
jne 0x18000144d
cmp dword [0x1800a2740], 0
jne 0x180001412
cmp dword [0x1800a2748], 0
je 0x180001424
cmp dword [0x1800a274c], 0
jne 0x180001424
cmp dword [0x1800a31d4], 0
je 0x180001447
cmp dword [0x1800a3728], 0
jne 0x180001447
xor ebx, ebx
xor eax, eax
mov dword [0x1800a2750], ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [0x1800a2750], esi
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800014c2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea r9d, [rbx + 2]
mov qword [rsp + 0x30], rax
lea r8, str.AppInit_DLLs
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1800014b7
cmp byte [rdi], bl
cmovne ebx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret