joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067a0
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47fc33
mov eax, dword fs:[0]
push eax
mov eax, 0x4040
call fcn.00467fd0
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x4038], eax
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x404c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x4060]
mov dword [esp + 0x4054], 0
xor ecx, ecx
mov dword [esp + 0x1c], vtable.CTask.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov byte [esp + 0x4054], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x2c], cx
mov ecx, dword [eax]
xor edx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
mov word [esp + 0x2e], dx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ax, word [esp + 0xe]
shr ecx, 0x10
mov word [esp + 0x36], cx
mov dword [esp + 0x14], edx
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x4064]
mov edx, 0xbb8
lea ecx, [esp + 0x44]
mov word [esp + 0x30], dx
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4068a2
xor eax, eax
jmp 0x4068c0
movzx ecx, word [eax + str._scheduler]
mov word [esp + eax + 0x844], cx
add eax, 2
test cx, cx
jne 0x4068c0
cmp esi, 2
jne 0x4068e3
mov esi, 4
jmp 0x4068eb
dec esi
neg esi
sbb esi, esi
add esi, 3
push 0x400
lea ecx, [esp + 0x3848]
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
jmp 0x406910
movzx ecx, word [esp + eax + 0x3844]
mov word [esp + eax + 0x1044], cx
add eax, 2
test cx, cx
jne 0x406910
push 0x400
lea edx, [esp + 0x3048]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x3044]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406945
mov eax, dword [esp + 0x405c]
mov ecx, 0xb
mov esi, str.Tasks_accleaners.job
rep movsd dword es:[edi], dword [esi]
push eax
lea edx, [esp + 0x3048]
lea ecx, [esp + 0x20]
call fcn.004013d0
mov byte [esp + 0x4054], 0
mov dword [esp + 0x1c], vtable.CTask.0
mov dword [esp + 0x4054], 0xffffffff
lea ecx, [esp + 0x4064]
call fcn.00402880
mov ecx, dword [esp + 0x404c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4038]
xor ecx, esp
call fcn.00464c90
add esp, 0x404c
ret
Function at 0x4069d0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 0xffffffffffffffff
push 0x47f778
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
push esi
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x6c]
xor ebx, ebx
mov dword [eax], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], 1
mov dword [esp + 0x18], ebx
mov byte [esp + 0x64], 3
lea ecx, [esp + 0x1c]
push ecx
push 0x4844fc
push 1
push ebx
push 0x48451c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x406b7a
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x18]
push ecx
push 0x4844ec
push str.accleaners
push eax
call edx
cmp eax, ebx
jl 0x406b7a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040b290
mov byte [esp + 0x64], 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406b6b
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x74]
push ecx
push eax
call edx
test byte [esp + 0x20], 4
je 0x406a9f
mov byte [edi], bl
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp word [esp + 0x24], 1
jne 0x406b6b
lea ecx, [esp + 0x14]
push ecx
call fcn.0040b310
mov byte [esp + 0x64], 5
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call edx
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x406b5c
push 0x2e
lea ecx, [esp + 0x2e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x34], ax
call fcn.00466e30
mov edx, dword [edi]
mov ecx, dword [edx + 0x10]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push edi
call ecx
movzx eax, word [esp + 0x2e]
movzx edx, word [esp + 0x2c]
mov cx, word [esp + 0x30]
mov word [esi + 2], ax
movzx eax, word [esp + 0x3a]
mov word [esi], dx
movzx edx, word [esp + 0x38]
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x48]
mov word [esi + 6], cx
mov word [esi + 8], dx
cmp eax, 3
jne 0x406b4e
mov ecx, dword [esp + 0x6c]
mov dword [ecx], 2
jmp 0x406b5c
xor edx, edx
cmp eax, 2
mov eax, dword [esp + 0x6c]
sete dl
mov dword [eax], edx
mov byte [esp + 0x64], 4
lea ecx, [esp + 0x14]
push ecx
call fcn.00406c10
mov byte [esp + 0x64], 3
lea edx, [esp + 0x10]
push edx
call fcn.00406bc0
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x406b8f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x406ba7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x5c
ret
Function at 0x407d70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x481e11
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
push eax
mov ebx, 0x104
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
call fcn.0040c940
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x407de8
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
push 1
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x407e0c
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x18]
call fcn.0040bf80
jmp 0x407e54
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x407e1a
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e20
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x407e47
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.0040bf80
jmp 0x407e54
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x18]
call fcn.0040bf20
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x407e62
lea ecx, [esp + 0x1c]
push edi
call fcn.004027d0
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], ebp
jb 0x407e89
mov eax, dword [esp + 0x1c]
push eax
call fcn.00464c85
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464c90
add esp, 0x34
ret
Function at 0x408190
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x481d29
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
push eax
mov ebx, 0x400
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.0040c940
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x40820c
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
dec edx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x408227
lea ecx, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.004027d0
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.0040b030
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
call fcn.00402880
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], esi
jb 0x408271
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00464c85
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00464c90
add esp, 0x38
ret

Function at 0x408450
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4813f2
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x810], eax
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x828], esi
mov edi, ecx
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
call fcn.0040a6b0
mov dword [esp + 0x828], esi
lea eax, [esp + 0xc]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408521
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push esi
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408516
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x408516
shr eax, 1
xor ecx, ecx
lea edx, [esp + 0x1c]
mov word [esp + eax*2 + 0x1c], cx
call fcn.004028e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00464c90
add esp, 0x820
ret
Function at 0x408700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x481c99
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x30]
push eax
call fcn.0040a6b0
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
sub eax, 0x10
mov dword [esp + 0x18], 1
call fcn.00403120
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 2
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.0040aef0
mov byte [esp + 0x28], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4087d9
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x4087cc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4087cc
call fcn.00403120
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4087c3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4087d9
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403b20
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x4923bc
push ecx
call fcn.00465f8d
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40881d
or eax, 0xffffffff
jmp 0x408821
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
push ecx
setne byte [esp + 0x38]
call edi
cmp eax, 0xffffffff
je 0x408839
test al, 0x10
jne 0x408839
mov bl, 1
jmp 0x40883b
xor bl, bl
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jle 0x408874
movzx edx, word [eax + 2]
cmp dx, 0x3a
jne 0x408874
test ecx, ecx
jl 0x408894
movzx eax, word [eax]
push eax
call fcn.0046603d
add esp, 4
test eax, eax
je 0x408870
cmp byte [esp + 0x34], 0
jne 0x408870
test bl, bl
je 0x40889e
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.00465e3b
add esp, 8
test eax, eax
je 0x4088ab
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x408771
jmp 0x4088ab
push 0x80070057
call fcn.00401dd0
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.00404b00
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00402880
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x408d00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x480af1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, dword [esp + 0x288]
lea eax, [esp + 0x1c]
push esi
push eax
mov ebx, str..
call fcn.0040b030
add esp, 8
mov dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402880
cmp edi, 0xffffffff
je 0x408ebe
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, 0x492054
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408dc6
test dx, dx
je 0x408dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408dc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408da0
xor eax, eax
jmp 0x408dcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ea3
mov ecx, 0x492058
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408e06
test dx, dx
je 0x408e02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408e06
add eax, 4
add ecx, 4
test dx, dx
jne 0x408de0
xor eax, eax
jmp 0x408e0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ea3
lea edx, [esp + 0x20]
push esi
push edx
mov ebx, 0x492050
call fcn.0040b030
mov dword [esp + 0x288], 1
push eax
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x60]
call fcn.0040b030
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x20]
call fcn.00402880
test byte [esp + 0x24], 0x10
je 0x408e78
mov ecx, dword [esp + 0x28c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408d00
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x18]
push 0x80
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402880
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408d93
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x28c], 0
je 0x408ed1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00464c90
add esp, 0x270
ret
Function at 0x4095a0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4813ad
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040a6b0
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x409782
push esi
lea edx, [esp + 0x44]
push edx
call fcn.0040b500
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
jne 0x409623
call fcn.00465838
mov ecx, dword [esp + 0x4c]
push ecx
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409774
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
jne 0x409647
call fcn.00465838
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004094c0
add esp, 8
mov byte [esp + 0x64], 2
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x34]
xor esi, esi
sar edx, 2
test edx, edx
jbe 0x409765
mov eax, dword [0x4ae040]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae040
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x64], 4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x4096ae
call fcn.00465838
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 2
lea edi, [eax + esi*4]
cmp esi, ecx
jb 0x4096c3
call fcn.00465838
mov eax, dword [esp + 0x34]
movzx ecx, word [edi + 2]
movzx edx, word [eax + esi*4]
push 0x492d40
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea edi, [esp + 0x24]
call fcn.0040c610
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
add esp, 0x10
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jne 0x4096fe
call fcn.00465838
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409727
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x409727
mov eax, dword [esp + 0x1c]
cmp eax, ebx
ja 0x40974b
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x14]
call fcn.00402880
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x409673
jmp 0x409765
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call fcn.0040b150
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x14]
call fcn.00402880
mov byte [esp + 0x64], 1
lea eax, [esp + 0x28]
push eax
call fcn.0040b570
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
push ecx
call fcn.0040b570
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x58
ret
Function at 0x409e60
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x47fbc8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov al, byte [esp + 0x38]
mov dword [esp + 0x20], 1
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 2
cmp byte [esp + 0x34], bl
je 0x409ec1
cmp byte [0x4aec54], bl
je 0x409eba
cmp al, bl
je 0x409eba
mov esi, 0x20119
jmp 0x409ed7
mov esi, 0x20019
jmp 0x409ed7
cmp byte [0x4aec54], bl
je 0x409ed2
mov esi, 0x20106
cmp al, bl
jne 0x409ed7
mov esi, 0x20006
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x409eec
push eax
call edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x409f21
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x409f21
mov byte [esp + 0x13], 1
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409f31
push eax
call edi
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x2c]
call fcn.00402880
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402880
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40a120
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x481acb
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov esi, dword [esp + 0x830]
xor ebx, ebx
mov dword [esp + 0x828], ebx
mov edi, dword [esp + 0x834]
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.0040a2a0
mov eax, dword [esp + 0x834]
cmp dword [eax - 4], 1
jle 0x40a1a1
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x838]
push ecx
call fcn.00404300
mov eax, dword [esp + 0x834]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a245
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [esp + 0x14], ebx
jbe 0x40a23a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40a1f0
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x20]
push edx
push esi
push eax
call edi
test eax, eax
jne 0x40a233
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
lea ecx, [esp + 0x24]
call fcn.004027d0
mov byte [esp + 0x82c], 1
mov edx, dword [esp + 0x14]
push edx
mov byte [esp + 0x830], bl
call fcn.0040a120
add esp, 8
inc esi
cmp esi, dword [esp + 0x14]
jb 0x40a1f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x828], 0xffffffff
mov eax, dword [esp + 0x834]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00464c90
add esp, 0x81c
ret
Function at 0x40ca40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x482508
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, 0x4aec60
push edi
mov dword [esp + 0x1c], edi
call fcn.0040a6b0
mov dword [esp + 0x24], 0
lea esi, [esp + 0x14]
call fcn.00406400
mov byte [esp + 0x24], 1
push eax
lea eax, [esp + 0x14]
push eax
mov ebx, 0x492660
call fcn.0040b030
add esp, 8
mov byte [esp + 0x24], 2
call fcn.00404b00
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.00402880
mov byte [esp + 0x24], 0
mov ecx, esi
call fcn.00402880
mov ecx, dword [0x4aec60]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [0x4aec60]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, 0xffffffff
cmp eax, esi
je 0x40caf9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x40cb20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47fb38
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x4aec60]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402880
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4