joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000104c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1401d3bd8], rdi
je 0x1400010a5
cmp rax, rdi
jne 0x140001098
mov esi, 1
jmp 0x1400010a5
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000107f
mov eax, dword [0x1401d3bd0]
cmp eax, 1
jne 0x1400010ba
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14000111f
mov eax, dword [0x1401d3bd0]
test eax, eax
jne 0x140001115
mov dword [0x1401d3bd0], 1
lea r12, [0x1400053a8]
lea rdi, [0x140005390]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140001107
test eax, eax
jne 0x140001107
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400010fc
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x1400010e5
test eax, eax
je 0x14000111f
mov eax, 0xff
jmp 0x140001269
mov dword [0x1401d1c94], 1
mov eax, dword [0x1401d3bd0]
cmp eax, 1
jne 0x140001147
lea rdx, [0x140005388]
lea rcx, [0x140005378]
call sub.msvcrt.dll__initterm
mov dword [0x1401d3bd0], 2
test esi, esi
jne 0x140001154
xor eax, eax
xchg qword [0x1401d3bd8], rax
cmp qword [0x1401d3be0], 0
je 0x14000117d
lea rcx, [0x1401d3be0]
call fcn.140001438
test eax, eax
je 0x14000117d
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1401d3be0]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x140001208
cmp byte [rdi], 0
je 0x14000119e
test esi, esi
jne 0x140001208
cmp byte [rdi], 0
je 0x1400011b2
cmp byte [rdi], 0x20
ja 0x1400011b2
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14000119e
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002568
mov dword [0x1401d1c90], eax
cmp dword [0x1401d1c74], 0
jne 0x1400011f1
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1401d1c94], 0
jne 0x140001206
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1401d1c90]
jmp 0x140001269
cmp byte [rdi], 0x22
jne 0x14000121a
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000122f
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x140001190
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.140001520
add rsp, 0x28
jmp 0x14000104c
Function at 0x1400026e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
and qword [r8], 0
mov rdi, r8
mov ebx, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.msvcrt.dll_memset]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140002730
mov eax, 1
jmp 0x14000278c
lea rdx, str._ntoskrnl.exe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r8, rax
test rax, rax
jne 0x140002761
lea eax, [r8 + 2]
jmp 0x14000278c
xor eax, eax
lea edx, [rbx - 4]
test edx, edx
je 0x14000277e
mov rcx, r8
cmp dword [rcx], 0x1d8806eb
je 0x1400027a1
inc eax
inc rcx
cmp eax, edx
jb 0x14000276d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 3
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
movsxd rdx, dword [rax + r8 + 4]
mov ecx, eax
add rcx, 8
add rcx, rdx
add rcx, r8
test edx, edx
je 0x14000277e
test rcx, rcx
je 0x14000277e
sub rcx, r8
add rcx, rsi
mov qword [rdi], rcx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000278c
Function at 0x140002d6c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
lea rdx, str.SYSTEMCurrentControlSet_services_
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x160]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
test eax, eax
je 0x140002dcb
lea eax, [rbx + 1]
jmp 0x140002e1f
mov rcx, qword [rsp + 0x160]
lea rax, [rsp + 0x158]
mov r9d, 4
mov dword [rsp + 0x158], 1
mov dword [rsp + 0x28], r9d
lea rdx, str.DeleteFlag
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140002e0f
mov ebx, 2
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x140
pop rbx
ret

Function at 0x140002e28
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
xor esi, esi
mov word [rbp + 0x73], 0x500
mov rdi, rcx
mov dword [rbp + 0x6f], esi
xor edx, edx
mov qword [rbp + 0x77], rsi
lea rcx, [rbp + 7]
lea r8d, [rsi + 0x30]
call qword [sym.imp.msvcrt.dll_memset]
lea rax, [rbp + 0x77]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x20]
mov dword [rsp + 0x48], esi
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x40], esi
mov dl, 2
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140002ea0
lea ebx, [rsi + 1]
jmp 0x140002f44
mov rax, qword [rbp + 0x77]
mov ebx, 3
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rbp + 0x2f], rax
mov rcx, rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r15d, [rbx + 1]
mov r8d, r15d
mov dword [rbp + 7], 0x10000000
lea edx, [rbx - 2]
mov dword [rbp + 0xb], 2
mov dword [rbp + 0xf], ebx
mov dword [rbp + 0x23], esi
mov dword [rbp + 0x27], 2
mov qword [rbp + 0x7f], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
je 0x140002f04
lea ebx, [r15 - 2]
jmp 0x140002f44
mov r9, qword [rbp + 0x7f]
lea r8, [rbp + 7]
mov rcx, rdi
call fcn.140002ca0
test eax, eax
jne 0x140002f1c
mov ebx, esi
jmp 0x140002f44
mov rdx, qword [rbp + 0x77]
mov rcx, rdi
call fcn.140002b90
test eax, eax
jne 0x140002f44
mov r9, qword [rbp + 0x7f]
lea r8, [rbp + 7]
mov rcx, rdi
call fcn.140002ca0
test eax, eax
mov ebx, esi
cmovne ebx, r15d
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140002f53
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x140002f5e
mov eax, 1
jmp 0x140002f70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
not eax
and eax, 2
add rsp, 0x90
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002f80
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor esi, esi
cmp byte [rbx], 0
je 0x140003035
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x140003035
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003054
mov r8d, dword [rbx + 0x110]
lea r9, [rsp + 0x58]
mov rdx, qword [rbx + 0x108]
mov rcx, rax
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x110]
mov rcx, rdi
cmp dword [rsp + 0x58], eax
jne 0x140003047
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x118
inc esi
cmp esi, 4
jb 0x140002f98
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x140003037
mov eax, 1
jmp 0x140003037
Function at 0x14084d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14084d1df
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 0x14084d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084d06f
add dl, dl
jne 0x14084d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084d0f6
xor eax, eax
add dl, dl
jne 0x14084d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084d1ad
add dl, dl
jne 0x14084d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14084d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14084d07e
mov eax, 1
add dl, dl
jne 0x14084d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084d0fb
sub eax, ebx
mov ebx, 1
jne 0x14084d14c
mov ecx, 1
add dl, dl
jne 0x14084d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14084d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084d15d
cmp eax, 0x7d00
jae 0x14084d19b
cmp eax, 0x500
jb 0x14084d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084d07e
cmp eax, 0x7f
ja 0x14084d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14084d1d2
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 0x14084d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001e5e4
Capabilities:
Parse pe header

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

Function at 0x140023b6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140023968
Function at 0x140030124
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 0x140030154
xor eax, eax
jmp 0x140030217
mov rbp, rbx
cmp word [rax], si
je 0x140030179
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140030160
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003015c
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.140030044
movsxd r14, eax
test eax, eax
jne 0x1400301b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003014d
mov rcx, r14
call fcn.14002d88c
mov rdi, rax
test rax, rax
jne 0x1400301d0
xor ecx, ecx
call fcn.14002cb60
jmp 0x1400301ac
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.140030044
test eax, eax
jne 0x140030201
mov rcx, rdi
call fcn.14002cb60
jmp 0x14003020b
xor ecx, ecx
call fcn.14002cb60
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 0x140030234
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400302bb
mov rsi, rbx
cmp word [rax], bp
je 0x14003027a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140030264
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140030260
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002d88c
mov rdi, rax
test rax, rax
je 0x1400302a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001f430
mov rbp, rdi
xor ecx, ecx
call fcn.14002cb60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140034998
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400349ae
mov al, 1
jmp 0x140034a0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400349bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140034a0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140030c5c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140034a0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140034a0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140034a0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140034a0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140035038
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.1400226b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400350c2
cmp byte [rbp - 0x21], r15b
je 0x1400350bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400350f8
call fcn.14002ce60
test eax, eax
jne 0x1400350e4
cmp byte [rbp - 0x21], r15b
je 0x1400350dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400350f8
cmp byte [rbp - 0x21], r15b
je 0x1400350f5
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.14002ed5c
test eax, eax
jne 0x140035198
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400226b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140035137
cmp byte [rbp - 0x21], r15b
je 0x14003516c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003516c
call fcn.14002ce60
test eax, eax
jne 0x140035158
cmp byte [rbp - 0x21], r15b
je 0x140035151
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003516c
cmp byte [rbp - 0x21], r15b
je 0x140035169
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.14002ed5c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140035198
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003519b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400351a9
mov rcx, rdi
call fcn.14002cb60
cmp byte [rbp + 0x3f], r15b
je 0x1400351b8
mov rcx, qword [rbp + 0x27]
call fcn.14002cb60
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 0x6d7d6130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d62b8
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d617c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6205
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6160
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d62ed
mov rax, qword [0x6d7f75e8]
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 [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d62d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d61fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6260
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d6233
test dil, 4
jne 0x6d7d62a4
test edi, edi
je 0x6d7d6228
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d62bf
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 0x6d7d6228
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 0x6d7d624c
jmp 0x6d7d6228
add rsi, qword [0x6d7f75e8]
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 0x6d7d61fe
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 0x6d7d6228
xor esi, esi
jmp 0x6d7d6187
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6228
mov rax, qword [0x6d7f75e8]
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 0x6d7d6a40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d6a94
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 0x6d7d6a8b
test rsi, rsi
je 0x6d7d6a8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d6a70
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d6cd0
Capabilities:
Parse pe header

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

Function at 0x6d7d6cf0
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 0x6d7d6d31
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 0x6d7d6d28
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d6d33
add rax, 0x28
cmp rax, r9
jne 0x6d7d6d14
xor eax, eax
ret

Function at 0x6d7d6dd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d6e3d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6e3d
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 0x6d7d6e3d
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 0x6d7d6e34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d6e3f
add rax, 0x28
cmp rax, r9
jne 0x6d7d6e20
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d6f40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d6f60
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6f58
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 0x6d7d6fbd
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 0x6d7d6fb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d6fc4
add rax, 0x28
cmp rax, r9
jne 0x6d7d6fa0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d6fe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d704e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d704e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d704e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d704e
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 0x6d7d7045
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7055
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7030
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7068
jmp 0x6d7d704e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7076
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d704e
test r9d, r9d
jg 0x6d7d7060
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d73b0
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 0x14002d5a0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x160
mov dword [rsp + 0x178], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov ebx, 0xff
cmp eax, ebx
jbe 0x14002d61c
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 0xb]
lea r8, str.T:p4depotLoL__MAIN__codeExternal_sentry_tmp_sentry_nativeexternalcrashpad_snapshotwin_system_snapshot_win.cc
lea rdx, str.unsigned_char___cdecl_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea rcx, [rsp + 0x60]
call fcn.140049c10
nop
mov dword [rsp + 0x178], 1
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rsp + 0x60]
call fcn.140049e20
mov eax, dword [rsp + 0x50]
cmp eax, ebx
movzx ecx, al
cmovbe ebx, ecx
movzx eax, bl
add rsp, 0x160
pop rbx
ret