joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400169ab
Capabilities:
Terminate process

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

Function at 0x140016c0d
Capabilities:
Parse pe header

Disassembly:
jmp 0x14003f170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003f190
xor al, al
jmp 0x14003f211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003f1a3
xor al, al
jmp 0x14003f211
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14003f1cd
xor al, al
jmp 0x14003f211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14003f1e1
xor al, al
jmp 0x14003f211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14003f1f3
xor al, al
jmp 0x14003f211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003f20f
xor al, al
jmp 0x14003f211
mov al, 1
add rsp, 0x38
ret
Function at 0x4080c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r8d, r8d
mov r9d, 1
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rbp, [rsp + 0x38]
mov r12, rcx
mov esi, edx
mov dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbp
call rdi
test al, al
mov ebx, eax
jne 0x408131
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x408113
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
mov rcx, rbp
mov r9d, 1
call rdi
test al, al
je 0x408106
mov ebx, eax
movzx edx, si
mov r8, r12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
xor edx, edx
and ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x40d5e0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov r9, rdx
mov dword [rsp + 0x20], 8
xor edx, edx
mov rbx, rcx
call fcn.0040d270
mov rdx, qword [0x00419fc0]
mov qword [rbx + 0x60], 0
mov qword [rbx + 0x40], rdx
mov rdx, qword [0x00419fc8]
mov qword [rbx + 0x48], rdx
mov rdx, qword [0x00419fd0]
mov qword [rbx + 0x50], rdx
mov rdx, qword [0x00419fd8]
mov qword [rbx + 0x58], rdx
add rsp, 0x30
pop rbx
ret

Function at 0x410c40
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov rsi, rdx
lea r13, [rcx + 0xf8]
mov rdi, rbp
lea r12, [rcx + 8]
mov rcx, r13
call fcn.00410c10
mov edx, dword [rbx + 4]
mov r9, rdi
mov r8, r13
mov rcx, r12
add rdi, 0x10
call fcn.00411a60
lea rax, [rsp + 0x50]
cmp rdi, rax
jne 0x410c65
lea r8, [rsi + 0x20]
mov rdx, rbp
mov rax, rsi
nop word cs:[rax + rax]
add rax, 4
mov ecx, dword [rax - 4]
xor dword [rdx], ecx
add rdx, 4
cmp rax, r8
jne 0x410ca0
mov r8d, 0x100
mov rdx, rbp
mov rcx, r12
call fcn.004114e0
mov dword [rbx + 4], eax
mov eax, 0x20
mov edx, dword [rbp + rax]
xor edx, dword [rsi + rax]
mov dword [rbx + rax + 0xd8], edx
add rax, 4
cmp rax, 0x30
jne 0x410ccb
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x410cf0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test edx, edx
mov rbx, rcx
mov rsi, r8
jle 0x410d57
lea edi, [rdx - 1]
lea r12, [0x004201a0]
add rdi, 1
lea r13, [rsp + 0x20]
shl rdi, 4
lea rbp, [r12 + 4]
add rdi, rcx
xor eax, eax
mov edx, dword [rsi + rax]
xor edx, dword [rbx + rax]
mov dword [r13 + rax], edx
add rax, 4
cmp rax, 0x10
jne 0x410d27
mov edx, dword [r12]
add rbx, 0x10
mov r9, rsi
mov r8, r13
mov rcx, rbp
call fcn.00411a60
cmp rdi, rbx
jne 0x410d25
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x411890
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.004114e0
lea r11d, [rax*4]
mov r14d, eax
test r11d, r11d
jle 0x411916
movsxd rdx, r11d
mov rcx, rbx
mov r8d, r11d
lea rdx, [rbx + rdx*4]
nop
mov r9d, dword [rcx]
sub r8d, 4
add rcx, 0x10
sub rdx, 0x10
mov r10d, dword [rdx + 0x10]
mov dword [rcx - 0x10], r10d
mov r10d, dword [rdx + 0x14]
mov dword [rdx + 0x10], r9d
mov r9d, dword [rcx - 0xc]
mov dword [rcx - 0xc], r10d
mov r10d, dword [rdx + 0x18]
mov dword [rdx + 0x14], r9d
mov r9d, dword [rcx - 8]
mov dword [rcx - 8], r10d
mov r10d, dword [rdx + 0x1c]
mov dword [rdx + 0x18], r9d
mov r9d, dword [rcx - 4]
mov dword [rcx - 4], r10d
mov dword [rdx + 0x1c], r9d
mov r9d, r11d
sub r9d, r8d
cmp r8d, r9d
jg 0x4118c0
cmp r14d, 1
jle 0x411a51
lea esi, [r14 - 2]
lea r11, [0x0041b120]
add rsi, 1
lea rdx, str.ccccwwww
shl rsi, 4
lea r10, [0x0041a520]
add rsi, rbx
lea r9, [0x0041ad20]
lea r8, [0x0041a920]
add rbx, 0x10
mov edi, dword [rbx]
mov ecx, edi
movzx ebp, dil
mov eax, edi
shr ecx, 0x18
movzx ebp, byte [rdx + rbp*4]
movzx ecx, byte [rdx + rcx*4]
mov ecx, dword [r11 + rcx*4]
xor ecx, dword [r10 + rbp*4]
mov ebp, edi
movzx edi, ah
shr ebp, 0x10
movzx edi, byte [rdx + rdi*4]
movzx ebp, bpl
movzx ebp, byte [rdx + rbp*4]
xor ecx, dword [r9 + rbp*4]
xor ecx, dword [r8 + rdi*4]
mov edi, dword [rbx + 4]
mov dword [rbx], ecx
mov ecx, edi
movzx ebp, dil
mov eax, edi
shr ecx, 0x18
movzx ebp, byte [rdx + rbp*4]
movzx ecx, byte [rdx + rcx*4]
mov ecx, dword [r11 + rcx*4]
xor ecx, dword [r10 + rbp*4]
mov ebp, edi
movzx edi, ah
shr ebp, 0x10
movzx edi, byte [rdx + rdi*4]
movzx ebp, bpl
movzx ebp, byte [rdx + rbp*4]
xor ecx, dword [r9 + rbp*4]
xor ecx, dword [r8 + rdi*4]
mov edi, dword [rbx + 8]
mov dword [rbx + 4], ecx
mov ecx, edi
movzx ebp, dil
mov eax, edi
shr ecx, 0x18
movzx ebp, byte [rdx + rbp*4]
movzx ecx, byte [rdx + rcx*4]
mov ecx, dword [r11 + rcx*4]
xor ecx, dword [r10 + rbp*4]
mov ebp, edi
movzx edi, ah
shr ebp, 0x10
movzx edi, byte [rdx + rdi*4]
movzx ebp, bpl
movzx ebp, byte [rdx + rbp*4]
xor ecx, dword [r9 + rbp*4]
xor ecx, dword [r8 + rdi*4]
mov edi, dword [rbx + 0xc]
mov dword [rbx + 8], ecx
mov ecx, edi
movzx ebp, dil
mov eax, edi
shr ecx, 0x18
movzx ecx, byte [rdx + rcx*4]
movzx ebp, byte [rdx + rbp*4]
mov ecx, dword [r11 + rcx*4]
xor ecx, dword [r10 + rbp*4]
mov ebp, edi
movzx edi, ah
shr ebp, 0x10
movzx edi, byte [rdx + rdi*4]
movzx ebp, bpl
movzx ebp, byte [rdx + rbp*4]
xor ecx, dword [r9 + rbp*4]
xor ecx, dword [r8 + rdi*4]
cmp rbx, rsi
mov dword [rbx + 0xc], ecx
jne 0x411952
mov eax, r14d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
Function at 0x4138a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor eax, eax
mov ebp, dword [rsp + 0x120]
mov r13, qword [rsp + 0x118]
lea rbx, [rsp + 0x50]
mov rsi, rcx
mov ecx, 8
mov dword [rsp + 0x3c], 1
mov rdi, rbx
mov r14, r8
xor r8d, r8d
rep stosq qword [rdi], rax
mov rcx, rsi
mov r12, rdx
mov r15d, r9d
call fcn.004143c0
mov rdx, rbx
mov r8, rbx
mov rcx, rsi
mov r9d, 0x40
call fcn.004143e0
mov edx, dword [rsp + 0x128]
test ebp, ebp
setne dil
test edx, edx
jne 0x4139c5
test dil, dil
je 0x4139c5
mov eax, dword [rsp + 0x108]
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
mov r9, qword [rsp + 0x100]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.00413720
test ebp, ebp
jle 0x41397f
lea eax, [rbp - 1]
xor ecx, ecx
mov rdx, rdi
lea r8, [r13 + rax + 1]
movzx eax, byte [rdx]
add r13, 1
add rdx, 1
xor al, byte [r13 - 1]
or ecx, eax
cmp r8, r13
jne 0x413961
test cl, cl
jne 0x413a45
lea r8, [rsp + 0x3c]
mov rdx, r12
mov rcx, rsi
call fcn.004143c0
mov r9d, dword [rsp + 0x108]
mov rcx, rsi
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x100]
call fcn.004143e0
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rsp + 0x3c]
mov rdx, r12
mov rcx, rsi
call fcn.004143c0
mov r9d, dword [rsp + 0x108]
mov rcx, rsi
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x100]
call fcn.004143e0
mov eax, dword [rsp + 0x128]
test eax, eax
je 0x4139af
test dil, dil
je 0x4139af
mov eax, dword [rsp + 0x108]
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
mov r9, qword [rsp + 0x110]
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.00413720
movsxd r8, ebp
mov rdx, rsi
mov rcx, r13
call sub.msvcrt.dll_memcpy
xor eax, eax
jmp 0x4139b1
mov eax, 0xffffffff
jmp 0x4139b1
Function at 0x413cb0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
cmp byte [rcx + 0x50], 0
mov r14d, dword [rcx + 8]
mov esi, dword [rcx + 0xc]
mov ebx, dword [rcx + 0x10]
sete al
mov r12d, dword [rcx + 4]
sub r8, 0x10
mov qword [rsp + 0x90], rcx
lea r15d, [r14 + r14*4]
shl eax, 0x18
mov r11d, dword [rcx + 0x14]
and r8, 0xfffffffffffffff0
mov dword [rsp + 0x14], eax
mov r9d, dword [rcx + 0x18]
mov edi, dword [rcx + 0x1c]
mov qword [rsp + 0x20], r15
lea r15d, [rsi + rsi*4]
mov r10d, dword [rcx + 0x20]
mov qword [rsp + 8], rsi
lea r13d, [rbx + rbx*4]
mov esi, ebx
mov eax, dword [rcx + 0x24]
mov qword [rsp + 0x28], r15
lea r15d, [r12 + r12*4]
mov ebp, dword [rcx]
mov qword [rsp + 0x38], rsi
lea rsi, [rdx + r8 + 0x10]
mov qword [rsp + 0x30], r15
mov r15d, r14d
mov qword [rsp + 0x18], rsi
nop word [rax + rax]
mov ecx, dword [rdx]
mov r14, qword [rsp + 0x28]
and ecx, 0x3ffffff
add r11d, ecx
mov ecx, dword [rdx + 3]
mov rsi, r11
imul rsi, r12
shr ecx, 2
and ecx, 0x3ffffff
lea r8d, [rcx + r9]
mov ecx, dword [rdx + 9]
shr ecx, 6
lea r9d, [rcx + r10]
mov ecx, dword [rdx + 6]
mov r10d, dword [rdx + 0xc]
shr ecx, 4
and ecx, 0x3ffffff
shr r10d, 8
or r10d, dword [rsp + 0x14]
add ecx, edi
mov rdi, qword [rsp + 0x20]
add r10d, eax
mov rax, r11
imul rax, rbp
mov rbx, rdi
imul rbx, r9
imul rdi, r10
add rbx, rax
mov rax, r8
imul rax, r13
add rbx, rax
mov rax, r14
imul rax, rcx
add rax, rbx
mov rbx, qword [rsp + 0x30]
imul rbx, r10
add rax, rbx
mov rbx, r14
imul rbx, r9
add rbx, rsi
mov rsi, r8
imul rsi, rbp
add rbx, rsi
mov rsi, rcx
imul rsi, r13
add rsi, rbx
mov rbx, r11
imul rbx, r15
add rsi, rdi
mov rdi, r9
imul rdi, r13
add rdi, rbx
mov rbx, r8
imul rbx, r12
add rdi, rbx
mov rbx, rcx
imul rbx, rbp
add rbx, rdi
mov rdi, r14
mov r14, qword [rsp + 8]
imul rdi, r10
imul r14, r11
imul r11, qword [rsp + 0x38]
add rbx, rdi
mov rdi, r9
imul rdi, rbp
imul r9, r12
add rdi, r14
mov r14, r8
imul r14, r15
add r11, r9
imul r8, qword [rsp + 8]
add rdi, r14
mov r14, rcx
imul r14, r12
add r11, r8
mov r8d, eax
imul rcx, r15
shr rax, 0x1a
and r8d, 0x3ffffff
mov eax, eax
add rsi, rax
mov r9d, esi
shr rsi, 0x1a
add r14, rdi
mov rdi, r10
mov esi, esi
imul rdi, r13
add rbx, rsi
add rcx, r11
imul r10, rbp
and r9d, 0x3ffffff
add r14, rdi
mov edi, ebx
shr rbx, 0x1a
mov ebx, ebx
add rcx, r10
and edi, 0x3ffffff
add r14, rbx
add rdx, 0x10
mov r10d, r14d
shr r14, 0x1a
mov r14d, r14d
and r10d, 0x3ffffff
add rcx, r14
mov eax, ecx
shr rcx, 0x1a
lea ecx, [rcx + rcx*4]
and eax, 0x3ffffff
add r8d, ecx
mov r11d, r8d
shr r8d, 0x1a
and r11d, 0x3ffffff
add r9d, r8d
cmp rdx, qword [rsp + 0x18]
jne 0x413d40
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x14], r11d
mov dword [rcx + 0x18], r9d
mov dword [rcx + 0x1c], edi
mov dword [rcx + 0x20], r10d
mov dword [rcx + 0x24], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4142c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
cmp r8d, 0x100
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, str.expand_16_byte_kexpand_32_byte_k
jne 0x4142f2
lea rax, [0x0041c9a0]
add rdx, 0x10
mov r8d, dword [rdx]
mov dword [rcx + 0x20], r8d
mov r8d, dword [rdx + 4]
mov dword [rcx + 0x24], r8d
mov r8d, dword [rdx + 8]
mov dword [rcx + 0x28], r8d
mov edx, dword [rdx + 0xc]
mov dword [rcx + 0x2c], edx
movsx edx, byte [rax + 1]
movsx r8d, byte [rax + 2]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax]
or edx, r8d
movsx r8d, byte [rax + 3]
shl r8d, 0x18
or edx, r8d
mov dword [rcx], edx
movsx edx, byte [rax + 5]
movsx r8d, byte [rax + 6]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 4]
or edx, r8d
movsx r8d, byte [rax + 7]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 4], edx
movsx edx, byte [rax + 9]
movsx r8d, byte [rax + 0xa]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 8]
or edx, r8d
movsx r8d, byte [rax + 0xb]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 8], edx
movsx edx, byte [rax + 0xd]
movsx r8d, byte [rax + 0xe]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 0xc]
movsx eax, byte [rax + 0xf]
or edx, r8d
shl eax, 0x18
or eax, edx
mov dword [rcx + 0xc], eax
ret
Function at 0x414e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00420884]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x414fc8
mov rax, qword [0x00420888]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x414e8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x414f15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x414e70
mov rcx, rbx
call fcn.00415ae0
test rax, rax
mov r12, rax
je 0x414ffd
mov rax, qword [0x00420888]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00415c10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00420888]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x414fe0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x414f0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x414f70
add dword [0x00420884], 1
cmp edi, 8
jae 0x414f43
test dil, 4
jne 0x414fb4
test edi, edi
je 0x414f38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x414fcf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x414f38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x414f5c
jmp 0x414f38
add rsi, qword [0x00420888]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x414f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00417960
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x414f38
xor esi, esi
jmp 0x414e97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x414f38
mov rax, qword [0x00420888]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00417960
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00417960
nop
nop dword [rax]

Function at 0x415750
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00420b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00420b40]
test rbx, rbx
je 0x4157a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41579b
test rsi, rsi
je 0x41579b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x415780
lea rcx, [0x00420b60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x415ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041d1a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x415b4d
mov rcx, r8
call fcn.004159c0
test eax, eax
je 0x415b4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x415b4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x415b44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x415b4f
add rax, 0x28
cmp rax, r9
jne 0x415b30
xor eax, eax
add rsp, 0x28
ret
Function at 0x417960
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__onexit
test rax, rax
sete al
movzx eax, al
neg eax
add rsp, 0x28
ret
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004172c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004172c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x180002cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180053040
nop
test rbx, rbx
jne 0x180002d01
xor edx, edx
jmp 0x180002d05
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.1800e0750
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1800e07a0
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x180002d8e
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180053080
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180002e00
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180053040
nop
lea rcx, [r14 + 0x10]
xor edx, edx
test r14, r14
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
test rbx, rbx
jne 0x180002e6a
xor edx, edx
jmp 0x180002e6e
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [r8 + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800e0750
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800e07a0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x180002efd
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180053080
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180002fa0
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180053040
nop
lea rcx, [r14 + 0x10]
xor edx, edx
test r14, r14
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
test rbx, rbx
jne 0x18000300a
xor edx, edx
jmp 0x18000300e
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [r8 + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800e0750
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800e07a0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x18000309d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180053080
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180003140
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180053040
nop
mov qword [rbp - 0x50], r14
test rbx, rbx
jne 0x18000319d
xor edx, edx
jmp 0x1800031a1
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov rcx, qword [rbp - 0x48]
mov qword [rsp + 0x20], r14
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800e0750
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800e07a0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x180003230
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180053080
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret