joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40661d
Capabilities:
Get token membership
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x41a59e
call fcn.004198de
mov ebx, ecx
mov eax, 0xfeff
xor edi, edi
mov word [ebp - 0x74], ax
mov eax, vtable.ATL::CAccessToken.0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0x422644
push eax
call fcn.00406342
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.004064c3
lea eax, [ebp - 0x78]
push eax
push 2
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4066d2
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x41b2b0]
lea ecx, [ebp - 0x88]
call esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
jmp 0x4066d8
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x40672b
cmp dword [ebp - 0x78], 0
je 0x40672b
push edi
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40678c
push edi
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x406734
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40678c
push edi
lea eax, [ebp - 0x8c]
push eax
push 2
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40678c
push edi
lea eax, [ebp - 0x8c]
mov ebx, str._SESSION_
push eax
push ebx
call fcn.0040b61e
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406796
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40679d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040640d
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], esi
call fcn.00406550
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.00406550
mov eax, edi
call fcn.00419888
ret
Function at 0x4067d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4067f9
push 3
pop eax
jmp 0x406924
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406820
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040661d
mov ebx, eax
test ebx, ebx
jne 0x406924
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x406902
cmp dword [ebp - 4], 0
je 0x406902
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004069d8
test eax, eax
jne 0x406902
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x406902
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00409364
pop ecx
pop ecx
test eax, eax
je 0x406887
push 2
push dword [ebp - 4]
call fcn.00407de1
pop ecx
pop ecx
xor eax, eax
jmp 0x406924
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
xor ecx, ecx
push 2
pop edx
lea esi, [eax*2 + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040801f
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.00403a7c
push 0
mov edx, esi
mov ecx, edi
call fcn.00403aa0
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.00403aa0
mov eax, dword [ebp - 8]
add eax, 4
push eax
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push dword [ebp - 4]
mov esi, eax
call fcn.00407de1
push edi
call fcn.00407990
add esp, 0xc
jmp 0x406916
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x406922
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4069d8
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4069f3
push 3
pop eax
jmp 0x406a9b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406a03
push 2
jmp 0x4069ed
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x406a96
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040801f
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.004095e0
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x406a60
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x406a72
push dword [edi]
call fcn.00407990
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x406a8f
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x406a10
cmp dword [edi], 0
je 0x406a96
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406a96
xor eax, eax
jmp 0x406a99
mov eax, 0xe8
jmp 0x406a99
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x406b35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
push 0x4214e0
inc ebx
mov dword [ebp - 0x14], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x427944], bl
mov dword [0x427948], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406bdb
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x422654
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406ba0
cmp dword [ebp - 0xc], ebx
je 0x406bc7
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.iLogLevelDev
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406bd1
cmp dword [ebp - 0x14], ebx
jne 0x406bd1
mov dword [0x427948], 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4070c3
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407108
push esi
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x407107
push 0xc00
mov ecx, esi
call dword [0x41b2b0]
call esi
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004095e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x407145
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x421398
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040797f
leave
ret

Function at 0x4071dd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004095e0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004095e0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42281c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40727d
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040cf72
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407297
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040797f
leave
ret

Function at 0x407636
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004095e0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072a6
lea eax, [ebp - 0x20c]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x4076a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4076a0
push ecx
push eax
mov edx, str.Could_not_open_file_mapping_object
mov ecx, str.ReleaseSharedMemory__
call fcn.00407336
pop ecx
pop ecx
xor eax, eax
jmp 0x4076ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040797f
leave
ret
Function at 0x4076ba
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095e0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072a6
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x40774c
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407816
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077a0
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407745
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077bc
call fcn.0040d2f6
mov dword [eax], 0x16
call fcn.0040d22a
jmp 0x4077cb
push 0x1034
push edi
push eax
call fcn.00408df0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b07
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040797f
leave
ret
Function at 0x404924
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44f580], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x404938
call fcn.004037b1
mov ecx, esi
call fcn.00404901
xor eax, eax
mov edx, dword [eax + 0x42a4b0]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x404941
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x405620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x40564d
test cl, 7
je 0x40564d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
jmp 0x40562e
cmp esi, 8
jb 0x4056f0
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4319a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4315a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x431da0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4325a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4329a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x432da0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4321a0]
movzx eax, al
xor edi, dword [eax*4 + 0x4331a0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40565f
pop ebx
jmp 0x4056f0
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
test esi, esi
ja 0x4056dc
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4059b1
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x4059fb
lea eax, [ebp - 0x1d0]
push eax
call fcn.004105f1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004108f3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041096c
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405a1b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a0a
cmp esi, ebx
jae 0x405a33
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a790
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.004105f1
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004108f3
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.004108f3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0041096c
lea eax, [ebp - 0x160]
push eax
call fcn.004105f1
xor ecx, ecx
test esi, esi
jbe 0x405a9d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a8c
pop edi
cmp esi, ebx
jae 0x405ab6
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a790
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004108f3
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004108f3
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.0041096c
pop esi
pop ebx
leave
ret 0x14
Function at 0x405aee
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405b07
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041c200
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059b1
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041c200
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405bbe
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059b1
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041c200
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405bac
dec dword [ebp + 0x6c]
jne 0x405b85
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041c200
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405b7a
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040cf3c
push esi
lea eax, [ebp]
push eax
call fcn.0040cf3c
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040cf3c
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040cf3c
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405c09
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0x1c], 0x18
push edi
mov edi, ecx
mov dword [ebp - 8], edi
ja 0x405dc3
and dword [ebp - 4], 0
push ebx
push esi
lea ebx, [edi + 0x4b4]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x102]
cmp dword [esi + 0x32], eax
jne 0x405c60
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040d017
test al, al
je 0x405c60
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041ab74
add esp, 0xc
test eax, eax
je 0x405dc8
inc dword [ebp - 4]
add ebx, 0x178
cmp dword [ebp - 4], 4
jb 0x405c2e
mov esi, 0x200
push esi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0x10]
call fcn.00411b63
mov ecx, dword [ebp + 0x1c]
xor eax, eax
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
call fcn.0041a9d0
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405aee
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0040cf3c
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0xa94]
mov ecx, dword [eax]
mov edx, ecx
and edx, 3
imul edx, edx, 0x178
lea ebx, [edx + edi + 0x4b4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
push 0x40
pop ecx
mov dword [ebx + 0x134], eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041c200
push 0x20
pop esi
push esi
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x112]
push edi
call fcn.0041c200
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041c200
push esi
lea eax, [ebp - 0x68]
push eax
add ebx, 0x158
push ebx
call fcn.0041c200
add esp, 0x30
push 0
push 1
push esi
push edi
call fcn.0040ce8e
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x20], 0
je 0x405d65
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x20]
call fcn.0041c200
add esp, 0xc
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x405d97
push 8
push 0
push ebx
call fcn.0041a790
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x28]
mov eax, ecx
and eax, 7
add eax, ebx
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405d7b
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf3c
cmp dword [ebp + 0x18], 0
je 0x405db7
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push 0x100
push eax
push dword [ebp + 8]
lea ecx, [edi + 0xa9c]
call fcn.0040c9eb
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040cf3c
pop esi
pop ebx
pop edi
leave
ret 0x20
push 0
push 0
push 0x20
pop esi
lea eax, [ebx + 0x112]
push esi
push eax
call fcn.0040ce8e
push esi
lea eax, [ebx + 0x112]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041c200
add esp, 0xc
push 0
push 1
push esi
lea eax, [ebx + 0x112]
push eax
call fcn.0040ce8e
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c200
push esi
add ebx, 0x158
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041c200
add esp, 0x18
jmp 0x405d4f
Function at 0x405ed3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405f1f
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004059b1
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405f04
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405f47
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004059b1
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041c200
add esp, 0xc
pop esi
leave
ret 8
Function at 0x4084a3
Capabilities:
Move file

Disassembly:
mov eax, 0x429663
call fcn.0041a44c
mov eax, 0x5028
call fcn.0041aa60
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408660
cmp eax, esi
jae 0x408660
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408660
cmp eax, esi
jae 0x408660
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a590
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a590
mov edi, eax
cmp word [edi], 0
je 0x408660
push edi
push dword [ebp - 0x10]
call fcn.00411ddc
test eax, eax
je 0x408660
push edi
push ebx
call fcn.0040a590
push eax
call fcn.00411ddc
test eax, eax
jne 0x408660
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x4085bc
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410adf
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a590
push eax
call fcn.004118ec
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040925a
test al, al
je 0x4085a3
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x408556
cmp word [ebp - 0x1010], 0
je 0x408660
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410adf
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a6fa
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x408660
lea ecx, [ebp - 0x2034]
call fcn.0040873b
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.0040925a
test al, al
jne 0x408623
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.004088d8
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x40864d
lea ecx, [ebp - 0x2034]
call fcn.004089e7
lea ecx, [ebp - 0x2034]
call fcn.00408a35
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408c32
mov al, 1
jmp 0x408662
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4