joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4affc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, ecx
imul edx, ebx
sub ebx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 8]
add edx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
lea edi, [edx + eax*2]
mov edx, dword [ecx + 0x1c]
imul ebx, edx
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edx
sub ebx, dword [esi + 0xc]
add ebx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
add ebx, eax
mov dword [ebp + 0xc], ebx
call fcn.004824f0
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x18]
inc eax
shr eax, 3
mov dword [ebp - 8], eax
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp + 0x10]
nop
mov cl, byte [edi]
lea edi, [edi + 1]
mov esi, dword [ebp - 4]
lea eax, [eax + 2]
movzx edx, word [eax - 2]
movzx ecx, cl
movzx ecx, word [esi + ecx*2]
mov esi, edx
and esi, 0x7e0
shl esi, 0x10
or esi, edx
mov edx, ecx
and edx, 0x7e0
and esi, 0xfffff81f
shl edx, 0x10
or edx, ecx
and edx, 0xfffff81f
sub edx, esi
imul edx, dword [ebp - 8]
shr edx, 5
add edx, esi
mov ecx, edx
shr ecx, 0x10
xor ecx, edx
and ecx, 0x7e0
xor ecx, edx
mov word [eax - 2], cx
sub ebx, 1
jne 0x4b0020
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add edi, dword [ebp - 0xc]
add ebx, dword [ebp - 0x10]
sub dword [ebp + 0x14], 1
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
jne 0x4b0018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b8940
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x549460]
cmp eax, dword [ecx + 4]
jle 0x4b8ad5
push 0x549460
call fcn.004d21c1
add esp, 4
cmp dword [0x549460], 0xffffffff
jne 0x4b8ad5
push str.uxtheme.dll
mov dword [0x549468], 0x524d1c
mov dword [0x54946c], 0
mov dword [0x549470], 0
mov dword [0x549474], 0
mov dword [0x549478], 0
mov dword [0x54947c], 0
mov dword [0x549480], 0
mov dword [0x549484], 0
mov dword [0x549488], 0
mov dword [0x54948c], 0
mov dword [0x549490], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x549494], eax
test eax, eax
je 0x4b8ab0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DrawThemeBackground
push eax
call esi
push str.DrawThemeBackgroundEx
push dword [0x549494]
mov dword [0x54946c], eax
call esi
push str.GetThemeColor
push dword [0x549494]
mov dword [0x549470], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x549494]
mov dword [0x549474], eax
call esi
push str.GetThemePartSize
push dword [0x549494]
mov dword [0x549478], eax
call esi
push str.OpenThemeData
push dword [0x549494]
mov dword [0x54947c], eax
call esi
push str.CloseThemeData
push dword [0x549494]
mov dword [0x549480], eax
call esi
push str.SetThemeAppProperties
push dword [0x549494]
mov dword [0x549484], eax
call esi
push str.IsThemeActive
push dword [0x549494]
mov dword [0x549488], eax
call esi
push str.GetThemeInt
push dword [0x549494]
mov dword [0x54948c], eax
call esi
mov dword [0x549490], eax
pop esi
push 0x30
push 0
push 0x549498
call fcn.004d43f0
push 0x5040f0
call fcn.004d1a0b
push 0x549460
call fcn.004d2177
add esp, 0x14
mov eax, 0x549468
ret
Function at 0x4bf150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], edx
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x4bf338
movzx edx, byte [edi + 9]
test al, 2
mov eax, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [edi]
je 0x4bf1b0
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov ecx, edx
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, edx
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 3
jmp 0x4bf1be
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x4bf1d8
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
sub edx, eax
mov dword [ebp + ecx*4 - 0x14], edx
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x4bf222.3
xor esi, esi
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x4bf1f5
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x4bf1fa
mov esi, 1
inc eax
cmp eax, ecx
jl 0x4bf1e4
test si, si
mov esi, dword [ebp - 0x20]
je case.0x4bf222.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4bf222.3
movzx eax, byte [eax + 0x4bf35c]
jmp dword [eax*4 + 0x4bf348]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x4bf222.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x4bf234
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edi + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x4bf222.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x4bf277
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x4bf222.3
nop dword [eax]
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x4bf2b0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d170a
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x4bf222.3
mov edi, 0x100
nop dword [eax]
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x4bf2f0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d170a
mov esp, ebp
pop ebp
ret
Function at 0x4c7010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov esi, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x6c]
add eax, esi
sub ebx, edx
cmp dword [edi + 0x6c], eax
jb 0x4c70ba
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004d38f0
mov eax, dword [edi + 0x4c]
add esp, 0xc
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
mov edi, dword [ebp - 4]
lea edx, [eax + edi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x4c7064
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x40]
mov edi, esi
lea edx, [eax + esi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x4c7092
mov edi, dword [ebp - 8]
add ebx, esi
mov ecx, dword [edi]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4c7182
mov ecx, dword [edi + 0x6c]
mov edx, dword [edi + 0x74]
add ecx, edx
add ecx, dword [edi + 0x38]
cmp eax, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
cmovbe ebx, eax
test ebx, ebx
jne 0x4c70e8
xor ebx, ebx
jmp 0x4c7141
sub eax, ebx
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4c7105
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x30]
push ebx
call fcn.004cd930
jmp 0x4c711f
cmp eax, 2
jne 0x4c7128
mov edx, dword [ecx]
mov eax, dword [ecx + 0x30]
test edx, edx
jne 0x4c7117
xor eax, eax
jmp 0x4c7125
push ebx
mov ecx, eax
call fcn.004c8210
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx + 0x30], eax
push ebx
push dword [ecx]
push dword [ebp - 0xc]
call fcn.004d38f0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [eax], ebx
add dword [eax + 8], ebx
mov edx, dword [edi + 0x74]
add edx, ebx
mov dword [ebp - 0xc], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x4c716e
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 0xc]
cmp edx, 0x106
jae 0x4c7182
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4c7024
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c81f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4c81fb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004c8210
Function at 0x4eb99f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eb815
Function at 0x420c40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x420c62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x420c58
mov eax, 1
add ebx, ebx
jne 0x420c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420c70
jne 0x420c8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420c70
xor ecx, ecx
sub eax, 3
jb 0x420ca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420d12
mov ebp, eax
add ebx, ebx
jne 0x420cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420cdc
inc ecx
add ebx, ebx
jne 0x420cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420cbd
jne 0x420cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420cbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420cfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420ced
jmp 0x420c5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420cfc
add edi, ecx
jmp 0x420c5e
pop esi
mov edi, esi
mov ecx, 0xb3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x420d1a
cmp byte [edi], 5
jne 0x420d1a
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 0x420d1f
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420d8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420d4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20030]
or eax, eax
je 0x420d88
mov dword [ebx], eax
add ebx, 4
jmp 0x420d69
call dword [esi + 0x2002c]
mov ebp, dword [esi + 0x20034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x420dc2
sub esp, 0xffffff80
jmp 0x403a55
Function at 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.1000e78b
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.1000e78b
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e78b
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1000e78b
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.1000e78b
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000663a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.1000e78b
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.1000e78b
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x44
push edi
push eax
push str.SoftwareWOW6432NodeMicrosoftEdgeUpdateClientsF3017226_FE2A_4295_8BDF_00C3A9A7E4C5
push 0x80000002
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movaps xmmword [esp + 0x1c], xmm0
call esi
test eax, eax
je 0x401277
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftEdgeUpdateClientsF3017226_FE2A_4295_8BDF_00C3A9A7E4C5
push 0x80000001
call esi
test eax, eax
je 0x401277
mov ecx, 0x16
lea edi, [esp + 0x68]
mov esi, str.MicrosoftEdgeWebView2RuntimeInstallerX64.exe
lea eax, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
push str.Activating__ls_installation_process_n
movsw word es:[edi], word [esi]
call fcn.00401040
add esp, 8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401243
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x6c]
push eax
push str.CreateProcess__ls__failed___d_._n
call fcn.00401040
add esp, 0xc
lea eax, [esp + 0x68]
push eax
push str._ls_MUST_exist_in_same_folder_from_which_WebView2Installed_was_executed
call fcn.00401040
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0040129a
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0040129a
mov esp, ebp
pop ebp
ret
push str.WebView2_already_installed_n
call fcn.00401040
mov ecx, dword [esp + 0xd0]
add esp, 4
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040129a
mov esp, ebp
pop ebp
ret
Function at 0x404440
Capabilities:
Decrypt data using tea

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov ebx, 0x20
jmp 0x404484
mov eax, dword [esp + 0x14]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x18]
lea ecx, [edi + eax]
shr eax, 5
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x30]
push eax
mov dword [0x5746dc], 0xffcf03fc
call fcn.00403b80
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x2c]
mov dword [0x5746dc], 0
sub esi, eax
mov ecx, esi
shl ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x2c], eax
mov eax, esi
shr eax, 5
add eax, ebp
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
lea edx, [edi + esi]
xor dword [esp + 0x30], edx
push eax
mov dword [0x5746e0], 0xff6b3619
mov dword [0x5746e4], 0xffffffff
call fcn.00403b80
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x14], eax
add edi, 0x61c88647
dec ebx
jne 0x404480
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x14
ret 8