joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400712b4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x1400712b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x1400712b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400712b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x1400712b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400712b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
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 esi, esi
jmp 0x140001808
mov rax, qword [0x1400712b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140071320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140071300]
test rbx, rbx
je 0x140001ecc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002110
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 0x14000215d
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 0x140002154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000215f
add rax, 0x28
cmp rax, r9
jne 0x140002140
xor eax, eax
ret

Function at 0x140002160
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400021f0
mov rdx, qword [0x14006e390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400021de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400021de
cmp word [rax + 0x18], 0x20b
jne 0x1400021de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400021f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400021c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400021f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400021c0
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 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14006e390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000227d
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 0x140002274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002220
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

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

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14006e390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400022e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400022e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002327
test rcx, rcx
je 0x1400022e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002318
xor eax, eax
ret
Function at 0x140002340
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14006e390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023a0
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 0x1400023f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002400
add rdx, 0x28
cmp r9, rdx
jne 0x1400023e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14006e390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002432
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 0x140002495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000249e
test ecx, ecx
jg 0x1400024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400111ef
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014140
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014160
xor al, al
jmp 0x1400141e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014173
xor al, al
jmp 0x1400141e1
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 0x14001419d
xor al, al
jmp 0x1400141e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141b1
xor al, al
jmp 0x1400141e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141c3
xor al, al
jmp 0x1400141e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141df
xor al, al
jmp 0x1400141e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140047db0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140047dbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140047dcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140047db5
lea eax, [rcx + 1]
jmp 0x140047ddb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140047dee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140047dd4
sub eax, 3
jb 0x140047e0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140047e5d
sar eax, 1
movsxd rbp, eax
jb 0x140047e44
jmp 0x140047e1c
add ebx, ebx
jne 0x140047e1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140047e44
inc ecx
add ebx, ebx
jne 0x140047e2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140047e44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140047e3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140047e2c
add ecx, 2
jmp 0x140047e49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140047d72
jmp 0x140047dbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140047ea9
cmp rsi, rcx
jae 0x140047eb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140047e90
cmp al, 0x8f
ja 0x140047e90
cmp byte [rsi - 2], 0xf
je 0x140047e96
sub al, 0xe8
cmp al, 1
ja 0x140047e7a
cmp rsi, rcx
jae 0x140047eb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140047e80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140047eb1
lodsb al, byte [rsi]
jmp 0x140047e90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x45000]
mov eax, dword [rdi]
or eax, eax
je 0x140047f0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x48280]
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 0x140047ebe
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 0x140047f08
mov qword [rbx], rax
add rbx, 8
jmp 0x140047ede
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 0x140047f48
cmp al, 0xef
ja 0x140047f3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140047f1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140047f29
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 + 0x22f]
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 0x140047f9c
sub rsp, 0xffffffffffffff80
jmp 0x140006c08
Function at 0x180001270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1800012a3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800012e9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800012e4
nop
cmp rbx, rcx
jae 0x1800012e9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1800012d0
cmp rbx, rcx
jb 0x1800012ed
xor eax, eax
jmp 0x1800012f9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800015f0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x1f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor ebp, ebp
mov word [rsp + 0x50], bp
xor edx, edx
mov r8d, 0x18e
lea rcx, [rsp + 0x52]
call fcn.18000abd0
mov r8d, 0xc8
lea rdx, [rsp + 0x50]
lea rcx, str.AFPLUS_PD_VERSION
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x28], bp
or r14, 0xffffffffffffffff
cmp word [rsp + 0x50], bp
jne 0x18000167a
mov r8d, ebp
jmp 0x18000168c
lea rax, [rsp + 0x50]
mov r8, r14
inc r8
cmp word [rax + r8*2], bp
jne 0x180001682
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1800049f0
nop
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
mov r11, qword [rsp + 0x38]
test r11, r11
je 0x18000175a
mov ebx, ebp
lea r10, [0x180155de0]
lea r15, [0x1801568d0]
cmp word [r10], 0
jne 0x1800016d0
mov rcx, rbp
jmp 0x1800016de
mov rcx, r14
inc rcx
cmp word [r10 + rcx*2], 0
jne 0x1800016d3
lea rdx, [rsp + 0x28]
cmp rdi, 8
cmovae rdx, rsi
mov r9, rcx
cmp r11, rcx
cmovb r9, r11
test r9, r9
je 0x180001727
mov r8, r10
nop dword [rax]
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x180001718
add rdx, 2
add r8, 2
dec r9
jne 0x180001700
jmp 0x180001727
mov r9d, 1
cmp word [rdx], ax
cmovb r9d, r14d
jmp 0x18000172a
mov r9d, ebp
movsxd rax, r9d
test r9d, r9d
jne 0x180001744
cmp r11, rcx
jae 0x18000173c
mov eax, r14d
jmp 0x180001744
mov eax, ebp
cmp r11, rcx
setne al
test eax, eax
je 0x18000175f
inc ebx
add r10, 0x190
cmp r10, r15
jl 0x1800016c4
mov ebx, 6
cmp rdi, 8
jb 0x18000176d
mov rcx, rsi
call fcn.180005840
mov eax, ebx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180005860
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800017a0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x1f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor ebx, ebx
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x18e
lea rcx, [rsp + 0x52]
call fcn.18000abd0
mov r8d, 0xc8
lea rdx, [rsp + 0x50]
lea rcx, str.AFPDCN_SETTING
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
or rdi, 0xffffffffffffffff
cmp word [rsp + 0x50], bx
jne 0x180001820
mov r8d, ebx
jmp 0x18000183a
lea rax, [rsp + 0x50]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180001830
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1800049f0
nop
lea rcx, [rsp + 0x28]
mov r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0x40]
cmp r11, 8
cmovae rcx, r10
mov r8d, 4
mov r9, qword [rsp + 0x38]
cmp r9, r8
cmovb r8, r9
test r8, r8
je 0x1800018a6
lea rdx, str.TRUE
nop
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x180001897
add rcx, 2
add rdx, 2
dec r8
jne 0x180001880
jmp 0x1800018a6
mov r8d, 1
cmp word [rcx], ax
cmovb r8d, edi
jmp 0x1800018a9
mov r8d, ebx
movsxd rax, r8d
test r8d, r8d
jne 0x1800018c6
cmp r9, 4
jae 0x1800018bb
mov eax, edi
jmp 0x1800018c6
mov edx, ebx
cmp r9, 4
setne dl
mov eax, edx
test eax, eax
sete bl
cmp r11, 8
jb 0x1800018d9
mov rcx, r10
call fcn.180005840
mov eax, ebx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180005860
mov rbx, qword [rsp + 0x200]
add rsp, 0x1f0
pop rdi
ret

Function at 0x180001900
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, str.JS0GROUP.dll
lea rcx, [rsp + 0x30]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x1800019c5
lea ecx, [rbx + 2]
mov edx, esi
mov qword [rsp + 0x260], rdi
mov dword [rsp + 0x24], ebx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
lea rdx, [0x180120858]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x28]
mov rcx, rdi
movzx ebx, word [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x260]
movzx eax, bx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180005860
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rsi
ret
Function at 0x180003770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x1a8]
sub rsp, 0x2a8
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
test rcx, rcx
je 0x1800039c0
cmp byte [rcx], 0
je 0x1800039c0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x2a0], rdi
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180003807
xor eax, eax
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180005860
add rsp, 0x2a8
pop r14
pop rbp
ret
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x2d0], rsi
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [rsp + 0x60]
mov edx, 0x64
test eax, eax
mov esi, edi
cmovne ecx, edx
mov dword [rsp + 0x60], ecx
test ecx, ecx
je 0x1800039a6
mov qword [rsp + 0x2c8], rbx
nop word [rax + rax]
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0xff
call fcn.18000abd0
lea r8, str._04u
lea rcx, [rbp - 0x80]
mov r9d, esi
mov edx, 0xff
call fcn.1800013c0
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, [rbp - 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000398c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
lea rdx, str.NetCfgInstanceId
xor r8d, r8d
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180003925
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000398c
lea rcx, [rbp + 0x80]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x180003946
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000398c
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x74]
lea rdx, str.Characteristics
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x18000399a
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x180003880
jmp 0x18000399e
mov edi, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2d0]
mov eax, edi
jmp 0x1800037e5
xor eax, eax
jmp 0x1800037ed