joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30023326
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x30023366
xor eax, eax
jmp 0x300234d3
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.3002558e
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x300233cb
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x30023467
test edi, edi
je 0x30023467
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.3002540c
test eax, eax
je 0x3002344d
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30025546
cmp dword [ebp - 0x40c], 5
jne 0x3002344d
cmp dword [ebp - 0x418], 0
jne 0x3002344d
mov dword [ebp - 0x418], ebx
jmp 0x300233a6
cmp dword [esi], 0
je 0x30023467
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x30023474
cmp eax, 0xffffffff
jne 0x30023493
cmp edi, ecx
je 0x30023483
push ecx
push 0x787a6c65
call fcn.3001d0f8
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x300234bb
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x300234ac
mov eax, 0x300018f8
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.30027372
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x300234cd
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret 0x1c
Function at 0x30024268
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.30023297
test eax, eax
jne 0x30024285
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.30021a7a
push dword [ebp - 0x1c]
push 0x12
call fcn.30021a7a
push 0x3000d8d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x30024387
push 0x3000d8b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30024387
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x30024387
push dword [ebp - 4]
call fcn.3001cb1f
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x3002437f
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x3002437f
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x3002437f
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x30024337
dec eax
dec eax
jne 0x30024348
push dword [edx]
call fcn.30023b75
cmp ebx, eax
pop ecx
ja 0x30024348
mov ebx, eax
jmp 0x30024348
push dword [edx]
inc dword [ebp - 8]
call fcn.30023b75
cmp esi, eax
pop ecx
ja 0x30024348
mov esi, eax
add edx, 0x18
dec edi
jne 0x3002431b
test esi, esi
je 0x3002435d
push esi
push 0x19e1
call fcn.30021a7a
test ebx, ebx
je 0x3002436c
push ebx
push 0x19e2
call fcn.30021a7a
cmp dword [ebp - 8], 0
je 0x3002437f
push dword [ebp - 8]
push 0x19e0
call fcn.30021a7a
push dword [ebp - 0xc]
call fcn.3001cb7c
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x300243a2
push esi
push 0x72766c74
call fcn.3001d0f8
cmp dword [ebp - 0x1c], esi
jbe 0x30024435
push 0x3000d89c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x300243bb
push esi
push 0x3366646b
jmp 0x300243d3
push 0x3000d884
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x300243da
push eax
push 0x3366646c
call fcn.3001d0f8
jmp 0x3002442a
mov eax, dword [ebp - 0x1c]
push 0x18
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001cb1f
mov esi, eax
test esi, esi
je 0x3002442a
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x30024419
push 0
push 0x72766c76
call fcn.3001d0f8
jmp 0x30024423
push dword [esi + 4]
push 0x10
call fcn.30021a7a
push esi
call fcn.3001f708
pop ecx
test ebx, ebx
je 0x30024435
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3002449d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x30024552
push esi
push 0x33753467
call fcn.3001d0f8
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.30021a7a
push edi
push 0xfa2
call fcn.30021a7a
push edi
push 0xfa3
call fcn.30021a7a
push edi
push 0xfa4
call fcn.30021a7a
cmp ebx, esi
je 0x30024543
push ebx
call fcn.3001f708
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x30024507
push edi
call fcn.3001cb1f
mov ebx, eax
cmp ebx, esi
jne 0x3002457f
push esi
push 0x33753468
jmp 0x30024502
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x3002459d
push esi
push 0x33753469
jmp 0x30024502
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x300061bc
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x300245c5
push esi
push 0x3375346a
jmp 0x30024502
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.30021a7a
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x3002452e

Function at 0x300247af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x3002481f
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001cdd4
test eax, eax
je 0x3002481f
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x30024817
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x300061bc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x30024817
cmp dword [ebp - 8], ebx
je 0x30024817
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.3001cd09
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x30025fe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x30026073
mov eax, dword [ebp + 8]
test eax, 3
je 0x30026026
cmp byte [eax], 0
je 0x3002606a
lea eax, [eax + 1]
test eax, 3
je 0x30026026
cmp byte [eax], 0
je 0x3002606a
lea eax, [eax + 1]
test eax, 3
je 0x30026026
cmp byte [eax], 0
je 0x3002606a
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x30026026
test cl, cl
lea eax, [eax - 4]
je 0x3002606a
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3002606a
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3002606a
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3002606a
lea eax, [eax + 1]
jmp 0x30026026
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30026079
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x300260eb
mov eax, dword [ebp + 8]
test eax, 3
je 0x300260aa
cmp word [eax], 0
je 0x300260a3
lea eax, [eax + 2]
test eax, 3
je 0x300260aa
jmp 0x30026091
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x300260e5
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x300260aa
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x300260e5
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x300260e5
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x300260aa
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3002ac0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3002ac27
test al, 0x10
je 0x3002ac27
xor eax, eax
inc eax
jmp 0x3002ac29
xor eax, eax
pop ebp
ret 4

Function at 0x3002bbf6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300305d2
leave
ret

Function at 0x3002f383
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x3006bb84
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3002f3d4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3006bb88], eax
mov ax, word [ebp - 0x30]
mov word [0x3006bb8c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3006bb90], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3006bb94], eax
mov eax, esi
pop esi
leave
ret

Function at 0x3003051e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x3001b294
push 0x3000d8d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30030553
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x3001b290
push ebx
call edi
test esi, esi
mov dword [0x3001b290], esi
jne 0x300305b7
mov dword [0x3001b290], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300671ac], 0x44bf19b1
pop ebx
leave
ret
Function at 0x300305d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001b290]
jne 0x30031279
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3006bce0], eax
mov dword [0x3006bcdc], ecx
mov dword [0x3006bcd8], edx
mov dword [0x3006bcd4], ebx
mov dword [0x3006bcd0], esi
mov dword [0x3006bccc], edi
mov word [0x3006bcf8], ss
mov word [0x3006bcec], cs
mov word [0x3006bcc8], ds
mov word [0x3006bcc4], es
mov word [0x3006bcc0], fs
mov word [0x3006bcbc], gs
pushfd
pop dword [0x3006bcf0]
mov eax, dword [ebp]
mov dword [0x3006bce4], eax
mov eax, dword [ebp + 4]
mov dword [0x3006bce8], eax
lea eax, [ebp + 8]
mov dword [0x3006bcf4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3006bc30], 0x10001
mov eax, dword [0x3006bce8]
mov dword [0x3006bbe4], eax
mov dword [0x3006bbd8], 0xc0000409
mov dword [0x3006bbdc], 1
mov eax, dword [0x3001b290]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300671ac]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3006bc28], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3001b568
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bc28], 0
jne 0x30031369
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x300305df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000da20
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30030637
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000da18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30030637
mov al, 1
jmp 0x30030639
xor al, al
leave
ret 8
Function at 0x30030e08
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30034158
call fcn.3003107e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006bf28
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30030bf8
cmp eax, esi
jne 0x30030beb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x30030bfb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30030bd2
xor esi, esi
inc esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c0e
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30030c49
mov eax, dword [0x3006bf24]
test eax, eax
jne 0x30030c43
mov dword [0x3006bf24], esi
push 0x30001378
push 0x3000136c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30030c49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x30030d20
mov dword [0x3006bbd0], esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c6d
push 0x30001368
push 0x30001350
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006bf24], 2
cmp dword [ebp - 0x1c], ebx
jne 0x30030c7a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3006bf34], ebx
je 0x30030c9b
push 0x3006bf34
call fcn.3003143c
pop ecx
test eax, eax
je 0x30030c9b
push ebx
push 2
push ebx
call dword [0x3006bf34]
mov eax, dword [0x3006bbb8]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bbb8]
push dword [0x3006bbbc]
push dword [0x3006bbb4]
call fcn.3001c6cd
add esp, 0xc
mov dword [0x3006bbcc], eax
cmp dword [0x3006bbc0], ebx
jne 0x30030d06
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bbd0], ebx
jne 0x30030d14
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bbcc]
call fcn.300310c3
ret
call fcn.3003051e
jmp 0x30030bb0

Function at 0x30031694
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x300316c2
xor eax, eax
jmp 0x300316ea
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x300316df
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x300316ef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4
Function at 0x300317a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
je 0x300317f1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, edi
je 0x300317dc
cmp eax, esi
jbe 0x30031801
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x30303030
call fcn.3001d0f8
xor eax, eax
jmp 0x30031862
push 1
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x300317e2
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x3001b648
call fcn.300273d2
cmp dword [ebp + 8], edi
jne 0x30031830
push 0x3001b670
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031830
xor edi, edi
inc edi
push 0x3001b684
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031848
or edi, 2
push 0x3001b698
lea eax, [ebp - 0x20c]
push eax
call fcn.30031709
test eax, eax
je 0x30031860
or edi, 4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret 4

Function at 0x30031896
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
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
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x300318fe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x300318f5
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
Function at 0x30031d9a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x670]
push ebx
push eax
mov dword [ebp - 0x674], 0x44
call sub.MSVCR80.dll_memset
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x630], ebx
lea edi, [ebp - 0x62c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
neg esi
sbb esi, esi
push 0x3001b764
stosd dword es:[edi], eax
and esi, 0x3a980
call fcn.30031d5b
test eax, eax
je 0x30031ec6
cmp esi, ebx
jbe 0x30031e0e
cmp dword [ebp + 0xc], ebx
je 0x30031e0e
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.30031a65
test eax, eax
je 0x30031ec6
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x71
push eax
push 0x3001b74c
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x18
push ebx
lea eax, [ebp - 0x620]
push eax
push ebx
push 0x72
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x30031e6b
cmp dword [ebp - 0x620], ebx
jne 0x30031ec6
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
je 0x30031e82
mov dword [ebp - 0x648], edi
mov word [ebp - 0x644], 7
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
push eax
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x30031ec6
push dword [ebp - 0x630]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x62c]
call esi
mov eax, edi
jmp 0x30031ec8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret 8

Function at 0x30031ed9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x464]
push esi
push eax
mov dword [ebp - 0x468], 0x44
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x424], esi
xor eax, eax
lea edi, [ebp - 0x420]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push ebx
stosd dword es:[edi], eax
call fcn.30026079
cmp eax, 0x104
jg 0x30031f90
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push 0x6b
push ebx
push 0x3001b74c
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x30031f90
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x30031f9b
push esi
push 0x30303030
call fcn.3001d0f8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret 8
Function at 0x30032722
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.30032627
test eax, eax
je 0x30032793
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30032793
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x3001b87c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30032789
cmp dword [ebp - 0x10], 1
je 0x30032789
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc
Function at 0xb9d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb9d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbc6074
push ecx
mov edi, eax
call fcn.00bb1198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb9d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bb102e
push esi
call fcn.00bb0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret