joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0749
Capabilities:
Link many functions at runtime

Disassembly:
push 0x33c
mov eax, 0x543a7c
call fcn.00506b61
mov ebx, ecx
push 0x65
pop ecx
mov esi, str.3Mh7aVIHReBphIYoglT8JspzRzGkh7qEBGxGKpGENjLqF6N4GVs03G1fZerKPUViagpwrRsqL97HehOOmjz0uxiaSI1rwizQ0R3eKlbXBtxLBz1FMFDZmuAhVgqG6wKdTK48vKecS9LALaZEmuCLhAy6Gc55Y23gBri6Gj1YAeseOJEPpbGwrdkOJNdnmFYBwpJHdHC0TMbyYYknboWfiGdoO7r7zgQrPfW2Mml72G1nVU7bauTpSGVrfVjWo9KHZbDsKrgN5YUoFS9dEoj88l4s3a7OGpQMRZCcVjc3oAHzYJJaz9XNu87ZwQ14x1wFrbHurbVIpUhXPd5yu9WDOs7R7kFvdsk0etEPlk3Q2OGAadtBgDqfbCjBuj3MiKWI6vTQ1mlg05f7Xasis0aLXP
lea edi, [ebp - 0x324]
rep movsd dword es:[edi], dword [esi]
push 0x5e
pop ecx
xor eax, eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
movsb byte es:[edi], byte [esi]
mov esi, str.qx140sGeOS29srFMRLbVXDTSTiZpkCfOXqPYn0b7Q8O6kl0kORc83awjX7RgyoJtgbO9iIGZ1wd2K5ZRuj18x223mrKIUWejNZXGjQmg9i0onaNn3R2SqjUc6vFb8S2NNSD9RhDLIA9Eu6W5Y5pOV1mr03pMquQaAuGmuLAcaywzpDgYGvuIkfKIe08uXYtzdFN1GqYRkxbmNLiwXRLrihuVQRh1Am4Nw03Nyk96nmafVjZj8O5lAdQfxRFUlj02ppbzB3cC6wgfwLsiz4YItm26EpE8rZjdriIS7xzb0mvGI9qjUbgcg4dwKZfI5XUkBN6xtnarQwklMIy27023FpVXUpSFPtGdm233P71T4QC8tgi4FdeuvblVrp
lea edi, [ebp - 0x18c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x33c]
lea eax, [ebp - 0x324]
push eax
call fcn.00405820
lea eax, [ebp - 0x33c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x348]
call fcn.00407e30
xor edi, edi
mov byte [ebp - 4], 0
push 0
inc edi
lea ecx, [ebp - 0x33c]
push edi
call fcn.0046d37e
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x33c]
call fcn.00405820
lea eax, [ebp - 0x33c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x348]
call fcn.00407e30
push 0
push edi
lea ecx, [ebp - 0x33c]
call fcn.0046d37e
push 0x5dbf7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x4c0888
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x61c1a4
push eax
call esi
push str.IsWow64Process
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
test eax, eax
je 0x4c0888
push str.Wow64RevertWow64FsRedirection
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
jmp 0x4c088a
xor edi, edi
lea ecx, [ebp - 0x348]
call fcn.0046d3d0
mov eax, edi
call fcn.00506b0b
ret
Function at 0x4c0987
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x224
mov eax, 0x543b0e
call fcn.00506b61
push 0x41
pop ecx
mov esi, str.bCSZDetUm0haFm1Z7IOVoodixVHwAOzL3t2lXHLuLUcMeY7wpiGDXIr6STxhy0em81ScZUziWsw0nVRbv0SrbuDbDTCu0jEi0EYQTHWbCSeZP5ZHSdnXBBOlv08PZHtGDG3Bin1aqB6kfa4mij33FOuyUol5jsN9KeWp1nNvKnbFZG7bmfyNzI65i1E9lmV6dVZsGq1Yxa27aReS9mCFjLbLGEfFMCGRLHDFzQuTurZHDCU6XYuAykr5wqgxGwrlkjhWm4
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x204]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x3a
pop ecx
mov dword [ebp - 0x230], eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
movsb byte es:[edi], byte [esi]
mov esi, str.5GbHtjTak5610mDphehgmiMz88Ww9xydO9v7Ck2Zd8ZBmxWOg43TeFMoTUmV1glL3Ozk3lQSHyiraJqRRSa6ZN9EuD724B1p74R5PHnhiVJak7rSSQv3w3XhpM4sOye0cTAu8J7nmGQzgvXckLjmLaIwg8dIBjaCYWSRc6Uxy5Vc2YPUi6OCDpcVpbicHpTwDUoLJ6aLHf6JXBYJOJwQDv5WRU7JLASkBeNsfcAzj
lea edi, [ebp - 0xfc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x204]
push eax
call fcn.00405820
xor eax, eax
lea ecx, [ebp - 0x230]
inc eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x21c]
push eax
call fcn.00407e30
xor ecx, ecx
mov byte [ebp - 4], 0
inc ecx
push 0
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0046d37e
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405820
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.0046d37e
push ebx
call fcn.004f3a59
mov dword [ebp - 0x224], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046831d
mov esi, eax
push ebx
push esi
call fcn.004f3a37
mov ebx, dword [ebp - 0x224]
add esp, 0x10
xor edi, edi
test ebx, ebx
js 0x4c0acb
push 0x5c
pop eax
cmp word [esi + edi*2], ax
jne 0x4c0abd
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c0ab6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c0ac4
push 0x5c
pop eax
mov word [esi + edi*2], ax
inc edi
cmp edi, ebx
jle 0x4c0a93
jmp 0x4c0acb
mov byte [ebp - 0x220], 0
push esi
call fcn.00468326
pop ecx
lea ecx, [ebp - 0x230]
call fcn.0046d3d0
mov ecx, dword [ebp - 0x220]
movzx eax, cl
call fcn.00506b0b
ret
Function at 0x4c15c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.004682f0
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [ebp + 0x10], 0
push edi
mov edi, dword [ebp + 8]
je 0x4c17b1
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], esi
push esi
push eax
mov dword [ebp - 0x2008], esi
call fcn.004e37a0
push ebx
push edi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.00407eb0
push str.EXPLORER.EXE
call fcn.004c1ad0
add esp, 0x20
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4c177c
lea eax, [ebp - 0x2010]
mov edi, 0xf01ff
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c177c
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push esi
push edi
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c177c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4c16d0
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c16c9
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4c177c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2068]
push esi
push eax
call fcn.004e37a0
push 0x10
lea eax, [ebp - 0x2024]
push esi
push eax
call fcn.004e37a0
add esp, 0x18
mov dword [ebp - 0x2068], edi
mov dword [ebp - 0x2060], str.WinSta0Default
mov dword [ebp - 0x203c], 1
mov dword [ebp - 0x200c], esi
push 5
pop eax
push esi
push dword [ebp - 0x2008]
mov word [ebp - 0x2038], ax
lea eax, [ebp - 0x200c]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4c177c
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2068]
push eax
push esi
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4c177c
cmp dword [ebp - 0x200c], esi
je 0x4c177c
push dword [ebp - 0x200c]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4c1794
cmp eax, 0xffffffff
je 0x4c1794
push eax
call edi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x4c17a6
cmp eax, 0xffffffff
je 0x4c17a6
push eax
call edi
test ebx, ebx
jne 0x4c17ad
push esi
call edi
xor al, al
jmp 0x4c17c2
push esi
push esi
push ebx
push edi
call fcn.004c1063
add esp, 0x10
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4c3858
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc18], ebx
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
jmp 0x4c3952
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4c3944
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc1c], 0x104
push eax
call fcn.004e37a0
add esp, 0xc
mov dword [ebp - 0xc20], 1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c3938
push dword [ebp - 0xc24]
lea eax, [ebp - 0x414]
push eax
call fcn.004e2b55
pop ecx
pop ecx
test eax, eax
jne 0x4c3980
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4c38b2
push 0x63d8a0
mov ecx, esi
call fcn.004024f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004e37a0
add esp, 0xc
mov dword [ebp - 0xc1c], 0x400
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.UninstallString
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc14]
push eax
jmp 0x4c3966
Function at 0x4c5083
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x54462a
call fcn.00506b61
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x63d8a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00402650
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004dadcd
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c51f7
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c5121
push 0x63d8a0
mov ecx, esi
call fcn.004024f0
jmp 0x4c5202
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0046831d
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4c5160
push 0x63d8a0
mov ecx, esi
call fcn.004024f0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402590
push ebx
jmp 0x4c520e
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.004db799
push ebx
call fcn.00468326
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004dafe7
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004cd1cb
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0046d37e
cmp dword [ebp - 0x30], ebx
jbe 0x4c51ec
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004028b0
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402590
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404660
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402590
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402590
mov eax, esi
call fcn.00506b0b
ret 0x1c
Function at 0x4c52ee
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x544674
call fcn.00506b61
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.004e37a0
lea eax, [edi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4c5348
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004024f0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x4c538e
mov eax, dword [esi]
jmp 0x4c5390
mov eax, esi
push ebx
push eax
call fcn.004f39f7
pop ecx
pop ecx
test eax, eax
jne 0x4c53db
cmp byte [edi], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x4c53bf
call fcn.004c5222
jmp 0x4c53c4
call fcn.004c52bd
push eax
mov ecx, esi
call fcn.00404010
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00402590
mov eax, esi
call fcn.00506b0b
ret 0x10
Function at 0x4c6923
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x54527c
call fcn.00506b61
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4c6a23
cmp byte [ebx + 0x3d], 0
je 0x4c6a23
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4c695d
xor al, al
jmp 0x4c6a25
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004c6fad
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4c69bb
sub eax, 1
je 0x4c69bf
dec eax
sub eax, 1
je 0x4c6a11
xor bl, bl
jmp 0x4c6a13
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4c69f7
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004eb7d1
add esp, 0x10
cmp esi, eax
jne 0x4c69b7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4c6a11
test esi, esi
jne 0x4c6981
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004c6f4c
jmp 0x4c697b
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0046d37e
mov al, bl
jmp 0x4c6a25
mov al, 1
call fcn.00506b0b
ret
Function at 0x4c7518
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x544a19
call fcn.00506b61
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x4c7544
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4c76a5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c7572
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4c7572
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4c76a5
cmp dword [esi + 0x4c], 0
je 0x4c76a3
mov ecx, esi
call fcn.004c6eb9
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4c75a2
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004c3dfa
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4c76a3
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.004c6fad
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4c7697
cmp eax, 1
jg 0x4c767c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x4c764d
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004eb7d1
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x4c7697
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x4c7677
test edx, edx
jne 0x4c75cd
cmp dword [ebp - 0x18], 0x20
jae 0x4c7697
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004c6f4c
jmp 0x4c75ca
mov ebx, dword [ebp + 8]
jmp 0x4c7697
cmp eax, 3
jne 0x4c7697
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004c3dfa
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0046d37e
mov eax, ebx
call fcn.00506b0b
ret 4
Function at 0x4c822d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
xor esi, esi
test edi, edi
jle 0x4c8360
mov ebx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], eax
cmp eax, 2
jl 0x4c826a
movzx eax, byte [esi + ebx]
cmp eax, 0x2f72
jne 0x4c826a
movzx eax, byte [esi + ebx + 1]
cmp eax, 0x2f6e
je 0x4c82a2
mov al, byte [esi + ebx]
movzx edi, al
mov dword [ebp - 8], edi
cmp edi, 0x2f6e
mov edi, dword [ebp + 0xc]
je 0x4c82a2
cmp al, 0x3d
jne 0x4c8288
inc edx
cmp edx, 2
jg 0x4c82cc
cmp al, 0x7f
ja 0x4c82cc
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x624a60]
cmp al, 0x7f
je 0x4c82cc
cmp al, 0x40
jae 0x4c82a1
test edx, edx
jne 0x4c82cc
inc ecx
mov eax, dword [ebp - 4]
inc esi
dec eax
mov dword [ebp - 4], eax
cmp esi, edi
jl 0x4c824e
test ecx, ecx
je 0x4c8360
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x4c82d4
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x4c82ce
push 0xffffffffffffffee
pop eax
jmp 0x4c8362
mov edx, dword [ebp + 0x10]
xor ebx, ebx
and dword [ebp - 8], ebx
push 3
pop ecx
mov dword [ebp + 0xc], ecx
test esi, esi
jle 0x4c835b
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
movzx ecx, byte [eax]
cmp ecx, 0x2f72
je 0x4c834f
cmp ecx, 0x2f6e
je 0x4c834f
mov cl, byte [ecx + 0x624a60]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub dword [ebp + 0xc], eax
movzx eax, cl
and eax, 0x3f
or ebx, eax
inc edi
cmp edi, 4
jne 0x4c834c
mov ecx, dword [ebp + 0xc]
xor edi, edi
test ecx, ecx
jle 0x4c8332
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp ecx, 1
jle 0x4c833f
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
cmp ecx, 2
jle 0x4c834f
mov byte [edx], bl
inc edx
jmp 0x4c834f
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x4c82ec
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc652
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e37a0
lea eax, [ebp - 0x20c]
push str.C:loghost.log
push eax
call fcn.004f3a37
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4cc6ad
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.004e37a0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f3bbf
push 0x3e8
lea eax, [ebp - 0xc0c]
push edi
push eax
call fcn.004e37a0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sxzq.log
push eax
call fcn.004cc616
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e37a0
add esp, 0x48
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004e2ab4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x4cc882
lea eax, [ebp - 0x20c]
push eax
call fcn.004f3a59
lea eax, [ebp + eax*2 - 0x20a]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004f3bbf
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.004cc616
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc0c]
push 0x1f3
push 0x1f4
push eax
call fcn.00404e80
xor eax, eax
add esp, 0x38
mov word [ebp - 0x826], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x6250a0
push eax
cmovne edi, ebx
call fcn.004eaa0b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4cc882
test edi, edi
jne 0x4cc828
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xfeff
push ebx
push eax
call fcn.004eb7d1
add esp, 0x10
lea eax, [ebp - 0xc0c]
push eax
call fcn.004f3a59
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc0c]
push ebx
push eax
call fcn.004eb7d1
push esi
push 2
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xc10], 0xd
push ebx
push eax
call fcn.004eb7d1
push esi
push 2
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xc10], 0xa
push ebx
push eax
call fcn.004eb7d1
push esi
call fcn.004ea7de
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret