joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009fa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
test rbx, rbx
je 0x14000a018
cmp word [rbx], di
je 0x14000a018
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x14000a018
cmp word [rbx], 0x7f
jae 0x14000a00d
cmp word [rbx + 2], 0x3a
je 0x14000a07a
cmp word [rbx], bp
jne 0x14000a018
cmp word [rbx + 2], bp
je 0x14000a07a
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000a07a
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x14000a07a
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov edx, esi
mov word [rsp + rax*2 + 0x20], di
call fcn.1400026cc
test eax, eax
js 0x14000a07a
lea r8, [0x140002358]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.1400026cc
test eax, eax
js 0x14000a07a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x14000a07c
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000a6c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000a7a8
Capabilities:
Terminate process

Disassembly:
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 edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000ab6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000abb8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000abb0
cmp dword [rcx + 0x3c], edx
jl 0x14000abb0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000abb0
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 0x14000abb8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001610
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000169a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000169a
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001696
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001670
jmp 0x14000169a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002ed0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003970
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001729
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140001729
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001729
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000170d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001707
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000170f
add rdx, 0x28
jmp 0x1400016ec
xor edx, edx
test rdx, rdx
jne 0x140001718
xor al, al
jmp 0x14000172f
test dword [rdx + 0x24], 0x80000000
je 0x140001725
xor al, al
jmp 0x14000172f
mov al, 1
jmp 0x14000172f
xor al, al
jmp 0x14000172f
add rsp, 0x18
ret

Function at 0x140004610
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400043e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400043e4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400043e4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400043e4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400043e4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400043e4
cmp dword [rcx + 0xf8], esi
je 0x1400043e4
mov ecx, r14d
call fcn.14000452c
mov ecx, 2
call fcn.140008a38
nop
cmp byte [0x14001cbc0], 0
jne 0x1400044ae
mov r15d, 1
mov eax, r15d
xchg dword [0x14001cbb4], eax
test ebx, ebx
jne 0x140004457
mov rdi, qword [0x14001c018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001cbb8]
cmp rcx, rax
je 0x14000444e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400018d0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001ce10]
jmp 0x140004463
cmp ebx, r15d
jne 0x140004469
lea rcx, [0x14001ce28]
call fcn.140005408
nop
test ebx, ebx
jne 0x140004480
lea rdx, [0x140012308]
lea rcx, [0x1400122e8]
call fcn.140004e3c
lea rdx, [0x140012318]
lea rcx, [0x140012310]
call fcn.140004e3c
movzx eax, byte [0x14001cbc0]
test esi, esi
cmove eax, r15d
mov byte [0x14001cbc0], al
jmp 0x1400044ae
mov ecx, 2
call fcn.140008a98
test esi, esi
jne 0x1400044c5
mov ecx, r14d
call fcn.1400044e0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140004374
Function at 0x140010c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
movzx eax, word [rsp + 0x50]
lea r8, [0x14001a074]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x20], rax
mov edx, 0x219304
mov ecx, 0x711cd7
call fcn.140010eb0
mov edx, 0x38ac43
mov ecx, 0x339ce3
call fcn.140010eb0
mov edx, 0x4744c9
mov ecx, 0x5b4835
call fcn.140010eb0
mov edx, 0x81d94e
mov ecx, 0x86d181
call fcn.140010eb0
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x140010cca
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140010d00
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x98
lea rax, str.SoftwarexxKey
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140010e3e
lea rcx, str.Registry_key_created_or_opened_successfully._n
call fcn.140001240
lea rax, [0x14001a06c]
mov qword [rsp + 0x70], rax
lea rax, [0x14001a078]
mov qword [rsp + 0x50], rax
lea rax, [0x14001a098]
mov qword [rsp + 0x80], rax
lea rax, str.2222
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x140010d8b
mov rax, qword [rsp + 0x38]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140010de7
mov rax, qword [rsp + 0x40]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x98
ret

Function at 0x140010e50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [rsp + 0x30], 0
xor eax, eax
cmp eax, 1
je 0x140010ea5
mov edx, 0x8cc13
mov ecx, 0x91aa5a
call fcn.140010eb0
xor eax, 0x438b45
mov dword [rsp + 0x30], eax
jmp 0x140010e84
add rsp, 0x48
ret
Function at 0x140327430
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14032743d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14032744d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140327435
lea eax, [rcx + 1]
jmp 0x14032745b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14032746e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140327454
sub eax, 3
jb 0x14032748e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1403274dd
sar eax, 1
movsxd rbp, eax
jb 0x1403274c4
jmp 0x14032749c
add ebx, ebx
jne 0x14032749a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403274c4
inc ecx
add ebx, ebx
jne 0x1403274aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403274c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1403274bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1403274ac
add ecx, 2
jmp 0x1403274c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1403273f2
jmp 0x14032743d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa8400
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140327529
cmp rsi, rcx
jae 0x140327531
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140327510
cmp al, 0x8f
ja 0x140327510
cmp byte [rsi - 2], 0xf
je 0x140327516
sub al, 0xe8
cmp al, 1
ja 0x1403274fa
cmp rsi, rcx
jae 0x140327531
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140327500
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140327531
lodsb al, byte [rsi]
jmp 0x140327510
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x323000]
mov eax, dword [rdi]
or eax, eax
je 0x14032759a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x55821c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14032753e
jns 0x140327573
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14032757d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140327594
mov qword [rbx], rax
add rbx, 8
jmp 0x14032755e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1403275d4
cmp al, 0xef
ja 0x1403275c6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1403275a6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1403275b5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140327628
sub rsp, 0xffffffffffffff80
jmp 0x14002fb2c
Function at 0x140002c60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rdi, rsp
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
xor eax, eax
cmp eax, 1
je 0x140002e3a
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140002cbd
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140002e52
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x140002cea
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
jmp 0x140002cf2
mov dword [rsp + 0x40], 0
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x80], 0
jle 0x140002dcf
cmp qword [rsp + 0x28], 0
jle 0x140002dcf
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x80], rax
jge 0x140002d33
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x28]
call fcn.140009d94
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rsp + 0x38]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x80], 0
jle 0x140002e23
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140002e23
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
jmp 0x140002e52
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140002e60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rdi, rsp
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
xor eax, eax
cmp eax, 1
je 0x140003044
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140002ebd
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000305c
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x38]
cmp qword [rax], 0
je 0x140002eea
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
jmp 0x140002ef2
mov dword [rsp + 0x48], 0
movsxd rax, dword [rsp + 0x48]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x80], 0
jle 0x140002fcf
cmp qword [rsp + 0x28], 0
jle 0x140002fcf
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x80], rax
jge 0x140002f33
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x28]
call fcn.140009d94
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x38]
movsxd rcx, dword [rsp + 0x38]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x38]
mov qword [rcx], rax
cmp qword [rsp + 0x80], 0
jle 0x14000302d
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000302d
mov rcx, qword [rsp + 0x70]
call fcn.140005140
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
jmp 0x14000305c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
call fcn.14000eeb0
mov rcx, qword [rax]
mov qword [0x14003a078], rcx
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.14000f0a4
test rax, rax
je 0x14000106c
lea rcx, str.Windows_original_main_args:_n
call fcn.14000115c
xor ebx, ebx
call fcn.14000e8fc
cmp dword [rax], ebx
jle 0x14000106c
xor edi, edi
call fcn.14000e904
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.14000115c
inc ebx
lea rdi, [rdi + 8]
call fcn.14000e8fc
cmp ebx, dword [rax]
jl 0x140001043
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.140001304
call fcn.1400013a8
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.1400011b8
mov rbx, rax
call fcn.1400013b0
xor r9d, r9d
test edi, edi
jle 0x1400010b8
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a5
mov rdx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rdx, rdx
jne 0x1400010cf
mov rdx, qword [rbx]
mov rcx, qword [section..data]
test rcx, rcx
jne 0x1400010de
mov rcx, qword [rbx]
mov r9, qword [0x140038b50]
mov r8d, 1
test r9, r9
setne al
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 1
mov byte [rsp + 0x58], 1
mov byte [rsp + 0x50], al
lea rax, [0x14002847c]
mov qword [rsp + 0x48], rdx
mov rdx, rbx
mov qword [rsp + 0x40], rcx
mov ecx, edi
mov qword [rsp + 0x38], rax
lea rax, str.1.8.0_261_b12
mov qword [rsp + 0x30], rax
mov rax, qword [0x140038b58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call fcn.140001da8
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140002810
Capabilities:
Persist via run registry key

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov rcx, 0xffffffff80000002
call fcn.140007930
mov qword [rbp - 0x18], rax
lea rdx, [0x1400365c0]
lea rcx, [rbp + 0x20]
mov r8d, 1
call fcn.140002e40
jmp 0x140002853
lea rcx, [rbp + 8]
lea rdx, [rbp + 0x20]
call fcn.140001490
jmp 0x140002862
mov rax, qword [rbp + 0x18]
mov qword [rbp], rax
movups xmm0, xmmword [rbp + 8]
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call fcn.1400018a0
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rax
jmp 0x140002885
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140001100
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
jmp 0x14000289c
mov r9, qword [rbp - 0x40]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp + 0x68]
lea rdx, [rbp - 0x18]
call fcn.140003950
jmp 0x1400028b3
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x68]
call fcn.140002fa0
jmp 0x1400028c2
xor eax, eax
mov ecx, 1
cmp byte [rbp + 0x60], 0
cmove rax, rcx
cmp rax, 0
jne 0x1400028fd
mov rax, qword [rbp + 0x58]
mov cl, byte [rbp + 0x60]
mov qword [rbp + 0x98], rax
mov byte [rbp + 0xa0], cl
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x80]
call fcn.140002530
jmp 0x14000291d
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0xb0], rcx
lea rdx, str.src_firststart.rs
call fcn.140002f70
mov qword [rbp - 0x48], rax
jmp 0x1400029f3
lea rdx, str.Discord_Client_Service
lea rcx, [rbp + 0x50]
mov r8d, 0x16
lea r9, [rbp + 0x80]
call fcn.140004160
mov qword [rbp - 0x50], rax
jmp 0x140002940
mov rcx, qword [rbp - 0x50]
call fcn.140003020
mov qword [rbp - 0x58], rax
jmp 0x14000294f
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 0
sete al
test al, 1
jne 0x140002968
jmp 0x140002976
lea rcx, [rbp + 0x80]
call fcn.14000f5f0
jmp 0x140002993
mov rcx, qword [rbp + 0x78]
mov qword [rbp + 0xa8], rcx
lea rdx, str.src_firststart.rs
call fcn.140002f70
mov qword [rbp - 0x60], rax
jmp 0x1400029c7
mov qword [rbp - 0x20], 0
lea rcx, [rbp + 0x50]
call fcn.140001b30
jmp 0x1400029a6
lea rcx, [rbp - 0x10]
call fcn.14000f5f0
jmp 0x1400029b1
lea rcx, [rbp - 0x18]
call fcn.140001b30
mov rax, qword [rbp - 0x20]
add rsp, 0x140
pop rbp
ret
mov rax, qword [rbp - 0x60]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x80]
call fcn.14000f5f0
jmp 0x1400029dd
lea rcx, [rbp + 0x50]
call fcn.140001b30
jmp 0x1400029e8
lea rcx, [rbp - 0x10]
call fcn.14000f5f0
jmp 0x1400029fd
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x20], rax
jmp 0x1400029e8
lea rcx, [rbp - 0x18]
call fcn.140001b30
jmp 0x1400029ba