joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100596f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001e38
call fcn.01005bb8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10059ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059ac
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10059c4
cmp eax, 0x20b
je 0x10059b1
mov dword [ebp - 0x1c], ebx
jmp 0x10059d8
cmp dword [ecx + 0x84], 0xe
jbe 0x10059ac
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10059d2
cmp dword [ecx + 0x74], 0xe
jbe 0x10059ac
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009284], 0xffffffff
or dword [0x1009288], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009280]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100927c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100928c], eax
call fcn.01005bb0
cmp dword [0x1009240], ebx
jne 0x1005a33
push fcn.01005bb0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005b99
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009278]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009274]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005ac9
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005a9d
cmp al, 0x22
jne 0x1005a8f
cmp byte [esi], 0x22
jne 0x1005aa6
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005ab0
cmp al, 0x20
jbe 0x1005aa2
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1005ad4
movzx eax, word [ebp - 0x50]
jmp 0x1005ad7
cmp byte [esi], 0x20
jbe 0x1005aa6
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005ac9
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005af4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005b29
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005bf3
ret

Function at 0x1005d44
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_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005d5b
xor eax, eax
jmp 0x1005d63
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x100607b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100923c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001e64
push 0x80000002
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10061c1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push 4
pop edi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
mov esi, 0x1001e44
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], edi
call ebx
test eax, eax
jne 0x10061b3
push esi
push dword [ebp - 0x120]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01005ff7
cmp dword [ebp - 0x118], edi
jne 0x10061b3
lea eax, [ebp - 0x108]
push eax
call fcn.0100601f
xor ecx, ecx
cmp dword [ebp - 0x110], eax
sete cl
test ecx, ecx
mov dword [ebp - 0x10c], ecx
je 0x10061b3
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
mov esi, 0x1001e50
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], edi
call ebx
test eax, eax
jne 0x10061b3
push esi
push dword [ebp - 0x120]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01005ff7
cmp dword [ebp - 0x118], edi
jne 0x10061b3
lea eax, [ebp - 0x108]
push eax
call fcn.0100601f
xor ecx, ecx
cmp dword [ebp - 0x110], eax
sete cl
mov dword [ebp - 0x10c], ecx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop esi
call fcn.01005857
leave
ret 4

Function at 0x10061d9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100923c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x1001e64
push 0x80000002
mov dword [ebp - 0x110], 0x104
mov byte [ebp - 0x108], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100626d
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x1001e88
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006261
test esi, esi
je 0x1006261
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ebp - 0x108], al
pop esi
setne al
call fcn.01005857
leave
ret 4
Function at 0x100628a
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x100923c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call fcn.010061d9
test eax, eax
je 0x100635b
lea eax, [ebp - 0x20c]
push eax
call fcn.0100607b
test eax, eax
je 0x100635b
lea eax, [ebp - 0x108]
push eax
call fcn.010061d9
test eax, eax
je 0x100635b
push ebx
push edi
push 0x1001e50
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
push 0x80
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x310]
push eax
push 0x10016d0
push dword [ebp - 0x314]
push 0x1001e5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ebx, 0xffffffff
je 0x1006359
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01005857
leave
ret 4

Function at 0x100636f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1009244], 0xffffffff
jne 0x10063de
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1001e98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10063de
and dword [0x1009244], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x10018e8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10063d5
cmp word [ebp - 0xc], 0x600
sbb eax, eax
inc eax
mov dword [0x1009244], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1009244]
leave
ret

Function at 0x10063ea
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
cmp dword [0x1009248], 2
mov eax, dword [0x100923c]
mov dword [ebp - 4], eax
jne 0x100649e
and dword [0x1009248], 0
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18c], 2
jne 0x100649e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001ec4
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
cmp dword [ebp - 0x198], 5
pop esi
jae 0x1006494
call fcn.0100636f
test eax, eax
jne 0x1006494
push 0x7550005
push 0x50083
lea eax, [ebp - 0x108]
push eax
call fcn.01005fbd
test eax, eax
je 0x100649e
lea eax, [ebp - 0x108]
push eax
call fcn.0100628a
test eax, eax
jne 0x100649e
mov dword [0x1009248], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1009248]
call fcn.01005857
leave
ret
Function at 0x10064b2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100923c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x1006567
lea eax, [ebp - 0x10c]
push eax
push 1
push edi
push 0x1002120
push 0x80000002
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006567
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push 0x1002144
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100655b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1002164
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
jne 0x1006543
mov dword [esi], 0x40000
jmp 0x100655b
push 0x1002158
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
jne 0x100655b
mov dword [esi], 0x30000
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005857
leave
ret 4
Function at 0x100657a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x100923c]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
xor eax, eax
mov byte [ebp - 0x114], 0
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
xor esi, esi
cmp edx, esi
stosw word es:[edi], ax
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], 4
stosb byte es:[edi], al
mov dword [ebp - 0x130], 0x104
mov dword [ebp - 0x120], esi
je 0x100675b
cmp ebx, esi
je 0x100675b
mov eax, dword [ebp + 0x10]
dec eax
je 0x100665f
dec eax
je 0x1006649
dec eax
je 0x1006633
dec eax
je 0x100661d
dec eax
jne 0x100675b
mov edi, 0x1001f48
mov eax, 0x1001f58
mov dword [ebp - 0x118], 0x10020a4
jmp 0x1006673
mov edi, 0x1001f2c
mov eax, 0x1001f38
mov dword [ebp - 0x118], 0x100209c
jmp 0x1006673
mov edi, 0x1001f08
mov eax, 0x1001f18
mov dword [ebp - 0x118], 0x1002094
jmp 0x1006673
mov edi, 0x1001eec
mov eax, 0x1001ef8
mov dword [ebp - 0x118], 0x100208c
jmp 0x1006673
mov edi, 0x1001ed0
mov eax, 0x1001edc
mov dword [ebp - 0x118], 0x1002084
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
call esi
test eax, eax
jne 0x10066aa
cmp dword [ebp - 0x11c], 4
jne 0x10066aa
mov dword [ebp - 0x124], 1
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push edi
push ebx
call esi
test eax, eax
jne 0x1006753
cmp byte [ebp - 0x114], al
je 0x1006753
xor edi, edi
inc edi
cmp dword [ebp - 0x11c], edi
jne 0x1006753
cmp dword [ebp - 0x124], edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x1006721
push 0x100218c
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp - 0x128]
lea eax, [ebp - 0x10]
push 0x1002188
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
mov dword [ebp - 0x120], edi
mov edi, dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1006740
push 0x1002184
push edi
call esi
push dword [ebp - 0x118]
push edi
call esi
lea eax, [ebp - 0x114]
push eax
push edi
call esi
mov eax, dword [ebp - 0x120]
jmp 0x100675d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret 0xc
Function at 0x1006826
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100923c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
inc edi
cmp eax, ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], 0x400
mov byte [ebp - 0x404], bl
je 0x10068d0
cmp esi, ebx
je 0x10068d0
lea edx, [ebp - 0x408]
push edx
push edi
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10068d0
cmp dword [ebp - 0x408], ebx
je 0x10068d0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10068c4
cmp dword [ebp - 0x40c], edi
jne 0x10068c4
cmp byte [ebp - 0x404], bl
je 0x10068c4
xor edi, edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret 0xc
Function at 0x10068e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100923c]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x214]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1001d9c
push 0x80000002
mov dword [ebp - 0x21c], ebx
call esi
test eax, eax
mov edi, 0x104
jne 0x10069ea
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x1001d90
push dword [ebp - 0x214]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10069d2
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call esi
test eax, eax
jne 0x10069d2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1001d88
push dword [ebp - 0x218]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10069c6
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], ebx
jne 0x1006af1
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push 0x1001d4c
push 0x80000001
mov byte [ebp - 0x20c], bl
call esi
test eax, eax
jne 0x1006af1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x1001d90
push dword [ebp - 0x214]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006ae5
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0x1001d20
push 0x80000001
call esi
test eax, eax
jne 0x1006ae5
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1001d0c
push dword [ebp - 0x218]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006ad9
lea eax, [ebp - 0x108]
push eax
call fcn.01005c21
test eax, eax
je 0x1006ad9
push 0x1001d04
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret 4
Function at 0x1006da2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x1006e53
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1006e53
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1006e4a
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
lea eax, [ebp + 0x10]
push eax
je 0x1006e22
lea eax, [ebp - 8]
push eax
push 0x1002218
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006e4a
cmp dword [ebp + 0x10], ebx
je 0x1006e4a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x1006e48
lea eax, [ebp - 0xc]
push eax
push 0x10021fc
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006e4a
cmp dword [ebp + 0x10], ebx
je 0x1006e4a
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [esi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1006e5f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100923c]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 1
xor esi, esi
push esi
push 0x100222c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006ef6
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006eea
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push 0x100221c
lea eax, [ebp - 0x108]
push eax
call fcn.01005f6d
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01005857
leave
ret
Function at 0x1006f08
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x100923c]
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, 0x1002260
lea edi, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x150]
push eax
push 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14c]
push eax
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x80000002
mov dword [ebp - 0x158], ebx
call esi
test eax, eax
mov edi, 0x104
jne 0x1006fda
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push dword [ebp - 0x150]
mov dword [ebp - 0x154], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006fc2
cmp dword [ebp - 0x15c], 1
jne 0x1006fc2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1006fc2
push 1
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01006da2
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x158], ebx
jne 0x1007113
lea eax, [ebp - 0x150]
push eax
push 1
push ebx
push 0x1002258
mov ebx, 0x80000000
push ebx
call esi
test eax, eax
jne 0x1007113
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0
push 0
push dword [ebp - 0x150]
mov dword [ebp - 0x154], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100702f
mov byte [ebp - 0x108], 0
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x108], 0
je 0x1007113
push 0x1002244
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x150]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
test eax, eax
jne 0x1007113
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0
push 0
push dword [ebp - 0x150]
mov dword [ebp - 0x154], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007107
mov cl, byte [ebp - 0x108]
cmp cl, 0x22
lea eax, [ebp - 0x108]
jne 0x10070d4
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push eax
call esi
mov edi, eax
jmp 0x10070cc
cmp cl, 0x22
je 0x10070ee
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x10070c4
jmp 0x10070ee
lea edi, [ebp - 0x108]
jmp 0x10070ea
cmp cl, 0x20
je 0x10070ee
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10070dc
mov byte [eax], 0
push 1
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.01006da2
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x158]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret
Function at 0x10077c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x100923c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
call fcn.010068e6
test eax, eax
je 0x100789f
push 0x10022bc
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x100789f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x228]
push eax
push 0x40
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100789e
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007896
push 0
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100788f
push dword [ebp - 0x24c]
push esi
call fcn.010074fd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.01005857
leave
ret