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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100
push 0
push 0x11282e58
mov ebx, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x1001f068]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11282e58], cl
inc eax
cmp eax, 0x100
jb 0x100139b0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x11282e58
push 0
mov ecx, 0x10125560
call fcn.1000aaf0
mov eax, dword [0x1012f414]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10013a22
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x112826e0]
mov edx, dword [0x1012f42c]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ecx
push edx
mov dword [0x1012f414], 0
call edi
jmp 0x10013a28
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1012f53c]
test eax, eax
je 0x10013a53
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x112826e0]
mov ecx, dword [0x1012f554]
push eax
push ecx
mov dword [0x1012f53c], 0
call edi
mov eax, dword [0x1012f664]
test eax, eax
je 0x10013a7e
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x112826e0]
mov eax, dword [0x1012f67c]
push edx
push eax
mov dword [0x1012f664], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10013aa2
dec eax
je 0x10013a96
dec eax
jne 0x10013aae
lea ecx, [eax + 0x6a]
mov eax, 0x2b2bb9
jmp 0x10013ab4
mov ecx, 0x69
mov eax, 0x116896
jmp 0x10013ab4
mov ecx, 0x67
mov eax, 0x9ca476
jmp 0x10013ab4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10012510
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ecx, ebx
mov edi, 0x100138f0
mov dword [ebx + 8], eax
call fcn.10015680
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10013b26
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x112826e0]
mov eax, dword [ebx + 0x1c]
push edx
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.10015640
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10015340
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x11282e58
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001c668]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x11282e58], dl
inc eax
cmp eax, 0x100
jb 0x10015363
mov eax, 0x11282e58
ret

Function at 0x10015680
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2f4], eax
push esi
mov ecx, 0xd6
xor eax, eax
mov dl, byte [eax + 0x10020600]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x100156a7
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f668aa7
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10016020
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f8]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2f4]
push edx
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [ebp - 0x2f0]
push ecx
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100189a8
mov esp, ebp
pop ebp
ret 4
Function at 0x10015790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x100157d8
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100157dc
cmp edx, esi
jne 0x100157c1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100157fc
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10015800
cmp edx, esi
jne 0x100157e5
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10015820
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10015824
cmp edx, esi
jne 0x10015809
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016780
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10125534]
push edi
cmp esi, dword [0x10125538]
je 0x1001684e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x100167be
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push connect
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x100167d3
add esi, 0x105
cmp esi, dword [0x10125538]
jne 0x100167a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10125538]
mov esi, dword [0x10125534]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10016836
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10016812
lea ecx, [edi + esi + 1]
push ecx
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x10125534]
mov ecx, dword [0x10125538]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x100167f6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 6
xor ecx, ecx
call fcn.10002f10
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100169b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10016b50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10016a74
cmp dword [ebp - 4], 0x50000000
jb 0x100169f1
cmp dword [ebp - 4], 0x80000000
ja 0x100169f1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100169ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016a17
jmp 0x10016a74
cmp dword [ebp - 0x14], 0x10000
jne 0x10016a5a
cmp dword [ebp - 0x18], 0x10000
jb 0x10016a5a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016a4d
mov eax, dword [ebp - 8]
jmp 0x10016a76
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016a6f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10016b50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100169ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10016a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10016b80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10016b3c
cmp dword [ebp - 4], 0x50000000
jb 0x10016abc
cmp dword [ebp - 4], 0x80000000
ja 0x10016abc
mov dword [ebp - 4], 0x80010000
jmp 0x10016a95
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016ae2
jmp 0x10016b3c
cmp dword [ebp - 0x14], 0x10000
jne 0x10016b25
cmp dword [ebp - 0x18], 0x10000
jb 0x10016b25
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016b18
mov eax, dword [ebp - 8]
jmp 0x10016b3e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016b37
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10016b80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10016a95
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100172b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100172c5
xor eax, eax
jmp 0x1001733a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100172f2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10017335
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10017333
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1001732f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10017333
xor eax, eax
jmp 0x1001733a
jmp 0x100172e9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10017500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1012faa0]
mov dword [ebp - 4], eax
jmp 0x10017519
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10017536
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10017510
mov esp, ebp
pop ebp
ret
Function at 0x10017980
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1012fab0], eax
je 0x1001799e
mov eax, 0x10dd
jmp 0x10017a7f
mov eax, dword [0x1012fac0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10017a1c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100179fa
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100179fa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10017020
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100179a6
mov dword [0x1012fac0], 0
call fcn.10017340
mov ecx, dword [0x1012fabc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10017a69
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10017a34
mov dword [0x1012fabc], 0
mov dword [0x1012fab0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017f70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1012fab4], 0
je 0x10017f89
mov eax, dword [0x1012fab4]
jmp 0x10018029
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10017f9b
xor eax, eax
jmp 0x10018029
push 8
call fcn.10018abc
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10017ff1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10017fda
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1012fab4], eax
mov dword [0x1012fab8], 0
mov eax, dword [ebp - 8]
jmp 0x10018029
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001800b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10017fbb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1012fabc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1012fabc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100189a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10025018]
jne 0x100189b2
repz ret
jmp fcn.10018eeb
Function at 0x10007180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1006a89c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10053c6c]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10053c70]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10053c54]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10053c64]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10007250
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10007219
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10007266
inc ax
mov word [ebp - 0xa], ax
jmp 0x1000722f
cmp eax, 0xe7
jne 0x10007266
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10007266
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10007200
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b719
mov esp, ebp
pop ebp
ret
Function at 0x10007280
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006a89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x100072c4
push 0x62
push str.C:Users_aaaDesktopodio_mastercorediscord_rpcSourceFilesconnection_win.cpp
push 0x10053d28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x100072f1
push 0x67
push str.C:Users_aaaDesktopodio_mastercorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x1000738c
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10007379
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 8], edi
jb 0x1000738c
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x10007370
cmp edi, dword [ebp - 0xc]
je 0x1000735b
push 0x74
push str.C:Users_aaaDesktopodio_mastercorediscord_rpcSourceFilesconnection_win.cpp
push str.bytesToRead__bytesRead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.10007110
jmp 0x1000738c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8

Function at 0x100073b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006a89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10007431
test ecx, ecx
jne 0x100073f7
push 0x4f
push str.C:Users_aaaDesktopodio_mastercorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x100073e4
test edx, edx
jne 0x10007411
push 0x56
push str.C:Users_aaaDesktopodio_mastercorediscord_rpcSourceFilesconnection_win.cpp
push 0x10053d28
jmp 0x100073db
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100073e4
cmp dword [ebp - 8], esi
jne 0x100073e4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1004b719
mov esp, ebp
pop ebp
ret 8
Function at 0x10007830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x1006a89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [ebp - 0xa94]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100078a4
push str.Error_opening_Steam_key_n
jmp 0x10007964
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xa90], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa94]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000795f
mov ecx, dword [ebp - 0xa90]
cmp ecx, 1
jb 0x1000795f
shr ecx, 1
mov eax, esi
je 0x10007918
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x10007913
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x10007900
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
push str.__s__steam:__rungameid__s
lea eax, [ebp - 0xa8c]
push 0x800
push eax
call fcn.10007740
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10007450
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.100079a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.1004b719
mov esp, ebp
pop ebp
ret
Function at 0x100095c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x100610ec
push 0x64
call fcn.1004b74a
mov edi, eax
add esp, 8
test edi, edi
je 0x1000972f
push 0x63
lea ecx, [edi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea eax, [edi + 4]
mov byte [edi], 1
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [edi + 0x34]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
add esp, 0x18
mov dword [0x10090b80], edi
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
je 0x10009640
test esi, esi
je 0x10009635
cmp byte [esi], 0
je 0x10009635
push esi
push ebx
call fcn.10007830
jmp 0x1000963d
push 0
push ebx
call fcn.100077b0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x1006b490
mov dword [0x1009097c], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10009740
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10009677
movups xmm0, xmmword [eax]
movups xmmword [0x1008c534], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x10009681
xorps xmm0, xmm0
movups xmmword [0x1008c534], xmm0
movq qword [0x1008c544], xmm0
xorps xmm0, xmm0
push 0x1006b490
movups xmmword [0x1008c54c], xmm0
movq qword [0x1008c55c], xmm0
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp dword [0x1008c530], 0
jne 0x10009739
push ebx
call fcn.1000b2a0
mov dword [0x1008c530], eax
mov dword [eax + 8], 0x100079d0
mov eax, dword [0x1008c530]
mov dword [eax + 0xc], 0x100079e0
mov al, 1
mov esi, dword [0x10090b80]
xchg byte [esi], al
push 4
call fcn.1004b1b8
add esp, 8
test eax, eax
je 0x100096ef
mov dword [eax], esi
jmp 0x100096f1
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x10007a00
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10009746
cmp dword [esi + 0x60], 0
je 0x1000971f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x10090b80], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 4], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3