joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402174
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 5
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
add ebx, 0x46
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4022ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4022df
push 0x12
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
pop eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov cl, byte [ecx]
mov byte [edx], cl
inc dword [ebp - 4]
inc dword [ebp - 8]
dec eax
jne 0x4021d0
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402145
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402145
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402145
mov eax, dword [esi]
test al, 0x40
jne 0x402231
mov cx, word [0x40e5e0]
or al, 0x40
mov dword [esi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
mov word [eax], cx
mov eax, dword [0x40e678]
add dword [ebp - 4], 2
add eax, 0x98
mov dword [ebp - 0xc], eax
jmp 0x40227a
cmp dword [0x40e690], 0
je 0x402277
mov eax, dword [ebp - 4]
mov cx, word [0x40e5e0]
lea edx, [ebp - 0xc]
mov word [eax], cx
mov eax, dword [0x40e678]
add dword [ebp - 4], 2
add dword [ebp - 8], 2
add eax, 0x98
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00402145
mov eax, dword [ebp - 8]
movzx eax, word [eax]
add dword [ebp - 8], 2
test eax, eax
jne 0x402267
jmp 0x402282
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402145
mov eax, dword [ebp - 4]
sub eax, esi
and eax, 3
je 0x402293
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x4022a3
mov ecx, dword [ebp - 4]
and byte [ecx], 0
inc dword [ebp - 4]
dec eax
jne 0x402297
mov eax, dword [ebp - 8]
sub eax, edi
and eax, 3
je 0x4022b4
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x4022bb
add dword [ebp - 8], eax
lea eax, [ebx + edi - 0x46]
cmp dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
ja 0x4022df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov al, byte [eax]
mov byte [ecx], al
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jbe 0x4022c7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4024da
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [0x40e6cc], 0
push esi
push edi
mov edi, ecx
je 0x4024fa
push 0x800
push 0
push edi
jmp 0x402540
cmp dword [0x40e690], 0
je 0x402548
mov esi, 0x100
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x40b540
lea ecx, [ebp - 0x104]
push esi
call fcn.00402027
mov edx, edi
lea ecx, [ebp - 0x104]
push esi
call fcn.00402027
lea eax, [ebp - 0x104]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40254f
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
leave
ret
Function at 0x40256b
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x40e678]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 0x4c]
cmp ecx, 0xffffffff
je 0x4025a5
mov eax, dword [eax + 0x37c6]
cmp byte [eax + 5], 0x64
je 0x4025a0
call fcn.00401ea6
mov eax, dword [0x40e678]
add eax, 0x13c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4025a5
call fcn.00401988
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x48]
call fcn.00401ea6
mov eax, dword [0x40e678]
mov ecx, dword [0x40e6d8]
or dword [eax + 0x4c], 0xffffffff
or dword [eax + 0x48], 0xffffffff
test ecx, ecx
je 0x4025d7
push 0
push ecx
call dword [0x40e5f4]
mov eax, dword [0x40e678]
mov ecx, dword [eax + 0x37c6]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x4025ef
push ecx
call esi
mov eax, dword [0x40e678]
push 0x2010
push str.WinSFX32
push dword [eax + 0x160]
push 0
call dword [0x40e680]
mov eax, dword [0x40e678]
test eax, eax
je 0x402613
push eax
call esi
call fcn.00402553
push edi
call fcn.00405aa0
pop ecx
pop edi
pop esi
ret

Function at 0x402bb9
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
dec edx
push esi
mov esi, ecx
test eax, eax
mov eax, dword [0x40e678]
jle 0x402bfd
push edi
push ebx
lea edi, [edx + 1]
mov dx, word [eax + 0x36c]
movzx ebx, byte [esi]
mov ecx, edx
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, dh
mov cx, word [eax + ecx*2 + 0x164]
xor cx, bx
inc esi
dec edi
mov word [eax + 0x36c], cx
jne 0x402bcd
pop ebx
pop edi
mov ax, word [eax + 0x36c]
pop esi
ret

Function at 0x403954
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 1
pop ebx
lea eax, [ebp - 0x68]
push 0x64
push eax
mov esi, ecx
push 0x40b5d8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4039c6
mov cl, byte [ebp - 0x68]
lea eax, [ebp - 0x68]
test cl, cl
je 0x40399d
cmp cl, 0x2b
je 0x40399d
cmp cl, 0x2d
je 0x40399d
cmp cl, 0x30
jb 0x403997
cmp cl, 0x39
jbe 0x40399d
mov cl, byte [eax + 1]
inc eax
jmp 0x40397f
mov cl, byte [eax]
cmp cl, 0x2d
jne 0x4039a8
xor ebx, ebx
jmp 0x4039ad
cmp cl, 0x2b
jne 0x4039ae
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jb 0x4039c6
cmp cl, 0x39
ja 0x4039c6
movzx ecx, cl
lea edx, [edi + edi*4]
lea edi, [ecx + edx*2 - 0x30]
jmp 0x4039ad
mov eax, edi
push 0
imul eax, eax, 0xe10
cdq
push 0x5f5e100
push edx
push eax
call fcn.00405da0
test ebx, ebx
je 0x4039ec
mov ecx, dword [esi]
sub ecx, eax
mov eax, dword [esi + 4]
sbb eax, edx
jmp 0x4039f5
add eax, dword [esi]
adc edx, dword [esi + 4]
mov ecx, eax
mov eax, edx
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ae0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40e240]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x405aff
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40e23c], 1
mov byte [0x40e238], bl
jne 0x405b59
mov ecx, dword [0x40f850]
test ecx, ecx
je 0x405b47
mov esi, dword [0x40f84c]
sub esi, 4
cmp esi, ecx
jb 0x405b47
mov eax, dword [esi]
test eax, eax
je 0x405b40
call eax
mov ecx, dword [0x40f850]
sub esi, 4
cmp esi, ecx
jae 0x405b32
push 0x40b01c
push 0x40b014
call fcn.00405b90
add esp, 8
push 0x40b024
push 0x40b020
call fcn.00405b90
add esp, 8
test ebx, ebx
jne 0x405b80
push ebp
mov dword [0x40e240], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x405ec0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a068
push 0x407c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40e210], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40e20c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40e208], ecx
shr eax, 0x10
mov dword [0x40e204], eax
call fcn.00407b30
test eax, eax
jne 0x405f2a
push 0x1c
call fcn.00406090
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407930
call fcn.00407920
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f848], eax
call fcn.004072e0
mov dword [0x40e244], eax
test eax, eax
je 0x405f5d
mov eax, dword [0x40f848]
test eax, eax
jne 0x405f67
push 0xffffffffffffffff
call fcn.00405aa0
add esp, 4
call fcn.00407030
call fcn.00406f40
call fcn.00405a70
mov esi, dword [0x40f848]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x406046
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x405fae
test al, al
je 0x405fae
and eax, 0xff
push eax
call fcn.00406ee0
add esp, 4
test eax, eax
je 0x405f88
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405f88
cmp byte [esi], 0x22
jne 0x405fb7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x405fc7
cmp al, 0x20
ja 0x405fc7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405fb7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405fe8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x405fed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00405aa0
jmp 0x40602b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405fb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x406046
Function at 0x406090
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40e24c], 1
jne 0x40609e
call fcn.00407d40
mov eax, dword [esp + 4]
push eax
call fcn.00407d80
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4072e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40e360]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407322
call edi
mov esi, eax
test esi, esi
je 0x40730c
mov eax, 1
jmp 0x40731d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40742f
mov eax, 2
mov dword [0x40e360], eax
cmp eax, 1
jne 0x4073c2
test esi, esi
jne 0x40733b
call edi
mov esi, eax
test esi, esi
je 0x40742f
cmp word [esi], 0
mov eax, esi
je 0x407355
add eax, 2
cmp word [eax], 0
jne 0x407343
add eax, 2
cmp word [eax], 0
jne 0x407343
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4073b4
push edi
call fcn.004086b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4073b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4073a6
push ebx
call fcn.00408660
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40742f
test ebx, ebx
jne 0x4073d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40742f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4073eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4073db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4073db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004086b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40740d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407d80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40bd28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x407da4
add eax, 8
inc ebp
cmp eax, 0x40bdb8
jb 0x407d95
cmp ecx, dword [ebp*8 + 0x40bd28]
jne 0x407f4b
mov eax, dword [0x40e24c]
cmp eax, 1
je 0x407f0d
test eax, eax
jne 0x407dd0
cmp dword [0x40b964], 1
je 0x407f0d
cmp ecx, 0xfc
je 0x407f4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407e0b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407e54
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40a3c0
add ebx, ecx
push ebx
call fcn.00409170
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a3a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40bd2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004090e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f740]
test eax, eax
je 0x407f1e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407f28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40bd2c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x408020
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f840]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4081cd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f740]
lea edi, [ecx*4 + 0x40f740]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4081cd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40808e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40809f
push 2
push ebp
push eax
call fcn.00407f60
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4081fe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x408149
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4080fa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4080e7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4080ca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4081ef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x408145
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4080c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4081be
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408192
cmp eax, 5
jne 0x40817b
mov dword [0x40e1fc], eax
mov dword [0x40e1f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00409270
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4081b2
cmp byte [ebp], 0x1a
jne 0x4081b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40e1f8], 0x1c
jmp 0x4081d7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40e1f8], 9
pop edi
pop esi
pop ebp
mov dword [0x40e1fc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408145
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40822f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x408149
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408149
Function at 0x40104a
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov dword [esp], 0x79ef40
mov ecx, esi
call fcn.00401e88
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.00401e88
sub esp, 4
mov ecx, esi
call fcn.00401f46
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4010d3
mov ecx, esi
call fcn.00401f46
mov edi, eax
movaps xmm0, xmmword [0x79ec80]
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
mov esi, eax
cmp eax, 0xffffffff
je 0x4010d7
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010fe
xor eax, eax
jmp 0x401107
mov dword [esp], str.WebView2:_skipped_inaccessible
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
mov dword [esp], 0x79efa6
call ebx
sub esp, 4
cmp esi, 0xffffffff
setne al
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4011b4
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 [0x8fc044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.00401d3a
mov ecx, esi
push dword [ebp + 8]
call fcn.00401db8
mov ecx, esi
call fcn.00401f46
mov edi, eax
mov ecx, esi
call fcn.00401f32
cmp eax, 3
jb 0x40122a
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x40121a
cmp word [edi + 4], 0x5c
jne 0x40122a
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x40122a
jmp 0x4012b8
cmp word [edi], 0x5c
jne 0x40122a
cmp ax, 0x5c
je 0x4012b8
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.00401cc8
push edi
push 0
call fcn.0040110f
add esp, 8
test eax, eax
js 0x4012f0
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00401f32
mov ebx, eax
mov ecx, edi
call fcn.00401f46
mov ecx, esi
push ebx
push eax
call fcn.00401de2
mov ecx, edi
call fcn.00401f46
push 0x5c
push eax
call fcn.00705f90
add esp, 8
test eax, eax
je 0x4012ff
mov ebx, eax
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00401f46
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.00401f46
mov ecx, esi
push ebx
push eax
call fcn.00401de2
mov ecx, esi
push dword [ebp + 8]
call fcn.00401e88
mov ecx, edi
call fcn.00401cda
xor edi, edi
push esi
call fcn.0040104a
add esp, 4
test al, al
jne 0x40130c
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.00401f46
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x79efa6
call edi
mov edi, 0x80070002
jmp 0x40130c
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401304
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.00401cda
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00703eaa
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov edi, edx
mov esi, ecx
mov eax, dword [0x8fc044]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.007051b0
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.WS2_32.dll_bind
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 0x401c5f
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x24]
push edi
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401c5d
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x401c5f
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00401db8
mov ecx, esi
call fcn.00401f46
push 0x5c
push eax
call fcn.00705f90
add esp, 8
test eax, eax
je 0x401c5d
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.00401a92
test al, al
je 0x401c5d
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401c4e
push edi
call fcn.00401db8
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.00401c77
mov ebx, eax
jmp 0x401c5f
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.00703eaa
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401c77
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x79f300]
cmp dword [ecx + eax], edx
ja 0x401c95
jb 0x401ca0
add eax, 4
cmp eax, 0x10
jne 0x401c80
push esi
call fcn.0040104a
add esp, 4
jmp 0x401cc4
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_skipped_an_incompatible_version
call edi
mov ecx, esi
call fcn.00401f46
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x79efa6
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret