joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800036b0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x6b8
mov rax, qword [0x18001a070]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
lea rdx, [rsp + 0x280]
lea rcx, [0x18001b4f8]
mov r8d, 0x104
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rsp + 0x280]
lea r8, str.CLSID_s
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.180001240
test eax, eax
js 0x1800038fa
mov qword [rsp + 0x6c0], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x6b0], rdi
xor edi, edi
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
mov ebx, 0x80004005
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800038e8
mov rcx, qword [rsp + 0x50]
lea rax, [0x180016ae8]
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x1800038e8
lea r9, [rsp + 0x280]
lea r8, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.180001240
test eax, eax
js 0x1800038ea
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jle 0x18000380e
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800038e8
mov rcx, qword [0x18001c830]
lea rdx, [rsp + 0x490]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18000387b
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
add eax, eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x490]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x18000387b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800038dd
mov rax, qword [str.Apartment]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ThreadingModel
mov qword [rsp + 0x58], rax
mov rax, qword [0x180016d98]
mov r9d, 1
mov qword [rsp + 0x60], rax
mov eax, dword [0x180016da0]
xor r8d, r8d
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x1800038dd
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x6c0]
mov rdi, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.180003ab0
add rsp, 0x6b8
ret
Function at 0x180003a00
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18001a070]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x18001b4f8]
mov r8d, 0x104
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rsp + 0x20]
lea r8, str.CLSID_s
lea rcx, [rsp + 0x230]
mov edx, 0x104
call fcn.180001240
mov ebx, eax
test eax, eax
js 0x180003a76
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, 0x80004005
test eax, eax
cmovne ebx, ecx
xor ecx, ecx
mov eax, 0x80040201
test ebx, ebx
cmovns eax, ecx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180003ab0
add rsp, 0x450
pop rbx
ret
Function at 0x18000eb20
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0x38
sub edx, eax
mov ebp, 0xa87c4677
xor eax, 0x940a619a
invalid
outsd dx, dword [rsi]
or ch, byte [rax + rdx*8 + 0x66fa04db]
xchg esi, eax
cli
xchg si, ax
push 0xfffffffff990096e
movsb byte [rdi], byte [rsi]
je 0x18000eaf6
xor al, 0x51
enter 0xfffffffffffffd66, 0x3d
test dword [rsp + rcx - 0x19543974], edx
mov esi, 0x9ff0956b
loopne 0x18000eb26
mov eax, 0x2f216914
mov ch, 0xcf
out dx, al
scasb al, byte [rdi]
push 0x1e
mov ecx, 0x64b73db6
movabs dword [0x4f631c233ce12c01], eax
invalid

Function at 0x1806c0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806c01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1806c0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806c006f
add dl, dl
jne 0x1806c0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806c00f6
xor eax, eax
add dl, dl
jne 0x1806c00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806c01ad
add dl, dl
jne 0x1806c00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806c00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806c00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806c00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806c00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1806c007e
mov eax, 1
add dl, dl
jne 0x1806c0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806c0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806c00fb
sub eax, ebx
mov ebx, 1
jne 0x1806c014c
mov ecx, 1
add dl, dl
jne 0x1806c012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806c013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806c0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806c007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1806c0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806c0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806c015d
cmp eax, 0x7d00
jae 0x1806c019b
cmp eax, 0x500
jb 0x1806c0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806c007e
cmp eax, 0x7f
ja 0x1806c019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806c007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806c01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1806c007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006b30
cmp r11, r10
ja 0x140006ba7
cmp r10, rdx
ja 0x140006bb9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140006b32
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006b10
jmp 0x140006b94
ja 0x140006b3a
mov r11, r10
cmp rax, r8
jne 0x140006ade
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006b70
mov rdi, r8
sub ecx, edx
jns 0x140006b8b
jmp 0x140006b96
cmp r8, rsi
je 0x140006bc8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006b96
xor al, 1
cmp rdi, rsi
jne 0x140006b50
jmp 0x140006b96
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140029d40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140029b90
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140029e40
int3
Function at 0x1400079f3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x140007a08
xor esi, esi
jmp 0x140007bb5
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rax, [rcx + 8]
cmp qword [rcx], 0
je 0x140007a52
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
mov r8, rsi
call fcn.140007bd9
cmp qword [rbx], 0
jne 0x140007b83
jmp 0x140007b58
mov cl, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov r9b, byte [rdi + 0x18]
test cl, cl
jne 0x140007b58
mov r10d, r9d
xor r10b, 1
mov byte [rdi + 0x18], r10b
test r8, r8
je 0x140007a90
cmp r8, rdx
jae 0x140007a8a
cmp byte [rsi + r8], 0xbf
jg 0x140007a90
jmp 0x140007bc1
jne 0x140007bc1
cmp r8, rdx
je 0x140007b4f
mov bl, byte [rsi + r8]
movzx r10d, bl
test r10b, r10b
jns 0x140007b04
mov r11d, r10d
and r11d, 0x1f
movzx ebp, byte [rsi + r8 + 1]
and ebp, 0x3f
cmp r10b, 0xdf
jbe 0x140007af1
movzx r10d, byte [rsi + r8 + 2]
shl ebp, 6
and r10d, 0x3f
or r10d, ebp
cmp bl, 0xf0
jb 0x140007afd
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl r10d, 6
and ebx, 0x3f
or ebx, r10d
or ebx, r11d
mov r10d, ebx
jmp 0x140007b04
shl r11d, 6
or r11d, ebp
mov r10d, r11d
jmp 0x140007b04
shl r11d, 0xc
or r10d, r11d
test r9b, r9b
jne 0x140007b76
cmp r10d, 0x110000
je 0x140007b54
mov r9d, 1
cmp r10d, 0x80
jb 0x140007b41
mov r9d, 2
cmp r10d, 0x800
jb 0x140007b41
cmp r10d, 0x10000
mov r9d, 4
sbb r9, 0
add r8, r9
mov qword [rax], r8
mov r9b, 1
jmp 0x140007a61
test r9b, r9b
jne 0x140007b79
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x140007a01
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140007b9d
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140007bae
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x140007bb5
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140007a01
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rax, str._rustc_129f3b9964af4d4a709d1383930ade12dfe7c081librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.140029f80
int3
Function at 0x14000e320
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000e345
cmp rax, rcx
je 0x14000e34b
cmp rdx, 4
jae 0x14000e352
xor eax, eax
xor r8d, r8d
jmp 0x14000e3f0
pop rbp
jmp fcn.140003dd0
xor eax, eax
jmp 0x14000e407
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002c590]
movdqa xmm3, xmmword [0x14002c5a0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000e380
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000e407
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000e3f0
pop rbp
ret
Function at 0x140015be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
cmp r9b, 1
ja 0x140015c66
test al, al
jne 0x140015c3f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140015c3f
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x14001ba84
Capabilities:
Parse pe header

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

Function at 0x14001f148
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 0x14001f1b7
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f1b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f1b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f1b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f1b7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f1b7
cmp dword [rcx + 0xf8], 0
je 0x14001f1b7
mov ecx, ebx
call fcn.14001f268
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.14001f044
nop
cmp dword [rbp + 0x20], 0
je 0x14001f205
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001f210
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001f148

Function at 0x14001f34c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f148
Function at 0x14002240c
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 0x14002243c
xor eax, eax
jmp 0x1400224ff
mov rbp, rbx
cmp word [rax], si
je 0x140022461
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022448
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022444
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.14002232c
movsxd r14, eax
test eax, eax
jne 0x14002249f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140022435
mov rcx, r14
call fcn.1400232e8
mov rdi, rax
test rax, rax
jne 0x1400224b8
xor ecx, ecx
call fcn.14002098c
jmp 0x140022494
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.14002232c
test eax, eax
jne 0x1400224e9
mov rcx, rdi
call fcn.14002098c
jmp 0x1400224f3
xor ecx, ecx
call fcn.14002098c
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 0x1400259f0
Capabilities:
Set environment variable

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 - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400213fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025a7a
cmp byte [rbp - 0x21], r15b
je 0x140025a75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025ab0
call fcn.140023af8
test eax, eax
jne 0x140025a9c
cmp byte [rbp - 0x21], r15b
je 0x140025a94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025ab0
cmp byte [rbp - 0x21], r15b
je 0x140025aad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400209dc
test eax, eax
jne 0x140025b50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400213fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025aef
cmp byte [rbp - 0x21], r15b
je 0x140025b24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140025b24
call fcn.140023af8
test eax, eax
jne 0x140025b10
cmp byte [rbp - 0x21], r15b
je 0x140025b09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140025b24
cmp byte [rbp - 0x21], r15b
je 0x140025b21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400209dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140025b50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140025b53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025b61
mov rcx, rdi
call fcn.14002098c
cmp byte [rbp + 0x3f], r15b
je 0x140025b70
mov rcx, qword [rbp + 0x27]
call fcn.14002098c
lea r11, [rsp + 0xa0]
mov eax, ebx
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
Function at 0x140028a50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028a78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028a78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4cb450
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 0x2fc4cbe52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbeea
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbece
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 0x2fc4cbec2
cmp qword [rbp - 0x10], 0
je 0x2fc4cbec2
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 0x2fc4cbe88
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbeeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cbff0
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 0x2fc4cc018
mov eax, 0
jmp 0x2fc4cc066
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 0x2fc4cc041
mov eax, 0
jmp 0x2fc4cc066
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 0x2fc4cc061
mov eax, 0
jmp 0x2fc4cc066
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc06c
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 0x2fc4cc0ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cc0e1
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 0x2fc4cc0e1
mov rax, qword [rbp - 8]
jmp 0x2fc4cc0ff
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 0x2fc4cc0b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0x741d58e0e6bc16fe
movabs rdx, 0x1000
movabs r8, 0x3d90
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9
Function at 0x2fc4dad50
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 0x2fc4db752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4db7ea
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4db7ce
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 0x2fc4db7c2
cmp qword [rbp - 0x10], 0
je 0x2fc4db7c2
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 0x2fc4db788
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db7eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db8f0
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 0x2fc4db918
mov eax, 0
jmp 0x2fc4db966
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 0x2fc4db941
mov eax, 0
jmp 0x2fc4db966
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 0x2fc4db961
mov eax, 0
jmp 0x2fc4db966
mov eax, 1
add rsp, 0x20
pop rbp
ret