joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103db25
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push 0x103dd40
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x100ebd4
push 0x10299c8
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x103db61
call 0x1036b1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x103dce0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103dcb9
push esi
push edi
push 0x10143d0
call fcn.0103d69e
push 0x1016888
mov dword [ebp - 0xc], eax
call fcn.0103d69e
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
call fcn.0103d723
push 3
pop esi
push ebx
push 4
push 0x103dcd0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d75e
mov dword [ebp + esi*4 - 0x4c], eax
inc esi
cmp esi, 6
jb 0x103dbb7
lea ecx, [ebp - 0x1c]
call fcn.0103d723
xor edi, edi
lea esi, [ebp + edi*4 - 0x4c]
cmp dword [esi], ebx
jne 0x103dbfe
push 1
push 0x10
push 0x103dcc0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d75e
mov dword [esi], eax
inc edi
cmp edi, 6
jb 0x103dbdf
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 3
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x40000000
lea eax, [ebp - 0x24]
push eax
call fcn.010080a1
push 0x13
xor esi, esi
pop ebx
mov edi, dword [ebp + esi*4 - 0x4c]
test edi, edi
je 0x103dc85
push 0x26
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x103dc4c
lea eax, [ebx + 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x103dc4f
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1009b64
push edi
call fcn.0100bb1b
test eax, eax
jl 0x103dc85
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push 0x12
push 0x100837c
call fcn.0102b756
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
dec ebx
cmp esi, 6
jb 0x103dc30
xor esi, esi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.SHELL32.dll_ILFree]
inc esi
cmp esi, 6
jb 0x103dc8e
push dword [ebp - 0xc]
mov esi, dword [sym.imp.SHELL32.dll_SHFree]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103dec2
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 1
push 0x1014430
push 0x1016ad8
mov esi, ecx
xor ebx, ebx
push 0x80000001
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x103e00e
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 9
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x103dfea
mov dword [ebp - 8], ebx
add esi, 0x38
push edi
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.01007ff7
test eax, eax
je 0x103dfd2
mov eax, dword [ebp - 8]
movzx eax, byte [eax*8 + 0x1007f98]
push eax
push dword [ebp - 4]
call fcn.0103d208
test eax, eax
jl 0x103dfe9
mov eax, dword [esi]
cmp eax, ebx
je 0x103dfc2
cmp dword [esi + 8], ebx
je 0x103dfc2
cmp dword [eax], ebx
mov dword [ebp - 0xc], ebx
jle 0x103dfc2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi]
cmp ebx, eax
je 0x103df98
push 0
push dword [ebp - 4]
mov ebx, eax
call fcn.0103d208
test eax, eax
jl 0x103dfe9
push dword [ebx + 4]
push dword [esi + 8]
call fcn.0103d225
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103dfe9
push 1
push dword [ebp - 4]
call fcn.0103d208
test eax, eax
jl 0x103dfe9
push dword [edi + 4]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103dfe9
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jl 0x103df5e
push 2
push dword [ebp - 4]
call fcn.0103d208
test eax, eax
jl 0x103dfe9
xor ebx, ebx
inc dword [ebp - 8]
add esi, 0x1c
cmp dword [ebp - 8], 6
jb 0x103df1d
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
jne 0x103e00e
push 0x1014430
push 0x1016ad8
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
pop esi
pop ebx
leave
ret
Function at 0x402c93
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 [0x47af90]
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 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064be
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x47af90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
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 [0x47af90], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4030bb
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 0x4030db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4030ed
mov dword [ebp - 0xc], 0x42c200
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403102
mov ecx, dword [0x47af38]
add ecx, eax
push ecx
call fcn.004032ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032d6
test eax, eax
je 0x4032c4
test byte [ebp + 0x17], 0x80
je 0x40326f
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 0x4032cc
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40317b
mov esi, dword [ebp + 0x14]
mov edi, 0x428200
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
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.004065dd
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403267
mov esi, dword [0x41e640]
sub esi, edi
call ebx
test byte [0x47af94], 1
mov edi, eax
je 0x403222
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4031e9
cmp dword [ebp + 0x14], 0
jne 0x403222
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.00405243
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40325b
cmp dword [ebp + 0x10], 0
jne 0x403241
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405d6b
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
jmp 0x40324f
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 0x40319e
jmp 0x4032cc
cmp dword [ebp + 0x14], 0
jg 0x40316e
jmp 0x4032cc
push 0xfffffffffffffffc
jmp 0x4032c6
push 0xfffffffffffffffe
jmp 0x4032c6
test edi, edi
jne 0x4032b1
cmp dword [ebp + 0x14], edi
jle 0x4032cc
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403285
mov esi, ebx
mov edi, 0x428200
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d6b
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40327b
jmp 0x4032cc
cmp dword [ebp + 0x14], esi
jge 0x4032b9
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032d6
test eax, eax
jne 0x4032c9
push 0xfffffffffffffffd
pop eax
jmp 0x4032cf
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405712
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 0x405763
xor eax, eax
jmp 0x40578a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40578a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40575f
call esi
pop esi
leave
ret 4

Function at 0x4057c4
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 0x405803
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c94
mov edi, eax
cmp edi, 0xffffffff
je 0x4058ce
test byte [esp + 0x10], 1
push esi
je 0x4058b0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4058b6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4058bf
xor eax, eax
inc eax
jmp 0x4058d0
test byte [esp + 0x10], 4
jne 0x4058ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4058d5
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.00405ba0
test bl, 8
mov dword [ebp - 8], eax
je 0x405914
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47af68], eax
jmp 0x405a91
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40592e
test eax, eax
je 0x405a3f
test bl, 2
je 0x405a3f
mov esi, 0x460250
push edi
push esi
call fcn.004060e4
cmp dword [ebp + 8], 0
je 0x40594d
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405953
push edi
call fcn.00405ae4
cmp word [edi], 0
jne 0x405963
cmp word [0x460250], 0x5c
jne 0x40596e
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 0x405a34
cmp word [ebp - 0x22c], 0x2e
jne 0x4059b8
cmp word [ebp - 0x22a], 0
je 0x405a17
cmp word [ebp - 0x22a], 0x2e
jne 0x4059b8
cmp word [ebp - 0x228], 0
je 0x405a17
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004060e4
test byte [ebp - 0x258], 0x10
je 0x4059e3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a17
push dword [ebp + 0xc]
push edi
call fcn.004058d5
jmp 0x405a17
push dword [ebp - 4]
push edi
call fcn.0040588d
test eax, eax
jne 0x405a0f
cmp dword [ebp - 4], eax
je 0x405a07
push edi
push 0xfffffffffffffff1
call fcn.00405243
push 0
push edi
call fcn.00405f85
jmp 0x405a17
inc dword [0x47af68]
jmp 0x405a17
push edi
push 0xfffffffffffffff2
call fcn.00405243
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405990
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a3f
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a91
cmp dword [ebp - 8], esi
jne 0x405a53
inc dword [0x47af68]
jmp 0x405a91
push edi
call fcn.00406427
test eax, eax
je 0x405a91
push edi
call fcn.00405a98
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040588d
test eax, eax
jne 0x405a89
cmp dword [ebp - 4], esi
je 0x405a4b
push edi
push 0xfffffffffffffff1
call fcn.00405243
push esi
push edi
call fcn.00405f85
jmp 0x405a91
push edi
push 0xffffffffffffffe5
call fcn.00405243
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464250
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x47aef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
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 0x405c94
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 0x405cb3
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 0x405cb9
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 0x405ce8
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 [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
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 0x405d38
test edi, edi
jne 0x405cf5
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405d32
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4688e8
push 0x40a574
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 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4690e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4684e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47aef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406106
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
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 0x405f79
push edi
push esi
push ebp
call fcn.00405d3c
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00405c1e
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00405c1e
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4684e8
push eax
call fcn.00405c74
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.00405d6b
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 0x405f85
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 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x47af70]
ret 8
Function at 0x405fb1
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 0x406025
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x4000
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 0x406012
cmp dword [ebp + 0x14], 1
je 0x406015
cmp dword [ebp + 0x14], 2
je 0x406015
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x3ffe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40644e
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 0x406472
xor eax, eax
test eax, eax
je 0x406485
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406485
xor ecx, ecx
jmp 0x406488
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 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4065a6
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 0x406580
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
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 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x401120
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x401164
mov ax, word [edx]
or ecx, 0xffffffff
cmp ax, 0x5a4d
jne 0x401136
xor ecx, ecx
test ax, ax
jne 0x401142
mov ecx, 1
jmp 0x401146
test ecx, ecx
jl 0x401164
mov eax, dword [edx + 0x3c]
add eax, edx
test ecx, ecx
jne 0x40115a
cmp dword [eax], 0x4550
je 0x401166
xor eax, eax
ret
cmp ecx, 1
jne 0x401166
cmp dword [eax], 0
je 0x401166
xor eax, eax
ret

Function at 0x401660
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x218
mov ecx, dword [esp + 0x21c]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
push ecx
call dword [esi + 0x14]
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x30]
push 0x80000000
push edx
call dword [esi + 0x18]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
setne al
mov ebp, eax
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x4016d6
push 0
push 0
push 0
push 2
push 0
push edi
call dword [esi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], eax
test eax, eax
setne cl
mov ebp, ecx
test ebp, ebp
push ebx
je 0x4017ed
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edx
call dword [esi + 0x20]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
mov ebp, eax
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x4017e5
mov ecx, dword [esp + 0x22c]
push ecx
call fcn.00401120
xor edx, edx
mov edi, dword [eax + 0x54]
mov dx, word [eax + 0x14]
xor ecx, ecx
mov cx, word [eax + 6]
add esp, 4
lea ebp, [edx + eax + 0x18]
xor edx, edx
test ecx, ecx
jle 0x401743
lea eax, [ebp + 0x10]
cmp dword [eax + 4], edi
ja 0x401743
mov ebp, dword [eax]
add eax, 0x28
add edi, ebp
inc edx
cmp edx, ecx
jl 0x401732
mov eax, dword [esp + 0x238]
shl eax, 5
add eax, edi
add eax, ebx
mov ebx, dword [esp + 0x234]
push eax
push ebx
call fcn.00401810
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4017dd
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x22c]
add esi, edi
mov edi, dword [esp + 0x10]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x238]
add esi, edi
mov dword [esp + 0x1c], eax
test edx, edx
jne 0x4017c5
mov edi, dword [ebx + 0x18]
sub edi, ecx
mov ecx, dword [ebx]
add edi, 0x2000
push ecx
push edi
push esi
push eax
call fcn.00401870
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x2c]
sub ecx, edi
add esi, edi
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4017d6
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
push ecx
push edx
push esi
push eax
call fcn.00401870
add esp, 0x10
mov esi, dword [esp + 0x230]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x4017ed
push ebx
call dword [esi + 0x24]
mov eax, dword [esp + 0x14]
pop ebx
test eax, eax
je 0x4017fa
push eax
call dword [esi + 0x28]
cmp edi, 0xffffffff
je 0x401803
push edi
call dword [esi + 0x28]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x218
ret