joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov byte [ecx + 4], 0
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx], 0x6280a0
mov dword [ecx + 0xc], eax
sub esp, 0x10
movaps xmm0, xmmword [0x634de0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp dword [esi + 0xc], eax
je 0x446d90
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jae 0x446d9a
lea eax, [edi + 1]
cmp eax, 2
jb 0x446d89
mov dword [esi + 0xc], edi
call fcn.005050f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005050f0
mov eax, dword [esi + 0xc]
cmp dword [0x65b01c], 0
mov dword [ebp - 0x18], eax
je 0x446dd5
mov eax, dword [0x65b01c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x6445dc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi + 0xc], 0
jmp 0x446d79
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6384a9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x446e11
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x446e0b
call dword [0x6445dc]
call ecx
push 0
push eax
call fcn.004464e0
add esp, 8
jmp 0x446dae
push 1
push 0
jmp 0x446e01
xor eax, eax
push eax
jmp 0x446e00
Function at 0x44a260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00582870
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x44a36e
push ebx
call fcn.0057f442
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.0056adc0
xor eax, eax
dec eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
movsx eax, byte [edi + 0xb]
test eax, eax
mov dword [ebp - 0x238], esi
jns 0x44a303
mov eax, dword [ebp - 0x230]
test eax, eax
js 0x44a38e
mov edi, dword [ebp - 0x234]
je 0x44a303
test edi, edi
je 0x44a391
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x228]
mov ecx, ebx
push eax
push edi
call fcn.0056adc0
mov ecx, ebx
call fcn.004453a0
cmp byte [esi + 0xb], 0
jns 0x44a32c
push dword [esi]
call fcn.0057dc2b
add esp, 4
mov eax, dword [ebp - 0x220]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x228]
movsd qword [esi], xmm0
mov byte [ebp - 0x21d], 0
mov word [ebp - 0x228], 0
cmp byte [ebp - 0x229], 0
jns 0x44a368
push dword [ebp - 0x234]
call fcn.0057dc2b
add esp, 4
mov esi, dword [ebp - 0x238]
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3

Function at 0x44b1b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00582870
sub esp, 8
mov dword [esp + 0x10], edi
movsd xmm0, qword [0x635150]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x44b22d
cmp word [ebp - 0x214], 0
je 0x44b22d
push edi
call fcn.0057f442
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0056adc0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
movsd qword [eax], xmm0
mov dword [eax + 8], 0
push eax
call fcn.0044a260
add esp, 4
test al, al
jne 0x44b275
mov ecx, esi
push 3
push 0x6351b4
call fcn.0056adc0
cmp byte [ebp - 0x215], 0
jns 0x44b217
push dword [ebp - 0x220]
call fcn.0057dc2b
add esp, 4
jmp 0x44b217
mov eax, dword [ebp - 0x218]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x220]
movsd qword [esi], xmm0
jmp 0x44b217
Function at 0x450480
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
je 0x4505bb
push 0x32
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test edi, edi
je 0x4504c6
mov ecx, edi
call fcn.00450600
push edi
call fcn.0057dc2b
add esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], 0
test eax, eax
je 0x4504e4
push 0
push eax
push 0x63bbe0
call fcn.0051e4d0
add esp, 0xc
mov eax, dword [esi + 0x24]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x4505ad
xor eax, eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], eax
test edi, edi
jne 0x4505dc
mov eax, dword [esi + 0x18]
inc eax
cmp eax, 2
jae 0x45053b
lea ecx, [esi + 0x14]
call fcn.0043b280
lea ecx, [esi + 0x10]
call fcn.0043b280
mov ecx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00427ff0
call fcn.005050f0
mov edi, dword [esi + 0x18]
cmp dword [0x65b01c], 0
je 0x450571
mov dword [ebp - 0x10], edi
mov edi, dword [0x65b01c]
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [0x6445dc]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov dword [esi + 0x18], 0
jmp 0x45051d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6384a9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4505f1
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x4505a7
call dword [0x6445dc]
call ecx
push 0
push eax
call fcn.004464e0
add esp, 8
jmp 0x45054c
push 1
push 0
jmp 0x45059d
push eax
call fcn.00506f30
add esp, 4
jmp 0x450501
test eax, eax
jne 0x450495
cmp dword [esi + 0xc], 0
jne 0x450495
cmp dword [esi + 4], 0
jne 0x450495
jmp 0x4504a8
mov ecx, edi
call fcn.00450600
push edi
call fcn.0057dc2b
add esp, 4
jmp 0x450514
xor eax, eax
push eax
jmp 0x45059c
Function at 0x4538d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x50a
push str.file_util_win.cc
push 0x635247
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x453968
cmp byte [edi + 0xb], 0
jns 0x45393e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.00545870
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea esi, [esp + 0x50]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x453936
Function at 0x453990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x60]
push 0x4fa
push str.file_util_win.cc
push 0x635232
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x5c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x453b0d
lea esi, [esp + 0x62]
push 0x206
push 0xff
push esi
call fcn.00582870
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x453add
push ebx
call fcn.0057f442
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.0056adc0
xor eax, eax
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
movsx eax, byte [edi + 0xb]
test eax, eax
mov dword [esp + 4], esi
jns 0x453a82
mov eax, dword [esp + 0xc]
test eax, eax
js 0x453b07
mov edi, dword [esp + 8]
je 0x453a82
test edi, edi
je 0x453b0a
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
mov ecx, ebx
push eax
push edi
call fcn.0056adc0
mov ecx, ebx
call fcn.004453a0
cmp byte [esi + 0xb], 0
jns 0x453aa9
push dword [esi]
call fcn.0057dc2b
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 0x14]
movq qword [esi], xmm0
mov byte [esp + 0x1f], 0
mov word [esp + 0x14], 0
cmp byte [esp + 0x13], 0
jns 0x453ad9
push dword [esp + 8]
call fcn.0057dc2b
add esp, 4
mov esi, dword [esp + 4]
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00545870
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
movzx ecx, al
lea eax, [esp + 0x14]
mov dword [eax], ebx
lea esi, [esp + 8]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x5c]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x4539ff
Function at 0x45b5b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x234
mov dword [ebp - 0x240], edx
mov edi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov word [ebp - 0x28], ax
movzx eax, word [ecx + 0x16]
mov word [ebp - 0x26], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
mov word [ebp - 0x24], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x22], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x20], ax
mov bx, 0x4e4
mov word [ebp - 0x1e], bx
call esi
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], 0x40904e4
mov dword [ebp - 0x16], 0x40904b0
mov word [ebp - 0x12], bx
mov ebx, 2
lea esi, [ebp - 0x230]
push 0x208
push 0xff
push esi
call fcn.00582870
add esp, 0xc
movzx eax, word [ebp + ebx - 0x28]
mov dword [ebp - 0x23c], ebx
movzx ecx, word [ebp + ebx - 0x2a]
push dword [ebp - 0x240]
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
push esi
call fcn.00458360
add esp, 0x1c
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0xffffffff
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push dword [edi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45b6e0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x45b6e0
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x45b6e0
dec ecx
push ecx
push eax
call fcn.0057fea6
add esp, 8
mov edx, dword [ebp - 0x234]
test eax, eax
je 0x45b6c1
test edx, edx
je 0x45b6fa
mov ecx, dword [ebp + 8]
push eax
push edx
call fcn.0056e280
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
add esp, 0x234
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x23c]
add ebx, 4
cmp ebx, 0x1a
lea esi, [ebp - 0x230]
jne 0x45b625
jmp 0x45b6cb
int3
Function at 0x4600a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx + 0x10], 1
push 0x20
call fcn.0057dc30
add esp, 4
mov edi, eax
mov dword [eax + 4], 0
mov dword [eax], 0x628f6c
sub esp, 0x10
movaps xmm0, xmmword [0x63fa00]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 8], eax
test eax, eax
je 0x46018c
movsd xmm0, qword [ebp + 8]
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x18], esi
mov ebx, dword [esi + 0xc]
mov dword [esi + 0xc], edi
test ebx, ebx
je 0x460125
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4601cc
push ebx
call fcn.0057dc2b
add esp, 4
mov edi, dword [esi + 0xc]
xor eax, eax
push eax
push eax
push edi
push 0x504620
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
je 0x460152
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea edi, [ebp - 0x24]
push 0x1b
push str.thread_win.cc
push str.Start
push edi
call fcn.0051dbb0
add esp, 0x10
lea esi, [ebp - 0x14]
push edi
push esi
call fcn.005df230
add esp, 8
mov ecx, esi
push 0x63dbb0
call fcn.005fa010
mov ecx, esi
call fcn.005abb00
jmp 0x46013e
lea eax, [ebp - 0x24]
push 0x1e
push str.semaphore_win.cc
push 0x64143f
push eax
call fcn.0051dbb0
add esp, 0x10
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.005df230
add esp, 8
mov ecx, ebx
push str.CreateSemaphore
call fcn.005fa010
mov ecx, ebx
call fcn.005abb00
jmp 0x4600f1
lea eax, [ebp - 0x24]
push 0x22
push str.semaphore_win.cc
push str.Semaphore
push eax
call fcn.0051dbb0
add esp, 0x10
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.005df230
add esp, 8
mov ecx, edi
call fcn.005abb00
jmp 0x460119
Function at 0x465e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
jne 0x465e83
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x465ead
cmp byte [ebp + 0xc], 0
jne 0x465e8f
mov ecx, esi
mov edx, edi
call fcn.0044c5d0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x465e50
mov eax, dword [esi]
jmp 0x465e9b
cmp byte [esi + 4], 0
je 0x465e8b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x465e62
mov eax, dword [esi]
jmp 0x465ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x465ea9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x465ed7
xor ebx, ebx
jmp 0x465e6d
mov eax, dword [esi]
jmp 0x465eea
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x465ed3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x465e62
mov edi, dword [ebp - 0x14]
jmp 0x465e62

Function at 0x4662a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x97
push str.file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x466352
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x46634d
mov eax, dword [ebp + 8]
mov dword [esp], 0xffffffff
push 0
push ebx
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp]
lea ecx, [esp + 0x10]
call fcn.00545870
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x46632d
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea edi, [esp + 0x50]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push edi
call fcn.005da0b0
add esp, 8
jmp 0x466305
Function at 0x466380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x230
push str.file_util_win.cc
push str.PathHasAccess
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x5c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x4664f1
cmp byte [esi + 0xb], 0
jns 0x4663f3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4664e7
test al, 0x10
mov ecx, 0x40000000
mov eax, 2
cmove eax, ecx
mov ecx, 0x80
mov edx, 0x2000000
cmove edx, ecx
push ebx
push edx
push 3
push ebx
push 7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x466451
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x4664a7
call fcn.005050f0
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
setne al
mov dword [esp + 0xc], eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x466487
call fcn.005050f0
cmp dword [0x65b01c], 0
je 0x4664ab
mov esi, dword [0x65b01c]
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x6445dc]
mov ecx, esi
push ebx
call edi
lea ecx, [esp + 0x20]
call fcn.00545870
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005810d5
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x46644a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6384a9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x466517
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x4664e1
call dword [0x6445dc]
call ecx
push 0
push eax
call fcn.004464e0
add esp, 8
jmp 0x466470
push 1
push 0
jmp 0x4664d7
mov dword [esp + 0xc], 0
jmp 0x466487
movzx ecx, al
lea eax, [esp + 0x64]
mov dword [eax], ebx
lea edi, [esp + 0x60]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0x5c]
push eax
push edi
call fcn.005da0b0
add esp, 8
jmp 0x4663eb
xor eax, eax
push eax
jmp 0x4664d6
Function at 0x466520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x24f
push str.file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x4665c3
cmp byte [edi + 0xb], 0
jns 0x46658e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
lea ecx, [esp + 0x10]
call fcn.00545870
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea esi, [esp + 0x50]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x466586

Function at 0x469200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [esi], cl
mov byte [esi + 4], cl
cmp byte [eax + 4], cl
je 0x469265
test esi, esi
je 0x4692e6
xor ecx, ecx
mov dword [esi], ecx
mov ebx, dword [eax]
mov dword [eax], ecx
lea edi, [ebx + 1]
cmp edi, 2
jb 0x469237
call fcn.005050f0
cmp dword [esi], ebx
je 0x469261
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x469271
cmp edi, 2
jb 0x469258
mov dword [esi], ebx
call fcn.005050f0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005050f0
mov eax, dword [esi]
cmp dword [0x65b01c], 0
mov dword [ebp - 0x18], eax
je 0x4692aa
mov eax, dword [0x65b01c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x6445dc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x46924c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6384a9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4692e9
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x4692e0
call dword [0x6445dc]
call ecx
push 0
push eax
call fcn.004464e0
add esp, 8
jmp 0x469284
push 1
push 0
jmp 0x4692d6
int3
xor eax, eax
push eax
jmp 0x4692d5
Function at 0x46a3c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x64a040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x46a3f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x43b410
push 0
push eax
push 0x43b3f0
push 0x65c730
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x46a4f2
cmp dword [0x65c734], 0
jne 0x46a3dc
push dword [0x65c738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a3dc
mov esi, eax
mov eax, 0x65c73c
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x65c740]
mov ebx, dword [0x65c744]
mov eax, dword [0x65c748]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x65c74c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x65c750]
mov dword [ebp - 0x24], eax
mov eax, 0x65c73c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x46a484
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [0x6445dc]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x46a499
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [0x6445dc]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46a4af
mov edi, dword [esi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x46a4c8
mov edi, dword [esi + 0xc]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x46a4dd
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [0x6445dc]
push edi
call ebx
add esp, 4
push 0
push esi
push 0x63bbe0
call fcn.0051e4d0
add esp, 0xc
jmp 0x46a3dc
call fcn.00592636
int3

Function at 0x46b430
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.00408410
mov eax, dword [esi]
test eax, eax
je 0x46b4c0
mov edi, dword [eax + 0x28]
mov ebx, dword [eax + 0x2c]
xor esi, esi
cmp edi, ebx
jne 0x46b483
lea ecx, [ebp - 0x14]
call fcn.00407bd0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp dword [edi + 0x50], 2
jne 0x46b4bb
cmp byte [edi + 0x1b], 0
js 0x46b494
lea eax, [edi + 0x10]
jmp 0x46b497
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
mov eax, dword [ebp + 8]
jne 0x46b4bb
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jb 0x46b4c7
mov ecx, eax
push edi
call fcn.00409f30
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
add edi, 0x58
jmp 0x46b461
mov esi, 3
jmp 0x46b465
push edi
push ecx
mov dword [ebp - 0x18], ecx
call fcn.005f69c0
mov eax, dword [ebp - 0x18]
add esp, 8
add eax, 0x50
jmp 0x46b4b5