joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f940
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0xfd8], 0
mov edx, dword [ebp + 8]
je 0x1000f9a4
test byte [ebp + 0x10], 1
je 0x1000f9a4
mov eax, dword [ecx + 0xb7c]
movd xmm1, edx
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10141548]
comisd xmm1, xmm0
jbe 0x1000f9a4
push dword [ecx + 0x48]
sub eax, edx
mov byte [ecx + 0xff0], 1
mov dword [ecx + 0xff4], eax
mov eax, dword [ecx + 0xb80]
sub eax, dword [ebp + 0xc]
mov dword [ecx + 0xff8], eax
call dword [sym.imp.USER32.dll_SetCapture]
pop ebp
ret 0xc
mov dword [ebp + 8], edx
pop ebp
jmp fcn.100b77d0

Function at 0x10010ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xb84], 0
je 0x10010f70
mov eax, dword [esi + 0x48]
mov byte [esi + 0xb84], 0
test eax, eax
je 0x10010f1a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x7d0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x3f800000
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebp - 0xc], 0x7d0
mov dword [ebp - 8], 0
movups xmmword [esi + 0xf00], xmm0
mov dword [esi + 0xed8], 0
movq xmm0, qword [ebp - 0xc]
movq qword [esi + 0xf10], xmm0
mov dword [esi + 0xf18], 0
mov eax, dword [esi + 0x48]
mov byte [esi + 8], 0
pop edi
pop esi
test eax, eax
je 0x10010f86
push 0
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov esp, ebp
pop ebp
ret
Function at 0x10022120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011a890
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], esi
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], vtable.RRS::CPurchase.0
movups xmmword [esi + 8], xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
mov dword [ebp - 4], eax
xor ecx, ecx
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 7
mov word [esi + 0x20], cx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], 0x3f800347
mov word [esi + 0x58], cx
mov byte [esi + 0x5a], cl
movups xmmword [esi + 0x5c], xmm0
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], 7
mov word [esi + 0x5c], ax
movups xmmword [esi + 0x74], xmm0
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], 7
mov word [esi + 0x74], ax
push ecx
push ecx
push ecx
mov byte [ebp - 4], 8
push ecx
mov byte [esi + 0x8c], cl
mov dword [esi + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x100231f0
push 0
push 0
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x3c]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
mov dword [esi + 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.10022390
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x1002226f
push eax
lea ecx, [esi + 8]
mov dword [esi + 0x54], 0x3f800000
call fcn.100126c0
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + 0x20]
add eax, 0x18
push eax
call fcn.100126c0
lea ecx, [ebp - 0x1c]
call fcn.10001f00
push 0
push 0
push 0x405
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0
push 0
push esi
push 0x10024500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x44], eax
mov eax, esi
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.100edbdf
mov esp, ebp
pop ebp
ret 4
Function at 0x100b5ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100b5b7e
cmp byte [esi + 0xb84], 0
je 0x100b5b53
push 0
push eax
mov byte [esi + 0xb84], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x7d0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x3f800000
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebp - 0xc], 0x7d0
mov dword [ebp - 8], 0
movups xmmword [esi + 0xf00], xmm0
mov dword [esi + 0xed8], 0
movq xmm0, qword [ebp - 0xc]
movq qword [esi + 0xf10], xmm0
mov dword [esi + 0xf18], 0
push esi
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x10161ba0]
mov dword [esi + 0x48], 0
push str.RRSGUIWindow
call dword [sym.imp.USER32.dll_UnregisterClassW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c21c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 4], ecx
call ebx
mov esi, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
sub edx, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
sub ecx, eax
movd xmm2, esi
mov esi, dword [ebp - 4]
movd xmm0, edx
movd xmm3, ecx
movd xmm4, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
movss dword [ebp - 0xc], xmm0
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x14], xmm3
movss dword [ebp - 0x18], xmm4
nop dword [eax]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x10141704]
mulss xmm0, xmm1
addss xmm0, xmm2
cvttss2si eax, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movzx ecx, ax
shl ecx, 0x10
addss xmm0, xmm4
cvttss2si eax, xmm0
movzx eax, ax
or ecx, eax
push ecx
push 1
push 0x200
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
movss xmm0, dword [ebp - 0xc]
mov edi, eax
sub edi, dword [ebp - 8]
movss xmm2, dword [ebp - 0x10]
movss xmm3, dword [ebp - 0x14]
movss xmm4, dword [ebp - 0x18]
cmp edi, 0x64
jl 0x100c2220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c5e40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011e4d5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10159e80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x360]
test eax, eax
je 0x100c5efb
cmp byte [edi + 0x364], 0
je 0x100c5ea7
mov edx, dword [edi + 0x35c]
lea ecx, [ebp - 0x28]
call fcn.100d5630
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, dword [edi + 0x360]
push edx
mov eax, dword [ecx]
call dword [eax + 0x7c]
jmp 0x100c5ef3
push 0
push 0x1015c034
push 0x1015c014
push 0
push eax
call fcn.101146cb
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x100c5efb
mov edx, dword [edi + 0x35c]
lea ecx, [ebp - 0x28]
call fcn.100d5630
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov esi, dword [ebx]
xorps xmm1, xmm1
push 1
call fcn.10012040
push ecx
mov ecx, ebx
movss dword [esp], xmm0
call dword [esi + 0xc]
lea ecx, [ebp - 0x28]
call fcn.10002530
mov eax, dword [edi + 0x35c]
mov byte [edi + 0x364], 0
test eax, eax
je 0x100c5f1f
push 0
push eax
mov dword [edi + 0x360], 0
call dword [sym.imp.USER32.dll_ShowWindow]
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 0x100c7390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x10159e80]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0
jne 0x100c73c3
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x40], 0
push eax
mov ecx, esi
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0
call fcn.10005ed0
mov edx, 0x1013e548
lea ecx, [esp + 0x10]
call fcn.10004770
test al, al
mov edx, str.open
mov ecx, str.runas
cmove ecx, edx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x10]
call fcn.10002530
cmp dword [esi + 0x14], 7
jbe 0x100c7448
mov esi, dword [esi]
cmp dword [edi + 0x14], 7
mov dword [esp + 0x38], esi
jbe 0x100c7454
mov edi, dword [edi]
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x100c747c
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [esp + 0x64]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100c88b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011e932
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24c
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], esi
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 1
push eax
call fcn.100efb50
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100c8a4b
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x25c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c8993
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.100023d0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x25c]
call fcn.10005130
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x224], 3
cmp esi, eax
je 0x100c8a1d
mov ecx, esi
call fcn.10002530
movups xmm0, xmmword [ebp - 0x23c]
xor eax, eax
mov word [ebp - 0x23c], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x22c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
lea ecx, [ebp - 0x23c]
call fcn.10002530
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0
call fcn.10002530
cmp dword [esi + 0x10], 0
je 0x100c8a4b
push 1
push 0x101373e0
mov ecx, esi
call fcn.10002000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100c9b50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x10], 0
je 0x100c9cc9
test ebx, ebx
je 0x100c9cc9
mov edi, dword [ebp + 8]
test edi, edi
je 0x100c9cc9
mov edx, 0x10161ae8
call fcn.100c98d0
test al, al
jne 0x100c9cc9
mov edx, 0x10161b00
mov ecx, esi
call fcn.100c98d0
mov ecx, esi
test al, al
je 0x100c9bc7
push edi
mov edx, ebx
call fcn.100c8370
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
mov edx, 0x10161b18
call fcn.100c98d0
xor ebx, ebx
test al, al
je 0x100c9c76
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100c9c63
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100c9c5b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x100c9c54
push edi
push dword [ebp - 0xc]
push eax
call fcn.100ef570
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 0x14], 7
jbe 0x100c9c22
mov esi, dword [esi]
push esi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x100c9c54
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x100c9c54
mov ebx, edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
mov dword [ebp - 8], ebx
jbe 0x100c9c81
mov esi, dword [esi]
push 0x1013e6dc
lea eax, [ebp - 8]
push esi
push eax
call fcn.100fbef2
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x100c9cb6
push eax
push edi
push 1
push dword [ebp - 0xc]
call fcn.100fc1fe
push dword [ebp - 8]
cmp eax, edi
cmove ebx, eax
call fcn.100fc35d
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100ce110
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x10159e80]
xor eax, esp
mov dword [esp + 0x44], eax
push 0x40
lea eax, [esp + 4]
push 0
push eax
call fcn.100efb50
add esp, 0xc
mov dword [esp], 0x40
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 8]
xor ecx, esp
mov edx, dword [esp + 0xc]
call fcn.100edbdf
mov esp, ebp
pop ebp
ret

Function at 0x100ce160
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x10159e80]
xor eax, esp
mov dword [esp + 0x44], eax
push 0x40
lea eax, [esp + 4]
push 0
push eax
call fcn.100efb50
add esp, 0xc
mov dword [esp], 0x40
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
xor ecx, esp
mov edx, dword [esp + 0x14]
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100d1cb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edx + 0x10], 0
mov esi, dword [ebp + 8]
je 0x100d1e3a
cmp dword [edx + 0x14], 7
mov dword [ebp - 0x18], 0
jbe 0x100d1cf6
mov edx, dword [edx]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d1e3a
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x14]
mov ecx, 2
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.100edc53
add esp, 4
mov edi, eax
xor eax, eax
mov dword [ebp - 0x20], eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x100d1e1e
inc dword [ebp - 0x20]
mov eax, edi
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100d1da3
sub eax, edx
lea ecx, [ebp - 0x38]
sar eax, 1
push eax
push edi
call fcn.100023d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov eax, dword [esi + 4]
push ecx
cmp eax, dword [esi + 8]
je 0x100d1ddc
mov ecx, eax
call fcn.100022c0
add dword [esi + 4], 0x18
jmp 0x100d1de4
push eax
mov ecx, esi
call fcn.10029570
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10002530
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x100d1d86
push edi
call fcn.100edc4e
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne al
jmp 0x100d1e3c
xor al, al
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.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100d1e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10159e80]
xor eax, esp
mov dword [esp + 0x34], eax
cmp dword [edx + 0x10], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], eax
je 0x100d1fe1
cmp dword [edx + 0x14], 7
mov dword [esp + 0x34], 0
jbe 0x100d1e9a
mov edx, dword [edx]
lea eax, [esp + 0x34]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x100d1fe1
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [esp + 0x38], 0
jbe 0x100d1ecc
mov eax, dword [esi]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x38]
test eax, eax
setne byte [esp + 0xb]
test eax, eax
je 0x100d1fc2
shr eax, 1
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.100edc53
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 7
jbe 0x100d1f16
mov esi, dword [esi]
lea eax, [esp + 0x38]
push eax
push edi
push 0
push 0
push esi
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [esp + 0xb]
test eax, eax
jne 0x100d1fb9
mov ecx, edi
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
movaps xmmword [esp + 0x10], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d1f50
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.100023d0
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
cmp esi, eax
je 0x100d1fa7
mov ecx, esi
call fcn.10002530
movups xmm0, xmmword [esp + 0x10]
xor eax, eax
mov word [esp + 0x10], ax
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
lea ecx, [esp + 0x10]
call fcn.10002530
cmp word [edi], 0
setne byte [esp + 0xb]
push edi
call fcn.100edc4e
add esp, 4
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100d2000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x100d20ac
cmp dword [edx + 0x14], 7
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jbe 0x100d2038
mov edx, dword [edx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x100d20ac
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x100d206a
mov ecx, dword [esi]
cmp dword [edi + 0x14], 7
jbe 0x100d2072
mov edi, dword [edi]
mov eax, dword [esi + 0x10]
push ebx
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
Function at 0x100d2da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f961
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x10159e80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x34], edi
call fcn.100298a0
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esi
test ebx, ebx
je 0x100d2ea3
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x100d2e08
mov ecx, dword [edi]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100d2e99
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100d2e99
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100d2e99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x100d2e99
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100d2e99
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x100d2e99
push edi
push dword [ebp - 0x38]
push ebx
call fcn.100ef570
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x30]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x100d2ea0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100d2e9c
mov dword [eax], edi
jmp 0x100d2e9c
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x100d2ea9
mov edi, dword [ebp - 0x34]
cmp byte [ebp + 0x10], 0
jne 0x100d2ecf
lea ecx, [ebp - 0x2c]
call fcn.10002530
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100edbdf
mov esp, ebp
pop ebp
ret
push str.RESOURCE
lea ecx, [ebp - 0x58]
call fcn.10002480
push dword [ebp - 0x40]
mov edx, str.Cant_find_resource__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10012100
add esp, 4
push str.__of_type__
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.10001f90
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.10002190
add esp, 4
push 0x1013f040
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.10001f90
add esp, 4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.100b71d0
push 0x10156074
lea eax, [ebp - 0x7c]
push eax
call fcn.100efae4
int3