joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4977ad
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4bd0c8]
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, edx
cmp dword [ecx + 0x14], 8
jb 0x40a1d7
mov ecx, dword [ecx]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a200
xor al, al
jmp 0x40a2fe
cmp word [ebp - 0x24c], 0x2e
je 0x40a2df
test byte [ebp - 0x278], 0x10
jne 0x40a2df
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
mov dword [ebp - 4], 0xffffffff
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a246
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00403bf0
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40a296
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov edx, 7
add dword [esi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x40a2a5
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0040a660
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a2df
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a319
push edx
push ecx
call fcn.0046e38b
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a200
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3
Function at 0x40ddb0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ddd0
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
push 0x801a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40de90
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de02
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403bf0
push 0x5c
mov ecx, esi
call fcn.0040deb0
push 0xd
push str.EasyAntiCheat
mov ecx, esi
call fcn.00409ee0
push 0x5c
mov ecx, esi
call fcn.0040deb0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40de4a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de6b
test al, 0x10
je 0x40de6b
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40de73
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046e348
mov esp, ebp
pop ebp
ret
Function at 0x411020
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4bfe94], 0
je 0x41104c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
mov edx, 0x4b2214
lea ecx, [ebp - 0x20c]
call fcn.0040e0e0
push str.wintrust.dll
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040e160
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x20c]
push str.crypt32.dll
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040e160
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test edi, edi
je 0x41120d
test esi, esi
je 0x41120d
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe84], eax
test eax, eax
je 0x41120d
push str.CryptDecodeObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe88], eax
test eax, eax
je 0x41120d
push 0x4b2670
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe98], eax
test eax, eax
je 0x41120d
push str.CryptMsgGetParam
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe74], eax
test eax, eax
je 0x41120d
push 0x4b2698
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfea0], eax
test eax, eax
je 0x41120d
push 0x4b26b4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe8c], eax
test eax, eax
je 0x41120d
push 0x4b26d0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe78], eax
test eax, eax
je 0x41120d
push 0x4b26e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe9c], eax
test eax, eax
je 0x41120d
push str.CertOpenSystemStoreW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe90], eax
test eax, eax
je 0x41120d
push 0x4b2718
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe7c], eax
test eax, eax
je 0x41120d
push str.CryptMsgClose
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [0x4bfe94]
test eax, eax
mov edx, 1
mov dword [0x4bfe80], eax
cmovne ecx, edx
pop edi
mov byte [0x4bfe94], cl
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov cl, byte [0x4bfe94]
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046e348
mov esp, ebp
pop ebp
ret
Function at 0x4115a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497ed6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 4], 0
call fcn.0040ba30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
push esi
call fcn.0040ba30
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
push edi
lea ecx, [esi + 0x30]
call fcn.0040ba30
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 3
push ebx
call fcn.0040ba30
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x60]
call fcn.0040ba30
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x78], eax
mov al, byte [ebp + 0x34]
mov byte [esi + 0x7c], al
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x80], eax
cmp edx, 8
jb 0x411672
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411668
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411688
push edx
push ecx
call fcn.0046e38b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call fcn.00473154
int3
Function at 0x411cc0
Capabilities:
Access peb ldr_data
Check os version
Contain obfuscated stackstrings
Get number of processors
Get process filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4bd0c8]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword fs:[0x30]
movaps xmm0, xmmword [0x4b4f10]
mov dword [esp + 0x30], 0x650057
mov dword [esp + 0x34], 0x740076
mov dword [esp + 0x38], 0x700061
mov dword [esp + 0x3c], 0x2e0069
mov dword [esp + 0x40], 0x6c0064
mov dword [esp + 0x44], 0x6c
cmp dword [eax + 0xa4], 6
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x43747645
mov dword [esp + 0x14], 0x65736f6c
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0x51747645
mov dword [esp + 0x20], 0x79726575
mov byte [esp + 0x24], 0
mov dword [esp + 8], 0x4e747645
mov dword [esp + 0xc], 0x747865
mov dword [esp + 0x28], 0x52747645
mov dword [esp + 0x2c], 0x65646e65
mov word [esp + 0x30], 0x72
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], 0x65746e6f
mov word [esp + 0x60], 0x7478
mov byte [esp + 0x62], 0
jb 0x411e2e
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jne 0x411da7
cmp dword [eax + 0xa8], 0
je 0x411e2e
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x411e2e
push ecx
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00413170
mov dword [esi + 8], eax
test eax, eax
je 0x411e2e
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
call fcn.00413170
mov dword [esi + 0xc], eax
test eax, eax
je 0x411e2e
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x20]
call fcn.00413170
mov dword [esi + 0x10], eax
test eax, eax
je 0x411e2e
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
call fcn.00413170
mov dword [esi + 0x14], eax
test eax, eax
je 0x411e2e
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x50]
call fcn.00413170
mov dword [esi + 0x18], eax
test eax, eax
je 0x411e2e
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
xor al, al
pop esi
xor ecx, esp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
Function at 0x413120
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
mov ebx, ecx
mov esi, dword [eax + 0xc]
mov esi, dword [esi + 0xc]
test ebx, ebx
jne 0x41313a
mov eax, dword [esi + 0x18]
pop esi
pop ebx
ret
push edi
test esi, esi
je 0x413160
nop
mov edi, dword [esi + 0x18]
test edi, edi
je 0x413160
mov edx, dword [esi + 0x30]
mov ecx, ebx
push 0xffffffffffffffff
call fcn.0040e260
add esp, 4
test al, al
jne 0x413166
mov esi, dword [esi]
test esi, esi
jne 0x413140
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x415810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4983e0
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4158a4
add eax, eax
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403bf0
jmp 0x4158c7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
je 0x4159ba
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
mov dword [ebp - 0x270], 0x3c
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x270]
push eax
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x26c], 0x40
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], str.runas
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 5
mov dword [ebp - 0x250], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4159ba
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4159ba
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4159a4
push dword [ebp - 0x238]
mov esi, dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4159c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x238]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4159c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4159fe
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4159f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415a1a
push edx
push ecx
call fcn.0046e38b
add esp, 8
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3
Function at 0x4167c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0046ecd0
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416800
test al, 0x10
jne 0x416848
push pe_nt_image_headers32
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416853
push ebx
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416865
xor bl, bl
jmp 0x4168fd
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4168f4
nop dword [eax]
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x4168f4
push 0
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416917
mov eax, dword [ebp - 0x100c]
cmp eax, dword [ebp - 0x1008]
jne 0x416917
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4168a0
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0046e348
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x4168f6
Function at 0x416f50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49861d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 0x18]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0
movups xmmword [ebp - 0x2c], xmm0
test eax, eax
je 0x41703b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
jb 0x416fb1
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
jmp 0x416fb7
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
push 0
sub eax, ecx
lea ecx, [ebp + 8]
push 1
sar eax, 1
push eax
call fcn.004186d0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
jb 0x416fdc
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
jmp 0x416fe2
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
push 0
sub eax, ecx
lea ecx, [ebp + 8]
push 1
sar eax, 1
push eax
call fcn.004186d0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x28], 3
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41703b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.Failed_to_delete_the_directory__s_with:__i.
push 1
call fcn.00414f50
add esp, 0x10
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x417071
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417067
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417080
push edx
push ecx
call fcn.0046e38b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3
Function at 0x417090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49864d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov esi, 7
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x49be50
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x41719e
mov edx, dword [ebp - 0x2c]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417100
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403bf0
push 1
push 0x4b2214
lea ecx, [ebp - 0x28]
call fcn.00409ee0
push 0xd
push str.EasyAntiCheat
lea ecx, [ebp - 0x28]
call fcn.00409ee0
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
je 0x41719b
cmp dword [0x4bdc78], 0
je 0x417185
mov ecx, 0x4bdc2c
call fcn.00418570
test eax, eax
jne 0x417185
mov eax, dword [0x4bdc28]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 0x4bdc28
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00414520
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040ba30
call fcn.00416f50
add esp, 0x18
mov esi, dword [ebp - 0x14]
cmp esi, 8
jb 0x4171d1
mov ecx, dword [ebp - 0x28]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4171c7
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4171eb
push esi
push ecx
call fcn.0046e38b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3
Function at 0x4183d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4184b0
cmp byte [ebx + 0x3e], 0
je 0x4184b0
mov eax, dword [ebx]
push esi
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x49b388]
mov ecx, ebx
call esi
mov ecx, 0xffff
cmp cx, ax
je 0x41849e
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x49b388]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x418466
sub eax, 1
je 0x41846a
sub eax, 2
jne 0x41849e
mov byte [ebx + 0x3e], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x418487
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00476e00
add esp, 0x10
cmp esi, eax
jne 0x41849e
cmp byte [ebx + 0x3e], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e348
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0046e348
mov esp, ebp
pop ebp
ret

Function at 0x4188b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497d80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x4b16dc
call fcn.0046e356
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004572b4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x419c16
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
cmp ecx, eax
je 0x419c3e
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x419c37
mov eax, dword [eax]
push edx
push eax
call fcn.00403bf0
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], 2
cmp dword [esi + 0x14], 8
jb 0x419c5e
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
jmp 0x419c6a
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
push 8
mov dword [eax], 0
call fcn.0046e356
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebx + 4]
mov dword [eax], 0x419f80
push 0
push 0
push eax
push 0x40dca0
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x419cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push dword [ebp - 4]
call fcn.0046e38b
add esp, 8
mov ecx, edi
push 0x33
push str.Code_signing_certificate_validation_timed_out__1_2_
call fcn.00403bf0
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419d09
push 0x33
push str.Code_signing_certificate_validation_timed_out__2_2_
mov ecx, edi
call fcn.00403bf0
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, esi
je 0x419d21
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x419d18
mov esi, dword [esi]
push eax
push esi
mov ecx, edi
call fcn.00403bf0
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc