joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4626f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
push edi
jne 0x462705
mov eax, 0x13a
jmp 0x462780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x462717
mov eax, 0x13b
jmp 0x462780
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push dword [esi + 0x20]
mov edi, 0x139
push eax
push ecx
call fcn.0045f8d3
add esp, 0x10
test eax, eax
jne 0x462771
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 4]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0045f61a
add esp, 0xc
test eax, eax
jne 0x462771
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 4]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0045eb6c
add esp, 0xc
test eax, eax
je 0x462773
xor edi, edi
cmp dword [ebp - 4], 0
je 0x46277e
mov edi, 0x13c
mov eax, edi
pop edi
leave
ret

Function at 0x46287f
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.0046294b
test al, al
jne 0x46289c
or eax, 0xffffffff
jmp 0x462947
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00462a0d
test al, al
pop ecx
pop ecx
je 0x462894
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 0x4628d1
xor eax, eax
jmp 0x462947
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4628ea
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
jmp 0x4628cd
push 0x28
call fcn.0048b93c
mov esi, eax
test esi, esi
pop ecx
je 0x4628e2
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 0x462925
cmp dword [esi + 4], 0
jne 0x462925
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x4628ff
push esi
call fcn.00489ff4
pop ecx
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
call fcn.004629c9
test al, al
je 0x462894
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x46294b
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 0x4629af
push 0x509498
call fcn.00462bd4
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.00462a8e
add esp, 0xc
push eax
call fcn.00462a8e
add esp, 0xc
push eax
call fcn.0042aa11
mov esi, eax
call fcn.00462a7b
xor al, al
jmp 0x4629c6
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 2]
push eax
call fcn.0048fcfd
pop ecx
mov al, 1
pop esi
leave
ret
Function at 0x462a0d
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 0x462a53
push 0x509498
call fcn.00462bd4
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.00462a8e
add esp, 0xc
push eax
call fcn.0042aa11
mov esi, eax
call fcn.00462a7b
xor al, al
jmp 0x462a78
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push 4
push eax
call fcn.0048ba29
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 0x4633ab
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [0x50bda4], ebx
je 0x4633c9
inc eax
jmp 0x4634b8
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.00489db0
add esp, 0xc
call fcn.004638c3
push dword [ebp + 0x7c]
mov dword [0x50bda8], eax
push 0x50bd7c
call fcn.00422bdc
call fcn.00463810
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 0x50bd80
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 str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.00463b73
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 [0x50bd70], eax
call esi
cmp dword [0x50bd70], ebx
mov dword [0x50bd74], eax
je 0x4634b4
cmp eax, ebx
je 0x4634b4
push ebx
push ebx
push 0x50bd68
push 0x463663
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x50bd78], eax
je 0x4634b4
mov dword [0x50bda4], edi
mov eax, edi
jmp 0x4634b6
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x4634c0
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x50bd78], edi
mov dword [0x50bd68], 1
je 0x46350b
mov eax, dword [0x50bd74]
cmp eax, edi
je 0x4634e6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [0x50bd78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46350b
push edi
push dword [0x50bd78]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x50bd74]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x463523
push eax
call esi
mov dword [0x50bd74], edi
mov eax, dword [0x50bd78]
cmp eax, edi
je 0x463535
push eax
call esi
mov dword [0x50bd78], edi
mov dword [0x50bda4], edi
pop edi
pop esi
ret
Function at 0x46366f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d3ec0
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.00463a37
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 0x4637e9
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 0x4637d2
cmp dword [esi + 4], ebx
jne 0x463718
mov eax, dword [esi + 0x14]
push 0x4eb000
push eax
call fcn.0048d5fa
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x4637d2
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.0040b53b
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x20], ebx
je 0x4637ac
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
jne 0x463744
call fcn.0048a49e
push 0xffffffffffffffff
push ebx
add edi, 8
push edi
lea ecx, [esp + 0x30]
call fcn.0040b557
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.004639e1
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x46377c
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x4637a4
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.0048feb8
push dword [esi + 4]
push 2
push 1
push 0x4e7b98
call fcn.0048feb8
add esp, 0x20
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jne 0x463735
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4637bd
push eax
call fcn.0048d936
pop ecx
mov dword [esi + 4], ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.0040b4f0
jmp 0x4636b8
cmp dword [esi], ebx
jne 0x4637e9
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4636b8
lea esi, [esp + 0x18]
call fcn.00463a4f
push dword [esp + 0x1c]
call fcn.00489ff4
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 0x463810
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x50bd7c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4638b2
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x463854
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x4638b1
mov eax, dword [0x50bd7c]
add eax, 0xfffffff0
call fcn.00422b5e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0046392a
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x50bd7c]
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.00405c8d
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 0x463c0e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d2bb3
call fcn.004ce9f0
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 [0x5096c0]
mov ecx, 0x5096c0
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.00463dd4
test eax, eax
je 0x463d83
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x463d8b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463d8b
push 0x5c
lea esi, [ebp - 0x14]
call fcn.00422875
cmp eax, 0xffffffff
je 0x463d8b
lea edx, [eax + 1]
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.00405d02
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff4
mov byte [ebp - 4], 2
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405c8d
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.004291de
test eax, eax
je 0x463d8b
push 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0048a820
mov eax, dword [0x5096c0]
add esp, 0xc
mov ecx, 0x5096c0
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 0x4ea400
lea ecx, [ebp - 0x1c]
call fcn.0042ff08
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x463d2a
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
je 0x463d59
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.00422ab0
mov edi, dword [ebp - 0x24]
lea eax, [esi - 0x10]
call fcn.00405c8d
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
call fcn.00405c8d
inc dword [ebp - 0x20]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x20], 3
jl 0x463c52
jmp 0x463d93
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x463d8e
lea eax, [ebx - 0x10]
call fcn.00405c8d
lea ecx, [ebp - 0xa4]
call fcn.004291b4
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 0x463dd4
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 0x463df0
xor eax, eax
jmp 0x463f35
cmp eax, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x463f32
cmp eax, 4
je 0x463f32
cmp eax, 8
je 0x463f32
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 0x463f32
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 0x463f1d
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x463f1d
cmp eax, 8
je 0x463f1d
push eax
push esi
push 0x410
call ebx
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x463f1d
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x232]
push esi
push eax
mov word [ebp - 0x234], si
call fcn.00489db0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x234]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x463efb
push ebx
lea eax, [ebp - 0x43a]
push esi
push eax
mov word [ebp - 0x43c], si
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x43c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x463f1d
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.0046401e
test eax, eax
je 0x463f1d
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x463f07
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0xc]
call fcn.00422bdc
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 0x463f32
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x463f3c
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x464016
cmp eax, 4
je 0x464016
cmp eax, 8
je 0x464016
push ebx
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x464015
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00489db0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x463ff7
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x46400d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0046401e
test eax, eax
je 0x46400d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00422bdc
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x46401e
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4bc
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
jne 0x464038
xor eax, eax
jmp 0x4640fb
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4640eb
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x4640eb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x4eb044
push esi
call ebx
test eax, eax
je 0x4640d5
push 0x4eb04c
push esi
call ebx
test eax, eax
je 0x4640d5
mov ax, word [esi]
and word [ebp + 0x68], 0
mov word [ebp + 0x64], ax
mov ax, word [ebp + edi - 0x44a]
mov word [ebp + 0x66], ax
push 0x64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4640f7
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp + 0x78]
mov esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0048f459
add esp, 0xc
test eax, eax
je 0x464103
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x464070
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x4640f9
Function at 0x464f90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, eax
sub ecx, dword [esi + 0x18]
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x14]
mov edx, dword [esi]
push edi
push 1
push ecx
xor ebx, ebx
mov dword [ebp + 0x10], ecx
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x6c]
mov edi, dword [esi + 0xfc]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x4650d4
push edi
call fcn.004222f4
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4650a4
mov eax, dword [ebx + 0x10]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x46500a
lea eax, [ebx + 0x14]
push eax
call fcn.00418a86
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00422535
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0xfc], eax
jne 0x465061
mov eax, dword [ebx + 0x40]
xor ecx, ecx
cmp eax, ecx
je 0x465053
cmp word [eax], cx
je 0x465053
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4650a4
cmp dword [ebx + 0x10], ecx
je 0x4650a4
mov dword [ebp - 4], 1
jmp 0x4650a4
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x465080
lea eax, [ebx + 0x14]
push eax
call fcn.00418a86
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00422535
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0xfc], ecx
je 0x4650b5
push 0x67
jmp 0x4650cd
cmp dword [ebp - 8], ecx
je 0x4650d4
cmp dword [ebp - 0xc], ecx
je 0x4650d4
lea eax, [esi + 0xf8]
cmp edi, dword [eax]
jne 0x4650cb
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00464bba
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x466cbb
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4d1208
call fcn.004ce9f0
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00422646
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0042ff08
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4699ae
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov ecx, dword [eax + 8]
inc edi
cmp ecx, edi
jne 0x469ae8
mov eax, dword [eax + 0xc]
cmp eax, edi
jne 0x4699d6
mov eax, esi
call fcn.0046b7d6
mov eax, edi
jmp 0x469b5f
cmp eax, 2
jne 0x4699e4
mov eax, esi
call fcn.0046b849
jmp 0x4699cf
cmp eax, 0x65
jne 0x4699f4
push 0
mov eax, esi
call fcn.0046b918
jmp 0x4699cf
cmp eax, 0x66
jne 0x469a0c
xor eax, eax
cmp dword [esi + 0x3d0], eax
sete al
push eax
call fcn.0046c905
jmp 0x4699cf
cmp eax, 0x191
jne 0x469a1e
xor ecx, ecx
mov eax, esi
call fcn.0046d0db
jmp 0x4699cf
cmp eax, 0x96
jne 0x469a3e
push dword [esi + 0x3fc]
push dword [esi + 0x3d4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.0046b738
jmp 0x4699cf
cmp eax, 0x1f5
jne 0x469a4e
mov eax, esi
call fcn.0046ba12
jmp 0x4699cf
cmp eax, 0xa0
jne 0x469a7e
push edi
xor eax, eax
push eax
push eax
push str.https:__desk.cheetahfun.com_privacy_yuanqiwallpaper_agreement_cn.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4699cf
call fcn.0046bb3a
jmp 0x4699cf
cmp eax, 0xaa
jne 0x469aae
push edi
xor eax, eax
push eax
push eax
push str.https:__desk.cheetahfun.com_agreement_wallpaper_yuanqiwallpaper_privacy_cn.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4699cf
call fcn.0046bb99
jmp 0x4699cf
cmp eax, 0x68
jne 0x469abf
mov ebx, esi
call fcn.0046c55f
jmp 0x4699cf
cmp eax, 0x320
jne 0x469ad5
mov edi, esi
call fcn.0046ccb1
xor eax, eax
inc eax
jmp 0x469b5f
cmp eax, 0x384
jne 0x469b32
mov eax, esi
call fcn.0046cd60
jmp 0x4699cf
cmp ecx, 3
jne 0x469b11
cmp dword [eax + 0xc], edi
jne 0x469b56
lea eax, [esi + 0x24]
call fcn.0046d364
test eax, eax
je 0x4699cf
push 0x4eb2f0
call fcn.0046bf94
jmp 0x4699cf
cmp ecx, 4
jne 0x469b56
cmp dword [eax + 0xc], edi
jne 0x469b56
lea eax, [esi + 0x24]
call fcn.0046d364
test eax, eax
je 0x4699cf
push 0x4eb008
jmp 0x469b07
cmp eax, 0x9c4
jne 0x469b43
call fcn.0046ba5d
jmp 0x4699cf
cmp eax, 0xa28
jne 0x469b56
mov ecx, esi
call fcn.0046bf6b
jmp 0x4699cf
and dword [esi + 0x400], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x469fab
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46a01c
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x46a01c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4ecff8]
fnstsw ax
test ah, 1
jne 0x46a01c
inc esi
pop edi
mov eax, esi
pop esi
leave
ret