joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cb7e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.1800f4a50
sub rsp, rax
mov rbx, r8
call fcn.1800cb1f0
test eax, eax
js 0x1800cba1e
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1800cb869
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x1800cb820
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1800cba1c
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x180000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
mov r9d, dword [rdi + rdx*4 + 0x126b10]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x127310]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x127710]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
xor r9d, dword [rdi + rcx*4 + 0x126f10]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
mov r8d, dword [rdi + rdx*4 + 0x126b10]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x127310]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x126f10]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x127710]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
mov r8d, dword [rdi + rdx*4 + 0x126b10]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x127310]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x126f10]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x127710]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x125f10]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
mov r8d, dword [rdi + rdx*4 + 0x127310]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x126f10]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x125f10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x126b10]
movzx ecx, byte [rdi + rax*4 + 0x125f10]
xor r8d, dword [rdi + rcx*4 + 0x127710]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1800cb890
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800ccc10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.1800f4a50
sub rsp, rax
mov rax, qword [0x1801580d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r15, qword [rbp + 0x68]
mov rsi, rcx
movzx r10d, byte [rax]
mov ebx, dword [r15]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
mov r14, rdx
movzx edx, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov r12d, r8d
lea r8, [rdi + 5]
or r10d, eax
movzx eax, byte [rdi + 2]
xor r13d, r13d
shl eax, 0x18
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r15
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0x10], r10b
or edx, eax
movzx eax, byte [r8]
or ecx, eax
mov eax, r10d
shr eax, 8
shl ecx, 0x10
mov byte [rbp - 0xf], al
or edx, ecx
mov eax, r10d
shr eax, 0x10
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
test r12d, r12d
je 0x1800ccdcc
mov r15, qword [rbp - 0x28]
sub r14, rsi
movzx r8d, dl
movzx r9d, r10b
dec r12d
test ebx, ebx
jne 0x1800ccd68
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.1800c7f90
mov r10d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
mov eax, r10d
shr eax, 8
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
inc r13d
mov byte [rbp - 9], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r14 + rsi - 1], cl
and ebx, 7
test r12d, r12d
jne 0x1800ccd02
mov r15, qword [rbp - 0x20]
test r13d, r13d
je 0x1800ccdcc
mov rax, qword [rbp - 0x18]
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], dl
mov dword [r15], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18006b190
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800d9b10
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
test rcx, rcx
je 0x1800d9b68
movzx eax, byte [rcx]
test al, al
je 0x1800d9b68
mov r10d, 0x100
nop dword [rax + rax]
movsx edx, al
inc r9
or edx, r10d
add r10d, 0x100
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0xf
movzx ecx, al
movzx eax, byte [r9]
imul edx, edx
rol r8d, cl
xor r8d, edx
test al, al
jne 0x1800d9b30
mov eax, r8d
shr eax, 0x10
xor eax, r8d
ret
xor eax, eax
ret

Function at 0x1800f4850
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x180174aa4]
test ecx, ecx
jne 0x1800f4a10
mov eax, dword [0x180174aa0]
cmp eax, 3
ja 0x1800f4a10
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x180174aa0], eax
call fcn.1800a3710
test eax, eax
je 0x1800f4896
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1800f48a3
lea rcx, [0x18012f720]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x1800f48b5
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.WTSOpenServerA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSOpenServerW
mov rcx, rbx
mov qword [0x180174a30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSCloseServer
mov rcx, rbx
mov qword [0x180174a38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSFreeMemory
mov rcx, rbx
mov qword [0x180174a40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsA
mov rcx, rbx
mov qword [0x180174a48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rbx
mov qword [0x180174a50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSTerminateProcess
mov rcx, rbx
mov qword [0x180174a58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesA
mov rcx, rbx
mov qword [0x180174a60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesW
mov rcx, rbx
mov qword [0x180174a68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageA
mov rcx, rbx
mov qword [0x180174a70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageW
mov rcx, rbx
mov qword [0x180174a78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rbx
mov qword [0x180174a80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rbx
mov qword [0x180174a88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSWaitSystemEvent
mov rcx, rbx
mov qword [0x180174a90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x180174a98], rax
mov dword [0x180174aa4], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140002004
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
mov esi, ebx
test edx, edx
jle 0x14000204b
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, esi
inc esi
and eax, 7
mov al, byte [rax + r15]
xor byte [rdi], al
inc rdi
cmp esi, r14d
jl 0x140002030
movsxd rax, dword [0x14001fa80]
test eax, eax
jle 0x14000207e
cmp dword [0x14001fa84], ebx
jle 0x14000207e
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rcx + rbp], rax
movsxd rcx, dword [0x14001fa84]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rcx + rbp], rax
movups xmm0, xmmword [0x14001c940]
mov eax, dword [0x14001c978]
lea r8, [rsp + 0x20]
movups xmm1, xmmword [0x14001c950]
mov dword [rsp + 0x58], eax
mov al, byte [0x14001c97c]
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x5c], al
movups xmm0, xmmword [0x14001c960]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x14001c970]
movsd qword [rsp + 0x50], xmm0
mov eax, 0x51eb851f
mul ebx
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
mov al, bl
inc ebx
sub al, cl
add al, 0x37
xor byte [r8], al
inc r8
cmp ebx, 0x3d
jl 0x1400020c9
lea r8, [rsp + 0x20]
mov edx, r14d
mov rcx, rbp
call fcn.140001da8
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000a634
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 0x14000a6a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a6a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a6a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a6a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a6a3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a6a3
cmp dword [rcx + 0xf8], 0
je 0x14000a6a3
mov ecx, ebx
call fcn.14000a754
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.14000a530
nop
cmp dword [rbp + 0x20], 0
je 0x14000a6f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a6fc
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14000a634

Function at 0x14000a838
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a634

Function at 0x14000d7c4
Capabilities:
Get file size

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

Function at 0x140010ecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010f16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010f16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010f16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010f16
cmp dword [rcx + 0x84], 0xe
jbe 0x140010f16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010f18
xor al, al
add rsp, 0x28
ret
Function at 0x140013080
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 0x1400130b0
xor eax, eax
jmp 0x140013173
mov rbp, rbx
cmp word [rax], si
je 0x1400130d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400130bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400130b8
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.14000d548
movsxd r14, eax
test eax, eax
jne 0x140013113
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400130a9
mov rcx, r14
call fcn.1400071fc
mov rdi, rax
test rax, rax
jne 0x14001312c
xor ecx, ecx
call fcn.14000652c
jmp 0x140013108
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.14000d548
test eax, eax
jne 0x14001315d
mov rcx, rdi
call fcn.14000652c
jmp 0x140013167
xor ecx, ecx
call fcn.14000652c
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 0x1400140fc
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.14000b134
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014186
cmp byte [rbp - 0x21], r15b
je 0x140014181
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400141bc
call fcn.14000677c
test eax, eax
jne 0x1400141a8
cmp byte [rbp - 0x21], r15b
je 0x1400141a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400141bc
cmp byte [rbp - 0x21], r15b
je 0x1400141b9
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.140012390
test eax, eax
jne 0x14001425c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b134
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400141fb
cmp byte [rbp - 0x21], r15b
je 0x140014230
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014230
call fcn.14000677c
test eax, eax
jne 0x14001421c
cmp byte [rbp - 0x21], r15b
je 0x140014215
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014230
cmp byte [rbp - 0x21], r15b
je 0x14001422d
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.140012390
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001425c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001425f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001426d
mov rcx, rdi
call fcn.14000652c
cmp byte [rbp + 0x3f], r15b
je 0x14001427c
mov rcx, qword [rbp + 0x27]
call fcn.14000652c
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 0x2fc4d9740
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.2fc4da820
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4da1da
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4da1be
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 0x2fc4da1b2
cmp qword [rbp - 0x10], 0
je 0x2fc4da1b2
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 0x2fc4da178
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da1db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da2e0
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 0x2fc4da308
mov eax, 0
jmp 0x2fc4da356
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 0x2fc4da331
mov eax, 0
jmp 0x2fc4da356
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 0x2fc4da351
mov eax, 0
jmp 0x2fc4da356
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da35c
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 0x2fc4da3da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da3d1
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 0x2fc4da3d1
mov rax, qword [rbp - 8]
jmp 0x2fc4da3ef
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 0x2fc4da3a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cdec0
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.2fc4cefa0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce8c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4ce95a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce93e
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 0x2fc4ce932
cmp qword [rbp - 0x10], 0
je 0x2fc4ce932
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 0x2fc4ce8f8
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce95b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cea60
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 0x2fc4cea88
mov eax, 0
jmp 0x2fc4cead6
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 0x2fc4ceab1
mov eax, 0
jmp 0x2fc4cead6
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 0x2fc4cead1
mov eax, 0
jmp 0x2fc4cead6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ceadc
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 0x2fc4ceb5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ceb51
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 0x2fc4ceb51
mov rax, qword [rbp - 8]
jmp 0x2fc4ceb6f
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 0x2fc4ceb24
mov eax, 0
add rsp, 0x20
pop rbp
ret