joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x244]
call fcn.0043c206
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], 0
push 0x228
push 0
lea ecx, [ebp - 0x238]
push ecx
call fcn.004f28b0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x4808b6
jmp 0x48092a
mov dword [ebp - 0x23c], 0x22c
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x4808e5
jmp 0x48092a
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x244]
call fcn.0043c269
test eax, eax
jne 0x480912
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x234]
mov dword [edx], eax
mov dword [ebp - 0x248], 1
jmp 0x48092a
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4808e5
cmp dword [ebp - 0x240], 0xffffffff
je 0x480940
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0043a3e4
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x480980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0043c28d
movzx eax, al
test eax, eax
je 0x4809a9
xor eax, eax
jmp 0x480bc2
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x208
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004f28b0
add esp, 0xc
push 0
push str._ALLUSERSPROFILE_
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480a19
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x5514e0
call fcn.00480bd0
add esp, 0xc
test eax, eax
jne 0x480a00
xor eax, eax
jmp 0x480bc2
lea ecx, [ebp - 0x210]
push ecx
push 0x551504
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
push 0
push 0x5514b8
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480a6a
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x5514cc
call fcn.00480bd0
add esp, 0xc
test eax, eax
jne 0x480a51
xor eax, eax
jmp 0x480bc2
lea eax, [ebp - 0x210]
push eax
push str._APPDATA_
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
push 0
push str._TEMP_
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480abb
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x5515b0
call fcn.00480bd0
add esp, 0xc
test eax, eax
jne 0x480aa2
xor eax, eax
jmp 0x480bc2
lea edx, [ebp - 0x210]
push edx
push 0x5515c0
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
push 0
push 0x551588
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480b05
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
ja 0x480aec
xor eax, eax
jmp 0x480bc2
lea ecx, [ebp - 0x210]
push ecx
push str._SYSTEM_
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
push 0
push 0x551560
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480b4c
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x480b36
xor eax, eax
jmp 0x480bc2
lea eax, [ebp - 0x210]
push eax
push str._WINDOWS_
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
push 0
push 0x551614
mov ecx, dword [ebp + 8]
call fcn.00468330
cmp eax, 0xffffffff
je 0x480bad
push 0x20a
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.004f28b0
add esp, 0xc
push 0x105
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x210]
push ecx
push str._CUR_DIR_
mov ecx, dword [ebp + 8]
call fcn.00468150
jmp 0x480bb1
xor eax, eax
jmp 0x480bc2
mov edx, dword [ebp + 8]
push edx
call fcn.00480d50
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x480bd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x571950
push 0x4f67f0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x480c2a
cmp dword [ebp + 0xc], 0
je 0x480c2a
cmp dword [ebp + 0x10], 1
jae 0x480c2f
jmp 0x480d0d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x480c51
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x480c56
jmp 0x480d0d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f046c
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x480c91
mov dword [ebp - 4], 0xfffffffe
jmp 0x480d0d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004f28b0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x480ced
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x480ced
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004f614d
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x480d0d
cmp dword [ebp - 0x20], 0
je 0x480d2c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f2acf
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4815a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ceeb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov ecx, dword [ebp - 0x228]
add ecx, 0xc
call fcn.0043a29b
push eax
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x481630
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x481773
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x238], 0x105
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004f28b0
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
mov ecx, dword [ebp - 0x228]
add ecx, 8
call fcn.0043a29b
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x481771
cmp dword [ebp - 0x230], 1
jne 0x481771
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0043c206
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.004804f0
add esp, 4
push 0x105
lea ecx, [ebp - 0x220]
call fcn.0043a2d3
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.0043c298
mov ecx, dword [ebp - 0x228]
add ecx, 0x10
call fcn.0043a29b
push eax
push 0x105
lea ecx, [ebp - 0x220]
call fcn.0043a2d3
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.0043c298
lea edx, [ebp - 0x220]
push edx
call fcn.004805a0
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0043a3e4
mov eax, dword [ebp - 0x234]
jmp 0x481773
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 4
Function at 0x48cef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x231], 0
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x230], 0
push 0x228
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.004f28b0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x48cf5b
jmp 0x48cfac
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x48cfac
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.004f3482
add esp, 8
test eax, eax
jne 0x48cf94
mov byte [ebp - 0x231], 1
jmp 0x48cfac
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x48cf73
cmp dword [ebp - 0x238], 0
je 0x48cfcc
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x238], 0
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x48cfe0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004f28b0
add esp, 0xc
mov byte [ebp - 0x41d], 0
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x48d039
jmp 0x48d0e9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x424], 0
jmp 0x48d061
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 5
jae 0x48d0e9
xor edx, edx
mov word [ebp - 0x41c], dx
push 0x208
push 0
lea eax, [ebp - 0x41a]
push eax
call fcn.004f28b0
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
call fcn.004f614d
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax*4 + 0x5a8950]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
call fcn.00523bbc
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d0e4
mov byte [ebp - 0x41d], 1
jmp 0x48d0e9
jmp 0x48d052
mov al, byte [ebp - 0x41d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x48d4a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
push 0x288
call fcn.004f33b9
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48d4c7
xor al, al
jmp 0x48d5cd
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x288
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x48d52c
mov edx, dword [ebp - 8]
push edx
call fcn.004f1820
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004f33b9
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48d51b
xor al, al
jmp 0x48d5cd
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
jne 0x48d5aa
cmp dword [ebp - 8], 0
je 0x48d5aa
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x190], 3
ja 0x48d554
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x48d538
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx + 0x194]
cmp ecx, 0x52
jne 0x48d5a0
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx + 0x194]
cmp ecx, 0x54
jne 0x48d5a0
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx + 0x194]
test ecx, ecx
jne 0x48d5a0
mov byte [ebp - 1], 1
jmp 0x48d5aa
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x48d538
cmp dword [ebp - 0xc], 0
je 0x48d5ca
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f1820
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x48d640
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004f28b0
add esp, 0xc
mov byte [ebp - 0x41d], 0
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x48d699
jmp 0x48d749
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x424], 0
jmp 0x48d6c1
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 1
jae 0x48d749
xor edx, edx
mov word [ebp - 0x41c], dx
push 0x208
push 0
lea eax, [ebp - 0x41a]
push eax
call fcn.004f28b0
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
call fcn.004f614d
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax*4 + 0x5a8968]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
call fcn.00523bbc
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d744
mov byte [ebp - 0x41d], 1
jmp 0x48d749
jmp 0x48d6b2
mov al, byte [ebp - 0x41d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x48d760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48d7a0
mov byte [ebp - 1], 0
jmp 0x48d81d
push 0x80
call fcn.004f33b9
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48d7e9
mov byte [ebp - 1], 0
jmp 0x48d801
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0044155d
add esp, 8
test eax, eax
je 0x48d801
mov byte [ebp - 1], 1
cmp dword [ebp - 8], 0
je 0x48d813
mov ecx, dword [ebp - 8]
push ecx
call fcn.004f1820
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x48e0f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52da18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], str.QQPCRTP
push 0x553b8c
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x10]
push eax
call fcn.0048e1f0
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043c28d
movzx ecx, al
test ecx, ecx
je 0x48e165
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043a3e4
jmp 0x48e1d7
lea ecx, [ebp - 0x10]
call fcn.0043a98b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e189
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043a3e4
jmp 0x48e1d7
mov dword [ebp - 0x14], 0
jmp 0x48e19b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
jae 0x48e1c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x1c]
push ecx
call fcn.0048edf0
add esp, 4
test eax, eax
je 0x48e1be
mov dword [ebp - 0x18], 1
jmp 0x48e1c0
jmp 0x48e192
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043a3e4
xor edx, edx
jne 0x48e123
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x48e690
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x420], 0
cmp dword [ebp + 8], 0
je 0x48e6d9
cmp dword [ebp + 8], 4
je 0x48e6d9
cmp dword [ebp + 8], 8
jne 0x48e6de
jmp 0x48e7c9
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x48e703
jmp 0x48e7c9
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.004f28b0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0
mov ecx, dword [ebp - 0x418]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x48e7a8
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.004f28b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x48e789
jmp 0x48e7c9
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0x424]
call fcn.0048e800
test eax, eax
jne 0x48e7a8
jmp 0x48e7c9
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0043a3ee
mov dword [ebp - 0x41c], 1
xor eax, eax
jne 0x48e6c7
cmp dword [ebp - 0x418], 0
je 0x48e7df
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 8
Function at 0x48e800
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4cc], ecx
cmp dword [ebp + 8], 0
je 0x48e825
cmp dword [ebp + 0xc], 0
jne 0x48e82c
xor eax, eax
jmp 0x48e9a0
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x48e990
mov dword [ebp - 0x4c0], 0
jmp 0x48e861
mov ecx, dword [ebp - 0x4c0]
add ecx, 4
mov dword [ebp - 0x4c0], ecx
mov edx, dword [ebp - 0x4c0]
movzx eax, word [ebp + edx*2 - 0x4bc]
test eax, eax
je 0x48e990
push 0x553e0c
mov ecx, dword [ebp - 0x4c0]
lea edx, [ebp + ecx*2 - 0x4bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x48e8b1
push 0x553da4
mov eax, dword [ebp - 0x4c0]
lea ecx, [ebp + eax*2 - 0x4bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x48e8b3
jmp 0x48e852
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x4c0]
mov dx, word [ebp + ecx*2 - 0x4bc]
mov word [ebp + eax - 0xc], dx
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 0x4c0]
mov dx, word [ebp + ecx*2 - 0x4ba]
mov word [ebp + eax - 0xc], dx
mov eax, 2
shl eax, 1
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c8], 6
jae 0x48e901
jmp 0x48e906
call fcn.004f5873
xor ecx, ecx
mov edx, dword [ebp - 0x4c8]
mov word [ebp + edx - 0xc], cx
push 0x64
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x48e92e
xor eax, eax
jmp 0x48e9a0
lea edx, [ebp - 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f5a03
add esp, 0xc
test eax, eax
jne 0x48e98b
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x4c4]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x48e9a0
jmp 0x48e852
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 8
Function at 0x48e9b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0x80004005
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x48ea1a
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
test ecx, ecx
jne 0x48ea24
jmp 0x48eb47
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48ea53
jmp 0x48eb47
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
ja 0x48ea72
jmp 0x48eb47
push 0
lea ecx, [ebp - 0x24]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48ea9b
jmp 0x48eb47
lea ecx, [ebp - 0xc]
push ecx
call fcn.0048ec20
add esp, 4
test eax, eax
jne 0x48eab5
jmp 0x48eb47
mov edx, dword [ebp - 0x20]
sub edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48eada
jmp 0x48eb47
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48eb17
jmp 0x48eb47
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048eb70
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x48eb47
cmp dword [ebp - 0x14], 0
je 0x48eb47
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x48eb5e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret