joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c819
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001f90
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c871
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001fcc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c864
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100c873
xor eax, eax
pop esi
leave
ret 4

Function at 0x100cb5b
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 0x80000000
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x100cbba
push edi
push 4
push 0x1001fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100cbb6
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100cbb3
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov dword [ebp - 4], eax
push edi
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100ce7d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100ce78
and eax, 0x10
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x100ce7f
xor eax, eax
pop ebp
ret 8

Function at 0x100ce88
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10161d4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 0x30], 0
test eax, eax
je 0x100cf10
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov ebx, eax
test ebx, ebx
je 0x100cf10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2 + 2]
jmp 0x100cee8
cmp cx, 0x26
je 0x100cef0
cmp dword [ebp - 0x30], 0x13
jae 0x100cf10
mov edx, dword [ebp - 0x30]
inc dword [ebp - 0x30]
inc eax
mov word [ebp + edx*2 - 0x2c], cx
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100cecd
mov eax, dword [ebp - 0x30]
and word [ebp + eax*2 - 0x2c], 0
push 0xa
lea eax, [ebp - 0x2c]
push 0
push eax
call sub.msvcrt.dll_wcstoul
mov dword [edi], eax
xor eax, eax
add esp, 0xc
inc eax
jmp 0x100cf12
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 8
Function at 0x100d054
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push esi
push 0x1002040
call fcn.0100cf26
test eax, eax
jne 0x100d070
and dword [esi], eax
xor ebx, ebx
cmp dword [esi], ebx
je 0x100d123
lea eax, [esi + 8]
push eax
push 0x1002078
mov ecx, esi
call fcn.0100cf26
test eax, eax
je 0x100d12b
lea eax, [esi + 4]
push eax
push 0x1002064
mov ecx, esi
call fcn.0100cf26
test eax, eax
je 0x100d12b
lea eax, [esi + 0xc]
push eax
push 0x1002024
mov ecx, esi
call fcn.0100cf26
test eax, eax
je 0x100d12b
lea eax, [esi + 0x10]
push eax
push 0x1002004
mov ecx, esi
call fcn.0100ce88
test eax, eax
je 0x100d12b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
je 0x100d12b
mov edi, 0x100208c
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
mov dword [ebp - 4], eax
je 0x100d12b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
jmp 0x100d115
cmp cx, 0x26
je 0x100d11d
cmp ebx, 0x63
jae 0x100d12b
mov word [esi + ebx*2 + 0x14], cx
inc ebx
inc eax
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100d100
and word [esi + ebx*2 + 0x14], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x100d126

Function at 0x100d40e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
call fcn.01004315
cmp dword [ebp + 8], ebx
je 0x100d436
push dword [esi + 4]
call fcn.0100d267
mov ebx, eax
test ebx, ebx
jl 0x100d4ef
push 0x100217c
call fcn.0100e093
test eax, eax
mov dword [esi], eax
je 0x100d4d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100215c
push eax
call edi
test eax, eax
je 0x100d4d5
call eax
push 0x1002148
push dword [esi]
mov dword [esi + 0x24], 1
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x100d4d5
push 0x1002138
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x100d4d5
push 0x100212c
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x100d4d5
push 0x1002120
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x100d4d5
push 0x100210c
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x100d4d5
push 0x10020f4
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x100d4d5
push 0x10020dc
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x100d4dc
mov ebx, 0x80004005
jmp 0x100d4ef
call dword [esi + 0x1c]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x100d4eb
mov ebx, 0x80004005
test ebx, ebx
jge 0x100d4f6
mov ecx, esi
call fcn.0100d36a
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x100d504
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push 4
pop esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x100d522
mov eax, 0x80070057
jmp 0x100d57c
lea eax, [ebp + 0x10]
push eax
push 0x20019
push 0
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d577
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100d577
cmp dword [ebp - 4], esi
jne 0x100d577
cmp dword [ebp - 8], esi
jne 0x100d577
xor eax, eax
jmp 0x100d57c
mov eax, 0x80004005
pop esi
leave
ret 0xc

Function at 0x100d586
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, 0x80004005
jne 0x100d5a0
mov eax, 0x80070057
jmp 0x100d5ee
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 2
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0x14]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100d5ec
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x100d63e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10161d4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x70], eax
push edi
lea eax, [ebp - 0x80]
push eax
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x80]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0100fe48
test eax, eax
jl 0x100d6f4
xor esi, esi
push esi
lea eax, [ebp - 0x6c]
push eax
push esi
push 2
push esi
push 0x10016b8
push esi
push 0x1002598
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100d6f4
push 0x32
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0100fffe
test eax, eax
jl 0x100d6eb
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push esi
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100d6eb
xor ebx, ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0100c0c3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100d8b6
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x101709c], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x100d8e7
mov dword [ebp - 4], 1
mov dword [0x101709c], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
mov edi, 0x105
push edi
mov esi, 0x1016e90
push esi
call fcn.0100fc30
test eax, eax
je 0x100d93c
cmp dword [ebp + 8], ebx
jne 0x100d920
push 1
push esi
call fcn.0100fcd2
test eax, eax
jl 0x100d93c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x100
push ebx
push ebx
push 0x1001f4c
push 0x20a
push edi
push esi
call fcn.0100725b
test eax, eax
jge 0x100d8cc
mov word [0x1016e90], bx
jmp 0x100d8dd

Function at 0x100dbe8
Capabilities:
Delete directory
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100dbf9
push 0x57
jmp 0x100dc31
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 1
call fcn.0100ce59
test eax, eax
je 0x100dc2f
cmp dword [ebp + 8], 0
push esi
je 0x100dc27
call fcn.0100d94a
test eax, eax
je 0x100dc37
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x100dc39
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100dc39
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x100dc74
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10161d4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], eax
call fcn.0101057d
push 0x32
pop ecx
xor ebx, ebx
push ebx
push ebx
push 3
xor eax, eax
push ebx
lea edi, [ebp - 0xd0]
rep stosd dword es:[edi], eax
push 5
push 0x80000000
push esi
mov dword [ebp - 0xd4], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xd8], edi
je 0x100ddc9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x100ddbd
cmp esi, 0xc8
ja 0x100ddbd
push ebx
lea eax, [ebp - 0xd4]
push eax
push esi
lea eax, [ebp - 0xd0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ddbd
cmp dword [ebp - 0xd4], esi
jne 0x100ddbd
push 0x2c
pop ecx
mov edi, 0x10026d0
lea esi, [ebp - 0xd0]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100dd35
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100ddbd
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
inc eax
push eax
lea ecx, [ebp - 0xa4]
push ecx
push 8
add eax, eax
push eax
lea ecx, [ebp - 0xe4]
call fcn.01010647
push eax
call fcn.0100dc43
cmp eax, ebx
je 0x100ddbd
lea ecx, [ebp - 0xf4]
push ecx
push eax
call fcn.0100feb2
test eax, eax
jl 0x100ddbd
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xf4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0100fdc8
cmp eax, ebx
jle 0x100ddbd
cmp eax, 0x127500
jge 0x100ddbd
xor ebx, ebx
inc ebx
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xe4]
call fcn.0101059b
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0100c0c3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100ddea
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10161d4]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x41c]
push eax
xor esi, esi
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100df56
mov ebx, 0x100
push ebx
push esi
push esi
push 0x10026b0
mov edi, 0x20a
push edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x41c]
push eax
call fcn.0100725b
test eax, eax
jl 0x100df56
xor eax, eax
cmp dword [ebp - 0x838], eax
je 0x100df56
push ebx
push eax
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01005a33
test eax, eax
jl 0x100df56
push ebx
push 0
push 0
push dword [ebp - 0x838]
lea eax, [ebp - 0x210]
push edi
push esi
push eax
call fcn.0100725b
test eax, eax
jl 0x100df56
lea eax, [ebp - 0x210]
push eax
call fcn.01010233
test eax, eax
je 0x100df56
xor eax, eax
push eax
lea ecx, [ebp - 0x628]
push ecx
push eax
push eax
push dword [ebp - 0x838]
call sub.msvcrt.dll__wsplitpath
add esp, 0x14
push ebx
push 0
push 0
mov ebx, 0x1002700
push ebx
push edi
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.0100725b
test eax, eax
jl 0x100df56
push 1
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.01013d10
test eax, eax
jl 0x100df56
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01010266
test eax, eax
je 0x100df56
push esi
lea eax, [ebp - 0x834]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.010104ce
test eax, eax
je 0x100df56
lea eax, [ebp - 0x834]
push eax
call fcn.0100dc74
mov esi, eax
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x100df58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 4

Function at 0x100e00e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x10170a4], 0
mov eax, dword [0x10161d4]
mov dword [ebp - 4], eax
jne 0x100e07f
push edi
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x100e07f
xor eax, eax
inc eax
cmp dword [ebp - 0x108], 2
jne 0x100e07a
cmp dword [ebp - 0x114], 5
ja 0x100e073
jne 0x100e07a
cmp dword [ebp - 0x110], eax
jb 0x100e07a
and dword [0x101620c], 0
mov dword [0x10170a4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x101620c]
call fcn.0100c0c3
leave
ret
Function at 0x100e093
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10161d4]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ebx
jne 0x100e0c1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100e11d
push esi
call fcn.0100e00e
test eax, eax
mov esi, 0x105
je 0x100e0e6
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x100e0e6
cmp eax, esi
jb 0x100e0ed
mov word [ebp - 0x210], bx
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100e83d
cmp eax, ebx
pop esi
jge 0x100e108
and eax, 0xffff
push eax
jmp 0x100e0b9
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop ebx
call fcn.0100c0c3
leave
ret 4

Function at 0x100ebdd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x10], edi
je 0x100ebfa
cmp dword [ebp + 8], edi
mov dword [esi], edi
jne 0x100ec04
mov eax, 0x80070057
jmp 0x100ed18
push esi
push 0x1003678
push 1
push edi
push 0x1003658
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x100ed18
xor eax, eax
cmp dword [ebp + 0x10], edi
push ebx
setne al
dec eax
cmp ax, di
mov dword [ebp + 0xc], eax
je 0x100ec98
push 4
pop ebx
lea eax, [ebp + 0x10]
push eax
push 0x1002780
push 0x80000002
mov dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100ec98
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x1002804
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ec8f
cmp dword [ebp - 4], ebx
jne 0x100ec8f
cmp dword [ebp - 8], ebx
jne 0x100ec8f
cmp dword [ebp - 0xc], 1
jne 0x100ec8f
or dword [ebp + 0xc], 0xffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x110]
mov ebx, eax
cmp ebx, edi
mov eax, dword [esi]
jl 0x100ed09
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x118]
mov ebx, eax
cmp ebx, edi
mov eax, dword [esi]
jl 0x100ed09
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xfc]
mov ebx, eax
cmp ebx, edi
mov eax, dword [esi]
jl 0x100ed09
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push dword [ebp + 8]
push eax
call dword [ecx + 0x104]
mov ebx, eax
cmp ebx, edi
jl 0x100ed07
cmp ebx, 1
je 0x100ecf5
cmp word [ebp - 0x10], di
jne 0x100ed15
push dword [esi]
call fcn.0100eb6d
mov ebx, eax
cmp ebx, edi
jl 0x100ed07
mov ebx, 0x80070057
mov eax, dword [esi]
cmp eax, edi
je 0x100ed15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x100edc7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10161d4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0x114
mov dword [ebp - 0x120], 0x11c
jne 0x100ee00
mov eax, 0x80070057
jmp 0x100ee9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x100ee3e
cmp dword [ebp - 0x224], 1
mov edx, dword [ebp - 0x230]
je 0x100ee5c
cmp dword [ebp - 0x224], 2
jne 0x100ee31
cmp edx, 5
jb 0x100ee5c
lea eax, [ebp - 0x120]
push eax
call edi
test eax, eax
jne 0x100ee74
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100ee4e
call esi
jmp 0x100ee9e
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x100ee9e
and word [ebp - 0xa], 0
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
and word [ebp - 0xc], 0
jmp 0x100ee86
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0xc]
mov dword [esi + 0xc], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x10], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100c0c3
leave
ret 4
Function at 0x100ef50
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x10161d4]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ecx
je 0x100f149
cmp ecx, edi
je 0x100f149
cmp dword [ebp + 0x14], 1
jl 0x100f149
push esi
lea eax, [ebp - 0x240]
push eax
call fcn.0100edc7
mov esi, eax
cmp esi, edi
jl 0x100f108
push 0x1048
call sub.msvcrt.dll_malloc
cmp eax, edi
pop ecx
mov dword [ebp - 0x210], eax
jne 0x100efcc
mov esi, 0x8007000e
jmp 0x100f0f4
cmp ebx, edi
je 0x100efea
cmp word [ebx], di
je 0x100efea
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x100f016
push eax
call fcn.01010216
push 0x1002848
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100e6d7
mov esi, eax
cmp esi, edi
jl 0x100f0f4
mov ebx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push 0x824
push ebx
push 0x10016b8
push edi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x822
je 0x100f0f1
mov eax, ebx
cmp word [eax], di
je 0x100f0e8
push 0x2d
push ebx
call fcn.01010697
mov esi, eax
cmp esi, edi
je 0x100f0d4
lea eax, [ebp - 0x254]
push eax
push ebx
call fcn.0100ed23
lea eax, [ebp - 0x22c]
push eax
add esi, 2
push esi
call fcn.0100ed23
cmp dword [ebp - 0x22c], edi
jne 0x100f0b6
cmp dword [ebp - 0x228], edi
jne 0x100f0b6
cmp dword [ebp - 0x224], edi
jne 0x100f0b6
cmp dword [ebp - 0x220], edi
jne 0x100f0b6
cmp dword [ebp - 0x21c], edi
jne 0x100f0b6
push 5
pop ecx
mov esi, 0x1002898
lea edi, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0100eeb1
test eax, eax
jne 0x100f10d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
jne 0x100f051
mov eax, dword [ebp - 0x218]
mov word [eax], di
xor esi, esi
inc esi
cmp dword [ebp - 0x210], edi
je 0x100f108
push dword [ebp - 0x210]
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
pop esi
jmp 0x100f14e
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x218]
push 0x10016b8
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov eax, dword [ebp + 0x14]
dec eax
sub esi, eax
neg esi
sbb esi, esi
and esi, 0x7ff8ff86
add esi, 0x8007007a
jmp 0x100f0f4
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100c0c3
leave
ret 0x10