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

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140013980
cmp eax, 1
je 0x14000c102
mov ecx, 3
call fcn.140013980
test eax, eax
jne 0x14000c1b6
cmp dword [0x14001d0c0], 1
jne 0x14000c1b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14001d940]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000c12e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14000c118
jmp 0x14000c1a2
cmp edi, 0x17
jae 0x14000c1a2
mov ecx, 3
call fcn.140013980
cmp eax, 1
je 0x14000c159
mov ecx, 3
call fcn.140013980
test eax, eax
jne 0x14000c1a2
cmp dword [0x14001d0c0], 1
jne 0x14000c1a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14000c1a2
cmp rax, 0xffffffffffffffff
je 0x14000c1a2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14000be90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14000d280
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14001f21c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14000d2dc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000d2bc
mov dword [0x14001f21c], 1
jmp 0x14000d2ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000d2d6
mov dword [0x14001f21c], 2
jmp 0x14000d359
mov eax, dword [0x14001f21c]
cmp eax, 1
jne 0x14000d350
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000d32a
cmp word [rdi], bp
mov rax, rdi
je 0x14000d309
add rax, 2
cmp word [rax], bp
jne 0x14000d2f7
add rax, 2
cmp word [rax], bp
jne 0x14000d2f7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14000f4b0
test rax, rax
mov rbx, rax
jne 0x14000d331
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14000d44b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140008320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14000d44b
cmp eax, 2
je 0x14000d359
test eax, eax
jne 0x14000d32a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14000d32a
cmp byte [rax], bpl
mov rbx, rax
je 0x14000d3a8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000d32a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14000d370
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14000f520
test rax, rax
mov r12, rax
jne 0x14000d3cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000d44b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14000d435
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000d45e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14000d3e0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400082c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000d446
Function at 0x140013720
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000b1a0
xor ebx, ebx
cmp qword [0x14001f540], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001384c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001395f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001395f
mov rcx, rax
call fcn.14000b0d0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001f540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b0d0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001f548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b0d0
lea rcx, [rsp + 0x98]
mov qword [0x14001f550], rax
call fcn.14000bb30
test eax, eax
je 0x1400137ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140009920
cmp dword [rsp + 0x98], 2
jne 0x14001384c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b0d0
test rax, rax
mov qword [0x14001f560], rax
je 0x14001384c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b0d0
mov qword [0x14001f558], rax
mov rcx, qword [0x14001f558]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400138f8
cmp qword [0x14001f560], rbp
je 0x1400138f8
call fcn.14000b290
mov rcx, qword [0x14001f560]
mov rsi, rax
call fcn.14000b290
test rsi, rsi
mov r12, rax
je 0x1400138f8
test rax, rax
je 0x1400138f8
call rsi
test rax, rax
je 0x1400138c3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400138c3
test byte [rsp + 0x40], 1
jne 0x1400138f8
lea rcx, [rsp + 0x30]
call fcn.14000bb80
test eax, eax
je 0x1400138e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140009920
cmp dword [rsp + 0x30], 4
jb 0x1400138f2
bts edi, 0x15
jmp 0x140013936
bts edi, 0x12
jmp 0x140013936
mov rcx, qword [0x14001f548]
cmp rcx, rbp
je 0x140013936
call fcn.14000b290
test rax, rax
je 0x140013936
call rax
test rax, rax
mov rbx, rax
je 0x140013936
mov rcx, qword [0x14001f550]
cmp rcx, rbp
je 0x140013936
call fcn.14000b290
test rax, rax
je 0x140013936
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001f540]
call fcn.14000b290
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001395f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140013961
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400139e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14001d0c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140013a27
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400079d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140014bc0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400079d0
add rsp, 0x38
ret
Function at 0x140006b50
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006bc4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006be0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006bbd
mov qword [rsi], rdi
call fcn.140006780
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cli
fiadd word [rdi]
adc byte [0xfd7d978e], bh
mov edi, 0xb5c10ba7
sbb bh, byte [rsi - 0x5e]
movabs byte [0xc3020ecade8b4881], al
movabs byte [0xc3020ecade8b4881], al
sbb ebx, dword [rdi + 0x14]
fcmove st(0), st(7)
sub edx, dword [rax]
mov ecx, dword [rcx + rsi*8 - 0x22b58806]
invalid
in eax, dx
add eax, 0xce7d901e
add dword [rcx + 0x6f], 0x4b561c74
pop rsi
jl 0x14007ad94
invalid
dec byte [rbp - 0x846ff3b]
add byte [rcx - 0x17c10413], bh
jge 0x14007ad53
mov edi, 0xc02c9aba
mov ah, byte [rsp + rbp*8]
mov dword [rdi + rbp*8 + 0x11], ebp
add ah, byte [rax + 0x77]
idiv dword [rbx - 0x23843b1a]
out 0xc4, al
jnp 0x14007ad33
out 0xb3, eax
out 0xd2, eax
in eax, 0xb4
push rbx
push rdx
add r10b, r14b
ror byte [rsp + rsi*2 - 0x4e], 1
add edi, edi
je 0x14007ada3
movabs al, byte [0xb8906fc13b83ba1]
ret 0xf300
invalid
and dl, byte [0x15a49853f]
std
out dx, eax
pop rdi
invalid

Function at 0x140006c50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006ce0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006ca8
add rdi, rbx
sub rsi, rbx
je 0x140006ce0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006ca0
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call fcn.1400017f0
jmp 0x140006ca0
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140036e40
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e580]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400023d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x14000e580]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002410
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002410
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 0x140002454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002468
add rax, 0x28
cmp r9, rax
jne 0x140002440
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x14000e580]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400024a2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002510
add rdx, 0x28
cmp r10, rdx
jne 0x1400024e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000251f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000252f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002506
test ecx, ecx
jg 0x140002518
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003ba0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000e600]
mov rax, qword [rsi]
test rax, rax
je 0x140003c30
cmp qword [rax + 0x30], 0
jne 0x140003c50
lea rbx, [0x14000d098]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c00
cmp qword [rax + 0x30], 0
jne 0x140003c20
lea rdx, [0x14000d098]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003be2
test rax, rax
jne 0x140003c20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003bf0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003bc0
test rax, rax
jne 0x140003c50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003bcb
Function at 0x140007820
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000e600]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400078f0
cmp qword [rax + 0x60], 0
jne 0x140007910
lea rcx, [0x14000d088]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007920
cmp qword [rax + 0x1d8], r12
jne 0x140007920
test byte [rax + 0x40], 0xc
jne 0x140007920
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007920
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007920
mov rax, qword [rbx]
test rax, rax
je 0x140007980
cmp qword [rax + 0x60], 0
jne 0x1400079a0
lea rcx, [0x14000d088]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400079b0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400079b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000784b
test rax, rax
jne 0x140007910
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007856
mov rax, qword [rbx]
test rax, rax
je 0x140007950
cmp qword [rax + 0x60], 0
jne 0x140007970
lea rcx, [0x14000d088]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000792f
test rax, rax
jne 0x140007970
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000793a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078ba
test rax, rax
jne 0x1400079a0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078c5
xor eax, eax
jmp 0x140007944
mov eax, 0x16
jmp 0x140007944
Function at 0x140228070
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14022807d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14022808d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140228075
lea eax, [rcx + 1]
jmp 0x14022809b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402280ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140228094
sub eax, 3
jb 0x1402280ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14022811d
sar eax, 1
movsxd rbp, eax
jb 0x140228104
jmp 0x1402280dc
add ebx, ebx
jne 0x1402280da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140228104
inc ecx
add ebx, ebx
jne 0x1402280ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140228104
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402280fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402280ec
add ecx, 2
jmp 0x140228109
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140228032
jmp 0x14022807d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x12ee00
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14022816d
cmp rsi, rcx
jae 0x140228175
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140228154
cmp al, 0x8f
ja 0x140228154
cmp byte [rsi - 2], 0xf
je 0x14022815a
sub al, 0xe8
cmp al, 1
ja 0x14022813e
cmp rsi, rcx
jae 0x140228175
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140228144
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140228175
lodsb al, byte [rsi]
jmp 0x140228154
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x222000]
mov eax, dword [rdi]
or eax, eax
je 0x1402281de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2282d4]
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 0x140228182
jns 0x1402281b7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402281c1
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 0x1402281d8
mov qword [rbx], rax
add rbx, 8
jmp 0x1402281a2
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 0x140228222
cmp al, 0xef
ja 0x14022820a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402281ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402281f9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402281f9
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 + 0x24f]
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 0x140228276
sub rsp, 0xffffffffffffff80
jmp 0x1401284d4
Function at 0x140005a10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x140005b9a
mov qword [rsp + 0x58], rdi
call fcn.14001cdb0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002df10]
mov r9d, 0xc0
mov qword [rsp + 0x28], rbx
mov r8, r14
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_n_c_c__ws___
call fcn.140001010
xor edi, edi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140005ad4
test rax, rax
je 0x140005b62
mov qword [rsp + 0x98], rsi
mov rcx, rdi
mov qword [rsp + 0x50], r15
lea r15, [0x14002cab0]
nop dword [rax]
lea rsi, [rbx + rcx*2]
mov edx, 0x80
movzx ecx, word [rsi]
call fcn.14000d574
test eax, eax
je 0x140005b3b
call fcn.14000a310
cdqe
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x140005b23
xor edx, edx
div rcx
movzx eax, word [r15 + rdx*2]
mov word [rsi], ax
inc edi
mov rax, 0xffffffffffffffff
mov ecx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140005b46
cmp rcx, rax
jb 0x140005b00
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
lea rcx, str._ws_n_n
call fcn.140001010
mov rdi, qword [rsp + 0x58]
jmp 0x140005bda
call fcn.14001cdb0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002df10]
mov r8, r14
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006b70
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret
Function at 0x140005bf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
mov eax, 0x2050
call fcn.14001ca60
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlSystemInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
je 0x140005ca7
mov r8d, 0x208
mov dword [rsp + 0x38], 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, 0xffffffff80000002
call qword [0x14002df10]
lea r8, str.SYSTEMCurrentControlSetControlSystemInformation
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005e8b
mov qword [rsp + 0x2060], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov r8d, 0x1ffe
call fcn.14001cdb0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1ffe
mov qword [rsp + 0x28], rax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005e1f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140005d85
mov qword [rsp + 0x2068], rdi
mov qword [rsp + 0x2070], r14
lea r14, [0x14002cab0]
mov eax, ebx
lea rdi, [rsp + 0x40]
movzx ecx, word [rdi + rax*2]
lea rdi, [rdi + rax*2]
mov edx, 0x80
call fcn.14000d574
test eax, eax
je 0x140005d6b
call fcn.14000a310
cdqe
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x140005d50
dec rcx
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
mov eax, dword [rsp + 0x38]
inc ebx
cmp ebx, eax
jb 0x140005d21
mov r14, qword [rsp + 0x2070]
mov rdi, qword [rsp + 0x2068]
mov dword [rsp + 0x28], eax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
mov eax, dword [rsp + 0x38]
lea r8, str.ComputerHardwareIds
mov dword [rsp + 0x28], eax
lea rdx, [0x14002dcf6]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
lea rcx, str._ws_ws_n_c_c_multi_string_of_length__d_n_n
call fcn.140001010
jmp 0x140005e7a
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
lea r8, str.ComputerHardwareIds
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140006b70
add rsp, 0x2050
pop rbx
ret