joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e7a0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, r8
mov rbx, rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor r8d, r8d
lea rdx, [0x140032910]
lea rcx, [rsp + 0x50]
call fcn.140003130
nop
lea rcx, [rbp - 0x50]
call fcn.140003b30
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e956
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e891
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x14000e873
mov rax, qword [rbx]
jmp 0x14000e876
mov rax, rbx
mov word [rax], r13w
xor r8d, r8d
lea rdx, [0x140032910]
mov rcx, rbx
call fcn.140003130
jmp 0x14000e983
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
lea rcx, [r14 + 1]
call fcn.140013834
mov rsi, rax
test rax, rax
je 0x14000e85b
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.140017bf0
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140005090
mov rcx, rsi
call fcn.1400131e4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.1400046a0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000bf50
nop
lea rcx, [rbp - 0x70]
call fcn.140003ba0
cmp qword [rbp - 0x80], 0
jbe 0x14000e93a
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002ff0
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14000e956
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140003310
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x14000e96e
mov rax, qword [rbx]
jmp 0x14000e971
mov rax, rbx
mov word [rax], r13w
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002b10
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000e9a0
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140003310
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400131c0
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e9d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, r8
lea rax, [rsp + 0x38]
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ea3c
xor r9d, r9d
lea rdx, [0x140035f68]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000eb57
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.140017bf0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140017bf0
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14000eb4d
nop
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000eb28
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x32
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.14001d3b8
mov rcx, rsi
call fcn.14001d3b8
lea rax, [rsp + 0x50]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000eb24
add rax, 2
test ecx, ecx
jne 0x14000eb10
test edx, edx
je 0x14000eb78
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
inc ebx
mov r9d, 0x104
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14000ea90
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400131c0
mov rsi, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
ret
lea rax, [rsp + 0xc0]
sub rdi, rax
lea rcx, [rsp + 0xc0]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000eb90
mov eax, 1
jmp 0x14000eb4f
Function at 0x14000ebb0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov rbx, r9
mov rcx, rsi
xor edx, edx
mov r14, r8
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rdi, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140013834
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbp, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x30]
mov rcx, rbp
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000ec35
xor eax, eax
jmp 0x14000ec9d
mov rax, qword [rsp + 0x38]
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.140007fe0
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000ec31
mov rcx, qword [rsp + 0x40]
sub rbx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rbx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000ec80
mov rcx, rbp
call fcn.1400131e4
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400131c0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000ecc0
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor ebx, ebx
call fcn.140017bf0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000edd7
lea rdx, str.kernel32.DLL
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000edd7
xor edx, edx
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14000edd3
mov ecx, edi
mov qword [rsp + 0x270], rsi
call fcn.140013834
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000eda0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140032be0]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000eda0
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rsi
call fcn.1400131e4
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400131c0
add rsp, 0x260
pop rbx
ret
mov eax, ebx
jmp 0x14000edb2
mov eax, ebx
jmp 0x14000edba
Function at 0x1400114d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x4f0
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, rdx
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov rcx, 0xffffffff80000002
lea r9d, [rsi + 9]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140011524
xor eax, eax
jmp 0x1400116b1
xor edx, edx
mov qword [rsp + 0x500], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x508], rdi
lea r8d, [rdx + 0x64]
call fcn.140017bf0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140017bf0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
mov ebx, esi
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140011694
cmp ebx, 0x2710
jge 0x140011694
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140011668
xor edx, edx
mov dword [rsp + 0x38], 0x32
mov r8d, 0x208
lea rcx, [rsp + 0x2d0]
call fcn.140017bf0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_Text
lea rax, [rsp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.14001d3b8
mov r8, rbp
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140011664
add rax, 2
test ecx, ecx
jne 0x140011650
test edx, edx
je 0x14001168f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
inc edi
mov r9d, 0x104
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140011580
jmp 0x140011694
mov esi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x508]
mov eax, esi
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400131c0
mov rbp, qword [rsp + 0x510]
add rsp, 0x4f0
pop rsi
ret
Function at 0x1400116e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rbx, r8
lea rax, [rsp + 0x38]
mov r14, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001193d
mov qword [rsp + 0x710], rsi
lea r8d, [rax + 0x64]
xor edx, edx
mov qword [rsp + 0x718], rdi
lea rcx, [rsp + 0x50]
call fcn.140017bf0
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.140017bf0
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x40]
xor edi, edi
mov r9d, 0x104
xor edx, edx
mov esi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140011922
cmp edi, 0x2710
jge 0x140011922
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x40]
inc edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140011873
xor edx, edx
mov dword [rsp + 0x40], 0x32
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.140017bf0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x44], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_Text
lea rax, [rbp + 0x3e0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
call fcn.14001d3b8
mov r8, r14
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140011864
add rax, 2
test ecx, ecx
jne 0x140011850
test edx, edx
je 0x140011899
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x40]
inc esi
mov r9d, 0x104
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140011794
jmp 0x140011922
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.140017bf0
lea rcx, [rbp + 0x1d0]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400118c0
lea rcx, [rbp + 0x1d0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400118e0
mov rcx, qword [rsp + 0x30]
lea rdx, str.Layout_Text
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x718]
mov rsi, qword [rsp + 0x710]
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014584
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400353f8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x1400145a9
xor eax, eax
jmp 0x140014655
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.IsWow64Process
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64DisableWow64FsRedirection
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1400396d8]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400145a2
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400149a8
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rcx
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
test rcx, rcx
jne 0x1400149f6
xor eax, eax
jmp 0x140014b6a
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rcx], bx
jne 0x140014a13
mov rax, rbx
jmp 0x140014a18
call fcn.140022584
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140003130
nop
lea rcx, [rsp + 0x50]
call fcn.140014fbc
mov r14d, 0x238
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140017bf0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140014b59
mov dword [rbp - 0x70], r14d
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140014b4f
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp - 0x44], bx
jne 0x140014a94
mov rax, rbx
jmp 0x140014a9d
lea rcx, [rbp - 0x44]
call fcn.140022584
mov r8, rax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.140003130
nop
lea rcx, [rsp + 0x30]
call fcn.140014fbc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400146d4
test al, al
jne 0x140014af2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140014d7c
or edi, 1
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400146d4
test al, al
mov r14b, bl
je 0x140014af5
mov r14b, 1
test dil, 1
je 0x140014b0d
and edi, 0xfffffffe
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.1400083e0
test r14b, r14b
jne 0x140014b32
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.1400083e0
lea rdx, [rbp - 0x70]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x140014a6e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp - 0x68]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.1400083e0
jmp 0x140014b59
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400083e0
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140021338
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002110c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002110c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002110c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002110c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002110c
cmp dword [rcx + 0x84], 0xe
jbe 0x14002110c
cmp dword [rcx + 0xf8], esi
je 0x14002110c
mov ecx, r14d
call fcn.140021254
mov ecx, 2
call fcn.14001e2a8
nop
cmp byte [0x14004cf30], 0
jne 0x1400211d6
mov r15d, 1
mov eax, r15d
xchg dword [0x14004cf20], eax
test ebx, ebx
jne 0x14002117f
mov rdi, qword [0x14004a1a0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14004cf28]
cmp rcx, rax
je 0x140021176
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140014260]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14004d170]
jmp 0x14002118b
cmp ebx, r15d
jne 0x140021191
lea rcx, [0x14004d188]
call fcn.140021f30
nop
test ebx, ebx
jne 0x1400211a8
lea rdx, [0x140032658]
lea rcx, [0x140032630]
call fcn.140022274
lea rdx, [0x140032668]
lea rcx, [0x140032660]
call fcn.140022274
movzx eax, byte [0x14004cf30]
test esi, esi
cmove eax, r15d
mov byte [0x14004cf30], al
jmp 0x1400211d6
mov ecx, 2
call fcn.14001e2fc
test esi, esi
jne 0x1400211ed
mov ecx, r14d
call fcn.140021208
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002109c
Function at 0x2fc4d4c30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5d10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5632
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d56ca
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d56ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d56a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d56a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5668
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d56cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d57d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d57f8
mov eax, 0
jmp 0x2fc4d5846
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d5821
mov eax, 0
jmp 0x2fc4d5846
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d5841
mov eax, 0
jmp 0x2fc4d5846
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d584c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d58ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d58c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d58c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d58df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d5894
mov eax, 0
add rsp, 0x20
pop rbp
ret