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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, ecx
test esi, esi
je 0x4b24d5
lea eax, [esi + 4]
jmp 0x4b24d7
xor eax, eax
push 0x34
push 0
push eax
call fcn.004cf600
mov eax, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x4b2509
push 0x104
lea ecx, [ebp - 0x214]
mov dword [esi + 0x58], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4b2510
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4b2527
push eax
call fcn.004cf489
add esp, 4
mov dword [esi + 0x54], 0
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4b2577
push edi
call fcn.004ce868
add esp, 4
mov dword [esi + 0x54], eax
push eax
push edi
push 0
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4b2577
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x50f8e4
push dword [esi + 0x54]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4b257f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi + 4], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [esi + 0x14], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [esi + 0x24], xmm0
mov eax, dword [eax + 0x30]
mov dword [esi + 0x34], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x52f5fc
push dword [esi + 0x54]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4b25cc
cmp dword [ebp - 8], 4
jb 0x4b25cc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [esi + 0x3c], eax
xor eax, eax
cmp dword [esi + 4], 0xfeef04bd
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b2c70
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov dword [esi + 0x28bc], 0
call fcn.004b3030
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 5
push dword [esi + 0x28c8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4b2ca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x40a
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4b2d02
push 0x104
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [ebp - 0x208]
lea eax, [edx + 2]
lea ecx, [ebx + 0x28b4]
mov dword [ebp + 8], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b2ce5
sub edx, dword [ebp + 8]
lea eax, [ebp - 0x208]
sar edx, 1
push edx
push eax
call fcn.0040dad0
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004cf600
add esp, 0xc
push 0x40c
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4b2d6c
push 0x104
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [ebp - 0x208]
lea ecx, [ebx + 0x28b8]
lea esi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b2d50
sub edx, esi
lea eax, [ebp - 0x208]
sar edx, 1
push edx
push eax
call fcn.0040dad0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push esi
push edi
push 0x58
lea eax, [ebp - 0x58]
mov esi, ecx
push 0
push eax
call fcn.004cf600
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x3c], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x58], 0x58
mov word [ebp - 0x260], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x38], 0x208
mov dword [ebp - 0x4c], 0x52f6ac
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x24], 0x1800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, 1
jne 0x4b301a
mov edx, dword [ebp - 0x3c]
push ebx
test edx, edx
jne 0x4b2fdc
xor ecx, ecx
jmp 0x4b2ff4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2fe4
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x28b4]
call fcn.0040dad0
push dword [esi + 0x28b4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
je 0x4b301a
push edi
mov ecx, esi
call fcn.004b3370
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b3150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [esi + 0x28bc], 1
call dword [sym.imp.USER32.dll_SetCapture]
push dword [esi + 0x28c0]
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push dword [esi + 0x28c8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x4b3190
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.004d12b0
push edi
mov edi, ecx
call fcn.004b2d80
test eax, eax
je 0x4b335d
push esi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x238], 0x22c
cmp esi, 0xffffffff
je 0x4b335c
push ebx
lea eax, [ebp - 0x238]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b3358
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 4]
je 0x4b3219
lea eax, [ebp - 0x238]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b31f3
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x40a
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4b3358
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [edi + 0x28b4]
call fcn.0040c500
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x442], ax
test ax, ax
jne 0x4b3243
push dword [ebp - 4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4b32c9
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4b32ac
push 0x104
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 8]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x440]
push eax
lea ecx, [edi + 0x28b4]
call fcn.0040c500
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [edi + 8]
mov ecx, edi
call fcn.004b3370
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, 0x6570a8
call fcn.004891a0
test eax, eax
je 0x4b3348
mov eax, dword [ebp - 4]
push str.SynGetModulePathNameEvent
push 0
push 0
mov dword [ebp - 0x2058], eax
mov eax, dword [edi + 8]
push 0
mov dword [ebp - 0x205c], 0xe
mov dword [ebp - 0x2054], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x4b3348
lea eax, [ebp - 0x205c]
mov ecx, 0x6570a8
push eax
call fcn.00486560
test eax, eax
je 0x4b332b
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [edi + 8]
mov ecx, edi
call fcn.004b3370
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.004b3370
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b6b30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x48]
cdq
xor eax, edx
sub eax, edx
jne 0x4b6b4a
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call esi
xor ecx, ecx
test ax, ax
push 0x10
sets cl
mov dword [ebp - 4], ecx
call esi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
xor ecx, ecx
test ax, ax
push edi
sets cl
push ecx
push dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, ebx
call fcn.004b5780
mov esi, eax
mov eax, 0x5dc
cmp esi, eax
cmovg esi, eax
mov eax, 0xfffffa24
cmp esi, eax
cmovl esi, eax
test edi, edi
jne 0x4b6bae
mov eax, dword [ebx + 0x34]
test al, 2
jne 0x4b6bae
test eax, 0x80000
jne 0x4b6bae
xor ecx, ecx
jmp 0x4b6bb3
mov ecx, 1
cmp dword [ebp - 4], 0
mov dword [ebp + 0x14], ecx
jne 0x4b6bc2
cmp dword [ebp - 8], 0
je 0x4b6c06
test edi, edi
jne 0x4b6c06
test dword [ebx + 0x34], 0x80000
jne 0x4b6c06
mov dword [ebp + 0x14], edi
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x78
jl 0x4b6c24
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7f
jl 0x4b6c65
test esi, esi
jns 0x4b6c5b
or eax, 0xffffffff
jmp 0x4b6c62
test ecx, ecx
je 0x4b6bd2
test edi, edi
je 0x4b6c2f
push 0
mov ecx, ebx
call fcn.004b56c0
mov ecx, eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jge 0x4b6c65
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x168
jle 0x4b6c65
test esi, esi
jns 0x4b6c4c
or eax, 0xffffffff
imul esi, eax, 0x168
jmp 0x4b6c65
xor eax, eax
test esi, esi
setg al
imul esi, eax, 0x168
jmp 0x4b6c65
xor eax, eax
test esi, esi
setg al
imul esi, eax, 0x7f
mov eax, dword [ebx + 0x48]
mov ecx, 0x658670
cdq
neg esi
mov edi, eax
xor edi, edx
push 0
sub edi, edx
call fcn.0040fdb0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4b6ced
xor ecx, ecx
mov edx, 1
cmp byte [ebp + 0xc], cl
cmove ecx, edx
cmp dword [ebp + 0x14], 0
mov dword [ebp + 0xc], ecx
je 0x4b6ca0
or ecx, 2
mov dword [ebp + 0xc], ecx
test byte [0x652fc0], 4
je 0x4b6cc5
push ecx
push esi
push str.ForceMotionWithWheelEx:_lDeltaWheel_d__lFlags_x_n
push 3
push str.CScrollWidget::PostWheelThroughKernel
call fcn.004cb3a0
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x4b6ccf
lea edx, [eax + 0x40]
mov eax, dword [edx]
push ecx
push esi
push 0
push 0
push 0
push edx
call dword [eax + 0x70]
mov eax, dword [ebx + 0x48]
test eax, eax
jle 0x4b6ce8
sub eax, edi
jmp 0x4b6cea
add eax, edi
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x84], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b91e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], 0
mov word [edi + 8], ax
push 0x513858
lea ecx, [edi + 0x424]
mov dword [ebp - 4], eax
call fcn.004154a0
mov dword [edi + 0x430], 0x513704
mov dword [edi + 0x434], 0
mov dword [edi + 0x42c], 0
mov dword [edi + 0x420], 0x518658
mov dword [edi + 0x428], 0x518660
mov dword [edi + 0x438], 0xffffffff
mov dword [edi + 0x43c], 0
lea ecx, [edi + 0x454]
mov byte [ebp - 4], 1
call fcn.004cd2f0
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x464]
push ebx
push 0
push 0
push 0x26
mov dword [edi], eax
lea ecx, [edi + 0x454]
mov eax, dword [ebp + 0xc]
push 0
mov byte [ebp - 4], 2
mov dword [edi + 4], eax
mov dword [edi + 0x444], 0x800
mov dword [edi + 0x440], 0
mov dword [edi + 0x450], 0
mov dword [edi + 0x448], 1
mov dword [edi + 0x44c], 0
call fcn.004cd3a0
test eax, eax
jns 0x4b9330
push str.ProgramFiles
call fcn.004d686a
add esp, 4
test eax, eax
je 0x4b9312
push str.ProgramFiles
call fcn.004d686a
mov edx, ebx
add esp, 4
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4b9300
jmp 0x4b9330
mov ecx, str.C:Program_Files
mov edx, ebx
sub edx, ecx
jmp 0x4b9320
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4b9320
push ebx
lea esi, [edi + 0x66c]
push str._sSynapticsSynTP
push esi
call fcn.004d1675
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b935d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 9
jl 0x4b938a
lea eax, [edi + 0x874]
push eax
push 0
push 0
push 5
push 0
lea ecx, [edi + 0x454]
call fcn.004cd3a0
test eax, eax
jns 0x4b93a2
lea ecx, [edi + 0x874]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4b9392
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4babb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push edi
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 4], 0
push 0x3a
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push eax
call fcn.004cf600
add esp, 0xc
lea ecx, [ebp - 0x18]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4bac96
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce868
add esp, 4
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
mov esi, eax
cmovae ecx, dword [ebp + 0xc]
push esi
push edi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4bac8d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x50f8e4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4bac8d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bac8d
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x58]
push str.v_d._d._d._d
push eax
call fcn.004d1675
add esp, 0x18
push esi
call fcn.004cf489
add esp, 4
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x58], ax
jne 0x4bacb6
xor ecx, ecx
jmp 0x4baccf
lea ecx, [ebp - 0x58]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bacc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.0040a410
cmp dword [ebp + 0x20], 8
jb 0x4bacec
push dword [ebp + 0xc]
call fcn.004cf489
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bad00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50bd10
push eax
mov dword fs:[0], esp
sub esp, 0x210
cmp dword [0x6591f4], 0
jne 0x4bae6e
mov dword [0x6591f4], 1
call fcn.004c9150
test eax, eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
je 0x4bad4d
push 0x2a
jmp 0x4bad4f
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c140
push 0x530b50
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00456bc0
add esp, 0xc
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4bada4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x659104], eax
test eax, eax
je 0x4bae2b
push str.GetMetricCollectionCollector
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4bae18
push 0
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004cafb0
push 1
push str.SynapticsAppsCollectionReport
push str.Local_Todo
push str.Countyr_Todo
push str.Family_Todo
push str.SubBrand_Todo
push str.Brand_Todo
push str.MTM_Todo
lea eax, [ebp - 0x21c]
push str.19.3.4.83
push eax
call esi
add esp, 0x34
mov dword [0x659100], eax
jmp 0x4bae4b
test byte [0x652fc0], 1
je 0x4bae4b
push dword [ebp - 0x10]
push str.Fail_to_get_GetProcAddress_of_GetMetricCollectionCollector___in__s_n
jmp 0x4bae3c
test byte [0x652fc0], 1
je 0x4bae4b
push dword [ebp - 0x10]
push str.Fail_to_load__s_n
push 1
push str.GetLenovoMetricCollectionCollector
call fcn.004cb410
add esp, 0x10
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
pop edi
pop esi
jg 0x4bae6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x659100]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bd000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4bd0b3
movzx edx, word [ebx]
push esi
mov esi, ebx
push edi
mov edi, dword [ebp + 8]
test dx, dx
je 0x4bd068
mov eax, edx
test ax, ax
je 0x4bd04e
mov edi, edi
movzx eax, ax
push eax
push 0x5333ec
push edi
call fcn.004d53c6
movzx eax, word [esi + 2]
add esi, 2
add esp, 0xc
test ax, ax
jne 0x4bd030
push 0x524e40
push edi
call fcn.004d53c6
movzx eax, word [esi + 2]
add esi, 2
add esp, 8
test ax, ax
jne 0x4bd030
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 8], ecx
mov edx, dword [edx + 0x424]
test edx, edx
je 0x4bd093
mov eax, dword [edx]
lea ecx, [ebp + 8]
push ecx
push 0x100001d2
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
test ecx, ecx
mov edx, 0x532768
mov eax, 0x532760
cmove eax, edx
push eax
push str.IsUserAdmin_s_n
push edi
call fcn.004d53c6
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4bd0c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004d12b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
xor edi, edi
jmp 0x4bd0e0
push 0x52edb8
push dword [ebp + 0xc]
call fcn.004d545a
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4bd10e
test esi, esi
jne 0x4bd119
push 0x7d0
call ebx
inc edi
cmp edi, 0x3c
jl 0x4bd0e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.004d4dec
mov edi, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x4bd170
lea esp, [esp]
push esi
call fcn.004d4e12
add esp, 4
test eax, eax
jne 0x4bd170
push esi
lea eax, [ebp - 0x2000]
push 0x1000
push eax
call fcn.004d525e
add esp, 0xc
test eax, eax
je 0x4bd170
lea eax, [ebp - 0x2000]
push edi
push eax
call fcn.004d531a
push esi
call fcn.004d4dec
add esp, 0xc
test eax, eax
je 0x4bd130
push edi
call fcn.004d19a6
push esi
call fcn.004d187c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bdf60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004d12b0
mov eax, dword [0x652fc0]
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test al, 1
je 0x4bdfdb
cmp esi, 2
jne 0x4bdf96
mov eax, 0x530d38
jmp 0x4bdfb2
cmp esi, 3
jne 0x4bdfa2
mov eax, str.resources
jmp 0x4bdfb2
cmp esi, 4
mov eax, 0x530d50
mov edx, str.Invalid_
cmovne eax, edx
push dword [ebp + 0x1c]
push ebx
push eax
push edi
push ecx
push dword [ebp + 8]
push str.hWnd__0x_X__uiCommand__0x_X__pdwData__0x_X__ehsSource___s__hInst__0x_X__pPTMousePos__0x_X_n
push 1
push str.CHelp::ShowHelp
call fcn.004cb3a0
mov eax, dword [0x652fc0]
add esp, 0x24
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
sub esi, 2
je 0x4be0fc
dec esi
jne 0x4be156
cmp ecx, 0xc
jne 0x4be0d7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test ebx, ebx
je 0x4be156
test edi, edi
je 0x4be156
test esi, esi
je 0x4be156
mov eax, dword [edi]
xor ebx, ebx
xor ecx, ecx
test eax, eax
je 0x4be036
cmp eax, esi
je 0x4be032
mov eax, dword [edi + ecx*4 + 8]
add ecx, 2
test eax, eax
jne 0x4be021
jmp 0x4be036
mov ebx, dword [edi + ecx*4 + 4]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push 0x1000
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4be0a7
push 0
push 0x4bb5e0
push dword [ebp + 8]
push 0xaa
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x65910c], eax
call fcn.004a56d0
test eax, eax
je 0x4be083
push dword [0x65910c]
call fcn.004a5780
add esp, 4
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2004]
push eax
push 0x401
push dword [0x65910c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
je 0x4be0c9
test byte [0x652fc0], 1
je 0x4be0c9
push esi
push str.Popup_help_text_missing_from_RC_file__Ctrl_ID__d._n
push 1
push str.CHelp::ShowHelp
call fcn.004cb3a0
add esp, 0x10
call fcn.004ba210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test al, 8
je 0x4be156
push str.Cannot_locate_help_file__failed_to_service_help_request._n
push 4
push str.CHelp::ShowHelp
call fcn.004cb3a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
add edx, 0x414
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be107
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
sar ecx, 1
je 0x4be121
push edx
call esi
mov edx, dword [ebp - 4]
add edx, 0x61c
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be130
sub ecx, ebx
sar ecx, 1
je 0x4be144
push edx
call esi
push edi
push dword [ebp + 0xc]
push str.Mouse.hlp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_WinHelpW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4c29d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c141
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CSynHelp.0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.004c3a30
mov dword [edi + 4], eax
mov dword [edi + 0x20], 0xf
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov byte [edi + 0xc], 0
push 0
push 0
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004a58a0
mov dword [edi + 0x2c], eax
mov eax, dword [0x6591fc]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0
inc dword [0x6591fc]
mov eax, dword [edi + 0x2c]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
mov dword [edi + 0x30], 0
cmp ecx, dword [edi + 0x2c]
je 0x4c2a92
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.004cf489
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x4c2a80
push str.Riched32.dll
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x34], eax
test eax, eax
jne 0x4c2abc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x55dac8
push eax
call fcn.004d0374
push 0x52edb8
push dword [ebp + 8]
call fcn.004d545a
mov esi, eax
add esp, 8
test esi, esi
je 0x4c2b03
call fcn.004a5020
movzx ecx, ax
push 0
push ecx
push esi
mov ecx, edi
call fcn.004c3270
push esi
call fcn.004d187c
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x55dac8
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
call fcn.004d0374
int3