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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x412733
xor eax, eax
jmp 0x412808
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x412762
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x412762
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x412807
cmp dword [edi + 0x4c], 0
je 0x412805
mov ecx, edi
call fcn.00412c7e
mov eax, dword [edi + 0x38]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x412793
push dword [edi + 0x4c]
push ecx
call fcn.00411bf4
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x412805
mov byte [ebp - 0x28], cl
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x46b4a4]
mov ecx, dword [ebp - 0x2c]
call dword [esi + 0x1c]
test eax, eax
js 0x412805
cmp eax, 1
jle 0x4127d9
cmp eax, 3
jne 0x412805
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x412784
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4127f6
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00441c37
add esp, 0x10
cmp esi, eax
jne 0x412805
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x412807
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret 4

Function at 0x412ccc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x412d3d
cmp byte [ebx + 0x3d], 0
je 0x412d3d
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x46b4a4]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x412d76
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x46b4a4]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x412d4d
sub eax, 1
je 0x412d50
dec eax
sub eax, 1
jne 0x412d76
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x412d6d
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00441c37
add esp, 0x10
cmp esi, eax
jne 0x412d76
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x412d3f
xor al, al
jmp 0x412d3f
Function at 0x4152c4
Capabilities:
Persist via run registry key

Disassembly:
push 0x44
mov eax, 0x466885
call fcn.00464982
mov edi, ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
push 0x364
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludeZoomRegUtil.cpp
xor ebx, ebx
push ebx
call fcn.0040c45a
push dword [ebp + 8]
mov edx, str._RegAutoStart__forAllUser:
mov dword [ebp - 4], ebx
push ebx
push ecx
mov ecx, 0x490340
call fcn.0040b7dd
pop ecx
mov ecx, eax
call fcn.0040a41c
mov edx, str._user_sid:
mov ecx, eax
call fcn.0040b7dd
mov edx, esi
mov ecx, eax
call fcn.0040b99e
mov edx, str._binHome:
mov ecx, eax
call fcn.0040b7dd
mov edx, edi
mov ecx, eax
call fcn.0040b99e
push ecx
mov edx, str._silent:
mov ecx, eax
call fcn.0040b7dd
pop ecx
mov ecx, eax
call fcn.0040a41c
lea ecx, [ebp - 0x50]
call fcn.0040c5f9
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 1
cmp dword [esi + 0x10], 0
push 8
pop ebx
jne 0x415384
push 0x2001f
push 0x47c420
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.00408cbb
mov esi, eax
jmp 0x4153bc
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0040b9be
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
mov dword [esp], 0x2001f
lea ecx, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x40]
push eax
push SysStringLen
call fcn.00408cbb
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0040acc1
test esi, esi
jne 0x41549b
and dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], esi
push edi
call fcn.0040ada7
mov esi, 0x4799c8
mov byte [ebp - 4], 2
push esi
call fcn.0043d5e8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b5aa
mov esi, str.Zoom.exe
push esi
call fcn.0043d5e8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b5aa
cmp byte [ebp + 8], 0
je 0x415469
push 0x47b540
lea ecx, [ebp - 0x40]
call fcn.0040a58e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040b5aa
mov esi, str.____backgroundtrue
push esi
call fcn.0043d5e8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040b5aa
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x4c]
push eax
push str.Zoom
call fcn.00408d87
lea ecx, [ebp - 0x40]
call fcn.0040acc1
jmp 0x415482
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push eax
push str.Zoom
call fcn.00408d87
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jb 0x41549b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00403711
pop ecx
pop ecx
cmp dword [ebp - 0x4c], 0
je 0x4154aa
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0046493d
ret
Function at 0x416f0a
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0xc], 0x67452301
mov byte [ecx + 0x5c], al
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
ret

Function at 0x41b0e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x41b13c
and dword [edi], 0
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41b143
test ecx, ecx
je 0x41b13c
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41b104
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b13e

Function at 0x41b14b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x41b1a1
and dword [edi], 0
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41b1a8
test ecx, ecx
je 0x41b1a1
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41b169
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b1a3

Function at 0x41b742
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41b7b4
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41b751
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41b751
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x41b863
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41b885
xor eax, eax
jmp 0x41b983
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41b8a5
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41b8a2
inc edi
cmp edi, edx
jb 0x41b895
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41b971
cmp ecx, 2
jbe 0x41b930
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41b960
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41b910
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41b90e
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41b966
shr esi, cl
test esi, esi
je 0x41b8be
cmp esi, 4
ja 0x41b955
cmp esi, 3
je 0x41b955
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41b8be
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41b88e
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41b88e
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret

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

Disassembly:
push 8
mov eax, 0x466e80
call fcn.0046494e
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e682
test al, 0x10
jbe 0x41e682
xor eax, eax
jmp 0x41e6fa
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041e1e7
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
push edi
call fcn.0043d5e8
pop ecx
push 0x5c
pop edx
cmp eax, 1
jle 0x41e6af
cmp word [edi + eax*2 - 2], dx
jne 0x41e6af
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
push edx
push edi
call fcn.0046041f
pop ecx
pop ecx
test eax, eax
jne 0x41e6c1
push 0xf
pop esi
jmp 0x41e6f1
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.0041e660
mov esi, eax
test esi, esi
jne 0x41e6f1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e6ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41e6f1
xor esi, esi
push edi
call fcn.0041f050
pop ecx
mov eax, esi
call fcn.00464928
ret
Function at 0x41ea6b
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0xac], eax
je 0x41ea9c
xor esi, esi
mov dword [edi + 0x88], 0x3f3
mov dword [edi + 0x8c], esi
xor eax, eax
mov dword [edi + 0x90], esi
jmp 0x41ebed
mov eax, dword [0x4909d0]
push ebx
lea ebx, [edi + 0x70]
cmp eax, 0xffffffff
je 0x41eac3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41eac3
xor esi, esi
mov dword [ebx + 0x18], 0x3f4
mov dword [ebx + 0x1c], esi
jmp 0x41eadd
xor ecx, ecx
mov edx, edi
inc ecx
call fcn.0041f00b
test eax, eax
jne 0x41eae5
xor esi, esi
mov dword [ebx + 0x1c], 0xe
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x20], esi
jmp 0x41eba0
mov ecx, ebx
call fcn.0041e3d6
xor esi, esi
cmp dword [edi + 0x94], esi
jne 0x41eba0
cmp dword [edi + 0xb0], esi
jne 0x41eba4
call fcn.0041e84a
push str.FDICreate
push eax
mov dword [edi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICopy
push dword [edi + 0xb0]
mov dword [edi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIIsCabinet
push dword [edi + 0xb0]
mov dword [edi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIDestroy
push dword [edi + 0xb0]
mov dword [edi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xc0], eax
cmp dword [edi + 0xb4], esi
je 0x41eb84
cmp dword [edi + 0xb8], esi
je 0x41eb84
cmp dword [edi + 0xbc], esi
je 0x41eb84
test eax, eax
jne 0x41eba4
mov dword [edi + 0xb0], esi
mov dword [edi + 0x88], 0x3e8
mov dword [edi + 0x8c], esi
mov dword [edi + 0x90], esi
xor eax, eax
jmp 0x41ebec
mov esi, dword [edi + 0xb4]
mov ecx, esi
push ebx
push 1
push 0x41f160
push fcn.0041f130
push 0x41f100
push 0x41f0d0
push 0x41f060
push fcn.0041f050
push fcn.0041f040
call dword [0x46b4a4]
call esi
xor ecx, ecx
mov dword [edi + 0x94], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret
Function at 0x41fa10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00448ee8
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41fa80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x41fa9b
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044adad
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
leave
ret 0xc

Function at 0x41fac5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fb4a
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x41fb36
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x41fb28
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0x10

Function at 0x420c52
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push esi
push 0x420c80
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x420c7b
cmp dword [esi + 0xc], eax
jbe 0x420c7b
mov eax, dword [ecx]
mov dword [esi + 0x10], 1
pop esi
ret
Function at 0x427128
Capabilities:
Enumerate processes

Disassembly:
push 0x2b4
mov eax, 0x467347
call fcn.00464982
mov ebx, ecx
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.0042895e
push 0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [ebx + 4], 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x294], esi
cmp esi, 0xffffffff
jne 0x42716e
xor eax, eax
jmp 0x42732b
push 0x228
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0x22c
push 0
push eax
call fcn.0045e110
and dword [ebp - 0x40], 0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x427311
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x290], esi
push eax
mov ecx, ebx
call fcn.00428b1e
mov eax, dword [ebp - 0x2ac]
cmp byte [eax + 0xd], 0
jne 0x4271eb
cmp esi, dword [eax + 0x10]
jb 0x4271eb
cmp eax, dword [ebx]
jne 0x4271ed
xor esi, esi
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x58]
push eax
mov edx, esi
call fcn.00426fb9
mov eax, dword [ebp - 0x58]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x54]
pop ecx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x50]
push eax
call fcn.0040ada7
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00428b1e
mov esi, eax
lea edi, [ebp - 0x2a8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2a0]
cmp byte [ecx + 0xd], 0
jne 0x42725b
mov eax, dword [ebp - 0x38]
cmp eax, dword [ecx + 0x10]
jae 0x4272f1
cmp dword [ebx + 4], 0x4ec4ec4
je 0x427331
mov eax, dword [ebx]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x29c], ebx
mov byte [ebp - 4], 2
and dword [ebp - 0x298], 0
push 0x34
call fcn.00403796
mov esi, eax
lea eax, [ebp - 0x2c]
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x1c]
call fcn.0040a56a
lea edx, [ebp - 0x290]
mov ecx, esi
call fcn.004109fb
lea ecx, [esi + 4]
call fcn.004109fb
lea ecx, [esi + 8]
call fcn.004109fb
xor eax, eax
lea ecx, [ebp - 0x29c]
mov word [esi + 0xc], ax
mov dword [ebp - 0x298], eax
call fcn.00428ba8
push esi
push dword [ebp - 0x2a4]
mov ecx, ebx
push dword [ebp - 0x2a8]
call fcn.00410867
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0040acc1
mov esi, dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4271b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.0040acc1
xor eax, eax
inc eax
call fcn.0046493d
ret
call fcn.0040d974
int3
Function at 0x4277a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x4277b5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4277d0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4277d0
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret

Function at 0x4278a7
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], edx
push 0
push eax
mov esi, ecx
call fcn.0045e110
add esp, 0xc
or edi, 0xffffffff
test esi, esi
je 0x427a0e
push esi
call fcn.0043d5e8
pop ecx
test eax, eax
je 0x427a0e
push edi
push 0x47de58
or edx, edi
mov ecx, esi
call fcn.00426e30
mov ebx, eax
mov dword [ebp - 0x268], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x42791f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x427a02
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4279fb
mov ebx, esi
test byte [ebp - 0x25c], 0x10
je 0x427975
lea eax, [ebp - 0x230]
push 0x47de5c
push eax
call fcn.0043d3c5
pop ecx
pop ecx
test eax, eax
je 0x4279df
lea eax, [ebp - 0x230]
push 0x47c8e4
push eax
call fcn.0043d3c5
pop ecx
pop ecx
test eax, eax
je 0x4279df
lea eax, [ebp - 0x230]
or edx, 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00426e30
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4279df
test byte [ebp - 0x25c], 0x10
je 0x4279bc
mov ecx, esi
call fcn.004277a4
test eax, eax
jne 0x4279b3
mov edx, dword [ebp - 0x260]
mov ecx, esi
push eax
call fcn.004278a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4279d8
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push 0
push eax
push esi
call dword [0x46b4a4]
call dword [ebp - 0x260]
mov ecx, esi
call fcn.00426e04
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42793a
mov ebx, dword [ebp - 0x268]
mov ecx, ebx
call fcn.00426e04
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x427a18
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret
Function at 0x427a60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x408]
push edi
xor esi, esi
push esi
push eax
call fcn.0045e110
add esp, 0xc
cmp dword [0x491664], esi
je 0x427a9f
mov eax, dword [0x48eaec]
jmp 0x427b48
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x427b23
push 0x479170
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0043dbbb
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x479194
push edi
push eax
call fcn.0043dbbb
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0043dbbb
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x48eaf8], eax
call fcn.0042774d
xor edi, edi
inc edi
test eax, eax
je 0x427b3a
call fcn.00427605
test eax, eax
je 0x427b3a
mov esi, edi
mov dword [0x48eaec], esi
mov eax, esi
mov dword [0x491664], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a206
leave
ret

Function at 0x427b56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x427b9b
mov eax, dword [0x48eaf8]
cmp eax, 0xffffffff
je 0x427b9b
push edi
push 2
xor edi, edi
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push esi
call fcn.0043d5e8
pop ecx
add eax, eax
push eax
push esi
push dword [0x48eaf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
jmp 0x427b9d
xor eax, eax
pop esi
leave
ret