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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1088e74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x74]
push eax
mov ebx, ecx
call fcn.01022a50
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01022b08
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp word [esi], 0
je 0x102117b
push edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1021155
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.01022b08
add esi, edi
cmp word [esi], 0
jne 0x1021150
pop edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01022c08
push 0x14
pop eax
jmp 0x10211c7
test eax, eax
jne 0x10211b9
lea eax, [ebp - 0x74]
push eax
call fcn.01022a50
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01022b08
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01022c08
push 0x14
pop eax
lea ecx, [ebp - 4]
sub ecx, eax
mov cl, byte [ecx]
mov byte [ebx], cl
inc ebx
dec dword [ebp + 8]
dec eax
cmp dword [ebp + 8], 0
jne 0x102118d
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100f230
leave
ret 4
Function at 0x1022a50
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x108904c], 0
push ebx
jne 0x1022acd
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x1022ac1
cmp dword [ebp - 8], 0x660
jae 0x1022ac1
xor eax, eax
mov eax, dword [eax*4 + 0x1088010]
mov dword [0x108904c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x105e97e
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
rdtsc
sub esp, 0x2c
mov dword [0x10893f8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x1088e64], 0
mov dword [0x1088e20], eax
jne 0x105e9c2
push 0x10894a0
call fcn.0104c8c1
test eax, eax
jl 0x105eb65
mov dword [0x1088e64], 1
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, 0x1000000
mov eax, dword [0x100003c]
mov ecx, dword [eax + 0x1000050]
add ecx, edx
mov eax, dword [ebp - 0x24]
lea esi, [eax - 0x80000000]
cmp ecx, esi
jb 0x105e9f2
lea eax, [ecx - 0x80000000]
mov ecx, dword [ebp - 0x20]
lea esi, [ecx - 0x80000000]
add eax, 0xffff
and eax, 0xffff0000
mov dword [0x1088e24], eax
cmp esi, edx
pop esi
jb 0x105ea14
mov ecx, 0x81000000
mov dword [0x10893c0], ecx
xor ecx, ecx
mov word [0x10893c0], cx
mov ecx, dword [0x10893c0]
sub ecx, eax
shr ecx, 0x10
xor eax, eax
test eax, eax
mov dword [0x1089594], ecx
jl 0x105eb65
mov ecx, dword [0x1088018]
jmp 0x105ea66
imul ecx, ecx, 0x18
add ecx, 0x1088ea0
push ecx
call fcn.0104c8c1
test eax, eax
jl 0x105ea6b
mov ecx, dword [0x1088018]
inc ecx
mov dword [0x1088018], ecx
cmp ecx, 4
jb 0x105ea46
test eax, eax
mov dword [ebp - 4], eax
jl 0x105eb65
mov eax, dword [0x101da18]
test eax, eax
je 0x105eb05
lea eax, [ebp - 8]
push eax
mov eax, dword [0x102dddc]
mov ecx, dword [0x101da18]
push 0x40
imul eax, ecx
push eax
push 0x107f008
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x105eac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105eab8
mov eax, 0x54f
test eax, eax
jle 0x105eb07
and eax, 0xffff
or eax, 0x80070000
jmp 0x105eb07
mov eax, dword [0x101da18]
xor edx, edx
test eax, eax
jbe 0x105eb05
mov eax, dword [0x102dddc]
mov ecx, dword [0x102dddc]
imul eax, edx
lea eax, [eax + 0x107f008]
test ecx, ecx
je 0x105eaf0
mov byte [eax], 0
inc eax
dec ecx
jne 0x105eae9
mov eax, dword [0x101da18]
mov dword [edx*4 + 0x1088fa0], 0xd1a4
inc edx
cmp edx, eax
jb 0x105ead1
xor eax, eax
test eax, eax
jl 0x105eb65
mov ecx, dword [0x1088f10]
test ecx, ecx
je 0x105eb4e
mov eax, dword [0x1088f08]
lea edx, [eax + 0x1088f38]
add eax, dword [0x1088f0c]
mov dword [0x1088f20], edx
lea edx, [eax + 0x1088f38]
mov dword [0x1088f18], 0x1088f38
lea eax, [eax + ecx + 0x1088f38]
mov dword [0x1088f28], edx
mov dword [0x1088f30], eax
and dword [ebp - 4], 0
push edi
lea edi, [ebp - 4]
mov eax, 0xfb7a83cb
mov eax, dword [ebp - 4]
test eax, eax
pop edi
jl 0x105eb65
xor eax, eax
leave
ret
Function at 0x401d82
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x41e0f2
call fcn.0040a280
sub esp, 0x18
lea eax, [ebp + 8]
xor ebx, ebx
mov ecx, esp
inc ebx
mov dword [ebp - 4], ebx
push eax
call fcn.00403e58
lea ecx, [ebp - 0x1c]
call fcn.00401a0a
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
push 0
pop edi
sub eax, ecx
je 0x401dfa
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 0x424da0
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00408900
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401e2f
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push str.Cant_create_file__s_n
push dword [0x42b450]
call fcn.00408544
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov esi, 0x80004005
test ecx, ecx
je 0x401e13
push ecx
call fcn.00408f1c
pop ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.0040485b
push edi
push ebx
lea ecx, [ebp + 0x20]
call fcn.0040485b
mov eax, esi
call fcn.0040a24e
ret
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push esi
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.004090f9
push esi
call fcn.0040928e
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov esi, edi
jmp 0x401dff
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x38
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
mov bl, cl
call fcn.0040ab90
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x440
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401ecf
push str.ShellExecuteEx_Ok_n
push dword [0x42b450]
call fcn.00408544
pop ecx
pop ecx
jmp 0x401ee5
call esi
push eax
push str.Error:_0x_X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
test bl, bl
je 0x401f59
cmp dword [ebp - 8], edi
je 0x401f59
push str.Waiting_for_installing..._n
push dword [0x42b450]
call fcn.00408544
push dword [0x42b450]
call fcn.004087c3
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401f35
push dword [ebp - 4]
push str.Exit_code:_0x_X_n
jmp 0x401f3d
call esi
push eax
push str.Cant_get_exit_code._Error:_0x_X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
jmp 0x401f80
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x401f80
call esi
push eax
push str.SetHandleInformation_error:_0x_08X_n
push dword [0x42b450]
call fcn.00408544
add esp, 0xc
push dword [0x42b450]
call fcn.004087c3
mov esi, dword [ebp - 8]
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040485b
push edi
push 1
lea ecx, [ebp + 0x20]
call fcn.0040485b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405124
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40513f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
invalid
invalid
Function at 0x40667e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x70f], 0xe2
mov byte [ebp - 0x70e], 0xe1
mov byte [ebp - 0x70d], 0xe1
mov byte [ebp - 0x70c], 0xea
mov byte [ebp - 0x70b], 0xc8
mov byte [ebp - 0x70a], 0xe7
mov byte [ebp - 0x709], 0xf6
mov byte [ebp - 0x708], 0xbc
mov byte [ebp - 0x707], 0x8e
call fcn.00404e51
sub ebx, dword [edi + 0x15]
jo 0x392370
inc dword [eax]
and byte [ebp - 0x743], 0
mov byte [ebp - 0x742], 2
and byte [ebp - 0x741], 0
mov byte [ebp - 0x740], 0xb1
mov byte [ebp - 0x73f], 0x92
mov byte [ebp - 0x73e], 0x9c
mov byte [ebp - 0x73d], 0x99
mov byte [ebp - 0x73c], 0xb1
mov byte [ebp - 0x73b], 0x94
mov byte [ebp - 0x73a], 0x9f
mov byte [ebp - 0x739], 0x8f
mov byte [ebp - 0x738], 0x9c
mov byte [ebp - 0x737], 0x8f
mov byte [ebp - 0x736], 0x84
mov byte [ebp - 0x735], 0xbc
mov byte [ebp - 0x734], 0xfd
lea eax, [ebp - 0x744]
push eax
call fcn.00404e61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404e16
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
mov byte [ebp - 0x6eb], 0xfa
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.00404e51
jae 0x406808
aam 0x8e
lea eax, [ebp - 0x6f4]
push eax
call fcn.00404e61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404e16
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
invalid
Function at 0x41a3e5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410cc1
mov dword [ebp - 0x14], eax
cmp dword [0x42b428], esi
jne 0x41a4d8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41a465
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a5b8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41a5b8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a5b8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42b428], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42b42c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42b430], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b438], eax
test eax, eax
je 0x41a4d5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b434], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a4fd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a4f0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41a512
push 4
pop eax
jmp 0x41a5ba
cmp dword [ebp - 0x14], esi
je 0x41a512
push dword [0x42b428]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a4f7
mov eax, dword [0x42b434]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41a570
cmp dword [0x42b438], edi
je 0x41a570
push eax
call ebx
push dword [0x42b438]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a570
test eax, eax
je 0x41a570
call ecx
test eax, eax
je 0x41a565
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a565
test byte [ebp - 8], 1
jne 0x41a570
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41a5a0
mov eax, dword [0x42b42c]
cmp eax, edi
je 0x41a59d
push eax
call ebx
test eax, eax
je 0x41a59d
call eax
mov esi, eax
test esi, esi
je 0x41a59d
mov eax, dword [0x42b430]
cmp eax, edi
je 0x41a59d
push eax
call ebx
test eax, eax
je 0x41a59d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42b428]
call ebx
test eax, eax
je 0x41a5b8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41a5ba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dcf
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401629
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401629
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401618
cmp esi, edx
jae 0x401629
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401606
cmp esi, edx
jae 0x401629
cmp word [esi], 0
je 0x401629
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4026a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4260dd
mov eax, dword fs:[0]
push eax
mov eax, 0x10010
call fcn.004248e0
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10018], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1001c], esi
mov dword [ebp - 0x10014], 0
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x4027f1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x42cd58
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00402e30
test al, al
jne 0x40272d
push 0
push 0x42cd58
mov ecx, esi
call fcn.004031f0
push 0xfffe
lea eax, [ebp - 0x10010]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10014], 1
call fcn.00411630
add esp, 0xc
lea eax, [ebp - 0x10010]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4027d0
lea ecx, [ebp - 0x10010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402776
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x10012], 0x5c
jne 0x4027a9
lea ecx, [ecx*2 - 2]
cmp ecx, 0xfffe
jae 0x4027ec
xor eax, eax
mov word [ebp + ecx - 0x10010], ax
lea ecx, [ebp - 0x10010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027b2
sub ecx, edx
lea eax, [ebp - 0x10010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004031f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f45f
mov esp, ebp
pop ebp
ret
call fcn.0040facc
push 0x80004005
call fcn.00401510
int3

Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x402885
test esi, esi
je 0x402885
push 1
push ecx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.00401680
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x402876
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402876
cmp dword [ebp - 0xc], 4
jne 0x402876
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov esi, 1
jmp 0x402878
xor esi, esi
test edi, edi
je 0x402887
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402887
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4028a2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426208
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40379a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push 0x42d0c8
call fcn.004010f0
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x4038e7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push str.SYSTEMCurrentControlSetEnum_
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402e30
test al, al
jne 0x403802
push 0x1e
push str.SYSTEMCurrentControlSetEnum_
lea ecx, [ebp + 8]
call fcn.004031f0
mov ecx, esi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403810
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.004032e0
push 0x12
push str.Device_Parameters
lea ecx, [ebp + 8]
call fcn.004032e0
mov esi, dword [ebp + 8]
push 0x20019
push esi
push ecx
lea ecx, [ebp - 0x24]
call fcn.00401680
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x4038a8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push str.EDID
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x403881
cmp dword [ebp - 0x14], 3
mov eax, 0xd
cmovne ebx, eax
test edi, edi
je 0x403891
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test ebx, ebx
jne 0x4038a8
mov ecx, dword [ebp - 0x18]
call fcn.00403c30
mov ebx, eax
jmp 0x4038aa
xor ebx, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4038c6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4038d1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401510
int3
Function at 0x404e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x10], eax
test eax, eax
je 0x404f96
mov eax, dword [eax + 0x170]
shr eax, 2
and eax, 7
mov dword [edi + 0x14], eax
je 0x404f96
cmp dword [edi + 0xc], 0
jne 0x404f96
push 0
push 0
push 0
push 0
mov dword [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [edi + 0x14]
push 0x60
mov dword [edi], eax
call fcn.0040fbab
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [esi + 0x24], vtable.CMMEndpointNotify.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], vtable.CMMControlNotify.1.0
mov dword [esi + 0x30], vtable.CMMControlNotify.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi], vtable.CHpDevMonitor.0
call fcn.00401230
test eax, eax
je 0x404f9d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x50], eax
call fcn.00401230
test eax, eax
je 0x404f9d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [0x436068], esi
mov dword [esi + 0x54], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
test bl, 4
je 0x404f46
mov dword [esi + 0x38], 1
test bl, 2
je 0x404f52
mov dword [esi + 0x40], 1
mov ecx, esi
call fcn.0040eb00
mov ecx, esi
mov bl, al
call fcn.0040ea80
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
je 0x404f81
lea eax, [esi + 0x5c]
push eax
push 0
push esi
push 0x40e930
push 0
push 0
call ebx
mov dword [esi + 0x58], eax
lea eax, [edi + 8]
push eax
push 0
push edi
push 0x404fb0
push 0
push 0
call ebx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80004005
call fcn.00401510
int3
Function at 0x4053b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x4054d4
mov dword [edi + 0x3d0], eax
mov esi, edi
mov ebx, 0x5c00
nop word [eax + eax]
push 0
push 0
push 0
push 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
test eax, eax
je 0x405483
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [edi + 0x3d0]
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
movlpd qword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x405473
push 0
lea eax, [esp + 0x18]
push eax
push 8
lea eax, [esp + 0x24]
push eax
push 8
lea eax, [esp + 0x34]
push eax
mov eax, ebx
or eax, 0x220000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x405473
mov eax, dword [esp + 0x18]
jmp 0x405475
xor eax, eax
mov edi, dword [esp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
add ebx, 0xc
add esi, 0x10
cmp ebx, 0x5ed0
jl 0x4053e0
push 0
push 0
push 0
push 0
mov dword [edi + 0x3c4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x3c0], eax
test eax, eax
je 0x4054d4
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4055d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x3d4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4