joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007d80
Capabilities:
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x90]
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x10007dc5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100246f9
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x10007db2
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10007db2
mov edi, dword [ebx + 0x3c]
push 4
add edi, ebx
push 0x3000
push dword [edi + 0x50]
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x10007e59
push 4
push 0x3000
push dword [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x10007e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocation_failed_with_error__d_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0xc
push 0
call dword [sym.imp.MSVCR120.dll_exit]
push dword [edi + 0x50]
push 0
push eax
call sub.MSVCR120.dll_memset
push esi
mov esi, dword [sym.imp.MSVCR120.dll_printf]
push str.Loading_PE_image__s_n
call esi
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x94]
add eax, ecx
push eax
push ecx
push str.__Image_Base:__p__Entry_Point:__p_n
call esi
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
push eax
xor eax, eax
cmp dword [edi + 0xa0], eax
setne al
push eax
push dword [edi + 0x34]
push str.__Desired_Image_Base:__p__Has_Relocations:__d__Is_DLL:__d_n
call esi
push dword [edi + 0x60]
push dword [edi + 0x64]
push str.__Stack_Size:__d_bytes_committed___d_bytes_reserved__n
call esi
push dword [edi + 0x68]
push dword [edi + 0x6c]
push str.__Heap_Size:__d_bytes_committed___d_bytes_reserved__n
call esi
mov esi, dword [ebp - 0x94]
add esp, 0x48
push dword [edi + 0x54]
push ebx
push esi
call sub.MSVCR120.dll_memcpy
movzx eax, word [edi + 6]
mov edx, ebx
push eax
lea eax, [edi + 0xf8]
mov ecx, esi
push eax
call fcn.10007c40
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x9c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100246f9
mov esp, ebp
pop ebp
ret
Function at 0x100080b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
add esi, ecx
mov ebx, dword [eax + 0x24]
add edi, ecx
mov eax, dword [eax + 0x14]
add ebx, ecx
mov dword [ebp - 0xc], esi
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000815f
mov eax, edx
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
movzx ebx, word [ebx + esi*2]
mov ecx, dword [ebp - 8]
mov edi, dword [edi + ebx*4]
add edi, ecx
test edx, edx
jne 0x1000810c
cmp eax, 0xffff
jbe 0x10008143
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, ecx
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10008137
test dl, dl
je 0x10008133
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10008137
add ecx, 2
add eax, 2
test dl, dl
jne 0x10008117
xor eax, eax
jmp 0x1000813c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008168
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [ebx + 1]
movzx eax, ax
cmp eax, ecx
je 0x10008168
mov eax, dword [ebp - 0x18]
inc esi
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x14]
jb 0x100080f5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401af0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40112a
push esi
mov eax, 0x401130
push esi
push eax
push eax
push 0x80030008
call fcn.00401057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x401315
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x401371
push esi
push edi
push ebx
mov edi, 0x400
push ebx
lea eax, [ebp - 0x800]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x400]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
push ebx
push ebx
call esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x40137d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x38da1415
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x21d167ea
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x43fec6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x43fed5
pop dword [ebp - 0x2c]
mov eax, 0x1d9dc789
sub eax, 0x1d59c8b4
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x51a3b
push 0
mov eax, 0x66342b08
sub eax, 0x65ef784c
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xb5613ed6
add ecx, 0x4a9f1020
xor edi, edi
add edi, eax
mov esi, 0xe4c2dc17
sub esi, 0xe47a5e17
add esi, dword [ebp - 0x2c]
mov ebx, 0xa4fd68b4
xor dword [ebp - 0x20], ecx
mov edx, dword [esi]
sub edx, ebx
mov dword [ebp - 0xc], 0x19014069
mov dword [edi], edx
add dword [ebp - 0x28], 0xd5b330cf
add edi, 0xa2b8479c
sub edi, 0xa2b84798
add esi, 4
loop 0x43ff30
add eax, 0x12eab
mov ebx, eax
add eax, 5
mov ecx, 0xb2bf8acc
add ecx, 0x4d807534
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x440764
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [0x46a774]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x4407a0
push edi
push ebx
push 0x46b5f8
call main
mov esi, eax
test esi, esi
js 0x4407f7
xor esi, esi
jmp 0x4407f7
test eax, eax
je 0x4407f7
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x4407d5
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4407d3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4407e7
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4407f7
mov ecx, dword [0x46a774]
jmp 0x4407a4
push esi
push 0x310
push str.logutil.cpp
call fcn.00403821
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x79d934
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d93a
pop ebp
sub ebp, 6
sub ebp, 0x39d934
jmp 0x79d998
jmp 0x79d9a1
mov eax, 0x39d934
add eax, ebp
add eax, 0x93
mov ecx, 0x617
mov edx, 0x7554240c
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d9b8
jmp 0x79d9cb
dec sp
or al, 0x1c
or al, 0xc
or al, 0xc0
and byte [edi + edi], cl
int3
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
xchg dword [eax], ecx
add byte [edx + eax + 0x3e014000], al
add byte [eax], dl
push eax
int1
Function at 0x40104a
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov dword [esp], 0x41c550
mov ecx, esi
call fcn.004022c0
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.004022c0
sub esp, 4
mov ecx, esi
call fcn.00402398
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4010ff
mov ecx, esi
call fcn.00402398
mov esi, eax
movaps xmm0, xmmword [0x41c290]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4010d5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov al, 1
jmp 0x401101
mov dword [esp], 0x41c5c8
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
mov dword [esp], 0x41c5b6
call edi
sub esp, 4
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebp
ret

Function at 0x4011ad
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.00402172
mov ecx, esi
push dword [ebp + 8]
call fcn.004021f6
mov ecx, esi
call fcn.00402398
mov edi, eax
mov ecx, esi
call fcn.00402384
cmp eax, 3
jb 0x401223
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x401213
cmp word [edi + 4], 0x5c
jne 0x401223
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x401223
jmp 0x4012ab
cmp ax, 0x5c
jne 0x401223
cmp word [edi], 0x5c
je 0x4012ab
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00402100
push edi
push 0
call fcn.00401108
add esp, 8
test eax, eax
js 0x4012e3
mov ecx, edi
call fcn.00402384
mov ebx, eax
mov ecx, edi
call fcn.00402398
mov ecx, esi
push ebx
push eax
call fcn.00402220
mov ecx, edi
call fcn.00402398
push 0x5c
push eax
call fcn.00408ba6
add esp, 8
test eax, eax
je 0x4012f2
mov ebx, eax
mov ecx, edi
call fcn.00402398
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.00402398
mov ecx, esi
push ebx
push eax
call fcn.00402220
mov ecx, esi
push dword [ebp + 8]
call fcn.004022c0
mov ecx, edi
call fcn.00402112
xor edi, edi
push esi
call fcn.0040104a
add esp, 4
test al, al
jne 0x4012ff
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_Failed_to_find_the_WebView2_client_dll_at:
call edi
mov ecx, esi
call fcn.00402398
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x41c5b6
call edi
mov edi, 0x80070002
jmp 0x4012ff
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4012f7
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.00402112
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077ab
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401e6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov edi, edx
mov esi, ecx
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
push 0x208
push 0xff
push eax
call fcn.00408c50
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
lea eax, [ebp - 0x230]
mov dword [eax], 0xffffffff
mov ecx, 0x80000002
sub ecx, edi
push eax
push 0x20219
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x401f78
lea eax, [ebp - 0x22c]
push eax
lea edi, [ebp - 0x218]
push edi
push ebx
push ebx
push str.EBWebView
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401f76
cmp dword [ebp - 0x22c], 3
mov ebx, 0
jb 0x401f78
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.004021f6
mov ecx, esi
call fcn.00402398
push 0x5c
push eax
call fcn.00408ba6
add esp, 8
test eax, eax
je 0x401f76
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [ebp - 0x228]
movdqu xmmword [edx], xmm0
mov ecx, edi
call fcn.00401d45
test al, al
je 0x401f76
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401f65
push edi
call fcn.004021f6
lea ecx, [ebp - 0x228]
mov edx, esi
call fcn.00401f8f
mov ebx, eax
jmp 0x401f78
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077ab
mov eax, ebx
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f8f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x41c858]
cmp dword [ecx + eax], edx
ja 0x401fad
jb 0x401fb8
add eax, 4
cmp eax, 0x10
jne 0x401f98
push esi
call fcn.0040104a
add esp, 4
jmp 0x401fdc
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_skipped_an_incompatible_version
call edi
mov ecx, esi
call fcn.00402398
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x41c5b6
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x402a02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x28], edx
mov edx, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x402a70
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov edx, dword [ebp - 0x28]
push ebx
push esi
call fcn.00402b1a
add esp, 8
test al, al
je 0x402ad1
mov ecx, ebx
call fcn.0040238c
test al, al
jne 0x402ad1
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call fcn.00402783
add esp, 8
jmp 0x402b00
mov eax, dword [ebp - 0x28]
mov edi, edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
test ecx, ecx
je 0x402ad5
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
lea esi, [ebp - 0x14]
mov dword [esi], ecx
mov ebx, eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push esi
push ecx
push 0x10
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x402af1
mov ecx, edi
mov edx, ebx
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
push esi
call fcn.00402b1a
add esp, 8
test al, al
je 0x402ad1
mov eax, dword [esi]
test eax, eax
je 0x402b16
push eax
call fcn.0040f5f8
add esp, 4
cmp eax, 1
jmp 0x402af5
xor ebx, ebx
jmp 0x402b02
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
mov esi, eax
call fcn.004077ab
mov ecx, edi
mov edx, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00402b1a
cmp dword [ebp - 0x14], 1
sete al
mov esi, dword [ebp - 0x1c]
movzx eax, al
mov dword [esi], eax
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077ab
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402af8

Function at 0x402b1a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov edi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call fcn.00408c50
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push esi
push ebx
push 2
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x402b91
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.004021f6
mov ecx, edi
call fcn.00402398
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077ab
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret