joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x64c7e4]
test esi, esi
je 0x41a7d0
mov ecx, esi
push 0x631c00
call fcn.00542250
test al, al
jne 0x41a7f5
mov ecx, esi
push str.vmodule
call fcn.00542250
test al, al
jne 0x41a7f5
mov eax, dword [edi]
mov dword [0x6480b4], eax
mov bl, 1
test al, 1
jne 0x41a885
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x30]
mov ecx, esi
push 7
push str.vmodule
push eax
call fcn.00542370
lea ebx, [ebp - 0x1c]
mov ecx, esi
push 1
push 0x631c00
push ebx
call fcn.00542370
push 0x10
call fcn.00564055
add esp, 4
mov esi, eax
mov ecx, eax
push 0x64c79c
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.005c7f60
cmp byte [ebx + 0xb], 0
jns 0x41a847
push dword [ebp - 0x1c]
call fcn.00564050
add esp, 4
cmp byte [ebp - 0x25], 0
jns 0x41a858
push dword [ebp - 0x30]
call fcn.00564050
add esp, 4
test esi, esi
je 0x41a7d0
xor eax, eax
lock cmpxchg dword [0x64c7a0], esi
je 0x41a7d0
mov ecx, esi
call fcn.005c8030
push esi
call fcn.00564050
add esp, 4
jmp 0x41a7d0
mov eax, dword [0x64c794]
test eax, eax
je 0x41a8af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x64c794], 0
cmp dword [0x64c798], 0
jne 0x41a8af
and byte [0x6480b4], 0xfe
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41a8cf
movsx ecx, byte [edi + 0xf]
test ecx, ecx
jns 0x41a8c1
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x41a93a
mov dword [0x64c794], eax
jmp 0x41a7e1
movsx eax, byte [edi + 0xf]
test eax, eax
jns 0x41a8da
mov eax, dword [edi + 8]
test eax, eax
je 0x41a97b
lea esi, [edi + 4]
mov ecx, dword [0x64c798]
test ecx, ecx
jne 0x41a90e
push 0xc
call fcn.00564055
add esp, 4
mov ecx, eax
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [0x64c798], eax
push esi
call fcn.0052a780
cmp dword [edi + 0x14], 0
jne 0x41a92e
mov eax, dword [0x64c798]
cmp byte [eax + 0xb], 0
jns 0x41a927
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.005babd0
mov ebx, eax
jmp 0x41a7e1
lea eax, [ebp - 0x30]
push 0x246
push str.logging.cc
push str.BaseInitLoggingImpl_built_with_NDEBUG
push eax
call fcn.00509c60
add esp, 0x10
lea esi, [ebp - 0x20]
lea eax, [ebp - 0x30]
push eax
push 0x7f
push str.settings.log_file_path.empty__
push esi
call fcn.00592050
add esp, 0x10
mov ecx, esi
call fcn.00591bc0
mov eax, dword [edi + 0x18]
jmp 0x41a8c5
lea ebx, [ebp - 0x30]
push 0x24c
push str.logging.cc
push str.BaseInitLoggingImpl_built_with_NDEBUG
push ebx
call fcn.00509c60
add esp, 0x10
lea esi, [ebp - 0x1c]
push ebx
push 0x7f
push str._settings.log_file_path.empty__
push esi
call fcn.00592050
add esp, 0x10
mov ecx, esi
call fcn.00591b20
push 0x25
push str.LOG_TO_FILE_set_but_no_log_file_path_
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.00591bc0
jmp 0x41a8e2
Function at 0x41b050
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 0x22c
push str.file_util_win.cc
push str.PathExists
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 0x41b0e9
cmp byte [edi + 0xb], 0
jns 0x41b0be
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
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 0x41b0b6
Function at 0x41c1f0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movaps xmm0, xmmword [0x63bb80]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x41c220
mov eax, dword [edi]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x110000
call ebx
cmp eax, 0xffffffff
je 0x41c2bd
mov esi, eax
lea eax, [ebp - 0xb4]
mov dword [eax], 2
xor edi, edi
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x41c3d4
lea eax, [ebp - 0xb8]
mov dword [eax], edi
push edi
push eax
push 0xc
push dword [ebp + 0x10]
push 0x24
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x41c408
mov bl, 1
cmp dword [ebp - 0xb8], 0xc
jne 0x41c369
push esi
call fcn.0044a690
add esp, 4
test al, al
je 0x41c2ba
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x41c320
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x41c2d4
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
movaps xmm0, xmmword [0x63bb80]
jne 0x41c216
cmp dword [0x64c79c], 2
jg 0x41c362
call fcn.004f17a0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x71
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0xa8]
push 0xd
push str.WaitNamedPipe
jmp 0x41c352
cmp dword [0x64c79c], 2
jg 0x41c362
call fcn.004f17a0
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0x6c
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0xa8]
push 0xa
push str.CreateFile
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005bb1a0
xor ebx, ebx
jmp 0x41c2a3
cmp dword [0x64c79c], 2
jg 0x41c44d
lea edi, [ebp - 0xb0]
mov ecx, edi
push 2
push 0x8c
push str.registration_protocol_win.cc
call fcn.004096e0
lea eax, [ebp - 0xa8]
push 0x1c
push str.TransactNamedPipe:_expected
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push 0xc
call fcn.00455d50
push 0xb
push str.__observed
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push dword [ebp - 0xb8]
call fcn.0042a0a0
mov ecx, edi
call fcn.00407fc0
jmp 0x41c44d
cmp dword [0x64c79c], 2
jg 0x41c44d
call fcn.004f17a0
lea edi, [ebp - 0xb0]
mov ecx, edi
push eax
push 2
push 0x7a
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0xa8]
push 0x17
push 0x63bbf6
jmp 0x41c43d
cmp dword [0x64c79c], 2
jg 0x41c44d
call fcn.004f17a0
lea edi, [ebp - 0xb0]
mov ecx, edi
push eax
push 2
push 0x88
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0xa8]
push 0x11
push 0x63bc0e
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, edi
call fcn.005bb1a0
xor ebx, ebx
jmp 0x41c296
Function at 0x41d680
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x804
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x6480b0]
cmp esi, 0xffffffff
je 0x41d715
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x41d747
mov ebx, 0x800
lea eax, [ebp - 0x810]
push ebx
push 0
push eax
call fcn.00568ad0
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00565a15
add esp, 4
mov edi, eax
push ebx
lea eax, [ebp - 0x810]
push eax
push edi
call fcn.00568550
add esp, 0xc
mov eax, edi
or eax, 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, edi
add esp, 0x804
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41d74a
mov esi, eax
xor eax, eax
dec eax
lock cmpxchg dword [0x6480b0], esi
je 0x41d6a1
push esi
call fcn.005c42a0
add esp, 4
mov esi, dword [0x6480b0]
jmp 0x41d6a1
int3
int3
Function at 0x41ea70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10014
call fcn.00567760
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
dec edi
lea esi, [ebp - 0x1001c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
push edx
push ecx
push esi
call fcn.00527980
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x41eb3c
lea ebx, [ebp - 0x1000e]
push 0xfffe
push 0xff
push ebx
call fcn.00568ad0
add esp, 0xc
cmp byte [ebp - 0x10011], 0
jns 0x41ead8
mov esi, dword [ebp - 0x1001c]
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne byte [ebp - 0x1001d]
jne 0x41eb24
mov bl, byte [ebp - 0x1001d]
cmp byte [ebp - 0x10011], 0
jns 0x41eb0d
push dword [ebp - 0x1001c]
call fcn.00564050
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
cmp eax, 0x7ffe
ja 0x41eb65
push dword [ebp + 8]
push esi
push ebx
call fcn.00440ec0
add esp, 0xc
jmp 0x41eaf0
cmp byte [ebp - 0x10011], 0
js 0x41eb4d
lea eax, [ebp - 0x1001c]
jmp 0x41eb53
mov eax, dword [ebp - 0x1001c]
xor ecx, ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x41eaf6
lea eax, [esi + esi]
test esi, esi
cmovns edi, eax
push edi
call fcn.00565a15
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call fcn.00568ad0
add esp, 0xc
cmp byte [ebp - 0x10011], 0
js 0x41eb95
lea eax, [ebp - 0x1001c]
jmp 0x41eb9b
mov eax, dword [ebp - 0x1001c]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec esi
push dword [ebp + 8]
push esi
push ebx
call fcn.00440ec0
add esp, 0xc
test ebx, ebx
je 0x41eaf0
push ebx
call fcn.0056586d
add esp, 4
jmp 0x41eaf0
Function at 0x41f180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x10]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov eax, esp
push 0xac
push str.file_win.cc
push str.GetLength
push eax
call fcn.00509c60
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push esi
call fcn.00520c00
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x41f228
xor eax, eax
dec eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, esp
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [esp + 4]
or edi, 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
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
lea eax, [esp + 0x54]
mov edx, esp
mov dword [eax], edx
lea ebx, [esp + 0x50]
mov dword [ebx], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push ebx
call fcn.005b7340
add esp, 8
jmp 0x41f1e5

Function at 0x423450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x6480b0]
cmp eax, 0xffffffff
je 0x423511
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x423511
mov eax, dword [0x64c718]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42351b
mov edi, dword [0x64c714]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42355f
mov ecx, dword [0x64b70c]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx eax, al
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x64b710], 0
jne 0x42356b
lea ecx, [ebx + 0x64b710]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov edx, dword [0x64c710]
inc edx
mov dword [0x64c710], edx
mov dword [ecx + 0xc], edx
mov dword [0x64b70c], eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x42355c
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0041d680
jmp 0x423475
push 0x64c718
call fcn.00565714
add esp, 4
cmp dword [0x64c718], 0xffffffff
jne 0x423496
push 4
call fcn.00564055
add esp, 4
mov dword [eax], 0
mov dword [0x64c714], eax
push 0x64c718
call fcn.00565763
add esp, 4
jmp 0x423496
int3
mov ecx, edi
call fcn.005092d0
jmp 0x4234ab
inc edx
cmp edx, 0x100
jne 0x4234b4
jmp 0x4234fb
Function at 0x424220
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]
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jb 0x424243
call fcn.004ffee0
mov dword [esi], 0
test ebx, ebx
je 0x424273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x424298
cmp edi, 2
jb 0x42426a
mov dword [esi], ebx
call fcn.004ffee0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov byte [ecx + 4], 0
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x42430d
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 0x4242d1
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 0x42425e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6338bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424317
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x424307
call dword [0x6401dc]
call ecx
push 0
push eax
call fcn.0043a140
add esp, 8
jmp 0x4242ab
push 1
push 0
jmp 0x4242fd
call fcn.00556790
jmp 0x42428c
xor eax, eax
push eax
jmp 0x4242fc

Function at 0x424e80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00567760
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0xff
push ebx
call fcn.00568ad0
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], edi
push ecx
push ebx
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424f0f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x424f13
mov ecx, esi
push ebx
call fcn.00424f70
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, eax
jmp 0x424ef6
mov edi, 0x3f4
cmp eax, 2
jne 0x424ef6
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.00568ad0
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x424ef6
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
jmp 0x424eef
Function at 0x424fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x425060
cmp dword [esi + 4], 0xffffffff
je 0x425060
lea ecx, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x425088
mov edx, 0x7fffffff
and edx, dword [esi + 0x10]
dec edx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
mov dword [eax], edx
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub eax, edi
add eax, 0xfffffffe
lea ebx, [esi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.00425120
add esp, 8
mov dword [ebp - 0x28], ebx
push ebx
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x4250a1
test eax, eax
jne 0x425060
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, ecx
sar edx, 1
cmp edx, eax
jbe 0x425092
mov word [ecx + eax*2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x42506b
mov eax, dword [eax]
mov word [eax], 0
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
je 0x425092
mov word [eax], 0
mov dword [esi + 0x20], 0
xor ebx, ebx
jmp 0x42504c
mov edx, 4
jmp 0x424fde
push str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x624e92
call fcn.005912b0
mov ebx, dword [ebp - 0x20]
mov edx, dword [esi + 0x20]
inc edx
shr edx, 1
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edi, ecx
sub eax, ecx
mov ecx, eax
sar ecx, 1
cmp edx, ecx
jb 0x4250db
lea ecx, [esi + 0x14]
inc edx
lea eax, [ebp - 0x16]
mov word [eax], 0
push eax
call fcn.0044f2c0
add esp, 4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edi, ecx
sub eax, ecx
add eax, 0xfffffffe
mov dword [esi + 0x20], eax
cmp dword [ebp - 0x14], ebx
mov eax, 0x4000
cmovne eax, ebx
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x24]
call fcn.00425120
add esp, 8
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x42502c
Function at 0x428c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x646040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, 0x7fffffff
cmp eax, 0x7fffffff
cmovb esi, eax
lea edi, [ebp - 0x14]
mov dword [edi], 0xffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428cc9
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x428c96
cmp ebx, 0xffffffff
je 0x428ca8
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
mov ebx, dword [ebp + 8]
push ebx
mov ebx, eax
call eax
cmp eax, 3
je 0x428cab
mov ebx, dword [ebp - 0x14]
jmp 0x428c82
int3
mov dword [ebp - 0x14], 0xffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
test eax, eax
mov eax, ebx
jne 0x428c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x428c82

Function at 0x42a2f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x28], edx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x42a3fc
mov edi, ecx
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [eax], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
mov ecx, ebx
mov ebx, eax
call ecx
push 2
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne byte [ebp - 0x15]
je 0x42a405
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp dword [esi], ebx
je 0x42a372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x42a387
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42a36b
mov dword [esi], ebx
call fcn.004ffee0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov al, byte [ebp - 0x15]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ffee0
mov eax, dword [esi]
cmp dword [0x657038], 0
mov dword [ebp - 0x24], eax
je 0x42a3c0
mov eax, dword [0x657038]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
call dword [0x6401dc]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [ebp - 0x1c]
mov dword [esi], 0
jmp 0x42a35c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6338bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a412
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x42a3f6
call dword [0x6401dc]
call ecx
push 0
push eax
call fcn.0043a140
add esp, 8
jmp 0x42a39a
push 1
push 0
jmp 0x42a3ec
mov byte [ebp - 0x15], 1
jmp 0x42a372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42a36b
xor eax, eax
push eax
jmp 0x42a3eb
Function at 0x42a420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x65a6f0]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42a50e
push dword [0x6480b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x42a46f
mov ecx, dword [0x65a6e8]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65a6ec]
jne 0x42a46f
cmp dword [eax + ecx*8], 0
jne 0x42a4e0
push 4
call fcn.00564055
add esp, 4
mov esi, eax
mov dword [eax], 0
push dword [0x6480b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x42a4a9
mov ecx, dword [0x65a6e8]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65a6ec]
jne 0x42a4a9
mov edi, dword [eax + ecx*8]
push dword [0x6480b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
jne 0x42a4c3
test esi, esi
je 0x42a4dc
call fcn.0041d680
mov ecx, dword [0x65a6e8]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x65a6ec]
mov edx, dword [0x65a6e8]
mov dword [eax + edx*8 + 4], ecx
test edi, edi
jne 0x42a55d
push dword [0x6480b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
xor eax, eax
and ecx, 0xfffffffc
je 0x42a50a
mov edx, dword [0x65a6e8]
mov esi, dword [ecx + edx*8 + 4]
cmp esi, dword [0x65a6ec]
jne 0x42a50a
mov eax, dword [ecx + edx*8]
pop esi
pop edi
pop ebp
ret
push 0x65a6f0
call fcn.00565714
add esp, 4
cmp dword [0x65a6f0], 0xffffffff
jne 0x42a446
mov dword [0x65a6ec], 0
mov dword [0x65a6e8], 0xffffffff
mov ecx, 0x65a6e8
push 0x406bb0
call fcn.00423450
push 0x65a6f0
call fcn.00565763
add esp, 4
jmp 0x42a446
push edi
call fcn.00564050
add esp, 4
jmp 0x42a4e0