joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b85f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.0048ab7d
push str.Find:
lea eax, [esp + 0x18]
mov dword [ebx + 0x30], 0x17
push eax
mov ecx, ebx
call main
mov esi, dword [ebx + 4]
xor edi, edi
push edi
push edi
mov eax, dword [eax]
mov dword [ebx + 0x40], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
push 0xde
push esi
push 0x50
push 0x12c
push 2
push 0x32
push 0x44010042
push 0x4d8a44
push str.ComboBox
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
lea esi, [ebx + 0x44]
mov dword [esi], eax
push dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 4
push dword [esi]
call edi
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call main
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
add eax, 3
push str.Replace:
mov ecx, esi
mov dword [esi + 0x30], eax
lea eax, [esp + 0x18]
push eax
call main
push 0
push 0
mov eax, dword [eax]
mov dword [esi + 0x68], eax
mov esi, dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
push 0xe7
push esi
push 0x50
push 0x12c
push 2
push 0x32
push 0x40010042
push 0x4d8a44
push str.ComboBox
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [esp + 0x10]
push 0
mov dword [esi + 0x6c], eax
push dword [esi + 0xc]
push 0x30
push eax
call ebx
push 4
push dword [esi + 0x6c]
call edi
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
xor edi, edi
mov ecx, esi
inc edi
push edi
push 0x4edef8
push eax
call fcn.00489b42
push ebx
push 0xec
push 0x4edf10
mov eax, dword [eax]
mov ecx, esi
mov dword [esi + 0x60], eax
lea eax, [esp + 0x20]
push eax
call fcn.00489b42
push ebx
push 0xed
push 0x4edf1c
mov eax, dword [eax]
mov ecx, esi
mov dword [esi + 0x70], eax
lea eax, [esp + 0x20]
push eax
call fcn.00489b42
push ebx
push 0xee
push str.In_Selection
mov eax, dword [eax]
mov ecx, esi
mov dword [esi + 0x64], eax
lea eax, [esp + 0x20]
push eax
call fcn.00489b42
push edi
mov ecx, esi
mov eax, dword [eax]
mov dword [esi + 0x74], eax
lea eax, [esp + 0x18]
push dword [0x505228]
push dword [0x505220]
push eax
call fcn.00489b42
push edi
mov ecx, esi
mov eax, dword [eax]
mov dword [esi + 0x48], eax
lea eax, [esp + 0x18]
push dword [0x505240]
push dword [0x505238]
push eax
call fcn.00489b42
push edi
mov ecx, esi
mov eax, dword [eax]
mov dword [esi + 0x50], eax
lea eax, [esp + 0x18]
push dword [0x505234]
push dword [0x50522c]
push eax
call fcn.00489b42
push edi
mov ecx, esi
mov eax, dword [eax]
mov dword [esi + 0x4c], eax
lea eax, [esp + 0x18]
push dword [0x50524c]
push dword [0x505244]
push eax
call fcn.00489b42
push edi
mov eax, dword [eax]
mov dword [esi + 0x54], eax
push dword [0x505258]
push dword [0x505250]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00489b42
pop edi
mov eax, dword [eax]
mov dword [esi + 0x58], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b4b7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x49b4c1
push 0x14
push 0x4f8748
call fcn.0049bc90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x49b4ef
xor ebx, ebx
jmp 0x49b522
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x49b4eb
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x49b4eb
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x49b522
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a2216
test eax, eax
jne 0x49b536
push 0x1c
call main
pop ecx
call fcn.0049d03c
test eax, eax
jne 0x49b547
push 0x10
call main
pop ecx
call fcn.004a1725
and dword [ebp - 4], 0
call fcn.004a1f62
test eax, eax
jns 0x49b561
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x507a08], eax
call main
mov dword [0x50668c], eax
call main
test eax, eax
jns 0x49b587
push 8
call main
pop ecx
call fcn.004ace25
test eax, eax
jns 0x49b598
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x49b5ab
push eax
call main
pop ecx
call fcn.004ad07c
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x49b5cd
push esi
call main
call fcn.0049470a
jmp 0x49b602
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0049bcd5
ret
Function at 0x403e97
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.0040372f
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.00403f05
push esi
call fcn.00407840
pop ecx
pop ecx
dec eax
js 0x403ef3
cmp byte [eax + esi], 0x2e
jne 0x403eea
add eax, esi
push str._as_a
push eax
call fcn.00407750
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403f05
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 0x403f1c
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.00407750
lea eax, [ebp - 0x208]
push eax
call fcn.00407840
add esp, 0xc
test eax, eax
je 0x403f62
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403f62
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.00407760
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 0x404068
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00407750
pop ecx
test esi, esi
pop ecx
jne 0x403fbc
lea eax, [ebp - 0x104]
push 0x40f044
push eax
call fcn.00407760
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407760
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x404035
lea eax, [ebp - 0x31c]
push 0x40f0ac
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
lea eax, [ebp - 0x31c]
push 0x40f0a8
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403f1c
add esp, 0xc
jmp 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x404061
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403f94
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
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 0x41078d
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 str._as_a
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 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, 0x410c93
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, str.O77_aC
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 str._as_a
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 0x41096d
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 str._as_a
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 str._as_a
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 0x40704c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f60
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407080
push dword [ebp + 8]
call fcn.00404825
test eax, eax
pop ecx
jne 0x4071be
mov edi, str.__aCGS
push ebx
push edi
call fcn.004034ae
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070a4
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, str._as_a
push ebx
push esi
call fcn.004034ae
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070c9
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e97
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071be
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405705
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.0040406e
push dword [ebp - 4]
push edi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
push dword [ebp - 8]
push esi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407760
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405226
lea eax, [ebp - 0x10c]
push eax
call fcn.00403f05
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406608
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dde
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406066
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fd5
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f88
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x40735d
call fcn.004071c3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014f1
Capabilities:
Set registry value

Disassembly:
push 0x406097
call fcn.00401e40
mov dword [0x40402d], eax
push 0x406497
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57347C2D100652080B15244501160E080B1539550C356E2047332065686C2C20686B206B5B6E206454617514585347165E20533417415651555C
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push dword [0x40402d]
push 0x406097
push 1
push 0
push str.050A59071B1D451000520C1D150C730C1956020A0B4D0B0B49334F1C6574206D656172207365676765
push dword [0x406497]
call sub.advapi32.dll_RegSetValueExA
push dword [0x406497]
call sub.advapi32.dll_RegCloseKey
jmp 0x401551
call 0x4018a1
call 0x401784
push 0x405f97
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x401576
call fcn.004015e4
jmp 0x4015d8
push 0x40689f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x401591
call fcn.00401605
jmp 0x4015d8
push 0x406a9f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x4015ac
call fcn.00401649
jmp 0x4015d8
push 0x406c9f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x4015c7
call fcn.0040168d
jmp 0x4015d8
call fcn.004015d9
jmp 0x4015d8
ret

Function at 0x4016d1
Capabilities:
Create process on windows
Set registry value

Disassembly:
push 0x406497
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57340020312863181713174E073302151620044E3E20034114100023000049002C1345081C1A490B0B0008501A0C1B4E1E3961721036555F5727
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push 0x40649b
push 0x406e9f
push dword [0x406497]
call sub.advapi32.dll_RegCreateKeyA
push 1
push 0x403c48
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push 5
push 0
push 0
push 0x406297
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x40173f
push 0x406d9f
call fcn.00401e40
mov dword [0x40402d], eax
push dword [0x40402d]
push 0x406d9f
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40649b]
call sub.advapi32.dll_RegCloseKey
push dword [0x406497]
call sub.advapi32.dll_RegCloseKey
ret

Function at 0x401981
Capabilities:
Enumerate processes

Disassembly:
mov byte [0x403c49], 0
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [0x405994], eax
mov dword [0x4057e4], 0x128
push 0x4057e4
push dword [0x405994]
call sub.kernel32.dll_Process32First
mov dword [0x404197], 1
jmp 0x4019d1
push 0x4057e4
push dword [0x405994]
call sub.kernel32.dll_Process32Next
mov dword [0x404197], eax
push 0x405808
call fcn.00401e40
mov dword [0x40402d], eax
push 5
push 0x405808
push str.0538732F26200E362D6545494C0C00494B004B494E0044450067004E4554004D454152005345474745496B20525ACF2072752065406C2C202000000900000017100022490249544906450A1B4E5301024722
call fcn.00401dd0
cmp eax, 0
je 0x4019f8
jmp 0x4019ff
mov byte [0x403c49], 1
xor eax, eax
cmp dword [0x404197], 1
je 0x4019bc
push dword [0x405994]
call sub.kernel32.dll_CloseHandle
ret