joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456180
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x540], ecx
xor eax, eax
mov word [ebp - 0x538], ax
push 0x206
push 0
lea ecx, [ebp - 0x536]
push ecx
call fcn.004ba280
add esp, 0xc
xor edx, edx
mov word [ebp - 0x320], dx
push 0x206
push 0
lea eax, [ebp - 0x31e]
push eax
call fcn.004ba280
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x320]
push edx
call fcn.004b9dbc
add esp, 8
lea eax, [ebp - 0x538]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x538]
push ecx
call fcn.00436290
add esp, 4
push 0x52f1c4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x585b90]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
jne 0x456234
jmp 0x456370
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x585b90]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x585b90]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
push str.my7zData.7z
lea eax, [ebp - 0x538]
push eax
call fcn.004b9d8e
add esp, 8
lea ecx, [ebp - 0x538]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4562af
lea edx, [ebp - 0x538]
push edx
call fcn.00439840
add esp, 4
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
je 0x456318
mov dword [ebp - 0x53c], 0
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004ba280
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x538]
push edx
call fcn.004363f0
add esp, 8
push 1
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.0044d640
add esp, 0xc
lea edx, [ebp - 0x538]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 8
Function at 0x456430
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.004ba280
add esp, 0xc
movzx edx, word [ebp + 8]
push edx
push str._c:_
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x457320
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004ba280
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004ba280
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Softlink
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.SLDefault.xml
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x585bd8
call fcn.00401340
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004b9dbc
add esp, 8
push str.Softlink.xml
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45740c
push 0
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x458040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x458059
mov eax, 1
jmp 0x458162
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x52f3e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45815d
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x52f43c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4580b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x458162
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x458153
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0x52f45c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45811f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004b9d83
add esp, 4
mov eax, 1
jmp 0x458162
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c0fee
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004b9d83
add esp, 4
xor eax, eax
jmp 0x458162
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4585d0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523060
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x580ca0]
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 0x585bd8
lea ecx, [ebp - 0x2c]
call fcn.0040e030
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e060
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0040e030
mov dword [ebp - 0x60], eax
call fcn.00459f00
add esp, 0x1c
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4586fc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp + 0x24]
push eax
call fcn.0040e030
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004591d0
add esp, 0x20
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
push 0x52f47c
lea ecx, [ebp - 0x48]
call fcn.0040d8a0
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040e060
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.0040e030
mov dword [ebp - 0x70], eax
push esi
call fcn.00459e80
add esp, 0x20
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
call fcn.0045a100
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 0x4586f0
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.004ba1db
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x459f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523498
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x580ca0]
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 0x459f6a
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 0x459fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x459fb3
cmp dword [ebp - 0x18], 3
je 0x459fb3
cmp dword [ebp - 0x18], 0x7b
je 0x459fb3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp + 8]
push edx
call fcn.0040e030
mov dword [ebp - 0x28], eax
call fcn.0045a000
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x459fb3
mov dword [ebp - 0x30], 1
jmp 0x459fba
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 0x459fe3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45a100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5234f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x580ca0]
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.004034e0
test eax, eax
ja 0x45a157
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x14]
jmp 0x45a266
lea ecx, [ebp + 8]
call fcn.004034e0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0044e9e0
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x45a19d
lea ecx, [ebp + 8]
call fcn.004034e0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0044e9e0
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp + 8]
call fcn.00401340
push eax
lea ecx, [ebp + 8]
call fcn.0040b170
lea ecx, [ebp + 8]
call fcn.004034e0
cmp eax, 3
jb 0x45a1cf
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 8]
push edx
call fcn.0040e030
mov dword [ebp - 0x2c], eax
call fcn.0045a300
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x45a1ea
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov eax, dword [ebp - 0x1c]
jmp 0x45a266
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.0040e030
mov dword [ebp - 0x34], eax
push esi
call fcn.0045a280
add esp, 0x20
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
call fcn.0045a100
add esp, 0x1c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x45a247
push 0
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45a247
mov dword [ebp - 0x44], 1
jmp 0x45a24e
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 0x45a300
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523568
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x580ca0]
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 0x45a355
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x45a355
mov dword [ebp - 0x1c], 1
jmp 0x45a35c
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 0x45a4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52362f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x580ca0]
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.004ba280
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 0x52fc40
lea ecx, [ebp - 0x240]
call fcn.0040d8a0
push 0x52fc3c
lea ecx, [ebp + 8]
call fcn.00401340
push eax
call fcn.004bafaa
add esp, 8
test eax, eax
je 0x45a691
push 0x52fc38
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 0x52fc38
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.0040de30
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.0040de30
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.0040b1f0
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 0x45a6ab
push 0x52fc30
lea ecx, [ebp - 0x240]
call fcn.0040d8a0
jmp 0x45a6bb
push 0x52fc24
lea ecx, [ebp - 0x240]
call fcn.0040d8a0
push 0x52fc18
lea ecx, [ebp - 0x240]
call fcn.0040d8a0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0040e060
lea edx, [ebp - 0x240]
push edx
call fcn.0045a730
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.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x45a730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52366b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x580ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045a860
movzx eax, al
test eax, eax
je 0x45a7e3
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.0040e030
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00451f60
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.00402b70
push eax
call fcn.0045abe0
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00402c20
cmp dword [ebp - 0x70], 0
je 0x45a7e1
mov al, 1
jmp 0x45a84c
jmp 0x45a84a
push 0x44
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.004ba280
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 0x45a84a
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 0x45a84c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45afe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x580ca0]
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 0x45b010
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45b109
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.004ba280
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 0x45b09c
push str.explorer.exe
lea eax, [ebp - 0x224]
push eax
call fcn.004c1b43
add esp, 8
test eax, eax
jne 0x45b086
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x45b09a
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45b05c
jmp 0x45b0a5
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 0x45b0d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45b109
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 0x45b0fc
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.004ba1db
mov esp, ebp
pop ebp
ret

Function at 0x45b240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x45b261
or eax, 0xffffffff
jmp 0x45b2fd
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004ba280
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 0x45b2b6
cmp dword [ebp - 0x11c], 5
jne 0x45b2b6
cmp dword [ebp - 0x118], 0
jne 0x45b2b6
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x45b2f1
mov eax, dword [ebp + 8]
push eax
call fcn.0045b120
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x45b2e7
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045afe0
add esp, 4
jmp 0x45b2fd
mov eax, dword [ebp - 0x124]
jmp 0x45b2fd
mov edx, dword [ebp + 8]
push edx
call fcn.0045afe0
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x45b310
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x580ca0]
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 0x45b37b
jmp 0x45b40e
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 0x45b3a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x45b3a2
jmp 0x45b40e
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 0x45b3d1
jmp 0x45b40e
mov dword [ebp - 0x20], 0
jmp 0x45b3e3
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 0x45b40e
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 0x45b40c
mov byte [ebp - 0x19], 1
jmp 0x45b40e
jmp 0x45b3da
cmp dword [ebp - 0x18], 0
je 0x45b41e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x45b42e
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.004ba1db
mov esp, ebp
pop ebp
ret