joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460f0d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x460f44
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x2022
push 1
push dword [ebp - 4]
push 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
push eax
call fcn.00460f8a
add esp, 0x14
jmp 0x460f86
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x460f64
push 1
call fcn.0045cbc5
pop ecx
jmp 0x460f86
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x460f7e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x460f86
push 0
call dword [sym.imp.GDI32.dll_CreatePalette]
mov esp, ebp
pop ebp
ret

Function at 0x4619ef
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x461a84
lea eax, [ebp + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x461a3d
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0x3ce4
push dword [ebp - 0xc]
push 1
call fcn.00461ade
add esp, 0xc
jmp 0x461a82
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x461a64
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x461a82
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x461a82
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x461ada
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x461ad2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
push 1
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x77b7
call fcn.00457dcc
add esp, 0x14
jmp 0x461ada
push 0
call fcn.0045d4eb
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46244d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x462487
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
push eax
push 1
push 0x4986
call fcn.0046258c
add esp, 0x14
jmp 0x462588
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x462511
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x462504
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x462502
push 0
push 1
push 0x2b17
push 1
push 1
push 0x2c15
push 1
push 0x5afd
call fcn.0045c611
add esp, 0x20
jmp 0x46250f
push 0x2669
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x462588
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x462551
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x46254f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
jmp 0x462588
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x462588
push 0x34d0
push 0x1885
push 0x4ca4
push 1
push 1
push 0
push 0
push 1
call fcn.00463c53
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x462aee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x462ba8
lea eax, [ebp + 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x40]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x462b94
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x462b6f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x462b6d
push 1
push 1
push 1
push 0x52ea
call fcn.0045a908
add esp, 0x10
jmp 0x462b92
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x462b92
push 0x78f
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x462ba6
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push 0
push dword [ebp - 0x34]
call fcn.004655c0
pop ecx
pop ecx
jmp 0x462c08
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push 0x6988
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.004569bb
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x466dd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x466ecc
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x466e8c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x466e63
mov byte [ebp - 1], 0
push 1
push 1
push 0
push 0x3f4b
push 0x2337
push 0xaa0
push 1
lea eax, [ebp - 1]
push eax
push 0x592f
push 0x7d1a
call fcn.00461675
add esp, 0x28
jmp 0x466e8a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x466eca
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x466eac
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x466eca
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.004949d6
pop ecx
jmp 0x466f44
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x466ef8
push 1
call fcn.004586a7
pop ecx
jmp 0x466f44
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x466f2d
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x466f44
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x49ad15
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4afda8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c37f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00498c37
mov dword [ebp - 0x14], eax
cmp dword [0xac44d4], esi
jne 0x4afe9b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4afe28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4aff7b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4aff7b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4aff7b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xac44d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xac44d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xac44dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac44e4], eax
test eax, eax
je 0x4afe98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac44e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4afec0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4afeb3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4afed5
push 4
pop eax
jmp 0x4aff7d
cmp dword [ebp - 0x14], esi
je 0x4afed5
push dword [0xac44d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4afeba
mov eax, dword [0xac44e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4aff33
cmp dword [0xac44e4], edi
je 0x4aff33
push eax
call ebx
push dword [0xac44e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4aff33
test eax, eax
je 0x4aff33
call ecx
test eax, eax
je 0x4aff28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4aff28
test byte [ebp - 8], 1
jne 0x4aff33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4aff63
mov eax, dword [0xac44d8]
cmp eax, edi
je 0x4aff60
push eax
call ebx
test eax, eax
je 0x4aff60
call eax
mov esi, eax
test esi, esi
je 0x4aff60
mov eax, dword [0xac44dc]
cmp eax, edi
je 0x4aff60
push eax
call ebx
test eax, eax
je 0x4aff60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xac44d4]
call ebx
test eax, eax
je 0x4aff7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4aff7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495b6b
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401939
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401970
lea ebx, [ebx]
cmp esi, eax
jae 0x401974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401960
cmp esi, eax
jb 0x40197a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40d850
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push 0x4ff
push 0xffffffffffffffff
push 0
push ebp
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x40d8e0
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp eax, 1
jne 0x40d8c3
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x40d8ca
lea ebx, [ebx]
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x40d8a0
jmp 0x40d8ca
cmp eax, 0x102
je 0x40d8ed
push 0x4ff
push 0xffffffffffffffff
push 0
push ebp
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x40d883
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov ecx, dword [ebp]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret

Function at 0x40dbb0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x30
lea eax, [esp]
push eax
push 0x28
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40dbe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
add esp, 0x30
ret
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40dc0c
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x30
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x24]
push ecx
push 0x10
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40dc70
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x30
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x30
ret
Function at 0x411110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push edi
mov edi, dword [esp + 0x198]
mov ebx, dword [edi + 0x10]
sub ebx, dword [edi + 0xc]
lea eax, [esp + 8]
push eax
push 0x20007
push 0
push str.SYSTEMCurrentControlSetControlusbflags_
push reloc.OLEAUT32.dll_SysReAllocString
sar ebx, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41115d
xor eax, eax
jmp 0x411231
push esi
xor esi, esi
test ebx, ebx
jle 0x411220
push ebp
lea esp, [esp]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 3
cmp esi, ecx
jb 0x411182
call fcn.004945e3
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov ebp, dword [eax + esi*8 + 4]
sub edx, eax
sar edx, 3
cmp esi, edx
jb 0x41119a
call fcn.004945e3
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi*8]
push ebp
push ecx
lea edx, [esp + 0xa0]
push str.IgnoreHWSerNum_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
lea edx, [esp + 0xa8]
push edx
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4111eb
cmp byte [esp + 0x18], al
jne 0x411216
mov eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x1c]
push ecx
push 3
push 0
lea edx, [esp + 0xa8]
push edx
push eax
mov dword [esp + 0x2c], 1
mov byte [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, ebx
jl 0x411170
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
pop edi
pop ebx
xor ecx, esp
call fcn.00493eee
add esp, 0x18c
ret 4

Function at 0x41cf00
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
cmp esi, ebx
je 0x41cf71
push edi
mov edi, dword [esp + 0x18]
movzx eax, word [esi]
mov word [edi], ax
mov cx, word [esi + 2]
mov word [edi + 2], cx
mov dx, word [esi + 4]
mov word [edi + 4], dx
movzx eax, word [esi + 6]
mov word [edi + 6], ax
mov ecx, dword [esi + 8]
lea edx, [esi + 0xc]
mov dword [edi + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.0041a0d0
lea eax, [esi + 0x10]
push eax
lea ecx, [edi + 0x10]
call fcn.0041a0d0
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
mov edx, dword [esi + 0x18]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
add esi, 0x20
add edi, 0x20
cmp esi, ebx
jne 0x41cf13
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
pop ebx
ret
Function at 0x41d220
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
cmp ebx, esi
je 0x41d292
push edi
mov edi, dword [esp + 0x18]
movzx eax, word [esi - 0x20]
sub esi, 0x20
sub edi, 0x20
mov word [edi], ax
mov cx, word [esi + 2]
mov word [edi + 2], cx
mov dx, word [esi + 4]
mov word [edi + 4], dx
movzx eax, word [esi + 6]
mov word [edi + 6], ax
mov ecx, dword [esi + 8]
lea edx, [esi + 0xc]
mov dword [edi + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.0041a0d0
lea eax, [esi + 0x10]
push eax
lea ecx, [edi + 0x10]
call fcn.0041a0d0
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
mov edx, dword [esi + 0x18]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
cmp esi, ebx
jne 0x41d233
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
pop ebx
ret

Function at 0x41ec70
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x41ecd3
mov eax, dword [esi + 0x1c]
mov edi, dword [esp + 0xc]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0x18]
lea ecx, [esi + 0x10]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x14]
push ecx
lea ecx, [edi + 0x10]
mov dword [edi + 0x14], eax
call fcn.0041a0d0
lea edx, [esi + 0xc]
push edx
lea ecx, [edi + 0xc]
call fcn.0041a0d0
movzx eax, word [esi + 4]
mov word [edi + 4], ax
mov cx, word [esi + 6]
mov word [edi + 6], cx
mov dx, word [esi + 2]
mov word [edi + 2], dx
movzx eax, word [esi]
mov word [edi], ax
pop edi
pop esi
ret 8
mov esi, dword [esp + 0xc]
push edi
push 0x581258
lea ecx, [esi + 0x10]
mov dword [esi + 0x1c], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
call fcn.00407240
push edi
push 0x581258
lea ecx, [esi + 0xc]
call fcn.00407240
xor ecx, ecx
xor edx, edx
xor eax, eax
pop edi
mov word [esi + 4], cx
mov word [esi + 6], dx
mov word [esi + 2], ax
mov word [esi], cx
pop esi
ret 8
Function at 0x4204c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, dword [esp + 0xc]
je 0x420534
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [edi + 0xc]
lea ebp, [edi + 0x10]
jmp 0x4204e0
movzx eax, word [edi]
mov word [esi], ax
mov cx, word [edi + 2]
mov word [esi + 2], cx
mov dx, word [edi + 4]
mov word [esi + 4], dx
movzx eax, word [edi + 6]
mov word [esi + 6], ax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
push ebx
lea ecx, [esi + 0xc]
call fcn.0041a0d0
push ebp
lea ecx, [esi + 0x10]
call fcn.0041a0d0
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
add esi, 0x20
cmp esi, dword [esp + 0x18]
jne 0x4204e0
pop edi
pop ebp
pop ebx
pop esi
ret