joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001310
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
movups xmm0, xmmword [str.__QZ_]
xor ebp, ebp
mov ebx, 0x8d3dcb09
cmp word [0x1800030da], bp
movups xmmword [rax - 0x48], xmm0
mov eax, dword [0x1800030d8]
mov dword [rsp + 0x30], eax
je 0x180001376
mov edi, ebp
lea r8, [rsp + 0x20]
mov eax, ebx
mul edi
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, di
inc edi
sub ax, cx
add ax, 0x33
xor word [r8], ax
lea r8, [r8 + 2]
cmp edi, 0xa
jl 0x180001350
lea rcx, [rsp + 0x20]
call fcn.180001154
movups xmm0, xmmword [str.XQGXRT_n_b]
lea rdi, [rsp + 0x20]
mov rsi, rax
movsd xmm1, qword [0x1800030f0]
lea r8, [rsp + 0x38]
movzx eax, bp
mov ecx, 0xa
rep stosw word [rdi], ax
movzx ecx, word [0x1800030f8]
mov edi, ebp
mov word [rsp + 0x50], cx
movups xmmword [rsp + 0x38], xmm0
movsd qword [rsp + 0x48], xmm1
mov eax, ebx
mul edi
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, di
inc edi
sub ax, cx
add ax, 0x33
xor word [r8], ax
lea r8, [r8 + 2]
cmp edi, 0xd
jl 0x1800013c0
lea rcx, [rsp + 0x38]
call fcn.180001154
mov rbx, rax
lea rdi, [rsp + 0x38]
movzx eax, bp
mov ecx, 0xd
rep stosw word [rdi], ax
mov rcx, rsi
mov edx, 0xde642d6
call section..text
mov edx, 0xa914b951
mov qword [0x180004008], rax
mov rcx, rsi
call section..text
mov edx, 0x4b6665ec
mov qword [0x180004010], rax
mov rcx, rsi
call section..text
mov edx, 0xe9d87e59
mov qword [0x180004018], rax
mov rcx, rbx
call section..text
lea r11, [rsp + 0x60]
mov qword [section..data], rax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180001f14
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movups xmm0, xmmword [str.ZAR_T]
xor r13d, r13d
cmp word [0x18000321a], r13w
movups xmmword [rax - 0x48], xmm0
mov eax, dword [0x180003218]
mov dword [rsp + 0x30], eax
je 0x180001f83
mov edi, r13d
lea r8, [rsp + 0x20]
mov eax, 0x51eb851f
mul edi
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, di
inc edi
sub ax, cx
add ax, 0x34
xor word [r8], ax
lea r8, [r8 + 2]
cmp edi, 0xa
jl 0x180001f5a
lea rcx, [rsp + 0x20]
call fcn.180001154
mov rsi, rax
lea rdi, [rsp + 0x20]
movzx eax, r13w
lea r9, [0x180004030]
mov ecx, 0xa
mov ebx, r13d
rep stosw word [rdi], ax
movsxd rax, dword [rsi + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
add rcx, rsi
mov r15d, dword [rcx + 0x1c]
mov r14d, dword [rcx + 0x20]
add r15, rsi
mov r12d, dword [rcx + 0x24]
add r14, rsi
mov ebp, dword [rcx + 0x18]
add r12, rsi
lea eax, [rbp - 1]
mov ecx, 0x775a
mov ebp, eax
mov r8d, eax
mov eax, dword [r14 + rax*4]
add rax, rsi
cmp word [rax], cx
jne 0x180002036
mov ecx, 4
jmp 0x180001ff9
imul ecx, ecx, 0x21
inc rax
add ecx, edx
movsx edx, byte [rax]
test edx, edx
jne 0x180001ff1
mov edi, ebx
add rdi, rdi
mov dword [r9 + rdi*8 + 8], ecx
movzx eax, word [r12 + r8*2]
mov ecx, dword [r15 + rax*4]
mov dword [r9 + rdi*8 + 0xc], ecx
add rcx, rsi
call fcn.180001e08
inc ebx
lea r9, [0x180004030]
mov qword [r9 + rdi*8 + 0x10], rax
cmp ebx, 0x1f4
je 0x18000203a
test ebp, ebp
jne 0x180001fd1
lea eax, [rbx - 1]
mov dword [0x180004030], ebx
mov edi, r13d
test eax, eax
je 0x1800020d3
mov eax, ebx
mov edx, r13d
sub eax, edi
cmp eax, 1
je 0x1800020c6
lea rbp, [0x180004030]
lea r10d, [rdx + 1]
mov r9d, edx
add r9, r9
mov r8d, r10d
add r8, r8
mov esi, dword [rbp + r9*8 + 0xc]
mov r11d, dword [rbp + r8*8 + 0xc]
cmp esi, r11d
jbe 0x1800020b8
mov eax, dword [rbp + r8*8 + 8]
mov edx, dword [rbp + r9*8 + 8]
mov rcx, qword [rbp + r9*8 + 0x10]
mov dword [rbp + r9*8 + 8], eax
mov rax, qword [rbp + r8*8 + 0x10]
mov qword [rbp + r9*8 + 0x10], rax
mov dword [rbp + r9*8 + 0xc], r11d
mov dword [rbp + r8*8 + 8], edx
mov dword [rbp + r8*8 + 0xc], esi
mov qword [rbp + r8*8 + 0x10], rcx
mov ebx, dword [0x180004030]
mov ecx, ebx
mov edx, r10d
sub ecx, edi
dec ecx
cmp r10d, ecx
jb 0x180002061
inc edi
lea ecx, [rbx - 1]
cmp edi, ecx
jb 0x18000204e
lea r11, [rsp + 0x40]
mov eax, 1
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
adc al, 0x9a
invalid
invalid
sub edx, ebp
xor al, 0xc1
push rsp
stc
mov ecx, 0xfeb745bf
std
movsd dword [rdi], dword [rsi]
sti
popfq
insb byte [rdi], dx
jl 0x1400c3e51
clc
ror dword [rbx + 0x3c16e097], 1
cmp eax, 0xffbfd375
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140015270
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 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013930
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013950
xor al, al
jmp 0x1400139d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013963
xor al, al
jmp 0x1400139d1
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 0x14001398d
xor al, al
jmp 0x1400139d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400139a1
xor al, al
jmp 0x1400139d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400139b3
xor al, al
jmp 0x1400139d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400139cf
xor al, al
jmp 0x1400139d1
mov al, 1
add rsp, 0x38
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00435870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00435880]
mov dword [rax], 1
mov rax, qword [0x00435890]
mov dword [rax], 1
mov rax, qword [0x00435860]
mov dword [rax], 1
mov rax, qword [0x004356e0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00435850]
mov dword [0x0043a00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004357d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00435690]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x403470
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [0x00435830]
lea rax, str.echoBinSafe
lea rsi, str._usr_lib_nim_system_io.nim
mov rdi, rdx
xor edx, edx
mov rbp, rcx
mov qword [rsp + 0x28], rax
mov word [rsp + 0x40], dx
mov rdx, qword [r13]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], 0
test rdx, rdx
je 0x4035d0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [r13], rdx
add eax, 1
mov word [rsp + 0x42], ax
cmp ax, 0x7d0
je 0x4035c0
mov r12, qword [dbg.__acrt_iob_func]
test rdi, rdi
jle 0x403550
mov r12, qword [dbg.__acrt_iob_func]
xor ebx, ebx
lea r14, [rdi - 1]
nop
mov r15, qword [rbp + rbx*8]
mov ecx, 1
mov qword [rsp + 0x38], rsi
add rbx, 1
mov qword [rsp + 0x30], 0x26f
call r12
xor r8d, r8d
mov rdx, r15
mov rcx, rax
call sym.writeWindows__JO9bn8JE1R6MjKZqdvhBrWg
cmp rbx, rdi
je 0x403550
mov qword [rsp + 0x30], 0x26d
mov qword [rsp + 0x38], rsi
jb 0x403500
mov rdx, r14
mov rcx, rbx
call sym.raiseIndexError2
jmp 0x403500
mov qword [rsp + 0x30], 0x273
mov ecx, 1
mov qword [rsp + 0x38], rsi
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x0043224a]
mov r9, rax
call sym.fwrite
mov qword [rsp + 0x38], rsi
mov ecx, 1
mov qword [rsp + 0x30], 0x274
call r12
mov rcx, rax
call sym.fflush
mov rax, qword [r13]
mov rax, qword [rax]
mov qword [r13], rax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw
jmp 0x4034e6
mov qword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x20]
mov qword [r13], rax
jmp 0x4034e6
Function at 0x403760
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x403781
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x41add0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, qword [0x00435830]
lea rax, str.find
lea rbp, str._usr_lib_nim_pure_strutils.nim
mov rdi, rdx
xor edx, edx
mov qword [rsp + 0x28], rax
mov r15, rcx
mov word [rsp + 0x40], dx
mov rdx, qword [r12]
mov rbx, r8
mov rsi, r9
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
test rdx, rdx
je 0x41afb0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [r12], rdx
add eax, 1
mov word [rsp + 0x42], ax
cmp ax, 0x7d0
je 0x41afa0
test rsi, rsi
jne 0x41aea8
test r15, r15
je 0x41afd0
mov rdx, qword [r15]
lea r13, [0x00433b2f]
lea rsi, [rdx - 1]
cmp rsi, rbx
jge 0x41aeec
nop dword [rax]
mov qword [rsp + 0x30], 0x76a
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov rdx, qword [r12]
mov rdx, qword [rdx]
mov qword [r12], rdx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [0x00433b2f]
cmp rsi, rbx
jl 0x41ae70
test r15, r15
jne 0x41aee9
jmp 0x41af5d
lea r14, [rbx + 1]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0xa99
xor rbx, r14
jns 0x41aee1
test r14, r14
jns 0x41aee1
call sym.raiseOverflow
cmp rsi, r14
jl 0x41ae70
mov rbx, r14
mov rdx, qword [r15]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0x769
cmp rdx, rbx
ja 0x41af0b
sub rdx, 1
mov rcx, rbx
call sym.raiseIndexError2
movzx eax, byte [r15 + rbx + 0x10]
mov edx, eax
and eax, 7
shr dl, 3
movzx edx, dl
movzx edx, byte [rdi + rdx]
bt edx, eax
jae 0x41aec0
mov rax, rbx
jmp 0x41ae85
lea r14, [rbx + 1]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0xa99
xor rbx, r14
jns 0x41af51
test r14, r14
jns 0x41af51
call sym.raiseOverflow
cmp rsi, r14
jl 0x41ae70
mov rbx, r14
mov rdx, 0xffffffffffffffff
mov rcx, rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0x769
call sym.raiseIndexError2
movzx eax, byte [rbx + 0x10]
mov edx, eax
and eax, 7
shr dl, 3
movzx edx, dl
movzx edx, byte [rdi + rdx]
bt edx, eax
jae 0x41af30
mov rax, rbx
jmp 0x41ae85
call sym.callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw
jmp 0x41ae4c
mov qword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x20]
mov qword [r12], rax
jmp 0x41ae4c
lea r13, [0x00433b2f]
test rbx, rbx
jns 0x41ae70
mov rsi, 0xffffffffffffffff
jmp 0x41af5d
Function at 0x42f840
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 0x42f8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0043bbd4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x42fa58
mov rax, qword [0x0043bbd8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x42f8fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x42f987
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x42f8e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x42fa92
mov rax, qword [0x0043bbd8]
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 [0x0043bbd8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x42faa1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x42f980
sub eax, 4
and eax, 0xfffffffb
jne 0x42fa10
add dword [0x0043bbd4], 1
cmp ebx, 8
jae 0x42f9b8
test bl, 4
jne 0x42fa60
test ebx, ebx
je 0x42f9a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x42fa80
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 0x42f9a9
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 0x42f9ea
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 [0x0043bbd8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42f980
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 0x42f907
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x42f9a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x42f9a9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x0043bbd8]
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 0x430280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043bec0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0043bea0]
test rbx, rbx
je 0x4302d4
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 0x4302cb
test r12, r12
je 0x4302cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4302b0
lea rcx, [0x0043bec0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x430500
Capabilities:
Parse pe header

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

Function at 0x430520
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 0x430565
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 0x43055c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x430567
add rax, 0x28
cmp rax, r9
jne 0x430548
xor eax, eax
ret

Function at 0x430610
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004356e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x430689
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x430689
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 0x430686
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 0x43067d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x430689
add r8, 0x28
cmp r8, r9
jne 0x430668
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x430770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004356e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4307df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4307df
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 0x4307dd
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 0x4307d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4307e8
add rax, 0x28
cmp rax, r9
jne 0x4307c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x430800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004356e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x430878
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x430878
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x430878
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x430878
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 0x43086c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x430880
add rdx, 0x28
cmp rdx, r10
jne 0x430858
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x430890
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x43089e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x430875
test r8d, r8d
jg 0x430888
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x47d5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x250
mov rbp, rsp
mov rbx, rcx
xor rsi, rsi
mov rcx, 0xffffffff80000002
lea rdx, [0x0047d6d8]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x248]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x47d6b1
mov rcx, qword [rbp + 0x248]
lea rdx, [0x0047d718]
xor r8, r8
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47d639
mov sil, 1
jmp 0x47d6a5
mov rcx, 0xffffffff80000002
lea rdx, [0x0047d6d8]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x47d6a5
mov rcx, qword [rbp + 0x240]
lea rdx, [0x0047d718]
xor r8, r8
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47d699
mov sil, 1
mov rcx, qword [rbp + 0x240]
call sub.advapi32.dll_RegCloseKey_1
mov rcx, qword [rbp + 0x248]
call sub.advapi32.dll_RegCloseKey_1
test sil, sil
je 0x47d6c9
mov rcx, rbx
lea rdx, [rbp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.0040b090
mov rax, rbx
lea rsp, [rbp + 0x250]
pop rbx
pop rsi
pop rbp
ret
Function at 0x1001dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov edi, 4
mov dword [rsp + 0x48], edi
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp dword [0x0100509c], ebx
jne 0x1001e8c
mov rax, qword [section..data]
cmp rax, 0xffffffffffffffff
jne 0x1001e31
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
xor edx, edx
lea rcx, str..AGRSM
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [section..data], rax
cmp rax, 0xffffffffffffffff
je 0x1001f68
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1b214c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001e6f
mov eax, dword [rsp + 0x44]
jmp 0x1001f6c
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [section..data], 0xffffffffffffffff
jmp 0x1001f68
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdi, [0x010013b0]
mov rdx, rdi
movabs rsi, 0xffffffff80000002
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001ee3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f1a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x010013d0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1001f7a
cmp qword [section..data], 0xffffffffffffffff
jne 0x1001f6c
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
xor edx, edx
lea rcx, str..AGRSM
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [section..data], rax
cmp rax, 0xffffffffffffffff
je 0x1001f70
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1001fa2
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [section..data]
cmp rcx, 0xffffffffffffffff
je 0x1001f70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [section..data], 0xffffffffffffffff
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
cmp eax, 1
setne bl
add ebx, 1
mov eax, ebx
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret