joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7cc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00464470
push 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.00464590
lea eax, [esp + 0xc]
push eax
call fcn.0047b5c0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0046a750
add esp, 0x10
push 0x3d
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.004d3332
mov esi, dword [esp + 0x34]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 1
call fcn.004da87c
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004644e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x47b7a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x47b7d1
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, ecx
xor edx, edx
mov ebx, 0x66
div ebx
mov bl, byte [ecx + esi]
mov al, byte [edx + str.5jZlP9KDNSzjnyOYhou2Nw3lP9KDNSzjnyOYhou2Nw3Dq8DIdLJx8mM8GUVuGFLeZa1pGEUevJCy8NTgEAW1YhhFEZc9Tvs0DMxKq]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x47b7b1
pop esi
pop ebx
pop edi
ret

Function at 0x47b7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [esp + 0xc], ebx
je 0x47b898
cmp byte [esi], bl
je 0x47b898
lea ecx, [esp + 0x10]
call fcn.00464470
lea eax, [esp + 0x10]
mov edi, 1
push eax
push esi
mov dword [esp + 0x38], edi
call fcn.0046a800
add esp, 8
test eax, eax
jne 0x47b840
push 0x536ec0
jmp 0x47b868
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0047b7a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 8
cmp byte [eax + ecx - 1], bl
je 0x47b867
push 0x536ec0
jmp 0x47b868
push eax
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.004da8ea
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edi
mov byte [esp + 0x30], bl
call fcn.004644e0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov esi, dword [esp + 0x38]
push 0x536ec0
mov ecx, esi
call fcn.004da8ea
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x47c200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7dc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004da8ea
mov eax, dword [0x532934]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov bl, 4
test eax, eax
mov byte [esp + 0x24], bl
je 0x47c26a
push eax
lea ecx, [esp + 0x14]
push 0x526f40
push ecx
call fcn.004d383a
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x47c331
push 0
lea eax, [esp + 0x10]
push 0x527e2c
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0046a2f0
add esp, 0x10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 5
call fcn.004da9b5
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], bl
call fcn.004da87c
mov edx, dword [esp + 8]
push edx
call sub.wsock32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
je 0x47c322
push esi
call fcn.0047c500
add esp, 4
test eax, eax
jne 0x47c322
push esi
call fcn.0047c510
add esp, 4
test eax, eax
jne 0x47c322
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47c2f2
push 0x52c73c
lea ecx, [esp + 0x34]
call fcn.004dac58
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004daaab
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 6
call fcn.004dac94
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004da87c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x47c279
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004da87c
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.004da87c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.004da87c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.004da87c
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x47c540
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4f7e5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x532934]
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], 1
push ecx
call sub.wsock32.dll_gethostbyname
mov edi, eax
cmp edi, ebp
je 0x47c64c
push ebx
mov bl, 2
mov edx, dword [edi + 0xc]
cmp dword [edx + ebp], 0
je 0x47c64b
mov eax, dword [0x532934]
mov dword [esp + 0x30], eax
xor esi, esi
mov byte [esp + 0x24], bl
cmp word [edi + 0xa], si
jle 0x47c60e
mov ecx, dword [0x532934]
mov dword [esp + 0x14], ecx
test esi, esi
mov byte [esp + 0x24], 3
jle 0x47c5cc
push 0x52b1f4
lea ecx, [esp + 0x34]
call fcn.004dac58
mov edx, dword [edi + 0xc]
xor ecx, ecx
mov eax, dword [edx + ebp]
lea edx, [esp + 0x14]
mov cl, byte [eax + esi]
push ecx
push 0x525ae8
push edx
call fcn.004d383a
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
call fcn.004dac94
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004da87c
movsx ecx, word [edi + 0xa]
inc esi
cmp esi, ecx
jl 0x47c5ab
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x47c627
push 0x52c73c
lea ecx, [esp + 0x14]
call fcn.004dac58
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.004dac94
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.004da87c
add ebp, 4
jmp 0x47c589
pop ebx
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.004da87c
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x47c690
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4f7ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x532934]
mov dword [esp + 8], 0
mov dword [esp], eax
lea ecx, [esp + 0xc]
push 0x80
push ecx
mov dword [esp + 0x9c], 1
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x47c70f
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push eax
call fcn.0047c540
add esp, 8
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x98], 2
call fcn.004da9b5
lea ecx, [esp + 4]
mov byte [esp + 0x94], 1
call fcn.004da87c
push esi
mov esi, dword [esp + 0xa0]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x98], 0
call fcn.004da87c
mov ecx, dword [esp + 0x90]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x98
ret
Function at 0x47dd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503c28
push 0x4c5b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.shell32.dll_SHGetMalloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jl 0x47dd96
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jl 0x47dd96
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.shell32.dll_SHGetPathFromIDList]
test eax, eax
jne 0x47dd96
mov esi, 0x8007065b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
call fcn.0047ddba
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47dde0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
push edi
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov al, byte [0x536ec0]
mov ecx, 0x40
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x47de35
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x47de4d
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.GetWindowsDirectory_failed
call fcn.0045b7f0
add esp, 0x10
mov esi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004da8ea
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x47dfe0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x50a5b8
push 1
push 0
push 0x50a5a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x47e0b9
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x218]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x220]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x224]
push ecx
push esi
mov edx, dword [eax]
push eax
call dword [edx + 0x44]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x50a688
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x47e0af
mov eax, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret

Function at 0x47e330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f8218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
lea ecx, [esp + 4]
push eax
push ecx
call fcn.0047e1b0
add esp, 8
mov edx, dword [esp + 0x24]
lea eax, [esp + 4]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.004dab11
push str..lnk
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x24], 1
call fcn.004dab11
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 3
call fcn.004da87c
mov eax, dword [esp + 0x20]
push eax
call fcn.0045f480
lea ecx, [esp + 0x10]
push ecx
call fcn.0047df40
mov esi, dword [eax]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x28], 4
call fcn.0045f210
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x30], 5
call fcn.0045fa00
add esp, 0x18
lea ecx, [esp + 8]
mov byte [esp + 0x18], 4
call fcn.004da87c
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call fcn.004da87c
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.004da87c
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x47e4d0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f8270
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.advapi32.dll_RegSetValueA]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push 0x80000000
call ebp
test eax, eax
jne 0x47e609
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push esi
push 0x80000000
call ebp
test eax, eax
jne 0x47e609
mov eax, dword [0x532934]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x18]
push str._sDefaultIcon
push ecx
mov byte [esp + 0x2c], 1
call fcn.004d383a
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
add esp, 0xc
lea eax, [esp + 0x10]
push edx
push edi
push str._s__d
push eax
call fcn.004d383a
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push ecx
push 0x80000000
call ebp
test eax, eax
jne 0x47e5eb
push esi
lea edx, [esp + 0x18]
push str._s_shellopencommand
push edx
call fcn.004d383a
mov eax, dword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
push edi
push str._s____1___s
push ecx
call fcn.004d383a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push edx
push 0x80000000
call ebp
test eax, eax
je 0x47e61e
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004da87c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.004da87c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.shell32.dll_SHChangeNotify]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004da87c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47e8e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4f8316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push esi
push edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov ebx, dword [esp + 0x17c]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], 0x44
cmp ecx, 0x103
jbe 0x47e97f
mov eax, dword [0x532934]
mov dword [esp + 0xc], eax
push ebx
lea ecx, [esp + 0x10]
push str.Cannot_start_program___s_
push ecx
mov dword [esp + 0x180], 0
call fcn.004d383a
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push edx
call fcn.0045b7f0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x174], 0xffffffff
call fcn.004da87c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x47ea20
mov ecx, dword [0x532934]
mov dword [esp + 0x10], ecx
push ebx
lea edx, [esp + 0x14]
push str.Cannot_start_program___s_
push edx
mov dword [esp + 0x180], 1
call fcn.004d383a
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.004da87c
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret
Function at 0x47ea50
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x74c
mov al, byte [0x536ec0]
push ebx
push esi
push edi
mov byte [esp + 0x64], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x64]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x47ea9d
lea edx, [esp + 0x64]
mov edi, str.DelUS.bat
jmp 0x47eace
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
movsx eax, byte [esp + ecx + 0x63]
cmp eax, 0x5c
je 0x47eac5
cmp eax, 0x2f
je 0x47eac5
lea edx, [esp + 0x64]
mov edi, str.DelUS.bat
jmp 0x47eace
lea edx, [esp + 0x64]
mov edi, 0x52cc79
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x8000080
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x78]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47ec2c
lea ecx, [esp + 0x168]
push 0x104
push ecx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea ecx, [esp + 0x26c]
push 0x5c
push ecx
call fcn.004c5bf0
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x64]
lea eax, [esp + 0x26c]
push edx
lea ecx, [esp + 0x16c]
push eax
lea edx, [esp + 0x170]
push ecx
push edx
lea eax, [esp + 0x380]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s__r_n
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x370]
push 0
push ecx
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [esp + 0x37c]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov word [esp + 0x50], ax
push ecx
push edx
push 0x52468c
push eax
push 4
push eax
push eax
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0x40], 0x44
push eax
push 0
mov dword [esp + 0x74], 1
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x47ec2c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_ResumeThread]
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x74c
ret
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.DeleteExecutableBF_failed
call fcn.0045b960
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x74c
ret
Function at 0x47ed30
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f8378
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0047ec50
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push edx
call fcn.0045f2b0
add esp, 0xc
test eax, eax
je 0x47ed9e
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call fcn.004da87c
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x47edd0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4f83b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0047ec50
add esp, 8
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x20], 0
call fcn.004dab11
mov edx, dword [esp + 0x1c]
lea eax, [esp + 4]
push edx
push eax
mov byte [esp + 0x1c], 1
call fcn.0045f210
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x1c], 2
push ecx
call fcn.0045f530
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.004c2d39
add esp, 0x14
test eax, eax
je 0x47eeaf
mov eax, dword [esp + 0x1c]
push 0
push eax
push esi
call dword [sym.imp.kernel32.dll_CopyFileA]
test eax, eax
jne 0x47eeaf
mov ecx, dword [0x532934]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push esi
push str.Cannot_copy_file___s__to___s_:___d___s
push eax
mov byte [esp + 0x24], 3
call fcn.004d383a
mov esi, dword [esp + 0x30]
add esp, 0x10
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 2
call fcn.004da87c
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.004da87c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.004da87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x47f100
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push 5
push esi
call dword [sym.imp.user32.dll_ShowWindow]
push esi
call dword [sym.imp.user32.dll_SetForegroundWindow]
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, 1
pop esi
ret