joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ab60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2316
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2d
mov edi, ecx
xor ebx, ebx
xor eax, eax
mov esi, 7
push str.SoftwareAdobeRepairAcrobat_Reader11.0IOD
lea ecx, [ebp - 0x254]
mov byte [ebp - 0x255], bl
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
call fcn.00406030
xor ecx, ecx
push 0x30
mov word [ebp - 0x238], cx
push str.SoftwareAdobeAcrobat_Reader11.0InstallerIOD
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
call fcn.00406030
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 1
jae 0x48ac07
lea eax, [ebp - 0x254]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x25c]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
je 0x48ac58
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x48ac3b
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x25c]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x48ad09
push 0x20a
lea edx, [ebp - 0x21c]
push ebx
push edx
call fcn.004b7120
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x260]
push edx
push ebx
push str.Library
push eax
mov dword [ebp - 0x264], 0x20a
mov dword [ebp - 0x260], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48acfc
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x48acfc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48acfc
call fcn.0042f200
test al, al
je 0x48acfc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x48acfc
push str.MaintenanceRepair
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [edi], eax
setne byte [ebp - 0x255]
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x48ad25
mov edx, dword [ebp - 0x238]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x240], esi
jb 0x48ad55
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00406cf9
add esp, 4
mov al, byte [ebp - 0x255]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x48ec10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x214]
push eax
xor edi, edi
push str.SoftwareAdobeDigital_Editions_
mov dword [ebp - 0x218], edi
push 0x80000001
xor bl, bl
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x48ecc2
push 0x20a
lea ecx, [ebp - 0x210]
push edi
push ecx
mov dword [ebp - 0x21c], 0x20a
mov dword [ebp - 0x218], 1
call fcn.004b7120
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
push ecx
push edi
push str.InstallPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ecab
mov bl, 1
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x210]
test bl, bl
jne 0x48ecc7
mov edx, 0x4e796c
mov dword [esi + 0x10], edi
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov word [esi], cx
lea edi, [eax + 2]
jmp 0x48ece0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48ece0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406030
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x495b50
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x495bf0
test edi, edi
je 0x495bf0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 8]
push ebx
xor bl, bl
cmp edx, dword [eax]
je 0x495b7b
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
push eax
mov dword [edi + 0x14], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x495bd5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x495bde
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push edi
call fcn.004722a0
add esp, 0x10
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
test bl, bl
setne al
pop esi
mov dword [edi + 0x1c], eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x10], eax
xor eax, eax
test bl, bl
setne al
pop esi
mov dword [edi + 0x1c], eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x495c00
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test eax, eax
je 0x495cb7
test ebx, ebx
je 0x495cb7
mov edx, dword [ebx + 4]
mov edx, dword [edx + 8]
mov byte [ebp - 1], 0
cmp edx, dword [eax]
jne 0x495cb7
push esi
push edi
mov edi, dword [eax + 8]
cmp edi, ecx
jbe 0x495c3a
mov edi, ecx
push 0xe
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
mov dword [ebx + 0x14], 1
test eax, eax
je 0x495ca4
push 0x528ef9
push edi
call fcn.004218c1
mov esi, eax
add esp, 8
test esi, esi
je 0x495cad
mov eax, dword [ebp - 8]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetEnhMetaFileBits]
test eax, eax
je 0x495c86
mov ecx, dword [ebp + 0xc]
push edi
push esi
push ecx
push ebx
call fcn.004722a0
add esp, 0x10
mov byte [ebp - 1], al
push esi
call fcn.004168eb
mov al, byte [ebp - 1]
add esp, 4
xor edx, edx
cmp byte [ebp - 1], dl
pop edi
setne dl
pop esi
mov dword [ebx + 0x1c], edx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495cc0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x495e3e
test esi, esi
je 0x495e3e
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
push ebx
xor bl, bl
cmp edx, dword [eax]
je 0x495d04
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 8]
mov dword [ebp - 0x34], edi
cmp edi, ecx
jbe 0x495d14
mov dword [ebp - 0x34], ecx
mov edi, ecx
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x38], eax
mov dword [esi + 0x14], 5
test eax, eax
je 0x495e23
push 0x528ef9
push edi
call fcn.004218c1
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
je 0x495e2c
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x2c
lea edx, [ebp - 0x30]
push 0
push edx
call fcn.004b7120
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dx, word [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ax, word [ebp - 0x3e]
push 0
mov dword [ebp - 0x30], 0x28
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x495ded
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push edx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [ebp - 0x4c]
movzx eax, word [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov dword [esi + 0x1c], ecx
movzx ecx, word [ebp - 0x3e]
push ebx
push 0
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x54]
push edx
push edi
push eax
push esi
call fcn.004722a0
push edi
mov bl, al
call fcn.004168eb
add esp, 0x14
xor ecx, ecx
test bl, bl
setne cl
pop edi
mov al, bl
pop ebx
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x495f40
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x495f76
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
cmp byte [ecx + 0x54], 0
je 0x495f62
mov ecx, ebx
call fcn.00495aa0
test al, al
je 0x495f62
push edi
push ebx
mov byte [ebp - 0x71], 0
xor edi, edi
mov dword [esi + 0x14], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x496042
cmp ebx, 0xe
jne 0x495fde
push 0x68
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004b7120
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
push 0x6c
push esi
mov dword [ebp - 0x6c], 0x6c
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
test eax, eax
je 0x49603e
mov edi, dword [ebp - 0x40]
mov al, 1
jmp 0x496051
cmp ebx, 2
jne 0x496035
lea edx, [ebp - 0x90]
push edx
push 0x18
push esi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x49603e
movzx edi, word [ebp - 0x7e]
imul edi, dword [ebp - 0x8c]
add edi, 0x1f
shr edi, 5
imul edi, dword [ebp - 0x88]
add edi, edi
add edi, edi
mov al, 1
jmp 0x496051
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
mov al, 1
jmp 0x496051
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x10], eax
mov al, byte [ebp - 0x71]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 4]
mov dword [edx + 0x1c], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 8
Function at 0x496950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2d62
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x50], esi
cmp byte [0x528eb1], 0
jne 0x496ac6
mov ebx, 1
mov eax, 7
xor ecx, ecx
mov byte [0x528eb1], bl
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
push 0x20019
push str.SOFTWAREMicrosoftOffice11.0CommonInstallRoot
push 0x80000002
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0040a670
lea ecx, [ebp - 0x48]
push ecx
push str.Path
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], ebx
call fcn.00422fd0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x496a0e
cmp dword [ebp - 0x38], esi
je 0x496a0e
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x496a04
lea eax, [ebp - 0x48]
push eax
call edi
mov byte [ebp - 0x49], bl
test eax, eax
jne 0x496a12
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.0040aa80
cmp byte [ebp - 0x49], 0
jne 0x496a89
push 0x20019
push str.SOFTWAREMicrosoftOffice11.0OutlookInstallRoot
push 0x80000002
lea ecx, [ebp - 0x58]
call fcn.0040a670
lea edx, [ebp - 0x2c]
push edx
push str.Path
mov ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 2
call fcn.00422fd0
test eax, eax
jne 0x496a74
cmp dword [ebp - 0x1c], esi
je 0x496a74
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x496a6a
lea eax, [ebp - 0x2c]
push eax
call edi
mov byte [ebp - 0x49], bl
test eax, eax
jne 0x496a78
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.0040aa80
cmp byte [ebp - 0x49], 0
je 0x496a8f
mov byte [0x528eb0], bl
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x496aa5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x496ac6
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406cf9
add esp, 4
mov al, byte [0x528eb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x499aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
test eax, eax
je 0x499b0d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x499b0d
mov edx, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x499b05
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push esi
push edx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x499afb
cmp dword [ebp - 8], eax
setne bl
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x14]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x499b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push esi
cmp eax, ebx
je 0x499b8b
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x499b8b
mov edx, dword [ebp + 8]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x499b83
cmp byte [ebp + 0x14], bl
mov edx, dword [ebp + 0xc]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
setne al
push ebx
push esi
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x499b79
mov bl, 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x499c09
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x499c08
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x499c07
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x499c06
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x499c06
push esi
push edi
push 1
push eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bf90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e35a3
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov dword [ebp - 0x270], edi
push ecx
mov dword [ebp - 0x274], esi
mov word [ebp - 0x218], ax
call fcn.004b7120
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
add esp, 0xc
mov word [esi], dx
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
mov dword [ebp - 4], edi
mov dword [ebp - 0x270], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x49c110
cmp eax, 0x104
jae 0x49c110
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x218]
push 0x104
push edx
mov dword [ebp - 4], 1
call fcn.004b786d
lea ecx, [eax - 1]
add esp, 8
cmp ecx, 0x102
ja 0x49c0f8
movzx eax, word [ebp + eax*2 - 0x21a]
cmp eax, 0x5c
je 0x49c097
cmp eax, 0x2f
je 0x49c097
push 0x4ea370
lea ecx, [ebp - 0x234]
call fcn.00421f10
push 0x40
push str.chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1Local_StoreHelp_
lea ecx, [ebp - 0x234]
call fcn.0040d610
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x26c]
call fcn.00408770
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 2
call fcn.00422f80
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405fb0
lea ecx, [ebp - 0x250]
call fcn.00409fe0
lea ecx, [ebp - 0x26c]
call fcn.00409fe0
cmp dword [ebp - 0x220], 8
jb 0x49c110
mov eax, dword [ebp - 0x234]
push eax
call fcn.00406cf9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x49cf10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3776
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x220], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edi
mov word [esi + 0x40], cx
xor edx, edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], edi
mov word [esi + 0x5c], dx
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x88], edi
mov word [esi + 0x78], ax
mov ecx, dword [esi + 0x20]
mov byte [ebp - 4], 4
cmp ecx, dword [esi + 0x24]
je 0x49cfcb
mov eax, dword [esi + 0x24]
cmp ecx, eax
je 0x49cfcb
mov edx, dword [ebp - 0x220]
push edx
push ecx
push eax
push eax
call fcn.0049bd50
mov edx, dword [esi + 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
push ecx
push edx
push ebx
call fcn.0049bd90
add esp, 0x20
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
je 0x49d008
mov ecx, eax
mov eax, dword [esi + 0x34]
cmp ecx, eax
je 0x49d008
mov edx, dword [ebp - 0x220]
push edx
push ecx
push eax
push eax
call fcn.0049bd50
mov edx, dword [esi + 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [esi + 0x3c]
push ecx
push edx
push ebx
call fcn.0049bd90
add esp, 0x20
mov dword [esi + 0x34], ebx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x20
push edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
js 0x49d07f
cmp word [ebp - 0x21c], di
je 0x49d07f
lea ecx, [ebp - 0x21c]
push ecx
call ebx
test eax, eax
je 0x49d07f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d060
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [esi + 0x40]
call fcn.00406030
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49d0cf
lea ecx, [ebp - 0x21c]
push ecx
call ebx
test eax, eax
je 0x49d0cf
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x49d0b0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d0b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [esi + 0x5c]
call fcn.00406030
mov ecx, esi
call fcn.0049c130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x49e840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x5c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push edx
call ebx
mov eax, dword [esi + 0x5c]
push 0
push 0
push 7
push eax
call ebx
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [esi + 0x59], 0
je 0x49e8f5
push edi
nop
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x49e8f4
mov edi, dword [esi + 4]
test edi, edi
je 0x49e8da
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x24]
cmp ecx, eax
je 0x49e8c4
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x49e8da
mov ecx, dword [edi + 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x37f
push ecx
call ebx
cmp eax, 1
je 0x49e8ee
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x59], 0
jne 0x49e890
pop edi
xor eax, eax
cmp dword [esi + 0x54], 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f4c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x49f534
cmp dword [esi + 0x14], 8
jb 0x49f4dc
mov eax, dword [esi]
jmp 0x49f4de
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49f534
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004b7120
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
jb 0x49f512
mov esi, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x49f536
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
pop edi
mov dword [edx], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8