joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5015ac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50170b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x54c500], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45e1a4]
call fcn.0045f2f0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5016e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045f3d8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a310
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x501724
call fcn.0040a4c0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045f664
test al, al
je 0x5016cb
lea ecx, [ebp - 4]
mov edx, 0x501798
mov eax, dword [ebp - 0xc]
call fcn.0045feec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042a548
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5016cb
xor edx, edx
push ebp
push 0x5016c4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5017b0
mov eax, dword [ebp - 8]
push eax
call fcn.00410974
test eax, eax
je 0x5016ad
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5016ad
call fcn.00501538
test eax, eax
je 0x50169d
mov eax, dword [ebx + 0x50]
jmp 0x5016a0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x54c500]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5016cb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5016e8
mov eax, dword [ebp - 0xc]
call fcn.0040785c
ret

Function at 0x501814
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x50185b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x50183e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x50184f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x50185b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x50ef38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x553388], 0
je 0x50f079
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x54d5c0]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x50f079
mov eax, dword [0x55338c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x553388]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50f048
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x553388]
call fcn.00448250
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50f040
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x50f040
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x50f040
mov eax, dword [ebp - 0x14]
call fcn.0051aab8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50f040
push ebp
call fcn.0050eef4
pop ecx
test al, al
jne 0x50f040
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407bb8
test al, al
je 0x50f040
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00407bb8
cmp byte [ebp - 1], 0
je 0x50f040
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040f090
test al, al
je 0x50f040
mov edx, dword [ebp - 0x14]
mov eax, dword [0x55338c]
call fcn.0050e654
inc edi
dec ebx
jne 0x50ef9d
mov eax, dword [0x55338c]
cmp dword [eax + 8], 0
jle 0x50f060
mov eax, dword [0x55338c]
call fcn.0050e70c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50f079
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050ed5c
pop ecx
test al, al
jne 0x50f079
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517534
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040f078
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005114e4
test ebx, ebx
jne 0x517587
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005173b0
mov ebx, eax
test ebx, ebx
je 0x51767d
cmp esi, ebx
je 0x5175b0
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x5175c5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5175fd
add eax, 0xffffff5f
sub eax, 2
jb 0x517615
dec eax
sub eax, 2
jb 0x517629
dec eax
sub eax, 2
jb 0x51761f
jmp 0x517633
add eax, 0xfffffdff
sub eax, 2
jb 0x517615
dec eax
sub eax, 2
jb 0x517629
dec eax
sub eax, 2
jb 0x51761f
jmp 0x517633
mov byte [esp + 0x120], 0
jmp 0x51763b
mov byte [esp + 0x120], 2
jmp 0x51763b
mov byte [esp + 0x120], 1
jmp 0x51763b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004df540
mov esi, eax
call fcn.0050dfe4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00512ef8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x51767f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x10007be0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10007bed
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10007be8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10007bd2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10007bda
cmp edx, ebx
jne 0x10007d28
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add al, byte [ebx]
enter 0x4d39, 8
add al, byte [ebx]
enter 0x4d39, 8
jb 0x10007ba9
add eax, dword [eax + 4]
jmp 0x10007b96
mov dword [ebp + 0xc], ebx
jmp 0x10007bf8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007c30
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10007c10
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10007c2e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
or bh, bh
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10007c8c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10007c73
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10007c7c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10007c86
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10007c68
inc dword [ebp + 0xc]
invalid
Function at 0x10007db0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edx, 0x6dfffffc
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10007539
mov ecx, 0x807105e6
movsd dword es:[edi], dword [esi]
int3
Function at 0x10008099
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg edi, eax
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.10007539
jns 0x100080d3
invalid
clc
inc esi
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
invalid

Function at 0x10008450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10007517
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10007549
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100074fe
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10007539
push es
fmul st(7)
scasb al, byte es:[edi]
push 0x104
lea eax, [ebp - 0x12c]

Function at 0x1000e1a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1000e1de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1000e1d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1000e1e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1000e1c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000e2c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e2ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e2ef
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001a1ef
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1002d150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x104
push esi
push edi
push ecx
push ecx
xor edi, edi
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.1001a03a
push 0x100046c8
lea ecx, [ebp - 0x20c]
call fcn.10019ec5
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
call fcn.1000f9f7
test al, al
jne 0x1001a27f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001a2bb
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x10003474
call fcn.100199c0
mov edi, eax
jmp 0x1001a2bb
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov ecx, esi
call fcn.10019615
mov esi, eax
test esi, esi
jns 0x1001a2af
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push esi
push 0x10003474
call fcn.10019a0c
mov edi, esi
jmp 0x1001a2bb
mov eax, dword [ebp - 0x210]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ebp - 0x214]
call fcn.1000f9b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dba0
leave
ret 8

Function at 0x1001e601
Capabilities:
Delete registry key

Disassembly:
push 0x14
mov eax, 0x10016633
call fcn.1000e0f1
mov edi, edx
mov esi, ecx
call sub.ntdll.dll_RtlIsMultiUsersInSessionSku
test al, al
je 0x1001e6a2
lea ecx, [ebp - 0x18]
call fcn.10012264
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp esi, 0x80000001
jne 0x1001e66f
lea ecx, [ebp - 0x20]
call fcn.10013a6d
push eax
lea ecx, [ebp - 0x18]
call fcn.1001324e
lea ecx, [ebp - 0x20]
call fcn.100130c8
lea ecx, [ebp - 0x18]
call fcn.100133af
lea ecx, [ebp - 0x18]
test al, al
jne 0x1001e668
call fcn.100130c8
push 2
pop eax
jmp 0x1001e6aa
call fcn.1001489c
mov esi, eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.100130c8
mov eax, esi
jmp 0x1001e6aa
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.1000e038
ret
Function at 0x1001e6b6
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x10016663
call fcn.1000e0f1
mov edi, ecx
call sub.ntdll.dll_RtlIsMultiUsersInSessionSku
test al, al
je 0x1001e762
lea ecx, [ebp - 0x18]
call fcn.10012264
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
cmp edi, 0x80000001
jne 0x1001e723
lea ecx, [ebp - 0x20]
call fcn.10013a6d
push eax
lea ecx, [ebp - 0x18]
call fcn.1001324e
lea ecx, [ebp - 0x20]
call fcn.100130c8
lea ecx, [ebp - 0x18]
call fcn.100133af
lea ecx, [ebp - 0x18]
test al, al
jne 0x1001e71c
call fcn.100130c8
push 2
pop eax
jmp 0x1001e778
call fcn.1001489c
mov edi, eax
push dword [ebp + 0x1c]
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.100130c8
mov eax, esi
jmp 0x1001e778
push dword [ebp + 0x1c]
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call fcn.1000e038
ret 0x18

Function at 0x1001e8d2
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x100166c3
call fcn.1000e0f1
mov edi, edx
mov esi, ecx
call sub.ntdll.dll_RtlIsMultiUsersInSessionSku
test al, al
je 0x1001e97e
lea ecx, [ebp - 0x18]
call fcn.10012264
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp esi, 0x80000001
jne 0x1001e940
lea ecx, [ebp - 0x20]
call fcn.10013a6d
push eax
lea ecx, [ebp - 0x18]
call fcn.1001324e
lea ecx, [ebp - 0x20]
call fcn.100130c8
lea ecx, [ebp - 0x18]
call fcn.100133af
lea ecx, [ebp - 0x18]
test al, al
jne 0x1001e939
call fcn.100130c8
push 2
pop eax
jmp 0x1001e991
call fcn.1001489c
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.100130c8
mov eax, esi
jmp 0x1001e991
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.1000e038
ret 0x10
Function at 0x1001eec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 4
xor ebx, ebx
push 2
pop esi
mov dword [ebp - 4], ebx
cmp byte [edi + 1], bl
je 0x1001ef39
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp cx, word [eax]
je 0x1001ef64
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.100133c4
push eax
push 0x20019
push ebx
push dword [edi + 0xc]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ef2f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x18
push 0x10003bec
push 0x10003bfc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
call fcn.1001315c
jmp 0x1001ef5b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x18
push 0x10003bec
push 0x10003bfc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x1001ef92
cmp esi, 5
je 0x1001ef9a
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ebx
push 0x18
push 0x10003bec
push 0x10003bfc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1001ef9a
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
je 0x1001ef9c
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001f2f4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x1002d150]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001f3a2
xor ebx, ebx
inc ebx
cmp dword [esp + 0x1c], 6
mov byte [esp + 0x134], bl
jb 0x1001f3aa
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push 0x10004a18
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001f39e
lea eax, [esp + 0x14]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
push esi
push esi
push 0x10004a8c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001f394
mov ecx, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
and ebx, ecx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1001f3ac
mov byte [esp + 0x134], 0
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop esi
pop ebx
xor ecx, esp
call fcn.1000dba0
mov esp, ebp
pop ebp
ret
Function at 0x1001f5c6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100167f5
call fcn.1000e0f1
mov ebx, edx
mov edi, ecx
call sub.ntdll.dll_RtlIsMultiUsersInSessionSku
test al, al
je 0x1001f670
lea ecx, [ebp - 0x18]
call fcn.10012264
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
cmp edi, 0x80000001
jne 0x1001f635
lea ecx, [ebp - 0x20]
call fcn.10013a6d
push eax
lea ecx, [ebp - 0x18]
call fcn.1001324e
lea ecx, [ebp - 0x20]
call fcn.100130c8
lea ecx, [ebp - 0x18]
call fcn.100133af
lea ecx, [ebp - 0x18]
test al, al
jne 0x1001f62e
call fcn.100130c8
push 2
pop eax
jmp 0x1001f682
call fcn.1001489c
mov edi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.100130c8
mov eax, esi
jmp 0x1001f682
push dword [ebp + 0x14]
xor esi, esi
push dword [ebp + 0x10]
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call fcn.1000e038
ret 0x10

Function at 0x10021c70
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x10016c91
call fcn.1000e0b5
mov esi, edx
lea ecx, [ebp - 0x28]
call fcn.1000bfc0
xor edi, edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.1000bfc0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov edx, esi
push eax
call fcn.10021efc
mov esi, eax
test esi, esi
js 0x10021d4e
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x28]
jb 0x10021cca
test esi, esi
jne 0x10021cca
mov esi, 0x80004005
jmp 0x10021d4e
push 0x44
lea eax, [ebp - 0x98]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x98], 0x44
lea edi, [ebp - 0x50]
add esp, 0xc
cmp dword [ebp - 0x2c], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x40]
jae 0x10021cfb
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
jae 0x10021d04
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x50]
xor edi, edi
push ecx
lea ecx, [ebp - 0x98]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10021d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10021d4e
movzx esi, si
or esi, 0x80070000
jmp 0x10021d4e
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.10007fc0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.10007fc0
mov eax, esi
call fcn.1000e052
ret 0x10