joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473288
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42d799
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d8ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d7ad
mov eax, 0xffffffc7
jmp 0x42d8ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d7be
cmp dword [esi + 8], eax
jne 0x42d7ad
cmp dword [esi + 8], eax
jne 0x42d7d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d7d7
mov eax, 0xffffffc7
jmp 0x42d8ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d7eb
push eax
mov ecx, ebx
call fcn.0042cf90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004021a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d81c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004021c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c700
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d84f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6be8d8
call fcn.004023a0
mov eax, dword [esp + 0x38]
jmp 0x42d8ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d5c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d893
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d5e0
mov esi, eax
test esi, esi
jne 0x42d8c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d5c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d865
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6be8d8
call fcn.004023a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6be8d8
call fcn.004023a0
mov eax, esi
jmp 0x42d8ae

Function at 0x4307e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430840
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430840
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430840
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430840
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x436960
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4738b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046ca60
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436300
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046c98e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00469252
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00469252
push 1
push 0
push 0
mov ecx, esi
call fcn.004691fa
push 1
push 0
push 1
mov ecx, esi
call fcn.004691fa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cad2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436ae0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4738d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046ca60
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436300
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046c98e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436ba4
cmp dword [esp + 0x40], 1
jne 0x436ba2
cmp ecx, eax
jge 0x436ba4
mov eax, ecx
cmp eax, 0xc8
jge 0x436bb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436960
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cad2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437320
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046766f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046cd08
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e224
test eax, eax
je 0x43743c
mov ecx, dword [esp + 0x3c]
call fcn.0046cd35
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437400
push edi
mov ecx, esi
call fcn.0046a399
mov ecx, esi
call fcn.004375a0
cmp dword [esp + 0x38], 1
jne 0x437435
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046a4d4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x439e50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439e83
push esi
call fcn.0043cf60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x439e7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x439f09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439ef2
mov eax, dword [esi + 8]
test eax, eax
je 0x439ea7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x439eee
cmp eax, 2
je 0x439ef2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439e9a
cmp eax, 3
je 0x439ecd
cmp eax, 1
jne 0x439e9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x439e9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x439e9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439f30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439f18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439f30
add esp, 4
pop esi
ret
Function at 0x4500f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x450150
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x450150
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x450150
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x450150
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x450160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x452140
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45218a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4521b9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4521fb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x468465
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46849d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046651c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004664f4
jmp 0x4684a9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469b56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469b98
call fcn.0046f795
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469b98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469b8f
xor eax, eax
jmp 0x469ba0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469ba6
pop edi
pop esi
pop ebx
ret 4

Function at 0x46fcc5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46fcf3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fd11
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fc2b
jmp 0x46fd11
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fd11
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fc2b
test edi, edi
mov eax, edi
jne 0x46fcfb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401bb0
push eax
mov dword fs:[0], esp
sub esp, 4
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0x408038
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
lea edx, [esi + 0x10]
mov dword [esi + 0xc], ecx
mov eax, 0x80000000
mov dword [esi], 0x408048
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x30], ecx
lea edi, [esi + 0x20]
mov dword [edx], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [edi + 8], eax
mov eax, esi
mov dword [edi + 0xc], edx
mov edi, dword [ebp + 8]
mov dword [esi + 0x38], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], edi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4061f0
Capabilities:
Get file size
Read file via mapping
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x24
mov dword [esp + 4], 0
push ebx
push esi
push edi
push ebp
mov eax, dword [esp + 0x38]
push 0
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 3
push 0
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov esi, eax
jne 0x40622c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
push 0
mov eax, dword [esp + 0x40]
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov edi, eax
je 0x406307
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4062fc
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x4062ee
lea eax, [esp + 0x18]
push 0
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4062e7
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jne 0x4062e7
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4062df
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
jmp 0x40630d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
jmp 0x40630d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x406320
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x410
lea eax, [esp]
push esi
mov esi, dword [esp + 0x41c]
push edi
push esi
push str._s.new
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x428]
add esp, 0xc
push ecx
push eax
call fcn.004061f0
add esp, 8
test eax, eax
jne 0x406367
xor eax, eax
pop edi
pop esi
add esp, 0x410
ret
mov eax, dword [0x40c25c]
cmp al, 4
jb 0x40638e
cmp eax, 0x80000000
jae 0x40638e
lea eax, [esp + 8]
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
add esp, 0x410
ret
lea eax, [esp + 0x210]
push 0x104
lea ecx, [esp + 0xc]
push eax
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call edi
lea ecx, [esp + 0x314]
push 0x104
push ecx
push esi
call edi
lea eax, [esp + 0x10c]
push 0x104
push eax
mov edi, str.WININIT.INI
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x10c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x210]
lea edx, [esp + 0x314]
push eax
push ecx
push edx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
add esp, 0x410
ret
Function at 0x406430
Capabilities:
Copy file
Move file
Persist via lnk shortcut

Disassembly:
sub esp, 0x820
push ebx
push esi
push edi
xor esi, esi
lea eax, [esp + 0x624]
push ebp
mov ebp, dword [esp + 0x838]
push 0x40c048
push ebp
push eax
call dword [0x40c6d4]
mov ebx, dword [esp + 0x848]
lea eax, [esp + 0x224]
add esp, 0xc
push 0x40c02c
push ebx
push eax
call dword [0x40c6d4]
mov ecx, dword [esp + 0x840]
lea eax, [esp + 0x42c]
add esp, 0xc
push 0x40c010
push ecx
push eax
call dword [0x40c6d4]
lea ecx, [esp + 0x224]
add esp, 0xc
push ecx
call dword [0x40c57c]
cmp eax, 0xffffffff
je 0x4064f4
lea eax, [esp + 0x628]
push 1
lea ecx, [esp + 0x21c]
push eax
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call edi
mov esi, eax
test esi, esi
je 0x4064fa
lea eax, [esp + 0x10]
push str.to_OldDir_VirtualStore_.lnk
push ebp
push eax
mov ebp, dword [0x40c6d4]
call ebp
lea ecx, [esp + 0x1c]
add esp, 0xc
push 0x40bbac
push ecx
push ebx
call fcn.00404270
add esp, 0xc
jmp 0x406523
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x420]
push eax
call dword [0x40c57c]
cmp eax, 0xffffffff
je 0x406523
lea eax, [esp + 0x628]
push 1
lea ecx, [esp + 0x424]
push eax
push ecx
call edi
mov esi, eax
test esi, esi
je 0x406581
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
push str._s.obsolete
push ecx
call dword [0x40c5c4]
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x224]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ecx
push eax
call edi
lea ecx, [esp + 0x420]
lea eax, [esp + 0x10]
push ecx
push 0x40bfa8
push eax
call dword [0x40c5c4]
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x42c]
add esp, 0xc
push ecx
push eax
call edi
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x820
ret
Function at 0x4070b0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x450
mov dword [esp], 0
push ebx
push esi
mov ebx, dword [esp + 0x45c]
push edi
lea eax, [esp + 0x10]
push ebp
push ebx
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x228]
lea ecx, [esp + 0x20]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
push ecx
call ebp
cmp eax, 0xffffffff
mov ebp, eax
jne 0x407100
xor eax, eax
jmp 0x4071f8
lea eax, [esp + 0x248]
lea ecx, [esp + 0x14]
push eax
push ebx
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x36c]
lea edx, [esp + 0x128]
lea eax, [esp + 0x24]
add esp, 0x10
push ecx
push edx
push eax
call fcn.00406fe0
add esp, 0xc
test eax, eax
je 0x4071d6
cmp byte [esp + 0x35c], 0
jne 0x4071d6
lea edi, [esp + 0x118]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, str.FastCopy.exe
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jge 0x4071d6
push ecx
sub edx, ecx
push str.FastCopy.exe
lea eax, [esp + edx + 0x120]
push eax
call fcn.00403d50
add esp, 0xc
test eax, eax
jne 0x4071d6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x468], 0
mov dword [esp + 0x10], eax
je 0x4071d6
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0x468]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x21c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407100
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x450
ret 8
Function at 0x407dc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409108
push 0x407f62
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x40c6fc], 0xffffffff
mov eax, dword [0x40c6fc]
mov dword [0x40c700], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x40c1b0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x40c1ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c704], eax
call fcn.00407fb0
cmp dword [0x40c1a8], 0
jne 0x407e50
push 0x407fa0
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.00407f80
push 0x40a014
push 0x40a010
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x40c1a4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x40c1a0]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x40a00c
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x407ec4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x407ebc
cmp al, 0x22
jne 0x407eb1
cmp byte [esi], 0x22
jne 0x407ece
inc esi
jmp 0x407ece
cmp al, 0x20
jbe 0x407ece
inc esi
cmp byte [esi], 0x20
ja 0x407ec8
cmp byte [esi], 0
je 0x407ede
cmp byte [esi], 0x20
ja 0x407ede
inc esi
cmp byte [esi], 0
jne 0x407ed3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x407f05
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x407f48
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret