joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aa7f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015da9d
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10863dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], edi
push eax
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 1
movzx eax, word [ebp - 0x4c]
cmp eax, 9
ja case.0x100aa872.1
movzx eax, byte [eax + 0x100aa998]
jmp dword [eax*4 + 0x100aa984]
mov eax, str.x64__AMD_or_Intel_
mov ecx, 0x12
jmp 0x100aa8b3
mov eax, 0x1023a650
mov ecx, 3
jmp 0x100aa8b3
mov eax, str.Intel_Itanium_based
mov ecx, 0x13
jmp 0x100aa8b3
mov eax, 0x1023a668
mov ecx, 3
jmp 0x100aa8b3
mov eax, str.Unknown_architecture
mov ecx, 0x14
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10010480
push dword [ebp - 0x38]
lea eax, [ebp - 0x9c]
push eax
call fcn.100bdca0
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x84]
push str.CPU_Architecture:
push eax
call fcn.100108f0
mov byte [ebp - 4], 3
push str._nNumber_of_Processors:
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10010a90
add esp, 0x20
mov byte [ebp - 4], 5
mov ecx, edi
push esi
push eax
push dword [ebp - 0x54]
call fcn.10012420
mov eax, 4
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x50], eax
and eax, 0xfffffffb
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 4
or eax, 1
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.1000f6a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.1000f6a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.1000f6a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000f6a0
mov eax, edi
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.10107e25
mov esp, ebp
pop ebp
ret
Function at 0x100bf6f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10863dc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x258]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x100bf81a
lea eax, [ebp - 0x258]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x100bf81a
nop dword [eax]
mov ecx, str.aow_exe.exe
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100bf786
test dx, dx
je 0x100bf782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100bf786
add eax, 4
add ecx, 4
test dx, dx
jne 0x100bf760
xor eax, eax
jmp 0x100bf78b
sbb eax, eax
or eax, 1
test eax, eax
je 0x100bf7cf
mov eax, str.AndroidProcess.exe
lea ecx, [ebp - 0x234]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100bf7c6
test dx, dx
je 0x100bf7c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100bf7c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x100bf7a0
xor eax, eax
jmp 0x100bf7cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100bf804
push dword [ebp - 0x250]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100bf804
push 0x28
lea eax, [ebp - 0x2c]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x100bf801
cmp dword [ebp - 0x20], 0x11e1a300
ja 0x100bf82e
push esi
call ebx
lea eax, [ebp - 0x258]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x100bf750
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10107e25
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10107e25
mov esp, ebp
pop ebp
ret

Function at 0x100c14e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x100c1501
push 0
push 0
push 0
push 0x100c07b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
ret
Function at 0x100c1ba0
Capabilities:
Create thread
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x858], 0
jne 0x100412a7
push 0
push 0
push 0
push 0x10041640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x858], eax
mov al, 1
pop esi
ret
push ebx
push esi
push 0x1f00
xor bl, bl
call dword [sym.imp.OPENGL32.dll_glGetString]
mov esi, eax
test esi, esi
je 0x100c1be8
push 0x1023c9ec
push esi
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
jne 0x100c1bd9
push 0x1023c9f0
push esi
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
je 0x100c1c08
push str.AMD_ATI_GPU_detected.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov bl, 1
jmp 0x100c1bf3
push str.Failed_to_get_OpenGL_vendor_string.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1001e3a0
add esp, 8
mov ecx, eax
push 0x1001e880
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x10866d80]
mov byte [eax + 0x6e5], bl
mov ecx, dword [0x1086523c]
call fcn.1009a710
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x40
push str.Oscar_Private
push str.Press_Ok_in_lobby
push 0
call esi
push 0x44
push str.Oscar_Private
push str.Stream_mode__
push 0
call esi
mov ecx, dword [0x108651d4]
pop esi
pop ebx
cmp eax, 7
jne 0x10041280
jmp fcn.100bf4d0
Function at 0x100fa860
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101644dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10863dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov edx, ebx
cmp dword [ebx + 0x14], 0xf
jbe 0x100fa897
mov edx, dword [ebx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [ebx + 0x10], ecx
jbe 0x100fa8b5
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x100fa8a3
push esi
push ebx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.1001c320
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100fa99d
cmp dword [edi + 8], 0x71c71c7
je 0x100fa9b4
lea eax, [edi + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x14], 0
call fcn.10107acd
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
add eax, 8
mov ecx, eax
mov dword [ebp - 0x24], eax
push ebx
call fcn.1000f7b0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov byte [ebx + 0x18], 0
mov dword [ebp - 4], 3
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101991b0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101991b0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
jbe 0x100fa980
mov ecx, edi
call fcn.100fad10
push esi
push ebx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.1001c320
mov ecx, dword [eax]
jmp 0x100fa983
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push ecx
push esi
mov ecx, edi
call fcn.100facb0
mov dword [ebp - 4], 0xffffffff
add eax, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x100ff070
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164ece
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10863dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push 0x10866dc4
push eax
call fcn.100fee00
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, eax
push 2
push 0x103e9a44
call fcn.1000f590
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x2c], 1
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10010ae0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.1000f6a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.1000f6a0
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
cmova edx, dword [ebp - 0x28]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x30], esp
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edi, [eax + 1]
mov dword [esi + 0x14], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ff186
sub eax, edi
mov ecx, esi
push eax
push edx
call fcn.10011450
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.100ffc30
mov ecx, esp
mov dword [ebp - 0x30], esp
xorps xmm0, xmm0
push 3
push 0x103e9a40
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10011450
mov byte [ebp - 4], 8
mov byte [ebp - 4], 6
call fcn.100ffc30
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1000f6a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1000f6a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.1000f6a0
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.10107e25
mov esp, ebp
pop ebp
ret

Function at 0x100ffb30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ecx + 4]
test edi, edi
jle 0x100ffb6b
push esi
mov esi, dword [ebx]
sub esi, ecx
sub esi, 4
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x108625a8]
sub edi, 1
jne 0x100ffb50
pop esi
mov ecx, dword [ebx]
not eax
mov edx, eax
shr edx, 0x18
pop edi
mov byte [ecx], dl
mov edx, eax
mov ecx, dword [ebx]
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
mov ecx, dword [ebx]
shr edx, 8
mov byte [ecx + 2], dl
mov ecx, dword [ebx]
mov byte [ecx + 3], al
add dword [ebx], 4
pop ebx
pop ebp
ret
Function at 0x100ffc30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164fad
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10863dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
push 3
push 0x1023a5fc
push 0
call fcn.10013160
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x103e9a38
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x100ffcdc
or esi, 0xffffffff
jmp 0x100ffd00
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000f6a0
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.10107e25
mov esp, ebp
pop ebp
ret
Function at 0x101000d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0
jne 0x101000f1
push 0
push 0
push 0
push 0x10100100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x60], eax
pop esi
ret
Function at 0x10102da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov ebx, 1
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
xor eax, eax
mov ecx, esi
push dword [ebp + 0x10]
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10108400
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 0x10102dc3
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], 0x138
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10103940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp + 8], 0
test eax, eax
je 0x1010397f
cmp word [eax], 0
je 0x1010397f
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101039ac
mov ecx, dword [ebp + 8]
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
mov edi, eax
test ecx, ecx
je 0x101039a9
cmp ecx, esi
je 0x101039a9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10103a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x10863dc0]
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 - 0xa90]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10103aa4
push str.Error_opening_Steam_key_n
jmp 0x10103b64
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10103b5f
mov ecx, dword [ebp - 0xa94]
cmp ecx, 1
jb 0x10103b5f
shr ecx, 1
mov eax, esi
je 0x10103b18
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x10103b13
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x10103b00
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.101038b0
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10103610
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10107e25
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.10103b90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.10107e25
mov esp, ebp
pop ebp
ret
Function at 0x10103c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10863dc0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x103e9df8]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x103e9dfc]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x103e9de0]
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 [0x103e9df0]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10103d00
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10103cc9
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10103d16
inc ax
mov word [ebp - 0xa], ax
jmp 0x10103cdf
cmp eax, 0xe7
jne 0x10103d16
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10103d16
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 0x10103cb0
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10107e25
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.10107e25
mov esp, ebp
pop ebp
ret

Function at 0x101075f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10107617
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1010761a
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101075cc
pop esi
leave
ret 8
Function at 0x10114340
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x10863dc0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1011440b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.1012de90
add esp, 0xc
test eax, eax
jne 0x1011440b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.1012de90
add esp, 0xc
test eax, eax
jne 0x1011440b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10114394
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1012de60
add esp, 0xc
test eax, eax
je 0x101143c8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1012de60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101143ca
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x101143f6
mov al, byte [esi]
push eax
call fcn.101210f0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x101143d8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10107e25
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10107e25
add esp, 0x18
ret
Function at 0x1011e130
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x608], 0
je 0x1011e174
push 1
push edi
call fcn.10110030
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10110030
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x1011e189
sub ecx, 1
je 0x1011e189
sub ecx, 1
jne 0x1011e1ba
push dword [edi + 0x598]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x103edb38]
push 1
add eax, edx
push 2
push eax
call esi
push dword [edi + 0x598]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

Function at 0x1011e8c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10863dc0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x448
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x458
cmove esi, eax
mov eax, dword [ebx + 0x548]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1011e9ce
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x1011e480
jne 0x1011e9ce
cmp dword [esi], 0
je 0x1011e958
test edi, edi
je 0x1011e9ce
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.1012c640
add esp, 0x14
cmp eax, 0xffffffff
je 0x1011e9ce
test al, 1
je 0x1011e9ce
mov ecx, dword [esi]
test ecx, ecx
jne 0x1011e9ab
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10863e30]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x1011e9c7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1011e9ce
add dword [esi + 8], eax
jmp 0x1011e9ce
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1011ea37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1011ea08
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x1011ea3c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1010a210
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.1011e1c0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x1011ea39
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10107e25
add esp, 0x10c
ret
Function at 0x1011ee70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x1011ee8d
push eax
call fcn.10118720
add esp, 4
test eax, eax
jne 0x1011eeac
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x1011ee8a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1011ee8a
mov al, 1
ret