joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477223
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x47726e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004773be
test al, al
jne 0x477268
sub edx, 2
cmp edx, edi
jne 0x47724e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x477290
lea eax, [edi + 2]
cmp edx, eax
je 0x477290
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047716f
add esp, 0x10
jmp 0x47738a
push esi
lea ecx, [ebp - 0x255]
call fcn.004773be
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4772d3
push dword [ebp - 0x25c]
jmp 0x477280
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x477310
cmp word [ebp - 0x226], 0
je 0x477331
cmp word [ebp - 0x226], ax
jne 0x477310
cmp word [ebp - 0x224], 0
je 0x477331
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047716f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47737d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4772ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x477365
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47738a
push 0x476f9f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00483fc0
add esp, 0x10
jmp 0x47735a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435413
leave
ret
Function at 0x477ec2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x477f5f
push ebx
push esi
call fcn.00477e8b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00477e1f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x477f0c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x477f5e
push edi
push eax
call fcn.00475f76
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x477f2c
call fcn.00475af5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x477f5d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00477e1f
add esp, 0x20
test eax, eax
jne 0x477f4b
push edi
call fcn.00475af5
jmp 0x477f53
push ebx
call fcn.00475af5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x477f62
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x477f73
pop esi
ret
push ebx
push edi
push esi
call fcn.00477e8b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00475f76
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x477f9b
push ebx
push esi
push edi
call fcn.0045ea40
add esp, 0xc
push 0
call fcn.00475af5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4786f5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478210

Function at 0x478ba7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49637c
push 0x496374
push str.FlsAlloc
push 0x1f
call fcn.00478a12
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478bdb
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f2a0]
call esi
jmp 0x478be1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x478c25
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49638c
push 0x496384
push str.FlsGetValue
push 0x21
call fcn.00478a12
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478c5c
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f2a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x478c64
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496394
push 0x49638c
push str.FlsSetValue
push 0x22
call fcn.00478a12
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478c9e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48f2a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47b93c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00474569
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b9ab
cmp esi, dword [ebp - 4]
je 0x47b9a6
cmp dword [ebp + 0xc], 0
je 0x47b9a6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47b983
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047b48e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47b9ad
xor eax, eax
inc eax
jmp 0x47b9ad
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x47ba12
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00474569
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00474569
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x47ba89
cmp word [ecx], dx
je 0x47ba89
mov eax, dword [0x4967bc]
push edi
dec eax
push eax
push 0x4966a8
call fcn.0047b9b1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47bafc
cmp word [eax], dx
je 0x47bafc
mov eax, dword [edi]
test eax, eax
je 0x47baad
cmp word [eax], dx
je 0x47baad
lea eax, [ebp - 0x10]
push eax
call fcn.0047b394
jmp 0x47bab6
lea eax, [ebp - 0x10]
push eax
call fcn.0047b42f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47bb26
mov eax, dword [0x4966a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x496398
call fcn.0047b9b1
add esp, 0xc
test al, al
je 0x47bb26
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x47baf1
cmp word [eax], di
je 0x47baf1
lea eax, [ebp - 0x10]
push eax
call fcn.0047b394
pop ecx
jmp 0x47bb28
lea eax, [ebp - 0x10]
push eax
call fcn.0047b42f
jmp 0x47baee
mov eax, dword [edi]
test eax, eax
je 0x47bb13
cmp word [eax], dx
je 0x47bb13
lea eax, [ebp - 0x10]
push eax
call fcn.0047b349
pop ecx
jmp 0x47bb26
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x47bbf1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047b836
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47bbf1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x47bbf1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x47bbf1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47bb7e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00478da4
test ebx, ebx
je 0x47bbec
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00478da4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47bbf1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47bbf1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004848d4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47bbf3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435413
leave
ret
Function at 0x488385
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00488301
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4884f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4884f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4884a9
jg 0x4883e1
test eax, eax
je 0x48849f
push 1
push 0x1000
call fcn.00475fc4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x488404
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x488496
push 0x8000
push ebx
call fcn.0046bc85
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x48842d
jg 0x488428
cmp ecx, 0x1000
jb 0x48842d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047d0a1
add esp, 0x10
cmp eax, 0xffffffff
je 0x488472
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x488428
jl 0x488459
test ecx, ecx
jne 0x48841a
push dword [ebp - 0xc]
push ebx
call fcn.0046bc85
push esi
call fcn.00475af5
add esp, 0xc
xor ebx, ebx
jmp 0x488502
cmp byte [edi + 0x24], 0
je 0x488489
cmp dword [edi + 0x20], 5
jne 0x488489
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x488494
mov ebx, dword [edi + 0x18]
jmp 0x488496
xor ebx, ebx
push esi
call fcn.00475af5
pop ecx
jmp 0x488502
test ecx, ecx
jg 0x48846b
jl 0x4884a9
test eax, eax
jae 0x48846b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004741cd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4884c9
cmp byte [edi + 0x1c], 0
je 0x48846b
jmp 0x4884fa
push ebx
call fcn.0047980c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48846b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x488502
cmp byte [edi + 0x1c], 0
je 0x4884ff
mov ebx, dword [edi + 0x18]
jmp 0x488502
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004741cd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x488cbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x488cbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40c015
lea edi, [esi - 0xb015]
push edi
jmp 0x40d9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40da01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d9f0
mov eax, 1
add ebx, ebx
jne 0x40da13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da08
jne 0x40da24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da08
xor ecx, ecx
sub eax, 3
jb 0x40da38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40daaa
mov ebp, eax
add ebx, ebx
jne 0x40da43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40da50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40da74
inc ecx
add ebx, ebx
jne 0x40da60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40da55
jne 0x40da71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40da94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40da85
jmp 0x40d9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40da94
add edi, ecx
jmp 0x40d9f6
pop esi
mov edi, esi
mov ecx, 0x3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40dab2
cmp byte [edi], 0
jne 0x40dab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40dab7
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40db26
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe394]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe3d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40dae4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe3d8]
or eax, eax
je 0x40db20
mov dword [ebx], eax
add ebx, 4
jmp 0x40db01
call dword [esi + 0xe3d4]
mov ebp, dword [esi + 0xe3dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40db5a
sub esp, 0xffffff80
jmp 0x401650
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], 0x5a7fa0
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 [0x5a7ce0]
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], 0x5a8006
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 [0x5cc9b4]
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.00519398
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 0x5a8006
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.00514f0c
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 [0x5cc9b4]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.00518890
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
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 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.00519398
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.00514f0c
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 + 0x5a8360]
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 0x5a8006
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x402476
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5cc9b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4024f1
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40250b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.00402535
add esp, 8
test al, al
je 0x40251b
mov eax, dword [esi]
test eax, eax
je 0x402531
push 0xa
push 0
push eax
call fcn.005256d4
add esp, 0xc
cmp eax, 1
jmp 0x40250f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514f0c
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00402535
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov dword [ebx], eax
mov bl, 1
jmp 0x40251d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514f0c
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402512

Function at 0x402535
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 [0x5cc9b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call fcn.00518890
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 0x4025ac
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.00401db8
mov ecx, edi
call fcn.00401f46
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514f0c
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x413740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x413753
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x413771
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x413760
pop edi
mov eax, esi
pop esi
pop ebp
ret 4