joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c64a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x416195
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.0040c765
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x40c67a
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]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
mov edi, 0x40000000
push 1
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40c6d0
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0040c765
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c6b1
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 ebx
push ebx
push 2
push ebx
push 1
push edi
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c6fa
lea eax, [ebp + 8]
push ebx
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c6f1
cmp dword [ebp + 8], 0x10
jne 0x40c6f1
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40ce80
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0x40ecce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a20
call fcn.00402f40
and word [ebp - 0x220], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40ed3f
xor al, al
jmp 0x40ee41
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40ee1d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x2800
push ecx
lea ecx, [ebp - 0x2a20]
push ecx
call eax
test eax, eax
jne 0x40ee1d
lea eax, [ebp - 0x2a20]
lea esi, [ebp - 0x2a20]
test eax, eax
mov dword [ebp - 0xc], 3
je 0x40ee1d
push ebx
lea eax, [esi + 8]
push eax
call fcn.0040ee45
mov dword [ebp + 8], eax
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, edi
lea eax, [ebp - 8]
add esp, 0x10
xor edx, edx
sub ecx, eax
lea eax, [ebp + edx - 8]
mov bl, byte [ecx + eax]
cmp bl, byte [eax]
jne 0x40edc6
inc edx
cmp edx, 6
jb 0x40edb3
jmp 0x40edd7
cmp dword [esi + 0x1a0], 6
jne 0x40ee12
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jle 0x40ee12
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov esi, dword [esi]
test esi, esi
jne 0x40ed8e
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0040efe7
pop edi
pop esi
leave
ret
Function at 0x40ee45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov edi, 0x20019
xor ebx, ebx
push eax
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x40efb3
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push str._sConnection
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x11c]
push ebx
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40efaa
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40efa1
push 1
lea eax, [ebp - 0x11c]
pop edi
mov dword [ebp - 8], 0x103
push 0x104
push ebx
push eax
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40efa1
cmp dword [ebp - 0x10], edi
jne 0x40ef8f
mov esi, 0x41ec34
push esi
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x40ef68
mov dword [ebp - 0xc], ebx
jmp 0x40efa1
cmp dword [ebp - 0x10], 1
jne 0x40ef8f
push esi
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
je 0x40ef8f
mov dword [ebp - 0xc], 2
jmp 0x40efa1
xor eax, eax
cmp dword [ebp - 0x10], 2
setne al
dec eax
and al, 0xfe
add eax, 3
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4103b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41658c
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
jne 0x4103db
push esi
push esi
push esi
push 2
mov ecx, ebx
call fcn.00411cd6
xor al, al
jmp 0x410541
mov ecx, ebx
call fcn.0040f2ce
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
push 2
push esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov esi, eax
call edi
xor eax, eax
add esp, 0x1c
cmp esi, eax
jne 0x41041c
push eax
push eax
push eax
push 0xd
jmp 0x4103cd
mov edi, 0x421cb8
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00412a1c
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x41047e
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 2
call fcn.00411cd6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x4103d4
push dword [ebp - 0x10]
call fcn.00402eda
pop ecx
jmp 0x4103d4
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edi, eax
and byte [ecx + esi], 0
cmp byte [ecx], 0
je 0x4104e9
mov cl, byte [edi]
cmp cl, 0xa
jne 0x4104a7
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00412b25
inc edi
jmp 0x4104db
cmp cl, 0xd
jne 0x4104e3
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x4104be
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00412b25
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.00412b25
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x4104df
inc edi
inc edi
mov eax, edi
jmp 0x4104e4
mov edi, eax
jmp 0x4104db
inc edi
cmp byte [edi], 0
jne 0x41048e
sub edi, eax
je 0x4104f7
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00412b25
push dword [ebp - 0x14]
call fcn.00402eda
mov eax, dword [ebx]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, 8
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
cmp byte [ebx + 0x2c], 0
je 0x410529
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x421cb8
jmp 0x41046a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x421cb8
je 0x41053f
push dword [ebp - 0x10]
call fcn.00402eda
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x412e89
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x412ec0
cmp dword [ebp - 0x110], 6
jb 0x412ec0
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x412ec4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x413069
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x413069
cmp dword [0x41f044], 1
jne 0x41300f
call fcn.00412e89
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, 7
ja case.default.0x412f07
jmp dword [eax*4 + 0x413070]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413069
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x412f3e
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push esi
call edi
push str.Tencent
push esi
call edi
push str.EasyTime
push esi
call edi
push 1
pop edi
jmp case.default.0x412f07
push ebx
push esi
push 0
call fcn.00412ec4
add esp, 0xc
mov edi, eax
push str.CoolGame
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp case.default.0x412f07
push ebx
push esi
call fcn.00412dc9
pop ecx
test eax, eax
pop ecx
je 0x412f8d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412f4e
push ebx
push esi
call fcn.00412e12
pop ecx
test eax, eax
pop ecx
je 0x412f4e
push str.CoolGame
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x412f4e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x413063
push ebx
push esi
push 0
call fcn.00412ec4
add esp, 0xc
mov edi, eax
push str.plugin
jmp 0x412f69
push ebx
push esi
push 1
call fcn.00412ec4
add esp, 0xc
mov edi, eax
push str.Offline
jmp 0x412f69
push ebx
push esi
push 0
call fcn.00412ec4
add esp, 0xc
mov edi, eax
push str.user
jmp 0x412f69
push ebx
push esi
push 1
call fcn.00412ec4
add esp, 0xc
mov edi, eax
push str.game
jmp 0x412f69
mov eax, dword [ebp + 8]
sub eax, edi
je 0x413057
dec eax
je 0x413022
dec eax
je 0x413040
dec eax
je 0x41303a
dec eax
jne case.default.0x412f07
push ebx
push esi
push 6
call fcn.004087cb
add esp, 0xc
mov edi, eax
push str.3366game
jmp 0x412f69
push ebx
push esi
push 3
jmp 0x41305b
push ebx
push esi
push edi
call fcn.004087cb
add esp, 0xc
mov edi, eax
push str.Installer
jmp 0x412f69
push ebx
push esi
push 6
call fcn.004087cb
add esp, 0xc
mov edi, eax
mov eax, edi
jmp 0x41306b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x413239
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x7fe]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x800]
push 0x400
push eax
call fcn.00413090
add esp, 0xc
test eax, eax
pop edi
je 0x41329c
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x800]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4132a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 1
pop edi
lea ecx, [eax + eax]
mov dword [ebp + 0x14], ecx
je 0x413320
test eax, eax
je 0x413320
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00413090
add esp, 0xc
test eax, eax
je 0x413320
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x414913
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x262]
mov word [ebp - 0x264], bx
mov word [ebp - 0x46c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x674], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x672]
push 0x13
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x208
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x5a]
mov word [ebp - 0x5c], bx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
movzx ecx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x5c]
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x27
push eax
call esi
lea eax, [ebp - 0x5c]
mov edi, 0x103
push eax
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x46c]
push edi
push eax
call esi
add esp, 0x48
lea eax, [ebp - 0x5c]
push eax
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x674]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x264]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x46c]
push ebx
mov edi, 0x80000000
push eax
push edi
call esi
test eax, eax
je 0x414a4d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x674]
push ebx
push eax
push edi
call esi
test eax, eax
je 0x414a4d
xor eax, eax
jmp 0x414a63
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414a7d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x416858
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00414b75
mov edi, eax
cmp edi, esi
je 0x414ac7
cmp dword [ebp - 0x10], esi
je 0x414ac0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x414b64
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x414b38
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414a7d
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x414b25
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x414aea
cmp dword [ebp - 0x10], esi
je 0x414b33
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x414b64
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x414b4b
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x414b62
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4151e7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x415237
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
push 0
push eax
mov dword [esi + 8], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
push dword [esi + 8]
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415237
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414faf
test eax, eax
jne 0x41523e
xor eax, eax
jmp 0x4152e0
mov eax, dword [ebp - 0x2c]
mov edi, 0x104
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
push edi
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 0x14], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x238]
shr ecx, 0x10
mov word [esi + 0x18], cx
push eax
push str.CompanyName
mov ecx, esi
call fcn.004150c4
lea eax, [esi + 0x648]
push edi
push eax
push str.FileDescription
mov ecx, esi
call fcn.004150c4
lea eax, [esi + 0x440]
push edi
push eax
push str.ProductName
mov ecx, esi
call fcn.004150c4
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41559c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov esi, 0x2000000
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41572d
lea eax, [ebp - 4]
push eax
push 1
push 2
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x415728
push str.advapi32.dll
call fcn.00405adb
push str.ConvertStringSidToSidW
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41571a
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x41571a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], 0x20
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x14]
push eax
push 0x19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x415711
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
mov ecx, 0x103
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x47a]
cmp dword [ebp + 0x10], ebx
mov word [ebp - 0x47c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4156b0
push dword [ebp + 0x10]
lea eax, [ebp - 0x47c]
push dword [ebp + 0xc]
push str.__s___s
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4156c8
push 0x207
lea eax, [ebp - 0x47c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x47c]
push ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x41570b
cmp dword [ebp + 0x14], ebx
jbe 0x4156fc
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push 1
pop ebx
jmp 0x415711
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret