joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013d43
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x1013d61
xor eax, eax
jmp 0x1013e5e
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push 0x100330c
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
je 0x1013e0a
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1013d97
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1013e0a
mov eax, dword [esi]
mov edi, dword [esi + 8]
push 8
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
jge 0x1013dc7
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], ecx
jge 0x1013dcf
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0xc]
jle 0x1013dd7
mov edi, dword [ebp - 0xc]
cmp esi, eax
jle 0x1013ddd
mov esi, eax
sub esi, dword [ebp - 4]
sub edi, dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x1013e0e
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
jmp 0x1013e5c
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 0xcc0020
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x10]
push edi
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x10141d4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10141ed
mov ax, 0x14
jmp 0x10142ed
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1014216
mov ax, 4
jmp 0x10142ed
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
jne 0x101423b
mov bx, 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, bx
jmp 0x10142ec
cmp dword [esi], 0x28
je 0x101424b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x101422a
push edi
push esi
mov word [ebp - 0x14], 0x4d42
call fcn.01013eb4
movzx edi, ax
mov eax, dword [esi + 0x10]
add edi, dword [esi]
cmp eax, 1
je 0x1014286
cmp eax, 2
je 0x1014286
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x1014289
add edi, dword [esi + 0x14]
lea eax, [edi + 0xe]
push esi
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], bx
mov word [ebp - 0xc], bx
call fcn.01013eb4
mov ecx, dword [esi]
movzx eax, ax
lea eax, [eax + ecx + 0xe]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call ebx
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1017607
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1032dfc
call fcn.0102edd8
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x1017622
xor eax, eax
jmp 0x10177fd
push edi
lea edi, [ebx + 8]
cmp dword [edi], 0
jne 0x10177f9
push 0x1003afc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
je 0x10177f3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003af4
push eax
call esi
test eax, eax
mov dword [ebx + 0xc], eax
je 0x1017771
push 0x1003aec
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x10], eax
je 0x1017771
push 0x1003ae4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x14], eax
je 0x1017771
push 0x1003ad8
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x18], eax
je 0x1017771
push 0x1003ad0
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x1017771
push 0x1003ac4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x20], eax
je 0x1017771
push 0x1003abc
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x24], eax
je 0x1017771
push 0x1003aac
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x28], eax
je 0x1017771
push 0x1003a9c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x1017771
push 0x1003a84
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x30], eax
je 0x1017771
push 0x1003a70
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x34], eax
je 0x1017771
push 0x1003a5c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x38], eax
je 0x1017771
push 0x1003a44
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x1017771
push 0x1003a30
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x40], eax
je 0x1017771
push 0x1003a1c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x44], eax
je 0x1017771
push 0x1003a08
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x48], eax
je 0x1017771
mov dword [ebx + 4], 1
cmp dword [ebx + 4], 0
pop esi
je 0x101779b
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x108
call dword [ebx + 0xc]
test eax, eax
mov dword [ebx + 0x4c], eax
jne 0x1017795
and dword [ebx + 4], eax
cmp dword [ebx + 4], 0
jne 0x10177f9
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x11
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
rep stosd dword es:[edi], eax
je 0x10177f9
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0x7a74
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 4
push 0x80004005
push 0x1001e40
push dword [ebp - 0x10]
call fcn.0100c934
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
jmp 0x10177f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101c26e
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
mov byte [esi + 0x60], 1
je 0x101c2d1
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3a98
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101c2c5
push edi
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x101c2c5
mov ecx, dword [eax + 0x24]
cmp ecx, edi
je 0x101c2b7
push dword [eax + 0x1c]
call ecx
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x101c2c5
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
push ebx
lea ebx, [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x48], edi
je 0x101c306
lea ecx, [esi + 0x44]
call sub.MFC42u.DLL_CPtrList::RemoveHead
mov edi, eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x101c2f7
push dword [edi + 0x1c]
call eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
cmp dword [esi + 0x48], 0
jne 0x101c2e1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
pop ebx
je 0x101c323
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x101c331
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x101c33f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x101c775
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0101cf46
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x101c7a6
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push esi
push 0x101c72d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov byte [esi + 0x1c], bl
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x101c7b4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x103c3d0]
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1004e68
push 0x80000002
mov dword [ebp - 0x41c], 5
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101c88c
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x1001e40
push dword [ebp - 0x418]
mov esi, 0x104
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101c88b
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp - 6], bx
pop esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x101c8a7
lea eax, [ebp - 0x20c]
push eax
jmp 0x101c8ac
push 0x1004e54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x101c8e2
push 0x1004e4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x101c8e2
mov ecx, dword [ebp - 0x428]
push ebx
push ebx
lea edx, [ecx + 0x10]
push edx
add ecx, 0xc
push ecx
call eax
test eax, eax
jne 0x101c8e2
mov dword [ebp - 0x41c], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop ebx
call fcn.0102d576
leave
ret

Function at 0x1022b47
Capabilities:
Create thread

Disassembly:
mov eax, 0x1033b7f
call fcn.0102edd8
push ecx
push ecx
push esi
push 8
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1022b72
call fcn.0102219c
mov esi, eax
jmp 0x1022b74
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1022bbd
push dword [ebp + 8]
mov ecx, esi
call sub.MFC42u.DLL_CString::operator
push dword [ebp + 0xc]
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10225f9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1022bb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1022bbd
push 1
mov ecx, esi
call fcn.010225d3
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1024a7d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.010239df
test eax, eax
je 0x1024a9a
mov ecx, esi
call fcn.010239df
mov ecx, eax
pop esi
jmp fcn.0100e9ae
pop esi
ret

Function at 0x1024a7f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.010239df
test eax, eax
je 0x1024a9a
mov ecx, esi
call fcn.010239df
mov ecx, eax
pop esi
jmp fcn.0100e9ae
pop esi
ret
Function at 0x102792e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
je 0x1027949
xor eax, eax
inc eax
jmp 0x1027a9d
push edi
mov edi, 0xf1
push edi
push 0xcd
mov dword [ebp - 0xc], ebx
call sub.MFC42u.DLL_AfxFindResourceHandle
push edi
push 0xcd
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x1027978
xor eax, eax
jmp 0x1027a9c
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1027971
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x1027971
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
xor ecx, ecx
cmp word [edi + 6], bx
mov dword [ebp - 8], eax
jbe 0x10279e0
lea edx, [edi + 8]
add eax, 8
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
add dword [ebp - 4], 2
mov dword [eax - 8], ecx
movzx edx, word [edx]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x10279b8
call sub.MFC42u.DLL_AfxGetModuleState
movzx ecx, word [edi + 6]
mov eax, dword [eax + 0xc]
push 0x14
mov edx, dword [esi + 0x20]
push ebx
push ebx
push 0xf
push 0x10
push ecx
push dword [ebp - 8]
push 0xcd
push eax
push ecx
push 1
push 0x50800b48
push edx
call dword [sym.imp.COMCTL32.dll_CreateToolbarEx]
push dword [ebp - 8]
mov dword [esi + 0x60], eax
call sub.MFC42u.DLL_operatordelete
cmp dword [esi + 0x60], ebx
pop ecx
je 0x1027a99
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x20]
call edi
push 5
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 4
pop ecx
cdq
idiv ecx
push 3
pop edi
movzx ecx, ax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
shl ecx, 0x10
cdq
idiv edi
movzx eax, ax
or ecx, eax
push ecx
push ebx
push 0x41f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 0x14
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
xor edi, edi
push eax
inc edi
push edi
push edi
push ebx
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102911c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1034197
call fcn.0102edd8
sub esp, 0xc
push ebx
push edi
push dword [0x103c204]
lea ecx, [ebp - 0x10]
xor ebx, ebx
xor edi, edi
call sub.MFC42u.DLL_CString::CString_2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
jne 0x1029150
push dword [0x103c208]
jmp 0x1029153
push dword [ebp + 0xc]
call fcn.0102e012
push esi
mov esi, 0x10021cc
push esi
lea ecx, [ebp - 0x10]
call fcn.0102e012
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0102e012
push esi
lea ecx, [ebp - 0x10]
call fcn.0102e012
push dword [0x103c20c]
lea ecx, [ebp - 0x10]
call fcn.0102e012
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop esi
jne 0x1029208
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp + 8]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10291f4
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WINMM.dll_sndPlaySoundW]
xor edi, edi
inc edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x102a7b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10342fb
call fcn.0102edd8
push ecx
push ebx
push esi
push edi
mov esi, 0xf1
push esi
push dword [ebp + 0xc]
call sub.MFC42u.DLL_AfxFindResourceHandle
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x102a883
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x102a883
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x102a883
cmp word [esi + 6], bx
jbe 0x102a883
lea edi, [esi + 8]
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0102ac87
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0102ac87
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
call sub.MFC42u.DLL_CToolBar::SetButtonText
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
movzx eax, word [esi + 6]
inc ebx
inc edi
inc edi
cmp ebx, eax
jl 0x102a812
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x102ad38
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp + 0x1c]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push 0x1001e40
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102adc6
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102adbc
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
dec esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 0x18
Function at 0x102add0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, 0x1001e40
jbe 0x102adf3
push esi
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0x20019
push edi
push esi
push edi
push dword [ebp + 8]
mov dword [ebp + 0x14], edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102ae42
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ae39
xor edi, edi
inc edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x102ae50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push 0x1001e40
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102aeb5
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102aeac
cmp dword [ebp + 0x14], 4
jne 0x102aeac
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x102aec1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x1001e40
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102af1f
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x102af16
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x102af2b
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp + 8]
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0xf003f
push eax
push 0x1001e40
push eax
push dword [ebp + 8]
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102af78
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x102af6f
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc