joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x410
cmp eax, dword [0x518da8]
push ebx
push esi
push edi
jb 0x421696
mov dword [0x518a70], 9
mov dword [0x518a74], 0
mov eax, 0xffffffff
jmp 0x4217f2
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x4216a7
xor eax, eax
jmp 0x4217f2
mov eax, dword [ebp + 8]
test byte [eax + 0x518db0], 0x20
je 0x4216c0
push 2
push 0
push eax
call fcn.00420789
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x518db0], 0x80
je 0x42174a
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x421782
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x421714
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x421700
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x4216ea
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x518df0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421779
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x4216d6
jmp 0x421782
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x518df0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421779
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x421782
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x4217ed
cmp dword [ebp - 0xc], 0
je 0x4217ba
cmp dword [ebp - 0xc], 5
jne 0x4217a8
mov dword [0x518a70], 9
mov eax, dword [ebp - 0xc]
mov dword [0x518a74], eax
jmp 0x4217b3
push dword [ebp - 0xc]
call fcn.0042025e
add esp, 4
mov eax, 0xffffffff
jmp 0x4217f2
mov eax, dword [ebp + 8]
test byte [eax + 0x518db0], 0x40
je 0x4217d2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4217d2
xor eax, eax
jmp 0x4217f2
mov dword [0x518a70], 0x1c
mov dword [0x518a74], 0
mov eax, 0xffffffff
jmp 0x4217f2
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423536
Capabilities:
Clear file content

Disassembly:
push ebp
mov eax, 0x1008
mov ebp, esp
call fcn.0041d328
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x518da8], esi
ja 0x423567
mov dword [0x518a70], 9
jmp 0x42365e
push 1
push 0
push esi
call fcn.00420789
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x42365e
push 2
push 0
push esi
call fcn.00420789
add esp, 0xc
cmp eax, 0xffffffff
je 0x42365e
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x42360b
lea edi, [ebp - 0x1008]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00424078
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebx, eax
jge 0x4235cb
mov eax, ebx
push eax
lea ecx, [ebp - 0x1008]
push ecx
push esi
call fcn.00421660
add esp, 0xc
cmp eax, 0xffffffff
je 0x4235e9
sub ebx, eax
test ebx, ebx
jg 0x4235c0
jmp 0x4235ff
cmp dword [0x518a74], 5
jne 0x4235fc
mov dword [0x518a70], 0xd
mov dword [ebp - 4], eax
push edi
push esi
call fcn.00424078
add esp, 8
jmp 0x42364b
jge 0x42364b
push 0
push ecx
push esi
call fcn.00420789
add esp, 0xc
push esi
call fcn.00422082
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x42364b
mov dword [0x518a70], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x518a74], eax
push 0
push dword [ebp - 8]
push esi
call fcn.00420789
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x423663
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424428
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x424618
push 0x3d
push esi
call fcn.004246f2
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x424618
cmp ebp, esi
je 0x424618
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x518a9c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x518a98], ecx
jne 0x424485
mov eax, dword [0x518a98]
push eax
call fcn.00424682
add esp, 4
mov dword [0x518a98], eax
cmp dword [0x518a98], 0
jne 0x424514
cmp dword [esp + 0x1c], 0
je 0x4244b0
cmp dword [0x518aa0], 0
je 0x4244b0
call fcn.00423ff9
test eax, eax
je 0x424514
jmp 0x424618
cmp dword [esp + 0x10], 0
je 0x4244be
xor eax, eax
jmp 0x42461d
cmp dword [0x518a98], 0
jne 0x4244e9
push 4
call fcn.0041cfac
add esp, 4
mov dword [0x518a98], eax
test eax, eax
je 0x424618
mov eax, dword [0x518a98]
mov dword [eax], 0
cmp dword [0x518aa0], 0
jne 0x424514
push 4
call fcn.0041cfac
add esp, 4
mov dword [0x518aa0], eax
test eax, eax
je 0x424618
mov eax, dword [0x518aa0]
mov dword [eax], 0
mov edi, dword [0x518a98]
sub ebp, esi
push ebp
push esi
call fcn.00424625
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x42456a
cmp dword [edi], 0
je 0x42456a
cmp dword [esp + 0x10], 0
je 0x424565
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x42454e
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x424540
lea eax, [ebx*4]
push eax
push edi
call fcn.0041d4b8
add esp, 8
test eax, eax
je 0x4245a5
jmp 0x4245a0
mov dword [edi + ebx*4], esi
jmp 0x4245a5
cmp dword [esp + 0x10], 0
jne 0x424614
test ebx, ebx
jge 0x42457b
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.0041d4b8
add esp, 8
test eax, eax
je 0x424618
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x518a98], eax
cmp dword [esp + 0x1c], 0
je 0x424610
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0041cfac
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x424610
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.0041ce53
add esp, 4
xor eax, eax
jmp 0x42461d
xor eax, eax
jmp 0x42461d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x426209
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42622e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042025e
add esp, 4
mov eax, 0xffffffff
jmp 0x426256
test al, 1
je 0x426254
test byte [esp + 8], 2
je 0x426254
mov dword [0x518a70], 0xd
mov dword [0x518a74], 5
mov eax, 0xffffffff
jmp 0x426256
xor eax, eax
ret
Function at 0x4262c1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4262f0
test byte [esp + 0xc], 0x80
je 0x4262dd
and al, 0xfe
jmp 0x4262df
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov eax, 0
jne 0x426304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042025e
add esp, 4
mov eax, 0xffffffff
pop esi
ret
Function at 0x426c31
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x426c6f
cmp byte [ebp - 0x103], 0x3a
jne 0x426c6f
movzx eax, byte [ebp - 0x104]
push eax
call fcn.00420b0e
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426d22
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x426d89
push ebx
call fcn.00426e15
add esp, 4
test eax, eax
jne 0x426d5b
mov dword [0x518a74], 0xf
mov dword [0x518a70], 0xd
jmp 0x426e0c
add bl, 0x40
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10c]
lea ebx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x426d9b
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x426e0c
inc eax
cmp eax, 0x104
ja 0x426e0c
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x426dd2
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x426db7
mov eax, ecx
push eax
call fcn.0041cfac
add esp, 4
mov edx, eax
test edx, edx
jne 0x426de3
mov dword [0x518a70], 0xc
jmp 0x426e0c
cmp eax, dword [ebp + 0x10]
jle 0x426de3
mov dword [0x518a70], 0x22
jmp 0x426e0c
lea edi, [ebp - 0x10c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x426e0e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405780
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm0, qword [0x649670]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x4057ab
jnp 0x405802
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00568175
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x649680
call fcn.00564ee8
add esp, 4
cmp dword [0x649680], 0xffffffff
jne 0x40583d
rdtsc
mov dword [0x649678], eax
mov dword [0x64967c], edx
push 0x649680
call fcn.00564f37
add esp, 4
jmp 0x40583d
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x649680]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4057d0
mov eax, dword [0x649690]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405933
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub ebx, dword [0x649688]
sbb edi, dword [0x64968c]
movd xmm0, edi
movd xmm1, ebx
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm1, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm1, qword [esp + 0x30]
pxor xmm0, xmm0
movsd xmm2, qword [0x6266a0]
ucomisd xmm2, xmm1
ja 0x4057ab
mov eax, dword [esp + 8]
sub eax, dword [0x649678]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x64967c]
movd xmm2, ecx
movd xmm0, eax
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x626680]
subpd xmm0, xmmword [0x626690]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x649670], xmm0
jmp 0x4057ab
push 0x649690
call fcn.00564ee8
add esp, 4
cmp dword [0x649690], 0xffffffff
jne 0x40585e
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x64968c], ecx
mov dword [0x649688], eax
push 0x649690
call fcn.00564f37
add esp, 4
jmp 0x40585e
Function at 0x4084b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x64a784], 0
jne 0x408610
mov esi, dword [0x64a788]
test esi, esi
jne 0x408575
push 0xc
call fcn.00564ea5
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00569910
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0052b240
movsx eax, byte [esi + 0xb]
mov ecx, esi
test eax, eax
jns 0x408538
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
je 0x408561
add eax, eax
test eax, eax
je 0x408561
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x40853e
cmp edx, 0xfffffffe
je 0x408561
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.0052b160
mov ecx, esi
push 9
push str.debug.log
call fcn.00539af0
mov dword [0x64a788], esi
test byte [0x6460b4], 1
je 0x408610
xorps xmm0, xmm0
movups xmmword [ebp - 0x22c], xmm0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x21c], 0
cmp byte [esi + 0xb], 0
jns 0x4085a5
mov esi, dword [esi]
lea eax, [ebp - 0x23c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4085ce
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0x40000001
sbb eax, 0
jae 0x408627
mov eax, dword [0x64a788]
cmp byte [eax + 0xb], 0
jns 0x4085db
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x62fbd0]
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]
mov dword [0x64a784], eax
mov bl, 1
inc eax
cmp eax, 1
jbe 0x40863d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x64a788]
cmp byte [eax + 0xb], 0
jns 0x408634
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4085ce
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.00569910
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x40867e
xor ebx, ebx
jmp 0x408610
mov ecx, dword [0x64a788]
push esi
call fcn.004137d0
mov ecx, dword [0x64a788]
call fcn.005b2c40
cmp word [eax], 0x5c
je 0x4086ad
mov ecx, dword [0x64a788]
push 1
push 0x624ea8
call fcn.00539af0
mov ecx, dword [0x64a788]
push 9
push str.debug.log
call fcn.00539af0
mov eax, dword [0x64a788]
cmp byte [eax + 0xb], 0
jns 0x4086cc
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x62fbd0]
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]
mov dword [0x64a784], eax
inc eax
cmp eax, 1
ja 0x408610
mov dword [0x64a784], 0
jmp 0x40867a
Function at 0x40b9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40b9e8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40b9f2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40b9e1
mov dword [esi], ebx
call fcn.004ef4b0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004ef4b0
mov eax, dword [esi]
cmp dword [0x655034], 0
mov dword [ebp - 0x18], eax
je 0x40ba2b
mov eax, dword [0x655034]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e63c]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x40b9d2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6326b5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ba67
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x40ba61
call dword [0x63e63c]
call ecx
push 0
push eax
call fcn.00437740
add esp, 8
jmp 0x40ba05
push 1
push 0
jmp 0x40ba57
xor eax, eax
push eax
jmp 0x40ba56
Function at 0x40f070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x40f0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40f0cc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40f0a7
mov dword [esi], ebx
call fcn.004ef4b0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x40f141
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004ef4b0
mov eax, dword [esi]
cmp dword [0x655034], 0
mov dword [ebp - 0x18], eax
je 0x40f105
mov eax, dword [0x655034]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x63e63c]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x40f098
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6326b5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f144
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x40f13b
call dword [0x63e63c]
call ecx
push 0
push eax
call fcn.00437740
add esp, 8
jmp 0x40f0df
push 1
push 0
jmp 0x40f131
int3
xor eax, eax
push eax
jmp 0x40f130
Function at 0x40f440
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2b8
mov esi, edx
mov dword [ebp - 0x2c4], ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x2a4]
push 0x294
push 0xff
push edi
call fcn.00569910
add esp, 0xc
xor ebx, ebx
mov ecx, edi
push ebx
push ebx
mov dword [ebp - 0x2c0], esi
push esi
push 3
push ebx
push dword [ebp - 0x2c4]
call fcn.0040f7d0
xor eax, eax
dec eax
lea edi, [ebp - 0x2b0]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ecx, [ebp - 0x2a4]
push edi
call fcn.0053acd0
movsx eax, byte [edi + 0xb]
mov ecx, eax
test eax, eax
jns 0x40f4bf
mov ecx, dword [ebp - 0x2ac]
test ecx, ecx
je 0x40f589
xor esi, esi
cmp byte [ebp - 0x2a4], 0
je 0x40f60f
mov ebx, dword [ebp - 0x2a0]
test bl, 1
jne 0x40f619
test bl, 0x10
jne 0x40f5c4
cmp byte [ebp - 0x2a5], 0
mov eax, edi
jns 0x40f4ff
mov eax, dword [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f5bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebx, ebx
cmp ecx, 2
je 0x40f522
mov ebx, eax
test esi, esi
cmovne ebx, esi
lea ecx, [ebp - 0x2a4]
lea eax, [ebp - 0x2bc]
push eax
call fcn.0053acd0
cmp byte [ebp - 0x2a5], 0
jns 0x40f550
push dword [ebp - 0x2b0]
call fcn.00564ea0
add esp, 4
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2a8], eax
movsd xmm0, qword [ebp - 0x2bc]
movsd qword [ebp - 0x2b0], xmm0
movsx eax, byte [ebp - 0x2a5]
mov ecx, eax
test eax, eax
jns 0x40f57f
mov ecx, dword [ebp - 0x2ac]
mov esi, ebx
test ecx, ecx
jne 0x40f4c9
test al, al
jns 0x40f59b
push dword [ebp - 0x2b0]
call fcn.00564ea0
add esp, 4
lea ecx, [ebp - 0x2a4]
call fcn.0040f650
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0x2b8
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x40f522
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x40f522
mov ecx, edi
mov edx, dword [ebp - 0x2c0]
push 1
call fcn.0040f440
add esp, 4
test eax, eax
jne 0x40f520
cmp byte [ebp - 0x2a5], 0
mov eax, edi
jns 0x40f5fb
mov eax, dword [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40f522
jmp 0x40f50e
call fcn.00593000
jmp 0x40f4ee
mov ecx, ebx
test bl, 0x10
je 0x40f62c
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x40f522
test al, al
jns 0x40f638
mov eax, dword [ebp - 0x2b0]
jmp 0x40f63e
lea eax, [ebp - 0x2b0]
mov ebx, ecx
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40f4e5
Function at 0x412640
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 [0x644040]
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 0x4126d9
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4126a6
cmp ebx, 0xffffffff
je 0x4126b8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
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 0x4126bb
mov ebx, dword [ebp - 0x14]
jmp 0x412692
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 0x412686
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x412692

Function at 0x4126f0
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 [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x6460b0]
cmp esi, 0xffffffff
je 0x412785
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4127b7
mov ebx, 0x800
lea eax, [ebp - 0x810]
push ebx
push 0
push eax
call fcn.00569910
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0056682e
add esp, 4
mov edi, eax
push ebx
lea eax, [ebp - 0x810]
push eax
push edi
call fcn.00569390
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.00568175
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 0x4127ba
mov esi, eax
xor eax, eax
dec eax
lock cmpxchg dword [0x6460b0], esi
je 0x412711
push esi
call fcn.005c4f00
add esp, 4
mov esi, dword [0x6460b0]
jmp 0x412711
int3
int3