joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105328b
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0106f610
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010521da
test eax, eax
jne 0x10532b6
inc eax
jmp 0x105347b
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1010], edi
cmp edi, ebx
jne 0x1053321
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.01052320
test eax, eax
jne 0x1053309
push 0x1004cc4
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015f65
push ebx
add esi, 0x40
push esi
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1053477
push 0x10020
lea ebx, [esi + 0x40]
push ebx
push edi
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1053388
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.01052320
test eax, eax
jne 0x105337a
push 0x1004d68
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015f65
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
jmp 0x1053316
lea eax, [ebp - 0x102c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 0x400
test eax, eax
jne 0x1053408
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1053408
cmp eax, 0x425
jne 0x10533c4
cmp dword [ebp - 0x1028], 3
je 0x1053408
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80e
call fcn.01052320
test eax, eax
jne 0x10533f5
push 0x1004d38
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015f65
push 0
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
push 0
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x100c], eax
call esi
push dword [ebp - 0x1010]
call esi
xor esi, esi
cmp dword [ebp - 0x100c], esi
je 0x1053435
xor eax, eax
inc eax
jmp 0x1053479
push edi
lea eax, [ebp - 0x1004]
push eax
push 0xd80d
call fcn.01052320
test eax, eax
jne 0x1053466
push 0x1004d04
lea eax, [ebp - 0x1004]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015f65
push esi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0106f5f8
leave
ret
Function at 0x1053dbf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x1053de0
xor eax, eax
jmp 0x1053e06
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1053273
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1053e03
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10559ec
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x11066da
call fcn.0106f6be
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.01054406
test ebx, ebx
jne 0x1055a31
push 0x10051d8
push 0x9c
push 0x1004b90
call fcn.0107b4be
jmp 0x1055bb5
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.0105461c
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x1055b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1055b95
cmp dword [ebp - 0xdc], 0x44
jbe 0x1055ab5
push 0x80004005
call fcn.01015f2c
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x1055ad9
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.01054640
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x1055b95
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x1055b2e
push 0x1005188
push 0xc4
push 0x1004b90
call fcn.0107b4be
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
mov byte [edi + 0x48], 1
call fcn.010527cb
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1055b95
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.01055915
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.01055915
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.01055915
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1055b91
lea ecx, [ebp - 0xd8]
call fcn.01016b9b
mov al, 1
jmp 0x1055bb7
mov ecx, edi
call fcn.01054406
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1055bb5
lea ecx, [ebp - 0xd8]
call fcn.01016b9b
xor al, al
call fcn.0106f750
ret 8
Function at 0x106b75a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x106b795
test byte [eax + 0x1c], 1
je 0x106b795
cmp byte [eax + 0x19], 4
jb 0x106b795
push 0x1006b38
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
xor edi, edi
mov dword [ebp - 4], edi
mov esi, 0x1006b98
cmp dword [ebp + 8], edi
jne 0x106b7b9
push 0x1006b84
push 0x20e
push esi
call fcn.0107b4be
mov eax, dword [0x111124c]
cmp dword [ebp + 0x10], edi
ja 0x106b7d3
push 0x1006b78
push 0x20f
push esi
call fcn.0107b4be
mov eax, dword [0x111124c]
cmp dword [ebp + 0xc], edi
jne 0x106b7ed
push 0x1006b64
push 0x210
push esi
call fcn.0107b4be
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x106b812
test byte [eax + 0x1c], 1
je 0x106b812
cmp byte [eax + 0x19], 4
jb 0x106b812
push dword [ebp + 8]
push 0x1006b38
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push edi
push 0x2000080
push 2
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x106b884
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x106b846
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106b928
test byte [eax + 0x1c], 1
je 0x106b903
cmp byte [eax + 0x19], 2
jb 0x106b903
push esi
push dword [ebp + 8]
push 0x1006b38
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x106b8fe
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x106b8dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x106b8ae
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106b8f7
test byte [eax + 0x1c], 1
je 0x106b8f7
cmp byte [eax + 0x19], 2
jb 0x106b8f7
push esi
push 0x1006b38
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x106b8f7
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x106b8f5
push 0x1006b48
push 0x233
push esi
call fcn.0107b4be
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106b928
test byte [eax + 0x1c], 1
je 0x106b928
cmp byte [eax + 0x19], 4
jb 0x106b928
push 0x1006b38
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x106ba57
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106ba89
test byte [eax + 0x1c], 1
je 0x106ba89
cmp byte [eax + 0x19], 4
jb 0x106ba89
push 0x1006b38
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x106baaa
push 0x1006c1c
push 0x263
push 0x1006b98
call fcn.0107b4be
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x106bac5
push 0x1006c08
push 0x264
push 0x1006b98
call fcn.0107b4be
mov esi, dword [ebp + 0x10]
cmp esi, ebx
jne 0x106bae0
push 0x1006bf4
push 0x265
push 0x1006b98
call fcn.0107b4be
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x106bb29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x106bb1d
mov dword [ebp + 0xc], eax
jmp 0x106bbf6
and eax, 0xffff
or eax, 0x80070000
jmp 0x106bb15
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x106bb56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x106bb4a
mov dword [ebp + 0xc], eax
jmp 0x106bbed
and eax, 0xffff
or eax, 0x80070000
jmp 0x106bb42
mov eax, dword [ebp - 0x14]
push 1
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.0101aed5
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x106bba1
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106bbdf
test byte [eax + 0x1c], 1
je 0x106bbdf
cmp byte [eax + 0x19], 2
jb 0x106bbdf
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1006b38
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x106bbdf
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x106bbd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x106bbcd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
jmp 0x106bbdf
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x106bbed
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
jge 0x106bc2e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106bc58
test byte [eax + 0x1c], 1
je 0x106bc33
cmp byte [eax + 0x19], 2
jb 0x106bc33
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1006b38
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x106bc58
test byte [eax + 0x1c], 1
je 0x106bc58
cmp byte [eax + 0x19], 4
jb 0x106bc58
push 0x1006b38
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x106ee95
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0106edd6
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x106ef08
cmp dword [ebp - 0x94], 5
jb 0x106ef29
jmp 0x106ef25
cmp dword [ebp - 0x88], 1
jne 0x106ef29
cmp dword [ebp - 0x94], 4
ja 0x106ef25
jne 0x106ef29
cmp dword [ebp - 0x90], 0
jbe 0x106ef29
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1007054
call fcn.01015fe3
test eax, eax
jge 0x106ef4a
mov byte [0x11120a4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0106f5f8
leave
ret
Function at 0x106f530
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x110a940
call fcn.0106f570
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x11133a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x106f2eb
cmp eax, esi
jne 0x106f2de
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x106f2ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x106f2c5
xor esi, esi
inc esi
mov eax, dword [0x111339c]
cmp eax, esi
jne 0x106f301
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x106f330
mov eax, dword [0x111339c]
test eax, eax
jne 0x106f32a
mov dword [0x111339c], esi
push 0x1001740
push 0x1001734
call fcn.0106f227
pop ecx
pop ecx
test eax, eax
je 0x106f330
jmp 0x106f454
mov dword [0x11124d0], esi
mov eax, dword [0x111339c]
cmp eax, esi
jne 0x106f354
push 0x1001730
push 0x10016dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x111339c], 2
cmp dword [ebp - 0x20], ebx
jne 0x106f361
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x11133ac], ebx
je 0x106f382
push 0x11133ac
call fcn.0106fcd9
pop ecx
test eax, eax
je 0x106f382
push ebx
push 2
push ebx
call dword [0x11133ac]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x106f454
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x106f3ec
cmp cx, bx
je 0x106f3a7
cmp dword [ebp - 0x1c], ebx
jne 0x106f3ec
movzx ecx, word [eax]
cmp cx, bx
je 0x106f3bc
cmp cx, 0x20
ja 0x106f3bc
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x106f3a7
test byte [ebp - 0x40], 1
je 0x106f3c8
movzx ecx, word [ebp - 0x3c]
jmp 0x106f3cb
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x11124cc], eax
cmp dword [0x11124c0], ebx
jne 0x106f431
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x106f3fd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x106f391
cmp dword [0x11124d0], ebx
jne 0x106f43f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x11124cc]
jmp 0x106f460
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0106f5b5
ret
call fcn.0106fe1e
jmp 0x106f288
Function at 0x10709f2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x1070a85
movzx eax, word [ebx]
cmp ax, 2
jb 0x1070a85
mov ecx, dword fs:[0x18]
movzx eax, ax
mov esi, eax
add eax, 2
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
shr esi, 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x1070a3c
mov ebx, 0xc0000017
jmp 0x1070a8a
xor eax, eax
mov word [edi + esi*2], ax
movzx eax, word [ebx]
push eax
push dword [ebx + 4]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call fcn.01075f74
test eax, eax
mov eax, dword [ebp - 4]
jge 0x1070a65
mov eax, edi
push eax
call fcn.0107742a
mov ebx, eax
test ebx, ebx
jl 0x1070a8a
call fcn.0107086a
mov ebx, eax
test ebx, ebx
jge 0x1070a8a
push 0
call fcn.0107742a
jmp 0x1070a8a
mov ebx, 0xc000000d
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x1070aa5
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], 0
je 0x1070abe
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10718cc
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x110aa68
call fcn.0106f570
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
je 0x107190f
cmp eax, ebx
jl 0x1071988
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x1071988
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x1071934
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1071988
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x1071988
mov eax, dword fs:[0x18]
mov ecx, dword [esi + 0xc]
inc ecx
inc ecx
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
je 0x107192b
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp esi, ebx
je 0x10719a0
mov eax, dword fs:[0x18]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x10719db
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.0106f5b5
ret 8
Function at 0x1071f76
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x110aac8
call fcn.0106f570
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], esi
je 0x1071fc8
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01071dd0
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1072083
jmp 0x1071fce
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
jne 0x1072083
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x1072016
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1072083
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1072083
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x1072045
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x1072083
sub dword [ebp - 0x20], 0xc
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, esi
je 0x107200d
push dword [ebp - 0x20]
lea ecx, [edi + 0xc]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
je 0x1072096
cmp eax, esi
je 0x1072096
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x10720ae
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x10720e2
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.0106f5b5
ret 0x18
Function at 0x10724dc
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call fcn.0107167e
mov edi, dword [ebp - 4]
test eax, eax
jl 0x1072538
cmp dword [ebp - 8], esi
jbe 0x1072538
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.01071dd0
test eax, eax
jl 0x1072532
push dword [ebp + 8]
call fcn.010724dc
test eax, eax
jge 0x1072532
push dword [ebp + 8]
call fcn.01071c12
inc esi
cmp esi, dword [ebp - 8]
jb 0x1072508
test edi, edi
je 0x1072551
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
test esi, esi
jl 0x1072565
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10727c4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
call fcn.01072666
dec eax
je 0x10727f3
dec eax
je 0x10727ec
mov dword [ebp - 8], 0xc00000bb
jmp 0x10728b3
call fcn.010774c8
jmp 0x10727f8
call fcn.01077486
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.010725dc
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x107287c
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1072812
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1072828
sub eax, ecx
sar eax, 1
add esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi + 2]
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x107285f
mov dword [ebp - 8], 0xc0000017
jmp 0x107287c
push dword [ebp - 4]
inc esi
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
push dword [ebp - 0xc]
push esi
push edi
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [eax], edi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], ebx
je 0x1072899
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 8], ebx
jge 0x10728b2
cmp edi, ebx
je 0x10728b2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4
Function at 0x1072d24
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01073586
mov esi, eax
test esi, esi
jl 0x1072dd0
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1072d50
sub eax, ecx
push ebx
sar eax, 1
push edi
lea edi, [eax + eax + 2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea ebx, [eax + edi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x1072d90
mov esi, 0xc000009a
jmp 0x1072dce
mov dword [esi], 1
mov dword [esi + 8], 5
mov dword [esi + 4], ebx
mov eax, dword [ebp - 4]
push dword [eax + 8]
push eax
lea eax, [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push edi
push dword [ebp + 0x10]
lea eax, [eax + esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [eax], esi
xor esi, esi
pop edi
pop ebx
cmp dword [ebp - 4], 0
je 0x1072ded
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
leave
ret 0x10