joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00405859
mov edi, eax
pop ecx
lea ecx, [edi - 1]
cmp ecx, 0x100
ja 0x4011b7
push 0x5c
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x401043
mov word [esi + edi*2], ax
inc edi
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x260], eax
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4010fa
test byte [ebp - 0x258], 0x10
je 0x4010db
lea eax, [ebp - 0x22c]
push 0x41aa3c
push eax
call fcn.00405874
pop ecx
pop ecx
test eax, eax
je 0x4010d5
lea eax, [ebp - 0x22c]
push 0x41aa40
push eax
call fcn.00405874
pop ecx
pop ecx
test eax, eax
je 0x4010d5
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00405780
add esp, 0xc
xor edx, edx
inc edx
xor ecx, ecx
push ebx
push esi
call section..text
pop ecx
pop ecx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401075
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401196
test byte [ebp - 0x258], 0x10
jne 0x401177
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00405780
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401163
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x401171
test eax, eax
jne 0x401171
push 4
push eax
push esi
call ebx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401122
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4011b7
test ebx, ebx
je 0x4011b7
push 4
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
Function at 0x401229
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
test edi, edi
je 0x401271
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x401274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.004144f0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.004046f0
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], esi
mov dword [ebp - 0x8a10], esi
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push esi
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x4013d5
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00404482
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.004046f0
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00404482
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x40131b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
xor eax, eax
inc eax
jmp 0x4013d7
Function at 0x4013eb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x884], ecx
lea edi, [ebp - 0x6c]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
and dword [ebp - 0x874], 0
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push str.IsWow64Process
movsb byte es:[edi], byte [esi]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push str.kernel32
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401458
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [ebp - 0x874]
lea eax, [ebp - 0x87c]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x6c]
and edi, 0x100
or edi, 0x20019
push edi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40155b
mov esi, 0x800
mov dword [ebp - 0x878], 7
push esi
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.004046f0
add esp, 0xc
mov dword [ebp - 0x870], esi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x878]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call ebx
test esi, esi
jne 0x40155b
mov eax, dword [ebp - 0x870]
lea esi, [ebp - 0x86c]
shr eax, 1
mov dword [ebp - 0x888], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x880], 0
je 0x40155b
push dword [ebp - 0x884]
push esi
call fcn.00404482
pop ecx
pop ecx
test eax, eax
jne 0x401597
push esi
call fcn.00405859
mov ecx, dword [ebp - 0x880]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x880], ecx
call fcn.00405859
pop ecx
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x880]
add esi, 2
cmp eax, dword [ebp - 0x888]
jb 0x401518
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x40159e
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
je 0x40159c
call ebx
xor eax, eax
inc eax
jmp 0x4015d6
call ebx
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4015d4
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
jne 0x401595
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
Function at 0x4015e5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push ecx
push ecx
mov word [edi], ax
call fcn.00405859
pop ecx
inc eax
push eax
push edi
call fcn.00405780
add esp, 0xc
test eax, eax
jne 0x4017b9
push edi
call fcn.00405859
pop ecx
mov ebx, eax
push 0x5c
pop eax
cmp word [edi + ebx*2 - 2], ax
je 0x401639
mov word [edi + ebx*2], ax
inc ebx
xor eax, eax
mov word [edi + ebx*2], ax
push str.LMIR
push edi
call fcn.00405859
mov esi, eax
mov dword [esp], str.LMIR
call fcn.00405859
inc eax
pop ecx
add eax, esi
push eax
push edi
call fcn.004057e4
add esp, 0xc
test eax, eax
jne 0x4017b9
push str.LMIR
call fcn.00405859
pop ecx
push 4
pop ecx
cmp eax, ecx
ja 0x40167c
mov ecx, eax
lea eax, [ebp - 0x14]
add ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
lea edx, [edi + ebx*2]
imul ecx, eax, 0x3c
movzx eax, word [ebp - 0xa]
push 2
pop esi
push 0x2e
add ecx, eax
movzx eax, word [ebp - 8]
imul ecx, ecx, 0x3c
add ecx, eax
mov eax, ecx
shr eax, 0x10
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 8
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
and ecx, 0xf
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov ax, word [ecx*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
xor eax, eax
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
pop eax
push 0x74
mov word [edx], ax
add edx, esi
pop eax
push 0x6d
mov word [edx], ax
add edx, esi
pop eax
push 0x70
mov word [edx], ax
pop eax
mov word [edx + esi], ax
xor eax, eax
mov word [edx + esi + 2], ax
xor esi, esi
inc esi
mov eax, esi
shr eax, 8
and eax, 0xf
push str.LMIR
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xa], ax
mov eax, esi
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xc], ax
mov eax, esi
and eax, 0xf
inc esi
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xe], ax
call fcn.00405859
pop ecx
mov ecx, ebx
sub ecx, eax
lea ecx, [edi + ecx*2]
call fcn.004013eb
test eax, eax
jne 0x4017b1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4017ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017b9
cmp esi, 0xfff
jb 0x401740
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
xor eax, eax
inc eax
jmp 0x4017bb
Function at 0x4017cf
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40188a
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401883
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401883
push esi
push 0x41ab50
call fcn.00405859
mov dword [esp], 0x41ab50
push ebx
lea esi, [eax + 1]
call fcn.00405859
pop ecx
add eax, esi
push eax
push ebx
call fcn.004057e4
add esp, 0xc
push str.Applet
push ebx
call fcn.00405859
mov dword [esp], str.Applet
lea esi, [eax + 1]
call fcn.00405859
pop ecx
add eax, esi
push eax
push ebx
call fcn.004057e4
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
test eax, eax
jne 0x401873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401883
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00405859
pop ecx
jmp 0x40188c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop ebx
ret

Function at 0x40188f
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
mov edx, edi
push ecx
push ecx
mov word [edi], ax
mov word [esi], ax
call fcn.004017cf
pop ecx
pop ecx
test eax, eax
je 0x4018e7
cmp eax, 0x103
ja 0x4018e7
push esi
mov ecx, edi
call fcn.004015e5
pop ecx
test eax, eax
jne 0x4018c6
push 2
pop eax
jmp 0x4018ea
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4018e3
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004011c6
pop ecx
push 3
jmp 0x4018c3
xor eax, eax
jmp 0x4018ea
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret

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

Disassembly:
push esi
mov esi, str.LMI_Rescue_srv.exe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a36
xor eax, eax
inc eax
pop esi
ret
push 0
push esi
push str.LMI_Rescue.exe
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
pop esi
sbb eax, eax
neg eax
ret
Function at 0x401d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov esi, edx
mov word [ebp - 0x418], ax
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
cmp word [esi], bx
setne al
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e40
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00405859
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e39
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004046f0
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push ebx
push esi
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00408489
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x41c]
add esp, 0x20
xor ebx, ebx
push ebx
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004080b0
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret

Function at 0x401e4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401e6d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e6d
xor eax, eax
inc eax
jmp 0x401ee4
mov ecx, 0x2711
call fcn.00401a4c
test eax, eax
je 0x401ee4
mov ecx, dword [0x41e2d4]
mov eax, dword [0x41e2d0]
cmp ecx, 0x36
jb 0x401ece
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401ece
cmp dword [eax + 2], ecx
jne 0x401ece
cmp dword [eax + 0xe], 0x28
je 0x401eac
cmp dword [eax + 0xe], 0x6c
je 0x401eac
cmp dword [eax + 0xe], 0x7c
jne 0x401ece
cmp dword [eax + 0x12], 0x4e
jne 0x401ece
cmp dword [eax + 0x16], 0x20
je 0x401ebe
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401ece
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ee7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401f05
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f05
xor eax, eax
inc eax
jmp 0x401f39
mov ecx, 0x2716
call fcn.00401a4c
test eax, eax
je 0x401f37
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x403146
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [0x41e2f4]
mov ebx, eax
test ebx, ebx
jne 0x403176
inc eax
jmp 0x4032a0
push edi
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00405859
pop ecx
mov ecx, eax
cmp ecx, 2
jle 0x4031f4
lea eax, [ecx + 2]
cmp eax, edi
jge 0x4031f4
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x210], ax
je 0x4031f4
cmp word [ebp + ecx*2 - 0x20e], ax
jne 0x4031f4
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x4032ae
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x41e740
lea eax, [ebp - 0x61c]
push eax
push str.__s___service__sid___s___wd___s_
lea eax, [ebp - 0xc34]
push 0x30c
push eax
call fcn.004018f4
add esp, 0x18
push 0xf01ff
push 0x41e540
push ebx
call dword [0x41e2dc]
mov edi, eax
test edi, edi
jne 0x403269
push esi
push esi
push 0x41b14c
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x41e340
push 0x41e540
push ebx
call dword [0x41e2ec]
mov edi, eax
test edi, edi
je 0x403296
push esi
push esi
push edi
call dword [0x41e2e8]
test eax, eax
jne 0x40328f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40328c
cmp eax, 0x420
je 0x40328f
push 4
jmp 0x40328e
push 3
pop esi
push edi
call dword [0x41e2e0]
push ebx
call dword [0x41e2e0]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
call fcn.00403951
int3

Function at 0x40340e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004144f0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00405780
lea eax, [ebp - 0x2004]
push eax
call fcn.00405859
push 0x5c
lea edi, [ebp - 0x2004]
pop ebx
lea edi, [edi + eax*2]
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404911
add esp, 0x18
test eax, eax
je 0x4034b1
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404911
pop ecx
pop ecx
test eax, eax
jne 0x403465
push esi
jmp 0x403496
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x4034b0
mov word [esi], bx
lea eax, [ebp - 0x2004]
push eax
call fcn.00405859
lea esi, [ebp - 0x2004]
pop ecx
lea esi, [esi + eax*2]
cmp esi, edi
jne 0x403480
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
Function at 0x4034bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x4034e7
xor eax, eax
jmp 0x40353b
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40350b
push 0x52
jmp 0x403539
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403530
cmp dword [ebp - 8], edi
jne 0x403530
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40353a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040381e
leave
ret
Function at 0x401aa0
Capabilities:
Access pe header
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x401ba5
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.00401080
mov edi, eax
test edi, edi
je 0x401ba5
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x401b83
rdtsc
xor dword [0x454b30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x454b30], eax
push 0x40afe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401b1b
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401b1b
push 0x454b30
call eax
mov ecx, dword [0x454b30]
xor edx, edx
or esi, 0xffffffff
mov eax, ecx
div esi
add eax, ecx
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401b83
mov edx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b83
push 0
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b7c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401ba5
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401c20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401cf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
push edi
xor esi, esi
push 0x220
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x228], esi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401da0
lea edx, [ebp - 0x228]
push edx
push edi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x401d99
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Module32Next]
jmp 0x401d60
push str.kernel
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x401d7e
push str..dll
push eax
call esi
test eax, eax
jne 0x401d8e
lea ecx, [ebp - 0x228]
push ecx
push edi
call ebx
test eax, eax
jne 0x401d60
jmp 0x401d95
mov dword [ebp - 4], 1
mov esi, dword [ebp - 4]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4