joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b0d30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x2a8
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xd0]
push eax
call fcn.100c9da4
add esp, 4
test eax, eax
jne 0x100b0e04
mov edx, dword [esi + 8]
mov ecx, 0x81
lea edi, [esp + 0xaa]
mov word [esp + 0xa8], ax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa8]
push ecx
push 0x104
push 0xd
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xa8]
push eax
call fcn.100c9da4
add esp, 4
test eax, eax
je 0x100b0e04
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x50
push ecx
lea edx, [esp + 0xb0]
push 0xffffffffffffffff
push edx
stosw word es:[edi], ax
call fcn.10012f10
add esp, 0x10
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.1005d700
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.1005d7c0
mov eax, dword [0x10274670]
test eax, eax
je 0x100b0e04
lea edx, [esp + 8]
push edx
push str._TM___2008___OppoInfo___user___s
push str.IMCD
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
pop edi
pop esi
add esp, 0x2a8
ret
Function at 0x100befb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x308
mov edx, dword [esp + 0x30c]
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x10]
push edi
cmp eax, esi
je 0x100befd3
cmp edx, esi
je 0x100bf162
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, 0x20001
jne 0x100bf005
cmp eax, 0x40000
jne 0x100bf005
mov eax, dword [ebx + 8]
cmp edx, esi
mov dword [ebx + 0x10], eax
je 0x100bf162
pop edi
mov dword [ebx + 0x10], edx
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x20004
jne 0x100bf018
cmp eax, 0x40000
je 0x100bf162
cmp ecx, 0x20002
jne 0x100bf063
cmp eax, 0x40000
jne 0x100bf063
mov ecx, dword [ebx + 8]
push esi
push str.Edit
push esi
push ecx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
cmp edi, esi
je 0x100bf162
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 8
je 0x100bf162
mov dword [ebx + 0x10], edi
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x10001
jne 0x100bf162
cmp eax, 0x40000
jne 0x100bf162
mov eax, 2
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov ecx, 0xa9
xor eax, eax
lea edi, [esp + 0x74]
push esi
mov dword [esp + 0x74], esi
push esi
push 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], str.32770
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x10000000
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], str.Static
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], str.Button
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x88], esi
call fcn.1001ba20
mov edx, dword [esp + 0x8c]
mov eax, 1
add esp, 0x20
cmp edx, eax
jl 0x100bf162
lea ecx, [esp + 0x70]
cmp dword [ecx], esi
jne 0x100bf15b
inc eax
add ecx, 4
cmp eax, edx
jle 0x100bf143
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
mov edx, dword [esp + eax*4 + 0x6c]
mov dword [ebx + 0x10], edx
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
Function at 0x100c40b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 0xfe
je 0x100c4183
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x100c4183
push edi
call fcn.100c9da4
add esp, 4
test eax, eax
je 0x100c4183
push ebx
call fcn.100c9da4
mov ebp, eax
add esp, 4
shl ebp, 1
je 0x100c4183
push esi
push edi
call fcn.10100b80
add esp, 8
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c418a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x100c4154
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x1a]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x100c4183
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
push edx
push ebp
push eax
push esi
call edi
test eax, eax
je 0x100c4183
cmp dword [esp + 0x20], ebp
jne 0x100c4183
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x100c4a80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1018d148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push edi
lea edx, [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
call fcn.10124ef0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
cmp edi, ebx
mov dword [esp + 0x30], ebx
mov esi, dword [eax - 8]
je 0x100c4b88
push edi
call fcn.100c9da4
add esp, 4
cmp eax, esi
jb 0x100c4b88
push edi
lea ecx, [esp + 0x18]
call fcn.100e29f0
lea ecx, [esp + 0x3c]
push esi
mov bl, 1
push ecx
mov ecx, eax
mov byte [esp + 0x38], bl
call fcn.100e5a30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.100e3410
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.100e3260
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.100e3260
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.10125040
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.100e3260
mov eax, dword [esp + 0x38]
mov ecx, eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.100e3260
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, eax
mov dword [edx], esi
mov dword [edx + 4], edi
pop edi
pop esi
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100e1750
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100e17a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100e17a9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x100e17b0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x100e178d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100e17ab
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x100e7280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100e72d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100e72d0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x100e72d5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x100e72bb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x100e72e2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x100f1eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x100f1ef1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100f1ef3
mov esi, edi
test esi, esi
je 0x100f1f68
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100f1f5d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x100f1f5d
cmp dword [esp + 0x1c], eax
jbe 0x100f1f2e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100f1f5d
cmp esi, edi
je 0x100f1f4f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x100f1f68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x100f2280
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1018e75f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x101e2494]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x100f22eb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100f22ed
mov esi, edi
test esi, esi
je 0x100f23b7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f23ac
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100f232f
cmp eax, 2
je 0x100f232f
cmp eax, 6
je 0x100f232f
cmp eax, 7
jne 0x100f23ac
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10173930
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x100f2392
lea ecx, [esp + 0x14]
call fcn.101733fe
cmp esi, dword [esp + 0x14]
je 0x100f2387
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10173959
add esp, 4
jmp 0x100f23c9
call fcn.10173959
add esp, 4
lea ecx, [esp + 0x10]
push 0x101fa2d8
call fcn.101733fe
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x100f23b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100f23c9
push eax
lea ecx, [esp + 0x14]
call fcn.101733fe
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10172fd4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10173267
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x100f2510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x100f2547
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100f254a
mov esi, dword [ebp + 8]
test esi, esi
je 0x100f26fd
call fcn.10160890
test eax, eax
je 0x100f25f5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f26f1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x100f2599
cmp eax, 2
je 0x100f2599
cmp eax, 6
je 0x100f2599
cmp eax, 7
jne 0x100f26f1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.10173930
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x100f26dc
mov ecx, dword [ebp + 0x18]
call fcn.100e3540
cmp esi, dword [ebp + 8]
je 0x100f26c6
jmp 0x100f26bf
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100f2601
mov dword [ebp + 0x10], eax
jmp 0x100f2636
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100ca4d0
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100f26f1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x100f2670
cmp eax, 2
je 0x100f2670
cmp eax, 6
je 0x100f2670
cmp eax, 7
jne 0x100f26f1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.10173930
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x100f26dc
mov ecx, dword [ebp + 0x18]
call fcn.100e3610
cmp esi, dword [ebp + 8]
je 0x100f26c6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.10173959
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10173959
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x101fa2d8
call fcn.100e3540
cmp esi, dword [ebp + 8]
je 0x100f26fd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100f3140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018e828
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x100f3196
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100f319b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x100f328a
call fcn.10160890
test eax, eax
je 0x100f31ea
mov edi, dword [ebp + 0x18]
push edi
call fcn.100c9da4
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100f327f
cmp esi, ebx
je 0x100f31e0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x100f328c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100f31f5
xor edi, edi
jmp 0x100f322a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100ca4d0
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.100dd2c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100f3270
cmp esi, ebx
je 0x100f325a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100ddad0
mov eax, 1
jmp 0x100f328c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100ddad0
cmp esi, ebx
je 0x100f328a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f4c60
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10273cc0]
sub esp, 0x114
test eax, eax
jne 0x100f4dad
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x10273a58
mov dword [0x10273cc0], 1
mov dword [0x10273a58], 0x114
call esi
mov edx, dword [0x10273a68]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x101e6680], eax
je 0x100f4d88
push ebx
push 0x10273b70
mov dword [0x10273b70], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x101c23dc
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x10273cb4], eax
call edi
mov dword [0x10273cb8], eax
mov eax, dword [0x10273cb4]
test eax, eax
push 0x10273c90
je 0x100f4d04
call eax
jmp 0x100f4d0a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10273b74]
cmp eax, 6
jae 0x100f4d22
cmp eax, 5
jne 0x100f4d36
cmp dword [0x10273b78], 2
jb 0x100f4d36
cmp word [0x10273c90], 9
jne 0x100f4d36
mov dword [0x10273a4c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100f4d54
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x10273cbc], edx
jmp 0x100f4d5a
mov edx, dword [0x10273cbc]
test edx, edx
je 0x100f4d88
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100f4d88
mov ecx, dword [esp + 0x14]
mov dword [0x10273a64], ecx
push 0x10273a60
push 0x10273a5c
call fcn.100f5150
add esp, 8
call fcn.100f4dc0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100f6000
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019bfa0
push 0x100ca66c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x10273cc4]
xor ebx, ebx
cmp eax, ebx
jne 0x100f6160
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100f615b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x101c2678
lea ecx, [ebp - 0x220]
push ecx
push 0x101be288
lea edx, [ebp - 0x42c]
push edx
call fcn.100ca1f6
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.10173930
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f615b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100f6152
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f6152
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x10273cc4], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f6152
push esi
call fcn.10173959
add esp, 4
mov eax, dword [0x10273cc4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret