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

Disassembly:
call fcn.7cde817d
test eax, eax
jl 0x7cdb92c7
call fcn.7cdb9077
test eax, eax
jl 0x7cdb92c7
call fcn.7ce2970b
test eax, eax
jl 0x7cdb92c7
call fcn.7ce0980d
test eax, eax
jl 0x7cdb92c7
jmp 0x7cde8194
ret
mov ecx, dword [0x7cd76988]
xor eax, eax
push esi
push edi
cmp byte [ecx], al
je 0x7cde81d4
mov esi, 0x7cd76988
test eax, eax
jne 0x7cde81d8
mov edx, dword [esi + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push dword [esi]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [esi + 8]
add esi, 8
cmp byte [ecx], 0
jne 0x7cde81a7
test eax, eax
je 0x7cde81eb
cmp eax, 0xfffffff7
ja 0x7cde81e4
cmp eax, 0x2000
jae 0x7cde81ed
or eax, 0x80070000
jmp 0x7cde81ed
xor eax, eax
pop edi
pop esi
ret

Function at 0x7cdb9dcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x7ce4e168], 0
jne 0x7cdb9e50
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x7cd72810
push 0x80000002
mov dword [0x7ce4e168], 0x1400000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cdb9e50
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x7cd727d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cdb9e47
cmp dword [ebp - 0xc], 4
jne 0x7cdb9e47
mov eax, dword [ebp - 0x10]
cmp eax, 0x1400000
jbe 0x7cdb9e47
mov dword [0x7ce4e168], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x7ce4e168]
leave
ret

Function at 0x7cdba9d1
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 4]
push esi
push eax
push 0x7cd729f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7cdbaaa6
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x7cd729e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7cdbaaa6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.7cdbaab8
test eax, eax
jl 0x7cdbaaa6
lea eax, [ebp - 0x1c]
push eax
call fcn.7cdbab0c
test eax, eax
mov dword [0x7ce4e16c], eax
je 0x7cdbaaa6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7cd729dc
push eax
call esi
push 0x7cd729cc
mov dword [0x7ce4e170], eax
push dword [0x7ce4e16c]
call esi
push 0x7cd729b8
mov dword [0x7ce4e174], eax
push dword [0x7ce4e16c]
call esi
push 0x7cd729a4
mov dword [0x7ce4e178], eax
push dword [0x7ce4e16c]
call esi
push 0x7cd72990
mov dword [0x7ce4e17c], eax
push dword [0x7ce4e16c]
call esi
mov dword [0x7ce4e180], eax
cmp dword [ebp - 4], 0
je 0x7cdbaab5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x7cdbab0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
push esi
push edi
mov esi, 0x7cd72a18
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x4e
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 4], esi
call sym.ole32.dll_StringFromGUID2
cmp eax, esi
jl 0x7cdbac70
push esi
push esi
lea eax, [ebp - 0x40]
push 0x4e
push eax
or ebx, 0xffffffff
lea eax, [ebp - 0x90]
push ebx
push eax
push 0x200
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, 0x7cd729e8
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x194]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0x194]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7cd72a14
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x194]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x40]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x194]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7cd72a14
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x18]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x194]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
mov ecx, edx
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x194]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x7cdbac70
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7cdbb399
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0x100
mov dword [ebp - 4], ebx
call fcn.7cde48b3
test eax, eax
jne 0x7cdbb3ff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x7cdbb3ff
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp + 0xc]
push 1
push 0x7cd73028
push dword [ebp - 4]
call esi
test eax, eax
je 0x7cdbb416
cmp dword [ebp - 4], ebx
je 0x7cdbb4de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7cdbb4de
push 0x7cd72fd8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x7cdbb436
push ebx
push ebx
push 1
push 0x7cd72fb4
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
test eax, eax
jne 0x7cdbb4d3
push dword [ebp + 0xc]
and dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push 0x7cd72fa0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 8]
add esp, 0xc
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.7cde4906
test eax, eax
jne 0x7cdbb4d3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.7cde48b3
test eax, eax
jne 0x7cdbb4d3
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
push 1
push 0x7cd72f8c
push dword [ebp - 4]
call esi
test eax, eax
jne 0x7cdbb4d3
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
push 1
push 0x7cd726cc
push dword [ebp - 4]
call esi
test eax, eax
jne 0x7cdbb4d3
push dword [ebp - 4]
call ebx
test eax, eax
je 0x7cdbb4e5
cmp dword [ebp - 4], 0
je 0x7cdbb4de
push dword [ebp - 4]
call ebx
mov eax, 0x80040151
jmp 0x7cdbb4e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7cdc035c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov eax, 0x100
push edi
xor esi, esi
push eax
push esi
mov dword [ecx], esi
push dword [0x7ce50ed0]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call dword [0x7ce4df60]
mov ebx, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebx], eax
je 0x7cdc03f8
lea ecx, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
mov eax, 0xea
test esi, esi
je 0x7cdc03b5
cmp esi, eax
jne 0x7cdc0418
cmp dword [ebp - 8], 3
jne 0x7cdc046a
cmp dword [ebp - 4], 0x14
jb 0x7cdc046a
cmp esi, eax
jne 0x7cdc0435
push dword [ebx]
push 0
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
mov eax, dword [ebp - 4]
push eax
push 0
push dword [0x7ce50ed0]
mov dword [ebp - 0xc], eax
call dword [0x7ce4df60]
test eax, eax
mov dword [ebx], eax
jne 0x7cdc03ff
mov esi, 0x8007000e
jmp 0x7cdc046f
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x7cdc0429
mov eax, dword [ebp + 0x18]
or esi, 0x80070000
mov dword [eax], 1
jmp 0x7cdc046f
cmp dword [ebp - 8], 3
jne 0x7cdc046a
cmp dword [ebp - 4], 0x14
jb 0x7cdc046a
mov eax, dword [ebx]
mov ax, word [eax]
cmp ax, 1
jne 0x7cdc044d
push dword [ebp - 0xc]
push ebx
call fcn.7cdc0034
mov esi, eax
jmp 0x7cdc046f
cmp ax, 2
jne 0x7cdc046a
push dword [ebp - 4]
push ebx
call fcn.7cdbff88
mov esi, eax
test esi, esi
jl 0x7cdc0473
mov eax, dword [ebp + 0x14]
or dword [eax], 4
jmp 0x7cdc046f
mov esi, 0x80040153
test esi, esi
jge 0x7cdc0486
push dword [ebx]
push 0
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
and dword [ebx], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x7cdc4a03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 0x20019
push 0
push 0x7cd738f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cdc4a62
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cdc4a59
cmp dword [ebp + 8], 4
jne 0x7cdc4a59
mov esi, dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push esi
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov eax, dword [esi]
pop esi
leave
ret 0xc

Function at 0x7cdccb0d
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov ecx, 0x7cd74104
mov eax, dword [esi + 4]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dx, word [eax]
cmp dx, word [0x7cd74104]
jne 0x7cdccb3c
inc eax
inc eax
inc ecx
inc ecx
mov dx, word [eax]
cmp dx, word [ecx]
je 0x7cdccb30
cmp word [eax], 0x5c
jne 0x7cdccb73
cmp word [ecx], bx
jne 0x7cdccb73
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x7cdccb58
xor eax, eax
jmp 0x7cdccb76
mov edi, eax
cmp word [edi], bx
je 0x7cdccb70
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
inc eax
add dword [esi + 0x14], eax
jmp 0x7cdccb5a
inc dword [esi + 0x14]
push 1
pop eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x7cdcf4d6
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push 0x7cd741ec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0x34]
push 0x7cd741e0
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x7cdcf538
lea eax, [ebp - 0xc]
push esi
push eax
push esi
push 3
push esi
push 0xc000271d
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret 0xc
Function at 0x7cdcf83d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0xc], 7
mov dword [ebp - 4], 0x400
call fcn.7cd8702d
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7cdcf93b
lea ecx, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push eax
lea eax, [ebp - 0xc]
mov edi, 0x7cd74200
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xea
jne 0x7cdcf8c7
push dword [ebp - 8]
call fcn.7cd8701a
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 0x10], eax
add eax, eax
push eax
call fcn.7cd8702d
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x7cdcf93b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x7cdcf929
cmp dword [ebp - 4], ebx
jbe 0x7cdcf929
cmp dword [ebp - 0xc], 7
jne 0x7cdcf929
mov edi, dword [ebp - 8]
cmp word [edi], bx
je 0x7cdcf929
mov esi, 0x7cd741f8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.7cdcf942
push esi
push ebx
mov dword [ebp - 0x10], eax
call fcn.7cdcf942
push eax
call sub.ntdll.dll__wtol
pop ecx
mov dword [ebp + 8], eax
push esi
push ebx
call fcn.7cdcf942
push dword [ebp + 8]
push eax
push dword [ebp - 0x10]
call fcn.7cdcf732
mov eax, dword [ebp - 0x14]
cmp word [edi + eax*2 + 2], bx
lea edi, [edi + eax*2 + 2]
jne 0x7cdcf8e3
push dword [ebp - 8]
call fcn.7cd8701a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8007000e
jmp 0x7cdcf934

Function at 0x7cdcfca1
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
sar eax, 1
pop ecx
shl edi, 8
xor edi, dword [esi]
add esi, 4
dec ecx
jne 0x7cdcfcb8
mov ecx, dword [esp + 0x10]
test eax, eax
jbe 0x7cdcfcd6
shl edi, 8
xor edi, dword [ecx]
add ecx, 4
dec eax
jne 0x7cdcfccb
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x7cdcfe48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x7cd73668
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cdcfebd
mov eax, dword [0x7cd7422c]
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 8], 8
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cdcfeb3
cmp word [ebp - 0x10], 0x59
je 0x7cdcfeb0
cmp word [ebp - 0x10], 0x79
jne 0x7cdcfeb3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x7cdd50f9
Capabilities:
Access peb ldr_data

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x7ce4eeb0
call fcn.7cd85583
or dword [esi + 0x30], 4
push 0x7ce4eeb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
test byte [eax + 0xc], 0x80
je 0x7cdd512c
mov eax, dword [esi + 0x34]
jmp 0x7cdd512e
xor eax, eax
push eax
call fcn.7cdd647e
mov ecx, esi
call fcn.7cdd513f
xor eax, eax
pop esi
ret

Function at 0x7cdd5c2d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x7cdd5c46
mov eax, 0x80070057
jmp 0x7cdd5d27
push esi
mov ecx, 0x7ce4ef50
mov dword [ebp + 8], ebx
call fcn.7cd85583
mov esi, dword [0x7ce4ef74]
cmp esi, ebx
je 0x7cdd5c87
mov eax, dword [esi + 0x10]
push 0x7ce4ef58
mov dword [0x7ce4ef74], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x7cdd5d23
push 0x7ce4ef58
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 4]
push eax
call fcn.7cdbf4ea
push 0x14
call fcn.7cdd5b8d
cmp eax, ebx
je 0x7cdd5cb3
push dword [ebp + 0xc]
mov ecx, eax
push edi
call fcn.7cdd5b3e
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x7cdd5d09
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push ebx
push 0x7cdd5b03
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x7cdd5cdb
push eax
call edi
jmp 0x7cdd5d10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x7cdd5ceb
call esi
jmp 0x7cdd5cf7
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.7cdd5b69
push ebx
call fcn.7cdd5b77
jmp 0x7cdd5d10
mov dword [ebp + 8], 0x8007000e
mov esi, dword [ebp - 4]
test esi, esi
je 0x7cdd5d23
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
push esi
call edi
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x7cdd9cc7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.7cdbc110
push edi
push edi
mov dword [ebp - 0x18], eax
call fcn.7cdbeee5
mov esi, eax
mov ecx, 0x7ce4ec90
neg esi
sbb esi, esi
neg esi
call fcn.7cd85583
cmp word [ebp + 8], di
mov dword [ebp + 0xc], edi
jbe 0x7cdd9e10
mov edi, dword [ebp + 0x10]
push ebx
call fcn.7cd9b50d
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x7cdd9d30
movzx ecx, word [ebp + 0xc]
mov eax, 0x800401fb
mov dword [ebp - 4], eax
mov dword [edi + ecx*4], eax
jmp 0x7cdd9dfa
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x24]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x7cdd9deb
mov ecx, dword [eax + 0x64]
test ecx, ecx
mov dword [ebp - 0xc], ecx
je 0x7cdd9d53
mov edx, dword [ecx + 0x20]
mov dword [ebp + 0x10], edx
jmp 0x7cdd9d64
call fcn.7cdbc137
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x18]
je 0x7cdd9d89
cmp dword [ebp + 0x14], 0
jne 0x7cdd9e3a
push 0x7cd74bf0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx ecx, word [ebp + 0xc]
mov eax, 0x80004005
jmp 0x7cdd9df4
test esi, esi
je 0x7cdd9da2
test ecx, ecx
je 0x7cdd9d97
test byte [edx + 0x24], 2
jne 0x7cdd9da2
movzx ecx, word [ebp + 0xc]
mov eax, 0x80070005
jmp 0x7cdd9df4
cmp dword [ebx + 0x14], 0
je 0x7cdd9dc1
cmp dword [ebp - 8], 0
jne 0x7cdd9dc1
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.7cdd9bbc
test eax, eax
jl 0x7cdd9ddb
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [eax + 4]
push dword [ebp - 8]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x1c]
call fcn.7cd87c30
test eax, eax
jge 0x7cdd9de1
movzx ecx, word [ebp + 0xc]
jmp 0x7cdd9df4
movzx eax, word [ebp + 0xc]
and dword [edi + eax*4], 0
jmp 0x7cdd9dfa
movzx ecx, word [ebp + 0xc]
mov eax, 0x800401fb
mov dword [edi + ecx*4], eax
mov dword [ebp - 4], eax
inc dword [ebp + 0xc]
add ebx, 0x18
mov ax, word [ebp + 0xc]
cmp ax, word [ebp + 8]
jb 0x7cdd9d0f
xor edi, edi
push 0x7ce4ec98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], edi
je 0x7cdd9e30
push dword [ebp - 8]
push edi
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x7ce4ec98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x7cdd9e65
cmp dword [ebp - 0xc], 0
je 0x7cdd9e58
mov eax, dword [ebp + 0x10]
test byte [eax + 0x24], 2
jne 0x7cdd9e65
movzx ecx, word [ebp + 8]
mov eax, 0x80070005
rep stosd dword es:[edi], eax
jmp 0x7cdd9e33
mov eax, dword [ebp + 8]
push 0
sub eax, dword [ebp + 0xc]
push 1
push 0x7cd76058
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], ax
movzx eax, word [ebp + 0xc]
lea eax, [edi + eax*4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0x7cdd9cac
push dword [ebp - 0xc]
call fcn.7cdc24f9
test eax, eax
jge 0x7cdd9e30
mov dword [ebp - 4], eax
jmp 0x7cdd9e30
Function at 0x7cddb283
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x14]
cmp eax, dword [ebx]
jne 0x7cddb2a3
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x18]
cmp ecx, dword [edx]
jbe 0x7cddb2fe
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0x18], ecx
jge 0x7cddb2b5
or dword [ebp + 0x10], 0xffffffff
push 2
pop eax
jmp 0x7cddb2ba
mov dword [ebp + 0x10], ecx
xor eax, eax
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [edi], ecx
push dword [esi + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x7cddb2fe
lea eax, [ebp + 0x18]
push 0
push eax
push dword [esi + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7cddb2fe
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ebx], eax
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov dword [edi], 1
cmp dword [edi], 0
je 0x7cddb315
push esi
push dword [ebp + 0xc]
call fcn.7cddb31e
test eax, eax
je 0x7cddb315
push 1
pop eax
jmp 0x7cddb317
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x7cddb359
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
push ebx
push esi
push edi
mov edi, 0x800
push edi
push 0
push dword [0x7ce50ed0]
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call dword [0x7ce4df60]
mov esi, eax
mov dword [ebx], esi
xor ebx, ebx
cmp esi, ebx
jne 0x7cddb392
mov eax, 0x8007000e
jmp 0x7cddb50c
push 0x10
mov dword [esi], edi
pop edi
lea eax, [ebp - 8]
push eax
push 0x7cd74e54
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], ebx
call fcn.7cde48b3
test eax, eax
jne 0x7cddb503
lea eax, [ebp - 0x90]
push 0x28
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebx
test eax, eax
jne 0x7cddb4fa
lea eax, [ebp - 0x130]
push 0x7cd74e44
push eax
mov dword [ebp - 0x1c], 0x208
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.7cde48c8
test eax, eax
jne 0x7cddb4e3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.7cdb8619
test eax, eax
je 0x7cddb4e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x7cddb4e3
and dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push 0xa
push eax
push 0
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x7cddb4da
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x400
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x7cddb4c2
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
lea eax, [ebp - 0x40]
add edi, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x738]
push edi
push dword [ebp - 0x14]
push eax
call fcn.7cddb511
test eax, eax
je 0x7cddb4c2
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
ja 0x7cddb4b9
mov eax, ecx
mov dword [esi + 4], eax
mov eax, dword [edi + 0x10]
add dword [esi + 0xc], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x7cddb46a
push 0x10
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
lea eax, [ebp - 0x90]
push 0x28
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
jmp 0x7cddb3cc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xc]
add eax, edi
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret