joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529a20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x552a7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x558968]
xor edi, edi
cmp ecx, edi
jne 0x4142db
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
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4142e8
mov dword [ebp - 0x14], edi
jmp 0x414300
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x41439d
mov ecx, dword [0x558968]
mov eax, dword [ecx]
cmp eax, edi
je 0x4142c7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4142c7
mov dword [ebp - 4], edi
mov ebx, 0x558968
call fcn.004143b0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x41433e
mov dword [ebp - 0x18], 1
push 0x54a734
lea eax, [ebp - 0x18]
push eax
call fcn.004f8d2a
mov ecx, esi
mov eax, dword [0x558968]
call fcn.00414640
test eax, eax
jne 0x414363
mov dword [ebp - 0x1c], 4
push 0x54a734
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004f8d2a
mov dword [ebp - 4], 0xffffffff
jmp 0x414388
mov edx, dword [0x558968]
mov eax, dword [edx]
test eax, eax
je 0x41439b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
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 0x4143b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4143dd
xor ecx, ecx
jmp 0x4143e9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x41449d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x414410
mov dword [esp + 0xc], esi
jmp 0x414470
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x414469
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41445c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x414470
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x414470
push 0x542798
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x414470
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x414493
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x414402
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x4144b1
mov ecx, dword [ebx]
add ecx, 8
call fcn.00414740
test eax, eax
je 0x4144b1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret
Function at 0x4144c0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x529b0b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x552a7c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004f7580
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x414558
push 0x54a734
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004f8d2a
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x414b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004f7580
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x208
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x52c898
push 0x52c8a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
movzx edx, word [ebp - 0x218]
test edx, edx
je 0x414c63
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004f7580
add esp, 0xc
push 0x7e
mov edx, dword [ebp + 8]
push edx
call fcn.004f78b2
add esp, 8
test eax, eax
je 0x414c1c
push 0x104
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x414c31
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.0041cf60
lea ecx, [ebp - 0x218]
push ecx
call fcn.004f7670
add esp, 4
sub eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004f780c
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
jmp 0x414c65
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret
Function at 0x414db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 4]
call fcn.0041d080
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0042d820
add esp, 8
lea ecx, [ebp - 4]
call fcn.0041d2e0
test eax, eax
je 0x414ea5
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call fcn.00414b60
add esp, 4
test eax, eax
je 0x414ea5
lea ecx, [ebp - 0xc]
push ecx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x52c968
push 0x52c96c
push 0x52c97c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0xc]
call fcn.0041d100
lea edx, [ebp - 0x10]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x52c990
push 0x52c994
push 0x52c9a0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.0041d100
call fcn.00415eb0
test eax, eax
je 0x414e89
mov dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x52c9b4
push 0x52c9c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x52ca20
push 0x52ca4c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c3d30
add esp, 0xc
call fcn.00414c80
lea ecx, [ebp - 4]
call fcn.0041d100
mov esp, ebp
pop ebp
ret

Function at 0x414ec0
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x510]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0
push str.Uninst
push 0x52ca88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x510]
call fcn.0041d100
lea ecx, [ebp - 0x514]
push ecx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0
push 0x52ca9c
push 0x52caa8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x514]
call fcn.0041d100
cmp dword [ebp - 4], 0
je 0x415048
cmp dword [ebp - 8], 0
jne 0x415048
lea edx, [ebp - 0x518]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x52cabc
push 0x52cac0
push 0x52cad0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x518]
call fcn.0041d100
lea eax, [ebp - 0x51c]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x52cae4
push 0x52cae8
push 0x52caf4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x51c]
call fcn.0041d100
call fcn.00415eb0
test eax, eax
je 0x414ff6
mov dword [ebp - 0x50c], 1
push 4
lea ecx, [ebp - 0x50c]
push ecx
push 4
push 0x52cb08
push 0x52cb18
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push 0
push 0
lea ecx, [ebp - 0x508]
call fcn.00416730
mov dword [ebp - 0x68], 1
push 0x52cb70
lea ecx, [ebp - 0x520]
call fcn.0041d0c0
lea edx, [ebp - 0x520]
push edx
push 0
lea ecx, [ebp - 0x508]
call fcn.00419870
lea ecx, [ebp - 0x520]
call fcn.0041d100
lea ecx, [ebp - 0x508]
call fcn.004170c0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret
Function at 0x415eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
cmp dword [0x554714], 0
jne 0x415fbd
lea ecx, [ebp - 8]
call fcn.00404e10
push 0x20019
push str.SOFTWAREPalmInput
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 8]
call fcn.00416610
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x415fab
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004f7580
add esp, 0xc
mov dword [ebp - 0x10], 0x104
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x220]
push edx
push str.InstallDir
lea ecx, [ebp - 8]
call fcn.00416670
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x415fab
movzx eax, word [ebp - 0x220]
test eax, eax
je 0x415fab
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415fab
push 0x208
push 0
lea edx, [ebp - 0x428]
push edx
call fcn.004f7580
add esp, 0xc
push 0x104
lea eax, [ebp - 0x428]
push eax
mov ecx, 0x5546c4
call fcn.004162c0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x415fab
mov dword [0x554710], 1
mov dword [0x554714], 1
lea ecx, [ebp - 8]
call fcn.00404df0
mov eax, dword [0x554710]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret
Function at 0x4163f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004f7580
add esp, 0xc
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x214]
push edx
push 0x20019
push 0
push 0x52d168
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4164a3
mov dword [ebp - 0x220], 0x204
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0x52d15c
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041d0c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret

Function at 0x4164d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004f7580
add esp, 0xc
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x224], 0x208
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x214]
push edx
push 0x20019
push 0
push 0x52d1f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4165c7
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0x52d1e8
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x210]
push edx
call fcn.004f7670
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 3
jbe 0x4165c7
mov eax, dword [ebp - 0x224]
movzx ecx, word [ebp + eax*2 - 0x212]
cmp ecx, 0x5c
je 0x4165c7
mov edx, 0x5c
mov eax, dword [ebp - 0x224]
mov word [ebp + eax*2 - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0041d0c0
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041d0a0
lea ecx, [ebp - 0x218]
call fcn.0041d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret
Function at 0x416670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x416679
xor ecx, ecx
jne 0x416679
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4166c0
mov eax, dword [ebp - 0xc]
jmp 0x41671d
cmp dword [ebp - 4], 1
je 0x4166d3
cmp dword [ebp - 4], 2
je 0x4166d3
mov eax, 0xd
jmp 0x41671d
cmp dword [ebp + 0xc], 0
je 0x416711
cmp dword [ebp - 8], 0
je 0x416709
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x416700
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x416707
mov eax, 0xd
jmp 0x41671d
jmp 0x416711
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418f60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x419018
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x419018
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f5e5a
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [0x55470c], eax
cmp dword [0x55470c], 0
je 0x41900e
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x55470c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [0x55470c]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x419150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push str.emalware.001
lea eax, [ebp - 0xc]
push eax
call fcn.004192b0
add esp, 4
or dword [ebp - 0x24], 1
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 2
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419215
push str.emalware.002
lea edx, [ebp - 0x14]
push edx
call fcn.004192b0
add esp, 4
or dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 8
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419215
push 0x52d964
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004192b0
add esp, 4
or dword [ebp - 0x24], 0x10
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 0x20
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419215
mov dword [ebp - 0x28], 0
jmp 0x41921c
mov dword [ebp - 0x28], 1
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x419236
and dword [ebp - 0x24], 0xffffffdf
lea ecx, [ebp - 0x20]
call fcn.0041d100
mov edx, dword [ebp - 0x24]
and edx, 0x10
je 0x41924a
and dword [ebp - 0x24], 0xffffffef
lea ecx, [ebp - 0x1c]
call fcn.0041d100
mov eax, dword [ebp - 0x24]
and eax, 8
je 0x41925e
and dword [ebp - 0x24], 0xfffffff7
lea ecx, [ebp - 0x18]
call fcn.0041d100
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x419272
and dword [ebp - 0x24], 0xfffffffb
lea ecx, [ebp - 0x14]
call fcn.0041d100
mov edx, dword [ebp - 0x24]
and edx, 2
je 0x419286
and dword [ebp - 0x24], 0xfffffffd
lea ecx, [ebp - 0x10]
call fcn.0041d100
mov eax, dword [ebp - 0x24]
and eax, 1
je 0x41929a
and dword [ebp - 0x24], 0xfffffffe
lea ecx, [ebp - 0xc]
call fcn.0041d100
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x4192a9
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4192f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push str._savapi_vbase000.vdf
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00416040
add esp, 8
or dword [ebp - 0x24], 1
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 2
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4193bb
push str._savapi_aeoffice.dll
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00416040
add esp, 8
or dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 8
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4193bb
push str._savapi_aebb.dll
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00416040
add esp, 8
or dword [ebp - 0x24], 0x10
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.0041bc20
add esp, 0xc
or dword [ebp - 0x24], 0x20
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4193bb
mov dword [ebp - 0x28], 0
jmp 0x4193c2
mov dword [ebp - 0x28], 1
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x4193dc
and dword [ebp - 0x24], 0xffffffdf
lea ecx, [ebp - 0x20]
call fcn.0041d100
mov edx, dword [ebp - 0x24]
and edx, 0x10
je 0x4193f0
and dword [ebp - 0x24], 0xffffffef
lea ecx, [ebp - 0x1c]
call fcn.0041d100
mov eax, dword [ebp - 0x24]
and eax, 8
je 0x419404
and dword [ebp - 0x24], 0xfffffff7
lea ecx, [ebp - 0x18]
call fcn.0041d100
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x419418
and dword [ebp - 0x24], 0xfffffffb
lea ecx, [ebp - 0x14]
call fcn.0041d100
mov edx, dword [ebp - 0x24]
and edx, 2
je 0x41942c
and dword [ebp - 0x24], 0xfffffffd
lea ecx, [ebp - 0x10]
call fcn.0041d100
mov eax, dword [ebp - 0x24]
and eax, 1
je 0x419440
and dword [ebp - 0x24], 0xfffffffe
lea ecx, [ebp - 0xc]
call fcn.0041d100
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x41944f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [section..data], 1
je 0x419528
cmp dword [section..data], 0
jne 0x41952f
mov eax, dword [section..data]
jmp 0x4195a4
push 0x52da6c
push 0
lea eax, [ebp - 8]
push eax
call fcn.00416040
add esp, 8
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0041bc20
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
push 0x52da68
push str.test
push str.test
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
neg eax
sbb eax, eax
add eax, 1
mov dword [section..data], eax
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [section..data]
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 4]
call fcn.0041d100
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4195b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [0x554b28]
test eax, eax
jne 0x419613
push 1
push 0x23
push 0x554b28
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4195e3
push 0x104
push 0x554b28
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 7
push str.360SD_
push 0x554b28
call fcn.004f79d0
add esp, 0xc
push 0x554b28
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419613
push 0
push 0x554b28
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x554b28
mov ecx, dword [ebp + 8]
call fcn.0041d0c0
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x41b620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004f78e0
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x542610]
mov word [ebp - 0x4008], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4006]
push ecx
call fcn.004f7580
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x400c], eax
cmp dword [ebp - 0x400c], 0
je 0x41b682
cmp dword [ebp - 0x400c], 0x3fff
jbe 0x41b689
xor eax, eax
jmp 0x41b730
lea ecx, [ebp - 0x4008]
push ecx
mov edx, dword [ebp - 0x400c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41b72e
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x54239c
lea eax, [ebp - 0x4008]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41b72e
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 8]
and edx, 0xffff
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp + 0x14]
mov word [eax], dx
mov ecx, dword [ebp - 0x4010]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 0x18]
mov word [eax], dx
mov eax, 1
jmp 0x41b730
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret