joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e12
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 8]
xor esi, esi
cmp dword [ebx], esi
mov dword [ebp - 8], edi
jne 0x407e8f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebx], eax
jne 0x407e4b
mov dword [ebp - 8], esi
call fcn.0040d85c
push eax
push 0x402554
jmp 0x407e73
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x4077e2
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x407e88
mov dword [ebp - 8], esi
call fcn.0040d85c
push eax
push 0x402514
push 1
lea eax, [ebp - 8]
push 6
push eax
call fcn.0040d007
add esp, 0x14
jmp 0x407fa4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x402490
push 4
lea eax, [ebp - 4]
push 6
push eax
mov dword [ebp - 4], esi
call fcn.0040d007
xor edi, edi
add esp, 0x10
inc edi
jmp 0x407f30
cmp dword [ebp - 0x24], 0x12
je 0x407f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
je 0x407ed0
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0x18]
test eax, eax
jne 0x407f30
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
cmp eax, esi
je 0x407f1c
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jl 0x407f03
cmp dword [ebp - 4], esi
je 0x407f1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x407f30
jmp 0x407f1c
push eax
push 0x402428
push 2
lea eax, [ebp - 0xc]
push 6
push eax
mov dword [ebp - 0xc], edi
call fcn.0040d007
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x407eaf
push 0x4ff
push 0xffffffffffffffff
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x407f83
cmp eax, esi
jne 0x407f30
mov ecx, dword [ebp - 8]
call fcn.00407294
jmp 0x407f30
push 0x4023fc
push 3
lea eax, [ebp - 0xc]
push 6
push eax
mov dword [ebp - 0xc], edi
call fcn.0040d007
add esp, 0x10
jmp 0x407fa4
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
lea eax, [ebp - 0xc]
push 0x402390
push 2
push 6
push eax
call fcn.0040d007
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409008
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
push esi
mov esi, dword [ebp + 8]
cmp esi, ecx
mov dword [ebp - 4], ecx
je 0x40905f
test ecx, ecx
je 0x409028
call fcn.004090ab
cmp dword [esi + 4], 0
jne 0x409038
push dword [ebx + 4]
mov ecx, esi
call fcn.004106d2
push edi
mov ecx, esi
call fcn.0040906a
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi + 4]
call edi
mov eax, dword [ebp - 4]
test eax, eax
mov dword [ebx + 0x28], esi
je 0x40905e
push 0
push dword [eax + 4]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40bad5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x403b40
call fcn.0040bd88
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40bb10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bb10
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40bb28
cmp eax, 0x20b
je 0x40bb15
mov dword [ebp - 0x1c], edi
jmp 0x40bb3c
cmp dword [ecx + 0x84], 0xe
jbe 0x40bb10
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40bb36
cmp dword [ecx + 0x74], 0xe
jbe 0x40bb10
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x414814], 0xffffffff
or dword [0x414818], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4141e0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4141dc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41481c], eax
call fcn.0040bd30
cmp dword [0x414040], edi
jne 0x40bb99
push fcn.0040bd30
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040bd19
push 0x41401c
push 0x414018
call sub.msvcrt.dll__initterm
mov eax, dword [0x4141d8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4141d4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x414014
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40bbff
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40bcb9
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x40bc4d
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x40bc1b
cmp ax, 0x22
jne 0x40bc08
cmp word [esi], 0x22
jne 0x40bc26
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x40bc34
cmp ax, 0x20
jbe 0x40bc21
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x40bc5a
movzx eax, word [ebp - 0x50]
jmp 0x40bc5d
cmp word [esi], 0x20
jbe 0x40bc26
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x40bc4d
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40bc7e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40bcb3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040bdc3
ret
Function at 0x40c66d
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xc], esi
je 0x40c783
push edi
xor edi, edi
inc edi
test byte [ebx + 8], 4
je 0x40c691
push 3
pop edi
call fcn.0040c5a7
test eax, eax
je 0x40c782
push esi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, edi
imul ecx, ecx, 0x61a80
cmp eax, ecx
mov dword [ebp - 8], eax
jbe 0x40c772
push esi
push esi
push esi
push 4
push esi
push dword [ebx + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x40c772
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40c748
mov eax, dword [ebp - 8]
add eax, esi
xor ecx, ecx
cmp esi, eax
mov edx, esi
jae 0x40c702
cmp byte [edx], 0xa
jne 0x40c6fd
inc ecx
inc edx
cmp edx, eax
jb 0x40c6f7
mov edx, edi
imul edx, edx, 0x1770
cmp ecx, edx
jle 0x40c73c
imul edi, edi, 0xfa0
sub ecx, edi
cmp esi, eax
mov edx, esi
jae 0x40c72b
cmp byte [edx], 0xa
jne 0x40c722
dec ecx
inc edx
test ecx, ecx
jle 0x40c72b
cmp edx, eax
jb 0x40c71c
sub eax, edx
mov edi, eax
push edi
push edx
push esi
call sub.msvcrt.dll_memmove
add esp, 0xc
jmp 0x40c73f
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x40c74b
mov edi, dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebp - 8]
je 0x40c770
push 0
push 0
push edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor esi, esi
mov eax, dword [0x4141ec]
cmp eax, esi
je 0x40c782
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cb92
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x414034]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 9
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040decb
cmp eax, edi
jl 0x40cd2b
push dword [ebp - 0x214]
mov esi, 0x100
push dword [0x4141f0]
lea eax, [ebp - 0x20c]
push 0x404464
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040cb1d
add esp, 0x20
cmp eax, edi
jl 0x40cd2b
test dword [0x4141f8], 4
je 0x40cceb
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x40ccb8
push esi
push edi
push edi
push 0x403cf8
push 0x202
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.0040c7c4
cmp eax, edi
jl 0x40cd2b
lea eax, [ebp - 0x208]
push eax
push 0x40445c
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040cb1d
add esp, 0x1c
cmp eax, edi
jl 0x40cd2b
test dword [0x4141f8], 8
je 0x40cd27
mov eax, dword [ebp - 0x218]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x40445c
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040cb1d
add esp, 0x1c
cmp eax, edi
jge 0x40cd32
cmp eax, 0x8007007a
jne 0x40cd48
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x21c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040b9bd
leave
ret 0x10
Function at 0x40d066
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x414034]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov edi, ecx
push esi
lea ecx, [ebp - 0x404]
push 0xfde9
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x40c], ecx
call ebx
cmp eax, 0x400
mov dword [ebp - 0x414], eax
jbe 0x40d0e4
push eax
call fcn.0040d38c
cmp eax, esi
pop ecx
mov dword [ebp - 0x40c], eax
jne 0x40d0e4
mov dword [ebp - 0x408], 0x8007000e
jmp 0x40d19a
push esi
push esi
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push dword [ebp - 0x410]
push esi
push 0xfde9
call ebx
cmp dword [edi + 0xc], 0xffffffff
je 0x40d19a
call fcn.0040c5a7
test eax, eax
jne 0x40d122
mov dword [ebp - 0x408], 0x8000ffff
jmp 0x40d19a
push 2
push esi
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40d141
call fcn.0040d85c
mov dword [ebp - 0x408], eax
jmp 0x40d18a
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d134
test dword [edi + 8], 8
je 0x40d174
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
inc dword [edi + 0x10]
cmp dword [edi + 0x10], 0x12c
jb 0x40d18a
mov ecx, edi
call fcn.0040c66d
mov dword [edi + 0x10], esi
mov eax, dword [0x4141ec]
cmp eax, esi
je 0x40d19a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x40c], eax
je 0x40d1d6
push dword [ebp - 0x40c]
call fcn.0040d41d
mov dword [esp], 0x404488
push 2
lea eax, [ebp - 0x410]
push esi
push eax
mov dword [ebp - 0x410], 1
call fcn.0040d007
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
pop ebx
call fcn.0040b9bd
leave
ret 8

Function at 0x40d7ef
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x414034]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d84b
xor eax, eax
inc eax
cmp dword [ebp - 0x11c], 5
ja 0x40d84d
jne 0x40d84b
cmp dword [ebp - 0x118], 2
ja 0x40d84d
jne 0x40d83c
cmp word [ebp - 0xc], ax
jae 0x40d84d
cmp dword [ebp - 0x118], eax
jne 0x40d84b
cmp word [ebp - 0xc], 2
jae 0x40d84d
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0040b9bd
leave
ret
Function at 0x40e0dd
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call fcn.0040e66e
mov ebx, eax
cmp ebx, esi
jl 0x40e1a9
push edi
lea eax, [ebp - 4]
push eax
push 1
mov edi, 0x404d94
push edi
mov dword [ebp - 4], esi
call fcn.0040e005
mov ebx, eax
cmp ebx, esi
jl 0x40e199
or byte [ebp + 0x17], 0x80
cmp dword [ebp + 0xc], esi
mov ecx, 0x404ed4
jne 0x40e12d
mov ecx, 0x404eb8
cmp dword [ebp + 0x10], esi
mov eax, 0x404ea8
jne 0x40e13c
mov eax, 0x404e90
push ecx
push eax
push 0x404e48
push 3
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0040d007
add esp, 0x18
cmp dword [ebp + 0xc], esi
je 0x40e16f
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x40e184
cmp dword [ebp + 0x10], esi
push 2
pop eax
je 0x40e17a
push 6
pop eax
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40e18f
call fcn.0040d85c
mov ebx, eax
push esi
push dword [ebp - 4]
push edi
call fcn.0040e005
cmp dword [ebp - 8], esi
pop edi
je 0x40e1a5
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp ebx, esi
jge 0x40e1c3
push ebx
push 0x404e00
push 2
lea eax, [ebp + 0x14]
push esi
push eax
mov dword [ebp + 0x14], esi
call fcn.0040d007
add esp, 0x14
jmp 0x40e1da
push 0x404dc0
push 2
lea eax, [ebp + 0x14]
push esi
push eax
mov dword [ebp + 0x14], esi
call fcn.0040d007
add esp, 0x10
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40e6f3
mov esi, 0x80004003
jmp 0x40e708
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e708
call fcn.0040d85c
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40e714
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e73e
test al, 0x10
jne 0x40e7c8
mov ebx, 0x80070057
jmp 0x40e7c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x40e762
cmp eax, 2
je 0x40e762
test eax, eax
jg 0x40e756
mov ebx, eax
jmp 0x40e7c8
and eax, 0xffff
or eax, 0x80070000
jmp 0x40e752
mov eax, dword [ebp + 0xc]
push esi
lea esi, [edi + eax*2]
jmp 0x40e778
cmp word [esi], 0x5c
je 0x40e77c
test eax, eax
jbe 0x40e77e
dec esi
dec esi
dec eax
cmp esi, edi
ja 0x40e76b
test eax, eax
je 0x40e7c2
cmp esi, edi
je 0x40e7c2
cmp eax, 2
jbe 0x40e79f
and word [esi], 0
push eax
push edi
call fcn.0040e714
mov ebx, eax
test ebx, ebx
mov word [esi], 0x5c
jl 0x40e7c7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e7c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e7c7
call fcn.0040d85c
mov ebx, eax
jmp 0x40e7c7
mov ebx, 0x80070057
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x40e9cf
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], esi
je 0x40eac2
mov ax, word [ebx]
cmp ax, 0x61
jb 0x40e9f7
cmp ax, 0x7a
jbe 0x40ea0b
cmp ax, 0x41
jb 0x40eac2
cmp ax, 0x5a
ja 0x40eac2
cmp word [ebx + 2], 0x3a
jne 0x40eac2
cmp word [ebx + 4], 0x5c
jne 0x40eac2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40eac9
cmp eax, 3
je 0x40ea5e
cmp eax, 0xb7
je 0x40eac9
test eax, eax
jg 0x40ea52
mov dword [ebp - 4], eax
jmp 0x40eac9
and eax, 0xffff
or eax, 0x80070000
jmp 0x40ea4d
push ebx
call sub.msvcrt.dll_wcslen
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.0040d38c
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x40ea81
mov dword [ebp - 4], 0x8007000e
jmp 0x40eac9
push ebx
lea eax, [edi + 1]
push eax
push esi
call fcn.0040e9ad
mov bx, word [esi + 6]
and word [esi + 6], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40eab5
mov dword [ebp - 4], 0x80070003
jmp 0x40eac9
push edi
push esi
mov word [esi + 6], bx
call fcn.0040e714
jmp 0x40ea4d
mov dword [ebp - 4], 0x80070057
push esi
call fcn.0040d41d
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ef7f
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x414034]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x104], eax
call fcn.0040d5cf
push 0xb
pop ecx
mov esi, 0x40508c
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 0x32
pop ecx
push ebx
push ebx
push 3
movsb byte es:[edi], byte [esi]
push ebx
xor eax, eax
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
push 5
push 0x80000000
push dword [ebp - 0x104]
mov dword [ebp - 0x108], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x104], edi
je 0x40f0db
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f0cf
cmp esi, 0xc8
ja 0x40f0cf
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x100]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f0cf
cmp dword [ebp - 0x108], esi
jne 0x40f0cf
push 0x2c
pop ecx
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x100]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40f058
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40f0cf
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.0040e957
mov esi, eax
push 1
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040d590
push ebx
push esi
lea ecx, [ebp - 0xd4]
push ecx
push eax
call fcn.0040e8db
cmp eax, ebx
je 0x40f0cf
push ebx
lea ecx, [ebp - 0x110]
push ecx
push eax
call fcn.0040db9c
test eax, eax
jl 0x40f0cf
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040dacf
cmp eax, ebx
jl 0x40f0cf
cmp eax, 0x127500
ja 0x40f0cf
xor ebx, ebx
inc ebx
push dword [ebp - 0x104]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x12c]
call fcn.0040eb1f
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0040b9bd
leave
ret 4
Function at 0x40f134
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x414034]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], eax
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x62c], edi
call fcn.0040d5cf
cmp dword [0x414804], edi
jne 0x40f285
cmp esi, edi
je 0x40f285
push edi
push 0x403b3c
mov esi, 0x105
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.0040f2ab
test eax, eax
jl 0x40f285
push ebx
mov ebx, 0x100
push ebx
push edi
push edi
lea eax, [ebp - 0x628]
push eax
mov edi, 0x20a
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0040c7c4
test eax, eax
jl 0x40f284
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x630]
lea eax, [ebp - 0x210]
push edi
push esi
push eax
call fcn.0040eddb
test eax, eax
jl 0x40f284
lea eax, [ebp - 0x210]
push eax
call fcn.0040e6df
test eax, eax
jl 0x40f284
xor edi, edi
inc edi
push edi
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.00411f53
test eax, eax
jl 0x40f284
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x4050bc
lea eax, [ebp - 0x210]
push eax
call fcn.0040eadf
test eax, eax
jl 0x40f284
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040e81a
test eax, eax
jl 0x40f284
push dword [ebp - 0x62c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040ec53
test eax, eax
jl 0x40f284
lea eax, [ebp - 0x41c]
push eax
call fcn.0040ef7f
mov dword [0x414800], eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x414804], edi
pop ebx
mov esi, dword [0x414800]
lea ecx, [ebp - 0x644]
call fcn.0040eb1f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0040b9bd
leave
ret 4
Function at 0x40f2ab
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp ebx, ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
jne 0x40f2cd
mov edi, 0x80070057
jmp 0x40f3d9
mov eax, dword [ebp + 0x14]
cmp eax, ecx
je 0x40f2d6
mov dword [eax], ecx
mov edi, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, eax
test esi, esi
jne 0x40f2f4
call fcn.0040d85c
mov edi, eax
jmp 0x40f3d8
cmp dword [ebp + 0x10], 0
jne 0x40f300
and dword [ebp + 8], 0
jmp 0x40f318
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
cmp word [eax], 0x5c
je 0x40f318
inc dword [ebp + 8]
cmp esi, edi
ja 0x40f3bc
mov eax, dword [ebp + 8]
lea eax, [eax + esi + 0x16]
cmp eax, edi
ja 0x40f3bc
lea eax, [ebx + esi*2]
cmp word [eax - 2], 0x5c
jne 0x40f341
dec esi
lea eax, [ebx + esi*2]
and word [eax], 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x405110
sub edi, esi
push edi
push eax
call fcn.0040bdfd
mov edi, eax
test edi, edi
jl 0x40f3d8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f37c
call fcn.0040d85c
cmp eax, 0x800700b7
jne 0x40f2ed
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f3aa
cmp word [eax], 0x5c
je 0x40f398
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 2
dec dword [ebp - 8]
mov word [ecx], 0x5c
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040e9ad
mov edi, eax
test edi, edi
jl 0x40f3d8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40f3d8
mov ecx, dword [ebp + 8]
lea ecx, [ecx + esi + 0x15]
mov dword [eax], ecx
jmp 0x40f3d8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40f3d3
cmp esi, edi
mov eax, dword [ebp + 8]
lea eax, [eax + esi + 0x16]
mov dword [ecx], eax
jbe 0x40f3d3
dec eax
mov dword [ecx], eax
mov edi, 0x8007007a
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0x10

Function at 0x40f97a
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x405168
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40f9e5
push ebx
push 0
push 0x40514c
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
test ebx, ebx
je 0x40f9e4
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x20]
push eax
push ebx
call esi
cmp dword [ebp + 0xc], 0
pop esi
je 0x40f9d1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
jmp 0x40f9d8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
pop ebx
leave
ret 8