joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4311b5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43c034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4245da
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, esi
jmp 0x4246e3
xor esi, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x2c], edi
jle 0x4246c9
mov edx, dword [eax + edi*4]
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea ecx, [eax + 2]
mov dword [ebp - 0x34], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424617
sub eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00401350
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x38]
je 0x424672
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov ecx, 7
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0x3c], esi
jmp 0x424685
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00424090
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x4246bc
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4246b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246fe
push ecx
push edx
call fcn.00428a43
add esp, 8
mov eax, dword [ebp - 0x30]
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x4245f7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 8], eax
mov eax, ecx
mov dword [ecx + 4], esi
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.00428a51
mov esp, ebp
pop ebp
ret
call fcn.00429ae0
int3
Function at 0x424710
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x43c034]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push eax
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
jne 0x42477d
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00428a51
add esp, 0x214
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424784
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401350
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00428a51
add esp, 0x214
ret

Function at 0x424ed0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x214
mov eax, dword [0x43c034]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x21c]
push 0x104
push ecx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
jne 0x424f45
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00428a51
add esp, 0x214
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424f50
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401350
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00428a51
add esp, 0x214
ret

Function at 0x424f90
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x424fb9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
jne 0x424fbd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x4254e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x4254ec
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425500
shr eax, 4
not al
and al, 1
ret
xor al, al
ret
Function at 0x425980
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x425990
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4259a3
pop esi
mov al, 1
pop ebx
ret
test bl, 1
je 0x4259c8
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4259b2
mov ecx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4259c8
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi + 0x14]
test bl, 0x10
je 0x4259e6
cmp eax, 8
jb 0x4259d7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop esi
setne al
pop ebx
ret
cmp eax, 8
jb 0x4259ed
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
pop ebx
ret
Function at 0x426010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4313fb
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x43c034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x46c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x426078
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42607f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42620a
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x468], 0
nop dword [eax + eax]
push dword [ebp - 0x458]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4261e1
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x4261d6
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x234], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426110
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401350
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x46c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x470], esi
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x426225
mov eax, dword [ecx]
lea edx, [ebp - 0x470]
push edx
lea edx, [ebp - 0x234]
push edx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 0x461], al
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x4261b8
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4261ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42622a
push ecx
push edx
call fcn.00428a43
add esp, 8
mov eax, dword [ebp - 0x468]
mov ecx, 1
cmp byte [ebp - 0x461], 0
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x468], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4261e7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x460]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x426205
cmp byte [ebp - 0x468], 0
je 0x4260b0
push edi
call esi
mov al, 1
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.00428a51
mov esp, ebp
pop ebp
ret
call fcn.00426897
call fcn.00429ae0
int3
Function at 0x426230
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x3c
mov eax, dword [0x43c034]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov cx, word [esp + 0x32]
xor eax, eax
mov word [esp + 0xc], ax
mov word [esp + 0xe], cx
mov esi, dword [esp + 0xc]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
movsx ebx, word [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movups xmmword [esp + 0x14], xmm0
cmp ebx, 0x7ffffffe
ja 0x426396
mov dword [esp + 0x28], 7
push edi
cmp ebx, 8
jae 0x4262c8
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x4262bf
mov ecx, ebx
lea edi, [esp + 0x18]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [esp + ebx*2 + 0x18], ax
jmp 0x426326
mov edi, ebx
lea ecx, [esp + 0x18]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4262ed
push 0x7fffffff
call fcn.00404c80
mov dword [esp + 0x2c], 0x7ffffffe
jmp 0x426304
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404c80
mov dword [esp + 0x2c], edi
mov edx, eax
mov dword [esp + 0x28], ebx
mov ecx, ebx
mov dword [esp + 0x18], edx
shr ecx, 1
mov eax, 0x200020
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + ebx*2], ax
cmp dword [esp + 0x2c], 8
lea ecx, [esp + 0x14]
push ecx
push esi
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [esp + 0x2c]
pop edi
cmp ecx, 8
jb 0x426384
mov edx, dword [esp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42637a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42639b
push ecx
push edx
call fcn.00428a43
add esp, 8
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428a51
add esp, 0x3c
ret
call fcn.00404c00
call fcn.00429ae0
int3

Function at 0x426660
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x42666c
mov eax, dword [eax]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4266b7
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x42669c
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4266bb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x42974f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42978e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42978e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42978e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42978e
cmp dword [ecx + 0x74], 0xe
jbe 0x42978e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x429b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x43c034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x429b37
mov ecx, 5
int 0x29
push 2
call fcn.004297f3
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x429c42
test esi, esi
jne 0x429c42
push 2
call fcn.004297f3
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428a51
mov esp, ebp
pop ebp
ret

Function at 0x42b550
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x42b57a
mov eax, 2
pop ebp
ret
push esi
call fcn.00429940
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x42b59a
jmp dword [eax*4 + 0x42b5d0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00429aa0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x42b5e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x43c034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42b6db
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x42b6db
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x42b63a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x42b618
jmp 0x42b6db
cmp edx, 0x200
jae 0x42b741
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x42b6db
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x42b6da
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x42b6da
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x42b723
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x42b6c0
pop edi
mov eax, dword [0x43db78]
test eax, eax
jne 0x42b701
push str.setlocale
call fcn.0042d1b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42b6fc
or eax, 0xffffffff
mov dword [0x43db78], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x42b72f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a51
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x42b6da
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a51
mov esp, ebp
pop ebp
ret
call fcn.00428e03
int3
Function at 0x42be90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004278c0
mov esi, dword [ebp + 8]
test al, al
je 0x42beae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042bec0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42bff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42c04c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c04c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c04c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42c04c
cmp dword [ecx + 0x74], 0xe
jbe 0x42c04c
cmp dword [ecx + 0xe8], 0
je 0x42c04c
push dword [ebp + 8]
call fcn.0042bec0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43db94
call fcn.0042bca0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42c081
push dword [ebp + 8]
call fcn.0042be90
mov esp, ebp
pop ebp
ret

Function at 0x42c0c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42c11c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c11c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c11c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42c11c
cmp dword [ecx + 0x74], 0xe
jbe 0x42c11c
cmp dword [ecx + 0xe8], 0
je 0x42c11c
push dword [ebp + 8]
call fcn.0042bec0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43db94
call fcn.0042bca0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42c151
push dword [ebp + 8]
call fcn.0042be90
mov esp, ebp
pop ebp
ret
Function at 0x100097c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x100630a4]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x100630a8]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x1006308c]
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 [0x1006309c]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10009890
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10009859
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x100098a6
inc ax
mov word [ebp - 0xa], ax
jmp 0x1000986f
cmp eax, 0xe7
jne 0x100098a6
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x100098a6
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 0x10009840
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
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.10059f15
mov esp, ebp
pop ebp
ret
Function at 0x100098c0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x10009904
push 0x62
push str.C:100_0_.exeMC1immunecorediscord_rpcSourceFilesconnection_win.cpp
push 0x10063154
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x10009931
push 0x67
push str.C:100_0_.exeMC1immunecorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x100099cc
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100099b9
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 8], edi
jb 0x100099cc
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x100099b0
cmp edi, dword [ebp - 0xc]
je 0x1000999b
push 0x74
push str.C:100_0_.exeMC1immunecorediscord_rpcSourceFilesconnection_win.cpp
push str.bytesToRead__bytesRead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.10009750
jmp 0x100099cc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8

Function at 0x100099f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10009a71
test ecx, ecx
jne 0x10009a37
push 0x4f
push str.C:100_0_.exeMC1immunecorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ecx + 4]
cmp ecx, 0xffffffff
je 0x10009a24
test eax, eax
jne 0x10009a51
push 0x56
push str.C:100_0_.exeMC1immunecorediscord_rpcSourceFilesconnection_win.cpp
push 0x10063154
jmp 0x10009a1b
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10009a24
cmp dword [ebp - 8], esi
jne 0x10009a24
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10059f15
mov esp, ebp
pop ebp
ret 8