joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10104445
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10115b38]
add eax, 0xfffffd5c
mov dword [0x10115b38], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x10115b34], 0x2650
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10115b38], 0x129
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101044be
mov eax, 0x29da
mov dword [0x10115b34], 0x13c5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
je 0x10104576
jmp 0x101045b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x101044eb
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x101044be
mov eax, dword [ebp - 0x20]
mov ecx, 0x35f0
mov dword [0x10115b34], 0x1fdb
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x101045b8
mov eax, 0x199d
mov dword [0x10115b34], 0x388
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x101045b8
mov eax, 0x199d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x101045b8
mov eax, 0xfffff9e7
mov dword [0x10115b34], 0xffffe3d2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
je 0x10104494
jmp 0x101045b8
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
jne 0x101045b8
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x101045b8
mov eax, 1
mov dword [0x10115b38], 0xfa2
mov dword [ebp - 0x24], eax
jmp 0x101045c5
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x10115b34], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x101048e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10115b3c], 0
mov dword [0x10115b40], 0
mov dword [0x10115b4c], 0
mov dword [0x10115b34], 0x2bc
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10104a3b
jmp 0x1010495e
mov eax, dword [0x10115b3c]
mov ecx, dword [0x10115b40]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10115b3c], edx
mov dword [0x10115b34], 0x97e
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10115b40], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10115b44], cl
mov ebx, dword [0x10115b38]
add ebx, 0xfffff27d
mov dword [0x10115b34], ebx
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10115b44]
mov edx, dword [0x10115b40]
mov byte [ebx + edx], cl
mov edx, dword [0x10115b3c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10115b40]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10115b4c], ecx
mov dword [0x10115b34], 0x2e2
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x10115b34], 0x130b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x2c], edi
jne 0x10104947
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10104a43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x10115b34], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10103dcc
lea ecx, [0x101036d0]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], 0x146c00
mov dword [0x10115b38], 0x894
mov edx, dword [0x10115b20]
mov dword [esp + 0x20], edx
mov edx, dword [0x10115b24]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10115b28]
mov dword [esp + 0x2c], edx
mov edx, dword [0x10115b2c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10115b30]
mov dword [esp + 0x74], edx
mov dword [0x10115b34], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10104b26
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10104b26
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10104115
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10115b38], 0x5b1
mov dword [esp + 0xc], eax
jmp 0x10104b87
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10104ad9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x10104ad9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov dword [0x10115b38], 0xe2d
mov dword [0x10115b34], 0xf67
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x30], edx
call fcn.10104445
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x10104aed
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4552d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x523580]
cmp dword [eax + 0x30], 0
je 0x455382
cmp dword [ebx + 0x94], 0
jne 0x45537c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455268
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45537c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455342
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45537c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417bd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455351
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45609c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4560d1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047d0
jmp 0x4560de
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404734
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457440
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4574ae
mov eax, esi
call fcn.00441dfc
test al, al
je 0x4574ae
mov eax, dword [ebx + 0x84]
call fcn.00441aa0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4574ae
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4574a2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441aa0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439fac
jmp 0x4574ae
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045727c
pop esi
pop ebx
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x73a81b2c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x3dec3b91
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100011c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [0x1001757c]
test eax, eax
jne 0x100011e5
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [0x1001757c], eax
mov eax, dword [0x1001757c]
pop esi
ret

Function at 0x10001220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x18]
mov ebp, dword [eax + esi + 0x1c]
mov ebx, dword [eax + esi + 0x20]
add eax, esi
mov eax, dword [eax + 0x24]
push edi
add eax, esi
xor edx, edx
add ebp, esi
add ebx, esi
xor edi, edi
test ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jle 0x10001293
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + edi*4]
push ecx
add edx, esi
push edx
call fcn.100011f0
add esp, 8
test eax, eax
je 0x1000127f
add edi, 1
cmp edi, dword [esp + 0x18]
jl 0x10001257
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp + ecx*4]
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret

Function at 0x10001540
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
call fcn.100013a0
mov dword [esp + 4], eax
jmp fcn.100014a0

Function at 0x10002590
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x10017594]
xor eax, eax
test ecx, ecx
je 0x100025fa
mov eax, dword [ecx + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x10017594]
mov edx, dword [ecx]
push edx
call esi
mov eax, dword [0x10017594]
mov ecx, dword [eax + 8]
push ecx
call esi
mov edx, dword [0x10017594]
mov eax, dword [edx + 4]
push eax
call esi
mov ecx, dword [0x10017594]
mov edx, dword [ecx + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
mov eax, dword [0x10017594]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [0x10017594], 0
pop esi
ret
Function at 0x10002900
Capabilities:
Terminate process
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x1000294b
lea eax, [edi + 8]
push eax
call fcn.1000bbf6
mov esi, eax
add esp, 4
test esi, esi
je 0x1000294b
mov ecx, dword [esp + 0xc]
push edi
push esi
call fcn.10002ed0
cmp eax, edi
jne 0x10002942
push str.exit
push esi
mov byte [esi + edi], 0
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10002952
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
jmp fcn.10002590
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10002957
sub eax, edx
cmp byte [eax + esi - 1], 0xd
je 0x10002976
mov byte [eax + esi], 0xd
mov byte [eax + esi + 1], 0xa
mov byte [eax + esi + 2], cl
mov eax, esi
lea edx, [eax + 1]
jmp 0x10002980
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10002980
push 0
sub eax, edx
mov edx, dword [0x10017594]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100029ad
call fcn.10002590
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
ret

Function at 0x10002aa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
lea eax, [ebx + 1]
push eax
mov edi, ecx
call fcn.1000bbf6
mov esi, eax
add esp, 4
test esi, esi
jne 0x10002ac4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
test ebx, ebx
jle 0x10002ae3
mov ecx, dword [esp + 0x10]
push ebp
sub ecx, esi
mov ebp, ebx
mov dl, byte [ecx + eax]
xor dl, byte [edi + 0x10]
add eax, 1
sub ebp, 1
mov byte [eax - 1], dl
jne 0x10002ad1
pop ebp
mov eax, dword [edi + 0x44]
push 0
push ebx
push esi
push eax
call fcn.10002150
push esi
mov edi, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x10003060
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebx, ecx
jle 0x100030d3
lea eax, [edi + 1]
push esi
push eax
call fcn.1000bbf6
mov esi, eax
add esp, 4
test esi, esi
je 0x100030d2
push edi
push esi
mov ecx, ebx
call fcn.10002ed0
cmp eax, edi
je 0x100030a6
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor esi, esi
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
pop ebx
ret 4
mov byte [esi + edi], 0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100030c9
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
pop ebx
ret 4
Function at 0x100048c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x10]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10004904
mov ecx, dword [str.kernel32.dll]
mov edx, dword [0x10011c14]
push 0
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x10011c18]
push 3
mov dword [eax + 4], edx
mov dx, word [0x10011c1c]
push 0
mov dword [eax + 8], ecx
push 0
mov word [eax + 0xc], dx
push 0x80000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push ebx
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000bc08
add esp, 0x108
ret

Function at 0x10004980
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x224
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
mov esi, dword [esp + 0x22c]
push edi
push 0x104
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x20]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100049c8
mov dx, word [0x10011c20]
mov eax, esi
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100049e0
lea edi, [esp + 0x20]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100049f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10004aba
push 0x104
lea ecx, [esp + 0x128]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov eax, dword [0x100175a4]
add esp, 0xc
push 0x104
lea edx, [esp + 0x128]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.100048c0
add esp, 0xc
test eax, eax
je 0x10004aba
push 0
push 0x80
push 3
push 0
push 0
push 0x80000100
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
call fcn.1000bc08
add esp, 0x224
ret
Function at 0x10004af0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10010519
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x1001734c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x10011c20
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push 4
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1000bc08
add esp, 0x2c
ret
Function at 0x10004bb0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1001055c
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x634], eax
push ebx
mov eax, dword [0x1001734c]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
push 0x207
lea eax, [esp + 0x29]
push ebx
push eax
mov dword [esp + 0x654], ebx
mov byte [esp + 0x30], bl
call sub.MSVCR80.dll_memset
push 0x207
lea ecx, [esp + 0x23d]
push ebx
push ecx
mov byte [esp + 0x244], bl
call sub.MSVCR80.dll_memset
push 0x207
lea edx, [esp + 0x451]
push ebx
push edx
mov byte [esp + 0x458], bl
call sub.MSVCR80.dll_memset
add esp, 0x24
push 0x104
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x434]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x24]
push str.WinMM.dll
push eax
call fcn.10004af0
lea ecx, [esp + 0x2c]
push str.desk.cpl
push ecx
call fcn.10004af0
lea edx, [esp + 0x34]
push str.setupapi.dll
push edx
call fcn.10004af0
add esp, 0x18
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x10011c20
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
push str.Lscsvc.dll
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.10004af0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x648], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x634]
xor ecx, esp
call fcn.1000bc08
add esp, 0x644
ret