joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504b8a
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 0x504bc7
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x504bd1
mov dword [esp + 4], 0
jmp 0x504be4
mov dword [esp + 4], 0
jmp 0x504be4
call fcn.00501154
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 0x504c0c
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.0046417a
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 0x504c3b
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x632f14
push esi
push eax
call fcn.00417cca
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.00504da5
pop eax
cmp byte [esp + 8], 4
je 0x504c93
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x504d7d
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fdf2b
pop eax
jmp 0x504bf4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x504d92
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 0x63c664
push eax
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x63c674
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x504bf2
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x504bf2
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.00504e4c
pop eax
pop ecx
cmp byte [esp + 8], 4
je 0x504d41
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x504d7d
mov ecx, ebp
call fcn.00522035
jmp 0x504d12
mov edx, dword [esp + 0xc]
test edx, edx
je 0x504d98
xor ecx, ecx
push 0x632f24
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.00417cca
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00464149
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x504bf2
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 0x504d9a
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x504d8a
Function at 0x504faf
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 0x504fec
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x504ff6
mov dword [esp + 4], 0
jmp 0x505009
mov dword [esp + 4], 0
jmp 0x505009
call fcn.00501154
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 0x505031
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.0046417a
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 0x505060
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x632f14
push esi
push eax
call fcn.00417cca
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.005051ce
add esp, 0x10
cmp byte [esp + 8], 4
je 0x5050bc
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x5051a6
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fdf2b
pop eax
jmp 0x505019
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5051bb
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 0x63c664
push eax
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x63c674
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x505017
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x505017
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.00505237
add esp, 0x10
cmp byte [esp + 8], 4
je 0x50516a
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x5051a6
mov ecx, ebp
call fcn.00522035
jmp 0x50513b
mov edx, dword [esp + 0xc]
test edx, edx
je 0x5051c1
xor ecx, ecx
push 0x632f24
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.00417cca
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00464149
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x505017
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 0x5051c3
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x5051b3
Function at 0x5052ce
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 0x50530b
mov ecx, dword [esp + 0x78]
add ecx, 0x400
jae 0x505315
mov dword [esp + 4], 0
jmp 0x505328
mov dword [esp + 4], 0
jmp 0x505328
call fcn.00501154
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 0x505350
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x20
pop edx
call fcn.0046417a
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 0x50537f
mov edx, dword [esp + 0x38]
cmp esi, edx
cmovb edx, esi
xor ecx, ecx
push 0x632f14
push esi
push eax
call fcn.00417cca
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.005054e9
pop eax
cmp byte [esp + 8], 4
je 0x5053d7
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x5054c1
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x3c]
movsd qword [esp + 0x3c], xmm0
push eax
call fcn.004fdf2b
pop eax
jmp 0x505338
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5054d6
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 0x63c664
push eax
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov dword [esp + 0x18], edx
mov edx, esi
xor ecx, ecx
push 0x63c674
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.00417cca
add esp, 0xc
mov eax, dword [esp + 0x70]
add edx, ebx
cmp edx, edi
mov dword [eax + 8], edx
jne 0x505336
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x505336
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.0050558c
add esp, 0x10
cmp byte [esp + 8], 4
je 0x505485
mov ecx, ebp
call fcn.00500c58
test al, al
je 0x5054c1
mov ecx, ebp
call fcn.00522035
jmp 0x505456
mov edx, dword [esp + 0xc]
test edx, edx
je 0x5054dc
xor ecx, ecx
push 0x632f24
push 0x20
lea eax, [esp + 0x44]
push eax
call fcn.00417cca
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov esi, edx
mov edx, eax
add esi, eax
mov ecx, ebx
push esi
call fcn.00464149
pop eax
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x505336
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 0x5054de
sub ebx, esi
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x5054ce
Function at 0x505c16
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.004fe1f5
mov eax, dword [ebx]
cmp eax, 2
jne 0x505c40
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x505e0d
xor ecx, ecx
test eax, eax
je 0x505db3
mov eax, dword [edi + 0x58]
xor eax, dword [edi + 0x68]
or eax, dword [edi + 0x5c]
jne 0x505de0
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 0x62fad4
mov dword [esp + 0x3c], eax
push eax
call fcn.00528fa6
pop ecx
pop ecx
cmp ebp, edx
jb 0x505e1a
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 0x505cba
mov edx, ebx
lea ecx, [edi + 0x60]
mov ebx, eax
call fcn.0045ed59
mov edx, dword [edi + 0x68]
mov eax, ebx
mov ecx, dword [edi + 0x60]
push 0x62fc80
push eax
push ebp
mov ebx, eax
mov dword [esp + 0x48], eax
call fcn.004ff4e0
add esp, 0xc
mov ecx, eax
push 0x62fc90
push dword [esp + 4]
push dword [esp + 0xc]
call fcn.0044f1ee
add esp, 0xc
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x68]
push 0x62fca0
push ebp
call fcn.004ff2c3
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 0x62fcb0
push ebx
push ebp
call fcn.004ff4e0
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 0x62fcc0
push dword [esp + 0x40]
call fcn.004ff515
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 0x505dba
xor ecx, ecx
jmp 0x505e0d
mov eax, 0x80090317
jmp 0x505e0d
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [edi + 0x68], eax
jb 0x505dce
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.004ff15c
cmp byte [ebx], 4
je 0x505dfb
mov ecx, dword [esp + 8]
cmp cl, 4
jne 0x505e09
mov eax, dword [edi + 0x94]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x505e12
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 0x62fc70
call fcn.00580f20
pop eax
ud2
Function at 0x5078ef
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 0x507947
mov eax, dword [0x64fc2c]
cmp eax, 3
jne 0x5079f7
mov edx, dword [ebp]
lea edi, [esp + 4]
mov ecx, edi
call fcn.004ebf90
mov al, byte [edi]
cmp al, 4
jne 0x507962
mov eax, dword [esp + 8]
cmp word [ebp], 0
mov dword [esp], eax
je 0x50797d
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 0x50798d
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 0x5079ef
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 0x5079ef
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 0x5079c8
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x5079ef
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.005840f0
jmp 0x50790f
Function at 0x5232ad
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, esp
mov esi, ecx
and dword [eax], 0
push eax
push 0
push 0
push edx
call dword [sym.imp.shell32.dll_SHGetKnownFolderPath]
lea edi, [esp + 4]
mov edx, eax
mov ecx, edi
call fcn.005220c8
xor eax, eax
cmp dword [edi], eax
jne 0x523361
mov edi, dword [esp]
push edi
call fcn.00574a83
pop ecx
lea ebx, [esp + 4]
mov edx, edi
mov ecx, ebx
push eax
call fcn.0055c145
pop eax
cmp dword [ebx], 0
jne 0x523361
lea edi, [esp + 4]
mov eax, esp
mov edx, dword [edi + 4]
mov ecx, edi
mov dword [eax], edx
call fcn.0055c1ed
mov ecx, dword [edi]
mov edx, dword [edi + 8]
push 0
call fcn.00522b21
pop ecx
mov ebp, edx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x10], eax
call fcn.0055c09d
mov ebx, eax
mov edi, edx
push ebp
push dword [esp + 0x14]
push eax
call fcn.00570db0
add esp, 0xc
lea eax, [esp + 4]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.00448429
mov ecx, esp
call fcn.0055c0ce
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00584e88
mov dword [esi + 4], eax
and dword [esi], 0
jmp 0x523359

Function at 0x523378
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
call fcn.0052338c
Function at 0x53d622
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.0055dff5
pop eax
movzx ecx, word [ebx]
and dword [esp + 8], 0
and dword [esp], 0
test ecx, ecx
je 0x53d65e
xor eax, eax
cmp ecx, 1
jne 0x53d662
mov eax, dword [esp + 0x1c]
jmp 0x53d662
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 0x53d688
mov dword [esi + 4], eax
mov dword [esi], 7
jmp 0x53d71d
mov ebx, dword [esp]
xor edx, edx
inc edx
mov ecx, ebx
call fcn.0055c09d
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 0x53d6bd
xor eax, eax
cmp ecx, 1
jne 0x53d6c1
mov eax, dword [esp + 0x1c]
jmp 0x53d6c1
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 0x53d6f0
mov edx, dword [esp + 4]
mov ecx, ebp
mov dword [esi + 4], eax
mov dword [esi], 7
call fcn.00448429
jmp 0x53d71d
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.0055e038
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
call fcn.00526237
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x559e15
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], 0x56d6f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
cmp byte [edx + 0xc], 2
je 0x559fdf
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0051c32b
cmp byte [edi + 0xc], 2
je 0x559fdf
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.004df280
pop eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test ecx, ecx
je 0x559f5b
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.004e6ae0
pop eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x559f58
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.004df280
pop eax
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
test ecx, ecx
je 0x559f75
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.004e6ae0
pop eax
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
test edi, edi
je 0x559f72
and dword [esi + 0x1c], 0
and dword [esi + 0x18], 0
push 0
push 0
lea eax, [esi + 0x18]
push eax
push 0x4fb470
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x559fb6
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 0x559f52
push 2
pop edx
mov ecx, edi
call fcn.004040f0
cmp dword [esi + 4], 0
jmp 0x559f89
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 0x559f9c
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 0x559f9c
push 2
pop edx
mov ecx, dword [esi + 8]
call fcn.004040f0
mov ecx, edi
mov edx, ebx
call fcn.00448429
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 0x559f87
push 2
pop edx
mov ecx, edi
call fcn.004040f0
jmp 0x559f84
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x6373c4
call fcn.00580f20
pop eax
ud2
Function at 0x56d7a6
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], 0x63fcb0
mov ecx, esi
call fcn.0056e97c
sub esp, 4
mov dword [esp], str.EBWebViewx86EmbeddedBrowserWebView.dll
mov ecx, esi
call fcn.0056e97c
sub esp, 4
mov ecx, esi
call fcn.0056ea66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x56d85b
mov ecx, esi
call fcn.0056ea66
mov esi, eax
movaps xmm0, xmmword [0x63f980]
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 0x56d831
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov al, 1
jmp 0x56d85d
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], 0x63fd16
call edi
sub esp, 4
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
Function at 0x56d909
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 [0x64f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.0056e82e
mov ecx, esi
push dword [ebp + 8]
call fcn.0056e8b2
mov ecx, esi
call fcn.0056ea66
mov edi, eax
mov ecx, esi
call fcn.0056ea1e
cmp eax, 3
jb 0x56d97f
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x56d96f
cmp word [edi + 4], 0x5c
jne 0x56d97f
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x56d97f
jmp 0x56da07
cmp ax, 0x5c
jne 0x56d97f
cmp word [edi], 0x5c
je 0x56da07
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.0056e7bc
push edi
push 0
call fcn.0056d864
add esp, 8
test eax, eax
js 0x56da3f
mov ecx, edi
call fcn.0056ea1e
mov ebx, eax
mov ecx, edi
call fcn.0056ea66
mov ecx, esi
push ebx
push eax
call fcn.0056e8dc
mov ecx, edi
call fcn.0056ea66
push 0x5c
push eax
call fcn.00572ec4
add esp, 8
test eax, eax
je 0x56da4e
mov ebx, eax
mov ecx, edi
call fcn.0056ea66
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.0056ea66
mov ecx, esi
push ebx
push eax
call fcn.0056e8dc
mov ecx, esi
push dword [ebp + 8]
call fcn.0056e97c
mov ecx, edi
call fcn.0056e7ce
xor edi, edi
push esi
call fcn.0056d7a6
add esp, 4
test al, al
jne 0x56da5b
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.0056ea66
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x63fd16
call edi
mov edi, 0x80070002
jmp 0x56da5b
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x56da53
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.0056e7ce
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056fc2e
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret