joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ffc0
Capabilities:
Delete registry key

Disassembly:
push ecx
push eax
push str.DefaultScope
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, pe_nt_image_headers32
mov ecx, 0x4bc9a8
call fcn.00410ec0
add esp, 0xc
test al, al
jne 0x48ffe6
xor al, al
pop ecx
ret
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x48ffff
cmp eax, 2
jne 0x48ffe2
mov al, 1
pop ecx
ret

Function at 0x490010
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [esi]
push eax
push 0x4bc784
push ecx
xor eax, eax
mov ecx, 0x4bc7a0
call fcn.00410ec0
add esp, 0xc
test al, al
jne 0x490031
xor al, al
pop ecx
ret
mov edx, dword [esi]
push 0x4bc808
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x490048
cmp eax, 2
jne 0x49002d
mov al, 1
pop ecx
ret

Function at 0x490050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 1
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallVPNMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x4900fe
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4900e5
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x49010a
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4c45f4
call fcn.00403020
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x490120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 1
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x4c452c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360zip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x4901ce
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4901b5
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x4901da
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4c45b8
call fcn.00403020
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x490590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f6f5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.00490050
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
mov edi, 0x22
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.00405d50
push 0
lea esi, [ebp - 0x2c]
call fcn.004030d0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
mov edi, esi
call fcn.00405de0
inc eax
push eax
or eax, 0xffffffff
call fcn.004030d0
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x49060f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49062f
cmp dword [ebp - 0x14], esi
jb 0x49062b
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044556f
add esp, 4
mov al, 1
jmp 0x490642
cmp dword [ebp - 0x14], esi
jb 0x490640
mov eax, dword [ebp - 0x28]
push eax
call fcn.0044556f
add esp, 4
xor al, al
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.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x490660
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f73b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4e24e0]
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
xor eax, eax
mov byte [ebp - 0x251], 0
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], esi
mov word [ebp - 0x24c], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.0044b7d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x49073a
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4906f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea esi, [ebp - 0x250]
call fcn.00403020
cmp dword [ebp - 0x23c], 0
jne 0x49073a
cmp dword [ebp - 0x238], 8
jb 0x490733
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0044556f
add esp, 4
xor al, al
jmp 0x49085b
call fcn.0048f4d0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x490758
call fcn.0048f450
test al, al
je 0x4907d2
push str.Shcore.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.0040a3a0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x49078e
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4907ae
push str.SetProcessDpiAwareness
push eax
call ebx
test eax, eax
je 0x4907ae
push 1
call eax
test eax, eax
sete byte [ebp - 0x251]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], esi
jb 0x4907c9
mov eax, dword [ebp - 0x230]
push eax
call fcn.0044556f
add esp, 4
cmp byte [ebp - 0x251], 0
jne 0x49083d
push str.User32.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.0040a3a0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x490808
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x490826
push str.SetProcessDPIAware
push eax
call ebx
test eax, eax
je 0x490826
call eax
test eax, eax
setne byte [ebp - 0x251]
cmp dword [ebp - 0x21c], esi
jb 0x49083d
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.0044556f
add esp, 4
cmp dword [ebp - 0x238], 8
jb 0x490855
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0044556f
add esp, 4
mov al, byte [ebp - 0x251]
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.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x4910b0
Capabilities:
Terminate thread

Disassembly:
cmp dword [edi + 8], 0
je 0x4910ed
mov eax, dword [edi + 0xc]
push 0x7d0
push eax
mov byte [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4910dc
mov ecx, dword [edi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
push esi
mov esi, dword [edi]
test esi, esi
je 0x491108
call fcn.00490530
push esi
call fcn.0044556f
add esp, 4
mov dword [edi], 0
cmp dword [edi + 4], 0
pop esi
je 0x491116
mov dword [edi + 4], 0
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x4919f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fced
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x491a40
push esi
mov ecx, 0x4be0b4
call fcn.00411220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push str._server_tracking_data
push eax
lea edx, [ebp + 8]
push edx
call fcn.0040f510
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491a74
push esi
mov ecx, 0x4be0e4
call fcn.00411220
jmp 0x491a84
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004115b0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x491c40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
mov dword [esi], vtable.TS::FileMonitorBase.0
test edi, edi
je 0x491caa
cmp dword [edi + 8], 0
je 0x491c8e
mov eax, dword [edi + 0xc]
push 0x7d0
push eax
mov byte [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x491c7d
mov ecx, dword [edi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov edi, dword [esi + 4]
test edi, edi
je 0x491ca3
call fcn.004910b0
push edi
call fcn.0044556f
add esp, 4
mov dword [esi + 4], 0
cmp dword [esi + 0x28], 8
jb 0x491cbc
mov eax, dword [esi + 0x14]
push eax
call fcn.0044556f
add esp, 4
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], 0
xor ecx, ecx
pop edi
mov word [esi + 0x14], cx
pop esi
ret
Function at 0x493c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.00490120
cmp dword [eax + 0x18], 8
jb 0x493cb0
mov eax, dword [eax + 4]
jmp 0x493cb3
add eax, 4
push str.360zip.exe
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp - 0x214], 8
jb 0x493cde
mov edx, dword [ebp - 0x228]
push edx
call fcn.0044556f
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493d30
cmp dword [0x4eb68c], 0
jne 0x493d0b
mov ecx, dword [0x4e98d4]
push ecx
call fcn.0040eb70
add esp, 4
test eax, eax
je 0x493d30
push 0x4eb260
lea edi, [ebp - 0x210]
call fcn.00462b40
test eax, eax
je 0x493d30
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x499d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3ae6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
push eax
call fcn.0046b6a0
add esp, 4
test eax, eax
je 0x499d82
mov ecx, esi
call fcn.00499c00
test eax, eax
je 0x499d82
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x499db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a46d6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], edi
test eax, eax
je 0x499e59
test ecx, ecx
je 0x499e59
push ecx
push 0x4732d0
push edi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
test eax, eax
je 0x499e59
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
push eax
call fcn.0049bd40
movzx edi, al
add esp, 4
mov dword [ebp - 0x14], edi
cmp edi, 1
jne 0x499e59
mov eax, dword [0x4ea5dc]
cmp eax, 2
jne 0x499e2e
xor eax, eax
jmp 0x499e38
cmp eax, 3
jne 0x499e38
mov eax, 1
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
push eax
push edx
call fcn.0048c600
add esp, 8
movzx edi, al
jmp 0x499e59
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49c040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a442f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edx, edi
cmp edi, ebx
jne 0x49c077
mov edx, 0x4af300
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49c090
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebp - 0x2c]
call fcn.00403020
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x49c0bc
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.0048bc70
mov bl, al
add esp, 8
cmp bl, 1
jne 0x49c0fb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
push 0x4af310
push 0x4af320
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test edi, edi
je 0x49c0fb
call fcn.0049bc30
cmp dword [ebp - 0x14], esi
jb 0x49c10c
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044556f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret

Function at 0x49c150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f54d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
cmp eax, 0x4b7d58
je 0x49c257
xor ecx, ecx
cmp ecx, 0x4b7d78
je 0x49c257
xor edx, edx
cmp edx, 0x4b7d74
je 0x49c257
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4b7d78
push 0x4b7d58
xor esi, esi
push 0x4bb684
lea edi, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00413060
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x4b7d58
push SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x49c1fd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
push edx
push eax
push 3
push 0x4b7d74
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f570
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, edx
test esi, esi
je 0x49c354
test edi, edi
je 0x49c354
test ebx, ebx
je 0x49c354
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
push esi
push 0x4bb66c
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00413060
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
add esp, 0xc
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push esi
push SysReAllocString
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x49c316
cmp dword [ebp - 0x18], 3
je 0x49c31a
xor bl, bl
jmp 0x49c31d
mov bl, byte [ebp - 0xd]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c340
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0a4f
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4e24e0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x4e24e0]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
test byte [0x4ebe30], 1
lea esi, [ebx + 7]
jne 0x49c3e9
or dword [0x4ebe30], 1
xor eax, eax
push 0x4a88b0
mov dword [0x4ebe2c], esi
mov dword [0x4ebe28], ebx
mov word [0x4ebe18], ax
call fcn.004456b0
add esp, 4
cmp byte [0x4ebb99], 1
jne 0x49c403
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov word [edi + 4], cx
jmp 0x49c4d0
push 0x206
lea eax, [esp + 0x32]
xor edx, edx
push ebx
push eax
mov word [esp + 0x38], dx
call fcn.0044b7d0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49c4bd
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
lea eax, [esp + 0xc]
mov dword [esp + 0x248], ebx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.00490880
add esp, 8
test al, al
je 0x49c48f
mov edx, dword [esp + 0xc]
push edx
lea esi, [esp + 0x14]
call fcn.004913c0
add esp, 4
test al, al
je 0x49c48a
push 0xffffffffffffffff
push ebx
mov eax, esi
push eax
mov eax, 0x4ebe14
call fcn.00405b20
mov esi, 7
mov dword [esp + 0x248], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x49c4ae
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044556f
add esp, 4
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
xor eax, eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov byte [0x4ebb99], 1
mov word [edi + 4], ax
push 0xffffffffffffffff
push ebx
push 0x4ebe14
mov eax, edi
call fcn.00405b20
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x49c510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1067
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x238], ebx
test byte [0x4ebe54], 1
lea edi, [ebx + 7]
jne 0x49c579
or dword [0x4ebe54], 1
xor eax, eax
push 0x4a8870
mov dword [0x4ebe50], edi
mov dword [0x4ebe4c], ebx
mov word [0x4ebe3c], ax
call fcn.004456b0
add esp, 4
cmp byte [0x4ebb98], 1
jne 0x49c593
xor ecx, ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
jmp 0x49c678
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.0044b7d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49c665
xor edx, edx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], dx
lea eax, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x218]
push eax
push ecx
call fcn.00490880
add esp, 8
test al, al
je 0x49c631
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
call fcn.00492380
test al, al
je 0x49c62c
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x234]
push edx
mov eax, 0x4ebe38
call fcn.00405b20
mov edi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
jb 0x49c650
mov eax, dword [ebp - 0x230]
push eax
call fcn.0044556f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [0x4ebb98], 1
mov word [esi + 4], dx
push 0xffffffffffffffff
push ebx
push 0x4ebe38
mov eax, esi
call fcn.00405b20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x49cf20
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x81e
push eax
lea ecx, [ebp - 0x822]
mov dword [ebp - 0x828], 0
push ecx
mov word [ebp - 0x824], ax
call fcn.0044b7d0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x824]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x828]
mov ecx, 0x208
lea edx, [ebp - 0x824]
call fcn.0048e7a0
test eax, eax
jl 0x49cfac
mov eax, dword [ebp - 0x828]
push SysReAllocString
mov ecx, 0x208
push 0x4af9b0
sub ecx, eax
lea edx, [ebp + eax*2 - 0x824]
call fcn.0048e7e0
lea edi, [ebp - 0x828]
mov ecx, 0x208
lea edx, [ebp - 0x824]
call fcn.0048e7a0
pop edi
test eax, eax
jl 0x49cfea
mov eax, dword [ebp - 0x828]
push SysReAllocString
mov ecx, 0x208
push 0x4af9d4
sub ecx, eax
lea edx, [ebp + eax*2 - 0x824]
call fcn.0048e7e0
push 0
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
lea ecx, [ebp - 0x824]
call fcn.00411220
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0044557a
mov esp, ebp
pop ebp
ret