joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get file attributes
Get file size
Get socket status
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x1000
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
push 0
call sub.MSACM32.dll_acmFormatChooseW
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0
push 0x41b0e8
push 0
push 0
push 0x41b0e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x80070057
jne 0x401168
cmp dword [ebp - 0x20], 0
jne 0x40108b
mov ecx, 0x41c040
test ecx, ecx
jne 0x40108b
mov edx, 0x42a058
test edx, edx
je 0x401168
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x40109f
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
jmp 0x4010c5
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [0x4bf188], ecx
mov ecx, 0x40
push ecx
push dword [ebp - 0x18]
mov eax, 0x1720
push eax
push 0
cmp dword [ebp - 0x20], 0x10a
je 0x401150
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x401127
mov dword [ebp - 0x10], ebx
mov edx, 0xffffffff
push edx
pop ecx
call dword [ebp - 0x10]
mov dword [0x4bf188], eax
jmp 0x401135
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 8], 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, 0x17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403745
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4be6b0
cmp edx, dword [eax]
je 0x403767
add eax, 8
inc ecx
cmp eax, 0x4be740
jl 0x403758
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4be6b0]
jne 0x403895
mov eax, dword [0x4bf19c]
cmp eax, 1
je 0x40386f
test eax, eax
jne 0x403798
cmp dword [0x4be2e8], 1
je 0x40386f
cmp edx, 0xfc
je 0x403895
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037cf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004055e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004039d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403812
lea eax, [ebp - 0x1a4]
push eax
call fcn.004039d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b4d4
push edi
call fcn.00406f80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004055e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004055f0
lea eax, [ebp - 0xa0]
push 0x41b4b4
push eax
call fcn.004055f0
push dword [esi + 0x4be6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004055f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406ef6
add esp, 0x2c
pop edi
jmp 0x403895
lea eax, [ebp + 8]
lea esi, [esi + 0x4be6b4]
push 0
push eax
push dword [esi]
call fcn.004039d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4bd304
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x40143d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x401468
lea eax, [ebp - 0x90]
push str._auto
push eax
call edi
pop ecx
pop ecx
jmp 0x40147a
lea eax, [ebp - 0x90]
push 0x40dcd4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], ebx
je 0x401491
lea eax, [ebp - 0x90]
push str.__scheduled
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x90]
push ebx
mov esi, 0x40d7bc
push eax
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x4014d6
push esi
mov esi, 0x40dbbc
push str.Started_UpdateChecker_process_Successfully:_s_n
push esi
call edi
push esi
call fcn.00407459
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4014f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 0x40dbbc
push ebx
push str.Failed_to_start_UpdateChecker_process:_d_n
push esi
call edi
push esi
call fcn.00407459
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40261a
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
lea eax, [ebp - 8]
push 1
push eax
call fcn.0040475e
pop ecx
test eax, eax
pop ecx
je 0x402802
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0x10]
push 0x40c1ac
push eax
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1b0
mov dword [ebp - 4], 3
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
and byte [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1b8
mov dword [ebp - 4], 0x100
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x98]
push 0x40c1c8
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1cc
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x118]
push 0x40c1e0
push eax
call edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c1e4
mov dword [ebp - 4], 0x80
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c1f4
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40275e
push edi
lea eax, [ebp - 0x98]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40c204
lea eax, [ebp - 0x218]
push 0x40c208
push eax
call fcn.004068a4
add esp, 0x20
test eax, eax
je 0x40275e
push 0x40c20c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c21c
mov dword [ebp - 0x14], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4027f5
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c22c
mov dword [ebp - 0x18], edi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x98]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40c240
lea eax, [ebp - 0x218]
push 0x40c244
push eax
call fcn.004068a4
add esp, 0x20
test eax, eax
je 0x4027f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40c248
push dword [ebp - 8]
call esi
push 0x40c25c
push dword [ebp - 8]
call esi
push 0x40c270
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x402804
xor edi, edi
mov dword [0x40dd1c], edi
xor eax, eax
pop edi
leave
ret 4
Function at 0x402811
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
call fcn.00406118
test eax, eax
je 0x4028d3
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040475e
pop ecx
test eax, eax
pop ecx
je 0x4028d0
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x40c280
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40288e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x40c290
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x4028d0
cmp dword [0x40dd1c], ebx
jne 0x4028d0
cmp dword [ebp + 8], ebx
jne 0x4028c0
push 0x40dd1c
push ebx
push ebx
push fcn.0040261a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4028d0
push ebx
mov dword [0x40dd1c], 1
call fcn.0040261a
push 1
pop eax
pop ebx
leave
ret
Function at 0x403a88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x40dc44]
push ebx
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x34], eax
call fcn.004057fb
mov dword [esi + 0x38], eax
call fcn.00402152
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x3c], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x34]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x403f8e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
lea eax, [esi + 0x58]
push ebx
push eax
push 0x7b
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00403cad
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x404de7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp + 8]
xor ebx, ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x40c9f4
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404e1a
xor eax, eax
jmp 0x404e73
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push 0x1e
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
jne 0x404e3c
mov byte [ebp - 0x34], bl
push esi
push edi
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x34]
push ecx
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f5d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
and dword [ebp - 4], 0
push 0x25
xor eax, eax
pop ecx
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40500c
cmp dword [ebp - 0x94], 6
je 0x405007
cmp dword [ebp - 0x94], 5
jne 0x40500c
cmp dword [ebp - 0x90], 1
jae 0x405007
lea eax, [ebp - 0x84]
test eax, eax
je 0x404ff8
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ff8
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push 0x40ca80
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x90], 0
jne 0x40500c
cmp dword [ebp - 4], 2
jb 0x40500c
push 1
pop eax
jmp 0x40500e
xor eax, eax
pop edi
leave
ret

Function at 0x405011
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x40506b
cmp dword [ebp - 0x90], 6
jne 0x405057
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x40506b
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x40506d
xor eax, eax
leave
ret
Function at 0x405fa8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0x2001f
push ebx
push 0x40cdcc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405fd7
mov eax, 0x80004005
jmp 0x406115
cmp dword [ebp + 8], ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
jne 0x405ff4
push 0x40cdf4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x406012
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 8]
push 1
push ebx
push str.LocalFileName
push dword [ebp - 4]
call esi
cmp dword [ebp + 0xc], ebx
jne 0x406027
push 0x40ce14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x406045
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0xc]
push 1
push ebx
push str.InstallOptions
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x10], ebx
jne 0x40605a
push 0x40ce34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x406078
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0x10]
push 1
push ebx
push str.UpdateDescription
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x14], ebx
jne 0x40608d
push 0x40ce5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4060ab
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0x14]
push 1
push ebx
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x18], ebx
jne 0x4060c0
push 0x40ce84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4060de
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0x18]
push 1
push ebx
push str.BalloonTitle
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], ebx
jne 0x4060f3
push 0x40cea4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x406111
mov edi, dword [ebp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0x1c]
push 1
push ebx
push str.BalloonTip
push dword [ebp - 4]
call esi
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x406166
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x40cecc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4061fe
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40cef4
push dword [ebp - 4]
call esi
push 0x40cf04
push dword [ebp - 4]
call esi
push 0x40cf0c
push dword [ebp - 4]
call esi
push str.InstalledJREVersion
push dword [ebp - 4]
call esi
push str.NewJREVersion
push dword [ebp - 4]
call esi
push 0x40cf38
push dword [ebp - 4]
call esi
push str.UpdateDetected
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyCnt
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyTime
push dword [ebp - 4]
call esi
push str.UpdAvailElapsed
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x406200
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push str.OpenProcessToken
push edi
mov dword [ebp - 8], eax
call esi
push str.GetTokenInformation
push edi
mov dword [ebp - 0x18], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x10], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x28]
push 2
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x14], ebx
call dword [ebp - 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x4062ef
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x4062ef
inc dword [ebp - 8]
add dword [ebp - 0x10], 8
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jb 0x4062d2
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [ebp - 0x20]
cmp edi, ebx
je 0x40631e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406326
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call esi
test eax, eax
jne 0x406372
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x406397
cmp dword [ebp - 0x8c], 2
jne 0x406394
cmp dword [ebp - 0x98], 6
jae 0x406394
cmp dword [ebp - 0x98], 4
jb 0x406394
call fcn.00406200
jmp 0x406397
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4065a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27
xor eax, eax
pop ecx
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push str.win32
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb4], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb4]
push eax
call edi
test eax, eax
jne 0x4065ff
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x94
push eax
call edi
cmp dword [ebp - 0xa4], 2
jne 0x40667c
cmp dword [ebp - 0xb0], 4
jne 0x40661b
push str.winnt
jmp 0x4066b3
cmp dword [ebp - 0xb0], 6
jne 0x406644
cmp dword [ebp - 0xac], ebx
jne 0x4066b9
cmp byte [ebp - 0x1a], 1
jne 0x40663d
push str.winvista
jmp 0x4066b3
push str.winlong
jmp 0x4066b3
cmp dword [ebp - 0xb0], 5
jne 0x4066b9
cmp dword [ebp - 0xac], ebx
jne 0x40665c
push str.win2000
jmp 0x4066b3
cmp dword [ebp - 0xac], 1
jne 0x40666c
push str.winxp
jmp 0x4066b3
cmp dword [ebp - 0xac], 2
jne 0x4066b9
push str.win2003
jmp 0x4066b3
cmp dword [ebp - 0xa4], 1
jne 0x4066b9
cmp dword [ebp - 0xb0], 4
jne 0x4066ae
cmp dword [ebp - 0xac], 0xa
jne 0x40669e
push str.win98
jmp 0x4066b3
cmp dword [ebp - 0xac], 0x5a
jne 0x4066ae
push str.winme
jmp 0x4066b3
push str.win95
lea eax, [ebp - 0x18]
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18]
push eax
push 0x40d0b8
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0xa0]
add esp, 0xc
test eax, eax
je 0x40671f
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40671f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa0]
push str.Service_Pack__d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40671f
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push str._s_sp_d
push dword [ebp + 8]
call ebx
add esp, 0x10
mov ebx, dword [ebp + 0x10]
and word [ebp - 0xd8], 0
push str.Unknown
push ebx
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40675e
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40675e
lea ecx, [ebp - 0xd8]
push ecx
call eax
jmp 0x40676b
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x406776
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xd8]
test eax, eax
je 0x406799
cmp eax, 6
je 0x406792
cmp eax, 9
jne 0x4067a1
push str.amd64
jmp 0x40679e
push str.ia64
jmp 0x40679e
push 0x40d110
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret