joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d88a1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8ab5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d88a378
mov rax, qword [0x6d8ab5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d88a23c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d88a2c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d88a220
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d88a3ad
mov rax, qword [0x6d8ab5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8ab5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d88a390
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d88a2be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d88a320
add dword [0x6d8ab5e4], 1
cmp edi, 8
jae 0x6d88a2f3
test dil, 4
jne 0x6d88a364
test edi, edi
je 0x6d88a2e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d88a37f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d88a2e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d88a30c
jmp 0x6d88a2e8
add rsi, qword [0x6d8ab5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d88a2be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d88a2e8
xor esi, esi
jmp 0x6d88a247
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d88a2e8
mov rax, qword [0x6d8ab5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d88ab00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8ab8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8ab8a0]
test rbx, rbx
je 0x6d88ab54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d88ab4b
test rsi, rsi
je 0x6d88ab4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d88ab30
lea rcx, [0x6d8ab8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d88ad90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d88ada0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d88adb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d88adf1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d88ade8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d88adf3
add rax, 0x28
cmp rax, r9
jne 0x6d88add4
xor eax, eax
ret

Function at 0x6d88ae90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a81f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d88aefd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88aefd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d88aefd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d88aef4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d88aeff
add rax, 0x28
cmp rax, r9
jne 0x6d88aee0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d88b000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d88b020
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88b018
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d88b07d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d88b074
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d88b084
add rax, 0x28
cmp rax, r9
jne 0x6d88b060
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d88b0a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8a81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d88b10e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88b10e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d88b10e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d88b10e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d88b105
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d88b115
add rcx, 0x28
cmp rcx, rax
jne 0x6d88b0f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d88b128
jmp 0x6d88b10e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d88b136
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d88b10e
test r9d, r9d
jg 0x6d88b120
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d88b4a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000136b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020a64
xor r8d, r8d
xor edx, edx
jmp 0x140020754

Function at 0x140001825
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140051654
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140074930]
mov ecx, 3
lea r8, [0x140074928]
lea rdx, str.FlsAlloc
call fcn.140050d00
test rax, rax
je 0x140051690
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x140199020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140001d57
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140062db8
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14018d5b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x1401907a8]
test r9, r9
lea rdi, [0x14006f9d4]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x140062e21
mov rax, 0xfffffffffffffffe
jmp 0x140062f6f
cmp word [r11 + 6], r10w
jne 0x140062e90
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140062e4b
test rsi, rsi
je 0x140062e3c
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x140062f6f
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140062e59
mov r8b, 2
jmp 0x140062e77
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140062e67
mov r8b, 3
jmp 0x140062e77
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140062f5d
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140062eb9
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140062f5d
cmp bl, bpl
jb 0x140062f5d
cmp bl, r8b
jae 0x140062f5d
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x140062ee6
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140062f5d
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x140062ec8
cmp r9, rbp
jae 0x140062f12
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x140062e15
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140062f5d
cmp edx, 0x110000
jae 0x140062f5d
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140062f5d
test rsi, rsi
je 0x140062f50
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x140062f6f
mov qword [r11], r10
call fcn.14000204a
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000254a
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002149
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140007eb4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007f41
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140007f41
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007f41
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007f28
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140007f22
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007f2a
add rdx, 0x28
jmp 0x140007f07
xor edx, edx
test rdx, rdx
jne 0x140007f33
xor al, al
jmp 0x140007f47
cmp dword [rdx + 0x24], 0
jge 0x140007f3d
xor al, al
jmp 0x140007f47
mov al, 1
jmp 0x140007f47
xor al, al
jmp 0x140007f47
add rsp, 0x18
ret

Function at 0x14000268a
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400164f8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140070998]
mov ecx, 2
lea r8, [0x140070990]
lea rdx, str.FlsGetValue
call fcn.140015fc8
mov ecx, ebx
test rax, rax
je 0x140016532
add rsp, 0x20
pop rbx
jmp qword [0x140199020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027bb
Capabilities:
Query environment variable

Disassembly:
jmp 0x140049fc8
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14004a09a
mov rsi, rax
cmp word [rax], r14w
je 0x14004a01b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14004a003
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140049fff
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140003099
movsxd rbp, eax
test eax, eax
je 0x14004a09a
mov rcx, rbp
call fcn.140001028
mov rdi, rax
test rax, rax
je 0x14004a08d
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140003099
test eax, eax
je 0x14004a08d
mov rsi, rdi
mov rdi, r14
jmp 0x14004a090
mov rsi, r14
mov rcx, rdi
call fcn.140001154
jmp 0x14004a09d
mov rsi, r14
test rbx, rbx
je 0x14004a0ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400027c5
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140016448
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140070958]
xor ecx, ecx
lea r8, [0x140070950]
lea rdx, str.FlsAlloc
call fcn.140015fc8
test rax, rax
je 0x140016481
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x140199020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x14000283d
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400518f4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140074a18]
mov rbp, rcx
lea r8, [0x140074a10]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.140050d00
mov rcx, rbp
test rax, rax
je 0x14005194a
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x140199020]
jmp 0x140051961
xor edx, edx
call fcn.140002194
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002847
Capabilities:
Terminate process

Disassembly:
jmp 0x14000882c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000297d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020a00
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140020754

Function at 0x140002dc9
Capabilities:
Parse pe header

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

Function at 0x1400031d9
Capabilities:
Terminate process

Disassembly:
jmp 0x140043eb0
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140043eca
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003846
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140003274
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140051708
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140074950]
mov ecx, 5
lea r8, [0x140074948]
lea rdx, str.FlsGetValue
call fcn.140050d00
mov ecx, ebx
test rax, rax
je 0x140051742
add rsp, 0x20
pop rbx
jmp qword [0x140199020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140003639
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140051760
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140074960]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140074958]
call fcn.140050d00
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400517a0
call qword [0x140199020]
jmp 0x1400517a6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003918
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140016550
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400709b8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400709b0]
call fcn.140015fc8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140016590
call qword [0x140199020]
jmp 0x140016596
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400039a9
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400588dc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 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.1400020e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140058966
cmp byte [rbp - 0x21], r15b
je 0x140058961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, ebx
jmp 0x14005899c
call fcn.140003d4b
test eax, eax
jne 0x140058988
cmp byte [rbp - 0x21], r15b
je 0x140058980
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, 1
jmp 0x14005899c
cmp byte [rbp - 0x21], r15b
je 0x140058999
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.140001ee7
test eax, eax
jne 0x140058a34
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400589d7
cmp byte [rbp - 0x21], r15b
je 0x140058a0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140058a0c
call fcn.140003d4b
test eax, eax
jne 0x1400589f8
cmp byte [rbp - 0x21], r15b
je 0x1400589f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140058a0c
cmp byte [rbp - 0x21], r15b
je 0x140058a09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140001ee7
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140058a34
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140058a37
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140058a45
mov rcx, rdi
call fcn.140001154
cmp byte [rbp + 0x3f], r15b
je 0x140058a54
mov rcx, qword [rbp + 0x27]
call fcn.140001154
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003a85
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400209f0
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400207bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400207bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400207bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400207bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400207bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400207bb
cmp dword [rcx + 0xf8], 0
je 0x1400207bb
mov ecx, ebx
call fcn.14002094c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400204bc
cmp dword [rbp + 0x20], 0
je 0x140020808
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020840
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020754
Function at 0x140007500
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x168
mov rax, qword [0x14018d5b0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x24], 0
movzx eax, word [0x14006ef98]
mov word [rsp + 0x20], ax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, str.APPDATA
call fcn.140001eec
mov qword [rsp + 0x28], rax
lea rdx, str.MicrosoftWindowsStart_MenuProgramsStartupSystem_Manager.exe
mov rcx, qword [rsp + 0x28]
call fcn.1400027fc
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x178]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.140002040
test eax, eax
jne 0x1400075b6
mov rcx, qword [0x14018e728]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14018e720]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000254a
add rsp, 0x168
ret

Function at 0x140008474
Capabilities:
Parse pe header

Disassembly:
jmp 0x140008474
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400084be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400084be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400084be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400084be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400084be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400084c0
xor al, al
add rsp, 0x28
ret
Function at 0x140001310
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x168
mov qword [rsp + 0x158], rdx
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x148], 0
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000136a
mov qword [rsp + 0x160], 0
jmp 0x1400014ed
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
cmp dword [rax], 0x4550
je 0x1400013b2
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
jmp 0x1400014ed
mov rdx, qword [rsp + 0x138]
add rdx, 0x18
lea rcx, [rsp + 0x48]
mov r8d, 0xf0
call fcn.140003be0
cmp dword [rsp + 0xb8], 0
jne 0x1400013f1
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
jmp 0x1400014ed
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0xb8]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
cmp eax, dword [rcx + 0x18]
jae 0x1400014dd
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov eax, dword [rax + r8*4]
add rcx, rax
call fcn.140005cf0
cmp eax, 0
jne 0x1400014c8
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x24]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x148], rax
jmp 0x1400014dd
jmp 0x1400014cd
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x140001458
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
add rsp, 0x168
ret