joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a203
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.01018914
lea ecx, [ebp - 0x14]
call fcn.0101292a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x10020a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100a274
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a26a
test byte [eax + 0x1c], 1
je 0x100a26a
push 0x1001fd0
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
jmp 0x100a3fa
push edi
lea edi, [esi + 4]
push ebx
mov ecx, edi
call fcn.01012949
push eax
xor ebx, ebx
push 0x100156c
inc ebx
push ebx
lea ecx, [ebp - 0x44]
call fcn.01018859
mov esi, eax
test esi, esi
jge 0x100a2be
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a3f9
test byte [eax + 0x1c], bl
je 0x100a3f9
push esi
push 0x1001fd0
push 0x22
jmp 0x100a383
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x44]
call fcn.010189de
test eax, eax
jl 0x100a39a
lea ecx, [ebp - 0x44]
call fcn.010189a2
test eax, eax
je 0x100a39a
push 0x1002098
lea ecx, [ebp - 0x14]
call fcn.01012cbe
mov esi, eax
test esi, esi
jge 0x100a319
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a3f9
test byte [eax + 0x1c], bl
je 0x100a3f9
push esi
push 0x1001fd0
push 0x23
jmp 0x100a383
push 0x1002094
lea ecx, [ebp - 0x14]
call fcn.0101364a
mov esi, eax
test esi, esi
jge 0x100a34f
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a3f9
test byte [eax + 0x1c], bl
je 0x100a3f9
push esi
push 0x1001fd0
push 0x24
jmp 0x100a383
lea ecx, [ebp - 0x44]
call fcn.010189a2
push eax
lea ecx, [ebp - 0x14]
call fcn.01012e45
mov esi, eax
test esi, esi
jge 0x100a390
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a3f9
test byte [eax + 0x1c], bl
je 0x100a3f9
push esi
push 0x1001fd0
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100a3f9
lea ecx, [ebp - 0x14]
call fcn.01012949
jmp 0x100a39f
mov eax, 0x1002098
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
test si, si
jne 0x100a3a4
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push ebx
xor esi, esi
push esi
mov ecx, edi
call fcn.01012949
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100a3f9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a3f4
test byte [eax + 0x1c], bl
je 0x100a3f4
push 0x1001fd0
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov esi, 0x80004005
pop edi
cmp dword [ebp - 4], 0
je 0x100a40d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0101293c
lea ecx, [ebp - 0x44]
call fcn.01018955
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a700
Capabilities:
Delete registry key

Disassembly:
push 0x1002168
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x100a743
cmp eax, 2
je 0x100a743
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100a73d
test byte [eax + 0x1c], 1
je 0x100a73d
push 0x1001fd0
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80004005
ret
xor eax, eax
ret

Function at 0x100a82b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x100a99a
cmp dword [ebp + 0x10], esi
je 0x100a99a
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x100a86d
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100a85d
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100a873
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
cmp ebx, esi
je 0x100a99a
cmp eax, esi
je 0x100a99a
lea ebx, [ebx + ebx + 2]
cmp ebx, 0xffffffff
jb 0x100a8a7
push 0x1002240
jmp 0x100a99f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
jne 0x100a8f9
push 0x100223c
call sub.ntdll.dll_DbgPrint
mov eax, dword [esi]
pop ecx
mov edi, 0x8007000e
test eax, eax
je 0x100a8f2
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi], 0
mov eax, edi
jmp 0x100a9aa
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [esi]
mov eax, edi
add esp, 0xc
cmp word [eax], 0
je 0x100a98e
jmp 0x100a920
cmp dword [ebp - 8], 0
je 0x100a91e
mov dword [ebp - 4], 1
inc edi
inc edi
cmp word [edi], 0x20
je 0x100a911
xor eax, eax
cmp dword [ebp - 4], eax
je 0x100a93d
cmp word [edi], ax
je 0x100a93d
push 0x20
pop ecx
mov word [esi], cx
inc esi
inc esi
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push edi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x100a972
lea eax, [edi + ebx*2]
movzx ecx, word [eax]
test cx, cx
je 0x100a962
cmp cx, 0x20
jne 0x100a972
cmp edi, dword [ebp + 8]
je 0x100a970
jbe 0x100a972
cmp word [edi - 2], 0
jne 0x100a972
mov edi, eax
movzx eax, word [edi]
test ax, ax
je 0x100a98e
mov word [esi], ax
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
mov dword [ebp - 8], 1
jne 0x100a920
xor eax, eax
mov word [esi], ax
xor edi, edi
jmp 0x100a8f2
push 0x100222c
call sub.ntdll.dll_DbgPrint
pop ecx
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100ac36
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call fcn.01018914
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], ebx
call fcn.0101292a
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x10020a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x100acb8
cmp esi, 2
je 0x100ae16
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100acab
test byte [eax + 0x1c], 1
je 0x100acab
push 0x1001fd0
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
push esi
call fcn.0100629e
mov esi, eax
jmp 0x100ae18
add edi, 4
push ebx
mov ecx, edi
call fcn.01012949
push eax
xor ebx, ebx
push 0x100156c
inc ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.01018859
mov esi, eax
test esi, esi
jge 0x100ad0c
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100ae18
test byte [eax + 0x1c], bl
je 0x100ae18
push esi
push 0x1001fd0
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100ae18
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
call fcn.010189de
mov esi, eax
test esi, esi
jge 0x100ad42
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100ae18
test byte [eax + 0x1c], bl
je 0x100ae18
push esi
push 0x1001fd0
push 0x3a
jmp 0x100acfc
lea ecx, [ebp - 0x48]
call fcn.010189a2
test eax, eax
je 0x100ae16
lea eax, [ebp - 8]
push eax
push 0x1002098
push 0
lea ecx, [ebp - 0x48]
call fcn.010189a2
mov ecx, dword [ebp - 0xc]
push eax
call fcn.0100a82b
mov esi, eax
test esi, esi
jge 0x100ad9a
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100ae18
test byte [eax + 0x1c], bl
je 0x100ae18
push esi
push 0x1001fd0
push 0x3b
jmp 0x100acfc
mov esi, dword [ebp - 8]
test esi, esi
je 0x100ae05
cmp word [esi], 0
je 0x100ae05
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100adac
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
push 0
mov ecx, edi
call fcn.01012949
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100ae16
mov ecx, dword [0x101d014]
cmp ecx, 0x101d014
je 0x100adfe
test byte [ecx + 0x1c], bl
je 0x100adfe
push eax
push 0x1001fd0
push 0x3c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100dc70
mov esi, 0x80004005
jmp 0x100ae1c
mov ecx, edi
call fcn.01012949
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
test esi, esi
jge 0x100ae37
cmp dword [ebp - 4], 0
je 0x100ae4a
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.01012949
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
je 0x100ae4a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x100ae5c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0100a9b6
lea ecx, [ebp - 0x18]
call fcn.0101293c
lea ecx, [ebp - 0x48]
call fcn.01018955
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100af0e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
je 0x100b0fc
cmp dword [ebp + 8], edi
je 0x100b0fc
push esi
mov esi, 0x208
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x100af70
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100af64
test byte [eax + 0x1c], 1
je 0x100af64
push 0x1001fd0
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov dword [ebp + 0xc], 0x8007000e
jmp 0x100b0f6
push eax
push edi
push edi
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov dword [ebp + 0xc], eax
jge 0x100afa9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b0ed
test byte [eax + 0x1c], 1
je 0x100b0ed
push 0x1001fd0
push 0x41
jmp 0x100b0dc
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx], eax
cmp eax, edi
jne 0x100afdc
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b0a0
test byte [eax + 0x1c], 1
je 0x100b0a0
push 0x1001fd0
push 0x42
jmp 0x100b095
cmp dword [ebp + 0x10], edi
je 0x100b012
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edi, 0x10022a4
push edi
push dword [ebp - 4]
mov esi, 0x104
push 0x100227c
push esi
push dword [ebx]
call fcn.0100937b
add esp, 0x20
jmp 0x100b03e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edi, 0x10022a4
push edi
push dword [ebp - 4]
mov esi, 0x104
push 0x100225c
push esi
push dword [ebx]
call fcn.0100937b
add esp, 0x1c
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x100b068
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b0ed
test byte [eax + 0x1c], 1
je 0x100b0ed
push 0x1001fd0
push 0x43
jmp 0x100b0dc
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x100b0a9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b0a0
test byte [eax + 0x1c], 1
je 0x100b0a0
push 0x1001fd0
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov dword [ebp + 0xc], 0x8007000e
jmp 0x100b0ed
push edi
push dword [ebp - 4]
push 0x1002250
push esi
push eax
call fcn.0100937b
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x100b0e9
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b0ed
test byte [eax + 0x1c], 1
je 0x100b0ed
push 0x1001fd0
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x100b0ed
and dword [ebp + 0xc], 0
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0xc]
pop esi
jmp 0x100b125
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100b120
test byte [eax + 0x1c], 1
je 0x100b120
push 0x1001fd0
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 0xc
Function at 0x100ba02
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 0x6c], 0
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x68
lea eax, [ebp - 0x6c]
push eax
push 0x33
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x100ba42
cmp dword [ebp - 4], 0
jne 0x100ba42
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x100c8a6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0101292a
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0x14]
push 0x1002518
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.010136de
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jge 0x100c90e
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100c96e
test byte [eax + 0x1c], 1
je 0x100c96e
push ebx
push 0x1002450
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100c96e
lea ecx, [ebp - 0x14]
call fcn.01012949
push eax
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x100c931
mov dword [esi + 0x18], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x18
push 0x10024f0
push 0x1002460
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100c95e
cmp dword [ebp - 4], edi
setne al
mov dword [esi + 0x1c], eax
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x100c96e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.0101293c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100cbae
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call fcn.0101292a
xor eax, eax
mov esi, 0x1002550
push esi
lea ecx, [ebp - 0x224]
mov word [ebp - 0x20c], ax
call fcn.01012cbe
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100cc30
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100cd96
test byte [eax + 0x1c], 1
je 0x100cd96
push edi
push 0x1002450
push 0x31
jmp 0x100cd8b
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push 3
push eax
push eax
push eax
push 0x10020a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100cd5b
xor edi, edi
cmp dword [ebp - 0x210], edi
je 0x100cd5b
cmp dword [ebp - 0x218], 2
jne 0x100ccf1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 2
lea ecx, [ebx + 4]
mov dword [ebp - 0x214], 0x104
call fcn.01012949
push eax
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100ccf1
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push 0x1002544
push eax
call fcn.010136de
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x100ccf1
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100cd96
test byte [eax + 0x1c], 1
je 0x100cd96
push edi
push 0x1002450
push 0x33
jmp 0x100cd8b
lea ecx, [ebp - 0x224]
call fcn.01012951
add eax, eax
push eax
lea ecx, [ebp - 0x224]
call fcn.01012949
push eax
push 1
xor edi, edi
push edi
lea ecx, [ebx + 4]
call fcn.01012949
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100cd96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100cd3d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100cd96
test byte [eax + 0x1c], 1
je 0x100cd96
push edi
push 0x1002450
push 0x34
jmp 0x100cd8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100cd6f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100cd96
test byte [eax + 0x1c], 1
je 0x100cd96
push edi
push 0x1002450
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
cmp dword [ebp - 0x210], 0
je 0x100cdb2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x210], 0
lea ecx, [ebp - 0x224]
call fcn.0101293c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042af
leave
ret
Function at 0x100eddd
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x101d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x800
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0xa10]
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0xa10]
push eax
push dword [edi + 0x10c]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x100eea9
cmp dword [ebp - 0x210], esi
ja 0x100eea9
xor esi, esi
test dword [ebp - 0x210], 0xfffffffc
jbe 0x100eecd
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + esi*4 - 0xa10]
push dword [edi + 0x10c]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x100ee90
lea eax, [ebp - 0x20c]
push eax
call fcn.01016739
test eax, eax
je 0x100ee90
push 0x1002730
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x100eea0
mov eax, dword [ebp - 0x210]
inc esi
shr eax, 2
cmp esi, eax
jb 0x100ee4d
jmp 0x100eecd
mov eax, dword [ebp + esi*4 - 0xa10]
jmp 0x100eecf
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100eecd
test byte [eax + 0x1c], 1
je 0x100eecd
push 0x1002720
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010042af
leave
ret
Function at 0x100f01e
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push ebx
push edi
mov ebx, ecx
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100f06d
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f063
test byte [eax + 0x1c], 1
je 0x100f063
push 0x1002720
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
jmp 0x100f149
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and dword [ebp - 4], 0
and dword [ebp + 8], 0
mov dword [edi], 1
lea esi, [ebx + 0x384]
lea eax, [esi - 0x214]
push 0x1001c80
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x100f0b1
mov eax, dword [esi]
test eax, eax
je 0x100f0b1
cmp eax, dword [ebx + 0x108]
ja 0x100f126
lea eax, [esi - 0x214]
push 0x1001c90
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x100f0d5
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
add eax, 0x20
cmp eax, dword [esi]
jb 0x100f126
lea eax, [esi - 0x214]
push 0x1001d44
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x100f0f0
cmp dword [esi], eax
je 0x100f126
cmp dword [esi - 0x218], 4
jne 0x100f10a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x101d614]
test eax, eax
je 0x100f10a
cmp dword [esi], eax
ja 0x100f12b
add dword [ebp + 8], 0x18
inc dword [ebp - 4]
add esi, 0x220
cmp dword [ebp + 8], 0x1f8
jb 0x100f08c
jmp 0x100f146
and dword [edi], 0
jmp 0x100f146
mov eax, dword [ebp - 4]
mov ecx, eax
imul ecx, ecx, 0x18
imul eax, eax, 0x220
mov ecx, dword [ecx + 0x101d614]
mov dword [eax + ebx + 0x384], ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x100f154
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.0101292a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100f1a6
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f191
test byte [eax + 0x1c], 1
je 0x100f191
push 0x1002720
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80070057
lea ecx, [ebp - 0x14]
call fcn.0101293c
mov eax, edi
pop edi
pop esi
leave
ret 4
push 0x10027ac
push 0x1001ff8
lea eax, [ebp - 0x14]
push 0x1002250
push eax
call fcn.010136de
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x100f1ee
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f196
test byte [eax + 0x1c], 1
je 0x100f196
push edi
push 0x1002720
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100f196
and dword [esi], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x1002784
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 4
call fcn.01012949
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x100f25c
cmp eax, 2
je 0x100f254
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f24a
test byte [eax + 0x1c], 1
je 0x100f24a
push 0x1002720
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov edi, 0x80004005
jmp 0x100f196
mov dword [esi], 1
jmp 0x100f267
xor eax, eax
cmp dword [ebp - 8], 1
setne al
mov dword [esi], eax
xor edi, edi
jmp 0x100f196

Function at 0x100f273
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push 4
push edi
push edi
push edi
push 0x1001ff8
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x100f2cd
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f344
test byte [eax + 0x1c], 1
je 0x100f344
push 0x1002720
push 0x2e
jmp 0x100f339
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push 1
push edi
push edi
push 0x10027ac
push dword [ebp - 8]
call esi
test eax, eax
je 0x100f305
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f344
test byte [eax + 0x1c], 1
je 0x100f344
push 0x1002720
push 0x2f
jmp 0x100f339
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x1002784
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100f34b
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100f344
test byte [eax + 0x1c], 1
je 0x100f344
push 0x1002720
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov ebx, 0x80004005
jmp 0x100f34d
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x100f360
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x100f36a
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4