joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007dfb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007dfd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007dfd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140088398
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140081bd4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140088439
cmp ebx, dword [rsp + 0x30]
je 0x140088432
test esi, esi
je 0x140088432
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008840d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008841a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400883f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008841e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008843b
mov eax, 1
jmp 0x14008843b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140089244
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400892cb
mov rsi, rbx
cmp word [rax], bp
je 0x14008928a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140089274
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140089270
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140029f80
mov rdi, rax
test rax, rax
je 0x1400892b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140092640
mov rbp, rdi
xor ecx, ecx
call fcn.140029fd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b7cc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008b816
call fcn.140075bcc
mov dword [rax], 0xf
call fcn.140075bac
mov dword [rax], 0xd
call fcn.140083e94
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065690
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008b821
lea eax, [rbx + 1]
jmp 0x14008b803
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14008b801
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008b803

Function at 0x14008bdec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008be02
mov al, 1
jmp 0x14008be62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008be13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008be60
mov ecx, dword [rcx + 0x18]
nop
call fcn.140075cfc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008be60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008be60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008be60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008be62
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400ac790
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1400ac7b9
mov rcx, qword [rsi]
jmp 0x1400ac7c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400ac815
mov dil, 1
test bl, bl
je 0x1400ac7f4
cmp byte [rsi + 8], 1
je 0x1400ac7e0
mov rcx, qword [rsi]
jmp 0x1400ac7e9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x1400ac80b
call fcn.140065690
int3
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1400ac82c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400ac82f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ac842
xor edi, edi
jmp 0x1400ac7f4
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
je 0x1400ac855
mov rcx, qword [rsi]
jmp 0x1400ac85e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400ac7f4
Function at 0x1400acbc0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400f45b8], 0
je 0x1400acc10
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x1400acc03
call fcn.140065690
int3
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400f45c0]
test rdi, rdi
jne 0x1400accdd
mov ecx, 0x18
call fcn.140064440
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140092ce0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400c69e0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14004c4a0
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1400acc8a
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400accc1
add rax, rax
test rax, rax
je 0x1400accc1
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400acc92
cmp rdx, 0xfffffffffffffffe
je 0x1400accc1
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140047970
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14004d460
mov qword [0x1400f45c0], rdi
test byte [0x1400e5120], 1
je 0x1400acbe9
cmp byte [rdi + 0x17], 0
jns 0x1400accf3
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f45b8], rax
inc rax
cmp rax, 1
ja 0x1400acbe9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140092ce0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1400ace2f
mov rcx, qword [0x1400f45c0]
lea rdx, [rsp + 0x40]
call fcn.140023160
mov rcx, qword [0x1400f45c0]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1400ace36
test al, al
je 0x1400ace47
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400acdc1
lea rdx, [0x1400c97aa]
mov r8d, 1
call fcn.14004d460
mov rcx, qword [0x1400f45c0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14004d460
mov rcx, qword [0x1400f45c0]
cmp byte [rcx + 0x17], 0
jns 0x1400acde3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f45b8], rax
inc rax
cmp rax, 1
ja 0x1400acbe9
mov qword [0x1400f45b8], 0
xor esi, esi
jmp 0x1400acbe9
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400ace47
mov rdx, qword [rcx]
jmp 0x1400acda0
ud2
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00466520]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00466530]
mov dword [rax], 1
mov rax, qword [0x00466540]
mov dword [rax], 1
mov rax, qword [0x00466510]
mov dword [rax], 1
mov rax, qword [0x00466400]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00466500]
mov dword [0x0046900c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004664c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004663b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4015c0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rdx, section..rdata
mov rcx, qword [rbp + 0x10]
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401602
lea rcx, str.Failed_to_open_file_for_writing
call sym.perror
mov eax, 0
jmp 0x401632
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x401638
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
sub rsp, 0x310
lea rbp, [rsp + 0x80]
lea rax, str.40406001793
mov qword [rbp + 0x288], rax
mov rax, qword [0x004657c0]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x280], rax
cmp qword [rbp + 0x280], 0
jne 0x40168c
lea rcx, str.Failed_to_allocate_memory
call sym.perror
mov eax, 0
jmp 0x40184f
mov rdx, qword [0x004657c0]
mov rax, qword [rbp + 0x280]
mov r8, rdx
lea rdx, [0x00404020]
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x288]
mov rcx, rax
call sym.strlen
mov r8, rax
mov rdx, qword [0x004657c0]
mov rcx, qword [rbp + 0x288]
mov rax, qword [rbp + 0x280]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.xor_encrypt_decrypt
lea rax, [rbp + 0x170]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x170]
mov r9, rdx
mov r8d, 0
lea rdx, [0x0046604e]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call rax
mov rcx, qword [0x004657c0]
mov rdx, qword [rbp + 0x280]
lea rax, [rbp + 0x60]
mov r8, rcx
mov rcx, rax
call sym.save_file
test eax, eax
jne 0x40175a
mov rax, qword [rbp + 0x280]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x40184f
mov rax, qword [rbp + 0x280]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x401815
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error_launching_process:__d_n
call sym.printf
mov eax, 0
jmp 0x40184f
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x310
pop rbp
ret
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00469624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x401f74
mov rax, qword [0x00469628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401e99
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401df0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401fa9
mov rax, qword [0x00469628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00469628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f8c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e92
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f14
add dword [0x00469624], 1
cmp edi, 8
jae 0x401ed0
test dil, 4
jne 0x401f60
test edi, edi
je 0x401ebc
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401f7b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401ebc
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x401f00
jmp 0x401ebc
add rsi, qword [0x00469628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e92
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 + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ebc
xor esi, esi
jmp 0x401e17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ebc
mov rax, qword [0x00469628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402700
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00469900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004698e0]
test rbx, rbx
je 0x402754
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40274b
test rsi, rsi
je 0x40274b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402730
lea rcx, [0x00469900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402990
Capabilities:
Parse pe header

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

Function at 0x4029b0
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 0x4029f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4029e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4029f3
add rax, 0x28
cmp rax, r9
jne 0x4029d4
xor eax, eax
ret

Function at 0x402a90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00466400]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x402afd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402afd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402afd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402af4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402aff
add rax, 0x28
cmp rax, r9
jne 0x402ae0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00466400]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402c20
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c18
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c84
add rax, 0x28
cmp rax, r9
jne 0x402c60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00466400]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x402d0e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d0e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402d0e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402d0e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402d05
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402d15
add rcx, 0x28
cmp rcx, rax
jne 0x402cf0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d28
jmp 0x402d0e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402d36
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402d0e
test r9d, r9d
jg 0x402d20
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x402fc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
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
nop
nop
nop
nop
nop
nop
Function at 0x140002e9c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140019188]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140002f0d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140002f0d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140002eeb
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x140012868]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140001588
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140002f77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000304c
mov edx, 0xc0
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
call fcn.140002c08
mov esi, eax
jmp 0x14000304f
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140002d48
mov esi, eax
test eax, eax
jns 0x140002fb4
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
mov r9d, eax
mov edx, CreateErrorInfo
call fcn.140002bd4
jmp 0x14000304f
lea r8, [0x140012870]
lea rcx, [rsp + 0x30]
call fcn.140001588
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140002fe6
mov edx, 0xcc
jmp 0x140002f5d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002d48
mov esi, eax
test eax, eax
jns 0x140003027
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
mov r9d, eax
mov edx, 0xce
call fcn.140002bd4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400030a8
jmp 0x14000304f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400030c1
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140003061
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000308f
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000f050
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
Function at 0x1400055a8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [r8 + rax*2], bx
jne 0x1400055b4
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140005603
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulationexemain.cpp
mov ebx, 0x80004005
mov edx, 0xd8
mov r9d, ebx
call fcn.140002bd4
mov eax, ebx
jmp 0x140005605
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140005614
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [0x1400131b0]
mov dword [rsp + 0x28], 0xb4
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140005662
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_analog_sdk_simulation_servicesperceptionsimulationexemain.cpp
mov r9d, 0x80004005
mov edx, 0xf6
call fcn.140002bd4
mov eax, 0x80004005
jmp 0x140005664
xor eax, eax
add rsp, 0x38
ret