joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020c5c
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rdx]
mov rsi, r8
and qword [rbp - 0x38], 0
mov r8, rdx
and qword [rbp - 0x40], 0
lea rdx, [rbp - 0x38]
mov rdi, rcx
mov rcx, r8
mov rax, qword [rax + 0x90]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020d21
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140020d2e
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [0x140044ab0]
mov rax, qword [rax]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020d10
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020cff
mov rcx, qword [rbp - 0x40]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140044528]
mov ebx, eax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
test ebx, ebx
js 0x140020d2e
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x140020d99
cmp qword [rdi + 0x10], 0
je 0x140020d99
cmp qword [rdi + 0x48], 0
jne 0x140020d99
mov r8, qword [rdi + 0x40]
test r8, r8
je 0x140020d99
lea rdx, [rbp - 0x30]
call fcn.140020f74
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400027dc
lea rcx, [rbp - 0x30]
call fcn.140002254
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400292d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021fcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14004e720]
mov rcx, qword [0x140059300]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140022111
mov rcx, qword [0x140059300]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140022111
mov rcx, qword [0x140059300]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022111
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140022111
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14002210a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140022101
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.14002b4b0
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1400220f8
mov rcx, qword [rsp + 0x50]
call fcn.14002274c
mov rcx, qword [rsp + 0x50]
mov rdi, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140044528]
test rdi, rdi
je 0x1400220f8
mov rcx, rdi
call fcn.1400225d4
test eax, eax
jne 0x1400220e4
lea rcx, [rsp + 0x48]
call fcn.140022594
lea r8, [rsp + 0x58]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call fcn.1400225a0
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140044528]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
jmp 0x140022113
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140022488
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.14002bb60
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x1e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400292d0
add rsp, 0x78
ret

Function at 0x140022934
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x108
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r9d, 0x64
lea r8, [rsp + 0x20]
mov ecx, 0x400
lea edx, [r9 - 0x55]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400292d0
add rsp, 0x108
ret
Function at 0x140022dc8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp - 9]
call fcn.140022cfc
test al, al
je 0x140022eaf
and qword [rbp - 0x49], 0
lea rax, [rbp - 9]
and dword [rbp - 0x4d], 0
lea r9, [rsp + 0x20]
and qword [rsp + 0x20], 0
lea rdx, [rbp - 0x69]
xor r8d, r8d
mov dword [rbp - 0x69], 0x11060000
xorps xmm0, xmm0
mov dword [rbp - 0x65], 1
movdqu xmmword [rbp - 0x5d], xmm0
mov dword [rbp - 0x61], 3
lea ecx, [r8 + 1]
mov qword [rbp - 0x41], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140022eaf
lea edx, [rax + 1]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140022e9f
mov r8, qword [rsp + 0x20]
lea rcx, [rbp - 0x39]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140022e9f
and dword [rbp - 0x71], 0
lea rax, [rbp - 0x39]
mov rcx, rbx
mov qword [rbp - 0x79], rax
mov dword [rsp + 0x28], 0x18
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140022eaf
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400292d0
mov rbx, qword [rsp + 0x118]
add rsp, 0x100
pop rbp
ret
Function at 0x140022ecc
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 0x140023010
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 0x140023002
mov edx, dword [rbp - 0x2c]
shr rdx, 1
mov rcx, qword [rbp + 0x30]
call fcn.140001ae4
cmp rax, rdx
jbe 0x140022f6f
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 0x140022ff9
mov word [rbp - 0x30], r15w
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x18]
call fcn.140027814
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 0x14002301c
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 0x140023038
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140057038]
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.1400292d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140024668
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140057038]
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.140019c30
test al, al
je 0x1400246f3
mov rdx, qword [rsp + 0x20]
jmp 0x1400246c6
inc rdx
mov rcx, rbx
call fcn.140002908
movzx ecx, word [rax]
call fcn.140019a5c
test al, al
jne 0x1400246c3
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.1400292d0
add rsp, 0x50
pop rbx
ret
Function at 0x14002721c
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 [0x140057038]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
mov dword [rbp - 0x19], ebx
lea rcx, [0x140059548]
call fcn.14000696c
test al, al
jne 0x14002729c
lea rdx, [0x14004e800]
lea rcx, [rbp - 0x11]
call fcn.1400020b4
nop
mov dword [rbp - 0x19], 1
lea rdx, [0x140059548]
lea rcx, [rbp + 0xf]
call fcn.140013410
mov ebx, 3
lea r8d, [rbx + 3]
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140027f18
test eax, eax
jne 0x14002729c
mov dil, 1
jmp 0x14002729f
xor dil, dil
test bl, 2
je 0x1400272b1
and ebx, 0xfffffffd
lea rcx, [rbp + 0xf]
call fcn.140002254
nop
test bl, 1
je 0x1400272bf
lea rcx, [rbp - 0x11]
call fcn.140002254
test dil, dil
je 0x140027332
lea rcx, [0x140059520]
call fcn.140014a50
lea rdx, [0x140059548]
lea rcx, [rbp - 0x11]
call fcn.14000a120
nop
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.140009794
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.1400292d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14002748c
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140059338], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140059315], 1
mov byte [0x140059316], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400026d8
lea rcx, [0x140059aa0]
call fcn.14000696c
test al, al
je 0x1400274dd
cmp byte [0x14005933f], 0
je 0x1400274e6
cmp dword [0x140059340], 0
jne 0x1400274fb
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 0x140027578
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
cmp byte [0x140059570], 0
je 0x140027671
lea rcx, [0x140059578]
call fcn.14000696c
test al, al
jne 0x140027671
lea rcx, [rsp + 0x60]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x60]
lea rcx, [0x140059578]
call fcn.140027504
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 0x140027667
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.1400292d0
add rsp, 0x90
pop rbx
ret

Function at 0x140028918
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 0x140028990
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140028990
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 0x140028990
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140028984
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400289a2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140028972
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 0x140028992

Function at 0x14002a2e0
Capabilities:
Parse pe header

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

Function at 0x140035f20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140035d1c
Function at 0x14003afa8
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 0x14003afd8
xor eax, eax
jmp 0x14003b09b
mov rbp, rbx
cmp word [rax], si
je 0x14003affd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003afe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003afe0
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.14003aec8
movsxd r14, eax
test eax, eax
jne 0x14003b03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003afd1
mov rcx, r14
call fcn.140037754
mov rdi, rax
test rax, rax
jne 0x14003b054
xor ecx, ecx
call fcn.140037718
jmp 0x14003b030
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.14003aec8
test eax, eax
jne 0x14003b085
mov rcx, rdi
call fcn.140037718
jmp 0x14003b08f
xor ecx, ecx
call fcn.140037718
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 0x1400419a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400419c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400419c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d3cf0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d46f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d478a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d476e
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 0x2fc4d4762
cmp qword [rbp - 0x10], 0
je 0x2fc4d4762
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 0x2fc4d4728
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d478b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4890
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 0x2fc4d48b8
mov eax, 0
jmp 0x2fc4d4906
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 0x2fc4d48e1
mov eax, 0
jmp 0x2fc4d4906
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 0x2fc4d4901
mov eax, 0
jmp 0x2fc4d4906
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d490c
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 0x2fc4d498a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4981
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 0x2fc4d4981
mov rax, qword [rbp - 8]
jmp 0x2fc4d499f
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 0x2fc4d4954
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400290fc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c6f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c6f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002924c
cmp rax, 0xffffffffffffffff
je 0x14002924c
xor edi, edi
test rbp, rbp
jle 0x1400291f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f008
mov rbx, rax
test rax, rax
jne 0x140029184
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400291ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a028
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d3d0
cmp eax, 0xffffffff
je 0x1400291cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029194
mov edx, r15d
mov ecx, r14d
call fcn.14001a028
jmp 0x1400291ed
cmp byte [rsi + 0x38], dil
je 0x1400291e4
cmp dword [rsi + 0x34], 5
jne 0x1400291e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400291ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001adbc
jmp 0x140029260
jns 0x140029260
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c6f4
cmp rax, 0xffffffffffffffff
jne 0x140029218
cmp byte [rsi + 0x30], dil
je 0x140029260
mov edi, dword [rsi + 0x2c]
jmp 0x140029260
mov ecx, r14d
call fcn.1400184e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029260
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029259
mov eax, dword [rsi + 0x2c]
jmp 0x14002925e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c6f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x36edf18
Capabilities:
Encode data using xor

Disassembly:
jmp 0x36edf22
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x36edf4b
pop rbp
sub rbp, 0x33
sub rbp, 0x32edf18
sub rsp, 0x20
jmp 0x36edf6a
mov rax, 0x32edf18
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffbe6287ba
xor byte [rax], dl
inc rax
dec rcx
jne 0x36edf89
jmp 0x36edfa0
xor edx, dword [rbx + 0x31]
xor eax, dword [rsi - 0xd454546]
cmp edi, dword [rbx - 0x4e]
mov ebx, 0xbbf2baba
push rbx
bnd jge 0x36ee030
mov ecx, 0xf2bababa
jge 0x36ee035
xchg edx, eax
mov edx, 0x4df2baba
pop rax
mov ebx, 0xb63b317b
mov edx, 0xbbf2baba
push rdx
invalid
mov edx, 0x3753baba
mov eax, 0x52e8baba
invalid