joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ac6
Capabilities:
Persist via active setup registry key
Query environment variable
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
xor esi, esi
push esi
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1006c9f
push edi
push 8
pop edi
push edi
lea eax, [ebp - 0x620]
push eax
push esi
push 0x20006
push 0x10049a0
mov dword [ebp - 0x620], esi
call dword [sym.imp.SHLWAPI.dll_SHRegCreateUSKeyW]
test eax, eax
jne 0x1006c98
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegWriteUSValueW]
push edi
push 0x24
push 0x1004a58
xor ebx, ebx
inc ebx
push ebx
push 0x1003328
push dword [ebp - 0x620]
call esi
push edi
push 0x1e
push 0x1004a7c
push ebx
push 0x1004a9c
push dword [ebp - 0x620]
call esi
push edi
push 4
lea eax, [ebp - 0x624]
push eax
push 4
push 0x1004ab4
push dword [ebp - 0x620]
mov dword [ebp - 0x624], ebx
call esi
push edi
push 4
push 0x1004acc
push ebx
push 0x1004ad0
push dword [ebp - 0x620]
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1004ae0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1006c16
lea eax, [ebp - 0x20c]
push eax
push eax
push 0x1004af8
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.010051d0
add esp, 0x14
test eax, eax
js 0x1006c16
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006beb
sub eax, edx
push 8
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push 0x1004b8c
push dword [ebp - 0x620]
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
push 0x4025
push 0x1fb0
push 0
push 9
push 0x1004ba0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.010051d0
add esp, 0x28
test eax, eax
js 0x1006c8c
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006c61
sub eax, edx
push 8
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push 0x1004bb8
push dword [ebp - 0x620]
call esi
push dword [ebp - 0x620]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01007066
leave
ret
Function at 0x1008fc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1008ff8
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01007126
add esp, 0x14
jmp 0x10090d6
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10090d6
test al, 0x40
jne 0x10090d6
test al, 2
je 0x100901a
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10090d6
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1008fda
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10090c6
cmp eax, 0xffffffff
je 0x10090c6
test byte [esi + 0xc], 0x82
jne 0x100909b
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1009086
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1009086
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100908b
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100909b
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x10090b9
mov eax, dword [esi + 0xc]
test al, 8
je 0x10090b9
test eax, 0x400
jne 0x10090b9
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x10090d9
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100a7c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100a7f0
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01007126
add esp, 0x14
jmp 0x100a8da
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100a8da
test al, 0x40
jne 0x100a8da
test al, 2
je 0x100a812
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100a8da
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100a7d2
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100a8ca
cmp eax, 1
je 0x100a8ca
cmp eax, 0xffffffff
je 0x100a8ca
test byte [esi + 0xc], 0x82
jne 0x100a89c
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100a887
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100a887
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100a88c
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100a89c
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100a8ba
mov eax, dword [esi + 0xc]
test al, 8
je 0x100a8ba
test eax, 0x400
jne 0x100a8ba
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x100a8df
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100ab84
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x1013578
call fcn.010076e4
xor edi, edi
mov dword [ebp - 0x20], edi
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
push edi
push 0x100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 0xc]
call dword [0x101857c]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100ac36
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x100abd8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push edi
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x38]
and esi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1018580]
cmp eax, edi
je 0x100ac36
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x100ac36
push edi
push eax
push dword [ebp - 0x28]
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x100ac36
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0100ac7e
cmp dword [ebp - 0x20], edi
je 0x100ac6e
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100ac59
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x100ac65
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x100ac6e
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
call fcn.01007729
ret 0x14
Function at 0x100adae
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x10135b8
call fcn.010076e4
xor edi, edi
mov dword [ebp - 0x20], edi
push dword [0x1015434]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x100aee5
push 0x101852c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov ecx, dword [0x1018520]
cmp ecx, edi
jne 0x100ae19
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1018520], eax
cmp eax, edi
je 0x100ae8d
mov dword [0x1018524], 1
jmp 0x100ae4c
mov eax, dword [0x1018524]
cmp dword [0x1018528], eax
jne 0x100ae4c
lea eax, [eax*4 + 4]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, edi
je 0x100ae8d
mov dword [0x1018520], eax
inc dword [0x1018524]
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x100ae8d
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x1015434]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100ae8d
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0100aeb9
cmp dword [ebp - 0x20], edi
je 0x100aeba
mov eax, dword [0x1018528]
mov ecx, dword [0x1018520]
mov dword [ecx + eax*4], esi
inc dword [0x1018528]
jmp 0x100aed8
push edi
push dword [0x1015434]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push 0x101852c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.01007729
ret
Function at 0x100b03c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100b0b9
cmp eax, esi
ja 0x100b0b9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100b0cf
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100b0cf
xor eax, eax
jmp 0x100b107
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1001804
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100b0cb
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
push edi
call fcn.01004f05
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01007066
leave
ret 8

Function at 0x100b29c
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1015744]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100b2d5
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100b2d5
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x100b2d5
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100b2d5
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x100b2d5
mov eax, dword [eax]
test eax, eax
jne 0x100b2da
mov eax, 0x1001484
ret
Function at 0x100c428
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100c49d
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x100c48a
mov edi, dword [ebp - 0x14]
jmp 0x100c492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x100c4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007066
leave
ret
Function at 0x100cfd0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1018598], 0
jne 0x100d186
mov eax, dword [ebp + 8]
mov dword [0x1018598], 1
mov dword [0x1018590], eax
call fcn.0100ca63
test eax, eax
je 0x100d07f
push 0x1001de0
push 0x1001dcc
mov dword [0x1018548], 0x100c8bc
mov dword [0x1018558], 0x100c930
mov dword [0x1018564], 0x100c9aa
mov dword [0x1018574], 0x100ca0e
mov dword [0x1018578], 0x100ca1f
mov dword [0x101857c], 0x100ca30
mov dword [0x1018588], 0x100ca41
mov dword [0x101858c], 0x100ca52
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d0cf
mov dword [0x1018584], eax
jmp 0x100d0d9
mov dword [0x1018548], 0x100cb0e
mov dword [0x1018558], 0x100cbea
mov dword [0x1018564], 0x100cccc
mov dword [0x1018574], 0x100ca0e
mov dword [0x1018578], 0x100cd9c
mov dword [0x101857c], 0x100ce0d
mov dword [0x1018588], 0x100ceaa
mov dword [0x101858c], 0x100cf47
mov dword [0x1018584], 0x100c8b2
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [0x101854c], 0x100c7c9
mov dword [0x1018550], 0x100c7da
mov dword [0x1018554], 0x100c7eb
mov dword [0x101855c], 0x100c7fc
mov dword [0x1018560], 0x100c81d
mov dword [0x1018568], 0x100c82e
mov dword [0x101856c], 0x100c876
mov dword [0x1018570], 0x100ca93
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1001dac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100d17c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1018580], 0x100c898
test eax, eax
jne 0x100d186
mov dword [0x1018580], 0x100c8a8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.01007066
leave
ret 4

Function at 0x101273c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x218], 0xffffffff
or dword [ebp - 0x210], 0xffffffff
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1004bb8
push 0x1002940
mov edi, 0x80000002
push edi
mov dword [ebp - 0x214], 0x208
call esi
xor eax, eax
cmp word [ebp - 0x20c], ax
je 0x10127c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010126e8
mov eax, dword [ebp - 0x210]
jmp 0x1012827
cmp dword [ebp - 0x210], 0xffffffff
jne 0x1012825
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push 0x10028b8
push edi
mov dword [ebp - 0x214], 0x208
call esi
cmp word [ebp - 0x20c], 0
je 0x1012825
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0101283a
jmp 0x10127c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01007066
leave
ret
Function at 0x101283a
Capabilities:
Copy file
Delete file
Get common file path
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x424], eax
mov dword [edi], eax
lea eax, [ebp - 0x420]
push eax
push esi
mov dword [ebp - 0x428], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
push esi
mov dword [ebp - 0x418], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004f05
cmp dword [ebp - 0x418], 0
jne 0x1012919
lea eax, [ebp - 0x20c]
push eax
call fcn.010129ef
test eax, eax
je 0x10129d7
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1002aa8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x424], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x418], eax
test eax, eax
je 0x10129ca
push dword [ebp - 0x418]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10129c1
push esi
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10129ba
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x41c]
push eax
je 0x101298a
lea eax, [ebp - 0x42c]
push eax
push 0x1003324
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10129ba
cmp dword [ebp - 0x41c], 0
je 0x10129ba
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x10129b8
lea eax, [ebp - 0x430]
push eax
push 0x1002a48
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10129ba
cmp dword [ebp - 0x41c], 0
je 0x10129ba
mov eax, dword [ebp - 0x430]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x424], 0
je 0x10129d7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01007066
leave
ret 0x10
Function at 0x1012e22
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01012dae
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1012e95
cmp dword [ebp - 0x94], 5
jb 0x1012eb6
jmp 0x1012eb2
cmp dword [ebp - 0x88], 1
jne 0x1012eb6
cmp dword [ebp - 0x94], 4
ja 0x1012eb2
jne 0x1012eb6
cmp dword [ebp - 0x90], 0
jbe 0x1012eb6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002f38
call fcn.01012c8c
test eax, eax
jns 0x1012ed7
mov byte [0x10185a1], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01007066
leave
ret
Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov eax, dword [esp]
add esp, 4
mov esi, 0x5b5651aa
call fcn.00408963
and esi, edx
or esi, esi
xor dword [edi], eax
add esi, esi
inc edi
mov esi, esi
dec edx
cmp edi, ebx
jne fcn.00408936
ret
Function at 0x969df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x79d015
lea edi, [esi - 0x39c015]
push edi
or ebp, 0xffffffff
jmp 0x969e12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x969e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e08
mov eax, 1
add ebx, ebx
jne 0x969e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x969e3c
jne 0x969e5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e5b
dec eax
add ebx, ebx
jne 0x969e48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x969e20
add ebx, ebx
jne 0x969e57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x969ead
xor ecx, ecx
sub eax, 3
jb 0x969e73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x969ee2
sar eax, 1
mov ebp, eax
jmp 0x969e7e
add ebx, ebx
jne 0x969e7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e4c
inc ecx
add ebx, ebx
jne 0x969e8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e4c
add ebx, ebx
jne 0x969e99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x969e8e
jne 0x969eaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x969e8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x969ecc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x969ebe
jmp 0x969e0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x969ecc
add edi, ecx
jmp 0x969e0e
pop esi
mov edi, esi
mov ecx, 0xd621
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x969eea
cmp byte [edi], 0x35
jne 0x969eea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x969eef
lea edi, [esi + 0x559000]
mov eax, dword [edi]
or eax, eax
je 0x969f5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5691b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5691d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x969f1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5691e0]
or eax, eax
je 0x969f58
mov dword [ebx], eax
add ebx, 4
jmp 0x969f39
call dword [esi + 0x5691dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x969f98
cmp al, 0xef
ja 0x969f82
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x969f64
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x969f71
mov eax, dword [edi]
add edi, 4
jmp 0x969f71
mov ebp, dword [esi + 0x5691e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x969fcc
sub esp, 0xffffff80
jmp 0x463090