joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ea44
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ebef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ebd0
mov dl, 1
mov eax, dword [0x412614]
call fcn.00403b64
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404908
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ebbf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c95c
test al, al
je 0x44ebb2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44ec00
lea eax, [ebp - 0x254]
call fcn.004095b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ebb2
xor eax, eax
push ebp
push 0x44ebab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44ec38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44eb94
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b78
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44eb94
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ebb2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44eab5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416178
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ebf6
lea eax, [ebp - 0x260]
call fcn.00404908
ret

Function at 0x44f538
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455b44]
cmp byte [eax + 0xa5], 0
jne 0x44f5a9
cmp dword [0x455b5c], 0
jne 0x44f56a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f4f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455b5c], eax
cmp dword [0x455b58], 0
jne 0x44f585
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455b58], eax
cmp dword [0x455b60], 0
jne 0x44f5a9
push esp
push 0
push 0
push 0x44f498
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455b60], eax
pop edx
ret
Function at 0x44fc3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455b44]
cmp dword [eax + 0x30], 0
je 0x44fce6
cmp dword [ebx + 0x94], 0
jne 0x44fce0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fbcc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fce0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44fca6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fce0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414574
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fcb5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450844
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450879
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049f8
jmp 0x450886
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040495c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451998
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4519d9
mov eax, esi
call fcn.00437f38
test al, al
je 0x4519d9
mov eax, dword [ebx + 0x84]
call fcn.00437c34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4519d9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437c34
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1014695
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x103da2d
call fcn.0103c428
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x40]
call fcn.0100b970
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x50]
call fcn.0100fabf
mov byte [ebp - 4], 2
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x60]
call fcn.01014637
mov byte [ebp - 4], 3
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov byte [ebp - 4], 4
lea eax, [esi + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 5
lea eax, [esi + 0x90]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0xa0]
call fcn.0100b970
mov byte [ebp - 4], 7
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0xfc]
call fcn.0100cb1a
mov byte [ebp - 4], 8
lea eax, [esi + 0x12c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 9
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xb0], 2
mov dword [esi + 0xd0], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf0], 3
mov dword [esi + 0xc8], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
call fcn.01013e3e
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10146a2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x103da2d
call fcn.0103c428
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x40]
call fcn.0100b970
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x50]
call fcn.0100fabf
mov byte [ebp - 4], 2
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x60]
call fcn.01014637
mov byte [ebp - 4], 3
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov byte [ebp - 4], 4
lea eax, [esi + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 5
lea eax, [esi + 0x90]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0xa0]
call fcn.0100b970
mov byte [ebp - 4], 7
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0xfc]
call fcn.0100cb1a
mov byte [ebp - 4], 8
lea eax, [esi + 0x12c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 9
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xb0], 2
mov dword [esi + 0xd0], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf0], 3
mov dword [esi + 0xc8], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
call fcn.01013e3e
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1027048
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10490cc]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
test edi, edi
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x48], ebx
je 0x1027144
push 0x10028a0
push edi
call fcn.01030c4c
test eax, eax
jne 0x10270cb
push edi
push dword [esi + 0x48]
call fcn.01030c4c
test eax, eax
jne 0x1027144
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10270a0
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x48], 0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 0x48], eax
je 0x1027140
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
or dword [esi + 0x70], 0x10
jmp 0x1027135
and dword [ebp - 0x44], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
lea eax, [ebp - 0x44]
push 0x1004fdc
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x48]
call fcn.01030c4c
test eax, eax
jne 0x1027144
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1027117
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x48], 0
pop ecx
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 0x48], eax
je 0x1027140
and dword [esi + 0x70], 0xffffffef
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
jmp 0x1027144
and dword [ebp - 0x48], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0103bfcf
leave
ret 4
Function at 0x1029f6e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 1
mov dword [ebp - 8], eax
call fcn.0102995f
mov ecx, eax
call fcn.0102768e
mov esi, dword [sym.imp.msvcrt.dll__wfopen]
mov edi, dword [sym.imp.msvcrt.dll_fclose]
mov ebx, eax
test ebx, ebx
je 0x102a01f
call fcn.010345ac
cmp eax, 1
jne 0x102a01f
push 0x1005144
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1029fdc
push eax
push 1
lea eax, [ebp - 4]
push 2
push eax
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [ebp - 0xc]
call edi
add esp, 0x14
push 0x100513c
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
jne 0x102a004
push 0xac6e
call fcn.01029957
mov ecx, eax
call fcn.010123a1
and dword [ebp - 8], 0
jmp 0x102a013
push 1
push eax
call fcn.0102995f
mov ecx, eax
call fcn.010276b0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x102a101
cmp dword [ebp + 0x10], 0
jne 0x102a101
mov ecx, dword [ebp + 8]
push 0
call fcn.0102995f
mov ecx, eax
call fcn.0102768e
test eax, eax
mov dword [ebp + 0x10], eax
je 0x102a101
call fcn.01034613
cmp eax, 1
jne 0x102a101
push 0x1005138
push dword [ebp + 0x10]
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x102a087
push ebx
call fcn.01030f75
mov ecx, dword [ebp + 8]
push eax
call fcn.0102995f
mov ecx, eax
call fcn.010275ab
push ebx
call edi
mov dword [esp], 0x100513c
jmp 0x102a0cd
push 0x1005144
push dword [ebp + 0x10]
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x102a0c8
push ebx
push 1
lea eax, [ebp + 0xe]
push 2
push eax
mov byte [ebp + 0xe], 0xff
mov byte [ebp + 0xf], 0xfe
call dword [sym.imp.msvcrt.dll_fwrite]
mov ecx, dword [ebp + 8]
add esp, 0x10
push 1
call fcn.0102995f
mov ecx, eax
call fcn.010275ab
push ebx
call edi
pop ecx
push 0x100513c
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
jne 0x102a0f2
push 0xac6d
call fcn.01029957
mov ecx, eax
call fcn.010123a1
and dword [ebp - 8], 0
jmp 0x102a101
push 0
push eax
call fcn.0102995f
mov ecx, eax
call fcn.010276b0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1030f75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 4], 0
lea edi, [ebp - 3]
push 1
stosb byte es:[edi], al
lea eax, [ebp - 4]
push 2
push eax
xor esi, esi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1030feb
lea ecx, [ebp - 4]
mov cx, word [ecx]
mov eax, 0x100554c
cmp cx, word [eax]
jne 0x1030fb4
inc esi
jmp 0x1030fdb
lea ecx, [ebp - 4]
mov cx, word [ecx]
mov eax, 0x1005548
cmp cx, word [eax]
jne 0x1030fc8
push 2
jmp 0x1030fda
lea ecx, [ebp - 4]
mov cx, word [ecx]
mov eax, 0x1005544
cmp cx, word [eax]
jne 0x1030fdb
push 3
pop esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x103143d
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push edi
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
je 0x1031505
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edx, dword [ebp + 8]
movsx ecx, word [edx + 6]
movsx eax, word [ebp - 0x1a]
sub eax, ecx
movsx ecx, word [ebp - 0xe]
imul eax, ecx
movsx ecx, word [edx + 4]
sub eax, ecx
movsx ecx, word [ebp - 0x1c]
add eax, ecx
mov ecx, 0x400
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x10314a9
mov eax, ecx
mov dword [ebp - 4], eax
mov ecx, eax
xor eax, eax
cmp ebx, 0xffffffff
rep stosw word es:[edi], ax
je 0x10314c1
movsx eax, word [edx + 0x10]
movsx ecx, word [edx + 0xc]
sub eax, ecx
jmp 0x10314c3
xor eax, eax
test eax, eax
jle 0x10314fb
mov ax, word [edx + 6]
and word [ebp + 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push ebx
call esi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push dword [ebp + 8]
push ebx
call esi
pop esi
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
leave
ret 4

Function at 0x1031a8c
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x28
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1031b63
cmp dword [ebp + 8], ebx
jne 0x1031adb
push ebx
push ebx
push ebx
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1031b58
mov ebx, 0x80041003
jmp 0x1031b58
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 3
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1031b51
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push dword [ebp - 4]
call edi
test eax, eax
je 0x1031b43
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x1031b31
lea eax, [esi + 0xc]
or dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x1031b26
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1031b48
mov ebx, 0x80041003
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1031b56
mov ebx, 0x80041006
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1031b68
mov ebx, 0x80041003
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10352ee
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0x10352b4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push edi
call esi
cmp eax, 0x102
jne 0x1035342
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push edi
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
leave
ret 4

Function at 0x103540c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x103fe2a
call fcn.0103c428
sub esp, 0x128
mov eax, dword [0x10490cc]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x128], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x118], 1
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x114], esi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x124], esi
cmp esi, dword [ebp + 0x10]
jae 0x10354d1
cmp dword [ebp - 0x118], 0
je 0x10354d1
push 0xa
lea eax, [ebp - 0x114]
push eax
push dword [ebx + esi*8 + 4]
push dword [ebx + esi*8]
call dword [sym.imp.msvcrt.dll__i64tow]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push 0
mov eax, dword [ebp - 0x12c]
push dword [eax + esi*4]
mov eax, dword [ebp - 0x128]
push dword [eax + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10354ce
and dword [ebp - 0x118], 0
inc esi
jmp 0x103545e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0103bfcf
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1035530
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10490cc]
push ebx
push esi
push edi
push 0xf
xor esi, esi
mov ebx, ecx
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x54]
push ecx
lea eax, [ebx + 0x3e4]
push eax
push esi
push 0xf003f
push esi
push 0x1004664
push esi
push 0x1005940
push 0x80000002
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
call edi
cmp eax, esi
jne 0x10356b8
push 0x1005938
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
add ebx, 0x3e8
push ebx
push esi
push 0xf003f
push esi
push 0x1004664
push esi
push 0x1005940
push 0x80000001
mov dword [ebp - 0x4c], esi
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x54], eax
jne 0x1035614
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
push 1
push esi
push 0x100591c
push dword [eax]
call edi
cmp eax, esi
jne 0x10356b8
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push esi
push 0x100590c
push dword [ebx]
call edi
cmp eax, esi
jne 0x10356b8
mov eax, dword [ebp - 0x50]
push esi
push esi
push esi
push esi
push 0x100591c
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1035650
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
push 1
push esi
push 0x100591c
push dword [eax]
call edi
cmp eax, esi
jne 0x10356b8
push esi
push esi
push esi
push esi
push 0x100590c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x103567c
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push esi
push 0x100590c
push dword [ebx]
call edi
cmp eax, esi
jne 0x10356b8
push esi
push esi
push esi
push esi
push 0x10058e8
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x10356a8
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push esi
push 0x10058e8
push dword [ebx]
call edi
cmp eax, esi
jne 0x10356b8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0103bfcf
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 0x10425f0
lea eax, [ebp - 0x48]
push eax
call sub.msvcrt.dll__CxxThrowException
int3