joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74fd4e05
Capabilities:
Enumerate disk volumes

Disassembly:
push 0x2b0
push 0x74fd4ff0
call fcn.74fd1320
mov eax, dword [section..data]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2a4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a8], eax
or dword [ebp - 0x29c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 4], ebx
push 0x66
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x74fd76ee
mov dword [ebp - 0x298], 1
cmp dword [ebp - 0x298], 0x1a
ja 0x74fd4fd5
and dword [ebp - 0x2ac], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 0x2c0], eax
add eax, eax
mov ecx, eax
lea esi, [ebp - 0x84]
lea edi, [ebp - 0x290]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov word [ebp + eax - 0x292], di
lea eax, [ebp - 0x290]
push eax
mov esi, dword [ebp - 0x2a4]
mov ecx, esi
call fcn.74fd4384
mov dword [ebp - 0x2ac], eax
cmp eax, edi
jne 0x74fd76f8
lea eax, [ebp - 0x84]
push eax
call fcn.74fd44b7
test eax, eax
je 0x74fd4fa9
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2b8], eax
cmp eax, edi
je 0x74fd502b
mov dword [eax], edi
mov dword [eax + 4], edi
mov ebx, eax
mov dword [ebp - 0x294], ebx
cmp ebx, edi
je 0x74fd770a
push 0xac8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2b0], eax
cmp eax, edi
je 0x74fd5032
mov ecx, eax
call fcn.74fd5e42
mov dword [ebx], eax
cmp eax, edi
je 0x74fd7719
mov dword [ebp - 4], 1
push dword [ebp - 0x2a8]
lea eax, [esi + 0x268]
lea ecx, [esi + 0x26c]
neg eax
sbb eax, eax
and eax, ecx
push eax
push dword [ebp - 0x2a0]
push esi
push dword [esi + 0x308]
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebx]
call fcn.74fd5d2f
test eax, eax
je 0x74fd4f9e
inc dword [ebp - 0x298]
push ebx
mov ecx, esi
call fcn.74fd4875
xor ebx, ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x74fd7755
push 0x66
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x74fd4e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x74fd7776
or dword [ebp - 4], 0xffffffff
call fcn.74fd500d
mov ecx, dword [ebp - 0x1c]
call fcn.74fd1300
call fcn.74fd1550
ret 0xc
xor eax, eax
jmp 0x74fd4f0f
xor eax, eax
jmp 0x74fd4f3f
call fcn.74fda236
jmp 0x74fd4e64
mov ecx, eax
call fcn.74fd1fe3
inc dword [ebp - 0x298]
jmp 0x74fd4fa9
push 0x8007000e
call fcn.74fd921a
jmp 0x74fd4f1f
push 0x8007000e
call fcn.74fd921a
jmp 0x74fd4f49
mov ecx, dword [ebx]
call fcn.74fd1fe3
mov dword [ebp - 0x2b4], ebx
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor ebx, ebx
mov dword [ebp - 0x294], ebx
jmp 0x74fd4fa9
call fcn.74fda236
jmp 0x74fd4e6e
Function at 0x74fd5fc3
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x3c
push 0x74fd5fe8
call fcn.74fd1320
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x28], ebx
jne 0x74fd7dcb
call fcn.74fd1550
ret
lea ecx, [esi + 8]
call fcn.74fd1400
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x74fd4008
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x74fd7df6
mov dword [ebp - 0x1c], ebx
jmp 0x74fd7e6f
lea ecx, [ebp - 0x4c]
call fcn.74fe1d16
push 0x18
pop edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 0x28]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x74fd7e6f
cmp dword [ebp - 0x20], 3
jne 0x74fd7e5c
cmp dword [ebp - 0x24], edi
jne 0x74fd7e5c
lea eax, [esi + 0x50]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
lea eax, [esi + 0x58]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x4c], eax
jmp 0x74fd7e6f
push dword [esi + 0x28]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x28], 2
or dword [ebp - 4], 0xffffffff
call fcn.74fd7e8c
jmp 0x74fd5fe2

Function at 0x74fd6082
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
push 0x74fd60f0
call fcn.74fd1320
mov dword [ebp - 0x38], ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 4
pop edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x19]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.74fd6128
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
jne 0x74fd7937
cmp byte [ebp - 0x19], bl
je 0x74fd795f
or dword [ebp - 4], 0xffffffff
call fcn.74fd6101
mov eax, dword [ebp - 0x38]
add eax, 0x1c8
movzx ecx, byte [ebp - 0x19]
shl ecx, 1
xor ecx, dword [eax]
and ecx, 2
xor dword [eax], ecx
call fcn.74fd1550
ret
mov dword [ebp - 0x24], ebx
jle 0x74fd7946
and eax, 0xffff
or eax, 0x80070000
push ebx
push eax
push 0x176
push 0x72
call fcn.74fe2f55
push esi
call fcn.74fd98c1
jmp 0x74fd60bc
lea eax, [ebp - 0x20]
push eax
push 0x74fd7a20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x74fd60c5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x74fd79e0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x74fd60c5
cmp dword [ebp - 0x30], edi
jne 0x74fd60c5
cmp byte [ebp - 0x19], bl
jne 0x74fd79bb
cmp dword [ebp - 0x34], ebx
jne 0x74fd79bb
xor al, al
jmp 0x74fd79bd
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x74fd60c5
Function at 0x74fd96f1
Capabilities:
Get common file path

Disassembly:
push 0x238
push 0x74fd9898
call fcn.74fd1320
mov eax, dword [section..data]
mov dword [ebp - 0x1c], eax
mov ebx, ecx
mov dword [ebp - 0x23c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x244], esi
xor edi, edi
mov dword [ebp - 0x234], edi
lea ecx, [ebx + 4]
call fcn.74fd1400
mov dword [ebp - 4], edi
cmp dword [ebx + 0x24], esi
ja 0x74fd97dc
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x22c], edi
push 0x105
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x248], eax
cmp eax, edi
je 0x74fd9852
cmp eax, 0x104
ja 0x74fd9852
mov edi, 0x80
cmp dword [ebx + 0x24], esi
ja 0x74fd97dc
and dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
push 0
push 0x20
push 1
push 7
push edi
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.74fd2cc7
mov dword [ebp - 0x240], eax
test eax, eax
jl 0x74fd9852
push dword [ebp - 0x230]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [ebp - 0x230], 0
mov ecx, ebx
call fcn.74fd2815
inc dword [ebp - 0x22c]
cmp dword [ebp - 0x22c], 0x64
ja 0x74fd9852
jmp 0x74fd977a
mov eax, 0x100
cmp dword [ebx + 0x24], eax
jb 0x74fd97e9
mov dword [ebx + 0x24], eax
sub dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x28]
mov ecx, esi
mov esi, eax
mov edi, dword [ebp - 0x238]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
mov edx, dword [ebp - 0x244]
sub ecx, edx
lea esi, [edx + ebx + 0x28]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
xor eax, eax
mov edi, ebx
sub edi, edx
add edi, 0x128
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp - 0x234], 1
or dword [ebp - 4], 0xffffffff
call fcn.74fd9881
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x1c]
call fcn.74fd1300
call fcn.74fd1550
ret 8
Function at 0x74fda3a7
Capabilities:
Set file attributes

Disassembly:
push 0x30
push 0x74fda4a8
call fcn.74fd1320
mov dword [ebp - 0x28], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x74fda3ea
mov dword [ebp - 0x1c], 0xc0000033
jmp 0x74fda451
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
movzx ebx, word [ebp - 0x38]
add ebx, 0x10
mov dword [ebp - 0x2c], ebx
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x74fda414
mov dword [ebp - 0x1c], 0xc0000017
jmp 0x74fda451
mov byte [eax], 1
mov dword [eax + 4], esi
movzx ecx, word [ebp - 0x38]
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x38]
mov esi, dword [ebp - 0x34]
lea edi, [eax + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [ebp - 0x1c], eax
xor esi, esi
or dword [ebp - 4], 0xffffffff
call fcn.74fda49a
cmp dword [ebp - 0x20], esi
je 0x74fda468
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x24], esi
je 0x74fda483
mov eax, dword fs:[0x18]
push dword [ebp - 0x24]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1c]
call fcn.74fd1550
ret 4

Function at 0x74fda4b9
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x210]
push 0x74fd8cc0
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 1
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x74fda523
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
je 0x74fda530
call esi
cmp eax, 2
je 0x74fda530
call esi
push eax
call fcn.74fd98c1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.74fd1300
leave
ret 4

Function at 0x74fda5d4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
call fcn.74fd2ecd
mov edi, dword [esi + 8]
xor eax, eax
add edi, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
mov ecx, esi
pop esi
jmp fcn.74fdae4b
Function at 0x74fdae4b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.74fd2ecd
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x74fdaed7
test byte [esi], 1
je 0x74fdaed7
push edi
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
push dword [esi + 8]
mov dword [ebp - 8], edi
push ecx
push edi
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x74fdaea2
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, edi
jl 0x74fdaea6
mov eax, dword [ebp - 0x10]
cmp eax, edi
jge 0x74fdaeac
push eax
call fcn.74fd921a
mov eax, dword [0x74fe6010]
cmp eax, edi
je 0x74fdaebd
lea ecx, [eax + 0x20]
call fcn.74fd2815
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0xc]
je 0x74fdaecf
push 0x8dead001
call fcn.74fd921a
push edi
mov ecx, esi
call fcn.74fda5f8
pop edi
pop esi
leave
ret

Function at 0x74fdaf46
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
call fcn.74fda61c
mov eax, dword [esi]
test al, 1
je 0x74fdafea
test al, 2
je 0x74fdafea
mov eax, dword [esi + 0x14]
xor edx, edx
div dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
add eax, dword [esi + 8]
imul eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [esi + 0x18]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x74fdafb4
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, edi
jl 0x74fdafb8
mov eax, dword [ebp - 0x10]
cmp eax, edi
jge 0x74fdafbe
push eax
call fcn.74fd921a
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x74fdafd0
push 0x8dead001
call fcn.74fd921a
mov eax, dword [0x74fe6010]
cmp eax, edi
je 0x74fdafe1
lea ecx, [eax + 0x20]
call fcn.74fd2815
push edi
mov ecx, esi
call fcn.74fda638
pop edi
pop esi
leave
ret
Function at 0x74fdaff2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
test byte [esi], 1
je 0x74fdb018
mov eax, dword [esi + 0x14]
cmp dword [ebp + 8], eax
jb 0x74fdb018
mov ecx, dword [esi + 0x10]
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x74fdb0bc
push ebx
push edi
mov ecx, esi
call fcn.74fdaf46
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 0x10]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov edi, eax
mov eax, dword [esi + 0xc]
add edi, dword [esi + 8]
mov ecx, eax
imul ecx, edi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi + 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x74fdb070
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, ebx
jl 0x74fdb074
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jge 0x74fdb08a
mov ecx, 0xc000026e
cmp eax, ecx
jne 0x74fdb080
push ecx
jmp 0x74fdb085
push 0x8dead001
call fcn.74fd921a
mov eax, dword [0x74fe6010]
cmp eax, ebx
je 0x74fdb09b
lea ecx, [eax + 0x20]
call fcn.74fd2815
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x74fdb0ad
push 0x8dead001
call fcn.74fd921a
sub edi, dword [esi + 8]
imul edi, dword [esi + 0x10]
or dword [esi], 1
mov dword [esi + 0x14], edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x74fe1f25
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 9
push 0x20e
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
jl 0x74fe1f83
mov eax, dword [ebp - 0x214]
shr eax, 1
and word [ebp + eax*2 - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.74fd1300
leave
ret 8
Function at 0x74fe2b19
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x74fe2bd8
call fcn.74fd1320
mov esi, ecx
mov dword [ebp - 0x2c], esi
push 4
pop edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
lea ecx, [esi + 4]
call fcn.74fd1400
and dword [ebp - 4], 0
mov ecx, esi
call fcn.74fe2752
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x74fe2b9e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x74fe2b83
cmp dword [ebp - 0x24], edi
jne 0x74fe2b8d
cmp dword [ebp - 0x20], edi
jne 0x74fe2b8d
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
jmp 0x74fe2b9e
cmp eax, 2
je 0x74fe2b9a
cmp eax, 3
je 0x74fe2b9a
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x74fe2b9e
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
call fcn.74fe2bbf
mov eax, dword [ebp - 0x1c]
call fcn.74fd1550
ret 0xc

Function at 0x74fe2e3f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x190
push esi
push edi
push 0x64
xor eax, eax
pop ecx
lea edi, [ebp - 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
xor edi, edi
add eax, 0xfffffffc
add eax, 4
mov ecx, dword [eax]
cmp ecx, esi
movzx edx, di
mov dword [ebp + edx*4 - 0x190], ecx
je 0x74fe2e7d
inc edi
cmp di, 0x64
jb 0x74fe2e63
push dword [0x74fe6930]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp eax, esi
mov dword [ebp + 0x18], eax
jne 0x74fe2eb8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x74fe2ea6
call esi
mov esi, eax
jmp 0x74fe2f27
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x74fe2f27
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0x190]
push ecx
push dword [ebp + 0x10]
push edi
push esi
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jne 0x74fe2efd
call edi
test eax, eax
jg 0x74fe2ef1
call edi
mov esi, eax
jmp 0x74fe2efd
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x74fe2f26
test esi, esi
jne 0x74fe2f26
call edi
test eax, eax
jg 0x74fe2f1a
call edi
mov esi, eax
jmp 0x74fe2f26
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x74fe319a
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov esi, ecx
setne cl
push ecx
jmp 0x74fe322b
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x74fe3250
lea ecx, [esi + 0x10]
mov dword [esi + 0x910], ecx
push 0x48
mov dword [esi + 8], eax
xor edx, edx
pop ecx
div ecx
mov ebx, eax
lea eax, [ebx + ebx*8]
lea ecx, [esi + eax*8 + 0x10]
lea eax, [esi + 0x10]
cmp eax, ecx
jae 0x74fe321b
mov eax, dword [esi + 0x910]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
and ecx, 0xffff
cmp edx, 3
jne 0x74fe321b
cmp ecx, edi
jne 0x74fe321b
add eax, 0x48
mov dword [esi + 0x910], eax
mov eax, dword [esi + 8]
push 0x48
xor edx, edx
pop ecx
div ecx
lea eax, [eax + eax*8]
lea eax, [esi + eax*8 + 0x10]
cmp dword [esi + 0x910], eax
jb 0x74fe31df
lea eax, [ebx + ebx*8]
lea eax, [esi + eax*8 + 0x10]
cmp dword [esi + 0x910], eax
jb 0x74fe325c
push edi
push edi
push edi
push 0x1d
push 0x900
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
jge 0x74fe31b1
mov dword [esi + 8], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0xc]
add esi, 0x910
push dword [ebp + 8]
push dword [esi]
call fcn.74fdbe22
add dword [esi], 0x48
xor eax, eax
inc eax
jmp 0x74fe3255

Function at 0x74fe3506
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.74fe32d4
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
or dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x240], eax
lea eax, [esi + 0x28]
push 0x74fe35b0
push eax
mov dword [esi + 0x18], 1
call edi
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x74fe354f
push dword [ebp + 0xc]
lea eax, [esi + 0x2c]
push eax
call edi
pop ecx
pop ecx
jmp 0x74fe3574
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x2c]
push eax
mov dword [ebp + 8], 0x208
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x74fe3574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.74fd98c1
push 0
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x1c]
push eax
push 0xffffffffffffffff
add esi, 0x24
push esi
push 0x1f6
push dword [ebp + 0xc]
call sub.NETAPI32.dll_NetShareEnum
test eax, eax
pop edi
pop esi
je 0x74fe35a9
jle 0x74fe35a3
and eax, 0xffff
or eax, 0x80070000
push eax
call fcn.74fd98c1
leave
ret 8
Function at 0x409f20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a7bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ef20
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409fa2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cccd
mov eax, dword [eax]
push 0x49f1d0
push eax
call fcn.0044f154
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f1ab
test bl, bl
je 0x409fa2
push 0x49f1d0
lea ecx, [esp + 0xc]
call fcn.0045f53b
push 0x4a2d4c
lea ecx, [esp + 0xc]
call fcn.0045f53b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409fde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f1ab
jmp 0x40a0a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a062
lea edx, [esp + 0x7c]
push 0x4a2d48
push edx
call fcn.0044f154
add esp, 8
test eax, eax
je 0x40a062
lea eax, [esp + 0x7c]
push 0x4a2d44
push eax
call fcn.0044f154
add esp, 8
test eax, eax
je 0x40a062
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409ff2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045f1ab
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a8a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a902
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc