joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409940
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push 0x3fe
lea eax, [esp + 0x40a]
push 0
push eax
mov word [esp + 0x410], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x41c]
push edx
push 0x42e748
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
call fcn.0040b480
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4099cb
lea eax, [esp + 0x404]
push eax
push str.Path
mov ecx, str.SoftwareMicrosoftIE_SetupSetup
call fcn.0040b480
mov esi, eax
add esp, 8
test esi, esi
je 0x409a39
push 0x200
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jle 0x409a37
push str.iexplore.exe
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409a2a
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push str.iexplore.exe
lea edx, [esp + 0xc]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
lea eax, [esp + 4]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, esi
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00422218
add esp, 0x804
ret
Function at 0x409a50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42c902
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0x42e748
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea esi, [esp + 0x28]
mov dword [esp + 0x50], 0
call fcn.00409850
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
je 0x409b4b
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x409abd
lea eax, [esp + 0x2c]
push str.iexplore.exe
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x409b4b
push 0x42e748
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ebx, [esp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00409940
test eax, eax
je 0x409b3c
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x409b00
lea eax, [esp + 0x10]
push 5
push 0
push edi
push eax
push str.open
push 0
call esi
cmp eax, 0x20
jbe 0x409b3c
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x409b7a
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 5
push 0
push 0
push edi
push str.open
push 0
call esi
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
lea ecx, [esp + 0x28]
neg esi
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00422218
add esp, 0x48
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409c76
test al, 0x10
jne 0x409c76
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409c80
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409ca1
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x409cb0
Capabilities:
Copy file
Move file

Disassembly:
sub esp, 0x20
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push 0
mov edi, ecx
push ebx
push edi
call ebp
test eax, eax
jne 0x409d2b
push esi
lea esi, [esp + 0xc]
call fcn.00409d40
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x409ceb
lea eax, [esp + 0x10]
push 0
push eax
push edi
call ebp
mov esi, eax
test esi, esi
je 0x409d1e
cmp dword [esp + 0x24], 8
mov esi, dword [esp + 0x10]
jae 0x409d06
lea esi, [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push esi
call edi
test eax, eax
jne 0x409d1c
push 5
push ebx
push esi
call edi
mov esi, eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor ecx, esp
call fcn.00422218
add esp, 0x20
ret

Function at 0x409d40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x414], eax
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x206
lea edx, [esp + 0x212]
push 0
push edx
mov word [esp + 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x20c]
push eax
push 0
push 0x430498
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x20c]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov eax, esi
call fcn.00422218
add esp, 0x418
ret

Function at 0x409df0
Capabilities:
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 0x18], 8
push edi
mov edi, eax
lea esi, [ebx + 4]
jb 0x409e04
mov eax, dword [esi]
jmp 0x409e06
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x409e1d
mov edi, dword [edi + 4]
jmp 0x409e20
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x409e28
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x409e3e
push 5
push edi
push esi
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x409f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42be59
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x4304a8
mov ecx, esi
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
mov ecx, esi
je 0x409fe1
push eax
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.00409e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
call fcn.00409e50
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40a240
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x42be15
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
xor ebx, ebx
cmp eax, ebx
je 0x40a3d0
cmp byte [eax], bl
je 0x40a3d0
cmp ebp, ebx
je 0x40a3d0
cmp ecx, ebx
mov dword [esp + 0x30], 0x67452301
mov dword [esp + 0x34], 0xefcdab89
mov dword [esp + 0x38], 0x98badcfe
mov dword [esp + 0x3c], 0x10325476
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jle 0x40a2e1
push ecx
push eax
lea edi, [esp + 0x38]
call fcn.0040bc50
add esp, 8
xor eax, eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov word [esp + 0xd9], ax
mov byte [esp + 0xdb], al
lea eax, [esp + 0xcc]
push eax
lea esi, [esp + 0x34]
mov byte [esp + 0xd0], bl
call fcn.0040bd10
push 0x3f
lea ecx, [esp + 0xf1]
push ebx
push ecx
mov byte [esp + 0xf8], bl
call sub.MSVCR80.dll_memset
add esp, 0x10
lea ecx, [esp + 0xe8]
lea eax, [esp + 0xcc]
call fcn.0040bdc0
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0xfde9
lea edi, [esp + 0xd0]
lea esi, [esp + 0x18]
mov dword [esp + 0x138], ebx
call fcn.00409680
add esp, 4
mov ecx, edi
mov byte [esp + 0x134], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40a39f
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push eax
push 0x100
push ebp
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x40a3d2
xor eax, eax
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00422218
add esp, 0x124
ret
Function at 0x40a650
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b8aa
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x248], eax
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x206
lea eax, [esp + 0x4e]
push edi
mov dword [esp + 0x264], 1
push eax
mov word [esp + 0x54], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edi, [esp + 0x10]
mov byte [esp + 0x25c], 2
call fcn.0040b4f0
mov eax, edi
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov dword [esp + 8], 1
mov byte [esp + 0x25c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00422218
add esp, 0x258
ret

Function at 0x40a7a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
push str.Start_1
push 0xd1
push str.._thread.cpp
mov esi, eax
call fcn.0041cc90
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x40a7d6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a7d6
xor eax, eax
pop esi
pop ecx
ret 4
push edi
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x40a860
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
push eax
push str.Start_2_m_hThread_08x
push 0xd1
push str.._thread.cpp
mov dword [esi + 4], eax
call fcn.0041cc90
mov esi, dword [esi + 4]
xor ecx, ecx
add esp, 0x28
test esi, esi
setne cl
mov edi, ecx
test edi, edi
je 0x40a82f
cmp dword [esp + 0x10], 0
je 0x40a82f
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x40b480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push ecx
push closesocket
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b4da
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
push eax
push esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
sbb esi, esi
push eax
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x41c250
Capabilities:
Resume thread

Disassembly:
call fcn.00420b70
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.00420fb0
push 0x41bf50
push 0x43daf0
call fcn.00421270
push 0x41bf90
push 0x43daf4
call fcn.00421270
push 0x41bfd0
push 0x43daf8
call fcn.00421270
push 0x41c010
push 0x43dafc
call fcn.00421270
push 0x41c070
push 0x43db04
call fcn.00421270
push 0x41c0c0
push 0x43db00
call fcn.00421270
push 0x41c110
push 0x43db08
call fcn.00421270
push 0x41c150
push 0x43db0c
call fcn.00421270
jmp 0x420cb0

Function at 0x41c6f0
Capabilities:
Read file via mapping

Disassembly:
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x41c72a
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 4], eax
jne 0x41c72d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
ret
mov dword [esi + 8], eax
mov eax, 1
ret

Function at 0x41c810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x434df8
push closesocket
mov dword [esp + 0x14], 0
mov byte [0x43db40], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c887
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push str.EnableLogToView
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c87d
mov eax, 1
cmp dword [esp + 4], eax
jne 0x41c87d
mov byte [0x43db40], al
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x420100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42013c
mov eax, dword [ebp - 0xc]
jmp 0x42014b
cmp dword [ebp - 4], 4
je 0x420149
mov eax, 0xd
jmp 0x42014b
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x420160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4201a8
mov eax, dword [ebp - 0xc]
jmp 0x4201c7
cmp dword [ebp - 4], 1
je 0x4201bb
cmp dword [ebp - 4], 2
je 0x4201bb
mov eax, 0xd
jmp 0x4201c7
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4201d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4365b0
push 0x42ab42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x420208
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call edi
test eax, eax
jbe 0x42028a
cmp dword [ebp - 0x24], 0x1000
jne 0x4202a2
test dword [ebp - 0x20], 0x100
jne 0x4202a2
mov dword [ebp - 4], 0
cmp word [esi], 0x5a4d
jne 0x42029f
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x42029f
mov dword [ebp - 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
lea esi, [edx + ecx]
jmp 0x420228
Function at 0x4202b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4365a0
push 0x42ab42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4202ea
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x420302
push 0xc1
jmp 0x4203c1
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x42031c
push 0xbf
jmp 0x4203c1
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x4203bc
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x4203bc
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4203ab
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4203bc
cmp dword [ebx + 0x10], 0
je 0x4203bc
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x4203bc
cmp dword [esi + 4], 0x727444
jne 0x4203bc
cmp dword [esi + 8], 0
jne 0x420387
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x420335
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [ebx], 0x150
jne 0x420622
cmp dword [esp + 0x10], 0x150
jb 0x420622
mov ecx, dword [ebx + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
lea eax, [esp + 8]
push eax
push 0x40
push 0x40
push ecx
xor esi, esi
call ebp
test eax, eax
je 0x420618
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push 0x40
push 0xf8
push eax
call ebp
test eax, eax
je 0x420606
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4205ab
lea ecx, [esp + 0x10]
push ecx
push 0x40
push 4
push eax
call ebp
test eax, eax
je 0x4205f1
push edi
mov edi, dword [ebx + 4]
lea esi, [ebx + 0x14]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 8]
lea esi, [ebx + 0x54]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xc]
test eax, eax
pop edi
je 0x4205d6
mov edx, dword [ebx + 0x14c]
mov dword [eax], edx
mov eax, dword [ebx + 0xc]
test eax, eax
mov esi, 1
je 0x4205f1
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push 4
push eax
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x18]
push eax
push ecx
push 0xf8
push edx
call ebp
mov ecx, dword [esp + 8]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
push ecx
push 0x40
push edx
call ebp
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 4

Function at 0x420690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436590
push 0x42ab42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x420721
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x420721
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x420721
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x420721
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4207c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x43d530]
test esi, esi
je 0x4207ea
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4207d3
pop edi
pop esi
pop ecx
ret