joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5020df
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], 0
mov dword [esp + 0x1c], edx
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
je 0x50211c
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x502126
mov dword [esp + 4], 0
jmp 0x502139
mov dword [esp + 4], 0
jmp 0x502139
call fcn.004fde6d
cmp eax, 1
mov dword [esp + 0x38], edx
sete al
mov dword [esp + 4], eax
lea ebp, [esp + 8]
mov edx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
mov ebx, edx
cmp ebx, edi
jne 0x502161
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.004618ca
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x70]
mov esi, edi
sub esi, ebx
mov eax, dword [eax]
add eax, ebx
cmp byte [esp + 4], 0
je 0x502190
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x624ed4
push esi
push eax
call fcn.0045c462
add esp, 0xc
mov esi, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
and dword [esp + 0x28], 0
mov edx, dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.005022fa
pop eax
cmp byte [esp + 8], 4
je 0x5021e8
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x5022d2
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fae84
pop eax
jmp 0x502149
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5022e7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
push 0x62d914
push eax
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x62d924
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x502147
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x502147
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x3c], xmm0
mov edx, dword [esp + 0x1c]
mov ecx, ebp
push 0x20
lea eax, [esp + 0x40]
push eax
call fcn.005023a1
pop eax
pop ecx
cmp byte [esp + 8], 4
je 0x502296
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x5022d2
mov ecx, ebp
call fcn.0051f916
jmp 0x502267
mov edx, dword [esp + 0xc]
test edx, edx
je 0x5022ed
xor ecx, ecx
push 0x624ee4
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.0045c462
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00461899
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x502147
movsd xmm0, qword [esp + 8]
mov eax, dword [esp]
movsd qword [eax], xmm0
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
sub ebx, dword [esp + 0x10]
jmp 0x5022ef
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x5022df
Function at 0x502504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], 0
mov dword [esp + 0x1c], edx
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
je 0x502541
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x50254b
mov dword [esp + 4], 0
jmp 0x50255e
mov dword [esp + 4], 0
jmp 0x50255e
call fcn.004fde6d
cmp eax, 1
mov dword [esp + 0x38], edx
sete al
mov dword [esp + 4], eax
lea ebp, [esp + 8]
mov edx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
mov ebx, edx
cmp ebx, edi
jne 0x502586
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.004618ca
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x70]
mov esi, edi
sub esi, ebx
mov eax, dword [eax]
add eax, ebx
cmp byte [esp + 4], 0
je 0x5025b5
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x624ed4
push esi
push eax
call fcn.0045c462
add esp, 0xc
mov esi, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
and dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
sub esp, 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebp
call fcn.00502723
add esp, 0x10
cmp byte [esp + 8], 4
je 0x502611
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x5026fb
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fae84
pop eax
jmp 0x50256e
mov esi, dword [esp + 0x28]
test esi, esi
je 0x502710
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
push 0x62d914
push eax
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x62d924
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x50256c
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x50256c
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x3c], xmm0
push 0x20
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
push ebp
call fcn.0050278d
add esp, 0x10
cmp byte [esp + 8], 4
je 0x5026bf
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x5026fb
mov ecx, ebp
call fcn.0051f916
jmp 0x502690
mov edx, dword [esp + 0xc]
test edx, edx
je 0x502716
xor ecx, ecx
push 0x624ee4
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.0045c462
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00461899
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x50256c
movsd xmm0, qword [esp + 8]
mov eax, dword [esp]
movsd qword [eax], xmm0
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
sub ebx, dword [esp + 0x10]
jmp 0x502718
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x502708
Function at 0x502825
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], 0
mov dword [esp + 0x1c], edx
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
je 0x502862
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x50286c
mov dword [esp + 4], 0
jmp 0x50287f
mov dword [esp + 4], 0
jmp 0x50287f
call fcn.004fde6d
cmp eax, 1
mov dword [esp + 0x38], edx
sete al
mov dword [esp + 4], eax
lea ebp, [esp + 8]
mov edx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
mov ebx, edx
cmp ebx, edi
jne 0x5028a7
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.004618ca
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x70]
mov esi, edi
sub esi, ebx
mov eax, dword [eax]
add eax, ebx
cmp byte [esp + 4], 0
je 0x5028d6
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x624ed4
push esi
push eax
call fcn.0045c462
add esp, 0xc
mov esi, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
and dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
sub esp, 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebp
call fcn.004e91f0
add esp, 0x10
cmp byte [esp + 8], 4
je 0x502932
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x502a1c
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fae84
pop eax
jmp 0x50288f
mov esi, dword [esp + 0x28]
test esi, esi
je 0x502a31
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
push 0x62d914
push eax
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x62d924
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.0045c462
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x50288d
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x50288d
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x3c], xmm0
push 0x20
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
push ebp
call fcn.004e98f0
add esp, 0x10
cmp byte [esp + 8], 4
je 0x5029e0
mov ecx, ebp
call fcn.004fdb10
test al, al
je 0x502a1c
mov ecx, ebp
call fcn.0051f916
jmp 0x5029b1
mov edx, dword [esp + 0xc]
test edx, edx
je 0x502a37
xor ecx, ecx
push 0x624ee4
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.0045c462
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00461899
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x50288d
movsd xmm0, qword [esp + 8]
mov eax, dword [esp]
movsd qword [eax], xmm0
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
sub ebx, dword [esp + 0x10]
jmp 0x502a39
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x502a29
Function at 0x502b10
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
lea ebx, [esp + 8]
mov esi, ecx
mov edi, edx
mov ecx, ebx
call fcn.004fb105
mov eax, dword [ebx]
cmp eax, 2
jne 0x502b3a
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x502d07
xor ecx, ecx
test eax, eax
je 0x502cad
mov eax, dword [edi + 0x58]
xor eax, dword [edi + 0x68]
or eax, dword [edi + 0x5c]
jne 0x502cda
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
cmp edx, ebp
mov eax, ebp
cmovb eax, edx
push 0x621b94
mov dword [esp + 0x3c], eax
push eax
call fcn.0045cc11
pop ecx
pop ecx
cmp ebp, edx
jb 0x502d14
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, edx
mov dword [esp], edx
mov edx, dword [edi + 0x68]
add eax, ebp
add ebx, eax
cmp edx, ebx
jae 0x502bb4
mov edx, ebx
lea ecx, [edi + 0x60]
mov ebx, eax
call fcn.0045c32b
mov edx, dword [edi + 0x68]
mov eax, ebx
mov ecx, dword [edi + 0x60]
push 0x621d40
push eax
push ebp
mov ebx, eax
mov dword [esp + 0x48], eax
call fcn.004fc411
add esp, 0xc
mov ecx, eax
push 0x621d50
push dword [esp + 4]
push dword [esp + 0xc]
call fcn.0055078e
add esp, 0xc
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x68]
push 0x621d60
push ebp
call fcn.004fc1f4
pop ecx
pop ecx
test eax, eax
mov ecx, dword [edi + 0x60]
mov dword [esp + 4], eax
cmove edx, eax
mov dword [esp], edx
mov edx, dword [edi + 0x68]
push 0x621d70
push ebx
push ebp
call fcn.004fc411
add esp, 0xc
mov ebx, edx
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x68]
test eax, eax
mov ebp, eax
cmove ebx, eax
push 0x621d80
push dword [esp + 0x40]
call fcn.004fc446
pop ecx
pop ecx
mov ecx, dword [esp]
test eax, eax
cmove edx, eax
and dword [esp + 0x2c], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], 7
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 8]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x70]
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x502cb4
xor ecx, ecx
jmp 0x502d07
mov eax, 0x80090317
jmp 0x502d07
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [edi + 0x68], eax
jb 0x502cc8
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x38]
and dword [edi + 0x5c], 0
and dword [edi + 0x58], 0
mov dword [edi + 0x94], eax
lea ebx, [esp + 8]
mov edx, edi
mov ecx, ebx
call fcn.004fc06c
cmp byte [ebx], 4
je 0x502cf5
mov ecx, dword [esp + 8]
cmp cl, 4
jne 0x502d03
mov eax, dword [edi + 0x94]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x502d0c
mov eax, dword [esp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x621d30
call fcn.00576b20
pop eax
ud2
Function at 0x5047f6
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x50484e
mov eax, dword [0x640c2c]
cmp eax, 3
jne 0x5048fe
mov edx, dword [ebp]
lea edi, [esp + 4]
mov ecx, edi
call fcn.004e8f70
mov al, byte [edi]
cmp al, 4
jne 0x504869
mov eax, dword [esp + 8]
cmp word [ebp], 0
mov dword [esp], eax
je 0x504884
movups xmm0, xmmword [ebp + 4]
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x14]
add ebp, 0x1c
push 0x1c
pop ecx
mov bx, 0x17
jmp 0x504894
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x5048f6
mov cl, byte [esp + 7]
movzx edi, word [esp + 5]
mov edx, dword [esp + 8]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x5048f6
lea eax, [ebp + 2]
add ebp, 6
push 0x10
pop ecx
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
mov eax, dword [eax]
mov word [esp + 4], bx
rol bp, 8
mov word [esp + 6], bp
mov dword [esp + 8], eax
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edx
push ecx
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5048cf
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x5048f6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00579cf0
jmp 0x504816
Function at 0x51fa74
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x3f8
mov eax, dword [0x640d94]
mov esi, ecx
call fcn.0051fa8f
Function at 0x5346a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov edi, edx
mov edx, dword [esp + 0x60]
lea ebx, [esp + 0x14]
mov esi, ecx
mov ecx, ebx
push dword [esp + 0x64]
call fcn.00553b44
pop eax
movzx ecx, word [ebx]
and dword [esp + 8], 0
and dword [esp], 0
test ecx, ecx
je 0x5346de
xor eax, eax
cmp ecx, 1
jne 0x5346e2
mov eax, dword [esp + 0x1c]
jmp 0x5346e2
lea eax, [esp + 0x16]
mov ecx, esp
lea edx, [esp + 8]
push ecx
push 0
push edx
push 0
push eax
push edi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x534708
mov dword [esi + 4], eax
mov dword [esi], 7
jmp 0x53479d
mov ebx, dword [esp]
xor edx, edx
inc edx
mov ecx, ebx
call fcn.0045c366
mov ecx, dword [esp]
and dword [esp + 0xc], 0
mov ebp, eax
mov dword [esp + 4], edx
mov dword [esp + 0x10], ecx
movzx ecx, word [esp + 0x14]
test ecx, ecx
je 0x53473d
xor eax, eax
cmp ecx, 1
jne 0x534741
mov eax, dword [esp + 0x1c]
jmp 0x534741
lea eax, [esp + 0x16]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
push 0
push eax
push edi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x534770
mov edx, dword [esp + 4]
mov ecx, ebp
mov dword [esi + 4], eax
mov dword [esi], 7
call fcn.004499b4
jmp 0x53479d
mov ecx, dword [esp + 4]
lea eax, [esp + 0x40]
mov edx, dword [esp + 8]
mov edi, dword [esp]
mov dword [eax], ebp
mov ebp, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x10]
mov ecx, esi
push eax
push ebx
push ebp
push edi
call fcn.00553bae
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
call fcn.005523b6
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x535ff8
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
call fcn.0053600c
Function at 0x54f64d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
lea eax, [esi + 0x40]
mov dword [esi + 0xc], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x563310
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
cmp byte [edx + 0xc], 2
je 0x54f817
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0051912e
cmp byte [edi + 0xc], 2
je 0x54f817
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x18]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov ecx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], eax
push dword [ebx + 8]
call fcn.004dc160
pop eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test ecx, ecx
je 0x54f793
mov ebx, edx
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ebx
lea ebx, [esi + 0x2c]
mov dword [edx + 8], eax
mov ecx, ebx
push 1
call fcn.004e39c0
pop eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x54f790
and dword [esi + 0x48], 0
mov dword [esi + 4], edx
mov dword [esi + 8], eax
lea ecx, [esi + 0x18]
mov edx, edi
push dword [esi + 0x28]
call fcn.004dc160
pop eax
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
test ecx, ecx
je 0x54f7ad
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea ecx, [esi + 0x2c]
push 1
call fcn.004e39c0
pop eax
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
test edi, edi
je 0x54f7aa
and dword [esi + 0x1c], 0
and dword [esi + 0x18], 0
push 0
push 0
lea eax, [esi + 0x18]
push eax
push 0x4f8440
push edi
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x54f7ee
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
and dword [edx], 0
test ebx, ebx
je 0x54f78a
push 2
pop edx
mov ecx, edi
call fcn.00404040
cmp dword [esi + 4], 0
jmp 0x54f7c1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x54f7d4
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
je 0x54f7d4
push 2
pop edx
mov ecx, dword [esi + 8]
call fcn.00404040
mov ecx, edi
mov edx, ebx
call fcn.004499b4
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi + 0xc]
test ebx, ebx
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx], 1
je 0x54f7bf
push 2
pop edx
mov ecx, edi
call fcn.00404040
jmp 0x54f7bc
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x628f78
call fcn.00576b20
pop eax
ud2
Function at 0x553a95
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
sub esp, 0x58
mov edi, esp
mov esi, ecx
mov ecx, edi
push dword [esp + 0x68]
call fcn.00553429
pop eax
movzx ecx, word [edi]
test ecx, ecx
je 0x553abf
xor eax, eax
cmp ecx, 1
jne 0x553ac3
mov eax, dword [esp + 8]
jmp 0x553ac3
lea eax, [esp + 2]
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x2c]
mov edx, eax
mov edi, eax
call fcn.00552823
movzx eax, word [esp]
test eax, eax
je 0x553af0
xor ebx, ebx
cmp eax, 1
jne 0x553af4
mov ebx, dword [esp + 8]
jmp 0x553af4
lea ebx, [esp + 2]
lea ecx, [esp + 0x2c]
call fcn.00553668
push edi
push eax
push ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
call fcn.005535d3
test eax, eax
je 0x553b19
mov dword [esi + 4], edx
and dword [esi], 0
jmp 0x553b24
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00552356
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
call fcn.005523b6
mov ecx, dword [esp]
mov edx, dword [esp + 8]
call fcn.005523b6
add esp, 0x58
pop esi
pop edi
pop ebx
ret

Function at 0x553cf9
Capabilities:
Get common file path

Disassembly:
push edi
push esi
sub esp, 0x30
mov eax, esp
mov esi, ecx
and dword [eax], 0
push eax
push 0
push 0x2000
push edx
call dword [sym.imp.shell32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x553d20
mov dword [esi + 4], eax
and dword [esi], 0
jmp 0x553d50
mov edi, dword [esp]
lea ecx, [esp + 4]
mov edx, edi
call fcn.0055233b
test edi, edi
je 0x553d39
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esp + 4]
mov ecx, esi
mov edx, edi
call fcn.00552356
mov ecx, dword [edi]
mov edx, dword [edi + 8]
call fcn.005523b6
add esp, 0x30
pop esi
pop edi
ret
Function at 0x5633c6
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], 0x630eb0
mov ecx, esi
call fcn.0056459c
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.0056459c
sub esp, 4
mov ecx, esi
call fcn.00564686
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x56347b
mov ecx, esi
call fcn.00564686
mov esi, eax
movaps xmm0, xmmword [0x630b80]
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 0x563451
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov al, 1
jmp 0x56347d
mov dword [esp], str.WebView2:_skipped_inaccessible
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], 0x630f16
call edi
sub esp, 4
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
Function at 0x563529
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 [0x640100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.0056444e
mov ecx, esi
push dword [ebp + 8]
call fcn.005644d2
mov ecx, esi
call fcn.00564686
mov edi, eax
mov ecx, esi
call fcn.0056463e
cmp eax, 3
jb 0x56359f
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x56358f
cmp word [edi + 4], 0x5c
jne 0x56359f
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x56359f
jmp 0x563627
cmp ax, 0x5c
jne 0x56359f
cmp word [edi], 0x5c
je 0x563627
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.005643dc
push edi
push 0
call fcn.00563484
add esp, 8
test eax, eax
js 0x56365f
mov ecx, edi
call fcn.0056463e
mov ebx, eax
mov ecx, edi
call fcn.00564686
mov ecx, esi
push ebx
push eax
call fcn.005644fc
mov ecx, edi
call fcn.00564686
push 0x5c
push eax
call fcn.00568ad4
add esp, 8
test eax, eax
je 0x56366e
mov ebx, eax
mov ecx, edi
call fcn.00564686
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.00564686
mov ecx, esi
push ebx
push eax
call fcn.005644fc
mov ecx, esi
push dword [ebp + 8]
call fcn.0056459c
mov ecx, edi
call fcn.005643ee
xor edi, edi
push esi
call fcn.005633c6
add esp, 4
test al, al
jne 0x56367b
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.00564686
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
push 0x630f16
call edi
mov edi, 0x80070002
jmp 0x56367b
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x563673
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.005643ee
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056584e
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret