joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486b50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x6c]
push str._CRASH_KEEP_LOGS
push eax
call fcn.00490790
push ecx
mov edx, esp
cmp dword [eax + 0x14], 0x10
jb 0x486b7c
mov ecx, dword [eax]
jmp 0x486b7e
mov ecx, eax
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043f5c0
add esp, 0xc
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004164b6
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x486ba9
mov ecx, dword [eax]
jmp 0x486bab
mov ecx, eax
mov dword [ebp - 0x74], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00448740
add esp, 8
cmp dword [ebp - 0x10], 0x10
jb 0x486bd5
push dword [ebp - 0x24]
call fcn.00492cb0
add esp, 4
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
jb 0x486bf8
push dword [ebp - 0x3c]
call fcn.00492cb0
add esp, 4
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jb 0x486c1b
push dword [ebp - 0x6c]
call fcn.00492cb0
add esp, 4
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0xc]
push 4
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x486c88
mov ecx, 0x4d46fc
lea eax, [ebp - 0xc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486c66
test dx, dx
je 0x486c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x486c40
xor eax, eax
jmp 0x486c6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x486c84
lea eax, [ebp - 0xc]
push 0x4c7240
push eax
call fcn.0049ca3a
add esp, 8
test eax, eax
jne 0x486c88
mov bl, 1
jmp 0x486c8a
xor bl, bl
cmp dword [ebp - 0x40], 8
jb 0x486c9b
push dword [ebp - 0x54]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x486de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00486cb0
add esp, 4
test al, al
je 0x486f58
lea eax, [ebp - 0x50]
push eax
call fcn.004869c0
add esp, 4
test al, al
je 0x486f58
push str.crash_reporter_minidump
call fcn.004462d0
mov ecx, eax
call fcn.00446b20
mov bl, al
test bl, bl
jne 0x486e40
push 1
call fcn.00488260
add esp, 4
call fcn.0048c5c0
lea ecx, [ebp - 0x1c]
call fcn.0043fee0
lea eax, [ebp - 0x1c]
push eax
call fcn.00442eb0
call fcn.0048cfd0
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0048cf00
add esp, 4
mov edx, esp
cmp dword [eax + 0x14], 0x10
jb 0x486e6f
mov ecx, dword [eax]
jmp 0x486e71
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00440430
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043ffa0
lea ecx, [ebp - 0x4c]
call fcn.0043ff00
cmp dword [ebp - 0x20], 0x10
jb 0x486ea7
push dword [ebp - 0x34]
call fcn.00492cb0
add esp, 4
lea eax, [ebp - 0x54]
xor bh, bh
push eax
call fcn.00487bc0
mov esi, dword [ebp - 0x58]
add esp, 4
test al, al
je 0x486efd
cmp dword [ebp - 0x54], 3
jb 0x486efd
lea eax, [ebp - 0x1c]
push eax
test bl, bl
je 0x486eda
push dword [ebp - 0x50]
push esi
call fcn.0048c730
add esp, 0xc
mov bh, al
jmp 0x486efd
lea eax, [ebp - 0x34]
push eax
call fcn.00448870
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x50]
push esi
call fcn.004874c0
add esp, 0x14
lea ecx, [ebp - 0x34]
mov bh, al
call fcn.004049cf
push esi
call fcn.004881b0
add esp, 4
test bh, bh
je 0x486f50
call fcn.0048b0b0
test bl, bl
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0048b3d0
add esp, 8
test al, al
je 0x486f3e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x2c]
push eax
call fcn.00488140
add esp, 4
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
call fcn.0043ff00
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x487bc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], 0
call fcn.00487f10
mov esi, dword [ebp - 0x18]
add esp, 4
test al, al
je 0x487ca3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 8
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push str.Last_crash_in_crash_reporter
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x487c37
push 8
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 0xb
push 0
push str.Last_crash_in_crash_reporter
push esi
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x487ca3
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x487ca3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jb 0x487ca3
mov edx, dword [ebp - 0x24]
ja 0x487c6b
cmp ecx, edx
jb 0x487ca3
sub ecx, edx
push 0xc9
sbb eax, dword [ebp - 0x20]
push 0x2a69c000
push eax
push ecx
call fcn.0049a810
test edx, edx
jne 0x487c93
cmp eax, 0xffffffff
jae 0x487c93
mov dword [ebx], eax
mov bl, 1
mov dword [ebp - 0x18], edx
jmp 0x487ca5
or eax, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebx], eax
mov bl, 1
jmp 0x487ca5
xor bl, bl
test esi, esi
je 0x487cb5
call fcn.00448900
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret

Function at 0x4880a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00498640
add esp, 0xc
mov dword [ebp - 0x54], 0x44
cmp dword [0x4e2254], 8
lea ecx, [ebp - 0x10]
mov eax, 0x4e2240
xorps xmm0, xmm0
cmovae eax, dword [0x4e2240]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x488134
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e547c]
test eax, eax
je 0x488129
cmp eax, 0xffffffff
je 0x488129
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x488140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4881a5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], 0
call fcn.00487f10
mov esi, dword [ebp - 4]
add esp, 4
test al, al
je 0x488194
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
push str.Last_crash_in_crash_reporter
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4881a4
call fcn.00448900
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48b310
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x28
mov dword [ebp - 4], 0
call fcn.00492cd0
mov ecx, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x48b3bb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0048a870
mov edi, eax
test edi, edi
je 0x48b3b8
push 0x10
push edi
push 0x48b580
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x48b361
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x20], 0x10
jb 0x48b372
push dword [edi + 0xc]
call fcn.00492cb0
add esp, 4
mov dword [edi + 0x20], 0xf
lea ecx, [edi + 4]
mov dword [edi + 0x1c], 0
mov byte [edi + 0xc], 0
mov eax, dword [edi + 4]
push esi
push eax
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.0048b8f0
push dword [edi + 4]
call fcn.00492cb0
add esp, 4
call fcn.0048e960
mov ecx, eax
call fcn.0048eb80
push edi
call fcn.00492cb0
add esp, 4
pop esi
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x48b3c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48b3d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x40
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00492cd0
add esp, 4
test eax, eax
je 0x48b56e
lea ecx, [eax + 4]
mov dword [eax], eax
test ecx, ecx
je 0x48b410
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x48b419
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0048a790
mov bl, byte [ebp + 0xc]
xor eax, eax
add esp, 4
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
test bl, bl
je 0x48b497
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], 0x4c7544
mov dword [eax + 4], 3
lea eax, [ebp - 0x34]
push eax
call fcn.00441ac0
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x48b477
push 0xffffffffffffffff
push 0
push eax
call fcn.004058f5
lea ecx, [ebp - 0x34]
call fcn.0043ff00
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0048b7c0
add esp, 8
test al, al
jne 0x48b4aa
xor bh, bh
jmp 0x48b51a
lea eax, [ebp - 0x1c]
cmp eax, esi
je 0x48b4aa
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004058f5
push 4
xor eax, eax
mov dword [ebp - 0x20], 7
push 0x4c7518
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.0040576a
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x4e22d0
push 0x4e22e8
call fcn.004940c0
add esp, 0x20
mov bh, al
cmp dword [ebp - 0x20], 8
jb 0x48b504
push dword [ebp - 0x34]
call fcn.00492cb0
add esp, 4
test bl, bl
je 0x48b51a
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], 8
jb 0x48b52b
push dword [ebp - 0x1c]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 0x3c]
xor eax, eax
push ecx
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
push dword [ecx]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0048b8f0
push dword [ebp - 0x3c]
call fcn.00492cb0
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bh
xor ecx, ebp
pop esi
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
call fcn.004b5f4b
int3
Function at 0x48c5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
mov ecx, 0x4e548c
call fcn.00477860
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x48c622
lea ecx, [eax + 0x18]
cmp ecx, 0x105
ja 0x48c622
lea edx, [ebp - 0x210]
mov ecx, str.opera_crashreporter.log
lea edx, [edx + eax*2]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x48c610
jmp 0x48c62b
xor eax, eax
mov word [ebp - 0x210], ax
lea ecx, [ebp - 0x220]
call fcn.0043c990
xor eax, eax
mov dword [ebp - 0x214], 0
cmp word [ebp - 0x210], ax
mov dword [ebp - 0x218], 0
sete al
inc eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
call fcn.0043cee0
push 1
push 1
push 1
push 1
call fcn.0043d7f0
push 0x48c6b0
call fcn.0043d820
push 0
call fcn.0043d830
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x48ca40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
push str.dbghelp.dll
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x48cbe4
mov esi, edi
call fcn.00448900
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x48cbe4
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x58], 1
mov ecx, dword [edi + 4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x5c], ecx
call fcn.004903c0
add esp, 4
lea ecx, [ebp - 0x1c]
push 0x20
push 1
call fcn.0043dac0
call fcn.00490400
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00487ae0
add esp, 8
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
push 0
push eax
call fcn.004054c1
cmp dword [ebp - 0x20], 0x10
jb 0x48caf5
push dword [ebp - 0x34]
call fcn.00492cb0
add esp, 4
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov eax, 1
mov dword [ebp - 0x78], 0x10000
cmp dword [edi], eax
jne 0x48cb32
lea eax, [edi + 0xc]
mov dword [ebp - 0x6c], 0x10001
mov dword [ebp - 0x64], eax
mov eax, 2
mov dword [ebp - 0x68], 0x304
mov dword [ebp - 0x54], eax
xor edi, edi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], 0
jmp 0x48cb50
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + edi*4 - 0x3c]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x44]
call dword [ebp - 0x40]
cmp eax, 1
jne 0x48cb91
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x48cbbd
cmp dword [ebp - 0x48], 0
ja 0x48cb9e
cmp eax, 0x7d000
ja 0x48cb9e
mov bl, 1
jmp 0x48cbbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80070057
jne 0x48cbbd
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x48cbb7
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
inc edi
cmp edi, 2
jb 0x48cb50
xor bl, bl
cmp dword [ebp - 8], 0x10
jb 0x48cbd0
push dword [ebp - 0x1c]
call fcn.00492cb0
add esp, 4
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jmp 0x48cbe6
xor bl, bl
test esi, esi
je 0x48cbf6
call fcn.00448900
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x48cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 0x14], 8
jb 0x48cc22
mov eax, dword [esi]
jmp 0x48cc24
mov eax, esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48cc47
pop edi
xor al, al
pop esi
pop ebp
ret
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048ca40
add esp, 0x10
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x48cc76
cmp dword [esi + 0x14], 8
jb 0x48cc6f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x48cc80
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x48ccc3
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x23c]
push eax
sub esp, 8
lea eax, [ebp - 0x20c]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x20c], 0
jne 0x48cce5
xor ecx, ecx
jmp 0x48ccff
lea ecx, [ebp - 0x20c]
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48ccf0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x224]
call fcn.0043fe80
mov ecx, eax
call fcn.00440760
cmp esi, eax
je 0x48cd24
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004058f5
lea ecx, [ebp - 0x23c]
call fcn.0043ff00
lea ecx, [ebp - 0x224]
call fcn.0043ff00
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x48cff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4e54a0
push 0x7e1
call fcn.00456090
push 0x4e54b8
push 0x7e0
call fcn.00456090
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.OPERA_CRASH_LOG_DIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x48d107
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004053f4
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00440f60
add esp, 8
cmp dword [ebp - 0x210], 8
jb 0x48d086
push dword [ebp - 0x224]
call fcn.00492cb0
add esp, 4
lea eax, [ebp - 0x23c]
push eax
call fcn.00448d00
add esp, 4
test al, al
je 0x48d0fc
lea eax, [ebp - 0x23c]
mov ecx, 0x4e54d0
push eax
call fcn.0043ffa0
lea eax, [ebp - 0x224]
mov ecx, 0x4e54b8
push eax
call fcn.00440760
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004401a0
push eax
mov ecx, 0x4e54b8
call fcn.0043ffa0
lea ecx, [ebp - 0x254]
call fcn.0043ff00
lea ecx, [ebp - 0x224]
mov byte [0x4e549a], 1
call fcn.0043ff00
lea ecx, [ebp - 0x23c]
call fcn.0043ff00
cmp dword [0x4e54e0], 0
jne 0x48d12b
push 0x4e54d0
call fcn.00442eb0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x48d180
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
jne 0x48d1fe
call fcn.0043d250
cmp eax, 2
jg 0x48d1e1
lea ebx, [edi + 1]
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x25
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0xbc]
call fcn.0043c9b0
add eax, 0x10
push str.GetLogicalDriveStrings_failed
push eax
call fcn.00405c42
add esp, 8
test bl, 1
je 0x48d28f
lea ecx, [ebp - 0xbc]
call fcn.0043cc50
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0042cc9b
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 4], eax
test eax, eax
je 0x48d21d
cmp eax, edi
jbe 0x48d28f
call fcn.0043d250
cmp eax, 2
jg 0x48d276
mov ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x2b
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0xbc]
call fcn.0043c9b0
push edi
push str.__length
push dword [ebp - 4]
add eax, 0x10
push str.GetLogicalDriveStrings_failed__result
push eax
call fcn.00405c42
add esp, 8
mov ecx, eax
call fcn.00413dc9
push eax
call fcn.00405c42
add esp, 8
mov ecx, eax
call fcn.00413dc9
test bl, 2
je 0x48d286
lea ecx, [ebp - 0xbc]
call fcn.0043cc50
push 0
mov ecx, esi
call fcn.0042cc9b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
movzx eax, word [edi]
test ax, ax
je 0x48d77b
lea eax, [edi + 2]
mov ecx, 0x4c77b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48d68b
test dx, dx
je 0x48d687
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48d68b
add eax, 4
add ecx, 4
test dx, dx
jne 0x48d665
xor eax, eax
jmp 0x48d690
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48d77b
movzx eax, word [edi]
mov word [ebp - 0xc], ax
mov ax, word [edi + 2]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x48d750
call fcn.0043d250
cmp eax, 2
jg 0x48d737
mov ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x52
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x2cc]
call fcn.0043c9b0
push 0x4c77d0
push edi
push str.__from_
lea ecx, [ebp - 0xc]
add eax, 0x10
push ecx
push str.QueryDosDevice_failed_for_
push eax
call fcn.00405c42
add esp, 8
push eax
call fcn.0043ce20
add esp, 8
push eax
call fcn.00405c42
add esp, 8
push eax
call fcn.0043ce20
add esp, 8
push eax
call fcn.00405c42
add esp, 8
test bl, 2
je 0x48d7d6
lea ecx, [ebp - 0x2cc]
call fcn.0043cc50
jmp 0x48d7d6
sub esp, 8
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00405e0f
mov ecx, esi
call fcn.0043fe80
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
call fcn.0043d250
cmp eax, 1
jg 0x48d7c6
mov ebx, 1
lea ecx, [ebp - 0x2c4]
push ebx
push 0x4c
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reporterprocess_state_impl.cc
call fcn.0043c8d0
push 0x4c77b8
push edi
add eax, 8
push str.GetDeviceName:_
push eax
call fcn.00405c42
add esp, 8
push eax
call fcn.0043ce20
add esp, 8
push eax
call fcn.00405c42
add esp, 8
test bl, 1
je 0x48d7d6
lea ecx, [ebp - 0x2c4]
call fcn.0043c9e0
mov ecx, esi
call fcn.0043fee0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret
Function at 0x48d820
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x104
push ecx
push eax
mov dword [ebp - 0x210], ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x48d8ad
call fcn.0043d250
cmp eax, 2
jg 0x48d894
mov ebx, 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x44
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_1desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x2c8]
call fcn.0043c9b0
add eax, 0x10
push str.GetProcessImageFileName_failed
push eax
call fcn.00405c42
add esp, 8
test bl, 1
je 0x48d8a4
lea ecx, [ebp - 0x2c8]
call fcn.0043cc50
xor eax, eax
mov word [ebp - 0x20c], ax
sub esp, 8
lea eax, [ebp - 0x20c]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x20c], 0
jne 0x48d8c8
xor ecx, ecx
jmp 0x48d8e0
lea ecx, [ebp - 0x20c]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d8d1
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0043fe80
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret