joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447a30
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 [0x646040]
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 0x50f
push str.file_util_win.cc
push 0x630487
push ebx
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x447ac8
cmp byte [edi + 0xb], 0
jns 0x447a9e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.00540880
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00567335
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.005b7340
add esp, 8
jmp 0x447a96
Function at 0x447af0
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 [0x646040]
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 0x4ff
push str.file_util_win.cc
push 0x630472
push ebx
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x5c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x447c73
lea esi, [esp + 0x62]
push 0x206
push 0xff
push esi
call fcn.00568ad0
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 0x447c43
push ebx
call fcn.00565872
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.00550a00
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 0x447be8
mov eax, dword [esp + 0xc]
test eax, eax
js 0x447c6d
mov edi, dword [esp + 8]
sete cl
test edi, edi
setne dl
or dl, cl
je 0x447c70
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
mov ecx, ebx
push eax
push edi
call fcn.00550a00
mov ecx, ebx
call fcn.0043ef50
cmp byte [esi + 0xb], 0
jns 0x447c0f
push dword [esi]
call fcn.00564050
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 0x447c3f
push dword [esp + 8]
call fcn.00564050
add esp, 4
mov esi, dword [esp + 4]
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00540880
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.00567335
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.005b7340
add esp, 8
jmp 0x447b5f
Function at 0x447f40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov edi, edx
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movsd qword [ecx], xmm0
mov dword [ecx + 8], 0
push ecx
push edx
call fcn.0043f560
add esp, 8
test al, al
je 0x447fa9
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x447f81
mov eax, dword [esi + 4]
test eax, eax
je 0x447fa9
push esi
call fcn.00448090
add esp, 4
test al, al
je 0x447fa9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, esi
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0055c200
mov ecx, 4
mov ebx, 0x631a8c
mov eax, ecx
jmp 0x447fce
not eax
add eax, ecx
lea ebx, [ebx + edx*4]
add ebx, 0xc
mov ecx, eax
test eax, eax
je 0x447fda
shr eax, 1
lea edx, [eax + eax*2]
cmp dword [ebx + edx*4], edi
jge 0x447fc8
jmp 0x447fbe
cmp ebx, 0x631abc
je 0x448022
cmp dword [ebx], edi
jg 0x448022
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.00568ad0
add esp, 0xc
mov word [edi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
jbe 0x448035
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x447f92
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
call fcn.00565872
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00550a00
mov ecx, esi
call fcn.004f1890
test al, al
je 0x448079
mov ecx, esi
call fcn.00527450
test al, al
jne 0x448079
push esi
call fcn.00448090
add esp, 4
test al, al
jne 0x447f92
mov ecx, esi
call fcn.0055c200
jmp 0x448022

Function at 0x448090
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 [0x646040]
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 0x254
push str.file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x448133
cmp byte [edi + 0xb], 0
jns 0x4480fe
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.00540880
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00567335
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.005b7340
add esp, 8
jmp 0x4480f6
Function at 0x4489b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [0x646040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, 0x7fffffff
lea esi, [ebp - 0xb0]
mov edi, eax
test eax, eax
je 0x448a35
cmp edi, ecx
mov eax, 0x7fffffff
cmovb eax, edi
mov dword [ebp - 0xb0], 0xffffffff
push 0
push esi
push eax
push ebx
mov esi, edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x448a54
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0xffffffff
je 0x448a51
test ecx, ecx
mov edx, 0
cmovns edx, ecx
mov eax, edi
sub eax, edx
add ebx, edx
test ecx, ecx
mov edx, esi
mov ecx, 0x7fffffff
lea esi, [ebp - 0xb0]
jns 0x4489db
jmp 0x448a54
test edi, edi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
int3
cmp dword [0x64c79c], 2
jg 0x448a35
call fcn.004f17a0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x8c
push str.file_io.cc
call fcn.005bb140
lea eax, [ebp - 0xa8]
push 9
push 0x63b59b
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005bb1a0
jmp 0x448a35

Function at 0x4498b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xa4
mov esi, dword [ebp + 8]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.0044b140
add esp, 0x10
or edx, eax
jne 0x4498e7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x4498fd
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0xa4
pop esi
pop ebx
pop ebp
ret
cmp dword [0x64c79c], 2
jg 0x449942
call fcn.004f17a0
lea esi, [ebp - 0xac]
mov ecx, esi
push eax
push 2
push 0xfc
push str.file_io_win.cc
call fcn.005bb140
lea eax, [ebp - 0xa4]
push 0xc
push 0x63b560
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005bb1a0
xor ebx, ebx
jmp 0x4498e7
Function at 0x449e30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0044a720
mov eax, dword [esi]
test eax, eax
je 0x449e83
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x449e8a
lea ecx, [ebp - 0x14]
call fcn.00449ef0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x449e65
cmp dword [ebx + 0x50], 0
jne 0x449ea9
cmp byte [ebx + 0x1b], 0
js 0x449e9b
lea eax, [ebx + 0x10]
jmp 0x449e9e
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x449eae
add ebx, 0x58
jmp 0x449e61
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jae 0x449ed4
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.005d5750
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x449ea9
mov ecx, dword [ebp + 8]
push ebx
call fcn.005d5640
mov ecx, eax
jmp 0x449ecc
Function at 0x44f450
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 [0x646040]
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.00568ad0
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.0044d260
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 0x44f586
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x44f586
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x44f586
dec ecx
push ecx
push eax
call fcn.0056610a
add esp, 8
mov edx, dword [ebp - 0x234]
test eax, eax
sete cl
test edx, edx
setne ch
or ch, cl
je 0x44f5a0
mov ecx, dword [ebp + 8]
push eax
push edx
call fcn.00554be0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
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 0x44f4c5
jmp 0x44f571
int3
Function at 0x4535f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx + 0x10], 1
push 0x20
call fcn.00564055
add esp, 4
mov edi, eax
mov dword [eax + 4], 0
mov dword [eax], 0x623e2c
sub esp, 0x10
movaps xmm0, xmmword [0x63b5b0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 8], eax
test eax, eax
je 0x4536dc
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 0x453675
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45371c
push ebx
call fcn.00564050
add esp, 4
mov edi, dword [esi + 0xc]
xor eax, eax
push eax
push eax
push edi
push 0x4f3d50
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
je 0x4536a2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
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.00509c60
add esp, 0x10
lea esi, [ebp - 0x14]
push edi
push esi
call fcn.005bc600
add esp, 8
mov ecx, esi
push 0x639650
call fcn.005d93b0
mov ecx, esi
call fcn.00591bc0
jmp 0x45368e
lea eax, [ebp - 0x24]
push 0x1e
push str.semaphore_win.cc
push 0x63d05f
push eax
call fcn.00509c60
add esp, 0x10
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.005bc600
add esp, 8
mov ecx, ebx
push str.CreateSemaphore
call fcn.005d93b0
mov ecx, ebx
call fcn.00591bc0
jmp 0x453641
lea eax, [ebp - 0x24]
push 0x22
push str.semaphore_win.cc
push str.Semaphore
push eax
call fcn.00509c60
add esp, 0x10
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.005bc600
add esp, 8
mov ecx, edi
call fcn.00591bc0
jmp 0x453669
Function at 0x4575d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x64b648]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x457601
movzx eax, word [0x64b624]
cmp eax, 9
jne 0x45764c
xor eax, eax
inc eax
pop ebp
ret
push 0x64b648
call fcn.00565714
add esp, 4
cmp dword [0x64b648], 0xffffffff
jne 0x4575f0
xorps xmm0, xmm0
movups xmmword [0x64b634], xmm0
movups xmmword [0x64b624], xmm0
mov dword [0x64b644], 0
push 0x64b624
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x64b648
call fcn.00565763
add esp, 4
jmp 0x4575f0
test eax, eax
je 0x4575ff
cmp eax, 6
jne 0x45765c
mov eax, 2
jmp 0x4575ff
cmp eax, 0xc
jne 0x457668
mov eax, 3
jmp 0x4575ff
mov eax, 4
jmp 0x4575ff

Function at 0x4577b0
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 [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 1
je 0x457803
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x457829
cmp byte [ebp + 0xc], 0
jne 0x45780b
mov ecx, esi
mov edx, edi
call fcn.004386d0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4577d0
cmp byte [esi + 4], 1
je 0x457815
mov eax, dword [esi]
jmp 0x45781b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4577e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 1
je 0x457839
mov eax, dword [esi]
jmp 0x45783f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x457853
xor ebx, ebx
jmp 0x4577ed
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 1
je 0x457864
mov eax, dword [esi]
jmp 0x45786a
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 0x4577e2
mov edi, dword [ebp - 0x14]
jmp 0x4577e2
Function at 0x457c30
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 [0x646040]
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.00509c60
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x457ce2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x457cdd
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.00540880
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00567335
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x457cbd
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.005b7340
add esp, 8
jmp 0x457c95
Function at 0x457d10
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 [0x646040]
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 0x235
push str.file_util_win.cc
push str.PathHasAccess
push ebx
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x5c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x457e81
cmp byte [esi + 0xb], 0
jns 0x457d83
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x457e77
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 0x457de1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x457e37
call fcn.004ffee0
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 0x457e17
call fcn.004ffee0
cmp dword [0x657038], 0
je 0x457e3b
mov esi, dword [0x657038]
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x6401dc]
mov ecx, esi
push ebx
call edi
lea ecx, [esp + 0x20]
call fcn.00540880
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00567335
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x457dda
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6338bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x457ea7
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x457e71
call dword [0x6401dc]
call ecx
push 0
push eax
call fcn.0043a140
add esp, 8
jmp 0x457e00
push 1
push 0
jmp 0x457e67
mov dword [esp + 0xc], 0
jmp 0x457e17
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.005b7340
add esp, 8
jmp 0x457d7b
xor eax, eax
push eax
jmp 0x457e66
Function at 0x45ae80
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], 1
jne 0x45aee6
test esi, esi
je 0x45af67
xor ecx, ecx
mov dword [esi], ecx
mov ebx, dword [eax]
mov dword [eax], ecx
lea edi, [ebx + 1]
cmp edi, 2
jb 0x45aeb8
call fcn.004ffee0
cmp dword [esi], ebx
je 0x45aee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45aef2
cmp edi, 2
jb 0x45aed9
mov dword [esi], ebx
call fcn.004ffee0
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.004ffee0
mov eax, dword [esi]
cmp dword [0x657038], 0
mov dword [ebp - 0x18], eax
je 0x45af2b
mov eax, dword [0x657038]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x6401dc]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x45aecd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6338bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45af6a
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x45af61
call dword [0x6401dc]
call ecx
push 0
push eax
call fcn.0043a140
add esp, 8
jmp 0x45af05
push 1
push 0
jmp 0x45af57
int3
xor eax, eax
push eax
jmp 0x45af56
Function at 0x45be70
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 [0x646040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x45bea0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x423430
push 0
push eax
push 0x423410
push 0x659bc4
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x45bfa2
cmp dword [0x659bc8], 0
jne 0x45be8c
push dword [0x659bcc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45be8c
mov esi, eax
mov eax, 0x659bd0
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x659bd4]
mov ebx, dword [0x659bd8]
mov eax, dword [0x659bdc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x659be0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x659be4]
mov dword [ebp - 0x24], eax
mov eax, 0x659bd0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x45bf34
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [0x6401dc]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x45bf49
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [0x6401dc]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x45bf5f
mov edi, dword [esi + 8]
call dword [0x6401dc]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x45bf78
mov edi, dword [esi + 0xc]
call dword [0x6401dc]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x45bf8d
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [0x6401dc]
push edi
call ebx
add esp, 4
push 0
push esi
push 0x637600
call fcn.0050e100
add esp, 0xc
jmp 0x45be8c
call fcn.0057887c
int3

Function at 0x45d1a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0044a720
mov eax, dword [esi]
test eax, eax
je 0x45d1f3
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x45d1fa
lea ecx, [ebp - 0x14]
call fcn.00449ef0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x45d1d5
cmp dword [ebx + 0x50], 2
jne 0x45d219
cmp byte [ebx + 0x1b], 0
js 0x45d20b
lea eax, [ebx + 0x10]
jmp 0x45d20e
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45d21e
add ebx, 0x58
jmp 0x45d1d1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jae 0x45d244
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.005d5750
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x45d219
mov ecx, dword [ebp + 8]
push ebx
call fcn.005d5640
mov ecx, eax
jmp 0x45d23c