joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006d51
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x1001538
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x101031c], eax
test eax, eax
jne 0x1006d72
xor eax, eax
jmp 0x1006da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1006d94
push dword [0x101031c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x101031c], 0
jmp 0x1006d6e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.PlaySndSrv.DLL_PlaySoundServerInitialize
test eax, eax
jl 0x1006d7f
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x1007985
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10079de
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10079d0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10079cc
cmp esi, eax
jae 0x10079d0
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10079be
cmp esi, eax
jb 0x10079d4
xor eax, eax
jmp 0x10079dd
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1008051
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.01006cb0
test eax, eax
je 0x10080d1
mov eax, dword [edi + 0xa8]
dec eax
push esi
push 0
pop esi
je 0x10080b1
dec eax
je 0x100809a
dec eax
je 0x1008090
dec eax
je 0x1008086
dec eax
jne 0x10080bb
push 5
push esi
push 0x1001b98
jmp 0x10080a2
push 5
push esi
push 0x1001ac8
jmp 0x10080a2
push 5
push esi
push 0x10019f0
jmp 0x10080a2
push 5
push esi
push 0x1001918
push 0x1001904
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10080be
push 5
push esi
push 0x1001830
jmp 0x10080a2
mov eax, dword [ebp - 4]
cmp eax, 0x20
jg 0x10080d0
push esi
push 0xc8
mov ecx, edi
call fcn.01007fa1
pop esi
pop edi
leave
ret

Function at 0x1008364
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov edi, eax
test edi, edi
je 0x10083e2
lea eax, [ebp - 0x210]
push eax
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x10083db
lea eax, [ebp - 0x20c]
push eax
push 0x100830a
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsW]
test eax, eax
je 0x10083d4
xor esi, esi
jmp 0x10083db
call fcn.010081a4
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01009ac9
leave
ret
Function at 0x1008767
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push 0xffffffffffffffff
push 0x1001e44
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x7b4], eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x1008811
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x1001e14
mov ebx, 0x1001cb8
push ebx
mov edi, 0x80000001
push edi
call fcn.0100d03f
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001de4
push ebx
push edi
call fcn.0100d03f
push 0x71
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x7b4]
call dword [sym.imp.UxTheme.dll_Ordinal_65]
push 0
push 0x2a
push 0x1a
push 0xffff
mov edi, eax
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
jmp 0x1008971
call dword [sym.imp.UxTheme.dll_IsThemeActive]
xor esi, esi
test eax, eax
je 0x1008826
push esi
push esi
push esi
call dword [sym.imp.UxTheme.dll_Ordinal_4]
lea eax, [ebp - 0x7bc]
push eax
push 0x20019
push esi
push 0x1001d70
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jle 0x1008851
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x1008971
push 3
mov dword [ebp - 0x7b8], esi
mov esi, 0x104
pop ebx
lea eax, [ebp - 0x7c4]
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x7c0]
push eax
push 0
lea eax, [ebp - 0x7c8]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x7b8]
mov dword [ebp - 0x7c0], ebx
push dword [ebp - 0x7bc]
mov dword [ebp - 0x7c4], 0x2d0
mov dword [ebp - 0x7c8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jle 0x10088c4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x100891d
cmp dword [ebp - 0x7c0], ebx
jne 0x100891d
cmp word [ebp - 0x4dc], 2
jne 0x100891d
mov eax, dword [ebp - 0x7b4]
cmp word [eax], 0x40
je 0x10088fb
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
mov edi, eax
test edi, edi
jl 0x100891d
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x7b4]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x100892d
inc dword [ebp - 0x7b8]
test edi, edi
jge 0x1008869
jmp 0x100895a
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.010083f7
lea eax, [ebp - 0x7b0]
push eax
call fcn.010085f6
lea eax, [ebp - 0x7b0]
push eax
call fcn.01008619
mov edi, eax
push dword [ebp - 0x7bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jl 0x1008971
call fcn.01008364
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01009ac9
leave
ret 4
Function at 0x1009690
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010095d1
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 0x1009703
cmp dword [ebp - 0x94], 5
jb 0x1009724
jmp 0x1009720
cmp dword [ebp - 0x88], 1
jne 0x1009724
cmp dword [ebp - 0x94], 4
ja 0x1009720
jne 0x1009724
cmp dword [ebp - 0x90], 0
jbe 0x1009724
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100202c
call fcn.01009468
test eax, eax
jge 0x1009745
mov byte [0x10102bc], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01009ac9
leave
ret
Function at 0x1009aaf
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100d558
call fcn.01009bcc
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, 0x1010750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100986a
cmp eax, esi
jne 0x100985d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100986d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1009844
xor esi, esi
inc esi
mov eax, dword [0x101074c]
cmp eax, esi
jne 0x1009880
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10098af
mov eax, dword [0x101074c]
test eax, eax
jne 0x10098a9
mov dword [0x101074c], esi
push 0x10013f8
push 0x10013ec
call fcn.010097a6
pop ecx
pop ecx
test eax, eax
je 0x10098af
jmp 0x10099d3
mov dword [0x1010404], esi
mov eax, dword [0x101074c]
cmp eax, esi
jne 0x10098d3
push 0x10013e8
push 0x10013d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101074c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10098e0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101075c], ebx
je 0x1009901
push 0x101075c
call fcn.01009df9
pop ecx
test eax, eax
je 0x1009901
push ebx
push 2
push ebx
call dword [0x101075c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10099d3
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100996b
cmp cx, bx
je 0x1009926
cmp dword [ebp - 0x1c], ebx
jne 0x100996b
movzx ecx, word [eax]
cmp cx, bx
je 0x100993b
cmp cx, 0x20
ja 0x100993b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1009926
test byte [ebp - 0x40], 1
je 0x1009947
movzx ecx, word [ebp - 0x3c]
jmp 0x100994a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1010400], eax
cmp dword [0x10103f4], ebx
jne 0x10099b0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100997c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1009910
cmp dword [0x1010404], ebx
jne 0x10099be
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1010400]
jmp 0x10099df
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01009c11
ret
call fcn.01009f46
jmp 0x1009807
Function at 0x100a27a
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2230
call fcn.0100a100
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2230]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x100a3ea
shr dword [ebp - 0x210], 2
mov eax, 0x800
cmp dword [ebp - 0x210], eax
jbe 0x100a2e4
mov dword [ebp - 0x210], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x214], edi
call ebx
test eax, eax
je 0x100a3e9
mov dword [ebp - 0x218], edi
cmp dword [ebp - 0x210], edi
jbe 0x100a3e3
push esi
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp + edi*4 - 0x2230]
push dword [esi]
call ebx
test eax, eax
je 0x100a3be
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x214]
jne 0x100a3be
mov esi, dword [esi]
cmp dword [ebp - 0x228], esi
je 0x100a3be
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100a3be
lea eax, [ebp - 0x230]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x100a3b7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push esi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x100a3b7
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100a3cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x100a322
jmp 0x100a3e2
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
mov eax, dword [ebp + edi*4 - 0x2230]
mov dword [ebp - 0x218], eax
pop esi
mov eax, dword [ebp - 0x218]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01009ac9
leave
ret 8
Function at 0x100ac15
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa2
call esi
mov edi, 0x8000
xor ebx, ebx
mov ecx, edi
inc ebx
test cx, ax
je 0x100ac46
mov dword [ebp - 4], ebx
push 0xa3
call esi
push 2
test di, ax
pop edi
je 0x100ac58
or dword [ebp - 4], edi
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x100ac6d
or dword [ebp - 4], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x100ac82
or dword [ebp - 4], 8
push 0xa0
call esi
mov ecx, 0x8000
test cx, ax
je 0x100ac97
or dword [ebp - 4], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x100acac
or dword [ebp - 4], 0x20
and dword [ebp - 0x1c4], 0
push 0x1bc
lea eax, [ebp - 0x1c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
test byte [ebp - 4], bl
je 0x100acea
mov eax, 0xa2
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], edi
mov eax, ebx
test byte [ebp - 4], 2
push 3
pop esi
je 0x100ad0e
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa3
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 4
je 0x100ad2f
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa4
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 8
je 0x100ad50
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa5
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 0x10
je 0x100ad71
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa0
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 0x20
je 0x100ad92
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa1
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x5b
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x55
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov word [ecx + 4], dx
mov dword [ecx], ebx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
push 0x5b
lea ecx, [ebp + ecx - 0x1c4]
pop edx
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
push 0x1c
lea ecx, [ebp - 0x1c4]
push ecx
inc eax
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b4fe
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x1002248
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], ebx
call fcn.01006c05
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x100b661
cmp word [esi], bx
je 0x100b661
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push esi
mov dword [ebp - 4], ebx
call fcn.0100b2c5
test eax, eax
jl 0x100b63c
lea eax, [ebp - 4]
push eax
push 0x104
push dword [ebp - 4]
call fcn.0100ab0a
test eax, eax
jl 0x100b63c
push dword [ebp - 4]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0100b3b7
test al, al
jne 0x100b58a
push dword [ebp + 8]
call fcn.0100978f
mov esi, 0x8007000e
jmp 0x100b641
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, ebx
jne 0x100b5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100b5b2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call fcn.0100978f
jmp 0x100b641
cmp esi, dword [ebp - 4]
jbe 0x100b5d1
push edi
call fcn.0100978f
mov esi, 0x8007007a
jmp 0x100b641
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
jg 0x100b64d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b610
test byte [eax + 0x1c], 8
je 0x100b610
push edi
push dword [ebp + 8]
push 0x100221c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ae8f
cmp edi, 2
jl 0x100b634
cmp edi, 3
jle 0x100b61f
cmp edi, 0xb
jne 0x100b634
cmp esi, ebx
jle 0x100b62f
and esi, 0xffff
or esi, 0x80070000
push dword [ebp + 8]
jmp 0x100b5b5
push dword [ebp + 8]
call fcn.0100978f
mov esi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.01006c49
mov eax, esi
jmp 0x100b66e
push dword [ebp + 8]
call fcn.0100978f
lea ecx, [ebp - 0x10]
call fcn.01006c49
xor eax, eax
jmp 0x100b66e
lea ecx, [ebp - 0x10]
call fcn.01006c49
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100cb11
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20019
xor esi, esi
push 0x1002528
mov dword [ebp - 0x90], ecx
push 0x80000002
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
call fcn.0100a14e
test eax, eax
jne 0x100cbfe
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x88], esi
call edi
mov ebx, 0x103
jmp 0x100cbf8
lea eax, [ebp - 0x84]
push eax
call fcn.0100a8cc
mov dword [ebp - 0xa0], eax
cmp eax, esi
je 0x100cbc8
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x54
call fcn.0100cae2
inc dword [ebp - 0x88]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push dword [ebp - 0x9c]
call edi
cmp eax, ebx
jne 0x100cb9d
pop edi
pop ebx
lea ecx, [ebp - 0x9c]
call fcn.0100a130
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
xor ecx, ebp
add eax, 0x54
pop esi
call fcn.01009ac9
leave
ret

Function at 0x100d063
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100d06e
sub eax, edx
sar eax, 1
cmp eax, 0x7fffffff
jae 0x100d09d
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueW
jmp 0x100d0a2
mov eax, 0x216
test eax, eax
jle 0x100d0b0
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10
Function at 0x18006c69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006cc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006cb1
cmp esi, ecx
jae 0x18006cc2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c9f
cmp esi, ecx
jae 0x18006cc2
cmp word [esi], 0
je 0x18006cc2
lfence
mov eax, esi
jmp 0x18006cc4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007db8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007dd3
mov al, 1
jmp 0x18007e16
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.181370e0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007dcf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18122438
leave
ret
Function at 0x1800835f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.18009145
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x18008404
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x1800840f
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x18008419
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x181d7140]
mov ecx, dword [eax + 0x181d7144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008492
cmp ecx, 9
ja 0x18008492
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009145
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008475
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x18008478
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006f72
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x18008428
call fcn.18011f9e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122438
leave
ret