joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f186
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x45f1bb
cmp edi, dword [esi + 0xc]
jge 0x45f1bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45f1bb
cmp edi, dword [eax + 8]
jge 0x45f1bb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x45f1bd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x45f2c1
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x45f2f5
jmp fcn.0044d663
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x45f366
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x45f45f
cmp eax, dword [edi + 0xc]
jge 0x45f45f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x45f3b7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x45f448
cmp dword [ebp + 0xc], ebx
je 0x45f448
jmp 0x45f3e1
push 0x10
call fcn.0045f052
cmp eax, ebx
je 0x45f3cd
mov ecx, eax
call fcn.0045f2b8
mov esi, eax
jmp 0x45f3cf
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x45f3f8
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x45f408
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x45f41a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0044d663
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004330b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x45f45a
cmp ecx, dword [esi + 8]
jge 0x45f45a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x45f460
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45f51e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45f54c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45f56a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045f488
jmp 0x45f56a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45f56a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0045f488
test edi, edi
mov eax, edi
jne 0x45f554
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4e0e34]
test ecx, ecx
je 0x45f61d
jmp 0x45f51d
ret 8
Function at 0x40513c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x41120c
call fcn.00408c76
add esp, 8
push str.pause
call fcn.00408669
add esp, 4
push 1
call fcn.00408ba1
pop ebp
ret
Function at 0x408088
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x4080ac
jmp 0x4080b6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40809c
mov esp, ebp
pop ebp
ret

Function at 0x4080ba
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push edi
mov dword [ebp - 0x40c], 0
mov al, byte [0x4190b0]
mov byte [ebp - 0x41c], al
xor ecx, ecx
mov dword [ebp - 0x41b], ecx
mov dword [ebp - 0x417], ecx
mov byte [ebp - 0x413], cl
mov dl, byte [0x4190b4]
mov byte [ebp - 0x81c], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x81b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x4190b8]
mov byte [ebp - 0x404], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x410], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x408], 0
push 0x43
call fcn.00405c8b
add esp, 4
push eax
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00408790
add esp, 8
push 0x3a
call fcn.00405c8b
add esp, 4
push eax
lea edx, [ebp - 0x41c]
push edx
call fcn.004087a0
add esp, 8
push 0x5c
call fcn.00405c8b
add esp, 4
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004087a0
add esp, 8
push 0x400
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0x400
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x410]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x409f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ba18
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x409fd1
test byte [esp + 8], 2
je 0x409fd1
mov dword [0x4190c4], 0xd
mov dword [0x4190c8], 5
jmp 0x409fac
xor eax, eax
ret
Function at 0x40b851
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b873
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b864
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b9a1
mov eax, dword [0x419118]
cmp eax, 1
je 0x40b97b
test eax, eax
jne 0x40b8a4
cmp dword [0x411488], 1
je 0x40b97b
cmp edx, 0xfc
je 0x40b9a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b8db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408960
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b91e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408960
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408ff0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004087a0
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.004087a0
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.004087a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e316
add esp, 0x2c
pop edi
jmp 0x40b9a1
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408960
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403116
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403136
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403148
mov dword [ebp - 0xc], 0x42c200
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40315d
mov ecx, dword [0x47af58]
add ecx, eax
push ecx
call fcn.00403347
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403331
test eax, eax
je 0x40331f
test byte [ebp + 0x17], 0x80
je 0x4032ca
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41eb64], 0
and dword [0x41eb60], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x4201e8
mov dword [0x41e648], 8
mov dword [0x4281f0], eax
mov dword [0x4281ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4281e8], 0x4281e8
mov dword [ebp + 8], eax
jle 0x403327
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031d6
mov esi, dword [ebp + 0x14]
mov edi, 0x428200
push esi
push edi
call fcn.00403331
test eax, eax
je 0x40331f
sub dword [ebp + 0x14], esi
mov dword [0x41e638], edi
mov dword [0x41e63c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e638
mov dword [0x41e640], edi
mov dword [0x41e644], eax
call fcn.004067f5
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032c2
mov esi, dword [0x41e640]
sub esi, edi
call ebx
test byte [0x47afb4], 1
mov edi, eax
je 0x40327d
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403244
cmp dword [ebp + 0x14], 0
jne 0x40327d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405322
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032b6
cmp dword [ebp + 0x10], 0
jne 0x40329c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405e62
test eax, eax
je 0x4032c6
add dword [ebp - 4], esi
jmp 0x4032aa
mov eax, dword [0x41e640]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4031f9
jmp 0x403327
cmp dword [ebp + 0x14], 0
jg 0x4031c9
jmp 0x403327
push 0xfffffffffffffffc
jmp 0x403321
push 0xfffffffffffffffe
jmp 0x403321
test edi, edi
jne 0x40330c
cmp dword [ebp + 0x14], edi
jle 0x403327
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4032e0
mov esi, ebx
mov edi, 0x428200
push esi
push edi
call fcn.00403331
test eax, eax
je 0x40331f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e62
test eax, eax
je 0x4032c6
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032d6
jmp 0x403327
cmp dword [ebp + 0x14], esi
jge 0x403314
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403331
test eax, eax
jne 0x403324
push 0xfffffffffffffffd
pop eax
jmp 0x40332a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405842
xor eax, eax
jmp 0x405869
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405869
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40583e
call esi
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x468250], 0x44
push eax
xor eax, eax
push 0x468250
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 0x4058e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058e6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d8b
mov edi, eax
cmp edi, 0xffffffff
je 0x4059c5
test byte [esp + 0x10], 1
push esi
je 0x4059a7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059b6
xor eax, eax
inc eax
jmp 0x4059c7
test byte [esp + 0x10], 4
jne 0x4059c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4059cc
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
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c97
test bl, 8
mov dword [ebp - 8], eax
je 0x405a0b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47af88], eax
jmp 0x405b88
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a25
test eax, eax
je 0x405b36
test bl, 2
je 0x405b36
mov esi, 0x460250
push edi
push esi
call fcn.004062ba
cmp dword [ebp + 8], 0
je 0x405a44
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a4a
push edi
call fcn.00405bdb
cmp word [edi], 0
jne 0x405a5a
cmp word [0x460250], 0x5c
jne 0x405a65
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b2b
cmp word [ebp - 0x22c], 0x2e
jne 0x405aaf
cmp word [ebp - 0x22a], 0
je 0x405b0e
cmp word [ebp - 0x22a], 0x2e
jne 0x405aaf
cmp word [ebp - 0x228], 0
je 0x405b0e
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004062ba
test byte [ebp - 0x258], 0x10
je 0x405ada
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b0e
push dword [ebp + 0xc]
push edi
call fcn.004059cc
jmp 0x405b0e
push dword [ebp - 4]
push edi
call fcn.00405984
test eax, eax
jne 0x405b06
cmp dword [ebp - 4], eax
je 0x405afe
push edi
push 0xfffffffffffffff1
call fcn.00405322
push 0
push edi
call fcn.00406080
jmp 0x405b0e
inc dword [0x47af88]
jmp 0x405b0e
push edi
push 0xfffffffffffffff2
call fcn.00405322
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a87
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b36
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b88
cmp dword [ebp - 8], esi
jne 0x405b4a
inc dword [0x47af88]
jmp 0x405b88
push edi
call fcn.004065fd
test eax, eax
je 0x405b88
push edi
call fcn.00405b8f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405984
test eax, eax
jne 0x405b80
cmp dword [ebp - 4], esi
je 0x405b42
push edi
push 0xfffffffffffffff1
call fcn.00405322
push esi
push edi
call fcn.00406080
jmp 0x405b88
push edi
push 0xffffffffffffffe5
call fcn.00405322
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464250
push esi
call fcn.004062ba
push esi
call fcn.00405c3a
mov edi, eax
test edi, edi
jne 0x405cb8
xor eax, eax
jmp 0x405d10
push edi
call fcn.0040654e
test byte [0x47aefc], 0x80
je 0x405cd5
mov ax, word [edi]
test ax, ax
je 0x405cb4
cmp ax, 0x5c
je 0x405cb4
sub edi, esi
sar edi, 1
jmp 0x405cef
call fcn.004065fd
test eax, eax
je 0x405ce9
test byte [eax], 0x10
je 0x405cb4
push esi
call fcn.00405bdb
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405cdb
call fcn.00405b8f
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 0x405d8b
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 0x405daa
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 0x405db0
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 0x405ddf
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 [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
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 0x405e2f
test edi, edi
jne 0x405dec
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e29
Function at 0x405f06
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4688e8], 0x55004e
mov dword [0x4688ec], 0x4c
mov edi, 0x400
mov ebp, 0x4688e8
je 0x405f5c
push 1
push 0
push esi
call fcn.00405db0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40607b
cmp eax, edi
jg 0x40607b
mov esi, 0x4690e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40607b
cmp eax, edi
jg 0x40607b
push esi
push ebp
push str._ls_ls_r_n
push 0x4684e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47aef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062dc
push 4
push 0xc0000000
push esi
call fcn.00405db0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40607b
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 0x406074
push edi
push esi
push ebp
call fcn.00405e33
test eax, eax
je 0x406074
push str._Rename__r_n
push esi
call fcn.00405d15
test eax, eax
jne 0x406012
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406047
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d15
mov ebp, eax
test ebp, ebp
je 0x406043
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406034
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40602e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406049
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4684e8
push eax
call fcn.00405d6b
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.00405e62
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 0x406080
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 0x4060a3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f06
pop ecx
pop ecx
inc dword [0x47af90]
ret 8
Function at 0x406188
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406127
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061f8
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4061f8
cmp dword [ebp + 0xc], 1
je 0x4061fc
cmp dword [ebp + 0xc], 2
je 0x4061fc
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1d6c760b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x285d700b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xac3130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0xac3140
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0xac3150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc