joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ad66
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d5504
mov eax, dword fs:[0]
push eax
mov eax, 0x1004c
call fcn.1009db10
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005adab
xor eax, eax
jmp 0x1005af43
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x1003c]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10058]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10030]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
mov dword [ebp - 0x10024], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005af11
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1005af00
push 0xffff
lea eax, [ebp - 0x1000f]
push ebx
push eax
mov byte [ebp - 0x10010], bl
call fcn.10097040
mov dword [ebp - 0x1001c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
mov dword [ebp - 0x10020], ebx
mov dword [ebp - 0x10018], ebx
push ebx
push ebx
push dword [ebp - 0x1001c]
push edi
call esi
push ebx
lea eax, [ebp - 0x10014]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10014], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005aeec
cmp dword [ebp - 0x10014], 0x10000
jae 0x1005ae93
mov dword [ebp - 0x10020], 1
cmp dword [ebp - 0x10014], ebx
je 0x1005aeec
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push ebx
lea eax, [ebp - 0x10028]
push eax
push dword [ebp - 0x10014]
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10028], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005aeec
mov ecx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10014]
cmp ecx, eax
jne 0x1005aeec
add dword [ebp - 0x1001c], eax
add dword [ebp - 0x10018], ecx
cmp dword [ebp - 0x10020], ebx
je 0x1005ae45
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1005af0a
mov dword [ebp - 0x10024], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10030]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10058]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1003c]
call fcn.100da990
mov eax, dword [ebp - 0x10024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10096f22
leave
ret 4
Function at 0x1005af61
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x101d5544
call fcn.10096f31
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x1005b02b
cmp dword [ebp + 8], ebx
je 0x1005b02b
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005b004
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], ebx
je 0x1005affa
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x1005affd
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100da990
mov eax, edi
jmp 0x1005b02d
xor eax, eax
call fcn.10097009
ret 8
Function at 0x1005b035
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x101d5577
call fcn.10096f31
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005b057
xor eax, eax
call fcn.10097009
ret 0xc
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100da930
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.1003b478
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005b148
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
ja 0x1005b14d
cmp dword [ebp + 0x10], ebx
je 0x1005b0ce
cmp eax, 0xa00000
ja 0x1005b14d
inc eax
push eax
call fcn.1009968a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1005b10f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da990
mov eax, esi
jmp 0x1005b04f
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push esi
call fcn.10097040
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov esi, dword [ebp - 0x14]
jmp 0x1005b0e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da990
jmp 0x1005b04d

Function at 0x1005b81a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x1005b82d
push 0xd
pop eax
jmp 0x1005b858
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005b830
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10060887
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x101d6221
call fcn.10096fd0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x100608e0
call fcn.1005b585
mov esi, eax
jmp 0x100609fb
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x100608f9
call fcn.1005b585
jmp 0x100609ed
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x100608ef
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10060966
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10060948
lea ecx, [ebp - 0x418]
call fcn.1005bfbc
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.1003f83d
mov eax, esi
call fcn.1009702c
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.1005ed53
mov dword [ebp - 4], 1
jmp 0x1006099f
cmp dword [ebp - 0x418], ebx
jne 0x100609ae
mov esi, 0x8007000e
jmp 0x100609ef
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100608ef
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1006045e
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1006094d
lea ecx, [ebp - 0x418]
call fcn.1005bfbc
jmp 0x1006094d

Function at 0x10061d08
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
push edi
jne 0x10061d74
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x10061d35
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x10061d41
xor eax, eax
jmp 0x10061d77
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x10061d67
push edi
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10061d74
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x10061d7a
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101d65eb
call fcn.10096f31
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100da930
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10061d08
test eax, eax
je 0x10061dcd
cmp dword [ebp + 8], 0
je 0x10061dcd
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10097626
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100da990
call fcn.10097009
ret 4

Function at 0x10062427
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.10061cde
test ebx, ebx
je 0x10062529
push esi
push ebx
call fcn.10097626
mov esi, eax
pop ecx
test esi, esi
jbe 0x10062528
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10097040
push 0x5c
push ebx
call fcn.10097976
add esp, 0x14
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x100624b9
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
pop ecx
lea esi, [esi + eax + 2]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
pop ecx
mov dword [edi + 0x28], eax
test eax, eax
je 0x10062528
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
call fcn.10097040
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x1006251b
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x28]
call fcn.10097591
push 0x101e5fb4
push dword [edi + 0x28]
call fcn.10097563
push ebx
push dword [edi + 0x28]
call fcn.10097563
add esp, 0x18
jmp 0x10062528
push esi
push ebx
push dword [edi + 0x28]
call fcn.100975dc
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret 4

Function at 0x1006b529
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x101d7356
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b58b
call fcn.10067fcc
cmp eax, 1
jne 0x1006b58b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f928
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f928
mov eax, esi
call fcn.10097009
ret 0x10
Function at 0x1006b5b4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x101d7381
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b616
call fcn.10067fcc
cmp eax, 1
jne 0x1006b616
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f928
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f928
mov eax, esi
call fcn.10097009
ret 0x14

Function at 0x1006b642
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x101d73ac
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b6a4
call fcn.10067fcc
cmp eax, 1
jne 0x1006b6a4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f928
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f928
mov eax, esi
call fcn.10097009
ret 8

Function at 0x1007979e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x100797e5
call fcn.10068be6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100797e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10079801
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10079316
mov esi, eax
test edi, edi
je 0x100797ff
test ebx, ebx
je 0x100797ff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007d590
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101d8701
call fcn.10096f31
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1007d5b5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1007d5fb
lea ecx, [ebp - 0x10]
call fcn.1006433f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10063a45
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f928
mov eax, esi
call fcn.10097009
ret 8

Function at 0x10086c71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10086c95
cmp dword [edi + 0x54], 0
jne 0x10086c95
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10068be6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10086c32
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10096f22
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10246460]
jne 0x10096f2c
repz ret
jmp fcn.100a170c
Function at 0x100dbb50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101da64f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1020db10]
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 0x100dbbbb
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 0x100dbbbd
mov esi, edi
test esi, esi
je 0x100dbc87
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 0x100dbc7c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100dbbff
cmp eax, 2
je 0x100dbbff
cmp eax, 6
je 0x100dbbff
cmp eax, 7
jne 0x100dbc7c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10063988
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 0x100dbc62
lea ecx, [esp + 0x14]
call fcn.100cc900
cmp esi, dword [esp + 0x14]
je 0x100dbc57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.100639b7
add esp, 4
jmp 0x100dbc99
call fcn.100639b7
add esp, 4
lea ecx, [esp + 0x10]
push 0x1026c4c8
call fcn.100cc900
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x100dbc87
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100dbc99
push eax
lea ecx, [esp + 0x14]
call fcn.100cc900
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100cbc80
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100cc680
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 0x100f3500
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e048
push 0x101c1c80
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 [0x1026c7cc]
xor ebx, ebx
cmp eax, ebx
jne 0x100f3660
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 0x100f365b
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 str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
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.10063988
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f365b
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 0x100f3652
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f3652
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026c7cc], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f3652
push esi
call fcn.100639b7
add esp, 4
mov eax, dword [0x1026c7cc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f3bf0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1026ca40]
test eax, eax
jne 0x100f3cae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1026c7e0
mov dword [0x1026ca40], 1
mov dword [0x1026c7e0], 0x114
call esi
mov edx, dword [0x1026c7f0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10249068], eax
je 0x100f3ca2
push 0x1026c8f8
mov dword [0x1026c8f8], 0x11c
call esi
push 0x10248cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1026ca3c], eax
push 0x1026ca18
je 0x100f3c70
call eax
jmp 0x100f3c76
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026c8fc]
cmp eax, 6
jae 0x100f3c8e
cmp eax, 5
jne 0x100f3ca2
cmp dword [0x1026c900], 2
jb 0x100f3ca2
cmp word [0x1026ca18], 9
jne 0x100f3ca2
mov dword [0x1026c7d4], 1
call fcn.100f3cc0
mov eax, 1
pop esi
ret
mov eax, 1
ret