joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bb80
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001d2e0
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x14002f0b0]
test eax, eax
je 0x14001bba6
test eax, eax
jg 0x14001bbee
jmp 0x14001bc23
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014170
test al, al
je 0x14001bc9b
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002f0b0]
lea rdx, [0x14003c120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14002f0b0], eax
test eax, eax
jle 0x14001bc23
lea rdi, [0x14003c120]
xor ebx, ebx
nop word [rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001bc8e
add rbx, 1
movsxd rax, dword [0x14002f0b0]
add rdi, 8
cmp rbx, rax
jl 0x14001bc00
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001bc3a
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001bc90
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001bc5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001bc90
cmp dword [0x14002f0b0], 0x3ff
jg 0x14001bc90
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002f0b0]
lea rdx, [0x14003c120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14002f0b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140015840
int3

Function at 0x14001bfe0
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 fcn.140022ee0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140022ee0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001cc92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003e1e8]
test eax, eax
je 0x14001cd2a
lea rax, [0x14003e1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003e1f0]
mov qword [rbp - 8], rax
jmp 0x14001cd0e
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 0x14001cd02
cmp qword [rbp - 0x10], 0
je 0x14001cd02
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 0x14001ccc8
lea rax, [0x14003e1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001cd2b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001ce30
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 0x14001ce58
mov eax, 0
jmp 0x14001cea6
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 0x14001ce81
mov eax, 0
jmp 0x14001cea6
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 0x14001cea1
mov eax, 0
jmp 0x14001cea6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001ceac
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 0x14001cf2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cf21
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 0x14001cf21
mov rax, qword [rbp - 8]
jmp 0x14001cf3f
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 0x14001cef4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140624cd7
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x140624d1c
lea rcx, [0x140651ca0]
mov eax, 0xd82cd5ba
movzx eax, byte [rdi]
push 0x1e830b0d
xor eax, ebp
and eax, 0xff
mov eax, dword [rcx + rax*4]
shr ebp, 8
xor ebp, eax
inc rdi
xor ebp, 0xb2bb8606
dec rbx
lea rsp, [rsp + 8]
jne 0x140624ce9
call fcn.140623478
Function at 0x7020a420
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.70217940
test rax, rax
je 0x7020a487
mov r9, qword [rax]
test r9, r9
jle 0x7020a487
mov r8, rax
add r9, rbx
sub r8, rbx
nop dword [rax]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, rbx
sar rcx, 8
sar rdx, 0x10
xor ecx, ebx
and edx, 0xffffffee
and ecx, 0xffffffee
xor cl, byte [r8 + rbx + 0x10]
xor ecx, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor ecx, edx
mov byte [r8 + rbx + 0x10], cl
add rbx, 1
cmp rbx, r9
jne 0x7020a450
add rsp, 0x20
pop rbx
ret
Function at 0x7020bec0
Capabilities:
Parse credit card information

Disassembly:
cmp cx, 0x16
je 0x7020c160
jbe 0x7020bf20
cmp cx, 0x25
je 0x7020c350
jbe 0x7020c060
cmp cx, 0x44
je 0x7020c340
ja 0x7020c030
cmp cx, 0x41
je 0x7020c330
jbe 0x7020bf70
cmp cx, 0x42
je 0x7020c320
cmp cx, 0x43
jne 0x7020c310
lea rcx, [0x7021f860]
jmp fcn.70217940
cmp cx, 0xa
je 0x7020c300
ja 0x7020bff0
cmp cx, 4
je 0x7020c2f0
jbe 0x7020bfb0
cmp cx, 7
je 0x7020c2e0
jbe 0x7020bf90
cmp cx, 8
je 0x7020c2d0
cmp cx, 9
jne 0x7020c310
lea rcx, [0x7021fbe0]
jmp fcn.70217940
cmp cx, 0x26
je 0x7020c2c0
cmp cx, 0x40
jne 0x7020c310
lea rcx, [0x7021f8c0]
jmp fcn.70217940
cmp cx, 5
je 0x7020c2b0
cmp cx, 6
jne 0x7020c310
lea rcx, [0x7021fc40]
jmp fcn.70217940
cmp cx, 1
je 0x7020c2a0
test cx, cx
je 0x7020c290
cmp cx, 2
je 0x7020c280
cmp cx, 3
jne 0x7020c310
lea rcx, [0x7021fca0]
jmp fcn.70217940
cmp cx, 0x10
je 0x7020c270
jbe 0x7020c130
cmp cx, 0x13
je 0x7020c260
jbe 0x7020c110
cmp cx, 0x14
je 0x7020c250
cmp cx, 0x15
jne 0x7020c310
lea rcx, [0x7021fa80]
jmp fcn.70217940
cmp cx, 0x47
je 0x7020c240
jbe 0x7020c0a0
cmp cx, 0x48
je 0x7020c230
cmp cx, 0xfff
jne 0x7020c310
lea rcx, [0x7021f760]
jmp fcn.70217940
cmp cx, 0x1b
je 0x7020c220
jbe 0x7020c0e0
cmp cx, 0x1e
je 0x7020c210
jbe 0x7020c0c0
cmp cx, 0x1f
je 0x7020c200
cmp cx, 0x24
jne 0x7020c310
lea rcx, [0x7021f920]
jmp fcn.70217940
cmp cx, 0x45
je 0x7020c1f0
cmp cx, 0x46
jne 0x7020c310
lea rcx, [0x7021f7c0]
jmp fcn.70217940
cmp cx, 0x1c
je 0x7020c1e0
cmp cx, 0x1d
jne 0x7020c310
lea rcx, [0x7021f980]
jmp fcn.70217940
cmp cx, 0x18
je 0x7020c1d0
jb 0x7020c1c0
cmp cx, 0x19
je 0x7020c1b0
cmp cx, 0x1a
jne 0x7020c310
lea rcx, [0x7021f9e0]
jmp fcn.70217940
cmp cx, 0x11
je 0x7020c1a0
cmp cx, 0x12
jne 0x7020c310
lea rcx, [0x7021fae0]
jmp fcn.70217940
cmp cx, 0xc
je 0x7020c190
jb 0x7020c180
cmp cx, 0xd
je 0x7020c170
cmp cx, 0xe
jne 0x7020c310
lea rcx, [0x7021fb40]
jmp fcn.70217940
lea rcx, [0x7021fa60]
jmp fcn.70217940
lea rcx, [0x7021fb60]
jmp fcn.70217940
lea rcx, [0x7021fba0]
jmp fcn.70217940
lea rcx, [0x7021fb80]
jmp fcn.70217940
lea rcx, [0x7021fb00]
jmp fcn.70217940
lea rcx, [0x7021fa00]
jmp fcn.70217940
lea rcx, [0x7021fa40]
jmp fcn.70217940
lea rcx, [0x7021fa20]
jmp fcn.70217940
lea rcx, [0x7021f9a0]
jmp fcn.70217940
lea rcx, [0x7021f7e0]
jmp fcn.70217940
lea rcx, [0x7021f940]
jmp fcn.70217940
lea rcx, [0x7021f960]
jmp fcn.70217940
lea rcx, [0x7021f9c0]
jmp fcn.70217940
lea rcx, [0x7021f780]
jmp fcn.70217940
lea rcx, [0x7021f7a0]
jmp fcn.70217940
lea rcx, [0x7021faa0]
jmp fcn.70217940
lea rcx, [0x7021fac0]
jmp fcn.70217940
lea rcx, [0x7021fb20]
jmp fcn.70217940
lea rcx, [0x7021fcc0]
jmp fcn.70217940
lea rcx, [0x7021fd00]
jmp fcn.70217940
lea rcx, [0x7021fce0]
jmp fcn.70217940
lea rcx, [0x7021fc60]
jmp fcn.70217940
lea rcx, [0x7021f8e0]
jmp fcn.70217940
lea rcx, [0x7021fc00]
jmp fcn.70217940
lea rcx, [0x7021fc20]
jmp fcn.70217940
lea rcx, [0x7021fc80]
jmp fcn.70217940
lea rcx, [0x7021fbc0]
jmp fcn.70217940
lea rcx, [0x7021fdc0]
jmp fcn.70217940
lea rcx, [0x7021f880]
jmp fcn.70217940
lea rcx, [0x7021f8a0]
jmp fcn.70217940
lea rcx, [0x7021f820]
jmp fcn.70217940
lea rcx, [0x7021f900]
jmp fcn.70217940
Function at 0x70211260
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x7021127f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x70212100
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.7021cf80]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x70212140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.7021cf80]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x7021ae80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x7032a5a0]
mov rcx, qword [rax]
test rcx, rcx
je 0x7021aea0
add rsp, 0x38
pop rbx
pop rsi
jmp 0x7021a3c0
lea rcx, [0x703439e0]
mov edx, 0x30
call fcn.70217d10
lea rcx, [0x70329c40]
mov rbx, rax
mov rsi, qword [rbx + 0x18]
lea rax, [0x70343a30]
mov qword [rbx], rax
lea rax, str.ReraiseDefect
mov qword [rbx + 0x10], rax
call fcn.702176b0
test rsi, rsi
mov qword [rbx + 0x18], rax
je 0x7021af08
mov rax, qword [rsi - 0x10]
lea rdx, [rsi - 0x10]
sub rax, 8
cmp rax, 7
mov qword [rsi - 0x10], rax
ja 0x7021af08
mov rcx, qword [0x7032a5c0]
add rcx, 0x18
call fcn.702167c0
mov qword [rsp + 0x20], 0x35
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.ReraiseDefect
call fcn.7021a4e0
nop
nop
Function at 0x7021af30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x150
cmp qword [0x70343a20], 0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp - 0x111], 1
je 0x7021b02d
mov rax, qword [0x7032a5b0]
lea rcx, [rbp - 0x110]
mov rdx, qword [rax]
mov qword [rax], rcx
add rcx, 0x10
mov qword [rbp - 0x110], rdx
mov rdx, rbp
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rbp - 0x108], rax
jne 0x7021b050
xor ebx, ebx
cmp qword [rbp + 0x20], 0
je 0x7021afff
mov rcx, qword [rbp + 0x20]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rbp - 0x128], 7
cmp rax, 6
mov rsi, rax
jbe 0x7021afc9
lea rdx, [rax + 0x11]
mov qword [rbp - 0x128], rax
mov r8, qword [0x7032a5c0]
mov rcx, qword [0x7032a620]
call fcn.70217740
mov rdx, qword [rbp + 0x20]
movq xmm0, rsi
lea rcx, [rax + 0x10]
movhps xmm0, qword [rbp - 0x128]
mov rbx, rax
movups xmmword [rax], xmm0
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x70343a20]
mov rax, qword [0x7032a5b0]
mov byte [rbp - 0x111], 0
cmp qword [rbp - 0x108], 0
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
jne 0x7021b0c9
movzx eax, byte [rbp - 0x111]
test al, al
jne 0x7021b0e0
add rsp, 0x150
pop rbx
pop rsi
pop rbp
ret
mov rax, qword [0x7032a5b0]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rbp - 0x108], 0
mov qword [rax], rdx
mov rdx, qword [0x7032a5a0]
mov rax, qword [rdx]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x7021b08b
add qword [rbx - 0x10], 8
mov rax, qword [rdx]
test rax, rax
je 0x7021b0b1
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x7021b0b1
mov rcx, qword [0x7032a5c0]
add rcx, 0x18
call fcn.702167c0
mov rax, qword [0x7032a5a0]
cmp qword [rbp - 0x108], 0
mov qword [rax], rbx
je 0x7021b02d
call fcn.7021ae80
jmp 0x7021b02d
mov ecx, 2
call qword [fcn.7021cf80]
mov rcx, qword [rbp + 0x20]
mov edx, 1
mov r8, qword [rbp + 0x28]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x7021b03c
Function at 0x7021bdc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x70330bc4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x7021bf48
mov rax, qword [0x70330bc8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x7021be0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x7021be95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x7021bdf0
mov rcx, rbx
call fcn.7021ca60
test rax, rax
mov r12, rax
je 0x7021bf7d
mov rax, qword [0x70330bc8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.7021cb90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x70330bc8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7021bf60
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x7021be8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x7021bef0
add dword [0x70330bc4], 1
cmp edi, 8
jae 0x7021bec3
test dil, 4
jne 0x7021bf34
test edi, edi
je 0x7021beb8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x7021bf4f
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 0x7021beb8
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 0x7021bedc
jmp 0x7021beb8
add rsi, qword [0x70330bc8]
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 0x7021be8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.7021d0e0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x7021beb8
xor esi, esi
jmp 0x7021be17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x7021beb8
mov rax, qword [0x70330bc8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.7021d0e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.7021d0e0
nop
nop dword [rax]

Function at 0x7021c6d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x70330ea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x70330e80]
test rbx, rbx
je 0x7021c724
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 0x7021c71b
test rsi, rsi
je 0x7021c71b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7021c700
lea rcx, [0x70330ea0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x7021ca60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x7032a520]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x7021cacd
mov rcx, r8
call fcn.7021c940
test eax, eax
je 0x7021cacd
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 0x7021cacd
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 0x7021cac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x7021cacf
add rax, 0x28
cmp rax, r9
jne 0x7021cab0
xor eax, eax
add rsp, 0x28
ret

Function at 0x7021d0e0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x702013a0]
jmp 0x70201380
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 fcn.7021cf80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.7021cf80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x70201390
Function at 0x140016b00
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x58]
lea rcx, str._pipediscord_ipc_0
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2e
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], 0x15
mov eax, 2
imul rax, rax, 0x15
mov ecx, 0x30
mov word [rsp + rax + 0x58], cx
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x140016bb2
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
mov al, 1
jmp 0x140016c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
jne 0x140016bfc
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
cmp eax, 0x39
jge 0x140016bfa
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
inc ax
mov ecx, 2
imul rcx, rcx, 0x15
mov word [rsp + rcx + 0x58], ax
jmp 0x140016b62
jmp 0x140016c23
cmp dword [rsp + 0x40], 0xe7
jne 0x140016c23
mov edx, 0x2710
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140016c1e
xor al, al
jmp 0x140016c2c
jmp 0x140016b62
xor al, al
jmp 0x140016c2c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x140016c90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x70], 0
jne 0x140016cc1
mov al, 1
jmp 0x140016d9c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140016cee
mov r8d, 0x4f
lea rdx, [0x140156890]
lea rcx, [0x140156948]
call fcn.14010ccb0
xor eax, eax
cmp qword [rsp + 0x38], 0
jne 0x140016cfd
xor al, al
jmp 0x140016d9c
mov rax, qword [rsp + 0x38]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140016d10
xor al, al
jmp 0x140016d9c
cmp qword [rsp + 0x68], 0
jne 0x140016d33
mov r8d, 0x56
lea rdx, [0x140156960]
lea rcx, [0x140156a18]
call fcn.14010ccb0
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x140016d3f
xor al, al
jmp 0x140016d9c
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140016d8f
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x40], eax
jne 0x140016d8f
mov dword [rsp + 0x34], 1
jmp 0x140016d97
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x58
ret
Function at 0x140016db0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x68], 0
jne 0x140016df5
mov r8d, 0x62
lea rdx, [0x140156a30]
lea rcx, [0x140156ae8]
call fcn.14010ccb0
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x140016e04
xor al, al
jmp 0x140016f13
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140016e31
mov r8d, 0x67
lea rdx, [0x140156b00]
lea rcx, str.self
call fcn.14010ccb0
xor eax, eax
cmp qword [rsp + 0x38], 0
jne 0x140016e40
xor al, al
jmp 0x140016f13
mov rax, qword [rsp + 0x38]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140016e53
xor al, al
jmp 0x140016f13
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140016f07
mov eax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x70]
jb 0x140016f05
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140016efb
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
je 0x140016ef5
mov r8d, 0x74
lea rdx, str.C:UsersCODER_SYSDesktopPABLO_SOURCE_CODECODER_MANDiscord_SDK_srcconnection_win.cpp
lea rcx, str.bytesToRead__bytesRead
call fcn.14010ccb0
xor eax, eax
mov al, 1
jmp 0x140016f13
mov rcx, qword [rsp + 0x60]
call fcn.140016c50
jmp 0x140016f11
mov rcx, qword [rsp + 0x60]
call fcn.140016c50
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x58
ret
Function at 0x1400172c0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401ed1a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x88], 0
je 0x140017384
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140017384
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001737a
mov eax, dword [rsp + 0x50]
jmp 0x1400173e4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x60], 0
je 0x1400173e0
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x60], rax
je 0x1400173e0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fd630
add rsp, 0x78
ret