joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40251c
Capabilities:
Check if file exists
Delete file
Get number of processors
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, ecx
push edi
test esi, esi
je 0x402589
push ecx
lea edx, [ebp - 0x210]
call fcn.00401d4c
test eax, eax
js 0x402589
push esi
call fcn.00401c12
mov edi, eax
test edi, edi
je 0x402589
xor esi, esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402582
inc esi
cmp esi, 0x14
jb 0x40254b
jmp 0x402589
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x10]
add edi, 0x40
je 0x402646
movzx ecx, word [edi]
add ecx, 2
call fcn.00404f83
movzx ecx, word [edi]
mov esi, eax
add ecx, 2
push ecx
mov ecx, esi
call fcn.0040553d
mov edx, dword [edi + 4]
pop ecx
movzx ecx, word [edi]
push ecx
mov ecx, esi
call fcn.0040550e
mov dword [esp], 0x4077b4
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
lea edx, [ebp - 4]
lea ecx, [eax + 4]
call fcn.004050bb
test eax, eax
je 0x402646
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x210]
call fcn.00401d4c
test eax, eax
js 0x402646
push dword [ebp - 4]
call fcn.00401c12
mov esi, eax
test esi, esi
je 0x402646
xor edi, edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40263f
inc edi
cmp edi, 0x14
jb 0x402608
jmp 0x402646
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402a89
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 8], ecx
push 0x429ffc
call dword [0x42a000]
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
push dword [ebp - 8]
mov dword [ecx], eax
mov ecx, esi
call fcn.004027f8
add esp, 0xc
test eax, eax
je 0x402b28
lea ecx, [ebp - 0x210]
call fcn.00404f4a
test eax, eax
je 0x402b28
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
push esi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402b1b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b30
inc edi
cmp edi, 0xc8
jl 0x402a9f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xor eax, eax
inc eax
jmp 0x402b2a
Function at 0x402b43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov esi, edx
mov edx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00402a08
pop ecx
pop ecx
test eax, eax
je 0x402d07
cmp esi, 0x42
jne 0x402b81
mov ecx, dword [ebp + 8]
call fcn.0040251c
xor eax, eax
inc eax
jmp 0x402d07
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x40
jne 0x402b92
call edi
mov esi, eax
jmp 0x402b9a
cmp esi, 0x41
jne 0x402c08
mov esi, dword [ebp + 8]
push ecx
call edi
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.00401d4c
test eax, eax
jns 0x402bb5
xor edi, edi
jmp 0x402d05
push ecx
lea ecx, [ebp - 0x214]
call fcn.00403d2d
pop ecx
test eax, eax
je 0x402bae
mov edx, dword [0x429ff4]
test edx, edx
je 0x402bae
mov ecx, dword [0x429ff0]
test ecx, ecx
je 0x402bae
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402bae
mov eax, dword [ecx + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x402bae
push edx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x429ff8], eax
jmp 0x402c0c
xor edi, edi
mov esi, edi
lea ecx, [ebp - 0x41c]
call fcn.00403e59
test eax, eax
je 0x402d05
lea ecx, [ebp - 0x41c]
call fcn.004054ad
test eax, eax
je 0x402d05
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebx]
lea edx, [eax + 2]
push esi
call fcn.00402a89
add esp, 0xc
test eax, eax
je 0x402d05
push dword [0x429ff4]
mov esi, dword [0x429ff8]
mov ecx, esi
mov edx, dword [0x429ff0]
call fcn.0040550e
mov ebx, dword [0x429ff4]
pop ecx
test esi, esi
je 0x402ca1
test ebx, ebx
je 0x402ca1
push 4
lea edx, [ebp - 8]
lea ecx, [ebp - 0x51c]
call fcn.00403292
pop ecx
push ebx
mov edx, esi
lea ecx, [ebp - 0x51c]
call fcn.00403314
mov ebx, dword [0x429ff4]
pop ecx
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0x41
jne 0x402d0e
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x41c]
mov ebx, str..exe
push ebx
push eax
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
call esi
push dword [0x429ff4]
mov edx, dword [0x429ff0]
lea ecx, [ebp - 0x214]
call fcn.004040d6
pop ecx
test eax, eax
je 0x402d05
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x1c]
call esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x18]
call esi
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov edx, esi
lea ecx, [ebp - 0x41c]
jmp 0x402cda
Function at 0x403292
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor eax, eax
mov dword [ebp - 8], 0x100
push esi
mov esi, ecx
mov dword [ebp - 4], eax
push edi
mov ebx, eax
mov dword [ebp - 0x10], esi
mov edi, esi
lea eax, [ebp - 0x110]
sub edi, eax
mov esi, edx
xor edx, edx
lea ecx, [ebp - 0x110]
mov eax, ebx
add ecx, ebx
div dword [ebp + 8]
mov byte [edi + ecx], bl
inc ebx
mov al, byte [edx + esi]
mov byte [ecx], al
cmp ebx, 0x100
jb 0x4032bd
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x110]
mov ebx, esi
sub edi, esi
mov dl, byte [ebx]
movzx eax, byte [edi + ebx]
add eax, dword [ebp - 4]
movzx ecx, dl
add ecx, eax
movzx ecx, cl
mov dword [ebp - 4], ecx
mov al, byte [ecx + esi]
mov byte [ebx], al
inc ebx
sub dword [ebp - 8], 1
mov byte [ecx + esi], dl
jne 0x4032ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
mov eax, esi
mov ebx, esi
push edi
mov edi, ecx
cmp dword [ebp + 8], eax
jbe 0x403365
inc eax
movzx ecx, al
mov dword [ebp - 8], ecx
mov dl, byte [ecx + edi]
movzx eax, dl
add eax, esi
movzx esi, al
mov al, byte [esi + edi]
mov byte [ecx + edi], al
mov byte [esi + edi], dl
movzx ecx, byte [ecx + edi]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 4]
mov al, byte [eax + edi]
xor byte [ebx + ecx], al
inc ebx
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp + 8]
jb 0x40332c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40336c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 4
and dword [ebp - 4], esi
mov edi, ecx
push 3
pop ebx
test edi, edi
je 0x4033ef
mov eax, ebx
dec ebx
test eax, eax
jle 0x4033ef
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
je 0x4033e2
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
test esi, esi
je 0x4033e2
cmp dword [ebp - 4], 0xc8
je 0x4033ef
cmp dword [ebp - 4], 0xce
je 0x4033ef
xor esi, esi
jmp 0x403389
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403389
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40372b
Capabilities:
Connect to http server
Create http request
Get http content length
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26ec
call fcn.00406a40
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], eax
lea ecx, [ebp - 0x50]
push 0x3c
pop esi
push esi
mov word [ebp - 0x450], ax
mov word [ebp - 0x250], ax
mov word [ebp - 0x150], ax
mov word [ebp - 0x26e8], ax
mov word [ebp - 0x16a0], ax
mov word [ebp - 0x658], ax
mov dword [ebp - 0x14], 4
call fcn.0040553d
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x450]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x26e8]
pop ecx
lea ecx, [esi + 0x44]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x3c], 0x100
mov esi, 0x80000000
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x824
mov dword [ebp - 4], eax
test edi, edi
je 0x403935
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40390a
cmp dword [ebp - 0x44], 3
je 0x403803
cmp dword [ebp - 0x44], 4
jne 0x40390a
cmp dword [ebp - 0x44], 4
mov eax, 0x80803000
cmove esi, eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Chrome
mov dword [ebp - 8], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x403831
mov esi, ebx
jmp 0x403933
push ebx
push ebx
push 3
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x450]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
jne 0x403861
xor esi, esi
jmp 0x403925
cmp dword [ebp - 0x20], 0
lea ecx, [ebp - 0x16a0]
mov edx, dword [ebp - 0x24]
jne 0x403875
mov edx, 0x407824
call fcn.004054e4
push 0
push esi
push 0
push 0x4077c8
push str.HTTP_1.1
lea eax, [ebp - 0x16a0]
push eax
push 0x407828
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.0040336c
mov esi, eax
test esi, esi
je 0x40390c
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x4038e3
cmp eax, 0x3e800000
ja 0x40390c
test edi, edi
je 0x4038e3
cmp dword [edi], eax
mov dword [edi], eax
jae 0x4038e3
push 3
pop esi
jmp 0x40390c
push dword [ebp - 8]
lea ecx, [ebp - 0x658]
dec eax
push ecx
push 1
push dword [ebp + 8]
lea edx, [ebp - 0x16a0]
mov ecx, ebx
push eax
push esi
push esi
call fcn.004033f8
add esp, 0x1c
mov esi, eax
jmp 0x40390c
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x40391a
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x403925
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403933
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d2d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403d69
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x403d72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
je 0x403dac
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x403d62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x429ff4], edi
mov dword [0x429ff0], ebx
inc eax
jmp 0x403d6b

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov dword [ebp - 4], ecx
xor esi, esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403f52
lea ecx, [ebp - 0x20c]
call fcn.004054ad
test eax, eax
je 0x403f52
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push str.temp
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x429ffc
call dword [0x42a000]
xor edx, edx
push 5
pop ecx
div ecx
add edx, ecx
lea ecx, [ebp - 0x414]
call fcn.00403e07
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403f28
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403f35
inc esi
cmp esi, 0xc8
jl 0x403e68
cmp esi, 0xc8
jge 0x403f52
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xor eax, eax
inc eax
jmp 0x403f54
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403f5c
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
xor esi, esi
mov dword [ebp - 8], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, esi
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404085
lea ecx, [ebp - 0x214]
call fcn.004054ad
test eax, eax
je 0x404085
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x214]
push str.temp
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x429ffc
call dword [0x42a000]
xor edx, edx
push 5
pop ecx
div ecx
add edx, ecx
lea ecx, [ebp - 0x41c]
call fcn.00403e07
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x404030
lea eax, [ebp - 0x41c]
push eax
call ebx
test eax, eax
je 0x40403d
inc edi
cmp edi, 0xc8
jl 0x403f78
cmp edi, 0xc8
jge 0x404085
push esi
push esi
push 2
push esi
push esi
push 0x10000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404085
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40408e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x40407e
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4040cb
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x404087
Function at 0x4040d6
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4040f4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404113
xor eax, eax
jmp 0x404163
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40410f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40412e
mov eax, dword [ebp + 8]
push esi
cmp dword [ebp - 4], eax
je 0x40415a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40410f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4046c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 4]
push esi
push eax
push 9
xor esi, esi
push esi
push str.SYSTEMControlSet001EnumDISPLAY
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4047f3
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4047ea
mov esi, dword [ebp - 0xc]
jmp 0x4047e1
xor eax, eax
push 0x100
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor eax, eax
lea ecx, [ebp - 0x220]
mov edx, str.SYSTEMControlSet001EnumDISPLAY
mov word [ebp - 0x220], ax
call fcn.004054e4
push 0x4078c4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 8]
push eax
push 9
push 0
lea eax, [ebp - 0x220]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4047e1
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4047e1
cmp dword [ebp - 0x20], eax
je 0x4047d8
lea ecx, [ebp - 0x220]
call fcn.004043df
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, 1
jns 0x404723
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4047f8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8c
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
mov byte [ebx], 0
push esi
lea eax, [ebp - 0x290]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40496d
and dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push 0xc
call fcn.0040553d
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0xb8c]
and dword [ebp - 0x10], 0
mov dword [esp], 0x8fc
call fcn.0040553d
pop ecx
push 0
lea eax, [ebp - 8]
push eax
push 0x8fc
lea eax, [ebp - 0xb8c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404966
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4048e5
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
push edx
push eax
call fcn.00406990
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.00406990
shrd eax, edx, 0x1e
mov dword [ebp - 4], eax
shr edx, 0x1e
jmp 0x4048e9
and dword [ebp - 4], 0
push 0x64
lea ecx, [ebp - 0x90]
call fcn.0040553d
lea eax, [ebp - 0x90]
mov dword [esp], 0x4079ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
add dword [0x42a004], eax
mov eax, dword [ebp - 0xb80]
test eax, eax
je 0x404933
lea ecx, [ebp - 0xb8c]
add eax, ecx
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0xb7c]
test eax, eax
je 0x404953
lea ecx, [ebp - 0xb8c]
add eax, ecx
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x28a
lea eax, [ebp - 0x90]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x64
jl 0x40480b
push 0x28a
push 0x4079ac
push ebx
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b42
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ecx
push edi
mov esi, 0x11c
mov dword [ebp - 0x10], ebx
push esi
lea ecx, [ebp - 0x258]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0040553d
pop ecx
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], esi
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x404ba0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0xb8], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x404bd4
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
shrd ecx, eax, 0x14
mov dword [ebp - 4], ecx
shr eax, 0x14
push 0x80
lea ecx, [ebp - 0x138]
call fcn.0040553d
movaps xmm0, xmmword [0x407e60]
lea ecx, [ebp - 0x78]
push 0x50
movups xmmword [ebp - 0x28], xmm0
call fcn.0040553d
pop ecx
pop ecx
mov edi, 0x80000000
xor ecx, ecx
mov eax, edi
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp eax, edi
jb 0x404c70
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp edi, 0x80000002
jne 0x404c47
lea ecx, [ebp - 0x78]
jmp 0x404c5f
cmp edi, 0x80000003
jne 0x404c54
lea ecx, [ebp - 0x68]
jmp 0x404c5f
cmp edi, 0x80000004
jne 0x404c6a
lea ecx, [ebp - 0x58]
push 0x10
lea edx, [ebp - 0x28]
call fcn.0040550e
pop ecx
inc edi
cmp edi, dword [ebp - 0x14]
jbe 0x404c22
cmp byte [ebp - 0x78], 0
je 0x404ca0
lea ecx, [ebp - 0x78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404c7c
push 0x104
lea eax, [ebp - 0x138]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push str.Mozilla____d._d._d__d__SymbianOS___9.1__U___en___SymbianOS___91_Series60___3.0___s
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret