joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e2de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x47e2fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x47e2ec
add dl, dl
jne 0x47e306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x47e352
xor eax, eax
add dl, dl
jne 0x47e313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x47e3ef
add dl, dl
jne 0x47e322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x47e32d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x47e338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x47e343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x47e34d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x47e2f2
mov eax, 1
add dl, dl
jne 0x47e360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x47e36b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x47e357
sub eax, 2
jne 0x47e39a
mov ecx, 1
add dl, dl
jne 0x47e380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x47e38b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x47e377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x47e2f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x47e3b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x47e3bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x47e3a8
cmp eax, 0x7d00
jae 0x47e3df
cmp eax, 0x500
jb 0x47e3da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x47e2f2
cmp eax, 0x7f
ja 0x47e3e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x47e2f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x47e40b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x47e2f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x4011bd
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push 0x401153
push esi
push esi
mov dword [0x42e410], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42e440], eax
pop esi
ret
Function at 0x401c29
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
call fcn.00406c0a
push 9
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push 0
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xc
pop edi
mov dword [ebp - 0x5c], eax
call fcn.00405fb6
mov ebx, eax
pop ecx
mov dword [ebp - 0x58], ebx
call fcn.0040513a
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [ebx + 4], eax
shl eax, 2
push 0
mov edi, eax
call fcn.00405fb6
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
pop ecx
mov dword [ebx + 8], eax
mov esi, eax
jbe 0x401cc8
jmp 0x401c87
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
mov ecx, dword [eax]
shl ecx, 2
push ecx
push dword [eax + 8]
push esi
call sub.ntdll.dll_memcpy
mov eax, dword [edi]
mov ecx, dword [eax]
lea ecx, [esi + ecx*4]
mov esi, dword [eax + 8]
add esp, 0xc
mov dword [ebp - 0x10], ecx
call fcn.004060d7
mov esi, dword [edi]
call fcn.004060d7
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x401c84
mov esi, dword [ebp + 0xc]
call fcn.004060d7
push dword [ebp + 8]
call fcn.0040410d
pop ecx
test al, al
je 0x401d67
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push 0xf1cca033
push 9
push 0x412134
call fcn.00408770
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x401d67
cmp dword [ebx], edi
jbe 0x401d5f
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
mov eax, dword [eax + edi*4]
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, ecx
push ecx
push dword [eax + 8]
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x4a6f1a5b
push 4
push 0x412140
call fcn.00408397
add esp, 0x10
push eax
push dword [ebp + 0x10]
call esi
inc edi
cmp edi, dword [ebx]
jb 0x401d1c
mov esi, dword [ebp + 0x10]
call fcn.004087bc
cmp byte [0x42e403], 0
je 0x401de2
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0040112c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
cmp byte [0x42e400], 0
je 0x401da5
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
add esi, esi
call fcn.004011bd
test esi, esi
je 0x401dc4
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
push 0x4017c5
call fcn.00406c2c
dec esi
pop ecx
pop ecx
jne 0x401dae
mov edi, dword [ebp - 0xc]
mov eax, edi
call fcn.00406c79
call fcn.0040117c
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00406cb4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ded
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call fcn.004078fa
push dword [ebp + 8]
xor ebx, ebx
push 0x42edc0
push 0xeb3ceea0
push 9
push 0x412148
call fcn.00408770
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.004096cc
add esp, 0xc
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e66
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e5a
cmp edi, dword [ebp - 8]
jne 0x401e5a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call fcn.004087bc
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401e8e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
push 0x42edc0
push 0xeb3ceea0
push 9
push 0x412148
call fcn.00408770
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.004096cc
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x401f32
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x401ef3
mov dword [eax], esi
push ebx
lea edi, [esi + 1]
call fcn.00405fb6
mov edi, eax
pop ecx
cmp edi, ebx
je 0x401f2a
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f21
cmp esi, dword [ebp - 0xc]
jne 0x401f21
mov byte [esi + edi], bl
jmp 0x401f2a
mov esi, edi
call fcn.004060d7
xor edi, edi
mov esi, dword [ebp - 4]
call fcn.004087bc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026b1
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push esi
push edi
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x42e788
push ecx
push 0x89c43b55
push 0x19
push 0x41221c
call fcn.00408770
add esp, 0x10
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00409652
add esp, 0xc
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0xde533683
push 5
push 0x412238
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc640
call fcn.00408770
add esp, 0xc
push 0x1445182f
push 9
push 0x412240
mov dword [ebp - 0x30], eax
call fcn.00408770
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x450]
add esp, 0xc
mov dword [ebp - 0x28], eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402769
mov esi, dword [ebp - 4]
test esi, esi
jne 0x402784
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jb 0x40274b
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
leave
ret
call fcn.004087bc
call fcn.004047b6
test al, al
je 0x40277a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4029b3
Capabilities:
Get common file path

Disassembly:
push 0x214
push 0x412ad8
call fcn.0041008c
xor ebx, ebx
cmp byte [0x42f194], bl
jne 0x402a3f
push ebx
call fcn.0040513a
push eax
push dword [ebp + 8]
call fcn.00403818
add esp, 0xc
mov byte [0x42f194], 1
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0040495b
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x402a04
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x224]
push eax
call fcn.00404f2b
pop ecx
mov dword [ebp - 4], 1
push dword [ebp + 8]
call fcn.0040343b
pop ecx
jmp 0x402a3b
or dword [ebp - 4], 0xffffffff
call fcn.004100c7
ret
Function at 0x402a45
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
push edi
mov edi, eax
call fcn.004041a6
and dword [ebp - 0x190], 0
push 0x118
mov bl, al
lea eax, [ebp - 0x18c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea esi, [ebp - 0x190]
call fcn.00409a19
cmp dword [ebp - 0x18c], 0xa
jb 0x402a96
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
jne 0x402af1
push 1
push 0xffffffffffffffff
push edi
call fcn.00403818
add esp, 0xc
push edi
call fcn.0040410d
pop ecx
test al, al
je 0x402ae5
push 0
push 0x702657e2
push 0xf
push 0x4122a0
call fcn.00408397
mov ecx, eax
call fcn.00404107
push eax
push ecx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0040461c
pop ecx
jmp 0x402bbc
cmp byte [ebp + 0xc], 0
je 0x402b2e
cmp dword [ebp + 8], 1
jg 0x402b0a
push 1
push 0xffffffffffffffff
push edi
call fcn.00403818
add esp, 0xc
push 0x1d746919
push 0x10
push 0x4122b0
call fcn.00408770
add esp, 0xc
push eax
call fcn.00408c45
pop ecx
push edi
call fcn.004046c7
pop ecx
jmp 0x402b49
push 1
push 0xffffffffffffffff
push edi
call fcn.00403818
add esp, 0xc
call fcn.00409a99
test eax, eax
je 0x402b49
call fcn.0040488f
push edi
call fcn.004051f9
pop ecx
test al, al
je 0x402bbc
lea eax, [ebp - 4]
push eax
call fcn.00405ce0
mov esi, eax
pop ecx
test esi, esi
je 0x402bbc
push 1
call fcn.0040513a
push eax
push edi
call fcn.00403818
add esp, 0xc
push esi
push dword [ebp - 4]
push edi
call fcn.00401c29
add esp, 0xc
push edi
call fcn.004029b3
pop ecx
push edi
call fcn.0040410d
pop ecx
test al, al
jne 0x402bb5
lea eax, [ebp - 0x398]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x398]
push eax
push edi
call fcn.00404e3d
pop ecx
pop ecx
mov byte [0x42f195], 1
push dword [0x42e458]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402bdd
Capabilities:
Accept command line arguments
Check mutex on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
mov esi, 0x42e788
push esi
push ebx
mov dword [0x42e45c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push 0x42e460
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
call fcn.00401000
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x402d2c
call fcn.00408ce0
test eax, eax
setne byte [esp + 0x14]
cmp byte [esp + 0x14], bl
je 0x402c4f
call fcn.00404775
push esi
call fcn.00402f03
pop ecx
push esi
call fcn.00402069
pop ecx
test al, al
je 0x402d2c
call fcn.0040279b
push 0x42e668
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402d2c
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x42e458], eax
call fcn.00406c0a
push ebx
push 0x402862
mov dword [0x42e780], eax
call fcn.00406c2c
pop ecx
pop ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [esp + 0x14]
mov eax, esi
push dword [esp + 0x10]
call fcn.00402a45
mov eax, dword [0x42e780]
pop ecx
pop ecx
call fcn.00406c79
mov edi, dword [0x42e780]
call fcn.00406cb4
mov esi, dword [0x42e458]
call fcn.004087bc
cmp byte [0x42f195], bl
je 0x402d23
push dword [esp + 0x10]
call fcn.0040461c
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0040f58d
call fcn.00402bcd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403fa9
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x42e41e], 0
push esi
mov esi, 0x42e998
jne 0x403fec
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], ax
mov word [ebp - 8], ax
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov byte [0x42e41e], 1
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop esi
leave
ret

Function at 0x403ffb
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push 0xe0cf43f4
push 9
push 0x4124c0
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.00408397
push eax
mov eax, dword [ebp + 8]
call fcn.0040f6a0
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x40408f
push edi
push 0x2149cef0
push 9
push 0x4124cc
call fcn.00408397
push eax
mov eax, esi
call fcn.0040f6a0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40408f
call fcn.0040f643
mov ebx, eax
push 8
lea edi, [ebx + ebx]
mov dword [ebp - 8], ebx
call fcn.00405fb6
xor esi, esi
pop ecx
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x40408d
mov eax, dword [ebp - 0x10]
push esi
call fcn.0040f66a
pop ecx
call fcn.0040f75c
mov ecx, dword [ebp - 0xc]
mov word [ecx + esi*2], ax
inc esi
cmp esi, ebx
jb 0x404072
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push edi
mov byte [ebp - 1], 0
call esi
mov ebx, eax
cmp ebx, edi
je 0x4040f7
push edi
mov edi, ebx
shl edi, 2
call fcn.00405fb6
mov edi, eax
pop ecx
test edi, edi
je 0x4040f7
push edi
push ebx
mov byte [ebp - 1], 0
call esi
xor esi, esi
test eax, eax
je 0x4040e8
xor edx, edx
cmp dword [ebp - 8], edx
jbe 0x4040dd
movzx ecx, word [edi + esi*4]
mov ebx, dword [ebp - 0xc]
cmp cx, word [ebx + edx*2]
je 0x4040e4
inc edx
cmp edx, dword [ebp - 8]
jb 0x4040ce
inc esi
cmp esi, eax
jb 0x4040c3
jmp 0x4040e8
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
mov esi, edi
sete byte [ebp - 1]
call fcn.004060d7
mov esi, dword [ebp - 0xc]
call fcn.004060d7
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ecx
cmp byte [0x42f197], 0
push esi
jne 0x40419e
push 0x18569855
push 0x18
push 0x4124d8
call fcn.00408770
mov esi, eax
add esp, 0xc
push esi
mov eax, 0x104
call fcn.00409f82
pop ecx
test al, al
je 0x404160
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x404160
mov byte [0x42f196], 1
jmp 0x404197
push 0
push 0x38b9b860
push 5
push 0x4124f4
call fcn.00408397
push eax
mov eax, dword [esp + 0x20]
call fcn.0040f6a0
add esp, 0x14
call fcn.0040f75c
or eax, edx
mov byte [0x42f196], 1
jne 0x404197
mov byte [0x42f196], 0
mov byte [0x42f197], 1
mov al, byte [0x42f196]
pop esi
pop ecx
ret
Function at 0x40432b
Capabilities:
Print debug messages
Read file on windows
Read pipe
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.00409555
xor ebx, ebx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40447d
cmp dword [ebp + 0x18], ebx
je 0x404377
push dword [ebp + 0x18]
push ebx
push 0x1aa7657a
push 3
push 0x412530
call fcn.00408397
add esp, 0x10
push eax
push ebx
lea ecx, [ebp - 4]
call fcn.0040978d
add esp, 0xc
push ebx
push 0xb5e53088
push 2
push 0x412534
call fcn.00408397
push eax
lea ecx, [ebp - 4]
call fcn.00409871
add esp, 0x14
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 4]
call fcn.004060d7
cmp byte [ebp + 0x1c], bl
je 0x40447d
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, eax
cmp esi, ebx
je 0x404408
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00408890
pop ecx
test eax, eax
je 0x4043e5
inc edi
cmp edi, 0x3c
jb 0x4043c9
push esi
call fcn.00408890
pop ecx
test eax, eax
je 0x404408
push esi
call fcn.004091a0
pop ecx
mov esi, eax
push 1
push esi
call fcn.004089e6
pop ecx
pop ecx
call fcn.004060d7
push dword [ebp + 8]
call fcn.0040410d
pop ecx
test al, al
je 0x40447d
push 0x3ff
lea eax, [ebp - 0x417]
push ebx
push eax
mov byte [ebp - 0x418], bl
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x40447d
push ebx
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40447d
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404482
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebx, ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x404617
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x404607
lea eax, [ebp - 0x34]
push eax
call fcn.00409ce0
lea eax, [ebp - 0x19c]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x19c]
push eax
push ebx
push 0xc5cc663c
push 0xa
push 0x412538
call fcn.00408397
add esp, 0x10
push eax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x90]
push ebx
push eax
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push 0x10
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x68], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4045f7
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040432b
add esp, 0x18
cmp byte [ebp + 0x10], bl
je 0x4045e7
push ebx
push 0x204fb36b
push 4
push 0x412544
call fcn.00408397
push ebx
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040432b
add esp, 0x28
mov esi, dword [ebp - 0x30]
call fcn.004087bc
mov esi, dword [ebp - 0x2c]
call fcn.004087bc
mov esi, dword [ebp - 0x10]
call fcn.004087bc
mov esi, dword [ebp - 0xc]
call fcn.004087bc
mov esi, dword [ebp - 0x14]
call fcn.004087bc
mov esi, dword [ebp - 8]
call fcn.004087bc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40461c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push 0xb0bfe3f2
push 0xd
push 0x41254c
call fcn.00408397
push eax
mov eax, dword [ebp + 8]
call fcn.0040f6a0
add esp, 0x14
call fcn.0040f75c
or eax, edx
je 0x4046c2
push edi
mov esi, 0x42e788
push esi
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
push 0x6745a8d1
push 0x4f
push 0x412560
call fcn.00408397
add esp, 0x10
push esi
push esi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push ebx
lea ecx, [ebp - 8]
call fcn.0040972c
add esp, 0xc
test eax, eax
je 0x4046bd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call fcn.00404482
mov esi, dword [ebp - 8]
add esp, 0xc
call fcn.004060d7
call fcn.00402bcd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4046c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push 0
push 0x58135bf0
push 0xe
push 0x4125b0
call fcn.00408397
push eax
mov eax, dword [ebp + 8]
call fcn.0040f6a0
add esp, 0x14
call fcn.0040f75c
or eax, edx
je 0x404773
lea eax, [ebp - 0x10]
push eax
call fcn.00409ce0
lea eax, [ebp - 0x11c]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x756ebdb1
push 0x10
push 0x4125c0
call fcn.00408397
add esp, 0x10
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x57ec1ddf
lea eax, [ebp - 0x224]
push 0x11
push 0x4125d4
mov dword [ebp - 0xc], eax
call fcn.00408397
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404482
add esp, 0x1c
leave
ret

Function at 0x4047b6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp word [0x42e9a0], bx
jne 0x4047d1
push 0x42e9a0
call fcn.004027f4
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebp, eax
call esi
mov edi, 0xea60
jmp 0x404804
push 0x42e9a0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x40480c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebp
cmp eax, edi
jb 0x4047e4
jmp 0x40480e
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret