joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f20
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5983
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00431850
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CMessagingSystem.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CMessagingSystem.1.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004317a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00447c40
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x6c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x78], 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x80], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x84], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x40dcf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x577018], eax
cmp dword [ebp - 0x10], 0
je 0x42908f
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x14], ecx
jmp 0x429096
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00447c90
push 0x70
call sub.mfc120u.dll_Ordinal_1506
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
je 0x4290c9
mov ecx, dword [ebp - 0x18]
call fcn.0046ac40
mov dword [ebp - 0x1c], eax
jmp 0x4290d0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x7c], edx
call fcn.00435c00
call fcn.00461020
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x431c70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x432dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6da9
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 1
mov dword [ebp - 0x42c], 0x104
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x432e5e
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
jmp 0x432e6f
push 0x508744
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x50874c
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x432ee0
push str.ServerDump1.xml
push 0x104
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
jmp 0x432ef3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov ecx, dword [ebp - 0x428]
or ecx, 1
mov dword [ebp - 0x428], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 4
Function at 0x435950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7186
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00445330
movzx eax, al
test eax, eax
je 0x435a13
lea ecx, [ebp - 0xd]
call fcn.00411300
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4359c1
lea ecx, [ebp - 0xd]
call fcn.00412400
mov byte [ebp - 0x10], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00411310
mov al, byte [ebp - 0x10]
jmp 0x435b95
mov ecx, dword [ebp + 0xc]
push ecx
push str.Users
push 0x5092fc
mov ecx, dword [ebp + 8]
call fcn.004157f0
push eax
push str.CorelUpdateHelperTaskCore
lea ecx, [ebp - 0xd]
call fcn.00411ac0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00411310
mov al, byte [ebp - 0xe]
jmp 0x435b95
push str._schedule
lea ecx, [ebp - 0x28]
call fcn.004153a0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 3
ja case.default.0x435a3a
mov eax, dword [ebp - 0x1c]
jmp dword [eax*4 + 0x435ba8]
push 0x509350
lea ecx, [ebp - 0x58]
call fcn.004153a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00415310
jmp 0x435b0b
push 0x509358
lea ecx, [ebp - 0x34]
call fcn.004153a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x28]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00415310
jmp 0x435b0b
push 0x50935c
lea ecx, [ebp - 0x40]
call fcn.004153a0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00415310
jmp 0x435b0b
push 0x509360
lea ecx, [ebp - 0x4c]
call fcn.004153a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00415310
jmp 0x435b0b
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00415310
mov al, byte [ebp - 0xf]
jmp 0x435b95
mov dword [ebp - 0x94], 0
push 0x38
push 0
lea edx, [ebp - 0x90]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x88], 0x509364
mov ecx, dword [ebp + 8]
call fcn.004157f0
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x28]
call fcn.004157f0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x435b76
mov dword [ebp - 0x18], 1
jmp 0x435b7d
mov dword [ebp - 0x18], 0
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x11], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00415310
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x436230
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e721a
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43629f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [str.pculog.configure]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.00443f30
movzx ecx, al
test ecx, ecx
je 0x436362
push str.logging_setting
lea ecx, [ebp - 0x22c]
call fcn.004153a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x218]
push edx
push 1
push str.PerformanceLog
lea ecx, [ebp - 0x22c]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x436319
mov byte [ebp - 0x219], 0
jmp 0x436320
mov byte [ebp - 0x219], 1
mov al, byte [ebp - 0x219]
mov byte [0x56e409], al
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.LoggingLevel
lea ecx, [ebp - 0x22c]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x5748bc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00415310
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret
Function at 0x436380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e724d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x56e408]
test eax, eax
je 0x43655a
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x5748bc]
jg 0x43655a
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.00436580
add esp, 8
lea ecx, [ebp - 0x13c]
call fcn.004152e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x509ca8
lea edx, [ebp - 0x13c]
push edx
call fcn.00415bb0
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x5746b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x436548
call fcn.00406200
mov dword [ebp - 0x130], eax
push 2
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x13c]
call fcn.004157f0
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x43648c
mov dword [ebp - 0x120], 0
jmp 0x436505
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x3fffffff
jle 0x4364bd
mov dword [ebp - 0x124], 0
jmp 0x4364f9
mov eax, dword [ebp - 0x118]
shl eax, 1
call fcn.004e13c0
mov dword [ebp - 0x12c], esp
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x118]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call fcn.004060d0
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
push 0
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00415810
push eax
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00415310
lea esp, [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret

Function at 0x442a10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x10325476
pop ebp
ret
Function at 0x443f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7d98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.004153a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00415d20
test eax, eax
jne 0x444006
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00415890
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x24]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x444006
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x444006
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00415310
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x444030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x224], 0xc
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x224]
push eax
call fcn.00444300
movzx ecx, al
test ecx, ecx
je 0x44408a
lea edx, [ebp - 0x224]
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x210], edx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
movzx edx, word [ecx]
test edx, edx
je 0x444159
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4440eb
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x444119
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp + 8]
jbe 0x444119
mov edx, dword [ebp - 0x210]
movzx eax, word [edx - 2]
cmp eax, 0x3a
je 0x444119
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
add ecx, 2
mov dword [ebp - 0x210], ecx
xor edx, edx
mov eax, dword [ebp - 0x218]
mov word [eax], dx
jmp 0x4440be
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x214]
push eax
call fcn.00444350
mov ecx, dword [ebp + 8]
push ecx
call fcn.00443f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 4
Function at 0x4441a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x415], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00444030
push 0x1e
push 0
lea ecx, [ebp - 0x43c]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x438], 2
mov edx, 0x414
mov word [ebp - 0x42c], dx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
push 0x50bffc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x430], ecx
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x4442ab
mov byte [ebp - 0x415], 1
jmp 0x4442db
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00445540
movzx edx, al
test edx, edx
je 0x4442c8
mov byte [ebp - 0x416], 1
jmp 0x4442cf
mov byte [ebp - 0x416], 0
mov al, byte [ebp - 0x416]
mov byte [ebp - 0x415], al
mov al, byte [ebp - 0x415]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 8
Function at 0x444810
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x34]
call fcn.004152e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea ecx, [ebp - 0x34]
call fcn.00415890
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.00415930
lea ecx, [ebp - 0x34]
call fcn.004157f0
push eax
call fcn.00443f30
movzx edx, al
test edx, edx
je 0x444958
mov dword [ebp - 0x18], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x444958
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44494e
cmp dword [ebp - 0x20], 0
jne 0x44494e
mov edx, dword [ebp - 0x14]
push edx
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x44494e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44494e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x44494e
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004446a0
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x44497d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00415310
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x445100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7e8f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x224
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x21d], 0
lea ecx, [ebp - 0x230]
call fcn.004152e0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x234], 0x104
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x4451a2
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004155b0
jmp 0x4451aa
mov dword [ebp - 4], 0
jmp 0x4451ba
lea ecx, [ebp - 0x230]
call fcn.00415d20
test eax, eax
je 0x4451d9
push str.C:_temp
lea ecx, [ebp - 0x230]
call fcn.004155b0
lea ecx, [ebp - 0x230]
call fcn.00415d20
test eax, eax
jne 0x445246
lea ecx, [ebp - 0x230]
call fcn.00415810
mov dword [ebp - 0x224], eax
cmp dword [ebp + 8], 0
je 0x445234
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x224]
jle 0x445232
lea ecx, [ebp - 0x230]
call fcn.004157f0
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov byte [ebp - 0x21d], 1
jmp 0x44523b
mov byte [ebp - 0x21d], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x224]
mov dword [ecx], edx
mov al, byte [ebp - 0x21d]
mov byte [ebp - 0x21e], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00415310
mov al, byte [ebp - 0x21e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 8
Function at 0x445870
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4458e9
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4458df
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
je 0x4458f8
mov dword [ebp - 0x18], 1
jmp 0x4458ff
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret

Function at 0x446340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 1
mov dword [ebp - 8], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4463b2
mov dword [ebp - 0xc], 0xc8
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4463a8
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jne 0x4463a8
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8