joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4836e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0xc8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, ebx
push esi
call fcn.00484190
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, ebx
call fcn.00483020
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.00483050
mov esi, eax
mov eax, dword [ebp - 4]
push 0x14
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
movzx eax, word [eax + 0x14]
lea ecx, [edx + esi*2]
shr edx, 1
sub ax, dx
push ecx
cwde
lea ecx, [edi + ebx*2]
sub eax, esi
shr edi, 1
push ecx
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x18]
sub ax, di
cwde
sub eax, ebx
push eax
mov eax, dword [0x517cec]
push 0
push dword [eax + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x517cec]
push 8
push dword [eax + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x483ab0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 0
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
call fcn.0045fc40
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
shr ecx, 1
sub eax, ecx
mov ecx, dword [ebx + 0x20]
cdq
idiv dword [ebx + 0x24]
shr ecx, 1
mov esi, eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
add esi, dword [ebx + 0x18]
cdq
idiv dword [ebx + 0x24]
mov dword [ebp - 0x10], esi
add eax, dword [ebx + 0x14]
push eax
push esi
mov dword [ebp - 0xc], eax
call fcn.0045fc90
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0xc8
call edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 1
jne 0x483b53
test esi, esi
jne 0x483b49
push esi
push esi
push esi
push esi
push 2
call fcn.004825a0
push esi
push esi
push esi
push esi
push 4
call fcn.004825a0
add esp, 0x28
jmp 0x483b87
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
jmp 0x483b7f
cmp eax, 2
jne 0x483b87
test esi, esi
jne 0x483b77
push esi
push esi
push esi
push esi
push 8
call fcn.004825a0
push esi
push esi
push esi
push esi
push 0x10
call fcn.004825a0
add esp, 0x28
jmp 0x483b87
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
call fcn.00483f20
add esp, 0xc
push 0x64
call edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045fc90
add esp, 8
test esi, esi
je 0x483bad
pop edi
pop esi
mov dword [ebx + 0xc], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x64
call edi
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, ebx
push esi
call fcn.00484190
push esi
mov dword [ebx + 0xc], 1
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48a1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8148
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x48a2f0
cmp byte [ebx + 0x46], 0
je 0x48a2f0
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x48a20a
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
push esi
mov dword [ebp - 4], 0
push edi
lea esp, [esp]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x48a27a
dec eax
je 0x48a27e
sub eax, 2
je 0x48a2ca
xor bl, bl
jmp 0x48a2cc
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x48a2b0
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a9713
add esp, 0x10
cmp esi, eax
jne 0x48a276
cmp byte [ebx + 0x46], 0
je 0x48a2ca
test esi, esi
jne 0x48a240
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408ef0
jmp 0x48a240
mov bl, 1
cmp dword [ebp - 0x14], 0x10
pop edi
pop esi
jb 0x48a2df
push dword [ebp - 0x28]
call fcn.004a46e7
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48bd30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, ecx
test esi, esi
je 0x48bd45
lea eax, [esi + 4]
jmp 0x48bd47
xor eax, eax
push 0x34
push 0
push eax
call fcn.004a4860
mov eax, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x48bd79
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 0x48bd80
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x54]
test eax, eax
je 0x48bd97
push eax
call fcn.004a46e7
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 0x48bde7
push edi
call fcn.004a3ac6
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 0x48bde7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4dbeb4
push dword [esi + 0x54]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x48bdef
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 str.VarFileInfoTranslation
push dword [esi + 0x54]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48be3c
cmp dword [ebp - 8], 4
jb 0x48be3c
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 0x48c4e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov dword [esi + 0x28bc], 0
call fcn.0048c8a0
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 0x48c510
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 0x48c572
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 0x48c555
sub edx, dword [ebp + 8]
lea eax, [ebp - 0x208]
sar edx, 1
push edx
push eax
call fcn.00408980
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004a4860
add esp, 0xc
push 0x40c
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x48c5dc
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 0x48c5c0
sub edx, esi
lea eax, [ebp - 0x208]
sar edx, 1
push edx
push eax
call fcn.00408980
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48c7d0
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.004a4860
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], 0x4e80d0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x24], 0x1800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, 1
jne 0x48c88a
mov edx, dword [ebp - 0x3c]
push ebx
test edx, edx
jne 0x48c84c
xor ecx, ecx
jmp 0x48c864
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c854
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x28b4]
call fcn.00408980
push dword [esi + 0x28b4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
je 0x48c88a
push edi
mov ecx, esi
call fcn.0048cbe0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x48c9c0
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 0x48ca00
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.004a7790
push edi
mov edi, ecx
call fcn.0048c5f0
test eax, eax
je 0x48cbce
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 0x48cbcd
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 0x48cbc9
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 4]
je 0x48ca89
lea eax, [ebp - 0x238]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48ca63
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 0x48cbc9
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [edi + 0x28b4]
call fcn.004070e0
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x442], ax
test ax, ax
jne 0x48cab3
push dword [ebp - 4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x48cb39
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 0x48cb1c
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.004070e0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [edi + 8]
mov ecx, edi
call fcn.0048cbe0
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, 0x515d60
call fcn.00467560
test eax, eax
je 0x48cbb9
push dword [0x5108dc]
mov eax, dword [ebp - 4]
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 0x48cbb9
lea eax, [ebp - 0x205c]
mov ecx, 0x515d60
push eax
call fcn.004652e0
test eax, eax
je 0x48cb9c
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.0048cbe0
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.0048cbe0
push esi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48fbd0
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 0x48fbea
pop ebx
mov esp, ebp
pop ebp
ret 8
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
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test ax, ax
push esi
sets cl
push ecx
push dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, ebx
call fcn.0048ec80
mov edi, eax
test esi, esi
jne 0x48fc37
mov eax, dword [ebx + 0x34]
test al, 2
jne 0x48fc37
test eax, 0x80000
jne 0x48fc37
xor ecx, ecx
jmp 0x48fc3c
mov ecx, 1
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], ecx
jne 0x48fc4b
cmp dword [ebp - 8], 0
je 0x48fc8f
test esi, esi
jne 0x48fc8f
test dword [ebx + 0x34], 0x80000
jne 0x48fc8f
mov dword [ebp + 0xc], esi
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x78
jl 0x48fcad
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7f
jl 0x48fcc2
test edi, edi
jns 0x48fcb8
or eax, 0xffffffff
jmp 0x48fcbf
test ecx, ecx
je 0x48fc5b
test esi, esi
je 0x48fcc2
push 0
mov ecx, ebx
call fcn.0048ebc0
mov ecx, eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jge 0x48fcc2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
test edi, edi
setg al
imul edi, eax, 0x7f
mov eax, dword [ebx + 0x48]
mov ecx, 0x5172d8
cdq
neg edi
mov esi, eax
xor esi, edx
push 0
sub esi, edx
call fcn.00445e10
test eax, eax
je 0x48fd1c
xor ecx, ecx
mov edx, 1
cmp byte [ebp + 8], cl
cmove ecx, edx
cmp dword [ebp + 0xc], 0
je 0x48fcf4
or ecx, 2
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x48fcfe
lea edx, [eax + 0x40]
mov eax, dword [edx]
push ecx
push edi
push 0
push 0
push 0
push edx
call dword [eax + 0x70]
mov eax, dword [ebx + 0x48]
test eax, eax
jle 0x48fd17
sub eax, esi
jmp 0x48fd19
add eax, esi
mov dword [ebx + 0x48], eax
pop edi
mov eax, esi
mov dword [ebx + 0x84], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x491810
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da067
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 0x4def7c
lea ecx, [edi + 0x424]
mov dword [ebp - 4], eax
call fcn.0040e370
mov dword [edi + 0x430], 0x4dee48
mov dword [edi + 0x434], 0
mov dword [edi + 0x42c], 0
mov dword [edi + 0x420], 0x4e00ac
mov dword [edi + 0x428], 0x4e00b4
mov dword [edi + 0x438], 0xffffffff
mov dword [edi + 0x43c], 0
lea ecx, [edi + 0x454]
mov byte [ebp - 4], 1
call fcn.004a2240
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.004a22f0
test eax, eax
jns 0x491960
push str.ProgramFiles
call fcn.004abafa
add esp, 4
test eax, eax
je 0x491942
push str.ProgramFiles
call fcn.004abafa
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 0x491930
jmp 0x491960
mov ecx, str.C:Program_Files
mov edx, ebx
sub edx, ecx
jmp 0x491950
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x491950
push ebx
lea esi, [edi + 0x66c]
push str._sSynapticsSynTP
push esi
call fcn.004a6894
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49198d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call fcn.0049e2e0
add esp, 4
cmp eax, 9
jl 0x4919ba
lea eax, [edi + 0x874]
push eax
push 0
push 0
push 5
push 0
lea ecx, [edi + 0x454]
call fcn.004a22f0
test eax, eax
jns 0x4919d2
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 0x4919c2
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 0x493000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da8e8
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.004a4860
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 0x4930e6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3ac6
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 0x4930dd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4dbeb4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4930dd
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4930dd
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.004a6894
add esp, 0x18
push esi
call fcn.004a46e7
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 0x493106
xor ecx, ecx
jmp 0x49311f
lea ecx, [ebp - 0x58]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493110
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00405410
cmp dword [ebp + 0x20], 8
jb 0x49313c
push dword [ebp + 0xc]
call fcn.004a46e7
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 0x494c10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x494c71
movzx ecx, word [ebx]
push esi
mov esi, ebx
test cx, cx
je 0x494c69
push edi
mov edi, dword [ebp + 8]
nop
movzx eax, cx
push eax
push 0x4ea524
push edi
call fcn.004aa979
movzx ecx, word [esi + 2]
add esi, 2
add esp, 0xc
test cx, cx
jne 0x494c30
push 0x4e34f4
push edi
call fcn.004aa979
movzx ecx, word [esi + 2]
add esi, 2
add esp, 8
test cx, cx
jne 0x494c30
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x494c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004a7790
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
xor edi, edi
jmp 0x494ca0
push 0x4e789c
push dword [ebp + 0xc]
call fcn.004aaa0d
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x494cce
test esi, esi
jne 0x494cd9
push 0x7d0
call ebx
inc edi
cmp edi, 0x3c
jl 0x494ca0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.004aa39f
mov edi, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x494d30
lea esp, [esp]
push esi
call fcn.004aa3c5
add esp, 4
test eax, eax
jne 0x494d30
push esi
lea eax, [ebp - 0x2000]
push 0x1000
push eax
call fcn.004aa811
add esp, 0xc
test eax, eax
je 0x494d30
lea eax, [ebp - 0x2000]
push edi
push eax
call fcn.004aa8cd
push esi
call fcn.004aa39f
add esp, 0xc
test eax, eax
je 0x494cf0
push edi
call fcn.004a90be
push esi
call fcn.004a8f94
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x495af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004a7790
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
sub eax, 2
je 0x495be1
dec eax
jne 0x495c3d
cmp dword [ebp + 0xc], 0xc
jne 0x495c3d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, dword [ebp + 0x18]
mov esi, eax
test edi, edi
je 0x495c3d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x495c3d
test esi, esi
je 0x495c3d
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
je 0x495b5f
nop
cmp eax, esi
je 0x495bce
mov eax, dword [edx + ecx*4 + 8]
add ecx, 2
test eax, eax
jne 0x495b50
xor eax, eax
push 0x1000
lea ecx, [ebp - 0x2000]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x495bd4
push 0
push 0x493780
push dword [ebp + 8]
push 0xaa
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x517d4c], eax
call fcn.0047faf0
test eax, eax
je 0x495bab
push dword [0x517d4c]
call fcn.0047fb70
add esp, 4
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2000]
push eax
push 0x401
push dword [0x517d4c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edx + ecx*4 + 4]
jmp 0x495b61
call fcn.00492780
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea edx, [edi + 0x414]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495bf0
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
sar ecx, 1
je 0x495c0a
push edx
call esi
lea edx, [edi + 0x61c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495c15
sub ecx, edi
sar ecx, 1
je 0x495c29
push edx
call esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x4e84b0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_WinHelpW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x49a2a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4f1
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.00486bb0
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.0049b330
mov dword [edi + 0x2c], eax
mov eax, dword [0x517d6c]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0
inc dword [0x517d6c]
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 0x49a362
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.004a46e7
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x49a350
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 0x49a38c
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x50c8e0
push eax
call fcn.004a55f4
push 0x4e789c
push dword [ebp + 8]
call fcn.004aaa0d
mov esi, eax
add esp, 8
test esi, esi
je 0x49a3d3
call fcn.0047f510
movzx ecx, ax
push 0
push ecx
push esi
mov ecx, edi
call fcn.0049ab70
push esi
call fcn.004a8f94
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 0x50c8e0
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
call fcn.004a55f4
int3