joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031aa
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x465f72
call fcn.0043d989
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4c9878
push 1
push 0
push 0x4c9e88
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4032c5
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
and dword [ebp - 0x18], 0
push edx
push 0x4c9e78
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x4032bc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004147f9
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x403242
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
call fcn.004147f9
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041485c
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041485c
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004147f9
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 4], 2
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041485c
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004147f9
mov ecx, dword [ebp - 0x18]
push 1
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.0041485c
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
shr ebx, 0x1f
xor bl, 1
invalid

Function at 0x403645
Capabilities:
Persist via run registry key

Disassembly:
push str.Spotify_Web_Helper
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004148a5
add esp, 0xc
ret
Function at 0x4037d5
Capabilities:
Check http status code
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4024
call fcn.0043da70
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x32
pop edi
push ebx
push ebx
mov dword [ebp - 0x401c], eax
xor eax, eax
push ebx
inc eax
push ebx
push str.SpotifyInstaller_1.0
mov dword [ebp - 0x4018], eax
mov byte [0x4e6138], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4024], eax
test eax, eax
jne 0x403832
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4039a4
push ebx
push 0x80000200
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x403856
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x34
pop edi
jmp 0x403998
and dword [ebp - 0x4010], 0
lea eax, [ebp - 0x4008]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000005
push ebx
call esi
and dword [ebp - 0x4014], 0
lea eax, [ebp - 0x4008]
push 0
push eax
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000013
push ebx
call esi
cmp dword [ebp - 0x4014], 0xc8
je 0x4038c1
push 0x33
jmp 0x403990
mov eax, dword [ebp - 0x4010]
xor esi, esi
mov dword [0x4e6134], eax
mov dword [0x4e6130], 0
jmp 0x403981
push 0x4e6118
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4e6118
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x400c]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4039d3
cmp byte [ebp - 0x4018], 0
mov eax, dword [ebp - 0x400c]
je 0x403942
mov byte [ebp - 0x4018], 0
cmp eax, 2
jb 0x403942
cmp byte [ebp - 0x4004], 0x4d
jne 0x4039b5
cmp byte [ebp - 0x4003], 0x5a
jne 0x4039b5
test eax, eax
je 0x4039c3
push 0
lea ecx, [ebp - 0x4020]
push ecx
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x401c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4039b9
mov eax, dword [ebp - 0x400c]
cmp dword [ebp - 0x4020], eax
jne 0x4039bf
add dword [0x4e6130], eax
add esi, dword [ebp - 0x400c]
cmp byte [0x4e6114], 0
je 0x4038dd
push 0x13
pop edi
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4024]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d949
leave
ret
push 0x36
jmp 0x403990
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
jmp 0x403990
xor eax, eax
cmp esi, dword [ebp - 0x4010]
push 0x36
pop edi
cmove edi, eax
jmp 0x403991
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403991
Function at 0x403b3c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x403b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403b6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b76
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403b74
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x404870
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x4662bc
call fcn.0043d989
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00440d00
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00440d00
mov edi, dword [ebp + 0x14]
add esp, 0x18
test edi, edi
je 0x4048a2
mov dword [edi], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004147f9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004147f9
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
test esi, esi
mov byte [ebp - 4], 1
mov eax, 0x46b5a3
cmovne eax, esi
push eax
call fcn.004147f9
xor eax, eax
mov dword [ebp - 0x6c], 0x44
lea ecx, [ebp - 0x28]
test esi, esi
push ecx
cmovne eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40491f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x404913
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
jmp 0x404918
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0041485c
lea ecx, [ebp - 0x14]
call fcn.0041485c
lea ecx, [ebp - 0x18]
call fcn.0041485c
mov al, bl
call fcn.0043d957
ret
Function at 0x40493f
Capabilities:
Create http request

Disassembly:
push 0x2ec
mov eax, 0x46632b
call fcn.0043d9bc
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x2e8], ebx
push ecx
push eax
mov dword [ebp - 0x2e4], 0x4e0010
call fcn.00414f0e
add esp, 0xc
test al, al
jne 0x40499e
mov ebx, dword [ebp - 0x2e8]
jmp 0x404c97
lea eax, [ebp - 0x2f4]
push eax
call fcn.004035d8
mov dword [ebp - 0x2d0], eax
pop ecx
test eax, eax
jne 0x4049bd
push 4
pop ebx
jmp 0x404c97
push eax
lea ecx, [ebp - 0x250]
call fcn.004024ee
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x2d1]
cmovae ecx, dword [ebp - 0x250]
add eax, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
push edx
cmovae ecx, dword [ebp - 0x250]
push eax
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.004018eb
push eax
mov byte [ebp - 4], 2
call fcn.004064ee
pop ecx
lea ecx, [ebp - 0x2b0]
call fcn.00405276
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00405250
call fcn.004036b0
mov ebx, eax
push ebx
push 0x46b5a3
call fcn.00415def
push ebx
call fcn.00415d95
and dword [ebp - 0x2d8], 0
add esp, 0xc
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push str.SpWebInst_d.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.00415fb7
mov esi, eax
mov dword [ebp - 0x2dc], esi
push esi
mov byte [ebp - 4], 3
call fcn.00415f24
add esp, 0x18
test al, al
je 0x404ab6
push esi
call fcn.00415eb4
push esi
call fcn.00415f24
pop ecx
pop ecx
test al, al
je 0x404ab6
push esi
mov byte [ebp - 4], 0
call fcn.0044303b
inc edi
pop ecx
cmp edi, 0xa
jl 0x404a59
push 0xd
jmp 0x4049b7
xor ebx, ebx
jmp 0x404c6a
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404d7c
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x280]
call fcn.004024ee
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00417343
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x404b17
mov eax, dword [eax]
push edi
push eax
call fcn.004037d5
pop ecx
pop ecx
lea ecx, [ebp - 0x2c8]
mov ebx, eax
call fcn.00405250
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00405250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x34
invalid
invalid
Function at 0x405a1e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0043da70
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
push 0x10
sbb al, al
and byte [ebp - 0x1004], al
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004044b3
dec eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00403b79
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.0043d949
leave
ret 0x10

Function at 0x405ac3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4e6140], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e6148], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x40635a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
Function at 0x413923
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x467af2
call fcn.0043d9bc
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41393c
xor al, al
jmp 0x4139b3
push str.SpotifyWindowHandle
lea ecx, [ebp - 0x40]
call fcn.004024ee
push esi
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.0041381d
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00405250
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x4139a9
push 4
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4139a2
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00405250
mov al, bl
call fcn.0043d96b
ret 4

Function at 0x413c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
push 0x100000
push edi
mov dword [ebp - 0x1c], eax
call fcn.00414292
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413d05
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x413ceb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413d05
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x413d57
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, ecx
jne 0x413cb1
push 1
push edi
call fcn.00414292
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413d46
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d949
leave
ret
mov al, 1
jmp 0x413d48
Function at 0x4148a5
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x467c22
call fcn.0043d989
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004147f9
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004147f9
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 2
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], ebx
je 0x414903
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.0043d944
push dword [ebp - 0x18]
call fcn.0043d944
pop ecx
pop ecx
mov al, bl
call fcn.0043d957
ret

Function at 0x4151a7
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x467d3e
call fcn.0043d9bc
lea eax, [ebp - 0x28]
push eax
call fcn.0041510c
lea eax, [ebp - 0x28]
xor esi, esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push eax
call fcn.0041447c
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4151d9
mov eax, dword [eax]
push 5
push esi
push esi
push eax
push 0x46c2ac
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
call fcn.00405276
lea ecx, [ebp - 0x28]
call fcn.00405250
call fcn.0043d96b
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x415f5e
xor al, al
jmp 0x415f71
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d949
leave
ret
Function at 0x416043
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x416084
push 0xa
pop eax
jmp 0x4160fe
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4160bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x4160fd
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4160e6
cmp dword [ebp - 0x210], edi
jne 0x4160e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4160fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043d949
leave
ret
Function at 0x41ab20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
xor esi, esi
and edx, 7
cmp eax, 5
jae 0x41ab40
xor eax, eax
jmp 0x41ac97
add dword [ebp + 0x10], 5
or ecx, 0xffffffff
push ebx
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi - 4]
add ebx, eax
mov dword [ebp - 0xc], ebx
add edi, esi
mov dword [ebp + 0xc], edi
cmp edi, ebx
jae 0x41ab6d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41ab6a
inc edi
cmp edi, ebx
jb 0x41ab5d
mov dword [ebp + 0xc], edi
mov esi, edi
sub esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
cmp edi, ebx
jae 0x41ac7e
cmp eax, 3
jbe 0x41aba5
xor edx, edx
mov al, byte [edi + 4]
mov ecx, esi
mov dword [ebp - 8], ecx
test al, al
je 0x41abe1
cmp al, 0xff
je 0x41abe1
and edx, 3
xor eax, eax
add edx, edx
or edx, 1
inc eax
jmp 0x41ac77
lea ecx, [eax - 1]
shl edx, cl
and edx, 7
je 0x41ab85
cmp byte [edx + 0x4c93ec], 0
je 0x41abce
movzx eax, byte [edx + 0x4c93f4]
mov ecx, edi
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41abce
cmp al, 0xff
jne 0x41ab85
and edx, 3
mov ecx, esi
add edx, edx
or edx, 1
inc esi
mov edi, dword [ebp + 8]
jmp 0x41ab54
movzx ecx, al
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x41ac0f
lea ebx, [ecx + esi]
add ebx, edi
jmp 0x41ac15
mov ebx, ecx
sub ebx, esi
sub ebx, edi
test edx, edx
je 0x41ac4c
movzx eax, byte [edx + 0x4c93f4]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41ac37
cmp al, 0xff
jne 0x41ac4c
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 4]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 4], eax
dec ecx
xor ecx, ebx
jmp 0x41ac02
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 8]
shr eax, 0x18
and al, 1
neg al
mov byte [edi + 1], bl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
push 5
mov byte [edi + 2], al
pop eax
add esi, eax
jmp 0x41abd9
lea ecx, [eax - 1]
shl edx, cl
xor ecx, ecx
and edx, 7
cmp eax, 3
mov eax, dword [ebp + 0x14]
cmova edx, ecx
pop edi
pop ebx
mov dword [eax], edx
mov eax, esi
pop esi
leave
ret
Function at 0x41fc91
Capabilities:
Check if file exists

Disassembly:
push 0x28c
mov eax, 0x468972
call fcn.0043d9bc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x298], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00402578
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41fd12
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x41fd0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x41fd0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x41fd12
mov eax, 0x4c8fa0
jmp 0x41fd17
mov eax, 0x4c9744
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a98f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x294]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x41fd6a
and dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41fd59
cmp eax, 0x12
jne 0x41fd5b
xor eax, eax
push 0x4e00a0
push eax
mov ecx, esi
call fcn.0041d81e
jmp 0x41fddf
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x264]
push eax
call fcn.0041fb8f
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x41fd91
xor eax, eax
mov dword [edi], eax
mov dword [ebx], eax
jmp 0x41fdd7
and eax, 0x10
lea ecx, [ebp - 0x40]
or eax, 0x20
shr eax, 4
mov dword [edi], eax
mov dword [ebx], eax
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.0040188d
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0042077f
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
mov dword [edi + 4], eax
call fcn.00405276
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ecx, [ebp - 0x28]
call fcn.00405276
mov eax, esi
call fcn.0043d96b
ret
Function at 0x421072
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x5c
mov eax, 0x468b8f
call fcn.0043d9bc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4210a7
mov edi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x64]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4210b1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4210d1
push dword [ebp - 0x60]
push edi
push ebx
call fcn.00420fc9
add esp, 0xc
jmp 0x4211af
push esi
push edi
call fcn.0042077f
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x42118c
push edi
call fcn.00420ef8
pop ecx
test al, al
jne 0x421107
mov eax, dword [ebp - 0x64]
mov dword [ebx], 9
mov dword [ebx + 4], eax
jmp 0x4211af
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x421111
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x28]
call fcn.004025ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push 0x2000000
push 3
push ecx
push 7
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405276
cmp esi, 0xffffffff
je 0x4210bf
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x421179
push dword [ebp - 0x60]
push edi
push ebx
call fcn.00420fc9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4211af
mov eax, dword [ebp - 0x5c]
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x421196
mov edx, dword [ebp - 0x68]
jmp 0x42119b
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [ebx], eax
cmove ecx, edx
mov dword [ebx + 4], ecx
mov eax, ebx
call fcn.0043d96b
ret