joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a0b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [0x7290a8]
test eax, eax
je 0x43a27f
movzx ecx, byte [0x71c410]
test ecx, ecx
je 0x43a27f
mov edx, dword [ebp + 0xc]
cmp edx, dword [0x7290ac]
jg 0x43a27f
mov eax, dword [ebp + 8]
push eax
call fcn.004483b0
movzx ecx, al
test ecx, ecx
je 0x43a27f
mov dword [ebp - 0x10], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x43a27f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43a275
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.004e69f9
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43a275
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0060f700
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a263
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 4]
jne 0x43a263
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x43a263
mov edx, dword [ebp - 0x14]
lea eax, [edx + edx + 2]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e69f9
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0060f700
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x43a263
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043a400
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e69f4
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004e69f4
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x43a2b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x632b8a
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x721970]
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 fcn.0060f700
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43a31f
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.004483b0
movzx ecx, al
test ecx, ecx
je 0x43a3e2
push str.logging_setting
lea ecx, [ebp - 0x22c]
call fcn.00418d40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x218]
push edx
push 1
push str.PerformanceLog
lea ecx, [ebp - 0x22c]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x43a399
mov byte [ebp - 0x219], 0
jmp 0x43a3a0
mov byte [ebp - 0x219], 1
mov al, byte [ebp - 0x219]
mov byte [0x71c411], al
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.LoggingLevel
lea ecx, [ebp - 0x22c]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x7290ac], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00418cc0
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.0060f7c8
mov esp, ebp
pop ebp
ret
Function at 0x43a400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x632bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x71c410]
test eax, eax
je 0x43a5d9
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x7290ac]
jg 0x43a5d9
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.0043a600
add esp, 8
lea ecx, [ebp - 0x13c]
call fcn.00418c90
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x665ea0
lea edx, [ebp - 0x13c]
push edx
call fcn.00419510
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x728ea0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x43a5c7
call fcn.00408620
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.00419160
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x43a50c
mov dword [ebp - 0x120], 0
jmp 0x43a584
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.00610037
add esp, 4
add eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x3fffffff
jle 0x43a53c
mov dword [ebp - 0x124], 0
jmp 0x43a578
mov eax, dword [ebp - 0x118]
shl eax, 1
call fcn.00610b80
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.00407150
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.00419180
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.00418cc0
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.0060f7c8
mov esp, ebp
pop ebp
ret
Function at 0x43cc40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x7290c8]
test eax, eax
jne 0x43cd39
cmp dword [0x7290c4], 0
jne 0x43cd32
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x6670a4
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00611e08
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x7290c4], eax
cmp dword [0x7290c4], 0
je 0x43cd32
push str.GetDpiForMonitor
mov ecx, dword [0x7290c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7290c0], eax
push str.GetProcessDpiAwareness
mov edx, dword [0x7290c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7290b8], eax
push str.SetProcessDpiAwareness
mov eax, dword [0x7290c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7290bc], eax
cmp dword [0x7290b8], 0
je 0x43cd14
cmp dword [0x7290bc], 0
je 0x43cd14
cmp dword [0x7290c0], 0
jne 0x43cd32
mov dword [0x7290c0], 0
mov dword [0x7290b8], 0
mov dword [0x7290bc], 0
mov byte [0x7290c8], 1
mov al, byte [0x7290c8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret

Function at 0x446e90
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 0x448400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633808
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x721970]
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.00418d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00419670
test eax, eax
jne 0x448486
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00419200
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.00419160
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x448486
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x448486
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.00418cc0
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 0x4484b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x721970]
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.00448770
movzx ecx, al
test ecx, ecx
je 0x44850a
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 fcn.0060f700
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 0x4485d9
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x44856b
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x448599
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp + 8]
jbe 0x448599
mov edx, dword [ebp - 0x210]
movzx eax, word [edx - 2]
cmp eax, 0x3a
je 0x448599
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 0x44853e
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.004487c0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00448400
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret 4
Function at 0x448620
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x415], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004484b0
push 0x1e
push 0
lea ecx, [ebp - 0x43c]
push ecx
call fcn.0060f700
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 fcn.0060f700
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.0060f700
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00611e74
add esp, 0xc
push 0x66827c
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 fcn.00611e74
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 0x448729
mov byte [ebp - 0x415], 1
jmp 0x448759
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00449b90
movzx edx, al
test edx, edx
je 0x448746
mov byte [ebp - 0x416], 1
jmp 0x44874d
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.0060f7c8
mov esp, ebp
pop ebp
ret 8
Function at 0x448c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63382b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x721970]
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.00418c90
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.00419200
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.004192a0
lea ecx, [ebp - 0x34]
call fcn.00419160
push eax
call fcn.004483b0
movzx edx, al
test edx, edx
je 0x448dc8
mov dword [ebp - 0x18], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x34]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x448dc8
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 0x448dbe
cmp dword [ebp - 0x20], 0
jne 0x448dbe
mov edx, dword [ebp - 0x14]
push edx
call fcn.004e69f9
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 0x448dbe
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 0x448dbe
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x448dbe
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.00448b10
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 0x448ded
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e69f4
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.00418cc0
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 0x449560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6338ff
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x224
mov eax, dword [0x721970]
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.00418c90
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 fcn.0060f700
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 0x449602
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00418f40
jmp 0x44960a
mov dword [ebp - 4], 0
jmp 0x44961a
lea ecx, [ebp - 0x230]
call fcn.00419670
test eax, eax
je 0x449639
push str.C:_temp
lea ecx, [ebp - 0x230]
call fcn.00418f40
lea ecx, [ebp - 0x230]
call fcn.00419670
test eax, eax
jne 0x4496a5
lea ecx, [ebp - 0x230]
call fcn.00419180
mov dword [ebp - 0x224], eax
cmp dword [ebp + 8], 0
je 0x449693
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x224]
jle 0x449691
lea ecx, [ebp - 0x230]
call fcn.00419160
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00611e74
add esp, 0xc
mov byte [ebp - 0x21d], 1
jmp 0x44969a
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.00418cc0
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.0060f7c8
mov esp, ebp
pop ebp
ret 8
Function at 0x449eb0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x721970]
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 0x449f29
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 0x449f1f
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 0x449f38
mov dword [ebp - 0x18], 1
jmp 0x449f3f
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret

Function at 0x44a980
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 SysReAllocStringLen
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 0x44a9f2
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 0x44a9e8
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jne 0x44a9e8
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
Function at 0x44aa00
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
call fcn.00408620
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x20d], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
je 0x44aa63
mov ecx, dword [ebp - 0x218]
and ecx, 1
je 0x44aa63
mov edx, dword [ebp - 0x218]
and edx, 0xfffffffe
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.0060f700
add esp, 0xc
push 0x104
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0061006f
add esp, 0x10
push 0x5c
lea edx, [ebp - 0x20c]
push edx
call fcn.004cb110
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x44aad9
mov eax, dword [ebp - 0x214]
add eax, 2
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov edx, dword [ebp - 0x214]
mov word [edx], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004424a0
add esp, 4
push eax
call fcn.00448400
movzx ecx, al
test ecx, ecx
jne 0x44ab0a
lea edx, [ebp - 0x20c]
push edx
call fcn.004424a0
add esp, 4
push eax
call fcn.004484b0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x234], 0xc
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x234]
push eax
call fcn.00448770
movzx ecx, al
test ecx, ecx
je 0x44ab47
lea edx, [ebp - 0x234]
mov dword [ebp - 0x21c], edx
push 0
push 0x22
push 2
mov eax, dword [ebp - 0x21c]
push eax
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
je 0x44abc5
mov dword [ebp - 0x224], 0xc8
push 0
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44abb8
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x228]
jne 0x44abb8
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x21c]
push edx
call fcn.004487c0
mov al, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret 8