joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f99e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10260cc], edi
jne 0x100fa29
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
je 0x1014605
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10260cc], edi
pop esi
je 0x100fa3b
dec eax
jne 0x100fa29
cmp dword [ebp - 0x11c], 5
je 0x101461d
cmp dword [ebp - 0x11c], 4
jbe 0x101467b
mov dword [0x10260cc], 0x20
mov ecx, dword [ebp - 4]
mov eax, dword [0x10260cc]
xor ecx, ebp
pop edi
call fcn.01001bf0
leave
ret
cmp dword [ebp - 0x11c], 4
je 0x101468a
jmp 0x100fa29
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
jmp 0x100f9f2
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x101466c
dec eax
je 0x1014659
dec eax
je 0x101463c
mov dword [0x10260cc], 0x14
jmp 0x100fa29
cmp word [ebp - 0xc], 1
jb 0x101464d
mov dword [0x10260cc], 0x10
or dword [0x10260cc], 4
jmp 0x100fa29
cmp word [ebp - 0xc], 2
jb 0x101464d
mov dword [0x10260cc], 8
jmp 0x101464d
mov dword [0x10260cc], 4
jmp 0x100fa29
mov dword [0x10260cc], 2
jmp 0x100fa3b
cmp dword [ebp - 0x118], edi
je 0x10146a8
cmp dword [ebp - 0x118], 0xa
je 0x10146a8
cmp dword [ebp - 0x118], 0x5a
jne 0x100fa29
mov dword [0x10260cc], 1
jmp 0x100fa29

Function at 0x1019964
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x101997f
push 0x80004005
call fcn.0101957f
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 0x1019981
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 0x101a087
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010198c2
mov edi, eax
cmp edi, esi
je 0x101a0f9
lea ecx, [ebp - 0x214]
call fcn.0101984f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001bf0
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x101a117
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0101a087
cmp eax, esi
jne 0x101a162
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x101a101
lea ecx, [ebp - 0x214]
call fcn.0101984f
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0101973a
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0101984f
mov eax, esi
jmp 0x101a0e9
Function at 0x101b3c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1021d3f
call fcn.010041d8
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x101b420
call fcn.01009cbf
mov esi, eax
jmp 0x101b529
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x101b439
call fcn.01009cbf
jmp 0x101b51b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x101b42f
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x101b49f
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x101b485
lea ecx, [ebp - 0x418]
call fcn.0101a026
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01019f35
mov eax, esi
call fcn.01004218
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0101a5d8
mov dword [ebp - 4], 1
jmp 0x101b4cd
cmp dword [ebp - 0x418], esi
jne 0x101b4dc
mov esi, 0x8007000e
jmp 0x101b51d
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x101b42f
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0101b28b
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x101b48a
lea ecx, [ebp - 0x418]
call fcn.0101a026
jmp 0x101b48a

Function at 0x101e03c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101532c
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.010092c1
add esp, 0x10
test eax, eax
jl 0x101e0be
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x101e0be
cmp dword [ebp - 0x2c], 0x14
jne 0x101e0be
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0101e00f
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001bf0
leave
ret 4
Function at 0x101e0d7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101532c
push 0x10
push eax
xor bl, bl
call fcn.010092c1
add esp, 0x10
test eax, eax
jl 0x101e147
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e147
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101e13e
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01001bf0
leave
ret 4

Function at 0x101e15f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101dd35
test al, al
je 0x101e2ec
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0101dd0f
push 0x101e310
lea ecx, [ebp - 0x16c]
call fcn.0101e03c
test al, al
je 0x101e1d5
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x101e1d5
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x101e1d5
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x101e1d5
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x101e2ec
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101e304
push 0x10
push eax
call fcn.010092c1
add esp, 0x10
test eax, eax
jl 0x101e2ec
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x101e2fc
push 0x10
push eax
call fcn.010092c1
add esp, 0x10
test eax, eax
jl 0x101e2ec
push edi
xor edi, edi
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.010074d0
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x101e2eb
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x101e2eb
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x101e2eb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x10152fc
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x10056d8
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x101e2eb
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001bf0
leave
ret
Function at 0x101f6f3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov dword [ebp - 0xc], eax
je 0x101f717
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebp + 8], 1
je 0x101f785
mov edi, dword [esi + 0x68]
test edi, edi
je 0x101f785
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101f72a
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x6c]
push 0
add ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ecx
push eax
push dword [ebp + 0xc]
mov ebx, 0x4e4
push 9
push ebx
mov dword [ebp - 8], eax
call edi
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
cmp eax, 0x7ffe2
jbe 0x101f76a
mov ecx, esi
call fcn.0101f52c
push dword [ebp - 4]
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push 9
push ebx
call edi
add eax, eax
add dword [esi + 0x6c], eax
pop ebx
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x101f7d0
je 0x101f7a8
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x101f7c0
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
leave
ret 8

Function at 0x101f7d8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x101f7fc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x101f841
cmp dword [esi + 0x68], 0
je 0x101f841
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x101f822
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101f814
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.0101f66e
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x101f888
je 0x101f862
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x101f878
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10205f5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1020649
push 3
lea eax, [ebp - 0x44]
push 0x102065c
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001bf0
leave
ret

Function at 0x1020667
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x1026a2c]
jne 0x1020702
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10207f8
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020701
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10208b0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1020701
push 3
push dword [esi*8 + 0x1020718]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10206f3
inc esi
cmp esi, 0x1c
jae 0x1020701
jmp 0x10206d2
mov ax, word [esi*8 + 0x102071c]
mov word [0x1026a2c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x1026a2c]
xor ecx, ebp
call fcn.01001bf0
leave
ret
Function at 0x1002414
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebx
push esi
xor ebx, ebx
push 0x19a
mov dword [0x1005954], ebx
mov dword [0x1005a08], ebx
mov dword [0x1005958], ebx
call fcn.010023cd
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
je 0x100244c
push eax
push dword [0x1005b30]
call esi
mov dword [0x1005958], eax
push 0x1a4
call fcn.010023cd
cmp eax, ebx
je 0x1002468
push eax
push dword [0x1005b30]
call esi
mov dword [0x1005a08], eax
push 0x1ae
call fcn.010023cd
cmp eax, ebx
je 0x1002484
push eax
push dword [0x1005b30]
call esi
mov dword [0x1005954], eax
mov eax, dword [0x1005958]
cmp eax, ebx
je 0x1002602
cmp dword [0x1005a08], ebx
je 0x1002602
cmp dword [0x1005954], ebx
je 0x1002602
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call esi
push dword [0x1005a08]
mov dword [0x1005a04], eax
call esi
push dword [0x1005954]
mov dword [0x100595c], eax
call esi
cmp dword [0x10056c8], ebx
mov dword [0x1005a00], eax
jne 0x10024e3
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x10024f1
push 0x808080
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [0x10056c8]
neg ecx
sbb ecx, ecx
push 0x10
and ecx, 0x38
push 0x10
mov dword [0x1005158], eax
add ecx, 0x30
call fcn.010023f1
mov edx, 0x10059c0
mov esi, ecx
mov dword [edx], esi
add edx, 4
add esi, eax
cmp edx, 0x1005a00
jl 0x1002516
push 0x17
push 0xd
call fcn.010023f1
mov edx, 0x1005a60
mov esi, ecx
mov dword [edx], esi
add edx, 4
add esi, eax
cmp edx, 0x1005a90
jl 0x1002535
push 0x18
push 0x18
call fcn.010023f1
mov edx, 0x1005960
mov dword [edx], ecx
add edx, 4
add ecx, eax
cmp edx, 0x1005974
jl 0x1002552
push ebp
push edi
push dword [0x1005b24]
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor esi, esi
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esi + 0x1005a20], eax
jne 0x100258f
push 0x1001220
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10
push 0x10
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
lea edi, [esi + 0x1005980]
mov dword [edi], eax
jne 0x10025b1
push 0x1001204
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [edi]
push dword [esi + 0x1005a20]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x1005a04]
mov ecx, dword [esi + 0x10059c0]
push ebx
push eax
add ecx, eax
push ecx
push 0x10
push ebx
push ebx
push ebx
push 0x10
push 0x10
push ebx
push ebx
push dword [esi + 0x1005a20]
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
add esi, 4
cmp esi, 0x40
jl 0x1002573
push ebp
push dword [0x1005b24]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
inc eax
pop ebp
jmp 0x1002604
xor eax, eax
pop esi
pop ebx
ret
Function at 0x10026a7
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
inc eax
cmp dword [0x1005338], eax
mov dword [ebp - 8], 0x37
mov dword [ebp - 0xc], eax
jl 0x100272a
push ebx
push esi
mov ebx, 0x1005360
xor esi, esi
inc esi
cmp dword [0x1005334], esi
mov dword [ebp - 4], 0xc
jl 0x1002713
push 0xcc0020
xor eax, eax
mov al, byte [ebx + esi]
push 0
push 0
and eax, 0x1f
push dword [eax*4 + 0x1005a20]
push 0x10
push 0x10
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
add dword [ebp - 4], 0x10
inc esi
cmp esi, dword [0x1005334]
jle 0x10026db
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x10
add ebx, 0x20
cmp eax, dword [0x1005338]
jle 0x10026c9
pop esi
pop ebx
leave
ret 4

Function at 0x1002d55
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [eax*4 + 0x10050d0]
push dword [0x1005950]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1002d7a
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [eax*4 + 0x10050d0]
push dword [0x1005950]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x1003e21
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001390
call fcn.0100400c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003e5e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003e5e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003e76
cmp eax, 0x20b
je 0x1003e63
mov dword [ebp - 0x1c], ebx
jmp 0x1003e8a
cmp dword [ecx + 0x84], 0xe
jbe 0x1003e5e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003e84
cmp dword [ecx + 0x74], 0xe
jbe 0x1003e5e
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 [0x1005b8c], 0xffffffff
or dword [0x1005b90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005178]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005174]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005b94], eax
call fcn.01004006
cmp dword [0x1005138], ebx
jne 0x1003ee5
push fcn.01004006
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003ff4
push 0x10011c4
push 0x10011c0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005170]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100516c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10011bc
push 0x10011b8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1003f7b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003f4f
cmp al, 0x22
jne 0x1003f41
cmp byte [esi], 0x22
jne 0x1003f58
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003f62
cmp al, 0x20
jbe 0x1003f54
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1003f86
movzx eax, word [ebp - 0x48]
jmp 0x1003f89
cmp byte [esi], 0x20
jbe 0x1003f58
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1003f7b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003fa6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003fdb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004045
ret
Function at 0x10040fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10013b0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004153
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004146
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004155
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004152c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401084
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40106e
test eax, eax
jne 0x40105d
cmp word [ebp + 0x94], 4
jb 0x401084
inc esi
cmp eax, 2
jne 0x401064
push eax
pop esi
jae 0x40106b
cmp eax, 1
jne 0x401084
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x401084
test eax, eax
jne 0x40107c
push 4
jmp 0x401083
cmp eax, 1
jne 0x401084
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412eda
add ebp, 0xa0
leave
ret