joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2d42
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fdb40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004bc200
mov dword [ebp - 0x14], eax
cmp dword [0x5c651c], esi
jne 0x4c2e35
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c2dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c2f15
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c2f15
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c2f15
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5c651c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5c6520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c6524], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c652c], eax
test eax, eax
je 0x4c2e32
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c6528], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c2e5a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c2e4d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c2e6f
push 4
pop eax
jmp 0x4c2f17
cmp dword [ebp - 0x14], esi
je 0x4c2e6f
push dword [0x5c651c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c2e54
mov eax, dword [0x5c6528]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c2ecd
cmp dword [0x5c652c], edi
je 0x4c2ecd
push eax
call ebx
push dword [0x5c652c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c2ecd
test eax, eax
je 0x4c2ecd
call ecx
test eax, eax
je 0x4c2ec2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c2ec2
test byte [ebp - 8], 1
jne 0x4c2ecd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c2efd
mov eax, dword [0x5c6520]
cmp eax, edi
je 0x4c2efa
push eax
call ebx
test eax, eax
je 0x4c2efa
call eax
mov esi, eax
test esi, esi
je 0x4c2efa
mov eax, dword [0x5c6524]
cmp eax, edi
je 0x4c2efa
push eax
call ebx
test eax, eax
je 0x4c2efa
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c651c]
call ebx
test eax, eax
je 0x4c2f15
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c2f17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0e84
mov esp, ebp
pop ebp
ret
Function at 0x10001030
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
lea ecx, [esp + 4]
push esi
push eax
push 0x100175d0
push ecx
call fcn.100065c0
mov esi, dword [esp + 0x120]
add esp, 0xc
test esi, esi
jne 0x10001070
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
push 0x20106
push esi
push eax
push 0x80000002
jmp 0x10001086
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x20106
push 0
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100010ea
test esi, esi
push 0
jne 0x100010b7
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 0
push 0x20106
push 0
push str.REG_SZ
push 0
push ecx
push 0x80000002
jmp 0x100010d6
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0
push 0x20106
push 0
push str.REG_SZ
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x100010ea
xor eax, eax
pop esi
add esp, 0x108
ret
mov edx, dword [esp + 0x11c]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0xa
jne 0x10001115
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx - 1], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
shl ecx, 1
push ecx
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x108
ret

Function at 0x10001260
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
call fcn.100066c1
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
xor edi, edi
push eax
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push str.SYSTEMCurrentControlSetServicesVIA_HD_Audio_Codec_DefaultListOfCustomIDs
push 0x80000002
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, eax
mov esi, str.11066011
push esi
push ebx
call fcn.10006612
add esp, 8
test eax, eax
je 0x100012d9
add esi, 0x104
inc edi
cmp esi, 0x10017540
jl 0x100012a6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
test ebp, ebp
jne 0x10001303
mov edx, edi
mov ecx, dword [esp + 0x18]
shl edx, 6
add edx, edi
push 4
push 0x10017540
push 4
lea eax, [edx*4 + str.11066011]
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100012c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10003cd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x128]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x334]
mov dword [esp + 0x10], ebx
push eax
push str.RecordingQuality
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.10004070
add esp, 8
cmp eax, 1
jne 0x10003ec0
mov edi, str.SoftwareMicrosoftMultimediaAudioWaveFormats
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10003d82
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x320
ret
push ebx
push ebx
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp eax, ebx
jbe 0x10003eb5
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x138]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
je 0x10003dde
cmp eax, ebx
jne 0x10003ea8
lea edx, [esp + 0x128]
push 0x10017cf8
push edx
call fcn.10006800
add esp, 8
test eax, eax
je 0x10003ea8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x28], 0x104
call fcn.10005860
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x22c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003d74
lea eax, [esp + 0x22c]
push eax
call fcn.10006ab3
mov edx, dword [esp + 0x18]
add esp, 4
shl eax, 1
lea ecx, [esp + 0x22c]
push eax
push ecx
push 1
push ebx
push str.DefaultFormat
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10003d74
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jb 0x10003daa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x320
ret
Function at 0x10004070
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
mov ebp, dword [esp + 0x468]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.0000
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x11c], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._viaudio.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x10018b00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x320]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x10018b00
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10004159
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x450
ret
mov edi, str.Install
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x10018e0c]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jne 0x10004196
lea edi, [esp + 0x118]
lea edx, [esp + 0x14]
jmp 0x100041a6
cmp eax, 2
je 0x100041a0
cmp eax, 3
jne 0x100041cb
lea edx, [esp + 0x14]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x464]
push 0x10018b00
lea eax, [esp + 0x220]
push 0x104
push eax
push 0x10018e14
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x21c]
push eax
call fcn.10006c66
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
push 0x10018b00
mov dword [esp + 0x1c], 0x104
call fcn.10005860
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
Function at 0x10005650
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10005668
mov eax, 0xe601f000
pop esi
ret
test al, 1
je 0x10005676
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10005685
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
pop esi
or eax, 0xe6010000
ret
Function at 0x100056a0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x144
push edi
mov edi, dword [esp + 0x14c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100056c7
mov eax, 0xe602f000
pop edi
add esp, 0x144
ret
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x105
push 0x40
call esi
push 0x105
push 0x40
mov ebx, eax
call esi
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x10005834
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000582d
lea edx, [esp + 0x40]
push 0x10017e30
push edx
call fcn.10006612
add esp, 8
test eax, eax
je 0x10005819
mov edi, dword [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100178dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x10005800
push ebx
call fcn.100056a0
add esp, 4
jmp 0x10005815
test al, 1
je 0x1000580e
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000575b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push ebp
call esi
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x144
ret
Function at 0x100059f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esp + 0x214]
sub eax, 0x24
je 0x10005a83
dec eax
je 0x10005ab7
dec eax
je 0x10005a55
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
lea ecx, [esp + 8]
push 2
lea edx, [esp + 0x110]
push ecx
push edx
call fcn.10006880
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str._sProgram_Files
push ecx
call fcn.100065c0
add esp, 0x18
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x208
ret
mov eax, dword [esp + 0x218]
lea ecx, [esp + 8]
push eax
push ecx
push str._sSystem_s
push eax
call fcn.100065c0
add esp, 0x10
mov eax, 1
pop edi
pop esi
add esp, 0x208
ret
Function at 0x100062c0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x418
test eax, eax
push esi
push edi
je 0x10006337
push 0
push eax
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, dword [esp + 0x428]
test edi, edi
je 0x10006363
cmp byte [edi], 0x5c
je 0x1000630a
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call fcn.100065c0
add esp, 0x10
jmp 0x10006363
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10006363
mov edi, dword [esp + 0x428]
test edi, edi
je 0x10006363
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.10005ae0
add esp, 8
mov edi, eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 8]
push edx
push 0x1000d708
push 1
push 0
push 0x1000d6f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x100064a6
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x1000d718
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x10006486
mov eax, dword [esp + 0x430]
mov esi, dword [esp + 0x42c]
push eax
push esi
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call fcn.100065c0
mov eax, dword [esp + 0x18]
add esp, 0x10
lea ecx, [esp + 0x114]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
test eax, eax
jge 0x100063f8
mov edi, 0xe607f022
mov eax, dword [esp + 8]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
test eax, eax
jge 0x1000640c
mov edi, 0xe607f022
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x434]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jge 0x10006427
mov edi, 0xe607f022
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x18]
push str._s_s.lnk
push eax
call fcn.100065c0
add esp, 0x10
lea ecx, [esp + 0x218]
lea edx, [esp + 0x10]
push 0x104
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x218]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x1000647a
mov edi, 0xe607f023
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000648b
mov edi, 0xe607f021
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
add esp, 0x418
ret
pop edi
mov eax, 0xe607f020
pop esi
add esp, 0x418
ret
Function at 0x100064e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x110]
push edi
test esi, esi
je 0x10006579
push 0
lea eax, [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1000651e
lea eax, [esp + 0xc]
push eax
push esi
call fcn.100059f0
add esp, 8
test eax, eax
je 0x1000656a
mov edi, dword [esp + 0x118]
cmp byte [edi], 0x5c
je 0x10006544
lea ecx, [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
call fcn.100065c0
add esp, 0x10
jmp 0x100065a1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x1000659c
pop edi
pop esi
mov eax, 0xe605f005
pop ebx
add esp, 0x104
ret
mov edi, dword [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
mov eax, edx
pop ebx
add esp, 0x104
ret

Function at 0x10009b94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10018780
cmp edx, dword [eax]
je 0x10009bb6
add eax, 8
inc ecx
cmp eax, 0x10018810
jl 0x10009ba7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10018780]
jne 0x10009ce4
mov eax, dword [0x10018e28]
cmp eax, 1
je 0x10009cbe
test eax, eax
jne 0x10009be7
cmp dword [0x10018e2c], 1
je 0x10009cbe
cmp edx, 0xfc
je 0x10009ce4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009c1e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10008080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10008640
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10009c61
lea eax, [ebp - 0x1a4]
push eax
call fcn.10008640
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000d52c
push edi
call fcn.10008520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10008080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10008090
lea eax, [ebp - 0xa0]
push 0x1000d50c
push eax
call fcn.10008090
push dword [esi + 0x10018784]
lea eax, [ebp - 0xa0]
push eax
call fcn.10008090
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000bc0e
add esp, 0x2c
pop edi
jmp 0x10009ce4
lea eax, [ebp + 8]
lea esi, [esi + 0x10018784]
push 0
push eax
push dword [esi]
call fcn.10008640
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret