joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d12f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d154
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce1a
add esp, 0xc
mov edi, eax
jmp 0x1001d157
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d1c3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d1b7
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d18c
cmp eax, 2
je 0x1001d18c
cmp eax, 6
je 0x1001d18c
cmp eax, 7
jne 0x1001d1b7
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x1001d1b7
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d1b7
cmp edi, dword [ebp + 8]
je 0x1001d1b3
push edi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d1c5
cmp edi, dword [ebp + 8]
je 0x1001d1c3
push edi
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d1ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d1ef
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce1a
add esp, 0xc
mov ebx, eax
jmp 0x1001d1f2
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d281
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d275
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d22b
cmp eax, 2
je 0x1001d22b
cmp eax, 6
je 0x1001d22b
cmp eax, 7
jne 0x1001d275
push dword [ebp + 0xc]
call fcn.1009968a
mov edi, eax
pop ecx
test edi, edi
je 0x1001d275
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x1001d26e
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001d25e
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp ebx, dword [ebp + 8]
je 0x1001d26a
push ebx
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d283
push edi
call fcn.10099533
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d281
push ebx
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d31c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d341
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce1a
add esp, 0xc
mov ebx, eax
jmp 0x1001d344
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d3ec
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d3e0
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d37d
cmp eax, 2
je 0x1001d37d
cmp eax, 6
je 0x1001d37d
cmp eax, 7
jne 0x1001d3e0
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.100639c2
mov edi, eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
push edi
call fcn.10097040
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
push edi
test eax, eax
jne 0x1001d3cc
mov ecx, dword [ebp + 0x14]
call fcn.100cc900
cmp ebx, dword [ebp + 8]
je 0x1001d3c1
push ebx
call fcn.1001ce6b
pop ecx
push edi
call fcn.100639cd
pop ecx
mov al, 1
jmp 0x1001d3ee
call fcn.100639cd
mov ecx, dword [ebp + 0x14]
mov dword [esp], 0x101e3ae4
call fcn.100cc900
cmp ebx, dword [ebp + 8]
je 0x1001d3ec
push ebx
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d3f3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, eax
je 0x1001d415
push 0x20006
push dword [ebp + 8]
push ebx
call fcn.1001ce3e
add esp, 0xc
mov edi, eax
jmp 0x1001d417
mov edi, ebx
test edi, edi
je 0x1001d473
mov eax, dword [esi]
cmp eax, 4
jne 0x1001d429
push eax
add esi, eax
push esi
push eax
jmp 0x1001d449
cmp eax, 1
je 0x1001d442
cmp eax, 2
je 0x1001d442
cmp eax, 6
je 0x1001d442
cmp eax, 7
je 0x1001d442
cmp eax, 3
jne 0x1001d468
push dword [esi + 8]
push dword [esi + 4]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d468
cmp edi, ebx
je 0x1001d464
push edi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d475
cmp edi, ebx
je 0x1001d473
push edi
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x1001d479
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d498
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce3e
add esp, 0xc
mov esi, eax
jmp 0x1001d49a
mov esi, edi
test esi, esi
je 0x1001d4d0
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d4c5
cmp esi, edi
je 0x1001d4c1
push esi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d4d2
cmp esi, edi
je 0x1001d4d0
push esi
call fcn.1001ce6b
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d4d5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d4f4
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce3e
add esp, 0xc
mov esi, eax
jmp 0x1001d4f6
mov esi, edi
test esi, esi
je 0x1001d52c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d521
cmp esi, edi
je 0x1001d51d
push esi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d52e
cmp esi, edi
je 0x1001d52c
push esi
call fcn.1001ce6b
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001d531
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d550
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce3e
add esp, 0xc
mov esi, eax
jmp 0x1001d552
mov esi, edi
test esi, esi
je 0x1001d593
push dword [ebp + 0x10]
call fcn.10097626
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d588
cmp esi, edi
je 0x1001d584
push esi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d595
cmp esi, edi
je 0x1001d593
push esi
call fcn.1001ce6b
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d5dd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1001d601
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce1a
add esp, 0xc
jmp 0x1001d604
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x14], edi
jbe 0x1001d62d
push dword [ebx + esi*4]
call fcn.10097626
push eax
push 0x20
push dword [ebx + esi*4]
call fcn.10097040
add esp, 0x10
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x1001d611
cmp dword [ebp + 0xc], edi
je 0x1001d6dd
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001d6ce
cmp dword [ebp + 0x14], edi
jbe 0x1001d6ce
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
mov esi, eax
pop ecx
cmp esi, edi
je 0x1001d6ce
cmp dword [ebp + 0x14], edi
jbe 0x1001d6b4
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
inc eax
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001d6ac
mov eax, dword [ebp - 8]
push esi
push dword [eax]
call fcn.10097591
add dword [ebp - 8], 4
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x1001d686
jmp 0x1001d6b7
mov ebx, dword [ebp + 0xc]
push esi
call fcn.100639cd
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d6ca
push ebx
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d6df
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001d6dd
push eax
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d6e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001d783
cmp dword [ebp - 8], ebx
je 0x1001d778
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.1009968a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1001d783
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001d77c
push 0x2001f
push esi
push dword [ebp + 8]
call fcn.1001ce1a
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x1001d77c
push edi
call fcn.1001d6e4
pop ecx
push edi
test al, al
je 0x1001d78a
call fcn.1001ce6b
pop ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1001d77c
dec dword [ebp - 8]
jne 0x1001d723
push esi
call fcn.10099533
pop ecx
mov al, 1
jmp 0x1001d785
push esi
call fcn.10099533
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
call fcn.1001ce6b
push esi
call fcn.10099533
pop ecx
jmp 0x1001d782
Function at 0x1001d798
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d7b7
push 0x2001f
push dword [ebp + 8]
push edi
call fcn.1001ce1a
add esp, 0xc
mov esi, eax
jmp 0x1001d7b9
mov esi, edi
test esi, esi
je 0x1001d812
cmp dword [ebp + 0xc], 0
je 0x1001d7e0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1001d807
cmp esi, edi
je 0x1001d7dc
push esi
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001d814
push esi
call fcn.1001d6e4
pop ecx
test al, al
je 0x1001d807
cmp esi, edi
je 0x1001d7f6
push esi
call fcn.1001ce6b
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
jmp 0x1001d814
cmp esi, edi
je 0x1001d812
push esi
call fcn.1001ce6b
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001dfab
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001dfd0
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce1a
add esp, 0xc
mov ebx, eax
jmp 0x1001dfd3
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
call fcn.100d2020
cmp ebx, esi
je 0x1001e075
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001e069
cmp dword [ebp + 0xc], esi
jbe 0x1001e069
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
mov edi, eax
pop ecx
cmp edi, esi
je 0x1001e069
cmp dword [ebp + 0xc], esi
jbe 0x1001e052
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001e04c
mov ecx, dword [ebp + 0x10]
push edi
call fcn.1000575c
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x1001e031
push edi
call fcn.100639cd
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001e065
push ebx
call fcn.1001ce6b
pop ecx
mov al, 1
jmp 0x1001e077
cmp ebx, dword [ebp + 8]
je 0x1001e075
push ebx
call fcn.1001ce6b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001facc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1001fb02
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1001fb01
push dword [edi + 0xc]
call esi
push eax
call fcn.10067c2e
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret
Function at 0x10023348
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, 0x2001f
cmp dword [ebp + 0x14], esi
je 0x10023361
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100233ab
cmp dword [ebp + 0x10], esi
je 0x1002338d
push dword [ebp + 0x10]
call fcn.10097626
pop ecx
lea eax, [eax + eax + 2]
jmp 0x1002338f
xor eax, eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x100233b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov eax, 0x2001f
je 0x100233c8
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10023400
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10

Function at 0x10023404
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1002348d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x10023483
inc eax
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x10023483
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10023495
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100234e6
and dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x100242ef
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101cd883
call fcn.10096f31
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100da930
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x1002434d
cmp dword [ebp + 8], edi
je 0x1002434d
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.10097626
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100da990
call fcn.10097009
ret 4
Function at 0x10027de6
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x101ce3e8
call fcn.10096f31
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x10027e09
xor edi, edi
inc edi
jmp 0x10027ee7
mov eax, dword [0x1020db10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
push eax
cmp dword [ebp + 0xc], ebx
je 0x10027e28
call fcn.10027c6f
mov byte [ebp - 4], 1
jmp 0x10027e31
call fcn.10027cbd
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.100cc810
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.100cc680
mov esi, dword [ebp + 8]
push ebx
push ebx
push 2
call fcn.100f53f0
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10027e95
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x10265fbc
call fcn.10024fa4
add esp, 0x14
or dword [ebp - 4], esi
lea ecx, [ebp + 8]
call fcn.100cc680
mov edi, dword [ebp - 0x14]
jmp 0x10027ee7
mov eax, dword [edi]
push ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x10]
push ecx
add eax, eax
push eax
push ebx
mov ecx, edi
call fcn.100cd350
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
mov edi, eax
push edi
push str.SaveMailText_after_write_file__bRet__d__dwWrite__lu_
push str.MailInfo
push 4
push 0x10265fbc
call fcn.10024fa4
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100cc680
mov eax, edi
call fcn.10097009
ret 8
Function at 0x10027ef1
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x101ce41b
call fcn.10096f31
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.100cc3f0
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x10027f15
xor eax, eax
jmp 0x1002807e
mov eax, dword [0x1020db10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
cmp dword [ebp + 0xc], edi
je 0x10027f39
call fcn.10027c6f
mov byte [ebp - 4], 1
jmp 0x10027f42
call fcn.10027cbd
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.100cc810
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100cc680
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10027fa7
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x10265fbc
call fcn.10024fa4
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cc680
jmp 0x10027f0e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push str.GetMailText_file_size:_lu_B
mov edi, str.MailInfo
push edi
push 4
mov esi, 0x10265fbc
push esi
call fcn.10024fa4
add esp, 0x14
cmp ebx, 0xffffffff
je 0x10028048
test ebx, ebx
je 0x10028048
mov eax, ebx
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1002800a
push str.GetMailText_new_memory_fail
push edi
push 4
push esi
call fcn.10024fa4
add esp, 0x10
jmp 0x10028048
lea ecx, [ebx + 2]
push ecx
push 0
push eax
call fcn.10097040
and dword [ebp - 0x18], 0
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push str.GetMailText_after_read__bRead__d___dwRead__lu___text:_s
push edi
push 4
push esi
call fcn.10024fa4
add esp, 0x1c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cc680
cmp dword [ebp - 0x14], 0
je 0x10027f0e
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.100cc900
push dword [ebp - 0x14]
call fcn.100639cd
xor eax, eax
pop ecx
inc eax
call fcn.10097009
ret 8
Function at 0x1002c460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1019cd60
Function at 0x100365b8
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x101d06ed
call fcn.10096f9a
xor ebx, ebx
mov esi, 0x10269238
cmp dword [0x10269230], ebx
je 0x100365df
cmp dword [ebp + 8], ebx
je 0x10036703
push 0x208
push ebx
push esi
call fcn.10097040
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10097040
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x10036677
lea eax, [ebp - 0x218]
push eax
call fcn.10097626
pop ecx
cmp eax, ebx
jbe 0x10036643
lea eax, [ebp + eax*2 - 0x21a]
cmp word [eax], 0x5c
jne 0x10036643
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.10097976
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x218]
je 0x10036668
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x10036677
push 0x103
push eax
push esi
call fcn.100975dc
add esp, 0xc
push esi
lea ecx, [ebp - 0x21c]
call fcn.100cbee0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], ebx
je 0x100366d4
push eax
push esi
call fcn.10097591
push str.TEC_MailBackup
push esi
call fcn.10097563
add esp, 0x10
push esi
lea ecx, [ebp - 0x220]
call fcn.100cbee0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
call fcn.1003604c
mov dword [0x10269230], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.100cc680
push dword [0x10269230]
push esi
push str.CSDGlobalShare::GetBackupDirectory___s__bGet__lu__r_n
push str.SDMailGlobal
push 1
push 0x10265fbc
call fcn.10024fa4
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.100cc680
mov eax, dword [0x10269230]
neg eax
sbb eax, eax
and eax, esi
call fcn.1009701d
ret
Function at 0x1003847a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x1c
mov eax, 0x101d0b62
call fcn.10096f31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CSDHelperThread::CleanUnValidCache_r_n
mov ebx, str.OutlookCtrlX
push ebx
push 0xffffffffffffffff
mov edi, 0x10265fbc
push edi
mov esi, eax
call fcn.10024fa4
add esp, 0x10
cmp dword [ebp + 0xc], esi
jae 0x100384ba
sub esi, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
ja 0x10038580
mov esi, 0x102698d4
mov ecx, esi
call fcn.1003793e
test eax, eax
je 0x1003855a
push 1
push 0x102698b4
lea ecx, [ebp - 0x28]
call fcn.100da930
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.10037942
mov dword [ebp - 0x14], eax
jmp 0x1003854a
inc dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.10037945
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0xc]
ja 0x10038520
mov ecx, dword [ebp + 0xc]
sub ecx, eax
cmp ecx, dword [ebp + 8]
jbe 0x10038547
push dword [ebp - 0x18]
mov ecx, esi
call fcn.100380f9
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push str.CSDHelperThread::CleanUnValidCache_Remove:_d___d__d__d__r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10024fa4
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100384fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100da990
mov ecx, esi
call fcn.1003793e
test eax, eax
jne 0x10038580
mov ecx, 0x102698b0
call fcn.1005b17c
push str.CSDHelperThread::CleanUnValidCache_Clean_Cache_File__r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10024fa4
add esp, 0x10
call fcn.10097009
ret 8