joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100197d0
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 [0x100bb084]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x3f
mov dword [ebp - 0x2f8], 0x534b6d3f
mov dword [ebp - 0x2f4], 0x5b5e5073
xor eax, eax
mov dword [ebp - 0x2f0], 0x564d4b6c
mov word [ebp - 0x2ec], 0x5851
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001982a
mov cl, byte [ebp - 0x2f8]
jmp 0x10019815
push ebx
mov byte [ebp - 0x2e8], 0x64
mov al, 0xa
xor al, byte [ebp - 0x2e8]
mov bl, 8
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor bl, al
xor ah, al
mov byte [ebp - 0x2ea], 0
xor bh, al
mov byte [ebp - 0x2e3], ah
mov cl, 0x10
mov byte [ebp - 0x2e4], bl
xor cl, al
mov byte [ebp - 0x2e0], bh
xor dl, dl
mov byte [ebp - 0x2e6], cl
xor dl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x4a
mov byte [ebp - 0x2e5], dl
xor ch, al
xor dh, dh
xor dh, al
mov byte [ebp - 0x2e2], ch
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 - 0x2e1], dh
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 0x100198ea
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005baa0
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 0x100198d8
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.10060920
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 0x100198d8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100198d8
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100198d8
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001fa0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x100198d8
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.1005baa0
mov esp, ebp
pop ebp
ret
Function at 0x100199b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x3c
mov al, 0x52
xor al, byte [ebp - 0x10]
mov bl, 0x50
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x58
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x48
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x12
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
jne 0x10019a28
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x100af3f0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1208340e
mov dword [ebp - 0x14], 0x40105
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10019a43
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10019a1f
test esi, esi
jne 0x10019a71
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019a90
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.10012390
test eax, eax
je 0x10019b9b
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x10019b9b
push eax
call esi
test ebx, ebx
je 0x10019b9b
movaps xmm0, xmmword [0x100af110]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xe
jb 0x10019af0
xor al, al
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0xe], al
mov bl, 2
xor al, byte [ebp - 0x18]
mov ah, bl
mov byte [ebp - 0x17], al
mov dl, 0xa
mov al, byte [ebp - 0x18]
mov bh, ah
mov byte [ebp - 9], ah
xor bl, al
xor ah, al
mov byte [ebp - 0x19], 0
xor bh, al
mov byte [ebp - 0x13], ah
mov dh, dl
mov byte [ebp - 0x14], bl
xor dl, al
mov byte [ebp - 0x10], bh
xor dh, al
mov byte [ebp - 0x15], dl
mov cl, 0x1a
mov byte [ebp - 0x11], dh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 0x40
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x17]
mov byte [ebp - 0x12], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.10014e20
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10019bb4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
jns 0x10019ba3
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x10019bb1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005baa0
mov esp, ebp
pop ebp
ret
Function at 0x10019fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xa], 0
mov cl, 0x64
mov byte [ebp - 0xa], 0
mov dl, 0x16
mov byte [ebp - 0x10], cl
mov dh, 0x14
mov dword [ebp - 4], edi
xor dl, cl
xor dh, cl
mov byte [ebp - 0xe], dl
sub esp, 0x18
mov byte [ebp - 0xb], dh
mov al, 3
mov edx, esp
mov bl, 0xb
mov ah, 0x11
xor al, cl
xor bl, cl
mov byte [ebp - 0xf], al
xor ah, cl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], ah
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1001a02b
mov eax, dword [edx]
jmp 0x1001a02d
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001a03a
xor ecx, ecx
jmp 0x1001a049
lea ecx, [ebp - 0xf]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a040
sub ecx, esi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [edi]
call fcn.10014550
add esp, 0x18
mov dword [ebp - 0x20], 0x514b5d3f
mov edi, eax
mov dword [ebp - 0x1c], 0x5e535c60
mov cl, 0x3f
mov dword [ebp - 0x18], 0x5e5d6051
mov word [ebp - 0x14], 0x5451
xor eax, eax
mov byte [ebp - 0x12], 0
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xd
jae 0x1001a093
mov cl, byte [ebp - 0x20]
jmp 0x1001a084
sub esp, 0x18
mov byte [ebp - 0x12], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x1001a0b7
xor ecx, ecx
jmp 0x1001a0c9
lea ecx, [ebp - 0x1f]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a0c0
sub ecx, esi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, edi
call fcn.10014550
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001aa20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x64
mov al, 6
xor al, byte [ebp - 0x10]
mov dl, 5
mov byte [ebp - 0xf], al
mov dh, 0x3b
mov al, byte [ebp - 0x10]
mov bl, 0x17
push esi
xor dl, al
mov byte [ebp - 7], 0
xor dh, al
mov byte [ebp - 0xe], dl
push edi
mov esi, ecx
mov byte [ebp - 0xb], dh
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
mov ch, bl
mov ah, 1
mov bh, 7
mov cl, 0xb
xor bl, al
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
xor cl, al
mov byte [ebp - 0xa], bh
xor ch, al
mov byte [ebp - 9], cl
mov byte [ebp - 8], ch
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1001aa90
mov eax, dword [edx]
jmp 0x1001aa92
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001aa9f
xor ecx, ecx
jmp 0x1001aaae
lea ecx, [ebp - 0xf]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aaa5
sub ecx, edi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001aadd
mov dword [esi + 4], 0
movaps xmm0, xmmword [str.__KQ_oKWPLiVZH]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x1001aaf0
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x13], 0
jne 0x1001ab21
xor ecx, ecx
jmp 0x1001ab30
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ab27
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi + 4]
call fcn.10014550
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001ab5a
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x1001ab74
cmp dword [0x100c4268], 0
mov ecx, 0x10b78ba
sete dl
call fcn.10014d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x100af440]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0xd173b01
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0x10051110
xor ecx, ecx
mov dword [ebp - 8], 0xa0b0d
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10021360
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x10021391
xor ecx, ecx
jmp 0x100213a0
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021397
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003cc80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100940e0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100bb084]
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 edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x100c0114], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x1003ce43
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x1003ce43
mov al, byte [ebx]
test al, al
je 0x1003ce43
cmp byte [ebp + 8], 0
jne 0x1003ce43
movaps xmm0, xmmword [0x100aeec0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1003cd00
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004b40
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x45
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10004b40
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1003cd5a
push 4
push ebx
call esi
test eax, eax
jne 0x1003cd5a
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x100ad8ac]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1003cd73
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.100048f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004b40
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1003cda7
push 4
push ebx
call esi
test eax, eax
jne 0x1003cda7
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x100ad8f0]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1003cdc0
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.100048f0
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1003cdd8
push 4
push ebx
call esi
test eax, eax
jne 0x1003cdd8
mov ecx, ebx
call dword [0x100ad8b4]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x2c
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10004b40
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x1003ce0e
push 4
push ebx
call esi
test eax, eax
jne 0x1003ce0e
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x100ad8f4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1003ce27
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.100048f0
mov ecx, edi
call fcn.1003e8e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1003ce43
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
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.1005baa0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004dc90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100bb084]
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 ebx, ecx
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x100c017c], eax
mov edi, dword [ebx]
push 4
push edi
call esi
test eax, eax
jne 0x1004de49
push 4
add edi, 0xe5
push edi
call esi
test eax, eax
jne 0x1004de49
mov al, byte [edi]
test al, al
je 0x1004de49
cmp byte [ebp + 8], 0
jne 0x1004de49
mov cl, 0x15
mov dword [ebp - 0x3c], 0x617b5015
mov dword [ebp - 0x38], 0x41356770
xor eax, eax
mov dword [ebp - 0x34], 0x5c357274
mov word [ebp - 0x30], 0x51
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1004dd2f
mov cl, byte [ebp - 0x3c]
jmp 0x1004dd20
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004b40
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x1d
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10004b40
mov byte [ebp - 4], 1
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004dd7c
push 4
push edi
call esi
test eax, eax
jne 0x1004dd7c
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x100ad8ac]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1004dd95
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004ddcf
push 4
push edi
call esi
test eax, eax
jne 0x1004ddcf
push 4
add edi, 0x10c
push edi
call esi
test eax, eax
jne 0x1004ddcf
mov eax, dword [edi]
test eax, eax
je 0x1004ddcf
lea edi, [eax + 0x130]
push 4
push edi
call esi
test eax, eax
jne 0x1004ddcf
mov dword [edi], 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004b40
mov byte [ebp - 4], 2
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004de03
push 4
push edi
call esi
test eax, eax
jne 0x1004de03
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x100ad8f0]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1004de1c
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004de34
push 4
push edi
call esi
test eax, eax
jne 0x1004de34
mov ecx, edi
call dword [0x100ad8b4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004de49
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
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.1005baa0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10050560
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094db8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.100502f0
lea ecx, [ebp - 0x7c]
call fcn.100503a0
push esi
lea ecx, [ebp - 0x7c]
call fcn.10050490
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1005060a
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.100048f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005baa0
mov esp, ebp
pop ebp
ret

Function at 0x10051f90
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.1005c870
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 0x10051fb3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10056360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x100aede4]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x100aede8]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x100aedcc]
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 [0x100aeddc]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10056430
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x100563f9
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10056446
inc ax
mov word [ebp - 0xa], ax
jmp 0x1005640f
cmp eax, 0xe7
jne 0x10056446
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10056446
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 0x100563e0
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005baa0
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.1005baa0
mov esp, ebp
pop ebp
ret
Function at 0x10058a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100952de
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100bb064]
cmp eax, 0xffffffff
jne 0x10058a36
xor ebx, ebx
jmp 0x10058a3f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10058a81
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10058ac0
test esi, esi
jne 0x10058ac4
push 0x10058280
push 0x100bebb8
call fcn.10057f70
mov eax, dword [0x100bb064]
add esp, 8
cmp eax, 0xffffffff
je 0x10058a81
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10058aae
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10058aae
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10058b06
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10058aef
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10058ac4
cmp dword [ebx + 0x18], 0
je 0x10058a50
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10058b2d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10058b2d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100582a0
cmp dword [ebx + 0x18], 0
jne 0x10058b10
jmp 0x10058a50