joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470720
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
lea eax, [edi + 0x38]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x3c]
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x20]
push 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 1
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0
push eax
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_TransactNamedPipe]
test eax, eax
je 0x470869
cmp dword [ebp - 0x30], 2
jne 0x470869
cmp dword [ebp - 0x2c], 0
je 0x470869
cmp dword [ebp - 0x10], 0
je 0x470869
cmp dword [ebp - 0xc], 0
je 0x470869
cmp dword [ebp - 8], 0
je 0x470869
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x84], 0
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
push eax
push esi
movdqu xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x88], 3
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x470869
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x473800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4d9860], ecx
inc eax
cmp eax, 0x100
jb 0x473802
cmp eax, 0x800
jae 0x4738d3
mov edi, edi
mov edx, dword [eax*4 + 0x4d9460]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4d9860]
mov dword [eax*4 + 0x4d9860], edx
inc eax
cmp eax, 0x800
jb 0x4738b0
mov dword [0x4d8128], 0x474640
call fcn.00474480
mov ecx, dword [0x4d8128]
test eax, eax
mov edx, 0x4746e0
cmove ecx, edx
mov dword [0x4d8128], ecx
ret
Function at 0x4749c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x4749e0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x474a12
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x474a0f
inc esi
cmp esi, edx
jb 0x474a00
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x474b37
cmp ecx, 3
jbe 0x474a2c
xor eax, eax
jmp 0x474a6a
dec ecx
shl eax, cl
and eax, 7
je 0x474a6a
movzx ecx, byte [eax + 0x4b9768]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4b9760], 0
mov cl, byte [edx + 4]
je 0x474a54
test cl, cl
je 0x474a54
cmp cl, 0xff
jne 0x474a67
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x4749f4
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x474a8c
cmp cl, 0xff
je 0x474a8c
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x4749f4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x18], 0
je 0x474abd
lea edx, [edi + ebx]
add edx, esi
jmp 0x474ac3
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x474b01
movzx edi, byte [eax + 0x4b9768]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x474aed
cmp cl, 0xff
jne 0x474b01
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x474ab0
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
add ebx, 5
mov byte [esi + 2], cl
mov esi, dword [ebp + 8]
jmp 0x4749f4
pop edi
pop esi
cmp ecx, 3
jbe 0x474b4c
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 0xc]
push eax
push str.OPERA_CRASH_KEEP_LOGS
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x477614
mov eax, 0x4c8348
lea ecx, [ebp - 0xc]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4775e6
test dx, dx
je 0x4775e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4775e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4775c0
xor eax, eax
jmp 0x4775eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x477604
lea eax, [ebp - 0xc]
push 0x4b9978
push eax
call fcn.0048d89a
add esp, 8
test eax, eax
jne 0x477614
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x477780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00477630
add esp, 4
test al, al
je 0x47791a
lea eax, [ebp - 0x68]
push eax
call fcn.00477390
add esp, 4
test al, al
je 0x47791a
push ebx
push str.crash_reporter_minidump
lea ecx, [ebp - 0x34]
call fcn.00404000
lea eax, [ebp - 0x34]
push eax
call fcn.004470f0
mov ecx, eax
call fcn.004478e0
cmp dword [ebp - 0x20], 0x10
mov bl, al
jb 0x4777e9
push dword [ebp - 0x34]
call fcn.004835e0
add esp, 4
test bl, bl
jne 0x4777fc
push 1
call fcn.00478670
add esp, 4
call fcn.0047c300
lea ecx, [ebp - 0x1c]
call fcn.0043c120
lea eax, [ebp - 0x1c]
push eax
call fcn.0043ecc0
call fcn.0047cc20
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0047cbe0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x477829
mov ecx, dword [eax]
jmp 0x47782b
mov ecx, eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0043c630
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043c1e0
lea ecx, [ebp - 0x64]
call fcn.0043c140
cmp dword [ebp - 0x38], 0x10
jb 0x477866
push dword [ebp - 0x4c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x70]
xor bh, bh
push esi
push eax
call fcn.00478030
mov esi, dword [ebp - 0x6c]
add esp, 4
test al, al
je 0x4778bd
cmp dword [ebp - 0x70], 3
jb 0x4778bd
lea eax, [ebp - 0x1c]
push eax
test bl, bl
je 0x47789a
push dword [ebp - 0x68]
push esi
call fcn.0047c460
add esp, 0xc
mov bh, al
jmp 0x4778bd
lea eax, [ebp - 0x4c]
push eax
call fcn.00440430
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x68]
push esi
call fcn.00477ae0
add esp, 0x14
lea ecx, [ebp - 0x4c]
mov bh, al
call fcn.00404052
push esi
call fcn.004785c0
add esp, 4
pop esi
test bh, bh
je 0x477911
call fcn.0047b3f0
test bl, bl
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0047b7b0
add esp, 8
test al, al
je 0x4778ff
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x2c]
push eax
call fcn.00478550
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.0043c140
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x478030
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d5630]
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.00478370
mov esi, dword [ebp - 0x18]
add esp, 4
test al, al
je 0x478113
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 0x4780a7
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 0x478113
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 0x478113
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jb 0x478113
mov edx, dword [ebp - 0x24]
ja 0x4780db
cmp ecx, edx
jb 0x478113
sub ecx, edx
push 0xc9
sbb eax, dword [ebp - 0x20]
push 0x2a69c000
push eax
push ecx
call fcn.0048c540
test edx, edx
jne 0x478103
cmp eax, 0xffffffff
jae 0x478103
mov dword [ebx], eax
mov bl, 1
mov dword [ebp - 0x18], edx
jmp 0x478115
or eax, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebx], eax
mov bl, 1
jmp 0x478115
xor bl, bl
test esi, esi
je 0x478125
call fcn.00440520
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.00486d53
mov esp, ebp
pop ebp
ret

Function at 0x4784b0
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.00488e30
add esp, 0xc
mov dword [ebp - 0x54], 0x44
cmp dword [0x4d5218], 8
lea ecx, [ebp - 0x10]
mov eax, 0x4d5204
xorps xmm0, xmm0
cmovae eax, dword [0x4d5204]
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 0x478544
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 [0x4d8454]
test eax, eax
je 0x478539
cmp eax, 0xffffffff
je 0x478539
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 0x478550
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 0x4785b5
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.00478370
mov esi, dword [ebp - 4]
add esp, 4
test al, al
je 0x4785a4
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 0x4785b4
call fcn.00440520
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47b6f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x28
mov dword [ebp - 4], 0
call fcn.00483600
mov ecx, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x47b79b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0047aba0
mov edi, eax
test edi, edi
je 0x47b798
push 0x10
push edi
push 0x47b980
call dword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
test eax, eax
je 0x47b741
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x20], 0x10
jb 0x47b752
push dword [edi + 0xc]
call fcn.004835e0
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.0047bcf0
push dword [edi + 4]
call fcn.004835e0
add esp, 4
call fcn.0047e060
mov ecx, eax
call fcn.0047e280
push edi
call fcn.004835e0
add esp, 4
pop esi
mov ecx, dword [ebp + 0xc]
test cl, cl
je 0x47b7a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x47b7b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x40
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00483600
add esp, 4
test eax, eax
je 0x47b96e
lea ecx, [eax + 4]
mov dword [eax], eax
test ecx, ecx
je 0x47b7f0
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x47b7f9
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call fcn.0047aac0
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 0x47b897
push 3
push 0x4b9cc4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
call fcn.004046e6
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043da40
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x47b866
push 0xffffffffffffffff
push 0
push eax
call fcn.00404911
lea ecx, [ebp - 0x4c]
call fcn.0043c140
cmp dword [ebp - 0x20], 8
jb 0x47b87f
push dword [ebp - 0x34]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0047bbc0
add esp, 8
test al, al
jne 0x47b8aa
xor bh, bh
jmp 0x47b91a
lea eax, [ebp - 0x1c]
cmp eax, esi
je 0x47b8aa
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404911
push 4
xor eax, eax
mov dword [ebp - 0x20], 7
push 0x4b9c80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.004046e6
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x4d5294
push 0x4d52ac
call fcn.004849f0
add esp, 0x20
mov bh, al
cmp dword [ebp - 0x20], 8
jb 0x47b904
push dword [ebp - 0x34]
call fcn.004835e0
add esp, 4
test bl, bl
je 0x47b91a
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 0x47b92b
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
mov ecx, dword [ebp - 0x54]
xor eax, eax
push ecx
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
push dword [ecx]
lea ecx, [ebp - 0x54]
push eax
call fcn.0047bcf0
push dword [ebp - 0x54]
call fcn.004835e0
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bh
xor ecx, ebp
pop esi
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret
call fcn.004a8f2b
int3
Function at 0x47c300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
mov ecx, 0x4d8460
call fcn.0046a420
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x47c362
lea ecx, [eax + 0x18]
cmp ecx, 0x105
ja 0x47c362
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 0x47c350
jmp 0x47c36b
xor eax, eax
mov word [ebp - 0x210], ax
lea ecx, [ebp - 0x220]
call fcn.004384c0
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.00438a10
push 1
push 1
push 1
push 1
call fcn.00439430
push 0x47c3e0
call fcn.00439460
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x47c740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4d5630]
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 0x4b95c8
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x47c8e4
mov esi, edi
call fcn.00440520
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x47c8e4
mov edi, dword [ebp - 0x38]
push 0x4b9d10
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
lea ecx, [ebp - 0x1c]
call fcn.00404000
push 0x20
push 1
lea ecx, [ebp - 0x1c]
call fcn.00439700
lea eax, [ebp - 0x34]
push 0x586e3
push eax
call fcn.00477f50
add esp, 8
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
push 0
push eax
call fcn.0040416a
cmp dword [ebp - 0x20], 0x10
jb 0x47c7f5
push dword [ebp - 0x34]
call fcn.004835e0
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 0x47c832
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 0x47c850
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 0x47c891
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x47c8bd
cmp dword [ebp - 0x48], 0
ja 0x47c89e
cmp eax, 0x7d000
ja 0x47c89e
mov bl, 1
jmp 0x47c8bf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80070057
jne 0x47c8bd
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x47c8b7
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
inc edi
cmp edi, 2
jb 0x47c850
xor bl, bl
cmp dword [ebp - 8], 0x10
jb 0x47c8d0
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jmp 0x47c8e6
xor bl, bl
test esi, esi
je 0x47c8f6
call fcn.00440520
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.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x47c910
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 0x14], 8
jb 0x47c922
mov eax, dword [esi]
jmp 0x47c924
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 0x47c947
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.0047c740
add esp, 0x10
mov bl, al
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test bl, bl
jne 0x47c976
cmp dword [esi + 0x14], 8
jb 0x47c96f
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 0x47c980
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4d5630]
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 0x104
push ecx
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x47c9c1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
cmp word [ebp - 0x20c], ax
jne 0x47c9eb
xor ecx, ecx
jmp 0x47ca03
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c9f4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004046e6
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.0043c0d0
mov ecx, eax
call fcn.0043c920
cmp esi, eax
je 0x47ca46
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404911
lea ecx, [ebp - 0x23c]
call fcn.0043c140
lea ecx, [ebp - 0x254]
call fcn.0043c140
cmp dword [ebp - 0x210], 8
jb 0x47ca73
push dword [ebp - 0x224]
call fcn.004835e0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00486d53
mov esp, ebp
pop ebp
ret
Function at 0x47cc40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4d8474
push 0x7e1
call fcn.0044d980
push 0x4d848c
push 0x7e0
call fcn.0044d980
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 0x47cd57
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040409d
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0043d0e0
add esp, 8
cmp dword [ebp - 0x210], 8
jb 0x47ccd6
push dword [ebp - 0x224]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x23c]
push eax
call fcn.004407e0
add esp, 4
test al, al
je 0x47cd4c
lea eax, [ebp - 0x23c]
mov ecx, 0x4d84a4
push eax
call fcn.0043c1e0
lea eax, [ebp - 0x224]
mov ecx, 0x4d848c
push eax
call fcn.0043c920
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0043c3c0
push eax
mov ecx, 0x4d848c
call fcn.0043c1e0
lea ecx, [ebp - 0x254]
call fcn.0043c140
lea ecx, [ebp - 0x224]
mov byte [0x4d846e], 1
call fcn.0043c140
lea ecx, [ebp - 0x23c]
call fcn.0043c140
cmp dword [0x4d84b4], 0
jne 0x47cd7b
push 0x4d84a4
call fcn.0043ecc0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret