joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499ea7
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x499eba
mov al, 1
jmp 0x49a036
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x499efa
lea ecx, [esi + 0x34]
call fcn.004406e5
fcomp qword [0x4f23e8]
fnstsw ax
test ah, 0x44
jnp 0x499efa
mov eax, dword [ebp + 8]
cmp byte [eax], 6
je 0x499ef3
or dword [eax + 8], 0xffffffff
push str.Transcode_process_failed_to_start
lea ecx, [eax + 0x20]
mov byte [eax], 3
call fcn.0048e740
xor al, al
jmp 0x49a035
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
test eax, eax
jne 0x49a022
call fcn.00499ccd
push dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
or dword [esi + 0x30], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
push dword [esi + 8]
call ebx
and dword [esi + 8], 0
cmp dword [edi + 8], 0
jne 0x499fbb
lea ecx, [esi + 0x24]
call fcn.0048e806
push eax
lea ecx, [esi + 0x20]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x499f71
mov byte [edi], 6
mov dword [edi + 4], 0x3e8
jmp 0x499fa1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov dword [edi + 8], eax
lea eax, [ebp + 8]
push str.Error_moving_file:__d
push eax
mov byte [edi], 3
call fcn.0048ee07
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x20]
call fcn.0048e740
lea ecx, [ebp + 8]
call fcn.0048e50a
cmp byte [0x54bc14], 0
je 0x49a01e
lea ecx, [esi + 0x2c]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x49a01e
lea ecx, [esi + 0x20]
mov byte [edi], 3
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
add esi, 0x3c
push esi
lea ecx, [ebp + 8]
call fcn.0048ee5a
push dword [ebp + 8]
lea esi, [edi + 0x20]
mov ecx, esi
call fcn.0048e740
lea ecx, [ebp + 8]
call fcn.0048e50a
mov ecx, esi
call fcn.0048e72c
test eax, eax
jne 0x49a01e
push dword [ebp - 4]
lea eax, [ebp + 8]
push str.Process_aborted_with_error__d
push eax
call fcn.0048ee07
add esp, 0xc
push dword [eax]
mov ecx, esi
call fcn.0048e740
lea ecx, [ebp + 8]
call fcn.0048e50a
xor al, al
jmp 0x49a034
mov byte [edi], 1
call fcn.00499ccd
cmp dword [esi + 0x14], ebx
je 0x49a032
mov byte [edi], 2
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x49a765
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push dword [ebx + 4]
xor edi, edi
lea esi, [ebp - 0x10]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.0049a4bf
test al, al
jne 0x49a7a2
xor bl, bl
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], edi
call fcn.0048e45f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x49a7dd
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x49a7d7
xor edi, edi
mov byte [ebp - 1], 0
test esi, esi
jle 0x49a7d7
mov eax, dword [ebp - 0x10]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x49a7c6
inc esi
cmp esi, dword [ebp - 8]
jb 0x49a7a9
xor edi, edi
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x49a7f8
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x49a7e6
cmp byte [ebp - 1], 0
je 0x49a801
inc dword [ebx + 0x14]
mov bl, byte [ebp - 1]
jmp 0x49a790

Function at 0x49a806
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x14], ebx
jne 0x49a82d
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.0048e45f
jmp 0x49a871
push esi
push dword [edi + 4]
lea esi, [ebp - 0xc]
call fcn.0049a4bf
test al, al
je 0x49a865
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x49a862
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, dword [ebp - 4]
jb 0x49a844
dec dword [edi + 0x14]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.0048e45f
pop esi
pop edi
pop ebx
leave
ret

Function at 0x49bafd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], 0x80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49bb50
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048ac0c
mov edi, dword [ebp + 0x18]
push 5
pop ecx
lea esi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x49e9f7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
inc edi
push edi
push 0
push 2
push 2
mov esi, ecx
call fcn.004705be
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x49ea3e
test dword [0x545154], 0x800000
je 0x49ea37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.0041ff68
pop ecx
pop ecx
xor al, al
jmp 0x49eaf2
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x49ea98
push 0x76c
push eax
lea ecx, [ebp - 0x20]
call fcn.0048abbb
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0046e951
test eax, eax
je 0x49ea9c
test dword [0x545154], 0x800000
je 0x49ea98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.0041ff68
pop ecx
pop ecx
xor al, al
jmp 0x49eaf1
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call edi
push str.0.0.0.0
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 4]
call ebx
test eax, eax
je 0x49eae8
test dword [0x545154], 0x800000
je 0x49eae8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.0041ff68
pop ecx
pop ecx
mov ecx, esi
call fcn.0046f01d
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

Function at 0x49ebf6
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
mov eax, 0x6c07
mov esi, ecx
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x62
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4

Function at 0x4a0a01
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x34], 2
jne 0x4a0a69
lea ecx, [esi + 0x28]
call fcn.0048e806
push eax
lea eax, [ebp - 4]
push str._s:_
push eax
call fcn.0048ee25
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a0a57
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
jmp 0x4a0a5f
and dword [esi + 0x2c], 0
and dword [esi + 0x30], 0
lea ecx, [ebp - 4]
call fcn.0048e50a
jmp 0x4a0a71
and dword [esi + 0x2c], 0
and dword [esi + 0x30], 0
pop esi
leave
ret
Function at 0x4a0a74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
mov esi, ecx
cmp dword [esi + 0x34], 2
jne 0x4a0a8e
xor eax, eax
inc eax
jmp 0x4a0b75
push ebx
movzx ebx, word [ebp + 8]
push ebx
lea eax, [ebp - 4]
push 0x50cd08
push eax
call fcn.0048ee25
push ebx
lea eax, [ebp + 8]
push str._c:_
push eax
call fcn.0048ee25
add esp, 0x18
mov eax, 0x104
push eax
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp + 8]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
pop ebx
test eax, eax
je 0x4a0b5d
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x1c]
call fcn.0048e82b
mov ecx, dword [ebp + 0xc]
call fcn.0048e806
push eax
lea ecx, [esi + 0x20]
call fcn.0048e82b
mov ecx, dword [ebp + 0x10]
call fcn.0048e806
push eax
lea ecx, [esi + 0x24]
call fcn.0048e82b
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
lea ecx, [esi + 0x28]
call fcn.0048e82b
mov ecx, esi
mov dword [esi + 0x34], 2
call fcn.004a0a01
push 7
push esi
call fcn.004336a1
mov ecx, eax
call fcn.004335af
lea ecx, [ebp + 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
jmp 0x4a0a86
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x4a0bce
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push 0x41
pop eax
push 0x3a
mov word [ebp - 8], ax
pop eax
mov word [ebp - 6], ax
push 0x5c
pop eax
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x4a0c12
lea ecx, [ebp + 8]
call fcn.0048e50a
mov eax, esi
pop esi
pop ebx
leave
ret 8
test bl, 1
je 0x4a0c6e
lea eax, [esi + 0x41]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x4a0c6e
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4a0c6e
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e7e6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040389f
test al, al
jne 0x4a0c7a
lea ecx, [ebp - 0xc]
call fcn.0048e50a
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x4a0c12
xor esi, esi
jmp 0x4a0c02
mov cx, word [ebp - 8]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
lea ecx, [ebp - 0xc]
call fcn.0048e50a
xor esi, esi
inc esi
jmp 0x4a0c02

Function at 0x4a1bbc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x549e50], ecx
xor ecx, ecx
inc ecx
mov eax, 0x549e50
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x54a80c
jl 0x4a1bcb
mov dword [0x537570], ecx
pop esi
ret
Function at 0x4a1caf
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x537570]
cmp eax, 0x270
jl 0x4a1d6e
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x549e54]
xor eax, dword [ecx + 0x549e50]
and eax, esi
xor eax, dword [ecx + 0x549e50]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x537574]
xor eax, dword [ecx + 0x54a484]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x549e50], eax
jl 0x4a1cc8
cmp edx, 0x26f
jge 0x4a1d40
lea ecx, [edx*4 + 0x549e50]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x537574]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x54a80c
jl 0x4a1d13
mov ecx, dword [0x54a80c]
mov eax, dword [0x549e50]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x537574]
pop edi
xor eax, dword [0x54a480]
pop esi
mov dword [0x54a80c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x549e50]
inc eax
mov dword [0x537570], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a2f9b
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x4a2f81
inc ecx
cmp dword [esp + 0x14], 0
je 0x4a2f8b
or ecx, 2
test eax, ecx
je 0x4a2f9b
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop edi
pop esi
ret 0xc

Function at 0x4a3293
Capabilities:
Get common file path

Disassembly:
cmp byte [0x54b0a2], 0
je 0x4a32d3
cmp byte [0x54afd4], 0
je 0x4a32be
mov ecx, dword [0x54b0ac]
call fcn.004a391c
test al, al
je 0x4a32be
mov ecx, 0x54b0ac
call fcn.004a3178
mov ecx, dword [0x54b0ac]
test ecx, ecx
je 0x4a32d3
cmp word [ecx], 0
sete al
test al, al
je 0x4a32d8
jmp fcn.0047238a
jmp fcn.00422199
Function at 0x4a3787
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
push str.ReplaceFileW
push 0x4f55bc
mov edi, edx
mov dword [ebp - 8], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a3847
push dword [0x548aa0]
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
push eax
push edi
push str._s._u.tmp
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0048d35b
push edi
push str._s.new
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0048d35b
add esp, 0x28
push 0
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 0
push 2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call dword [ebp - 4]
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4a3847
push 4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
leave
ret

Function at 0x4a4326
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x174
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
lea edi, [ebx + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, str.UuidCreateSequential
mov ecx, 0x50c918
stosd dword es:[edi], eax
call fcn.004a3dac
test eax, eax
je 0x4a4366
lea ecx, [ebp + 0x60]
push ecx
call eax
test eax, eax
jne 0x4a4366
lea esi, [ebp + 0x6a]
lea edi, [ebx + 4]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push edi
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebx + 0xa]
push eax
push edi
push edi
push 0x50e274
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
lea ecx, [ebp - 0xfc]
call fcn.004e64ac
push 0xe
push ebx
lea ecx, [ebp - 0xfc]
call fcn.004e7793
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004e64ac
push 0xa
push esi
lea ecx, [ebp - 0x14]
call fcn.004e7793
lea esi, [ebx + 4]
push eax
mov ecx, esi
call fcn.004078ab
lea ecx, [ebp - 0x88]
call fcn.004e64ac
push 4
push ebx
lea ecx, [ebp - 0x88]
call fcn.004e7793
xor ecx, ecx
mov edx, dword [ecx + eax]
add dword [esi + ecx], edx
add ecx, 4
cmp ecx, 0x14
jne 0x4a43d7
lea ecx, [ebp - 0x88]
call fcn.004e64d1
lea ecx, [ebp - 0x14]
call fcn.004e64d1
lea ecx, [ebp - 0xfc]
call fcn.004e64d1
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x4a4532
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.0046e3e5
push 0x21c
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.004a44e5
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
test al, al
je 0x4a45aa
mov eax, str.Sysnative..explorer.exe
lea edx, [ebp + ebx*2 - 0x440]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x4a457c
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push eax
push edi
push edi
call esi
xor ebx, ebx
cmp eax, 0x20
setle bl
cmp ebx, edi
je 0x4a45df
mov ebx, dword [ebp - 8]
mov eax, str.explorer.exe
lea edx, [ebp + ebx*2 - 0x440]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x4a45b8
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push eax
push edi
push edi
call esi
xor ebx, ebx
cmp eax, 0x20
setle bl
call fcn.0046e3c9
xor eax, eax
cmp ebx, edi
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x4a4926
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
call fcn.00472219
movzx ebx, al
mov eax, 0x4f80a4
test ebx, ebx
je 0x4a4951
mov eax, str..new
push eax
push edi
push 0x4f1b5c
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0048d35b
add esp, 0x14
push 0
push 0x80
push 7
pop edx
lea ecx, [ebp - 0x210]
call fcn.0047246a
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a498c
xor al, al
jmp 0x4a49f4
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.004a3a50
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
cmp ebx, esi
je 0x4a49df
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.004a3787
movzx eax, al
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4a49df
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp + 8], esi
jne 0x4a49f2
cmp dword [ebp - 4], esi
jne 0x4a49ed
cmp ebx, esi
jne 0x4a49f2
xor eax, eax
inc eax
jmp 0x4a49f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a49fb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4a09
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [edi + 1]
test eax, eax
js 0x4a4a2d
lea eax, [edi + edi + 2]
call fcn.00401000
mov esi, esp
jmp 0x4a4a40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
mov dword [0x54f62c], eax
mov dword [0], esi
lea eax, [edi + edi + 2]
push eax
push ebx
push esi
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x5c
pop ebx
cmp word [esi], bx
jne 0x4a4a72
cmp word [esi + 2], bx
jne 0x4a4a72
lea eax, [esi + 4]
cmp word [eax], 0x3f
jne 0x4a4a85
cmp word [esi + 6], bx
jne 0x4a4a85
add esi, 8
cmp edi, 3
jl 0x4a4a81
cmp word [esi + 2], 0x3a
jne 0x4a4a81
add esi, 6
mov ecx, esi
jmp 0x4a4acb
push 2
pop ecx
mov esi, eax
movzx eax, word [esi]
inc esi
inc esi
cmp ax, bx
jne 0x4a4a97
dec ecx
je 0x4a4a81
test ax, ax
jne 0x4a4a8a
xor al, al
jmp 0x4a4ada
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4a4abc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4a4a9c
cmp word [esi], 0
mov eax, ebx
mov word [esi - 2], ax
je 0x4a4ad8
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00422241
mov esi, eax
test esi, esi
jne 0x4a4aa0
mov al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a4e61
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x4a4ece
call ebx
cmp eax, 0xea
jne 0x4a4ece
mov ecx, dword [ebp - 4]
lea ecx, [ecx + ecx + 2]
call fcn.0046b19f
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x4a4ed5
call ebx
mov dl, 1
mov ecx, edi
call fcn.0046b197
mov ecx, dword [ebp - 8]
push 0x4f3a50
call fcn.0048e7e6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
call ebx
cmp dword [ebp - 0xc], edi
je 0x4a4eb0
test edi, edi
je 0x4a4eb0
mov eax, dword [ebp - 8]
mov dword [eax], edi
jmp 0x4a4ec9

Function at 0x4a4ee0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a4ef6
xor al, al
jmp 0x4a4f46
push edi
add esi, esi
lea eax, [esi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
xor ecx, ecx
push ebx
push eax
mov word [esi + eax], cx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
pop edi
pop esi
pop ebx
ret