joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406752
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x4068ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068c6
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc

Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408964
mov ecx, ecx
xor dword [esi], eax
mov ebx, ebx
inc esi
or ecx, ecx
push 0xbbd141ad
pop ecx
cmp esi, edx
jne fcn.00408944
sub ecx, ecx
ret
Function at 0x100061c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call sub.MSVCR90.dll_memset
mov eax, dword [0x1008cd90]
add esp, 0xc
mov dword [ebp - 0x208], 0x100
test eax, eax
jne 0x1000624b
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10006246
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push 0xffffffffffffffff
push ecx
call sub.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [0x1008cd90], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1008cd90]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10007130
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x80]
push 2
push 1
lea eax, [ebp - 1]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x10007158
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.100070c0
mov esp, ebp
pop ebp
ret

Function at 0x100071a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x1008cd9c]
push esi
mov esi, eax
mov ecx, dword [esi]
push edi
mov edi, 0x38
test cl, 4
je 0x100071c0
mov edi, 0x3b
mov eax, dword [esi + 0x3c]
test al, 8
je 0x100071ca
or edi, 4
or eax, ecx
test al, 0x10
je 0x1000721b
mov eax, dword [esi + 0x80]
push eax
call sub.glib_2.0.dll_g_io_channel_win32_new_socket
add esp, 4
test byte [esi], 4
mov dword [esi + 0x8c], eax
je 0x1000720e
mov edx, dword [esi + 0x80]
push 2
push 1
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x1000720e
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.100070c0
test byte [esi + 0x3c], 8
je 0x10007242
call fcn.10007160
jmp 0x10007242
test al, al
jns 0x1000722d
mov eax, dword [esi + 0x80]
push eax
call sub.glib_2.0.dll_g_io_channel_win32_new_fd
jmp 0x10007239
mov ecx, dword [esi + 0x80]
push ecx
call sub.glib_2.0.dll_g_io_channel_win32_new_messages
mov dword [esi + 0x8c], eax
add esp, 4
mov edx, dword [esi + 0x8c]
push esi
push 0x10007960
push edi
push edx
call sub.glib_2.0.dll_g_io_add_watch
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x80]
mov ecx, dword [ebx + 4]
push esi
push eax
push ecx
call sub.glib_2.0.dll_g_hash_table_insert
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007b50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push str.panic.commitAddrSpaceReserved
push 0
call sym.vmtools.dll_Preference_GetBool
push str.panic.addrSpaceReservedKB
push 0x1800
mov bl, al
call sym.vmtools.dll_Config_GetLong
add esp, 0x10
test eax, eax
je 0x10007c1b
cmp eax, 0x5000
jbe 0x10007b8b
mov eax, 0x5000
shl eax, 0xa
mov dword [0x1008cda4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x1008cda4]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
push 1
imul eax, ecx
movsx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x1000
add ecx, 0x2000
push ecx
push eax
push 0
mov dword [0x1008cda4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x1008cda4]
shr ecx, 0xa
mov dword [0x1008cda8], eax
cmp ecx, 0x1800
je 0x10007c1b
test eax, eax
je 0x10007c1b
push ecx
push eax
push str.Reserved_virtual_address_space_for_CoreDump_addr:_p__size:_IuKB__n
call sym.vmtools.dll_Log
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10055ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x10055ac0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x10055ce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_sync_driver_thread:__d_n
call sym.vmtools.dll_Debug
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [ecx], 0xffffffff
xor al, al
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov al, 1
pop ebp
ret

Function at 0x10056740
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1005686d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1005686d
cmp dword [ebp + 0x10], ebx
je 0x1005686d
push eax
push str.SELECT__FROM_Win32_NetworkAdapter_WHERE_MACAddress___s_and_Manufacturer___Microsoft
push ebx
call sym.vmtools.dll_Str_Asprintf
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10056793
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push esi
push ecx
mov ecx, edi
call fcn.10056650
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x10056842
lea edx, [ebp - 8]
push edx
push str.__Path
push eax
call fcn.1004d360
add esp, 0xc
test al, al
jne 0x100567cc
mov esi, 0x80004005
jmp 0x10056842
mov eax, dword [ebp - 8]
push eax
call fcn.10014300
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100567f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100567f3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10056842
push eax
push str.ASSOCIATORS_OF__s_where_ResultClass__Win32_NetworkAdapterConfiguration
push 0
call sym.vmtools.dll_Str_Asprintf
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10056814
mov esi, 0x8007000e
jmp 0x10056842
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
mov dword [ebp + 8], 0
call fcn.10056650
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x10056837
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
push ebx
call edi
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x402e00
Capabilities:
Terminate process

Disassembly:
mov dword [0x40875c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x408758], bl
jne 0x402e5c
cmp dword [0x40961c], 0
je 0x402e4a
mov esi, dword [0x409614]
sub esi, 4
cmp esi, dword [0x40961c]
jb 0x402e4a
mov eax, dword [esi]
test eax, eax
je 0x402e3f
call eax
sub esi, 4
cmp esi, dword [0x40961c]
jae 0x402e37
push 0x40801c
push 0x408014
call fcn.00402e80
add esp, 8
push 0x408024
push 0x408020
call fcn.00402e80
add esp, 8
test ebx, ebx
jne 0x402e7d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x404630
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x408e30
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x404658
add ecx, 8
inc eax
cmp ecx, 0x408eb8
jb 0x404648
cmp dword [eax*8 + 0x408e30], edx
lea ebx, [eax*8]
jne 0x404813
cmp dword [0x4086dc], 1
je 0x4047d8
cmp dword [0x4086dc], 0
jne 0x40468f
cmp dword [0x4086e0], 1
je 0x4047d8
cmp edx, 0xfc
je 0x404813
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4046cc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404710
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x408f04
push ebp
call fcn.00405880
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408ee4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x408e34]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00405c50
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x409630]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4047ef
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x408e34]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x404bd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x409620], edx
push ebx
push esi
push edi
push ebp
jbe 0x404dd7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x409630
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x404dd7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x404c39
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x404c4a
push 2
push 0
push edx
call fcn.00405d00
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x404ce6
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x404d1f
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x404cad
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x404c9b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x404c82
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d15
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x404c6d
jmp 0x404d1f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d15
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x404d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x404dc6
cmp dword [esp + 0x10], 0
je 0x404d78
cmp dword [esp + 0x10], 5
jne 0x404d5b
mov dword [0x408718], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40871c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00402fe0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x404da2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x404da2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x408718], 0x1c
mov dword [0x40871c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x408718], 9
mov dword [0x40871c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x405dc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00406230
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x409620], esi
jbe 0x405f0d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x409630]
test byte [edx + ecx*8 + 4], 1
je 0x405f0d
push 1
push ebx
push esi
call fcn.00405d00
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x405efd
push 2
push ebx
push esi
call fcn.00405d00
add esp, 0xc
cmp eax, 0xffffffff
je 0x405efd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x405ea3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.004061b0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x405e66
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00404bd0
add esp, 0xc
cmp eax, 0xffffffff
je 0x405e82
sub ebp, eax
test ebp, ebp
jg 0x405e5b
jmp 0x405e97
cmp dword [0x40871c], 5
jne 0x405e95
mov dword [0x408718], 0xd
mov ebx, eax
push edi
push esi
call fcn.004061b0
add esp, 8
jmp 0x405ee0
jge 0x405ee0
push 0
push ecx
push esi
call fcn.00405d00
add esp, 0xc
push esi
call fcn.00405000
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x405ee0
mov dword [0x408718], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40871c], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00405d00
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x408718], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x4017ef
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov ebx, eax
test eax, eax
je 0x40180a
mov edx, dword [0x404050]
add edx, edx
jmp 0x401810
mov edx, dword [0x404050]
mov eax, 0x404054
call fcn.00401720
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4031fd
push edx
sub edi, fcn.004029a7
push edi
xor eax, eax
push fcn.004029a7
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401865
mov eax, fcn.004029a7
mov ebx, esi
mov edx, edi
call fcn.00401720
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004020e5
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x10001220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10058040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x1000128c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10001272
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x100012b9
inc ax
mov word [ebp - 0xa], ax
jmp 0x1000128c
cmp eax, 0xe7
jne 0x100012b9
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x100012b9
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10001255
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046e46
leave
ret
xor al, al
jmp 0x100012aa

Function at 0x10001415
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov eax, esi
test edx, edx
je 0x1000144a
cmp word [edx], di
je 0x1000144a
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001473
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov edi, eax
test ecx, ecx
je 0x10001471
cmp ecx, esi
je 0x10001471
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10001684
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
mov dword [0x100ceac8], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x100ceac4], ebx
push edi
push ebx
mov dword [0x100ceac0], eax
mov dword [0x100ceacc], ebx
mov dword [0x100cead0], eax
mov dword [0x100cead4], ebx
mov dword [0x100cead8], ebx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov esi, eax
mov dword [0x100ceaec], edx
mov eax, 0x55555555
mov dword [0x100ceae8], esi
xor edi, edi
mov dword [0x100cfe68], eax
pop ecx
mov dword [0x100cfe6c], eax
inc edi
push 0x5851f42d
mov ecx, edx
xor eax, eax
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edx
xor ecx, esi
push eax
push ecx
call fcn.1004aae0
mov esi, eax
mov eax, 0x138
add esi, edi
mov dword [edi*8 + 0x100ceae8], esi
adc edx, ebx
mov dword [edi*8 + 0x100ceaec], edx
inc edi
cmp edi, eax
jb 0x100016e2
movaps xmm0, xmmword [0x10054040]
pop edi
pop esi
mov dword [0x100ceae0], eax
mov eax, 0x100ceac0
movups xmmword [0x100cfe70], xmm0
pop ebx
ret 0x10
Function at 0x1000190e
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x1004aff9
call fcn.1004a8cb
mov esi, dword [0x100f0ef4]
xor edi, edi
mov al, 1
xchg byte [esi], al
push 4
call fcn.10046e54
mov dword [ebp - 0x10], eax
mov dword [eax], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
push eax
push 0x10002c92
push edi
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1000196e
cmp dword [esi + 0x60], edi
je 0x1000195f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call fcn.1004a8a8
ret
push 6
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3