joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005cb1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100d058]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], edi
je 0x1005d79
cmp word [esi + 2], di
je 0x1005d79
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x1005cef
push eax
call sub.SHELL32.dll_SHChangeNotifyDeregister
mov dword [esi + 0x28], edi
xor eax, eax
mov ax, word [esi + 0x24]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp ax, di
mov edi, dword [sym.imp.KERNEL32.dll_DeleteAtom]
je 0x1005d44
push 0x118
lea ecx, [ebp - 0x220]
push ecx
push eax
call ebx
test eax, eax
je 0x1005d2d
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov dword [ebp - 0x224], eax
xor eax, eax
mov ax, word [esi + 0x24]
push eax
call edi
and word [esi + 0x24], 0
cmp dword [ebp - 0x224], 0
jne 0x1005d6a
push 0x104
lea eax, [ebp - 0x108]
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
call ebx
test eax, eax
je 0x1005d6a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ax, word [esi + 2]
push eax
call edi
and word [esi + 2], 0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01003019
leave
ret

Function at 0x1005d89
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100d058]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x1005e59
xor eax, eax
mov ax, word [esi + 2]
test ax, ax
je 0x1005e59
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
test eax, eax
je 0x1005e59
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1005de3
push eax
call sub.SHELL32.dll_SHChangeNotifyDeregister
and dword [esi + 0x28], 0
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathA]
test eax, eax
mov dword [ebp - 0x110], eax
je 0x1005e30
lea eax, [ebp - 0x110]
push eax
push 1
push 0x467
push 0x2000
push 2
push dword [0x100e1c4]
call sub.SHELL32.dll_SHChangeNotifyRegister
push dword [ebp - 0x110]
mov dword [esi + 0x28], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [esi + 0x28], 0
jne 0x1005e59
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005e59
or eax, 1
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01003019
leave
ret 4
Function at 0x1005e6b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x100d058]
and dword [ebp - 0x2b0], 0
or dword [ebp - 0x2b4], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x50
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0xa4]
push eax
push 0x106
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0xffffffffffffffff
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0xa4]
push eax
push ebx
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0100a195
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2bc], eax
jl 0x1005f81
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1005f2c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
call edi
push dword [ebp - 0x2b8]
mov word [esi + 2], ax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call edi
mov word [esi + 0x24], ax
cmp dword [ebp - 0x2b4], ebx
je 0x1005f79
lea eax, [ebp - 0x2b8]
push eax
push ebx
push dword [ebp - 0x2b4]
push 0x1005bcb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1005f6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2bc], 0x800704c7
je 0x1005fb6
xor eax, eax
inc eax
jmp 0x1005fb8
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005f88
push esi
call fcn.01005d89
jmp 0x1005f94
cmp eax, 0x800704c7
je 0x1005fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], ebx
je 0x1005f5a
xor eax, eax
cmp dword [ebp - 0x2b0], 0x483
sete al
add eax, 0x21a
push eax
call fcn.01001d81
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01003019
leave
ret 0x10
Function at 0x100643d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100d058]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
inc edi
or ebx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x198], ecx
je 0x100651a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x198], eax
je 0x100650b
push dword [esi + 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [esi + 4]
jne 0x10064fa
and dword [ebp - 0x194], 0
xor edi, edi
cmp ebx, edi
jl 0x10064d2
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x194], edi
jne 0x10064d2
cmp dword [esi + 0x10], edi
jne 0x10064d2
push 0x100dfe0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x190], edi
je 0x10064e6
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x18c], edi
je 0x10064fa
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x198], edi
je 0x100650b
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01003019
leave
ret 8
cmp dword [esi + 0x10], ecx
je 0x100656c
cmp dword [0x100d4ec], ecx
jne 0x100656c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x120
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [0x100e1c4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push edi
push 0x100dde0
lea eax, [ebp - 0x84]
push eax
push dword [0x100d50c]
call fcn.01001b37
dec eax
dec eax
je 0x100650b
push 0x104
lea eax, [ebp - 0x188]
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
test eax, eax
je 0x100650b
push 0x20
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10064ad
push ebx
call fcn.01005c0c
mov edi, eax
test edi, edi
je 0x10064ad
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x18c], eax
jne 0x10065ca
shr edi, 1
jne 0x10065b3
test edi, edi
je 0x10064ad
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x190], eax
je 0x10064ad
push edi
push dword [ebp - 0x190]
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
mov edi, eax
test edi, edi
je 0x10064a6
push edi
push dword [ebp - 0x190]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x10065ec
Function at 0x1008e61
Capabilities:
Create process on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x500
mov eax, dword [0x100d058]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x4c0], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, 0x104
push esi
lea edx, [ebp - 0x2ac]
push edx
mov dword [ebp - 0x4c4], ecx
push 0xffffffffffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
push eax
push ecx
push 0
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4bc], ecx
call edi
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.01008a64
test ebx, ebx
je 0x1008f1f
cmp byte [ebx], 0
je 0x1008f1f
push 0x100156c
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.01008c5d
push esi
lea eax, [ebp - 0x2ac]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x4b4]
push eax
call fcn.01008c5d
lea eax, [ebp - 0x4b4]
push eax
push esi
lea eax, [ebp - 0x2ac]
push eax
call fcn.01008a64
push 0x50
lea eax, [ebp - 0xa4]
push eax
push 0x106
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4c0]
push eax
push dword [ebp - 0x4c4]
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0100a273
xor esi, esi
cmp dword [ebp - 0x4c0], esi
je 0x1008f6e
cmp eax, esi
jge 0x1008f82
push 1
lea eax, [ebp - 0x4b4]
push eax
push esi
call dword [sym.imp.SHDOCVW.dll_Ordinal_229]
cmp eax, esi
jne 0x1008f8e
cmp dword [ebp - 0x4bc], esi
jne 0x1009038
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x4fc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4f0], eax
lea eax, [ebp - 0x500]
push eax
mov dword [ebp - 0x500], 0x3c
mov dword [ebp - 0x4fc], 0x800140
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x4e4], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1009018
cmp dword [ebp - 0x4c8], esi
je 0x1009038
lea eax, [ebp - 0x4b8]
push eax
push esi
push dword [ebp - 0x4c8]
push 0x1008aeb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100900c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009038
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x1009038
xor ecx, ecx
cmp eax, 0x483
sete cl
add ecx, 0x21a
push ecx
call fcn.01001d81
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01003019
leave
ret 0xc
Function at 0x100ac8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10015c8
push OleLoadFromStream
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ace5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001464
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100acd8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100ace7
xor eax, eax
pop esi
leave
ret 4
Function at 0x100ae06
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001650
call fcn.0100b050
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100ae43
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ae43
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100ae5b
cmp eax, 0x20b
je 0x100ae48
mov dword [ebp - 0x1c], ebx
jmp 0x100ae6f
cmp dword [ecx + 0x84], 0xe
jbe 0x100ae43
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100ae69
cmp dword [ecx + 0x74], 0xe
jbe 0x100ae43
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100e260], 0xffffffff
or dword [0x100e264], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100dcd0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100dccc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100e268], eax
call fcn.0100b048
cmp dword [0x100d120], ebx
jne 0x100aeca
push fcn.0100b048
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100b031
push 0x100d010
push 0x100d00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100dcc8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100dcc4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100d008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100af60
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100af34
cmp al, 0x22
jne 0x100af26
cmp byte [esi], 0x22
jne 0x100af3d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100af47
cmp al, 0x20
jbe 0x100af39
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100af6b
movzx eax, word [ebp - 0x50]
jmp 0x100af6e
cmp byte [esi], 0x20
jbe 0x100af3d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100af60
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100af8b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100afc0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100b08b
ret
Function at 0x428610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x414015
lea edi, [esi - 0x13015]
push edi
or ebp, 0xffffffff
jmp 0x428632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428628
mov eax, 1
add ebx, ebx
jne 0x42864b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428640
jne 0x42865c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428640
xor ecx, ecx
sub eax, 3
jb 0x428670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4286e2
mov ebp, eax
add ebx, ebx
jne 0x42867b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4286ac
inc ecx
add ebx, ebx
jne 0x428698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42868d
jne 0x4286a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42868d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4286cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4286bd
jmp 0x42862e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4286cc
add edi, ecx
jmp 0x42862e
pop esi
mov edi, esi
mov ecx, 0x98e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4286ea
cmp byte [edi], 9
jne 0x4286ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4286ef
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x42875e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2806c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42871c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28074]
or eax, eax
je 0x428758
mov dword [ebx], eax
add ebx, 4
jmp 0x428739
call dword [esi + 0x28070]
mov ebp, dword [esi + 0x28078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x428792
sub esp, 0xffffff80
jmp 0x401130

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10001460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [section..data]
push 0
push dword [0x100ca784]
call fcn.10051c70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x40
push dword [section..data]
push dword [0x100c6004]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push dword [section..data]
push dword [0x100ca784]
push dword [0x100c6004]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [section..data]
push dword [0x100ca784]
call fcn.10001650
add esp, 8
mov dword [0x100ca780], 1
mov esp, ebp
pop ebp
ret

Function at 0x100014e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push fcn.10001460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10001650
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0xc], 0x3a344b25
mov dword [ebp - 8], 0x134c442b
mov word [ebp - 4], 0x2f62
test esi, esi
jle 0x100016a0
push edi
mov edi, dword [ebp + 8]
nop dword [eax + eax]
mov eax, 0xcccccccd
mul ecx
mov eax, ecx
shr edx, 3
lea edx, [edx + edx*4]
add edx, edx
sub eax, edx
mov al, byte [ebp + eax - 0xc]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x10001680
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100016b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
mov dword [ebp - 0x40], 0x4295115a
mov dword [ebp - 0x3c], 0x46fbffdb
mov dword [ebp - 0x38], 0x7712c4a6
mov dword [ebp - 0x34], 0x50c85635
mov dword [ebp - 0x30], 0x2e89eea3
mov dword [ebp - 0x2c], 0x649e380a
mov dword [ebp - 0x28], 0xcf581a40
mov dword [ebp - 0x24], 0x587ba7ef
mov dword [ebp - 0x20], 0x8af6fe58
mov dword [ebp - 0x1c], 0x9c40e27e
mov dword [ebp - 0x18], 0x1c5a598c
mov dword [ebp - 0x14], 0x3e1cc46c
mov dword [ebp - 0x10], 0xc05ca117
mov dword [ebp - 0xc], 0x4ac2fd5e
mov dword [ebp - 8], 0xab58e08a
mov dword [ebp - 4], 0xb3d91ae9
test esi, esi
jle 0x1000175b
push edi
mov edi, dword [ebp + 8]
xor edx, edx
lea eax, [edx + edx*2]
inc bl
lea ecx, [edx + edx*2]
and eax, 0x1f
shl ecx, 2
and ecx, 0x1c
mov al, byte [ebp + eax - 0x20]
xor al, byte [ebp + ecx - 0x40]
xor byte [edx + edi], al
movzx edx, bl
cmp edx, esi
jl 0x10001737
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push eax
mov esi, dword [esi + 4]
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [ebx + 5]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi]
cmp eax, dword [ebx + 5]
jne 0x10001a3b
movzx eax, byte [edi + 4]
cmp al, byte [ebx + 9]
jne 0x10001a3b
mov esi, 5
jmp 0x10001a4f
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x10001a4f
movzx eax, byte [edi + 4]
cmp al, byte [ebx + 4]
jne 0x10001a4f
mov esi, 0xb
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 5]
push eax
mov dword [ebx + 4], esi
call fcn.1002f73e
mov ecx, dword [ebx + 4]
add esp, 4
mov esi, eax
add ecx, 5
lea eax, [ebp + 8]
push eax
push 0x40
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebx + 4]
push edi
push esi
call fcn.100524d0
mov eax, dword [ebx + 4]
mov ecx, edi
sub ecx, esi
mov byte [ebp - 8], 0xe9
sub ecx, 5
add esp, 0xc
mov byte [esi + eax], 0xe9
mov eax, dword [ebx + 4]
mov dword [esi + eax + 1], ecx
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [ebp - 7], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov al, byte [ebp - 4]
mov byte [edi + 4], al
pop edi
mov dword [ebx], esi
pop esi
mov dword [ebx + 8], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [ebp + 0x10]
push ecx
push 0x40
push eax
push ebx
mov dword [edi + 4], eax
call esi
mov eax, dword [edi + 4]
add eax, 5
push eax
call fcn.1002f73e
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edi, eax
lea eax, [ebp + 0x14]
mov ecx, dword [ecx + 4]
push eax
push 0x40
add ecx, 5
push ecx
push edi
call esi
mov esi, dword [ebp + 0x10]
push dword [esi + 4]
push ebx
push edi
call fcn.100524d0
mov eax, dword [esi + 4]
mov ecx, ebx
sub ecx, edi
mov byte [ebp - 8], 0xe9
sub ecx, 5
add esp, 0xc
mov byte [edi + eax], 0xe9
mov eax, dword [esi + 4]
mov dword [edi + eax + 1], ecx
mov eax, dword [ebp + 0xc]
sub eax, ebx
sub eax, 5
mov dword [ebp - 7], eax
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov al, byte [ebp - 4]
mov byte [ebx + 4], al
mov dword [esi], edi
pop edi
mov dword [esi + 8], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x100a4634]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 8], eax
mov esi, ecx
mov ax, word [0x100a4638]
push 3
movups xmmword [ebp - 0x30], xmm0
push 0
movups xmm0, xmmword [0x100a461c]
mov word [ebp - 4], ax
mov eax, 0x30
push 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x30]
movups xmmword [ebp - 0x20], xmm0
push 0xc0000000
movq xmm0, qword [0x100a462c]
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10002a26
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x100029ef
mov ax, word [ebp - 6]
cmp ax, 0x39
jae 0x10002a32
inc ax
mov word [ebp - 6], ax
jmp 0x10002a05
cmp eax, 0xe7
jne 0x10002a32
push 0x2710
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x10002a32
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100029d6
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002a40
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x10002a6a
push 0x62
push 0x100a4640
push 0x100a46ec
call fcn.10072874
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x10002a8b
push 0x67
push 0x100a4640
push str.self
call fcn.10072874
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x10002b24
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10002b11
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jb 0x10002b24
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x10002b00
cmp edi, dword [ebp + 0xc]
je 0x10002af6
push 0x74
push 0x100a4640
push str.bytesToRead__bytesRead
call fcn.10072874
add esp, 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.100028f0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8