joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4318fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4b9e2f
call fcn.004b89d0
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4e70b4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x431954
call fcn.0043a962
mov esi, eax
jmp 0x431a55
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x431971
call fcn.0043a962
jmp 0x431a4a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x431967
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x4319b7
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4319ad
lea eax, [ebp - 0x424]
call fcn.004329f8
mov eax, 0x8007000e
jmp 0x431a70
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00431a81
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x4319db
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00432a01
jmp 0x4319e7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x431a02
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x431a13
mov esi, 0x8007000e
jmp 0x431a4c
call dword [0x4e70b4]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x431967
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.00431aa6
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x431a6e
lea eax, [ebp - 0x424]
call fcn.004329f8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x432983
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x432996
push 0x80004005
call fcn.00414deb
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x43299d
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4329cd
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x432a97
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x432b5e
xor eax, eax
cmp dword [ebp - 8], esi
je 0x432ae0
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x432b5e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x432b34
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00432a97
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x432b71
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x432b08
cmp dword [ebp - 8], esi
je 0x432b4e
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x432b68
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x432b7b
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x432b6a
Function at 0x43524e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4bb5ee
call fcn.004b89d0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [ebp - 4], 2
mov dword [esi + 0x70], edi
call fcn.00410767
lea ecx, [esi + 0x78]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x7c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x436c28
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4bcc60
call fcn.004b89d0
sub esp, 0x21c
mov eax, dword [0x4ed5f0]
push ebx
push esi
push edi
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x228], bx
call fcn.00486640
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00427868
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00427868
push 0x2e
lea esi, [ebp - 0x10]
call fcn.00427689
cmp eax, 0xffffffff
je 0x436cdd
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004275fd
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00427953
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [0x4ed5f0]
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x10]
fstp qword [ebp - 0x20]
push eax
call fcn.00436ded
test eax, eax
jne 0x436d3a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040dae8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x436d75
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, ebx
jmp 0x436d29
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x436ddd
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00414ce0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x436dd3
cmp dword [ebp - 0x14], edi
jne 0x436dd3
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x436dbb
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0041235b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x436d5b
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.00412374
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x436d5b
Function at 0x43cd14
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x43cd2d
mov eax, dword [ebp - 4]
jmp 0x43ce07
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x43cde2
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ccc90]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ccc90]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ccc90]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ccc90]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ccc90]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ccc90]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ccc90]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4ccc90]
dec ebp
jne 0x43cd4c
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x43cdfe
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4ccc90]
dec ecx
jne 0x43cdec
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43ce9e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x58]
push ecx
push esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
call fcn.00486640
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x43cf88
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x58], esi
jne 0x43cfb8
push 0x98
call fcn.00459afb
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x43cfab
call fcn.0043ce9e
mov eax, ebx
jmp 0x43cfad
xor eax, eax
cmp eax, esi
mov dword [edi + 0x58], eax
jne 0x43cfb8
xor eax, eax
jmp 0x43d02e
push ebp
push 0x4cd808
push dword [esp + 0x14]
call fcn.0048970b
mov ebp, eax
cmp ebp, esi
pop ecx
pop ecx
jne 0x43cfd3
xor eax, eax
jmp 0x43d02d
cmp dword [edi + 0x5c], esi
mov ebx, 0xff
jne 0x43cfe7
push ebx
call fcn.004841da
pop ecx
mov dword [edi + 0x5c], eax
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.004899ba
add esp, 0x10
cmp eax, esi
je 0x43d018
push dword [edi + 0x5c]
mov esi, dword [edi + 0x58]
call fcn.0044d40c
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.004899ba
add esp, 0x10
test eax, eax
jne 0x43cffa
push ebp
call fcn.00489a47
mov eax, dword [edi + 0x58]
pop ecx
lea esi, [edi + 4]
push esi
call fcn.0043ced6
mov eax, esi
pop ebp
pop esi
pop ebx
ret 4
Function at 0x43d033
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push 0x58
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00486640
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0043d095
push dword [ebp + 8]
mov eax, esi
call fcn.0043d12b
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44467c
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x444694
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x444684
ret 8

Function at 0x446601
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x44668f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x446638
cmp dword [ebp - 8], 2
jne 0x44668e
push esi
mov esi, dword [ebp + 0xc]
call fcn.00427501
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.0042771e
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x446676
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x446686
push eax
call fcn.00486c84
pop ecx
mov edx, esi
call fcn.00414cbf
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4468d0
test al, 0x10
jne 0x4468d0
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x446bdd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x446c66
push ebx
call fcn.004841da
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x446c57
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c9eb8
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x446c57
cmp dword [ebp - 0xc], ebx
je 0x446c57
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x446c66
push dword [ebp - 4]
call fcn.00486839
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x446d36
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4bc106
call fcn.004b89d0
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4ed5f0
mov dword [ebp - 0x10], edi
call fcn.00425728
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.00486640
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00427868
push esi
call fcn.00446ca2
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x446e84
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x446edd
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x446f93
mov eax, dword [ebp - 0x94]
dec eax
je 0x446f7f
dec eax
jne 0x446f93
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x446f2c
cmp dword [ebp - 0x9c], edx
jne 0x446f16
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x446f7b
cmp dword [ebp - 0x9c], edi
jne 0x446f64
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x446f7b
cmp eax, 5
jne 0x446f56
cmp dword [ebp - 0x9c], 2
jne 0x446f3d
push eax
jmp 0x446f5d
cmp dword [ebp - 0x9c], 1
jne 0x446f4a
mov edi, ecx
jmp 0x446f93
cmp dword [ebp - 0x9c], edi
jne 0x446f93
push 3
jmp 0x446f5d
cmp eax, 4
ja 0x446f60
push 4
pop edi
jmp 0x446f93
cmp eax, ecx
jb 0x446f93
cmp dword [ebp - 0x9c], 2
jae 0x446f71
cmp eax, ecx
jbe 0x446f93
cmp byte [ebp + 0x76], dl
jne 0x446f93
call fcn.00446db9
mov edi, eax
jmp 0x446f93
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x447221
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x447246
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x447307
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4472b6
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.00487d12
test eax, eax
pop ecx
pop ecx
je 0x4472aa
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x447280
jmp 0x4472bf
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x4472bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4472e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x447306
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x447300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4473ec
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x4473fe
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447441
cmp dword [ebp - 0x110], 5
jne 0x447441
cmp dword [ebp - 0x10c], 0
je 0x44744e
push esi
call fcn.0044730a
test eax, eax
pop ecx
jne 0x44744e
leave
ret
push esi
call fcn.00447221
pop ecx
leave
ret

Function at 0x447457
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x447517
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4474bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x447516
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x44750a
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x44750a
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x447506
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x4474e8
jmp 0x44750a
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x447515
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x447526
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret
Function at 0x44752b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x447599
push 0x110
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447593
cmp dword [ebp - 0x118], 6
jne 0x447593
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4475ce
mov dword [esi], edi
xor eax, eax
jmp 0x4475ce
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 4], edi
push ebx
mov ebx, 0x490
jbe 0x4475c5
lea edx, [ecx + 8]
cmp dword [edx], edi
je 0x4475bb
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x4475ac
jmp 0x4475c5
imul eax, eax, 0xc
mov eax, dword [eax + ecx]
mov dword [esi], eax
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x447b87
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4bc0b9
call fcn.004b89d0
sub esp, 0x10
mov eax, dword [0x4ed5f0]
push ebx
push esi
mov esi, 0x4ed5f0
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4ed5f0]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov eax, dword [0x4ed5f0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00447b02
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
je 0x447c56
lea eax, [ebp - 0x14]
push eax
call fcn.00447b63
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00427953
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040dae8
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x447c56
push str.binTimwp.exe
lea eax, [ebp - 0x10]
push eax
call fcn.00427541
mov edi, dword [ebp - 0x10]
push ebx
push edi
call fcn.00489568
test eax, eax
pop ecx
pop ecx
jne 0x447c56
cmp dword [ebp + 8], ebx
je 0x447c56
push 1
push ebx
push dword [ebp + 8]
push edi
push str.open
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x447c70
push 1
push ebx
push ebx
push dword [ebp + 0xc]
push str.open
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040dae8
lea eax, [edi - 0x10]
call fcn.0040dae8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret