joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41afd2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x432b68
call fcn.0041aad0
sub esp, 0x18
push ebx
push esi
push edi
mov esi, 0x801
mov dword [ebp - 0x10], esp
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
mov ebx, eax
push esi
push edi
push ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0x800
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], edi
je 0x41b07d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
pop esi
cmp dword [ebp - 0x1c], esi
jne 0x41b063
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b07d
cmp ebx, edi
je 0x41b088
push ebx
call fcn.0041aa1b
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41b09a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov eax, dword [eax + 4]
mov dword [ebp - 4], esi
cmp eax, esi
mov dword [ebp - 8], esi
jne 0x41b0b8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push 0x20006
push esi
push 0x44a05c
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp + 0x14]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x41b0ec
mov eax, edx
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 4]
cmp edi, esi
je 0x41b0f8
mov edx, edi
push ecx
push eax
push 1
push esi
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x41c04a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x432db9
call fcn.0041aad0
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x41c06a
cmp word [eax], bx
jne 0x41c076
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x41c076
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x44801c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x41c0a0
lea eax, [ebp + 8]
push 0x43df78
push eax
mov dword [ebp + 8], 3
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp + 0xb]
mov edi, dword [esi + 0x38]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [ebp - 4], ebx
cmp edi, dword [esi + 0x3c]
je 0x41c0d8
mov ecx, dword [edi]
cmp dword [esi + 0x2c], ebx
mov eax, dword [ecx]
jne 0x41c0cc
push dword [ebp + 8]
call dword [eax + 0x18]
jmp 0x41c0d3
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0x14]
add edi, 4
jmp 0x41c0b6
cmp dword [esi + 0x2c], ebx
je 0x41c13c
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00404c5b
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
call fcn.0041c384
cmp eax, ebx
je 0x41c12f
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x41c11d
mov eax, 0x436674
push dword [ebp + 8]
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00404c5b
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41c4f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
call fcn.0040de99
cmp eax, 0x14
pop ecx
jb 0x41c546
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0041c567
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 1
push 0x14
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x41c546
cmp dword [ebp - 0x14], 0x58453144
je 0x41c54a
xor al, al
jmp 0x41c563
cmp dword [ebp + 0xc], 0
je 0x41c561
lea eax, [ebp - 0x14]
push 0x14
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov al, 1
leave
ret 8

Function at 0x41e451
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x433020
call fcn.0041aad0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x24]
test eax, eax
setne cl
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
mov edx, dword [esi]
and dword [ebp - 4], 0
mov ecx, esi
push dword [ebp + 0x10]
push eax
call dword [edx + 0x28]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, esi
call dword [eax + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.0041e65f
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x42b554
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4348fa
call fcn.0041aad0
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x1c], esi
call fcn.0041d81a
or dword [esi + 8], 0xffffffff
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0042c55c
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042b8b9
and dword [ebp - 0x18], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 2
call fcn.0042b8b9
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x43b760
mov dword [esi + 4], 0x43b758
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42c49f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x42c4cb
shr esi, 2
je 0x42c4da
sub ecx, eax
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec esi
jne 0x42c4be
pop esi
ret
test esi, esi
jbe 0x42c4da
sub ecx, eax
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x42c4d1
pop esi
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1f782d0a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x4e6d07cb
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402ed2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a956a
call fcn.004a80c4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
and dword [edi + 0xc], 0
and dword [ebp - 4], 0
lea ebx, [edi + 0x14]
mov esi, ebx
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00402fac
lea esi, [edi + 0x30]
call fcn.00402fac
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f40
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402f40
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405ff6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40600d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x406042
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40603e
cmp edi, eax
jae 0x406042
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x406030
cmp edi, eax
jb 0x406046
xor eax, eax
jmp 0x406050
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4061e8
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 0x406276
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 0x40621f
cmp dword [ebp - 8], 2
jne 0x406275
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405e12
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405ca7
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 0x40625d
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 0x40626d
push eax
call fcn.0047b2ea
pop ecx
mov edx, esi
call fcn.00405c86
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406703
test al, 0x10
je 0x406703
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40907d
Capabilities:
Create directory

Disassembly:
mov eax, 0x4aa240
call fcn.004a80c4
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x28]
call fcn.004091c6
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov dword [ebp + 8], 0x5c
call fcn.00409254
cmp eax, 0xffffffff
je 0x409174
push eax
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x44]
call fcn.004091f2
cmp dword [eax + 0x18], 8
jb 0x4090d1
mov eax, dword [eax + 4]
jmp 0x4090d4
add eax, 4
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push 1
lea esi, [ebp - 0x44]
mov edi, eax
call fcn.0040693f
cmp edi, ebx
je 0x409129
cmp edi, 0x50
je 0x409129
cmp edi, 0xb7
je 0x409129
cmp edi, ebx
jle 0x40910b
and edi, 0xffff
or edi, 0x80070000
push ebx
push 1
lea esi, [ebp - 0x28]
call fcn.0040693f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x409135
lea eax, [ebp - 0x24]
push ebx
push 0x80
push 1
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409169
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x409165
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40910b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x40910b
mov edi, 0x80070057
jmp 0x40910b

Function at 0x409564
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x409592
push dword [esp + 0xc]
call fcn.0047b2ea
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409592
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x4095ac
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 0x409635
push ebx
call fcn.004777af
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 0x409626
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b95bc
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 0x409626
cmp dword [ebp - 0xc], ebx
je 0x409626
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 0x409635
push dword [ebp - 4]
call fcn.0047a324
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x409671
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ab675
call fcn.004a80c4
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4da2a0
mov dword [ebp - 0x10], edi
call fcn.00405f43
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.00478160
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.0040611b
push esi
call fcn.004065c2
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4097cc
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.00478160
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 0x409825
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4098e8
mov eax, dword [ebp - 0x94]
dec eax
je 0x4098d4
dec eax
jne 0x4098e8
mov eax, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x9c]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x409872
cmp esi, edx
jne 0x409860
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x4098d0
cmp esi, edi
jne 0x4098aa
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4098d0
cmp eax, 5
jne 0x40989c
cmp dword [ebp - 0x9c], 2
jne 0x409883
push eax
jmp 0x4098a3
cmp dword [ebp - 0x9c], 1
jne 0x409890
mov edi, ecx
jmp 0x4098e8
cmp dword [ebp - 0x9c], edi
jne 0x4098e8
push 3
jmp 0x4098a3
cmp eax, 4
ja 0x4098a6
push 4
pop edi
jmp 0x4098e8
cmp eax, ecx
jb 0x4098e8
cmp esi, 2
jae 0x4098b3
cmp eax, ecx
jbe 0x4098ba
cmp byte [ebp + 0x76], dl
je 0x4098cb
cmp eax, ecx
jb 0x4098c1
cmp esi, 2
jae 0x4098c5
cmp eax, ecx
jbe 0x4098e8
cmp byte [ebp + 0x76], 3
jne 0x4098e8
call fcn.004096f4
mov edi, eax
jmp 0x4098e8
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 0x40a0e9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00408c4e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40a196
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x40a195
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.00408c8d
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a195
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40a195
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x40a146
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x40a180
xor eax, eax
jmp 0x40a187
push eax
call fcn.0047a730
pop ecx
mov edx, esi
call fcn.00408cb3
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x40a1a6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40a83c
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 0x40a861
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a922
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.00478160
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 0x40a8d1
lea eax, [ebp - 0x20c]
push 0x4b9798
push eax
call fcn.0047c9f4
test eax, eax
pop ecx
pop ecx
je 0x40a8c5
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a89b
jmp 0x40a8da
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40a8da
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 0x40a8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a921
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a91b
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 0x40aa07
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40aa19
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00478160
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 0x40aa5c
cmp dword [ebp - 0x110], 5
jne 0x40aa5c
cmp dword [ebp - 0x10c], 0
je 0x40aa69
push esi
call fcn.0040a925
test eax, eax
pop ecx
jne 0x40aa69
leave
ret
push esi
call fcn.0040a83c
pop ecx
leave
ret

Function at 0x40aa72
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 0x40ab32
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 0x40aad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ab31
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 0x40ab25
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40ab25
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40ab21
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x40ab03
jmp 0x40ab25
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x40ab30
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x40ab41
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret