joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e4ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45e669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x45e645
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x45e645
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45e478]
call fcn.00408210
add esp, 4
lea eax, [ebp - 4]
call fcn.0040967c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x547c54]
push eax
call fcn.004472d0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00408048
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00404780
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x451810]
call fcn.0045ae38
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x45e623
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.0045cab4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.0045b758
call fcn.00455ec0
push eax
call fcn.0040b88c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0045bac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45e645
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e670
lea eax, [ebp - 8]
mov edx, dword [0x45e478]
call fcn.0040821c
lea eax, [ebp - 4]
call fcn.0040967c
ret
Function at 0x4a75d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffff88
xchg dword [edx + eax - 0xfe00], edx
add al, ch
and dword [edx + 0x45000013], edx
Function at 0x50bce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdd000]
push edi
or ebp, 0xffffffff
jmp 0x50bd02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50bd09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50bcf8
mov eax, 1
add ebx, ebx
jne 0x50bd1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50bd10
jne 0x50bd2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50bd10
xor ecx, ecx
sub eax, 3
jb 0x50bd40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50bdb2
mov ebp, eax
add ebx, ebx
jne 0x50bd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50bd58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50bd7c
inc ecx
add ebx, ebx
jne 0x50bd68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50bd5d
jne 0x50bd79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50bd5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50bd9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50bd8d
jmp 0x50bcfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50bd9c
add edi, ecx
jmp 0x50bcfe
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50bdba
cmp byte [edi], 6
jne 0x50bdba
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 0x50bdbf
lea edi, [esi + 0x109000]
mov eax, dword [edi]
or eax, eax
je 0x50be2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10b8b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10b8ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50bdec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10b8f0]
or eax, eax
je 0x50be28
mov dword [ebx], eax
add ebx, 4
jmp 0x50be09
call dword [esi + 0x10b900]
mov ebp, dword [esi + 0x10b8f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x50be62
sub esp, 0xffffff80
jmp 0x403861
Function at 0x4026bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402754
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402734
xor eax, eax
push ebp
push 0x40272d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402770
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402734
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403ddc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403f94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403e3d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403fb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403eaa
xor eax, eax
push ebp
push 0x403ea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403e8c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403fd0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403eaa
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403f8b
cmp byte [ebp - 0xd], 0
jne 0x403eec
cmp byte [ebp - 0x12], 0
je 0x403f8b
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f05
dec ebx
cmp byte [ebx], 0x2e
je 0x403f14
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f04
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403f8b
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403f41
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403f8b
cmp byte [ebp - 0xd], 0
je 0x403f8b
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403f8b
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406038
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406142
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40608b
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d8
jmp 0x406129
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405fec
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.0040600c
mov ebx, eax
test esi, esi
je 0x4060b3
dec esi
test esi, esi
jl 0x4060b3
cmp edi, ebx
jne 0x406092
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403118
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403364
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
cmp eax, 2
jl 0x406129
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406129
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406129
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406149
lea eax, [ebp - 0x110]
call fcn.00402ff4
ret

Function at 0x406184
Capabilities:
Get file attributes

Disassembly:
call fcn.00404f44
push eax
call sub.kernel32.dll_GetFileAttributesA
and al, 0x10
sete al
ret

Function at 0x406204
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x413328]
mov byte [eax], 1
mov edx, dword [0x404dd0]
xor eax, eax
call fcn.0040506c
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4061f4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x406294
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4062af
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x4062be
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x40631c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x406580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406618
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x4065cd
mov eax, dword [ebx + 0x19]
call fcn.00403324
push eax
push esi
mov eax, edi
call fcn.00403324
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403324
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x406602
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403324
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00405e84
mov eax, dword [ebp - 8]
call fcn.00403324
push eax
mov eax, edi
call fcn.00403324
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403324
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40661f
lea eax, [ebp - 8]
call fcn.00402ff4
ret
Function at 0x407b30
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x407b3c
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x407b58
push eax
je 0x407b59
call dword [0x41312c]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41312c]
ret
Function at 0x40d54c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp]
mov ebp, 3
cdq
idiv ebp
lea eax, [eax + eax*2]
mov dword [esp + 4], eax
cmp ecx, dword [esp + 4]
jge 0x40d5df
xor eax, eax
mov al, byte [edi]
shl eax, 0x10
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [edi + 2]
or eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x413238]
mov byte [esi + ebx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x413238]
mov byte [esi + ebx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + 0x413238]
mov byte [esi + ebx + 2], dl
and eax, 0x3f
mov al, byte [eax + 0x413238]
mov byte [esi + ebx + 3], al
add ebx, 4
add edi, 3
add ecx, 3
cmp ecx, dword [esp + 4]
jl 0x40d576
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
mov ecx, edx
test ecx, ecx
je 0x40d64d
xor eax, eax
mov al, byte [edi]
shl eax, 0x10
cmp ecx, 2
jne 0x40d606
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 8
or eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x413238]
mov byte [esi + ebx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x413238]
mov byte [esi + ebx + 1], dl
cmp ecx, 2
jne 0x40d640
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x413238]
mov byte [esi + ebx + 2], al
jmp 0x40d645
mov byte [esi + ebx + 2], 0x3d
mov byte [esi + ebx + 3], 0x3d
add ebx, 4
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d814
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d8d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.00403324
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
je 0x40d8ba
push 0
push 0x84040000
push 0
push 0
mov eax, esi
call fcn.00403324
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
je 0x40d8b4
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1d]
push eax
push 5
push esi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x40d8ae
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x1d]
mov ecx, 0x15
call fcn.00403148
mov eax, dword [ebp - 0x24]
call fcn.00405f00
mov edi, eax
push esi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8d7
lea eax, [ebp - 0x24]
call fcn.00402ff4
ret
Function at 0x4fb860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9c000]
push edi
or ebp, 0xffffffff
jmp 0x4fb882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fb889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fb878
mov eax, 1
add ebx, ebx
jne 0x4fb89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fb890
jne 0x4fb8ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fb890
xor ecx, ecx
sub eax, 3
jb 0x4fb8c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fb932
mov ebp, eax
add ebx, ebx
jne 0x4fb8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4fb8d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4fb8fc
inc ecx
add ebx, ebx
jne 0x4fb8e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fb8dd
jne 0x4fb8f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fb8dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fb91c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fb90d
jmp 0x4fb87e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fb91c
add edi, ecx
jmp 0x4fb87e
pop esi
mov edi, esi
mov ecx, 0x3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fb93a
cmp byte [edi], 5
jne 0x4fb93a
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 eax, ebx
loop 0x4fb93f
lea edi, [esi + 0xf9000]
mov eax, dword [edi]
or eax, eax
je 0x4fb9ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfb1b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfb218]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fb96c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfb21c]
or eax, eax
je 0x4fb9a8
mov dword [ebx], eax
add ebx, 4
jmp 0x4fb989
call dword [esi + 0xfb220]
popal
jmp 0x4021df
Function at 0x1000104a
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], 0x101930b0
mov ecx, esi
call fcn.10002422
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.10002422
sub esp, 4
mov ecx, esi
call fcn.10002502
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x100010d3
mov ecx, esi
call fcn.10002502
mov edi, eax
movaps xmm0, xmmword [0x10192da0]
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 0x100010d7
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100010fe
xor eax, eax
jmp 0x10001107
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], 0x10193116
call ebx
sub esp, 4
cmp esi, 0xffffffff
setne al
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100011b4
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 [0x101ece94]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.100022da
mov ecx, esi
push dword [ebp + 8]
call fcn.10002352
mov ecx, esi
call fcn.10002502
mov edi, eax
mov ecx, esi
call fcn.100024ee
cmp eax, 3
jb 0x1000122a
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x1000121a
cmp word [edi + 4], 0x5c
jne 0x1000122a
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x1000122a
jmp 0x100012bc
cmp word [edi], 0x5c
jne 0x1000122a
cmp ax, 0x5c
je 0x100012bc
pcmpeqd xmm0, xmm0
lea edi, [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], 0xffffffff
mov ecx, edi
call fcn.10002264
push edi
push 0
call fcn.1000110f
add esp, 8
test eax, eax
js 0x100012f4
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.100024ee
mov ebx, eax
mov ecx, edi
call fcn.10002502
mov ecx, esi
push ebx
push eax
call fcn.1000237c
mov ecx, edi
call fcn.10002502
push 0x5c
push eax
call fcn.10160cd1
add esp, 8
test eax, eax
je 0x10001303
mov ebx, eax
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.10002502
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.10002502
mov ecx, esi
push ebx
push eax
call fcn.1000237c
mov ecx, esi
push dword [ebp + 8]
call fcn.10002422
mov ecx, edi
call fcn.10002278
xor edi, edi
push esi
call fcn.1000104a
add esp, 4
test al, al
jne 0x10001310
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.10002502
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10193116
call edi
mov edi, 0x80070002
jmp 0x10001310
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10001308
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.10002278
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015ecd2
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001fe7
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 [0x101ece94]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.10160d80
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
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 0x100020e4
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 0x100020e2
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x100020e4
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.10002352
mov ecx, esi
call fcn.10002502
push 0x5c
push eax
call fcn.10160cd1
add esp, 8
test eax, eax
je 0x100020e2
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.10001e94
test al, al
je 0x100020e2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100020d3
push edi
call fcn.10002352
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.100020fc
mov ebx, eax
jmp 0x100020e4
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.1015ecd2
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100020fc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x10193498]
cmp dword [ecx + eax], edx
ja 0x1000211a
jb 0x10002125
add eax, 4
cmp eax, 0x10
jne 0x10002105
push esi
call fcn.1000104a
add esp, 4
jmp 0x10002149
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_skipped_an_incompatible_version
call edi
mov ecx, esi
call fcn.10002502
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10193116
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret