joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056cca
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.10017422
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10003a30
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.10034414
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x1007222c
push eax
call fcn.1003480a
push edi
push esi
call fcn.10017782
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret 4
Function at 0x10008e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056df6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10074084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001c066
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001767f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bfe0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
push edi
test eax, eax
jne 0x1000bffe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000c0a1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000c0a1
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000c0a1
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000c0a1
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, str.SeDebugPrivilege
call fcn.1000bf70
add esp, 4
test al, al
je 0x1000c0a1
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x1000c0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000c12e
movaps xmm0, xmmword [0x1006b0b0]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x4b
nop dword [eax]
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x10
jb 0x1000c100
lea eax, [ebp - 0xc]
mov byte [ebp - 0x23], 0
push eax
lea eax, [ebp - 0x33]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000c13e
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
test eax, eax
je 0x1000c128
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret

Function at 0x1000ee40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x10074084]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000eea2
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
cmp dword [esp + 0x18], edi
je 0x1000eec0
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x1000ee90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x1000f3b0
Capabilities:
Encode data using xor
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x10079258
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000f490
push 0x10079254
push 0
push 0
push 0x8004
push dword [0x10079258]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000f490
movaps xmm0, xmmword [0x1006af40]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x3f673136
movaps xmm0, xmmword [0x1006b1a0]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x35632517
movaps xmm0, xmmword [0x1006b270]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x76272d02
mov word [ebp - 4], 0x2a
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x3c
jb 0x1000f434
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x10079254]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000f490
push 0x10079250
push 0x800000
push dword [0x10079254]
push 0x6801
push dword [0x10079258]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1000f490
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1007924c], eax
call fcn.1001aca0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.1001b170
push 0x1000f210
push 0x10079248
call fcn.1001a9b0
call fcn.1001ad00
push 4
push 0x450890
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000f4ff
mov dword [0x10079248], 0x450890
call fcn.1001aca0
call esi
push eax
call fcn.1001b170
push 0x1000f210
push 0x10079248
call fcn.1001a520
call fcn.1001ad00
call fcn.1001aca0
call esi
push eax
call fcn.1001b170
push 0x1000f2b0
push 0x10079244
call fcn.1001a9b0
call fcn.1001ad00
push 4
push 0x4504c0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000f55c
mov dword [0x10079244], 0x4504c0
call fcn.1001aca0
call esi
push eax
call fcn.1001b170
push 0x1000f2b0
push 0x10079244
call fcn.1001a520
call fcn.1001ad00
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000fbf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.100346b0
add esp, 0xc
mov eax, 0x1007d6e4
cmp dword [0x1007d6f8], 0x10
cmovae eax, dword [0x1007d6e4]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Option.Ini
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
jne 0x1000fc76
xor eax, eax
jmp 0x1000fc89
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fc80
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.100028a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x110]
push eax
push 1
push str.LootWeapon
push str.PetLooting
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
mov edi, 1
push eax
push edi
push str.LootArmor
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d770], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootAccessory
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d771], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootNormal
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d772], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootMagic
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d773], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootRare
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d774], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootUpgrade
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d775], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
cmova ecx, edi
push edi
mov byte [0x1007d776], cl
push str.LootUnique
push str.PetLooting
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootCraft
cmova ecx, edi
push str.PetLooting
mov byte [0x1007d777], cl
call esi
cmp al, 1
movzx ecx, al
mov eax, dword [ebp - 0x114]
cmova ecx, edi
mov byte [0x1007d778], cl
cmp eax, 0x10
jb 0x1000fdf8
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.10002780
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x10010390
Capabilities:
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a36
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.100346b0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x118], 0
jne 0x100103f3
xor ecx, ecx
jmp 0x10010409
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010400
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
mov ecx, 0x1007d844
push eax
call fcn.100028a0
mov cl, 0x72
mov byte [ebp - 0x11a], 0
mov al, 0x2e
mov byte [ebp - 0x11c], cl
xor al, cl
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x11b], al
jne 0x10010441
xor ecx, ecx
jmp 0x10010459
lea ecx, [ebp - 0x11b]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010450
sub ecx, edx
push ecx
push ecx
lea eax, [ebp - 0x11b]
push eax
call fcn.10010f80
push 0xffffffffffffffff
inc eax
mov ecx, 0x1007d844
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10005150
mov esi, eax
cmp esi, 0x1007d844
je 0x100104c9
mov ecx, dword [0x1007d858]
cmp ecx, 0x10
jb 0x100104a3
inc ecx
push ecx
push dword [0x1007d844]
mov ecx, 0x1007d844
call fcn.10002780
push esi
mov ecx, 0x1007d844
mov dword [0x1007d858], 0xf
mov dword [0x1007d854], 0
mov byte [0x1007d844], 0
call fcn.10003710
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x100104ee
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.10002780
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.10001e60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1000bfe0
call fcn.1000c0c0
call fcn.10002a90
sidt [ebp - 0x124]
mov eax, dword [ebp - 0x122]
and eax, 0xff000000
cmp eax, 0xff000000
jne 0x10010540
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10002b00
call fcn.10002bb0
test al, al
jne 0x10010529
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
rdtsc
mov dword [ebp - 0x124], eax
rdtsc
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x124]
cmp eax, 0x1f4
ja 0x10010529
call fcn.10002c60
call fcn.100168d0
mov dword [0x100792ac], eax
test eax, eax
je 0x1001059f
mov ecx, eax
call fcn.10016ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x10010990
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057b08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100109fb
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x10010b63
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], fcn.10010b90
mov dword [ebp - 0x24], edi
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 8
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10010a81
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x10010a70
mov eax, dword [esi]
jmp 0x10010a72
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 1
jmp 0x10010b56
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x38], eax
call fcn.1001c654
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10010aa6
push dword [ebp - 0x38]
push 0
push ebx
call fcn.100346b0
add esp, 0xc
jmp 0x10010aa8
xor ebx, ebx
mov dword [ebp - 0x34], ebx
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push ebx
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10010b04
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], eax
jb 0x10010ae9
mov eax, dword [esi]
jmp 0x10010aeb
mov eax, esi
mov byte [eax], 0
test ebx, ebx
je 0x10010afb
push ebx
call fcn.1001c099
add esp, 4
mov dword [ebp - 4], 3
jmp 0x10010b56
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10010b3c
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], eax
jb 0x10010b25
mov eax, dword [esi]
jmp 0x10010b27
mov eax, esi
push ebx
mov byte [eax], 0
call fcn.1001c099
add esp, 4
mov dword [ebp - 4], 4
jmp 0x10010b56
add eax, ebx
mov ecx, esi
push eax
call fcn.100029a0
push ebx
call fcn.1001c099
add esp, 4
mov dword [ebp - 4], 5
test edi, edi
je 0x10010b63
push edi
call fcn.10010b90
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x10011970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10069f48]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10069f4c]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10069f30]
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 [0x10069f40]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10011a40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10011a09
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10011a56
inc ax
mov word [ebp - 0xa], ax
jmp 0x10011a1f
cmp eax, 0xe7
jne 0x10011a56
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10011a56
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 0x100119f0
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c055
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.1001c055
mov esp, ebp
pop ebp
ret
Function at 0x10013880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.1001ce70
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x100138a3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100168d0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 3
mov dword [ebp - 0x2f8], 0x6f775103
mov dword [ebp - 0x2f4], 0x67626c4f
xor eax, eax
mov dword [ebp - 0x2f0], 0x6a717750
mov word [ebp - 0x2ec], 0x646d
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001692a
mov cl, byte [ebp - 0x2f8]
jmp 0x10016915
push ebx
mov byte [ebp - 0x2e8], 0x2e
mov al, 0x40
xor al, byte [ebp - 0x2e8]
mov bl, 0x42
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x4a
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor ch, ch
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2de], ch
xor ah, al
mov byte [ebp - 0x2e4], bl
xor ch, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e2], ch
mov dh, dl
mov byte [ebp - 0x2e0], bh
xor dl, al
mov byte [ebp - 0x2de], 0
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x5a
mov byte [ebp - 0x2e1], dh
xor cl, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2f7]
push esi
push eax
lea eax, [ebp - 0x2e7]
mov byte [ebp - 0x2e6], cl
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
jne 0x100169f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c055
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100169de
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.100346b0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100169de
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100169de
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100169de
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001fc0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x100169de
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.1001c055
mov esp, ebp
pop ebp
ret