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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f280
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 1
push 0x56d218
lea ecx, [ebp - 0x2c]
call fcn.0040de90
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040dec0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0040de90
mov dword [ebp - 0x60], eax
call fcn.00458d80
add esp, 0x1c
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x45760c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp + 0x24]
push eax
call fcn.0040de90
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00458050
add esp, 0x20
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
push 0x51a34c
lea ecx, [ebp - 0x48]
call fcn.0040d760
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040dec0
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x54], esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
lea eax, [ebp - 0x48]
push eax
call fcn.0040de90
mov dword [ebp - 0x70], eax
push esi
call fcn.00458d00
add esp, 0x20
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
call fcn.00458f80
add esp, 0x1c
push 0
lea ecx, [ebp - 0x48]
call fcn.00401340
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
movzx edx, byte [ebp + 0x40]
test edx, edx
je 0x457600
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00401320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x458d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f658
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x568cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x458dea
mov eax, dword [ebp - 0x14]
and eax, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x1c]
jmp 0x458e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x458e33
cmp dword [ebp - 0x18], 3
je 0x458e33
cmp dword [ebp - 0x18], 0x7b
je 0x458e33
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp + 8]
push edx
call fcn.0040de90
mov dword [ebp - 0x28], eax
call fcn.00458e80
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x458e33
mov dword [ebp - 0x30], 1
jmp 0x458e3a
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x20]
jmp 0x458e63
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x458f80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x568cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004033e0
test eax, eax
ja 0x458fd7
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x14]
jmp 0x4590e6
lea ecx, [ebp + 8]
call fcn.004033e0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0044db70
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x45901d
lea ecx, [ebp + 8]
call fcn.004033e0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0044db70
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp + 8]
call fcn.00401340
push eax
lea ecx, [ebp + 8]
call fcn.0040b030
lea ecx, [ebp + 8]
call fcn.004033e0
cmp eax, 3
jb 0x45904f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 8]
push edx
call fcn.0040de90
mov dword [ebp - 0x2c], eax
call fcn.00459180
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x45906a
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x1c]
jmp 0x4590e6
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x24], esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 8]
push eax
call fcn.0040de90
mov dword [ebp - 0x34], eax
push esi
call fcn.00459100
add esp, 0x20
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
call fcn.00458f80
add esp, 0x1c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4590c7
push 0
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4590c7
mov dword [ebp - 0x44], 1
jmp 0x4590ce
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f728
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x568cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4591d5
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x4591d5
mov dword [ebp - 0x1c], 1
jmp 0x4591dc
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x459370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f7ef
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x224], ax
push 0x208
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.004b83b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
call fcn.004012e0
mov byte [ebp - 4], 1
push 0x51ab10
lea ecx, [ebp - 0x240]
call fcn.0040d760
push 0x51ab0c
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call fcn.004b90da
add esp, 8
test eax, eax
je 0x459511
push 0x51ab08
lea ecx, [ebp - 0x25c]
call fcn.004012e0
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2bc]
push edx
lea eax, [ebp + 8]
push eax
push 0x51ab08
lea ecx, [ebp - 0x278]
call fcn.004012e0
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.0040dcf0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2cc]
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040dcf0
add esp, 0xc
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2d4]
push edx
lea ecx, [ebp + 8]
call fcn.0040b0b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b0]
call fcn.00401320
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x294]
call fcn.00401320
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00401320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.00401320
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x45952b
push 0x51ab00
lea ecx, [ebp - 0x240]
call fcn.0040d760
jmp 0x45953b
push 0x51aaf4
lea ecx, [ebp - 0x240]
call fcn.0040d760
push 0x51aae8
lea ecx, [ebp - 0x240]
call fcn.0040d760
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0040dec0
lea edx, [ebp - 0x240]
push edx
call fcn.004595b0
add esp, 4
mov byte [ebp - 0x2b1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x2b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x4595b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f82b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x568cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004596e0
movzx eax, al
test eax, eax
je 0x459663
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
mov edx, dword [ebp + 8]
push edx
call fcn.0040de90
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00450d60
add esp, 0x20
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x9c]
call fcn.00402a90
push eax
call fcn.00459a60
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00402b40
cmp dword [ebp - 0x70], 0
je 0x459661
mov al, 1
jmp 0x4596cc
jmp 0x4596ca
push 0x44
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401340
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4596ca
push 0xdbba0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4596cc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x459e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x459e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x459f89
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x490
mov dword [ebp - 0x248], 0
push 0x228
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x459f1c
push str.explorer.exe
lea eax, [ebp - 0x224]
push eax
call fcn.004bf473
add esp, 8
test eax, eax
jne 0x459f06
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x459f1a
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x459edc
jmp 0x459f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x459f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x459f89
mov eax, dword [ebp + 8]
push eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x459f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret

Function at 0x45a0c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x45a0e1
or eax, 0xffffffff
jmp 0x45a17d
mov dword [ebp - 0x120], 0
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x120], 0x114
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45a136
cmp dword [ebp - 0x11c], 5
jne 0x45a136
cmp dword [ebp - 0x118], 0
jne 0x45a136
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x45a171
mov eax, dword [ebp + 8]
push eax
call fcn.00459fa0
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x45a167
mov ecx, dword [ebp + 8]
push ecx
call fcn.00459e60
add esp, 4
jmp 0x45a17d
mov eax, dword [ebp - 0x124]
jmp 0x45a17d
mov edx, dword [ebp + 8]
push edx
call fcn.00459e60
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x45a190
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 5
mov dword [ebp - 0x18], 0
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 - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x45a1fb
jmp 0x45a28e
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x45a222
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x45a222
jmp 0x45a28e
mov ecx, dword [ebp - 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x45a251
jmp 0x45a28e
mov dword [ebp - 0x20], 0
jmp 0x45a263
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx]
jae 0x45a28e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*8 + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x45a28c
mov byte [ebp - 0x19], 1
jmp 0x45a28e
jmp 0x45a25a
cmp dword [ebp - 0x18], 0
je 0x45a29e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x45a2ae
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x45a380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45a416
mov dword [ebp - 0x130], 0
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45a409
cmp dword [ebp - 0x12c], 6
jne 0x45a409
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45a481
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
xor eax, eax
jmp 0x45a481
mov dword [ebp - 4], 0x490
mov dword [ebp - 0x134], 0
jmp 0x45a438
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 8]
jae 0x45a475
mov ecx, dword [ebp - 0x134]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx + 8], 0
jne 0x45a473
mov eax, dword [ebp - 0x134]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x45a475
jmp 0x45a429
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret

Function at 0x45adc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004b83b0
add esp, 0xc
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ae38
mov eax, 1
jmp 0x45ae53
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x45b950
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], vtable.CExtractOutFile.0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0xffffffff
je 0x45b990
mov edx, dword [ebp - 0xc]
add edx, 0x14
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0xffffffff
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
je 0x45b9d3
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x45b9d3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b9d3
push 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0
je 0x45b9fb
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004b7eaf
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x45ba23
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.004b7eaf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0
mov esp, ebp
pop ebp
ret

Function at 0x45bb60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
je 0x45bba5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
jmp 0x45bbaa
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45c340
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x30], eax
push 0x24
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004b83b0
add esp, 0xc
push 0x11c
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45c39b
xor eax, eax
jmp 0x45c480
push 0x51af3c
push 0x51af50
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45c3c4
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 8]
jmp 0x45c3ce
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x140], 2
jne 0x45c47d
cmp dword [ebp - 0x14c], 4
jbe 0x45c47d
cmp dword [ebp - 0x14c], 6
jne 0x45c42e
cmp dword [ebp - 0x148], 0
jne 0x45c40a
mov dword [ebp - 4], 4
jmp 0x45c42c
cmp dword [ebp - 0x148], 1
jne 0x45c41c
mov dword [ebp - 4], 5
jmp 0x45c42c
cmp dword [ebp - 0x148], 2
jne 0x45c42c
mov dword [ebp - 4], 6
jmp 0x45c47d
cmp dword [ebp - 0x14c], 5
jne 0x45c449
cmp dword [ebp - 0x148], 2
jne 0x45c449
mov dword [ebp - 4], 3
jmp 0x45c47d
cmp dword [ebp - 0x14c], 5
jne 0x45c464
cmp dword [ebp - 0x148], 1
jne 0x45c464
mov dword [ebp - 4], 2
jmp 0x45c47d
cmp dword [ebp - 0x14c], 5
jne 0x45c47d
cmp dword [ebp - 0x148], 0
jne 0x45c47d
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret