joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a67e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1370
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1370], ecx
mov dword [ebp - 0x1364], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x1360]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov cl, byte [0x56261c]
mov byte [ebp - 0x1014], cl
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str._NetStat
mov ecx, dword [ebp + 8]
call fcn.00409440
lea edx, [ebp - 0x1118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x1320]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c_netstat.exe__nr__
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
push str.360xxNetstat.txt
lea edx, [ebp - 0x1118]
push edx
call sub.ntdll.dll_strcat
add esp, 8
lea eax, [ebp - 0x1118]
push eax
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
lea edx, [ebp - 0x1118]
push edx
call dword [0x54b4b8]
lea eax, [ebp - 0x1364]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov word [ebp - 0x1334], 0
mov ecx, dword [ebp - 0x1338]
or ecx, 0xa
mov dword [ebp - 0x1338], ecx
mov dword [ebp - 0x1364], 0x44
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1364]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1320]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x136c], eax
cmp dword [ebp - 0x136c], 0
jne 0x46a7cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor eax, eax
jmp 0x46a897
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x1118]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0xffffffff
jne 0x46a816
xor eax, eax
jmp 0x46a897
push 0
lea edx, [ebp - 4]
push edx
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1368]
push ecx
call dword [0x54b4c4]
test eax, eax
je 0x46a86b
lea edx, [ebp - 0x1014]
push edx
mov ecx, dword [ebp + 8]
call fcn.00409470
cmp dword [ebp - 4], 0x1000
jae 0x46a853
jmp 0x46a86b
push 0x1000
push 0
lea eax, [ebp - 0x1014]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x46a816
mov ecx, dword [ebp - 0x1368]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1118]
push edx
call dword [0x54b4b8]
push 0x524b70
mov ecx, dword [ebp + 8]
call fcn.00409470
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x46ab93
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
push 0x104
lea eax, [ebp - 0x214]
push eax
call fcn.0046acfa
add esp, 8
test eax, eax
jne 0x46abc1
xor eax, eax
jmp 0x46acf6
push 0x524c10
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.00408000
lea edx, [ebp - 0x214]
push edx
call sub.ntdll.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x214]
mov dword [ebp - 4], eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x108]
push edx
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x46ac2b
xor eax, eax
jmp 0x46acf6
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
jmp 0x46ac55
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 7
jae 0x46acf1
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx*4 + 0x524b9c]
push eax
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409100
lea edx, [ebp - 0x214]
push edx
call dword [0x54b4f0]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x46ac9e
xor eax, eax
jmp 0x46acf6
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax*4 + 0x524b9c]
push ecx
push 0x104
mov edx, dword [ebp - 0x110]
push edx
call fcn.00409100
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46acdb
xor eax, eax
jmp 0x46acf6
push 4
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x46ac46
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46b73c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a90
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jae 0x46b7ae
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x46b866
mov dword [ebp - 0x1c], 0
jmp 0x46b7c0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x1c], eax
jae 0x46b84a
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jne 0x46b7ec
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x2c], edx
jmp 0x46b7ff
mov eax, dword [ebp - 0x1c]
add eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + eax + 0xc]
jb 0x46b845
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x46b845
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x46b866
jmp 0x46b7b7
mov dword [ebp - 4], 0xffffffff
jmp 0x46b863
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b9c4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push edi
mov dword [ebp - 0x660], ecx
mov byte [ebp - 0x638], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x637]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32userinit.exe
push 0x104
lea ecx, [ebp - 0x234]
push ecx
call fcn.00408000
mov dword [ebp - 0x130], 0
mov ecx, 0x4b
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46bba7
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x660]
call fcn.0046b877
test eax, eax
je 0x46bba7
push str.MD5:
push 0x400
lea edx, [ebp - 0x638]
push edx
call fcn.00408000
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0046bbb0
add esp, 8
push eax
push 0x400
lea edx, [ebp - 0x638]
push edx
call fcn.00408000
push 0x524e30
push 0x400
lea eax, [ebp - 0x638]
push eax
call fcn.00408000
lea ecx, [ebp - 0x638]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0x638]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x128]
push eax
push 0x524e34
push 0x400
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040a230
add esp, 0x10
lea edx, [ebp - 0x638]
push edx
call sub.ntdll.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x638]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x114]
push ecx
push 0x524e44
push 0x400
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040a230
add esp, 0x10
lea eax, [ebp - 0x638]
push eax
call sub.ntdll.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x638]
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x12c], 0
je 0x46bb61
mov dword [ebp - 0x664], 0x524e54
jmp 0x46bb6b
mov dword [ebp - 0x664], 0x524e58
mov edx, dword [ebp - 0x664]
push edx
push 0x524e60
push 0x400
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040a230
add esp, 0x10
lea ecx, [ebp - 0x638]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x130]
jmp 0x46bba9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x46bc33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov dword [ebp - 0x564], ecx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x46bc60
xor eax, eax
jmp 0x46be3c
push 0x524e98
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00408000
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [0x54b4e8]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x46bca0
xor eax, eax
jmp 0x46be3c
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [0x54b4c8]
cmp dword [ebp - 0x254], 0xffffffff
je 0x46bcc3
mov edx, dword [ebp - 0x254]
and edx, 0x10
test edx, edx
je 0x46bcca
xor eax, eax
jmp 0x46be3c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x110]
push eax
push 0x4b7cd0
push 1
push 0
push 0x4b7ce0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x46bd09
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46be3c
lea ecx, [ebp - 4]
push ecx
push 0x4b7cf0
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x46bd51
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46be3c
push 0x104
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 1
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x46bdb1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46be3c
push 2
push 0
push 0x104
lea edx, [ebp - 0x560]
push edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 0xc]
test eax, eax
je 0x46bdff
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46be3c
lea eax, [ebp - 0x560]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409100
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x46be6d
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x46beb7
xor eax, eax
jmp 0x46bfc3
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], 0
jmp 0x46bee1
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 7
jae 0x46bf5c
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx*4 + 0x524b9c]
push edx
push 0x104
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00409100
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4f0]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x46bf27
jmp 0x46bed2
push 0x80
lea edx, [ebp - 0x104]
push edx
call dword [0x54b4e0]
push 4
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4b8]
jmp 0x46bed2
push str.360.log
push 0x104
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00409100
lea eax, [ebp - 0x104]
push eax
call dword [0x54b4f0]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x46bfbe
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4e0]
push 4
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x104]
push eax
call dword [0x54b4b8]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x46bfc7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x10]
call fcn.0046aa5a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46bfed
mov eax, dword [ebp - 8]
jmp 0x46c043
push 0x524eb4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46c040
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call sub.ntdll.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
jbe 0x46c033
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x46e004
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.00422930
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x46e05e
xor eax, eax
jmp 0x46e127
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.00422930
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x46e09d
xor eax, eax
jmp 0x46e127
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x525ef0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a230
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e0ed
mov eax, 1
jmp 0x46e127
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x525f04
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a230
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e125
mov eax, 1
jmp 0x46e127
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x46e12d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
mov dword [ebp - 0x108], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x46e182
push str.dllcachelsass.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x46e194
push 0x525f30
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409100
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46e1b4
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4d28
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x46e207
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x46e20e
xor eax, eax
jmp 0x46e34b
mov dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp + 0xc], 0
sete cl
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x46e263
cmp dword [ebp - 0x2c], 0
je 0x46e268
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x4550
je 0x46e268
jmp 0x46e31d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042f8d5
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0xc], 0
je 0x46e31d
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042f8d5
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x134]
push edx
call fcn.0046cf30
add esp, 8
test eax, eax
je 0x46e31d
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x46e31d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
add ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x84]
sub ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x84], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x46e336
cmp dword [ebp - 0x1c], 0
je 0x46e348
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042f4e1
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470584
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x4705c2
xor eax, eax
jmp 0x47078a
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x4705eb
cmp dword [ebp - 4], 0x1000000
jb 0x4705ff
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47078a
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x40
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x54b4c4]
test eax, eax
je 0x470698
mov ecx, dword [ebp - 0x144]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x470698
push 0
push 0
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x54b4e4]
cmp eax, dword [ebp - 0x108]
jne 0x470698
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0xf8
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x54b4c4]
test eax, eax
je 0x470698
cmp dword [ebp - 0xfc], 0x4550
jne 0x470698
mov ecx, dword [ebp - 0xf6]
and ecx, 0xffff
test ecx, ecx
jne 0x4706ac
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47078a
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x4706c9
mov eax, 1
jmp 0x47078a
mov dword [ebp - 0x14c], 0
jmp 0x4706e4
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x14c], 2
jae 0x470788
mov dword [ebp - 0x218], 0
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx*4 + 0x4b5404]
mov ecx, dword [ebp - 0x218]
movsx edx, byte [eax + ecx]
cmp edx, 0xffffffff
je 0x47074b
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax*4 + 0x4b5404]
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
mov cl, byte [ecx + eax]
mov byte [ebp + edx - 0x214], cl
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
jmp 0x4706fb
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x214], 0
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x528014
mov eax, dword [ebp + 8]
push eax
call fcn.0042e9f2
add esp, 0x10
test eax, eax
je 0x470783
mov eax, 1
jmp 0x47078a
jmp 0x4706d5
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x470790
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14c], ecx
push str.inf_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
jne 0x4707bc
xor eax, eax
jmp 0x4708e4
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x4707eb
xor eax, eax
jmp 0x4708e4
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x470814
cmp dword [ebp - 4], 0x1000000
jb 0x470828
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4708e4
push 0
lea edx, [ebp - 0x100]
push edx
push 0x40
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x54b4c4]
test eax, eax
je 0x4708c1
mov edx, dword [ebp - 0x144]
and edx, 0xffff
cmp edx, 0x5a4d
jne 0x4708c1
push 0
push 0
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x54b4e4]
cmp eax, dword [ebp - 0x108]
jne 0x4708c1
push 0
lea edx, [ebp - 0x100]
push edx
push 0xf8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x54b4c4]
test eax, eax
je 0x4708c1
cmp dword [ebp - 0xfc], 0x4550
jne 0x4708c1
mov edx, dword [ebp - 0xf6]
and edx, 0xffff
test edx, edx
jne 0x4708d2
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4708e4
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4