joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002264c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rsi, r9
mov r14, r8
mov r10, rcx
xor r15d, r15d
mov bl, r15b
mov rcx, rdx
call fcn.14000128c
mov rdx, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022790
mov rcx, r14
call fcn.14000128c
lea rcx, [rbp - 0x2c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022782
mov edx, dword [rbp - 0x2c]
shr rdx, 1
mov rcx, qword [rbp + 0x30]
call fcn.140001ae4
cmp rax, rdx
jbe 0x1400226ef
call fcn.140001ae4
mov rdx, rax
lea rax, [rdx + 1]
mov edx, 0x10000
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140001da4
nop
lea rcx, [rbp - 0x18]
call fcn.140001aec
add eax, eax
mov dword [rbp - 0x28], eax
lea rcx, [rbp - 0x18]
call fcn.140001adc
mov rdx, rax
mov rcx, r14
call fcn.14000128c
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x24]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022779
mov word [rbp - 0x30], r15w
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x18]
call fcn.140026f70
lea rcx, [rbp - 0x18]
call fcn.140001adc
mov rdx, rax
mov rcx, rsi
call fcn.14000129c
mov bl, 1
lea rcx, [rbp - 0x18]
call fcn.140001af8
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14002279c
mov rdx, qword [rbp + 0x30]
mov rcx, rsi
call fcn.140003be4
mov al, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400227b8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
lea rax, str.unknown_folder
test ebx, ebx
cmovne rdx, rax
call fcn.14000129c
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140028a30
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140023de8
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
call fcn.14000128c
mov rdx, rax
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0x28]
call fcn.1400026bc
nop
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140019990
test al, al
je 0x140023e73
mov rdx, qword [rsp + 0x20]
jmp 0x140023e46
inc rdx
mov rcx, rbx
call fcn.140002908
movzx ecx, word [rax]
call fcn.1400197bc
test al, al
jne 0x140023e43
mov rcx, rbx
call fcn.140002908
mov rdx, rax
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rsp + 0x28]
call fcn.140002254
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140028a30
add rsp, 0x50
pop rbx
ret
Function at 0x140026978
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
mov dword [rbp - 0x19], ebx
lea rcx, [0x140057548]
call fcn.140006934
test al, al
jne 0x1400269f8
lea rdx, [0x14004d7c0]
lea rcx, [rbp - 0x11]
call fcn.1400020b4
nop
mov dword [rbp - 0x19], 1
lea rdx, [0x140057548]
lea rcx, [rbp + 0xf]
call fcn.14001318c
mov ebx, 3
lea r8d, [rbx + 3]
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140027674
test eax, eax
jne 0x1400269f8
mov dil, 1
jmp 0x1400269fb
xor dil, dil
test bl, 2
je 0x140026a0d
and ebx, 0xfffffffd
lea rcx, [rbp + 0xf]
call fcn.140002254
nop
test bl, 1
je 0x140026a1b
lea rcx, [rbp - 0x11]
call fcn.140002254
test dil, dil
je 0x140026a8e
lea rcx, [0x140057520]
call fcn.140014768
lea rdx, [0x140057548]
lea rcx, [rbp - 0x11]
call fcn.14000a0c8
nop
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.14000973c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x17], 3
mov eax, 0x14
mov word [rbp + 0x2f], ax
lea rcx, [rbp - 0x11]
call fcn.14000128c
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0xf]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
lea rcx, [rbp - 0x11]
call fcn.140002254
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140028a30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140026be8
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140057338], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140057315], 1
mov byte [0x140057316], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400026d8
lea rcx, [0x140057aa0]
call fcn.140006934
test al, al
je 0x140026c39
cmp byte [0x14005733f], 0
je 0x140026c42
cmp dword [0x140057340], 0
jne 0x140026c57
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x140026cd4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
cmp byte [0x140057570], 0
je 0x140026dcd
lea rcx, [0x140057578]
call fcn.140006934
test al, al
jne 0x140026dcd
lea rcx, [rsp + 0x60]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x60]
lea rcx, [0x140057578]
call fcn.140026c60
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140026dc3
mov rcx, rbx
call fcn.140001ae4
lea r8d, [rax*2 + 2]
call fcn.14000128c
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000128c
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140002254
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140028a30
add rsp, 0x90
pop rbx
ret

Function at 0x140028074
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400280ec
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400280ec
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400280ec
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400280e0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400280fe
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400280ce
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400280ee

Function at 0x140029a40
Capabilities:
Parse pe header

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

Function at 0x1400356ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400354a8
Function at 0x14003a728
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003a758
xor eax, eax
jmp 0x14003a81b
mov rbp, rbx
cmp word [rax], si
je 0x14003a77d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a764
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a760
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003a648
movsxd r14, eax
test eax, eax
jne 0x14003a7bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003a751
mov rcx, r14
call fcn.140036ed4
mov rdi, rax
test rax, rax
jne 0x14003a7d4
xor ecx, ecx
call fcn.140036e98
jmp 0x14003a7b0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003a648
test eax, eax
jne 0x14003a805
mov rcx, rdi
call fcn.140036e98
jmp 0x14003a80f
xor ecx, ecx
call fcn.140036e98
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140041120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140041148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140041148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001670
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movdqa xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x1403e7010]
mov rsi, rcx
mov edi, edx
lea rcx, [0x140034320]
mov byte [rsp + 0x40], 0xf9
movaps xmmword [rsp + 0x30], xmm0
call fcn.14000ff50
lea rcx, [0x140034300]
mov rbp, rax
call fcn.14000ff50
cmp byte [rbp], 0
mov rbx, rax
jne 0x1400016f1
movdqa xmm1, xmmword [rsp + 0x20]
mov byte [rax + 0x21], 1
xor r8d, r8d
mov rdx, rax
movdqa xmm2, xmmword [rsp + 0x30]
mov byte [rax + 0x20], 0xf9
lea rcx, [0x140022b80]
movups xmmword [rax], xmm1
movups xmmword [rax + 0x10], xmm2
mov byte [rbp], 1
call fcn.14000ec60
cmp byte [rbx + 0x21], 0
je 0x140001729
movabs r8, 0x2967333707df99f9
xor eax, eax
nop dword [rax + rax]
mov rcx, rax
mov rdx, r8
and ecx, 7
shl rcx, 3
shr rdx, cl
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001708
mov byte [rbx + 0x21], 0
mov ebp, edi
lea rcx, [rbp + 1]
call sub.msvcrt.dll_malloc
mov byte [rax + rbp], 0
mov r8, rax
xor eax, eax
test edi, edi
je 0x140001762
nop dword [rax]
mov rdx, rax
and edx, 0x1f
movzx edx, byte [rbx + rdx]
xor dl, byte [rsi + rax]
mov byte [r8 + rax], dl
add rax, 1
cmp rbp, rax
jne 0x140001748
mov rax, r8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140003020
Capabilities:
Check mutex on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r12d, r12d
mov r8, rcx
test rcx, rcx
je 0x140003060
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r13
cmp eax, 0xb7
sete r12b
cmp eax, 5
sete al
or r12d, eax
call fcn.140004a1d
mov eax, r12d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x1400040f0
Capabilities:
Get file size

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x60
mov rbx, rdx
mov edx, 1
call fcn.140003700
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400041a0
mov qword [rsp + 0x50], 0
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], 0
mov r13, rax
mov rcx, r12
mov qword [rsp + 0x38], 0
mov eax, dword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400049ff
mov rcx, r12
mov ebx, eax
call fcn.140004a1d
test ebx, ebx
js 0x1400041a0
mov rax, r13
add rsp, 0x60
pop rbx
pop r12
pop r13
ret
xor r13d, r13d
mov rax, r13
add rsp, 0x60
pop rbx
pop r12
pop r13
ret

Function at 0x140004470
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400044a4
cmp word [rcx], 0x5a4d
jne 0x1400044a4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400044a4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400044a4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400043b0
test eax, eax
jne 0x1400044c0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004420
test rax, rax
je 0x1400044b5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004a95
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140004590
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rbx
sub rsp, 0x4a8
xor eax, eax
mov r14, rcx
mov ecx, 0x41
mov r12d, r8d
mov r13, rdx
lea rdi, [rsp + 0x80]
lea r15, [rsp + 0x80]
mov rbx, r9
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x290]
mov ecx, 0x41
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x290]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r9, r15
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, r12d
mov rdx, r13
mov rcx, r15
call fcn.140004240
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x140004638
mov rax, 0xffffffffffffffff
add rsp, 0x4a8
pop rbx
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
mov rdx, r14
mov r9d, 0x800000c
mov r8, rbx
mov rcx, rdi
call fcn.140002e40
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x140004619
lea rax, [rsp + 0x50]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rcx, r12
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call fcn.140004a2c
test eax, eax
je 0x1400046c1
cmp eax, 0x40000003
jne 0x140004619
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140004619
mov r8, rdi
mov rcx, r13
call fcn.140004470
test al, al
je 0x140004619
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.140004a68
mov rax, qword [rsp + 0x60]
jmp 0x140004620
Function at 0x140004700
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
je 0x1400048d1
xor r10d, r10d
nop dword [rax]
mov rdx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov eax, dword [rdx + rcx + 0x88]
test eax, eax
je 0x14000476f
lea r10, [rdx + rax]
mov ecx, dword [r10 + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x14000476f
mov eax, dword [rcx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140004784
mov r8, qword [r8]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
jne 0x140004730
test r10, r10
je 0x1400048d1
mov eax, dword [r10 + 0x18]
mov edi, dword [r10 + 0x24]
xor esi, esi
lea r12, [0x1403e5d84]
mov ebp, dword [r10 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r10 + 0x20]
add rdi, rdx
add rbp, rdx
lea r11, [rdi + rcx*2]
add rax, rdx
lea rbx, [rax + rcx*4]
jmp 0x1400047cc
sub rbx, 4
lea rax, [r11 - 2]
cmp rdi, r11
je 0x140004850
mov r11, rax
mov eax, dword [rbx]
add rax, rdx
cmp word [rax], 0x775a
jne 0x1400047b8
mov ecx, esi
cmp byte [rax], 0
lea r13, [r12 + rcx*8]
je 0x1400048c6
cmp byte [rax + 1], 0
mov r8d, 0x4806f36a
je 0x14000481e
mov r9d, 1
mov ecx, 1
nop
mov r10d, r8d
movzx ecx, word [rax + rcx]
add r9d, 1
ror r10d, 8
add ecx, r10d
xor r8d, ecx
mov ecx, r9d
cmp byte [rax + rcx], 0
jne 0x140004800
movzx eax, word [r11]
mov dword [r13], r8d
add esi, 1
mov eax, dword [rbp + rax*4]
mov dword [r13 + 4], eax
cmp esi, 0x1f4
jne 0x1400047b8
mov dword [0x1403e5d80], 0x1f4
mov ebx, 0x1f3
jmp 0x14000485d
mov dword [0x1403e5d80], esi
sub esi, 1
mov ebx, esi
je 0x1400048b8
xor r11d, r11d
lea edi, [rbx - 1]
lea rsi, [0x1403e5d8c]
nop word [rax + rax]
cmp ebx, r11d
je 0x1400048af
mov edx, edi
lea rax, [0x1403e5d84]
sub edx, r11d
lea r8, [rsi + rdx*8]
nop dword [rax]
mov edx, dword [rax + 4]
mov ecx, dword [rax + 0xc]
cmp edx, ecx
jbe 0x1400048a6
mov r9d, dword [rax]
mov r10d, dword [rax + 8]
mov dword [rax + 4], ecx
mov dword [rax + 0xc], edx
mov dword [rax], r10d
mov dword [rax + 8], r9d
add rax, 8
cmp r8, rax
jne 0x140004888
add r11d, 1
cmp ebx, r11d
ja 0x140004870
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0x7f790337
jmp 0x14000481e
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140004990
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x1403e6d40]
call fcn.140004930
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x14000e370
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.140021a70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021a70
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000e3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403f40e4]
mov r12, rcx
test ebx, ebx
jle 0x14000e510
mov rax, qword [0x1403f40e8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000e42c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000e4b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000e410
mov rcx, r12
call fcn.14000f0e0
mov rsi, rax
test rax, rax
je 0x14000e532
mov rax, qword [0x1403f40e8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000f210
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403f40e8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e517
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e4ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e4c0
add dword [0x1403f40e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1403f40e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e370
nop dword [rax]
xor ebx, ebx
jmp 0x14000e437
mov rax, qword [0x1403f40e8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e370
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e370
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e9f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1403f4140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403f4120]
test rbx, rbx
je 0x14000ea44
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000ea3b
test r12, r12
je 0x14000ea3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ea20
lea rcx, [0x1403f4140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000f0e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403ea790]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000f100
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000f108
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f100
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000f155
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000f14c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000f100
add rax, 0x28
cmp rax, r9
jne 0x14000f138
xor eax, eax
ret

Function at 0x14000f160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403ea790]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000f180
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000f188
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000f180
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000f210
Capabilities:
Parse pe header

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

Function at 0x14000f3e0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f400
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14000f448
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000f3f4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000f435