joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe2d5d6
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x5c737501], eax
jle 0xe2d5fa
das
test eax, 0xe8981bf
call fcn.00a84d4e
sub dword [esp + ebp*2 - 0x16aa], 0x931bf703
lea esi, [edx + esi + 0x4d8eaa5a]
shr edx, 0x85
btr dx, 7
not esi
shl dword [esp + edx - 0x5414a51], 0x7d
lea ebp, [ecx + ecx - 0x69c91668]
add ecx, ecx
inc esi
mov dword [esp + edx*2 - 0xa8294aa], ecx
not esi
shl dl, cl
rol esi, 2
pop ebp
dec ebp
and bp, bp
adc esi, ebx
movsx ebx, cl
mov dword [esp + edx*8 - 0x2a0a5260], edi
mov dword [esp + edx*2 - 0xa8294a0], ebx
inc cl
call fcn.00b41f75
cld
adc bl, byte [edx - 0x47f02768]
out dx, al
jl 0xe2d67c
dec edx
or al, 0x82
loopne 0xe2d5c3
xor dword [esi + 0x21db0907], 0xffffff9a
jne 0xe2d617
pop ecx
mov edi, 0xf4b083ad
ret
mov edx, 0x78ffacc1
cli
fadd qword [esi + ebx*4 + 0x77]
xor byte [edx + 0x9f82cc1], bh
cli
sub edi, ebp
push ebp
adc ebx, dword [ecx - 0x622ea677]
cmp byte [eax + ebp*2 + 0x458c4aff], 0x3e
push edi
adc byte [esi - 0xaf97733], al
popal
adc dh, dh
shr byte [eax + esi*8 + 0x4a10ed46], cl
adc ecx, esp
das
xchg edx, eax
add byte [esi + 0x54d49d4a], cl
push edi
leave
push ss
out 0xd8, eax
cmpsb byte [esi], byte es:[edi]
imul ecx, ecx, 0xffffffba
shr dword [esi + edi*4 + 0x5fc75239], 0xb4
sub byte [edi - 0x46], ch
shr dword [ecx + ebp*8], 0x3f
sub al, 0xe9
aas
test al, 0x97
sbb ecx, dword [ecx - 0x3722a64b]
xchg ebp, eax
mov edx, 0x5a84acc1
fdiv dword [edx + eax*4 + 0x59d1f13b]
push ebp
xor al, byte [ebx + 0x4d]
push edx
adc bl, byte [ebx + 0x68]
lodsb al, byte [esi]
fidiv word [ecx]
inc esi
aaa
popal
xor ebx, eax
in eax, dx
cld
sbb dword [edi], 0xffffffcd
xchg esp, eax
jp 0xe2d6cf
dec ecx
xchg ebx, eax
and byte [edx + 0x63], dh
sbb al, 9
sar byte [ecx], cl
dec edx
outsb dx, byte [esi]
xchg dl, bh
movsd dword es:[edi], dword [esi]
mov edx, 0x2fb42cc1
or edi, ecx
insd dword es:[edi], dx
movsd dword es:[edi], dword [esi]
add ah, byte [ebp + 0x14]
sbb dl, dh
pop ecx
adc byte [ebx], ah
out 0x9c, eax
adc al, 0x52
xor eax, 0x53701244
cld
push ss
xor eax, 0xd8af4354
fbstp tbyte [ecx]
test dword [edx], eax
invalid

Function at 0xe341d7
Capabilities:
Encrypt data using speck

Disassembly:
rol word [esp + 5], 0xac
adc al, 0x14
neg al
dec dword [esp + 6]
ror al, 1
call fcn.00e20b59
adc al, 0xb3
neg al
jmp 0xb8cf31

Function at 0xe383ef
Capabilities:
Encode data using xor

Disassembly:
xor edx, ebx
mov dword [esp], 0xa7001a91
push 0xa186a72e
neg edx
bswap edx
shr word [esp + 4], 0x26
dec edx
dec dword [esp + 2]
ror edx, 1
neg dword [esp + 2]
sbb edx, 0xd69d14b6
push 0xf2888d27
dec word [esp + 9]
Function at 0x40153f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], str.C:windowsSysnativedrivers_npf.sys
mov dword [ebp - 0x10], str.C:windows_system32drivers_npf.sys
mov dword [ebp - 0xc], 0
jmp 0x40157f
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
call eax
sub esp, 4
test eax, eax
je 0x40157b
mov eax, 1
jmp 0x40158c
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, 1
jbe 0x40155c
mov eax, 0
leave
ret

Function at 0x40158e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x20], str.procmon.exe
mov dword [ebp - 0x1c], str.wireshark.exe
mov dword [ebp - 0x18], str.ollydbg.exe
mov dword [ebp - 0x14], str.x64dbg.exe
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4015dd
mov eax, 0
jmp 0x401681
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x40166e
mov dword [ebp - 0xc], 0
jmp 0x40164a
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x20]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
add eax, 0x24
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.DLL_StrStrIA]
call eax
sub esp, 8
test eax, eax
je 0x401646
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 1
jmp 0x401681
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, 3
jbe 0x40160c
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x401603
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
leave
ret
Function at 0x401e60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401eab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ea4
test esi, esi
je 0x401ea4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e80
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402090
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40211e
cmp eax, 4
jne 0x402140
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40212e
cmp edx, 4
je 0x40212e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402090
Function at 0x40305b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x437870]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4030ef
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4030ac
cmp dword [ebp + 0x10], ebx
jne 0x4030e3
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040305b
test eax, eax
jne 0x4030be
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403093
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406cb0
cmp eax, ebx
je 0x4030f6
push ebx
push dword [0x437870]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4030ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x437870], ebx
jne 0x4030ec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4030ec
jmp 0x4030ef
Function at 0x403565
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403590
mov ecx, dword [0x437818]
push esi
add eax, ecx
push esi
push eax
mov dword [0x423ab4], eax
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040366d
cmp eax, esi
jl 0x403667
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40acbc]
call fcn.00406386
test eax, eax
je 0x403657
push dword [ebp + 8]
add dword [0x423ab4], 4
call fcn.0040366d
mov ebx, eax
cmp ebx, esi
jl 0x403665
cmp dword [ebp + 0x10], esi
jne 0x403633
cmp dword [ebp + 8], esi
jle 0x403665
mov esi, 0x41fab0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4035f5
mov eax, 0x4000
push eax
push esi
push dword [0x40acbc]
mov dword [ebp - 4], eax
call fcn.00406386
test eax, eax
je 0x403657
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004063b5
test eax, eax
je 0x40362f
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x423ab4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4035e4
jmp 0x403665
push 0xfffffffffffffffe
jmp 0x403659
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40363e
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40365c
push 0xfffffffffffffffd
pop eax
jmp 0x403667
mov ebx, dword [ebp - 4]
add dword [0x423ab4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405d03
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408400
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083f0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d54
xor eax, eax
jmp 0x405d7b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405d7b
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405d50
call esi
pop esi
leave
ret 4

Function at 0x405db5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x431308], 0x44
push eax
xor eax, eax
push 0x431308
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405df4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e7e
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004062de
mov edi, eax
cmp edi, 0xffffffff
je 0x405ebf
test byte [esp + 0x10], 1
push esi
je 0x405ea1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405ea7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405eb0
xor eax, eax
inc eax
jmp 0x405ec1
test byte [esp + 0x10], 4
jne 0x405ebf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405ec6
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004061ea
test bl, 8
mov dword [ebp - 8], eax
je 0x405f05
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x437848], eax
jmp 0x4060db
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405f1f
test eax, eax
je 0x40605d
test bl, 2
je 0x40605d
mov edi, 0x430308
push esi
push edi
call fcn.0040672e
cmp dword [ebp + 8], 0
je 0x405f3e
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405f44
push esi
call fcn.0040612e
cmp word [esi], 0
jne 0x405f54
cmp word [0x430308], 0x5c
jne 0x405f5f
push 0x40a4e4
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406052
cmp word [ebp - 0x22c], 0x2e
jne 0x405fb1
cmp word [ebp - 0x22a], 0
je 0x406035
cmp word [ebp - 0x22a], 0x2e
jne 0x405fb1
cmp word [ebp - 0x228], 0
je 0x406035
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040672e
test byte [ebp - 0x258], 0x10
je 0x405fdc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406035
push dword [ebp + 0xc]
push esi
call fcn.00405ec6
jmp 0x406035
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406be8
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405e7e
test eax, eax
push esi
jne 0x40602e
cmp dword [ebp - 4], eax
je 0x40601a
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406be8
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004057ff
push 0
push esi
call fcn.004065cf
jmp 0x406035
push str.Delete:_DeleteFile_failed___s__
call fcn.00406be8
inc dword [0x437848]
pop ecx
pop ecx
jmp 0x406035
push 0xfffffffffffffff2
call fcn.004057ff
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f81
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40605d
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4060db
cmp dword [ebp - 8], edi
push esi
jne 0x40607e
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406be8
inc dword [0x437848]
pop ecx
pop ecx
jmp 0x4060db
call fcn.00406c19
test eax, eax
je 0x4060db
push esi
call fcn.004060e2
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406be8
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405e7e
test eax, eax
push esi
jne 0x4060d4
cmp dword [ebp - 4], edi
je 0x4060cd
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406be8
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004057ff
push edi
push esi
call fcn.004065cf
jmp 0x4060db
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x40606f
push 0xffffffffffffffe5
call fcn.004057ff
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4061ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x430b08
push esi
call fcn.0040672e
push esi
call fcn.0040618d
mov edi, eax
test edi, edi
jne 0x40620b
xor eax, eax
jmp 0x406263
push edi
call fcn.004069c2
test byte [0x4377d8], 0x80
je 0x406228
mov ax, word [edi]
test ax, ax
je 0x406207
cmp ax, 0x5c
je 0x406207
sub edi, esi
sar edi, 1
jmp 0x406242
call fcn.00406c19
test eax, eax
je 0x40623c
test byte [eax], 0x10
je 0x406207
push esi
call fcn.0040612e
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40622e
call fcn.004060e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4062de
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4062fd
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406303
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406332
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b4b8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b4bc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406382
test edi, edi
jne 0x40633f
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40637c
Function at 0x40645d
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4319a0
push 0x40b4dc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x4064ab
push 1
push 0
push esi
call fcn.00406303
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4065ca
cmp eax, edi
jg 0x4065ca
mov esi, 0x4321a0
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4065ca
cmp eax, edi
jg 0x4065ca
push esi
push ebx
push str._ls_ls_r_n
push 0x4315a0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4377d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406750
push 4
push 0xc0000000
push esi
call fcn.00406303
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4065ca
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4065c3
push edi
push esi
push ebp
call fcn.00406386
test eax, eax
je 0x4065c3
push str._Rename__r_n
push esi
call fcn.00406268
test eax, eax
jne 0x406561
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406596
add eax, 0xa
push 0x40b4c0
push eax
call fcn.00406268
mov ebp, eax
test ebp, ebp
je 0x406592
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406583
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40657d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406598
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4315a0
push eax
call fcn.004062be
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004063b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4065cf
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4065f2
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040645d
pop ecx
pop ecx
inc dword [0x437850]
ret 8
Function at 0x4065fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40666f
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40665c
cmp dword [ebp + 0x14], 1
je 0x40665f
cmp dword [ebp + 0x14], 2
je 0x40665f
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406c64
xor eax, eax
test eax, eax
je 0x406c77
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406c77
xor ecx, ecx
jmp 0x406c7a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a4e4]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406d61
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4329a4], 0
push esi
jne 0x406d98
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d72
mov dword [ecx*4 + 0x4329a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406d6d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406dc9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4329a0]
xor eax, esi
inc ecx
dec edx
jne 0x406dab
pop edi
not eax
pop esi
ret 0xc
Function at 0x401984
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, 0x58bf
mov dword [esp + 0x10], ecx
xor ebp, ebp
mov dword [esp + 0x18], 0xce6dd971
push edi
mov dword [esp + 0x22], ebp
mov word [esp + 0x20], ax
call fcn.0040bd4f
mov ecx, dword [esp + 0x30]
mov bl, 0xf
add cl, 5
mov byte [esp + 0x13], al
and cl, 0xf
sub bl, cl
call fcn.0040bd4f
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shl al, 4
or al, bl
movzx ebx, bl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
lea ecx, [eax + 6]
add ecx, ebx
mov dword [edx], ecx
lea ecx, [edi + 6]
add ecx, ebx
push ecx
cmp dword [esp + 0x38], edi
jne 0x4019fa
call fcn.004211e0
jmp 0x4019ff
call fcn.004211e0
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov esi, ebp
mov byte [edi + 4], cl
mov byte [edi + 5], al
test ebx, ebx
je 0x401a24
call fcn.0040bd4f
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x401a16
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
add eax, 2
add eax, ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.0040182e
mov eax, dword [esp + 0x22]
push edi
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push 0x10
push edi
push eax
lea ebx, [eax + 0x234]
push ebx
call fcn.00410360
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x401a99
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x401a70
push edi
push 0x10
push edi
push dword [esp + 0x20]
push ebx
call fcn.00410360
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x401a69
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10