joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464796
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x5c4576
call fcn.004b9048
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x464813
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x464813
call fcn.00463b1a
mov esi, eax
jmp 0x4648ea
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x464836
call fcn.00463b1a
jmp 0x4648dd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x46482c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x464866
mov esi, 0x8007000e
jmp 0x4648df
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00463939
jmp 0x46488c
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x46485f
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x46482c
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0046465b
mov esi, eax
test edi, edi
je 0x4648ea
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x464903
lea ecx, [ebp - 0x418]
call fcn.00463ef9
mov eax, esi
call fcn.004b8f95
ret 0x10
Function at 0x466bdd
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x64
push 2
push esi
mov ecx, dword [esi + 0x52c]
call dword [0x62cdd4]
lea eax, [esi + 0x6a4]
push eax
xor eax, eax
push eax
push esi
push 0x46635e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6a8], eax
pop esi
ret

Function at 0x467408
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x36c]
push eax
xor eax, eax
push eax
push esi
push 0x4676ca
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x368], eax
pop esi
ret

Function at 0x468198
Capabilities:
Hide graphical window

Disassembly:
push esi
push 1
push 1
push 1
mov eax, 0x7530
mov esi, ecx
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0046742b
push 1
mov ecx, esi
call dword [0x62cd60]
pop esi
ret

Function at 0x4681f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.005991a0
push 0x5ca8b8
lea eax, [ebp - 0x20c]
push str._s__
push eax
call fcn.0044b4c4
add esp, 0x18
mov eax, 0x7530
mov ecx, esi
push edi
push edi
push edi
push eax
push eax
push 0x108
push 0xce0000
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [0x62cdcc]
lea eax, [esi + 0x36c]
push eax
push edi
push esi
push 0x4682f3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x368], eax
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret

Function at 0x468453
Capabilities:
Check if file exists

Disassembly:
push 0xb8
mov eax, 0x5c4b52
call fcn.004b8fda
mov edi, ecx
mov ecx, dword [edi + 0x534]
xor esi, esi
inc esi
test ecx, ecx
je 0x46847e
call dword [0x62cda0]
xor ecx, ecx
test al, al
cmove esi, ecx
mov ecx, dword [edi + 0x540]
xor ebx, ebx
test ecx, ecx
je 0x46851a
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call dword [0x62cde8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420790
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call dword [0x62cd50]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0059c41c
pop ecx
cmp eax, 3
jg 0x4684d9
mov esi, ebx
jmp 0x46850b
push 3
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004229a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
lea ecx, [ebp - 0x40]
push ebx
sbb eax, eax
push 1
and esi, eax
call fcn.004208a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004208a0
mov ecx, dword [edi + 0x530]
test ecx, ecx
je 0x468535
mov eax, dword [ecx]
test esi, esi
je 0x46852e
push 1
jmp 0x46852f
push ebx
call dword [eax + 0xe4]
call fcn.004b8f84
ret
Function at 0x4685f5
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
xor ebx, ebx
mov word [ebp - 0xc], ax
push 0x208
lea eax, [ebp - 0x214]
mov dword [ebp - 0xa], ebx
push ebx
push eax
mov edi, ecx
mov word [ebp - 6], bx
call fcn.005991a0
push esi
call fcn.0059c41c
add esp, 0x10
cmp eax, 3
jl 0x46864e
push 3
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0059c437
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x218]
shrd ecx, edx, 0x14
shr edx, 0x14
call fcn.004b9660
cvtsd2ss xmm0, xmm0
cmp dword [edi + 0x548], ebx
je 0x4686ec
cvttss2si eax, xmm0
cmp eax, 0x400
jle 0x4686c5
mulss xmm0, dword [0x5cdb8c]
lea eax, [ebp - 0x214]
push ecx
push ecx
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push 0x5cdb48
push eax
call fcn.0044b4c4
add esp, 0x10
jmp 0x4686da
push eax
lea eax, [ebp - 0x214]
push str._dMB
push eax
call fcn.0044b4c4
add esp, 0xc
mov ecx, dword [edi + 0x548]
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret 4
Function at 0x468d35
Capabilities:
Check if file exists

Disassembly:
push 0xbc
mov eax, 0x5c4c62
call fcn.004b8fda
mov ebx, ecx
mov ecx, dword [ebx + 0x540]
test ecx, ecx
je 0x468e82
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
call dword [eax + 0x28]
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call dword [0x62cde8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420790
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call dword [0x62cd50]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0059c41c
pop ecx
cmp eax, 3
jg 0x468da1
mov esi, edi
jmp 0x468dd4
push 3
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004229a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
lea ecx, [ebp - 0x40]
push edi
sbb esi, esi
push 1
and esi, 1
call fcn.004208a0
mov ecx, dword [ebx + 0x534]
test ecx, ecx
je 0x468deb
call dword [0x62cda0]
xor ecx, ecx
test al, al
cmove esi, ecx
mov ecx, dword [ebx + 0x530]
test esi, esi
jne 0x468e04
test ecx, ecx
je 0x468e77
mov eax, dword [ecx]
push edi
call dword [eax + 0xe4]
jmp 0x468e77
test ecx, ecx
je 0x468e12
mov eax, dword [ecx]
push 1
call dword [eax + 0xe4]
mov eax, dword [ebx + 0x524]
mov ecx, edi
mov esi, dword [ebx + 0x520]
mov edi, eax
sub edi, esi
xor edx, edx
add edi, 3
shr edi, 2
cmp esi, eax
cmova edi, edx
test edi, edi
jmp 0x468e5a
mov edx, dword [esi]
test edx, edx
je 0x468e54
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc8]
add esi, 4
inc ecx
cmp ecx, edi
mov dword [ebp - 0xc8], ecx
jne 0x468e35
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004685f5
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004208a0
call fcn.004b8f84
ret
Function at 0x469bcb
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x5c4f15
call fcn.004b8fda
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov edi, 0x625cd8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [0x625cd8], ax
jne 0x469c0a
mov eax, ebx
jmp 0x469c11
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00420960
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00448f6a
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 0x469d54
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 SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x469c7e
push 0x625cd8
mov ecx, esi
call fcn.00420790
jmp 0x469d5f
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.004b8b32
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x469cbd
push 0x625cd8
mov ecx, esi
call fcn.00420790
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004208a0
push ebx
jmp 0x469d6b
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.005991a0
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.00449925
push ebx
call fcn.004b8b3b
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00449173
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0043e1fb
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00420a60
cmp dword [ebp - 0x30], ebx
jbe 0x469d49
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420e60
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004208a0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00423070
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004208a0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004208a0
mov eax, esi
call fcn.004b8f84
ret 0x1c
Function at 0x469e4b
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x5c536c
call fcn.004b8fda
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.005991a0
lea eax, [edi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x469ea5
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.00420790
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x469eeb
mov eax, dword [esi]
jmp 0x469eed
mov eax, esi
push ebx
push eax
call fcn.0059c3ba
pop ecx
pop ecx
test eax, eax
jne 0x469f38
cmp byte [edi], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x469f1c
call fcn.00469d7f
jmp 0x469f21
call fcn.00469e1a
push eax
mov ecx, esi
call fcn.00422a50
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.004208a0
mov eax, esi
call fcn.004b8f84
ret 0x10
Function at 0x46a756
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5c13a4
call fcn.004b8fda
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x46a856
cmp byte [ebx + 0x3d], 0
je 0x46a856
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x46a790
xor al, al
jmp 0x46a858
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.004479a4
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 0x46a7ee
sub eax, 1
je 0x46a7f2
dec eax
sub eax, 1
je 0x46a844
xor bl, bl
jmp 0x46a846
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 0x46a82a
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005a6ba4
add esp, 0x10
cmp esi, eax
jne 0x46a7ea
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x46a844
test esi, esi
jne 0x46a7b4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0043ea79
jmp 0x46a7ae
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00420a60
mov al, bl
jmp 0x46a858
mov al, 1
call fcn.004b8f84
ret

Function at 0x46b5b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x46b632
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x46b631
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x46fd6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x46fd73
mov dword [edx*4 + 0x6640c0], ecx
inc edx
cmp edx, 0x100
jb 0x46fd6e
mov esi, 0x800
jmp 0x46fdbc
mov ecx, dword [edx*4 + 0x663cc0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x6640c0]
mov dword [edx*4 + 0x6640c0], ecx
inc edx
cmp edx, esi
jb 0x46fda0
mov dword [0x6660c0], 0x46b9c9
call fcn.0047017e
mov ecx, dword [0x6660c0]
test eax, eax
mov edx, 0x46ba62
cmove ecx, edx
mov dword [0x6660c0], ecx
pop esi
ret

Function at 0x470235
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x470247
xor eax, eax
jmp 0x47026e
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.005a9e10
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x470265
xor eax, eax
jmp 0x47026d
push dword [ebx]
call fcn.005a9c19
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4702c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x4702d3
xor eax, eax
jmp 0x4702fa
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.005a6ba4
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x4702f1
xor eax, eax
jmp 0x4702f9
push dword [ebx]
call fcn.005a9c19
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x470e46
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x470e67
xor eax, eax
jmp 0x470fbc
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x470e93
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x470e90
inc edx
cmp edx, ecx
jb 0x470e83
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x470fa0
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x470ecb
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x470f08
cmp al, 0xff
je 0x470f08
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x470f99
dec ecx
shl esi, cl
and esi, 7
je 0x470eab
movzx eax, byte [esi + 0x5ce1a4]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x5ce19c], 0
mov al, byte [ecx + 4]
je 0x470ef2
test al, al
je 0x470ef2
cmp al, 0xff
jne 0x470eab
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x470e7a
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x470f35
add ebx, edi
add ebx, edx
jmp 0x470f39
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x470f6f
movzx eax, byte [esi + 0x5ce1a4]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x470f5e
cmp al, 0xff
jne 0x470f6f
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x470f29
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x470efd
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471d7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x471e13
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x471dc3
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.005986a0
push esi
push esi
push dword [ebp - 0x14]
call fcn.00471064
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x471dec
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.005986a0
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x471dba
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
Function at 0x4726fc
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x5c526b
call fcn.004b8fa6
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0046b532
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.0046b566
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x472735
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4727a5
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push str.SmartCloud
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x472772
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4727a5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.0046b545
call fcn.004b8f6f
ret 8

Function at 0x472840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00474d54
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c41c
pop ecx
test eax, eax
je 0x4728f5
push ebx
mov ebx, 0x626e18
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push str.SmartCloudIME
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0059c389
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4728ce
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b037
pop ecx
cmp word [ebp - 0x20c], si
je 0x4728e6
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c41c
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00420960
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret 4
Function at 0x472907
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00474d54
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c41c
pop ecx
test eax, eax
je 0x4729bc
push ebx
mov ebx, 0x626e18
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push str.SmartCloudIME.users
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0059c389
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x472995
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b037
pop ecx
cmp word [ebp - 0x20c], si
je 0x4729ad
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c41c
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00420960
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret 4