joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e1f0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41e2ab
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41e2ab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x41e295
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41e28e
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x42f444
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41e28e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cx, word [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x28]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov cx, word [eax + 0xc]
mov dword [edx], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14

Function at 0x41e830
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
je 0x41e87a
push edi
call fcn.0041e880
mov ecx, esi
call fcn.0041e930
cmp eax, edi
jb 0x41e86f
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edi
push eax
add ecx, dword [esi + 0xc]
push ecx
call fcn.00420ca0
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, edi
mov dword [esi + 0xc], eax
pop edi
pop esi
ret 8
push str.Out_of_memory_in_CMemBuffer___Cannot_append_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
ret 8

Function at 0x41e880
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0041e930
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x41e8f7
mov edi, dword [esi + 4]
mov ebp, dword [esi + 8]
add ecx, edi
mov ebx, ecx
lea eax, [ebx + 2]
push eax
call fcn.0041eb40
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 8], edi
je 0x41e8e9
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x41e8df
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ebp
push ecx
call fcn.00420ca0
push ebp
call fcn.0041e9c0
add esp, 0x10
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
push str.Out_of_memory_in_CMemBuffer__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x425185
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x437230
cmp edx, dword [eax]
je 0x4251a7
add eax, 8
inc ecx
cmp eax, 0x4372c0
jl 0x425198
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x437230]
jne 0x4252d5
mov eax, dword [0x439cb0]
cmp eax, 1
je 0x4252af
test eax, eax
jne 0x4251d8
cmp dword [0x436b34], 1
je 0x4252af
cmp edx, 0xfc
je 0x4252d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42520f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426f40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00421b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x425252
lea eax, [ebp - 0x1a4]
push eax
call fcn.00421b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c068
push edi
call fcn.0041f500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426f40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426f50
lea eax, [ebp - 0xa0]
push 0x42c048
push eax
call fcn.00426f50
push dword [esi + 0x437234]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426f50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00427abc
add esp, 0x2c
pop edi
jmp 0x4252d5
lea eax, [ebp + 8]
lea esi, [esi + 0x437234]
push 0
push eax
push dword [esi]
call fcn.00421b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x429000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xa
push 0x43793c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x429037
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x429037
push eax
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
ret
xor eax, eax
ret
Function at 0x66205275
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x6620c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x9c
lea eax, [ebp - 0x208]
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
lea eax, [ebp - 0x208]
push eax
mov ecx, esi
call fcn.662080e5
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x42
lea eax, [ebp - 0x48]
push eax
push 0x67
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
push 0x22
pop ebx
push ebx
lea eax, [esi + 0xd8]
push eax
push 0x84
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
push ebx
lea eax, [esi + 0xfa]
push eax
push 0x85
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0x86
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
push ebx
lea eax, [esi + 0xa8]
push eax
push 0x96
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x16c]
push eax
push 0x79
push dword [esi + 0xcc]
call edi
test eax, eax
je 0x662053e9
push ebx
lea edi, [esi + 0x138]
push edi
mov dword [0x6620c020], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x662053e9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66205387
sub eax, edx
cmp byte [eax + esi + 0x137], 0x5c
je 0x662053a9
push 0x66201e14
push ebx
push edi
call sub.msvcrt.dll_strcat_s
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
push ebx
push edi
call sub.msvcrt.dll_strcat_s
mov al, byte [edi]
add esp, 0xc
cmp al, 0x61
movsx eax, al
jl 0x662053c8
sub eax, 0x60
jmp 0x662053cb
sub eax, 0x40
mov dword [esi + 0x238], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xd0], eax
test eax, eax
je 0x662053e9
xor eax, eax
jmp 0x662053ec
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6620b12b
leave
ret
Function at 0x662055b3
Capabilities:
Check if file exists
Get common file path
Get file attributes
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6620c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x11c], ebx
jne 0x6620572c
mov edi, 0x100
push edi
lea eax, [ebp - 0x104]
push eax
push 0x66201d20
push 0x66201d70
lea eax, [esi + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
je 0x6620560b
cmp byte [ebp - 0x104], bl
jne 0x66205658
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x66205652
cmp eax, edi
jae 0x66205652
mov ecx, 0xff
sub ecx, eax
push 0x66201d64
mov byte [ebp + eax - 0x104], 0x5c
push ecx
lea eax, [ebp + eax - 0x103]
push eax
call sub.msvcrt.dll_strcpy_s
add esp, 0xc
mov dword [esi + 0x120], 1
jmp 0x66205658
mov byte [ebp - 0x104], bl
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x66205727
test al, 0x10
jne 0x66205727
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x11c], eax
cmp eax, ebx
je 0x66205727
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x66201d90
push eax
call edi
push 0x66201da4
push dword [esi + 0x11c]
mov dword [esi + 0x124], eax
call edi
push 0x66201db8
push dword [esi + 0x11c]
mov dword [esi + 0x128], eax
call edi
push 0x66201dcc
push dword [esi + 0x11c]
mov dword [esi + 0x12c], eax
call edi
push 0x66201ddc
push dword [esi + 0x11c]
mov dword [esi + 0x130], eax
call edi
mov dword [esi + 0x134], eax
cmp dword [esi + 0x124], ebx
je 0x66205715
cmp dword [esi + 0x128], ebx
je 0x66205715
cmp dword [esi + 0x12c], ebx
je 0x66205715
cmp dword [esi + 0x130], ebx
je 0x66205715
cmp eax, ebx
jne 0x6620572c
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x11c], ebx
xor eax, eax
inc eax
jmp 0x6620572e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6620b12b
leave
ret

Function at 0x66206a1f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.66205ae3
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.66205a98
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.66205ad3
push edx
xor eax, 0x4687a2b
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x66209185
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x662091c0
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll__read]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x662091b4
test eax, eax
je 0x662091b4
mov al, 1
jmp 0x662091c2
push 0
push 0x6620291c
call fcn.66209928
xor al, al
pop ebp
ret 0xc

Function at 0x662092b0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.662097ad
or dword [edi + 0xc], 0xffffffff
lea ebx, [edi + 0x11]
mov ecx, edi
mov dword [edi], fcn.662097bf
mov byte [edi + 8], 0
mov byte [edi + 0x10], 0
mov byte [ebx], 0
call fcn.662097bf
test al, al
jne 0x662093f7
call fcn.662096b0
test al, al
jne 0x662092fa
mov ecx, edi
call fcn.662097c8
jmp 0x662093f7
movzx eax, byte [ebp + 0xc]
dec eax
push esi
mov esi, 0x100
je 0x6620931b
dec eax
je 0x66209372
push 0
push 0x66202a50
call fcn.66209928
jmp 0x662093ef
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x6620932f
push eax
push 0x66202a08
jmp 0x66209311
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66209334
sub eax, edx
cmp byte [eax + edi + 0x10], 0x5c
je 0x66209372
lea eax, [edi + 0x11]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6620934a
sub eax, edx
cmp eax, esi
jb 0x66209360
push 0
push 0x662029d8
jmp 0x66209311
push 0x66201e14
lea eax, [edi + 0x11]
push esi
push eax
call sub.msvcrt.dll_strcat_s
add esp, 0xc
lea eax, [edi + 0x11]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66209378
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x66209389
sub eax, ecx
add eax, edx
cmp eax, esi
jae 0x66209357
push dword [ebp + 8]
lea eax, [edi + 0x11]
push esi
push eax
call sub.msvcrt.dll_strcat_s
movzx eax, byte [ebp + 0x10]
add esp, 0xc
sub eax, 0
je 0x662093f6
dec eax
je 0x662093e4
dec eax
je 0x662093db
dec eax
je 0x662093d2
dec eax
je 0x662093c9
push 0
push 0x662029ac
jmp 0x66209311
mov ecx, edi
call fcn.66209129
jmp 0x662093eb
mov ecx, edi
call fcn.66209140
jmp 0x662093eb
mov ecx, edi
call fcn.66209157
jmp 0x662093eb
mov ecx, edi
call fcn.6620916e
test al, al
jne 0x662093f6
mov ecx, edi
call fcn.662097c8
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x662094d1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
je 0x662094e1
call fcn.66209404
add esi, 0x11
push esi
call dword [sym.imp.msvcrt.dll_remove]
pop ecx
pop esi
cmp eax, 0xffffffff
jne 0x66209501
push 0
push 0x66202af0
call fcn.66209928
xor al, al
ret
mov al, 1
ret
Function at 0x4254c5
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.0041e50f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425627
push eax
call fcn.0041e49d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425576
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4255ce
cmp dword [0x44f200], ebx
je 0x4255ce
push eax
call fcn.0041e518
push dword [0x44f200]
mov esi, eax
call fcn.0041e518
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4255ce
test edi, edi
je 0x4255ce
call esi
test eax, eax
je 0x4255c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4255c5
test byte [ebp - 0xc], 1
jne 0x4255ce
or dword [ebp + 0x10], 0x200000
jmp 0x425607
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425607
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e518
pop ecx
test eax, eax
je 0x425627
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425629
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408946
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov ecx, dword [esp]
add esp, 4
dec eax
dec eax
call fcn.00408985
add ebx, 0xf9940963
xor dword [edx], ecx
or eax, eax
sub eax, 1
inc edx
push ebx
mov ebx, dword [esp]
add esp, 4
cmp edx, edi
jne fcn.00408946
mov eax, 0x7bb0fd0b
ret
Function at 0x1a10e0
Capabilities:
Check os version
Set registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x1d6750]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xac]
push edi
xor edi, edi
push 0x8c
lea eax, [esp + 0x20]
push edi
push eax
mov dword [esp + 0x20], 0x94
mov dword [esp + 0x24], edi
call fcn.001a76a0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 5
jne 0x1a113f
cmp dword [esp + 0x1c], edi
je 0x1a1144
mov edi, 0x100
mov ebp, ebx
shl ebp, 4
add ebp, esi
cmp dword [ebp + 0xc], 0
jne 0x1a1159
or eax, 0xffffffff
jmp 0x1a121a
mov ax, word [esp + 0xb8]
test ax, ax
jne 0x1a117a
movzx eax, word [esi + 4]
push eax
push ebx
push esi
call fcn.001a10e0
add esp, 0xc
jmp 0x1a121a
movzx eax, ax
dec eax
je 0x1a11af
dec eax
je 0x1a11a8
dec eax
jne 0x1a1151
push 1
push ebx
push esi
call fcn.001a10e0
add esp, 0xc
test eax, eax
je 0x1a121a
push 2
push ebx
push esi
call fcn.001a10e0
add esp, 0xc
jmp 0x1a121a
mov ebx, 0x80000001
jmp 0x1a11b4
mov ebx, 0x80000002
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
or edi, 0xf003f
push edi
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1a11ee
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1a121a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.001a771a
add esp, 0x9c
ret
Function at 0x1a1240
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x1d6750]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
mov ebx, dword [esp + 0x1ac]
push ebp
push esi
mov esi, dword [esp + 0x1b0]
push edi
xor edi, edi
push 0x8c
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x24], 0x94
mov dword [esp + 0x28], edi
call fcn.001a76a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 5
jne 0x1a129f
cmp dword [esp + 0x20], edi
je 0x1a12a4
mov edi, 0x100
mov ebp, ebx
shl ebp, 4
add ebp, esi
cmp dword [ebp + 0xc], 0
jne 0x1a12b9
or eax, 0xffffffff
jmp 0x1a1393
mov ax, word [esp + 0x1bc]
test ax, ax
jne 0x1a12da
movzx eax, word [esi + 4]
push eax
push ebx
push esi
call fcn.001a1240
add esp, 0xc
jmp 0x1a1393
movzx eax, ax
dec eax
je 0x1a1312
dec eax
je 0x1a130b
dec eax
jne 0x1a12b1
push 2
push ebx
push esi
call fcn.001a1240
add esp, 0xc
test eax, eax
je 0x1a1393
push 1
push ebx
push esi
call fcn.001a1240
add esp, 0xc
jmp 0x1a1393
mov eax, 0x80000001
jmp 0x1a1317
mov eax, 0x80000002
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
or edi, 0x20019
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1a1393
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xb0]
push edx
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1a136f
mov eax, esi
jmp 0x1a1393
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
ja 0x1a12b1
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0xb0]
push eax
push ecx
call fcn.001a7730
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.001a771a
add esp, 0x1a0
ret
Function at 0x1a16b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1d6750]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
push 0x1d58c0
push 0x80000001
call fcn.001a5730
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
add esp, 8
push 0x1d58e8
push 0x1d58f8
push 0
push 0
call esi
push 0
push 0x1d5900
mov edi, eax
push 0
push edi
call esi
push 0
push 0x1d5914
push 0
push eax
call esi
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.001a5030
cmp eax, 2
jne 0x1a1759
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1a18ba
push eax
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x1a18ba
push 4
push 0x1000
push 8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [esp + 0x18]
jmp 0x1a17a6
push str.ThinkPad_UltraZoom_FileMapping
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x1a18ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1a18b3
push 0
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x1a18ba
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1d5944
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1a1890
push eax
push eax
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x1a1881
mov edx, dword [esp + 0x1c]
push edi
push esi
push 0x1010
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.001a5030
cmp eax, 2
jne 0x1a1839
push 0
push 8
lea eax, [esp + 0x2c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov cx, word [esp + 0x24]
mov dx, word [esp + 0x28]
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
jmp 0x1a184a
mov ax, word [edi]
mov word [esp + 0x10], ax
mov cx, word [edi + 4]
mov word [esp + 0x12], cx
push esi
lea edx, [esp + 0x30]
push 0x1d596c
push edx
call fcn.001a7a91
mov edx, dword [esp + 0x20]
add esp, 0xc
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc esi
cmp esi, ebx
jl 0x1a17f6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
call fcn.001a5030
cmp eax, 2
jne 0x1a18ac
push 0x8000
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebp
jmp 0x1a18b4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.001a771a
add esp, 0x2c
ret