joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a7a
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x164]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x154], 0x44
lea eax, [ebp - 0x164]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x154]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, dword [ebp - 0x164]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetEndOfFile_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x401870
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004025e0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004025e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4018d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x4019f0
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401904
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401987
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018f0
mov dword [esp], ebx
call fcn.004022c0
mov edi, eax
test eax, eax
je 0x401a17
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402400
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401980
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401990
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401870
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40190e
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401870
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401870
lea esi, [esi]
nop
Function at 0x401f30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x401f85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f7e
test esi, esi
je 0x401f7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f60
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4022e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4022e5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402338
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40232e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40233a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402320
xor eax, eax
pop ebx
pop esi
ret
Function at 0x497c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
push edi
jmp 0x497caa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x497cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497ca0
mov eax, 1
add ebx, ebx
jne 0x497cc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x497cb8
jne 0x497cd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x497cb8
xor ecx, ecx
sub eax, 3
jb 0x497ce8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x497d5a
mov ebp, eax
add ebx, ebx
jne 0x497cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x497d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x497d24
inc ecx
add ebx, ebx
jne 0x497d10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x497d05
jne 0x497d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x497d05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x497d44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x497d35
jmp 0x497ca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x497d44
add edi, ecx
jmp 0x497ca6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x497d95
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x497d75
cmp al, 0x8f
ja 0x497d75
cmp byte [edi - 2], 0xf
je 0x497d7b
sub al, 0xe8
cmp al, 1
ja 0x497d9f
cmp ecx, 4
jb 0x497da4
mov eax, dword [edi]
sub al, 1
jne 0x497d9f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x497da4
mov al, byte [edi]
inc edi
jmp 0x497d75
sub ecx, 1
jae 0x497d64
lea edi, [esi + 0x95000]
mov eax, dword [edi]
or eax, eax
je 0x497df5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe399c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe3a54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x497daa
mov ecx, edi
jns 0x497dd9
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe3a5c]
or eax, eax
je 0x497def
mov dword [ebx], eax
add ebx, 4
jmp 0x497dc7
call dword [esi + 0xe3a58]
mov ebp, dword [esi + 0xe3a60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x497e29
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x402094
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x402263
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00401480
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
mov byte [ebp - 1], 0
cmp dword [ebp - 0x88], 2
jne 0x402177
mov eax, dword [ebp - 0x94]
sub eax, 3
je 0x402108
dec eax
je 0x40210e
jmp 0x402112
mov byte [ebp - 1], 6
jmp 0x402112
mov byte [ebp - 1], 7
cmp dword [ebp - 0x94], 5
jne 0x402128
cmp dword [ebp - 0x90], 0
jne 0x402128
mov byte [ebp - 1], 8
cmp dword [ebp - 0x94], 5
jne 0x40213e
cmp dword [ebp - 0x90], 1
jne 0x40213e
mov byte [ebp - 1], 9
cmp dword [ebp - 0x94], 5
jne 0x402154
cmp dword [ebp - 0x90], 2
jne 0x402154
mov byte [ebp - 1], 0xa
cmp dword [ebp - 0x94], 6
jne 0x402245
cmp dword [ebp - 0x90], 0
jne 0x402245
mov byte [ebp - 1], 0xb
jmp 0x402245
cmp dword [ebp - 0x94], 4
jne 0x4021d6
cmp dword [ebp - 0x90], 0
jne 0x4021d6
mov byte [ebp - 1], 1
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0x84]
mov ecx, 0x80
call sub.rtl60.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov eax, dword [ebp - 0x9c]
mov al, byte [eax]
call sub.rtl60.bpl__System_UpCase_qqrc
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0x42
je 0x4021d0
cmp byte [ebp - 2], 0x43
jne 0x402245
mov byte [ebp - 1], 2
jmp 0x402245
cmp dword [ebp - 0x94], 4
jne 0x40222f
cmp dword [ebp - 0x90], 0xa
jne 0x40222f
mov byte [ebp - 1], 3
lea eax, [ebp - 0xa8]
lea edx, [ebp - 0x84]
mov ecx, 0x80
call sub.rtl60.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov eax, dword [ebp - 0xa4]
mov al, byte [eax]
call sub.rtl60.bpl__System_UpCase_qqrc
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0x41
jne 0x402245
mov byte [ebp - 1], 4
jmp 0x402245
cmp dword [ebp - 0x94], 4
jne 0x402245
cmp dword [ebp - 0x90], 0x5a
jne 0x402245
mov byte [ebp - 1], 5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40226a
lea eax, [ebp - 0xa8]
mov edx, 4
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x403380
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jg 0x4033c6
mov ecx, 0x403464
mov dl, 1
mov eax, dword [0x403160]
call sub.rtl60.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl60.bpl__System__RaiseExcept_qqrv
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call sub.rtl60.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x40341c
mov ecx, 0x403490
mov dl, 1
mov eax, dword [0x403104]
call sub.rtl60.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl60.bpl__System__RaiseExcept_qqrv
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [0x434048]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x403458
mov ecx, 0x4034bc
mov dl, 1
mov eax, dword [0x403104]
call sub.rtl60.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl60.bpl__System__RaiseExcept_qqrv
pop ecx
pop ecx
pop ebp
ret

Function at 0x4037d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov ax, word [ebp - 6]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
test ax, ax
jbe 0x403860
mov word [ebp - 0x12], ax
mov word [ebp - 0xe], 1
nop
nop
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__System__UniqueStringA_qqrr17System_AnsiString
movzx edx, word [ebp - 0xe]
movzx ecx, word [ebp - 0xe]
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov cl, byte [ebx + ecx - 1]
movzx ebx, word [ebp - 0x10]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
nop
nop
movzx eax, word [ebp - 0xe]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
add ax, word [ebp - 0x10]
imul ax, ax, 0xce6d
add ax, 0x58bf
mov word [ebp - 0x10], ax
nop
nop
inc word [ebp - 0xe]
dec word [ebp - 0x12]
jne 0x40380d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b98
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov ax, word [ebp - 6]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
test ax, ax
jbe 0x403c24
mov word [ebp - 0x12], ax
mov word [ebp - 0xe], 1
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__System__UniqueStringA_qqrr17System_AnsiString
movzx edx, word [ebp - 0xe]
movzx ecx, word [ebp - 0xe]
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov cl, byte [ebx + ecx - 1]
movzx ebx, word [ebp - 0x10]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
movzx eax, word [ebp - 0xe]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
movzx eax, byte [edx + eax - 1]
add ax, word [ebp - 0x10]
imul ax, ax, 0xce6d
add ax, 0x58bf
mov word [ebp - 0x10], ax
inc word [ebp - 0xe]
dec word [ebp - 0x12]
jne 0x403bd5
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x409fc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call sub.rtl60.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrSetLength_qqrv
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409bdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fcc
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41fbec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41fc5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0041fbc8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409250
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408da0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fc64
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x4262c4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4263d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x434ea8]
push dword [eax]
push dword [ebp - 4]
mov eax, dword [0x435020]
push dword [eax]
push 0x4263e8
mov eax, dword [0x434bac]
push dword [eax]
lea eax, [ebp - 0x18]
mov edx, 5
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov byte [ebp - 5], 0
lea eax, [ebp - 0x28]
mov edx, 0x10
call fcn.00401480
lea eax, [ebp - 0x6c]
mov edx, 0x44
call fcn.00401480
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], 5
mov dword [ebp - 0x40], 0x101
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [0x434ea8]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4263b3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push 0x2710
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x102
jne 0x4263af
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x434c64]
mov eax, dword [eax]
call eax
jmp 0x4263b3
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4263d8
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x42712c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4271ee
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__Sysutils_DateTimeToSystemTime_qqrx16System_TDateTimer11_SYSTEMTIME
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
mov edx, 0x41
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileOpen_qqrx17System_AnsiStringui
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x42719b
mov eax, dword [ebp - 8]
mov edx, 0x427204
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
jmp 0x4271d0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFileTime
test eax, eax
jne 0x4271c3
mov eax, dword [ebp - 8]
mov edx, 0x427220
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
jmp 0x4271d0
mov eax, dword [ebp - 8]
mov edx, 0x427240
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_FileClose_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4271f5
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x427a14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x427a90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, pe_nt_image_headers32
call sub.rtl60.bpl__System__LStrSetLength_qqrv
push pe_nt_image_headers32
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov edx, eax
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrFromPChar_qqrr17System_AnsiStringpc
mov eax, dword [ebp - 4]
mov ecx, 0x427aa4
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrCat3_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427a97
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x429560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4295fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 0xff
call sub.rtl60.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov edx, eax
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrFromPChar_qqrr17System_AnsiStringpc
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x4295da
mov eax, dword [ebp - 4]
mov ecx, 0x429610
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrCat3_qqrv
jmp 0x4295e5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429602
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x42e4b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], 0x30000
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
push 4
mov eax, dword [0x4349c0]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42e502
mov eax, dword [ebp - 8]
add eax, 0xc00
mov eax, dword [eax]
and eax, 0xfffffe00
cmp eax, dword [ebp - 4]
je 0x42e502
add dword [ebp - 4], 0x10000
cmp dword [ebp - 4], 0x100000
jb 0x42e4bd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret