joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a640
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x40a671
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
push edi
push 0
push 2
mov dword [ebp - 0x234], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, 0xffffffff
je 0x40a772
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004690e0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a6d9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40a6e8
mov esi, dword [ebp - 0x238]
push esi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a75b
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a75b
push 0
push esi
call ebx
push 0x64
push esi
mov dword [ebp - 0x234], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a74e
mov edi, edi
inc edi
cmp edi, 0xa
jg 0x40a74e
push 0
push esi
call ebx
push 0x64
push esi
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a730
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a6e2
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
xor ecx, ebp
pop esi
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40a790
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea ecx, [ebp - 0x120]
push esi
push ecx
call fcn.004690e0
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a82a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x40a8f7
mov eax, dword [ebp - 0x11c]
sub eax, 5
je 0x40a8b7
mov ecx, 1
sub eax, ecx
jne 0x40a8f7
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x40a879
cmp byte [ebp - 6], cl
jne 0x40a8f7
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jne 0x40a898
cmp byte [ebp - 6], cl
jne 0x40a8f7
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a8f7
cmp byte [ebp - 6], cl
jne 0x40a8f7
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x40a8e8
cmp byte [ebp - 6], 1
jne 0x40a8f7
cmp word [ebp - 0x144], 9
jne 0x40a8f7
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp eax, ecx
je 0x40a8d2
test eax, eax
jne 0x40a8f7
mov esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004657f5
mov esp, ebp
pop ebp
ret

Function at 0x40a980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x40a9a4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [esi + esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00464d4a
add esp, 4
xor ecx, ecx
test esi, esi
je 0x40aa26
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x62613938
mov dword [ebp - 8], 0x66656463
mov dword [ebp - 0x24], 0x33323130
mov dword [ebp - 0x20], 0x37363534
mov dword [ebp - 0x1c], 0x62613938
mov dword [ebp - 0x18], 0x66656463
nop
movzx edx, byte [ecx + edi]
shr edx, 4
movzx edx, byte [ebp + edx - 0x14]
mov word [eax + ecx*4], dx
movzx edx, byte [ecx + edi]
and edx, 0xf
movzx edx, byte [ebp + edx - 0x24]
mov word [eax + ecx*4 + 2], dx
inc ecx
cmp ecx, esi
jb 0x40aa00
xor ecx, ecx
mov dword [eax + esi*4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40b330
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x4ba1f0]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x40b369
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi], ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
mov dword [esi + 4], edx
mov eax, 1
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40bd50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 8
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bd9d
lea eax, [ebp - 0x434]
push eax
push esi
mov dword [ebp - 0x434], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x40bdb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.004667fc
add esp, 8
test eax, eax
je 0x40bdda
lea edx, [ebp - 0x434]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x40bdb0
jmp 0x40bddf
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40c0e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x40c14a
push esi
call fcn.00464d4a
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, eax
mov eax, dword [ecx]
push edi
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40c16d
push edi
call fcn.00466c21
add esp, 4
mov esi, dword [ebp + 8]
push 0x49bc04
mov ecx, esi
call fcn.00402390
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
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
movzx ecx, word [eax + 2]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
shl esi, 0x10
or esi, ecx
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov edx, dword [ecx]
push edx
push esi
lea eax, [ebp + 0xc]
push str.StringFileInfo_08lx_s
push eax
call fcn.0040e410
mov esi, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40c1f8
push edi
call fcn.00466c21
mov edi, dword [ebp + 8]
add esp, 4
push 0x49bc04
mov ecx, edi
call fcn.00402390
jmp 0x40c241
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402390
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401d20
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x40c330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483c58
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x4ba1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.004690e0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x68], 0x44
cmp dword [eax - 4], 1
jle 0x40c39b
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004020c0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c3cc
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c3d6
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x40c633
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov eax, 2
lea ecx, [ebp - 4]
mov edx, esi
call fcn.0040da40
mov ebx, dword [ebp - 4]
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40c673
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c66a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x40c689
mov esi, 1
jmp 0x40c69b
mov ecx, dword [esi]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, dword [esi]
push esi
call edi
mov esi, eax
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004690e0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x40c99c
push ebx
call fcn.0040cc10
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
call fcn.0040ca30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004657f5
mov esp, ebp
pop ebp
ret

Function at 0x40c9b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004690e0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x40ca18
call fcn.0040d230
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
call fcn.0040d040
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40ca30
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push 0x49981c
xor edi, edi
push 1
push edi
push 0x49983c
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.FsLibraryLogonUpdate
push eax
call edx
mov esi, eax
cmp esi, edi
jge 0x40ca93
cmp esi, 0x80070002
jne 0x40cbb3
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x49980c
push 0x49982c
push str.FsLibraryLogonUpdate
push eax
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push ebx
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push str.logon_update
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x78]
push edi
push 0x49bc04
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x40cbb3
push 0x2e
lea ecx, [ebp - 0x32]
push edi
push ecx
call fcn.004690e0
mov eax, dword [ebp - 0x3c]
mov edx, 0x30
mov word [ebp - 0x34], dx
mov edx, 1
mov word [ebp - 0x2c], dx
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], 0x107de
mov dword [ebp - 0x14], 7
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 0x49613c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, edi
jl 0x40cbb3
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x40cbc5
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x40cbc5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x40cbd7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x40cbe9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x40cbf8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, edi
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40d040
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push 0x49981c
xor edi, edi
push 1
push edi
push 0x49983c
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.FsLibraryDailyUpdate
push eax
call edx
mov esi, eax
cmp esi, edi
jge 0x40d0a3
cmp esi, 0x80070002
jne 0x40d1c6
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x49980c
push 0x49982c
push str.FsLibraryDailyUpdate
push eax
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push ebx
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push str.daily_update
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x78]
push edi
push 0x49bc04
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x40d1c6
push 0x2e
lea ecx, [ebp - 0x32]
push edi
push ecx
call fcn.004690e0
mov eax, dword [ebp - 0x3c]
mov edx, 0x30
mov word [ebp - 0x34], dx
mov edx, 1
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x10], dx
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], 0x107de
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 0x49613c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, edi
jl 0x40d1c6
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x40d1d8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x40d1d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x40d1ea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x40d1fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x40d20b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, edi
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.004657f5
mov esp, ebp
pop ebp
ret
Function at 0x40ecf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486aa2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.004690e0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40edb2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed94
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret

Function at 0x40efa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486aa2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.004690e0
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f065
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f047
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00402290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f096
test al, 0x10
jne 0x40f096
mov eax, 1
ret
xor eax, eax
ret
Function at 0x410a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
mov dword [ebp - 0x220], ebx
push ecx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x218], ax
call fcn.004690e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402390
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
lea ecx, [ebp - 0x21c]
mov edx, esi
mov dword [ebp - 0x220], edi
call fcn.0040da40
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x21c]
push edi
push 0x49bef4
push esi
call fcn.0040e410
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret