joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073f0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40743b
mov eax, dword [esp + 0x24]
push ebx
push esi
push 0x10020
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x407436
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x407440
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407485
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x407480
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret

Function at 0x407490
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set file attributes
Start service

Disassembly:
sub esp, 0x38
mov eax, dword [0x41f608]
mov dword [esp + 0x34], eax
mov al, 0x72
mov cl, 0x44
mov dl, 0x5c
mov byte [esp + 2], al
mov byte [esp + 6], al
mov al, 0x73
push esi
push 0x42019c
mov byte [0x42019c], 0x50
mov byte [0x42019d], 0x43
mov byte [0x42019e], 0x49
mov byte [0x42019f], cl
mov byte [0x4201a0], 0x75
mov byte [0x4201a1], 0x6d
mov byte [0x4201a2], 0x70
mov byte [0x4201a3], 0
mov byte [esp + 8], dl
mov byte [esp + 9], cl
mov byte [esp + 0xb], 0x69
mov byte [esp + 0xc], 0x76
mov byte [esp + 0xd], 0x65
mov byte [esp + 0xf], al
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x43
mov byte [esp + 0x13], 0x49
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], 0x75
mov byte [esp + 0x16], 0x6d
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x79
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], 0
call fcn.004073f0
add esp, 4
push 0x104
push 0x420070
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 4]
push eax
push 0x420070
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push 0x420070
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x40]
push 0x420070
push 0x418308
push 0xc9
push ecx
call fcn.00407070
add esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4075d9
push ebp
push edi
push 0x10010
push 0x42019c
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4075d4
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
xor eax, eax
pop esi
call fcn.0040e486
add esp, 0x38
ret
Function at 0x4075f0
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set file attributes
Start service

Disassembly:
sub esp, 0x38
mov eax, dword [0x41f608]
mov dword [esp + 0x34], eax
mov al, 0x72
push ebx
mov cl, 0x44
mov dl, 0x5c
mov byte [esp + 6], al
mov byte [esp + 0xa], al
mov al, 0x73
push esi
mov bl, 0x70
push 0x42019c
mov byte [0x42019c], 0x50
mov byte [0x42019d], 0x43
mov byte [0x42019e], 0x49
mov byte [0x42019f], cl
mov byte [0x4201a0], 0x75
mov byte [0x4201a1], 0x6d
mov byte [0x4201a2], bl
mov byte [0x4201a3], 0
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], cl
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], 0x65
mov byte [esp + 0x13], al
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x50
mov byte [esp + 0x16], 0x43
mov byte [esp + 0x17], 0x49
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x75
mov byte [esp + 0x1a], 0x6d
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x79
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
call fcn.004073f0
add esp, 4
push 0x104
push 0x420070
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 8]
push eax
push 0x420070
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push 0x420070
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x44]
push 0x420070
push 0x418308
push 0xca
push ecx
call fcn.00407070
add esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x407738
push edi
push 0x10010
push 0x42019c
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x407734
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
pop edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..ABCDEFDOS
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x3c]
pop esi
pop ebx
call fcn.0040e486
add esp, 0x38
ret

Function at 0x407770
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0x42019c
call fcn.004073f0
add esp, 4
push 0
push 0x80
push 5
push 0
push 2
push 0x40000000
push 0x420070
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4077ef
mov edx, dword [0x4201ac]
mov eax, dword [0x4201a8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
mov ecx, dword [0x4201a8]
push ecx
call fcn.0040e4ec
push 0x42019c
call fcn.00407440
add esp, 8
pop edi
pop esi
pop ecx
ret
Function at 0x407800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x41f608]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [esp + 0x24], eax
mov dword [0x420004], ebx
mov dword [0x420008], ebx
mov dword [0x42000c], ebx
mov dword [0x420010], ebx
mov dword [0x420014], ebx
mov dword [0x420018], ebx
mov dword [0x42001c], ebx
mov dword [esp + 0x14], ebx
mov esi, 1
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push str._02d
push ecx
mov word [esp + 0x2c], ax
call fcn.0040e494
mov edx, dword [esi*4 + 0x420000]
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
push str.SOFTWAREINTEL
push 0x80000002
mov dword [esp + 0x38], edx
call edi
test eax, eax
jne 0x4078ca
mov eax, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
lea edx, [esp + 0x28]
push edx
push eax
call ebp
test eax, eax
je 0x4078bf
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4078c4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 7
jle 0x407851
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0x18
ret
Function at 0x407c80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407cab
xor al, al
pop esi
ret 0xc
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 0xc

Function at 0x407df0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xb4
mov eax, dword [0x41f608]
push ebx
push 0
push 0x80
push 3
push 0
push 0
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407e42
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 8
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x407e86
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 8
push ebp
push esi
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x6c]
mov ebp, eax
call fcn.00402a40
push esi
push ebp
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x74]
call fcn.00403340
mov ecx, dword [esp + 0xcc]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.00403410
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [esp + 0xc0]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0xb4
ret 8

Function at 0x407f00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f28
xor eax, eax
pop esi
ret 4
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x408180
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x324], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
mov ecx, edx
call fcn.004080e0
test al, al
je 0x408317
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x11c]
push ecx
call esi
push str.HELP
lea edx, [esp + 0x11c]
push edx
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call fcn.0040ee6a
push eax
call fcn.0040ee3d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov byte [esp + 0x228], 0
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esp, 8
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], 0
call fcn.0040ee47
push 0x64
mov edi, eax
call ebx
call fcn.0040ee47
imul eax, edi
push 0xa
lea edx, [esp + 0x224]
push edx
push eax
call fcn.0040edb3
add esp, 0xc
push str..wav
lea eax, [esp + 0x224]
push eax
call esi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x14]
push edx
call edi
push 0x41841c
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40832e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call ebx
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0xc], eax
jl 0x408261
xor al, al
mov ecx, dword [esp + 0x32c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x408317
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x32c]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408380
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x324], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
mov ecx, edx
call fcn.004080e0
test al, al
je 0x408517
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x11c]
push ecx
call esi
push str.HELP
lea edx, [esp + 0x11c]
push edx
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call fcn.0040ee6a
push eax
call fcn.0040ee3d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov byte [esp + 0x228], 0
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esp, 8
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], 0
call fcn.0040ee47
push 0x64
mov edi, eax
call ebx
call fcn.0040ee47
imul eax, edi
push 0xa
lea edx, [esp + 0x224]
push edx
push eax
call fcn.0040edb3
add esp, 0xc
push str..JPG
lea eax, [esp + 0x224]
push eax
call esi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x14]
push edx
call edi
push 0x41841c
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40852e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call ebx
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0xc], eax
jl 0x408461
xor al, al
mov ecx, dword [esp + 0x32c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x408517
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x32c]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408580
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xb4
mov eax, dword [0x41f608]
push ebx
push 0
push 0x80
push 3
push 0
push 1
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4085d2
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 0xc
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x408616
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 0xc
push edi
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x68]
mov edi, eax
call fcn.00402a40
mov edx, dword [esp + 0xc8]
push edx
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
call fcn.00403340
mov edx, dword [esp + 0xcc]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x6c]
call fcn.00403410
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0xb4
ret 0xc
Function at 0x408990
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4089c1
xor al, al
pop ebx
pop ecx
ret 8
push ebp
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x4089f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push esi
push edi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
push edi
push esi
call fcn.00408920
push esi
mov byte [esp + 0x1c], al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov al, byte [esp + 0x18]
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x408b60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x41f608]
push esi
push edi
mov dword [esp + 0x124], eax
xor eax, eax
mov word [esp + 0x18], 0x20
mov ecx, 0x40
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402750
add esp, 8
test al, al
je 0x408c21
mov eax, dword [esp + 0x11]
push eax
call fcn.00402720
add esp, 4
test al, al
jne 0x408bcd
xor edi, edi
jmp 0x408bec
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x408be7
mov eax, dword [esp + 8]
test eax, eax
je 0x408be7
cmp ecx, eax
sbb eax, eax
not eax
and eax, ecx
jmp 0x408be9
xor eax, eax
lea edi, [eax + 0x1d]
mov esi, dword [ebp + 8]
push 0
push esi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408c21
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408c37
xor al, al
mov ecx, dword [esp + 0x124]
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 2
push 0
neg edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
mov al, 1
call fcn.0040e486
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408fd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x417668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x41f608]
push ebx
push esi
push edi
mov edi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x3c], eax
mov esi, ecx
call fcn.00408b60
push edi
lea ecx, [esp + 0x10]
call fcn.00401860
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], ebx
call fcn.004018e0
test al, al
je 0x409056
xor eax, eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2d], eax
push ecx
mov ecx, esi
mov byte [esp + 0x28], bl
mov dword [esp + 0x35], eax
call fcn.00407d10
test al, al
je 0x409056
push 0x10
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, esi
call fcn.00407c80
test al, al
jne 0x40906b
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004018b0
xor al, al
jmp 0x4090d0
push ebx
call fcn.0040ee6a
push eax
call fcn.0040ee3d
add esp, 8
call fcn.0040ee47
mov ecx, esi
mov ebx, eax
call fcn.00407ce0
mov ecx, eax
imul ecx, ebx
mov eax, 0xaaaaaaab
mul ecx
mov dword [esp + 0x14], ecx
shr edx, 1
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00407ce0
mov dword [esp + 0x1d], eax
push 0xd
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, esi
mov byte [esp + 0x28], 0x64
call fcn.00407c80
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004018b0
mov al, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0040e486
add esp, 0x3c
ret 4
Function at 0x4091a0
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x41f608]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x338], eax
push edi
lea eax, [esp + 0x10]
push eax
push ebx
mov esi, ecx
call fcn.00402750
add esp, 8
test al, al
je 0x409269
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x128], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00408180
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00408380
cmp byte [esp + 0x18], 0x65
jne 0x409235
lea eax, [esp + 0x20]
push eax
push ebx
mov ecx, esi
call fcn.00408690
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.004090f0
test al, al
jne 0x409280
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call esi
xor al, al
mov ecx, dword [esp + 0x33c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov byte [esp + 0x230], 0
mov ecx, 0x40
lea edi, [esp + 0x231]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x230]
push eax
mov ecx, esi
call fcn.004080e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x234]
push ecx
call esi
push str.HELP
lea edx, [esp + 0x234]
push edx
call esi
push ebx
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
push ecx
jne 0x40931d
call esi
lea edx, [esp + 0x128]
push edx
call esi
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor al, al
mov ecx, dword [esp + 0x33c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call esi
lea edx, [esp + 0x128]
push edx
call esi
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x33c]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4