joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403f68
pop dword [ebp - 0x14]
mov eax, 0x3776a6f3
add eax, 0xc8c99875
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x189a3c18
add dword [ebp - 0x24], 0x35b80933
mov dword [ebp - 0x20], 0x93f0114e
sub dword [ebp - 0x20], 0x61bcc509
mov dword [ebp - 0x1c], 0xe5683d8b
sub dword [ebp - 0x1c], 0x991bf95d
mov dword [ebp - 0x18], 0x4d025639
sub dword [ebp - 0x18], 0x4d025639
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xf297934a
sub dword [ebp - 0x24], 0x7e2529f4
mov dword [ebp - 0x20], 0xe9592afc
sub dword [ebp - 0x20], 0xa7ecc987
mov dword [ebp - 0x1c], 0x32d1e910
add dword [ebp - 0x1c], 0x309d835c
mov dword [ebp - 0x18], 0xeb5517b7
sub dword [ebp - 0x18], 0xeb5517b7
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xe4609202
add eax, 0x1be03e4a
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3b304
push 0
call eax
mov ecx, 0x58a9b08b
sub ecx, 0x58a9622c
mov esi, eax
mov edi, 0xdf147c62
add edi, 0x212d339e
add edi, dword [ebp - 0x14]
mov edx, 0x6477e01f
add edx, 0xf0fc497c
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0xa2cc6cff
xor ebx, edx
add dword [ebp - 0x10], 0xb06dc053
mov dword [esi], ebx
add dword [ebp - 8], esi
add esi, 0xc10ae6ed
sub esi, 0xc10ae6e9
add edi, 0xb6cf4dee
sub edi, 0xb6cf4dea
loop 0x404085
add eax, 0xe21d4ff5
add eax, 0x1de3dc5a
mov ebx, eax
add eax, 0x85fc4a2e
add eax, 0x7a03b5d7
mov ecx, 0xc323277b
sub ecx, 0xc2e3277b
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4020e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x214], ebx
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.00409590
add esp, 0xc
mov dword [ebx], 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40214d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407987
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c
mov edx, 0x104
mov ebx, 0x80070057
push esi
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4021f6
mov ecx, edx
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x402181
add eax, 2
sub ecx, 1
jne 0x402173
mov eax, edx
mov edi, ecx
sub eax, ecx
neg edi
sbb edi, edi
xor esi, esi
and edi, eax
test ecx, ecx
mov eax, ebx
cmovne eax, esi
je 0x4021e8
mov esi, edx
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + edi*2]
sub esi, edi
je 0x4021d1
mov ebx, 0x4218a8
mov eax, 1
sub ebx, ecx
test eax, eax
je 0x4021cc
movzx edi, word [ebx + ecx]
test di, di
je 0x4021cc
mov word [ecx], di
dec eax
add ecx, 2
sub esi, 1
jne 0x4021b3
mov ebx, 0x80070057
test esi, esi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test esi, esi
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
test eax, eax
jne 0x40229f
mov edi, dword [ebp - 0x210]
mov ecx, edx
lea eax, [ebp - 0x20c]
nop
cmp word [eax], 0
je 0x40220e
add eax, 2
sub ecx, 1
jne 0x402200
mov eax, edx
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
xor eax, eax
test ecx, ecx
cmovne ebx, eax
je 0x402269
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x402250
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x402250
movzx esi, word [edi + ecx]
test si, si
je 0x402250
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x402237
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x8007007a
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
cmovne ebx, eax
test ebx, ebx
jne 0x40229d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
jne 0x40229d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407987
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00407987
mov esp, ebp
pop ebp
ret
Function at 0x402530
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a061
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401f60
mov ecx, eax
test ecx, ecx
je 0x4026de
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push dword [ebp - 0x24]
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4025fa
push 0x421934
mov ecx, edi
call fcn.004028a0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 4
mov byte [ebp - 4], bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4026c0
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
jmp 0x4026c0
inc eax
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00402950
mov dword [ebp - 4], 2
jmp 0x402632
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402640
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea ecx, [esi + 0xc]
cmp dword [ecx], 0
jl 0x402662
cmp edx, dword [esi]
jne 0x402662
mov eax, esi
lock inc dword [ecx]
jmp 0x402696
mov eax, dword [edx]
push 2
push dword [esi + 4]
mov ecx, edx
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x4026e8
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 4]
inc edx
lea eax, [esi + 0x10]
add ecx, 0x10
push edx
push eax
call fcn.00401990
add esp, 8
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
or ebx, 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4026c0
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407987
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020c0
call fcn.00401980
int3
Function at 0x402ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419f40
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b19
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b05
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402b52
nop dword [eax]
cmp esi, edx
jae 0x402b05
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402b40
cmp esi, edx
jae 0x402b05
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41179c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4117e7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041193b
test al, al
jne 0x4117e1
sub edx, 2
cmp edx, edi
jne 0x4117c7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x411809
lea eax, [edi + 2]
cmp edx, eax
je 0x411809
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004116e8
add esp, 0x10
jmp 0x411903
push esi
lea ecx, [ebp - 0x255]
call fcn.0041193b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41184c
push dword [ebp - 0x25c]
jmp 0x4117f9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x411889
cmp word [ebp - 0x226], 0
je 0x4118aa
cmp word [ebp - 0x226], ax
jne 0x411889
cmp word [ebp - 0x224], 0
je 0x4118aa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004116e8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4118f6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x411863
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4118de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411903
push 0x411518
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00415ba0
add esp, 0x10
jmp 0x4118d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407987
leave
ret

Function at 0x4125eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e12c
push 0x41e124
push str.FlsAlloc
push 0x1e
call fcn.00412528
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41261f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b17c]
call esi
jmp 0x412625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e13c
push 0x41e134
push str.FlsGetValue
push 0x20
call fcn.00412528
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4126a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x405470
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x405531
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40551b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4fa900
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x405531
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00478070
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00405600
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00493051
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x405591
cmp eax, 0x207
ja 0x405591
jne 0x405598
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4055a1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x4085f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0046b4e0
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x408620
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00478070
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00494332
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4088c3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088c3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086e3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4088c3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00478070
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00478070
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x4fac6c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408764
test al, 1
je 0x408764
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x4088a9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40889d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x408818
cmp word [ebp - 0x638], 0x2e
jne 0x4087d7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x408882
cmp ax, 0x2e
jne 0x4087d7
cmp word [ebp - 0x634], 0
je 0x408882
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.004086b0
add esp, 4
jmp 0x408880
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40886f
test al, 1
je 0x40886f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4087a0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x409140
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc66
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40917c
xor eax, eax
jmp 0x409382
cmp word [ebx], 0
je 0x409175
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409187
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x409175
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4facec
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4091e2
test al, 1
je 0x4091e2
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00408940
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x409332
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x409291
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x409291
cmp word [ebp - 0x858], 0x2e
jne 0x409291
mov ax, word [ebp - 0x856]
test ax, ax
je 0x40926c
cmp ax, 0x2e
jne 0x409291
cmp word [ebp - 0x854], 0
jne 0x409291
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40939e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x409324
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00408b30
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x4092cc
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x4092cc
mov esi, dword [ebp - 0x888]
push esi
call fcn.00409140
jmp 0x4092d8
mov esi, dword [ebp - 0x888]
push esi
call fcn.004090d0
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x4092e9
xor edi, edi
jmp 0x409308
cmp dword [ebp - 0x424], 0
jne 0x4092f6
xor edi, edi
jmp 0x409308
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409324
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x409229
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x409358
cmp eax, 0xffffffff
je 0x409358
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.004085f0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x40937d
cmp eax, 0xffffffff
je 0x40937d
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x409358
Function at 0x409970
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push esi
and eax, 0x8000000f
jns 0x40998b
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x409aea
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409aea
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409ae3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409ae3
cmp dword [ebp - 0x10], 0
jg 0x409ae3
jl 0x4099f4
cmp eax, 0x1000000
ja 0x409ae3
push edi
push 0x1000000
call fcn.0046b0c1
add esp, 4
mov dword [ebp + 0x14], 0
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ac7
cmp dword [ebp + 0x14], 0
je 0x409ac7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.00409710
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409a99
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x409aaf
call ebx
push 1
push esi
call fcn.0046b0b3
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call ebx
push 1
push esi
call fcn.0046b0b3
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 1
push edi
call fcn.0046b0b3
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b0e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00478070
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.360WallPaperInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x40b1c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b194
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4fad98
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x40b182
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x40b1b2
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x40b1bf
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.0040abd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b078
mov esp, ebp
pop ebp
ret