joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483e70
Capabilities:
Get file size

Disassembly:
mov eax, 0x598425
call fcn.00595190
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004800a3
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jle 0x483eec
lea esi, [ebp - 0x10]
call fcn.0045001a
push eax
call fcn.0049599f
mov edi, eax
cmp edi, ebx
pop ecx
je 0x483eec
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x483eca
mov eax, dword [eax + 4]
jmp 0x483ecd
add eax, 4
push eax
push dword [ebp + 8]
call fcn.00432a64
push ebx
push 1
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0041a4e2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x483f4a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jbe 0x483f43
test eax, eax
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
jge 0x483f28
fadd dword [0x5f2e48]
fmul qword [0x5f2fd8]
mov eax, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
push str._0.2f_MB
call fcn.00432a05
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4846e4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x59a5f6
call fcn.00595190
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x484858
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x484858
push eax
lea esi, [ebp - 0xa4]
call fcn.00433d19
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.004306d2
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], eax
je 0x48474f
push dword [ebp - 0xa4]
call fcn.0049cabd
pop ecx
mov ecx, 0x61b884
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 0x5f0efc
call fcn.004014bd
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push dword [edi]
mov eax, esi
push eax
call fcn.00432a64
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x484784
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
call fcn.00484619
push dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4847a7
push dword [edi]
call ebx
cmp dword [ebp + 0x18], 0
lea edi, [ebp - 0x20]
jne 0x4847b7
push 0x12c
jmp 0x4847ba
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00484325
mov edi, eax
test edi, edi
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
je 0x48480c
push dword [eax]
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4847da
mov dword [eax], edi
cmp dword [ebp - 0x10], 0
je 0x4847ed
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov esi, 0xfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
jmp 0x48485b
push dword [eax]
call esi
test eax, eax
jne 0x48482b
cmp dword [ebp - 0x10], eax
je 0x484826
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push 0x35
pop esi
jmp 0x4847f2
cmp dword [ebp - 0x10], 0
je 0x48483e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
xor eax, eax
jmp 0x48485b
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x485507
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x485516
mov eax, 0x13a
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485527
mov eax, 0x13b
ret
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.004821ef
add esp, 0xc
test eax, eax
je 0x485541
xor eax, eax
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00481f55
test eax, eax
pop ecx
pop ecx
jne 0x48553e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.004816b0
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
ret

Function at 0x48565d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5966da
call fcn.00595190
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call fcn.0044fcbd
pop ecx
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x4856bc
mov eax, esi
push dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c499
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004011c0
test bl, bl
jne 0x4856c3
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x485684
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4857e6
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push esi
push edi
call fcn.004858b2
test al, al
jne 0x485803
or eax, 0xffffffff
jmp 0x4858ae
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00485974
test al, al
pop ecx
pop ecx
je 0x4857fb
and dword [ebp - 4], 0
mov esi, str.Data_Buffer
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.iphlpapi.dll_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x485838
xor eax, eax
jmp 0x4858ae
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x485851
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
jmp 0x485834
push 0x28
call fcn.0049e4b2
mov esi, eax
test esi, esi
pop ecx
je 0x485849
mov dword [ebp - 8], 2
push 0x3e8
push 0x28
push esi
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push edi
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x48588c
cmp dword [esi + 4], 0
jne 0x48588c
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x485866
push esi
call fcn.0049cabd
pop ecx
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
call fcn.00485930
test al, al
je 0x4857fb
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4858b2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x485916
push 0x61b6f8
call fcn.004859f5
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.WSAGetLastError____
push ecx
push str.An_error_occured_in_WSAStartup_operation:
push esi
call fcn.00459882
add esp, 0xc
push eax
call fcn.00459882
add esp, 0xc
push eax
call fcn.00457f1e
mov esi, eax
call fcn.004859e2
xor al, al
jmp 0x48592d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 2]
push eax
call fcn.004a0444
pop ecx
mov al, 1
pop esi
leave
ret

Function at 0x485974
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4859ba
push 0x61b6f8
call fcn.004859f5
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.An_error_occured_in_gethostbyname_operation:_WSAGetLastError____
push esi
call fcn.00459882
add esp, 0xc
push eax
call fcn.00457f1e
mov esi, eax
call fcn.004859e2
xor al, al
jmp 0x4859df
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push 4
push eax
call fcn.0049bd43
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop esi
leave
ret

Function at 0x4861e8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x59603f
call fcn.00595190
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x5e6264
push ebx
lea eax, [edi + 0xc]
xor esi, esi
push eax
mov dword [edi], vtable.KInstallTool::KUIInfoReport.0
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.00432a8a
push ebx
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00432a8a
lea esi, [edi + 0x14]
mov ecx, 0x61b884
mov byte [ebp - 4], 1
call fcn.004014bd
push ebx
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00432a8a
push ebx
lea eax, [edi + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00432a8a
push ebx
lea eax, [edi + 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00432a8a
and dword [edi + 0x2c], 0
and dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov byte [edi + 0x26], 0
mov byte [edi + 0x27], 0
mov byte [edi + 0x28], 7
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x486842
Capabilities:
Terminate thread

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x2c]
push ebp
call edi
lea ebx, [esi + 0x14]
push ebx
call edi
cmp byte [esi + 4], 0
jne 0x48686f
mov dword [esp + 0x10], 0xfffffffd
jmp 0x486887
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x486973
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x2c]
push eax
mov dword [esp + 0x14], eax
call edi
call fcn.00486a1e
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x4869a4
or dword [esp + 0xc], 0xffffffff
jmp 0x486a0e
push ebp
push 8
call fcn.00465bfe
mov ebp, eax
xor eax, eax
cmp ebp, eax
pop ecx
jne 0x4869bf
mov dword [esp + 0x10], 0xfffffffa
jmp 0x486a0d
lea ecx, [esi + 0xc]
push ecx
push eax
push ebp
push 0x486c0d
push eax
push eax
mov dword [ebp], esi
mov dword [ebp + 4], eax
call fcn.004a064a
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
je 0x4869fe
lea ebp, [esi + 0x14]
jmp 0x4869f0
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call edi
cmp byte [esi + 4], 0
push ebp
je 0x4869e6
call ebx
jmp 0x486a0d
push ebp
call fcn.0049cabd
pop ecx
mov dword [esp + 0x10], 0xfffffffe
pop ebp
push dword [esp + 0x10]
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x486b3f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x59603f
call fcn.00595190
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esi], vtable.KInstallTool::KUIInfoReport.0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
pop ebx
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0xc], eax
and dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x14]
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x18]
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x1c]
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x20]
sub eax, ebx
call fcn.0040135c
add eax, ebx
mov dword [esi + 0x20], eax
mov al, byte [edi + 0x24]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], al
mov al, byte [edi + 0x25]
mov byte [esi + 0x25], al
mov al, byte [edi + 0x26]
mov byte [esi + 0x26], al
mov al, byte [edi + 0x27]
mov byte [esi + 0x27], al
mov al, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x486f6b
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [0x61f674], ebx
je 0x486f89
inc eax
jmp 0x487078
push esi
push edi
mov byte [ebp + 0x54], bl
lea edi, [ebp + 0x55]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp + 0x68], ebx
lea edi, [ebp + 0x6c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.0049bf00
add esp, 0xc
call fcn.00487483
push dword [ebp + 0x7c]
mov dword [0x61f678], eax
push 0x61f64c
call fcn.00432a64
call fcn.004873d0
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp + 0x54]
push 0x61f650
mov dword [ebp + 0x68], 0xc
mov dword [ebp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x74]
push 0x5f1200
push eax
call fcn.004876eb
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x61f640], eax
call esi
cmp dword [0x61f640], ebx
mov dword [0x61f644], eax
je 0x487074
cmp eax, ebx
je 0x487074
push ebx
push ebx
push 0x61f638
push 0x487223
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x61f648], eax
je 0x487074
mov dword [0x61f674], edi
mov eax, edi
jmp 0x487076
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x487080
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x61f648], edi
mov dword [0x61f638], 1
je 0x4870cb
mov eax, dword [0x61f644]
cmp eax, edi
je 0x4870a6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [0x61f648]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4870cb
push edi
push dword [0x61f648]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x61f644]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4870e3
push eax
call esi
mov dword [0x61f644], edi
mov eax, dword [0x61f648]
cmp eax, edi
je 0x4870f5
push eax
call esi
mov dword [0x61f648], edi
mov dword [0x61f674], edi
pop edi
pop esi
ret
Function at 0x48722f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598379
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call fcn.004875d3
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
mov dword [esp + 0x50], ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x4873a9
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], ebx
je 0x487392
cmp dword [esi + 4], ebx
jne 0x4872d8
mov eax, dword [esi + 0x14]
push 0x5f1280
push eax
call fcn.004a0c45
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x487392
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.00418fb0
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x20], ebx
je 0x48736c
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
jne 0x487304
call fcn.0049cff9
push 0xffffffffffffffff
push ebx
add edi, 8
push edi
lea ecx, [esp + 0x30]
call fcn.00418fcc
mov eax, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.0048757d
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x48733c
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x487364
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.004a224e
push dword [esi + 4]
push 2
push 1
push 0x5ee450
call fcn.004a224e
add esp, 0x20
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jne 0x4872f5
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x48737d
push eax
call fcn.004a0f81
pop ecx
mov dword [esi + 4], ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.00418f65
jmp 0x487278
cmp dword [esi], ebx
jne 0x4873a9
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x487278
lea esi, [esp + 0x18]
call fcn.004875eb
push dword [esp + 0x1c]
call fcn.0049cabd
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4873d0
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x5966da
call fcn.00595190
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push dword [0x61f64c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x487472
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x487414
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x487471
mov eax, dword [0x61f64c]
add eax, 0xfffffff0
call fcn.0040135c
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.004874e8
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x61f64c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.004011c0
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x487801
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5970df
call fcn.00595190
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0xa4], vtable.KMD5.0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [esi + 4]
add esi, 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov eax, dword [0x61b884]
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 1
call fcn.004879a3
test eax, eax
je 0x487976
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x48797e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48797e
push 0x5c
lea esi, [ebp - 0x14]
call fcn.0043295f
cmp eax, 0xffffffff
je 0x48797e
lea edx, [eax + 1]
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.004328b5
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff4
mov byte [ebp - 4], 2
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004011c0
mov byte [ebp - 0x40], 0
xor eax, eax
lea edi, [ebp - 0x3f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [ebp - 0xa4]
call fcn.0044c818
test eax, eax
je 0x48797e
push 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0049e740
mov eax, dword [0x61b884]
add esp, 0xc
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
xor esi, esi
movzx eax, byte [ebp + esi - 0x40]
push eax
push 0x5f0490
lea ecx, [ebp - 0x1c]
call fcn.00413490
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x48791d
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
je 0x48794c
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.004013b4
mov edi, dword [ebp - 0x24]
lea eax, [esi - 0x10]
call fcn.004011c0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
call fcn.004011c0
inc dword [ebp - 0x20]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x20], 3
jl 0x487845
jmp 0x487986
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x487981
lea eax, [ebx - 0x10]
call fcn.004011c0
lea ecx, [ebp - 0xa4]
call fcn.0044c7ee
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4879a3
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x440
push ebx
push esi
xor esi, esi
cmp dword [ecx], esi
push edi
jne 0x4879bf
xor eax, eax
jmp 0x487b04
cmp eax, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x487b01
cmp eax, 4
je 0x487b01
cmp eax, 8
je 0x487b01
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push esi
push 0x400
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x487b01
xor eax, eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
call dword [eax]
test eax, eax
jne 0x487aec
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x487aec
cmp eax, 8
je 0x487aec
push eax
push esi
push 0x410
call ebx
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x487aec
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x232]
push esi
push eax
mov word [ebp - 0x234], si
call fcn.0049bf00
add esp, 0xc
push 0x103
lea eax, [ebp - 0x234]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x487aca
push ebx
lea eax, [ebp - 0x43a]
push esi
push eax
mov word [ebp - 0x43c], si
call fcn.0049bf00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x43c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x487aec
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00487b0b
test eax, eax
je 0x487aec
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x487ad6
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0xc]
call fcn.00432a64
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 8], esi
je 0x487b01
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc