joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e929
Capabilities:
Check for time delay via gettickcount
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x64]
xor esi, esi
cmp eax, 0xfa
jb 0x40e960
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
mov dword [ebx + 0x64], eax
push esi
push 0x472
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push str..dll
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40ea0b
push esi
push esi
push 3
push esi
push 5
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40e9a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40e9ef
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
push 4
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40e9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40e9e7
mov ecx, eax
call fcn.0044c9c5
push dword [ebp - 0xc]
mov bl, al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test bl, bl
je 0x40e9fb
lea ecx, [ebp - 4]
call fcn.0043bb32
lea ecx, [ebp - 8]
call fcn.0043bb32
mov eax, esi
jmp 0x40ea16
lea ecx, [ebp - 4]
call fcn.0043bb32
lea ecx, [ebp - 8]
call fcn.0043bb32
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0044db34
pop esi
pop ebx
leave
ret 8
Function at 0x40ea1c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x258
mov eax, dword [eax - 0xc]
push esi
push edi
dec eax
mov edi, ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043b8a7
push 0x5c
pop ecx
cmp ax, cx
je 0x40ea4a
push ecx
lea ecx, [ebp + 8]
call fcn.0043c971
push 0x48f330
lea edx, [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0043baed
pop ecx
lea ecx, [ebp - 0x258]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
cmp esi, 0xffffffff
jne 0x40ea89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40eb11
test dword [ebp - 0x258], 0x400
jne 0x40eaf6
test byte [ebp - 0x258], 0x10
je 0x40eacc
lea ecx, [ebp - 0x22c]
call fcn.0044cdbe
test al, al
jne 0x40eaf6
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.0043baed
pop ecx
mov ecx, edi
call fcn.0040ea1c
jmp 0x40eaf6
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
push dword [ebp + 0xc]
mov ecx, edi
push dword [eax]
call fcn.0040e929
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x40eb24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x64]
cmp eax, 0xfa
jb 0x40eb56
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
mov dword [esi + 0x64], eax
push 0
push 0x472
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
call fcn.0044dadb
pop esi
pop ebp
ret 4
Function at 0x40eb63
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x25c
mov eax, dword [eax - 0xc]
push esi
push edi
dec eax
mov edi, ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043b8a7
push 0x5c
pop ecx
cmp ax, cx
je 0x40eb91
push ecx
lea ecx, [ebp + 8]
call fcn.0043c971
push 0x48f330
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0043baed
pop ecx
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
cmp esi, 0xffffffff
jne 0x40ebd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40ec52
test dword [ebp - 0x25c], 0x400
jne 0x40ec37
test byte [ebp - 0x25c], 0x10
je 0x40ec10
lea ecx, [ebp - 0x230]
call fcn.0044cdbe
test al, al
jne 0x40ec37
push ecx
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
lea edx, [ebp + 8]
call fcn.0043baed
pop ecx
mov ecx, edi
call fcn.0040eb63
jmp 0x40ec37
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0043baed
pop ecx
mov ecx, edi
push dword [eax]
call fcn.0040eb24
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ebd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x40ef34
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
push 0x3e9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xffff
mov esi, eax
push 0xc5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, str.Data_UserAgreement
mov ecx, 0x4ad470
call fcn.0043b82e
test eax, eax
je 0x40ef82
mov eax, dword [eax + 4]
test eax, eax
jne 0x40ef7a
mov eax, 0x4934ec
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
push 0xcf
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3f9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
inc eax
pop esi
ret 0x10
Function at 0x4102cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push edi
push edi
push 0x62
mov dword [ebp - 4], edi
call esi
cmp eax, 0xc0000023
jne 0x410356
push ebx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x62
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x41034a
movzx ecx, word [ebx]
add ecx, 0x1c
push ecx
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, dword [sym.imp.msvcrt.dll_memcpy]
mov edi, eax
push 0x1e
push str._GLOBALROOT
push edi
call esi
movzx ecx, word [ebx]
lea eax, [edi + 0x1c]
add ecx, 2
push ecx
push dword [ebx + 4]
push eax
call esi
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [eax], edi
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 8]
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x410a8f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x1c]
push 0x2a
call fcn.0044c1b4
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00431d08
pop ecx
lea ecx, [ebp - 0x280]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x14], ebx
call fcn.0043d912
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0043d912
cmp ebx, 0xffffffff
jne 0x410af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x410c6d
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x2c]
call fcn.0044b00f
mov ecx, dword [ebp + 8]
mov esi, eax
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x410b1c
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x410b28
call fcn.0043d5bb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.0043bbe8
mov eax, dword [esi]
lea ecx, [ebp - 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [eax - 0xc]
mov ebx, dword [edi - 0xc]
mov dword [ebp - 0x20], eax
add eax, ebx
push eax
mov dword [ebp - 0x28], eax
call fcn.0043b9dd
mov esi, eax
mov edx, ebx
push ebx
push edi
mov ecx, esi
call fcn.0043d694
mov edx, dword [ebp - 0x20]
lea ecx, [esi + ebx]
push edx
push dword [ebp - 0x24]
call fcn.0043d694
add esp, 0x10
lea ecx, [ebp - 4]
push dword [ebp - 0x28]
call fcn.0043b549
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
test byte [ebp - 0x280], 0x10
je 0x410bea
lea ecx, [ebp - 0x254]
call fcn.0044cdbe
test al, al
je 0x410ba8
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
jmp 0x410c44
push 0x5c
lea ecx, [ebp - 4]
call fcn.00439927
mov esi, dword [ebp - 4]
push 0x1503
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
call fcn.0043b5e2
mov edx, dword [ebp - 8]
add eax, 0x10
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
call fcn.00410a8f
mov ebx, eax
mov dword [ebp - 0x10], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x410c41
lea ecx, [esi - 0x10]
call fcn.0043d912
jmp 0x410c64
mov esi, dword [ebp - 4]
cmp dword [esi - 4], 1
jle 0x410c01
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.0043bb69
mov esi, dword [ebp - 4]
cmp dword [esi - 4], 1
mov edi, esi
jle 0x410c17
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.0043bb69
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
push 0x1503
push 0x410864
push fcn.004106d0
push 0
push 0
add eax, edi
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.Cabinet.dll_FCIAddFile]
add esp, 0x20
test eax, eax
je 0x410c7f
lea ecx, [esi - 0x10]
call fcn.0043d912
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410af9
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov ebx, 0x65b
jmp 0x410be0
Function at 0x410c89
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x338
mov eax, dword [eax - 0xc]
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x410ca9
push 0x57
pop esi
jmp 0x410e1f
dec eax
lea ecx, [ebp + 8]
push eax
call fcn.0043239c
cmp al, 0x5c
je 0x410cc1
push 0x5c
lea ecx, [ebp + 8]
call fcn.00439927
push edi
lea ecx, [ebp - 4]
call fcn.004322c9
mov ecx, dword [eax]
call fcn.0044d9e7
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
je 0x410d12
mov edx, edi
lea ecx, [ebp - 4]
call fcn.0044c1b4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
jne 0x410d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x410e1f
xor ebx, ebx
mov dword [ebp - 0x334], 0xdbba0
push 0x31c
lea eax, [ebp - 0x330]
mov dword [ebp - 0x338], ebx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x324], 1
mov eax, 0x3039
mov dword [ebp - 0x320], ebx
mov word [ebp - 0x318], ax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, eax
lea eax, [ebp - 0x216]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esi, edi
lea eax, [ebp - 0x116]
inc esi
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
lea eax, [ebp - 0x338]
push eax
push 0x4107a9
push 0x410769
push 0x410838
push fcn.00410812
push 0x410734
push 0x4106ff
push fcn.004106d3
push dword [sym.imp.msvcrt.dll_free]
lea eax, [ebp - 0x10]
push dword [sym.imp.msvcrt.dll_malloc]
push fcn.004106d0
push eax
call dword [sym.imp.Cabinet.dll_FCICreate]
mov edi, eax
add esp, 0x34
test edi, edi
jne 0x410dd4
mov esi, 0x65b
jmp 0x410e1f
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.0043b5e2
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
call fcn.00410a8f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x410e17
push fcn.004106d0
push ebx
push ebx
push edi
call dword [sym.imp.Cabinet.dll_FCIFlushCabinet]
add esp, 0x10
test eax, eax
jne 0x410e17
mov esi, 0x65b
push edi
call dword [sym.imp.Cabinet.dll_FCIDestroy]
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043d912
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412d38
Capabilities:
Create directory
Set environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
je 0x412e95
xor eax, eax
cmp word [esi], ax
je 0x412e95
push ebx
call dword [sym.imp.CBSHost.dll_GetConfig]
mov ebx, eax
cmp dword [ebx + 4], 0xffffffff
je 0x412d72
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 4], 0xffffffff
xor eax, eax
test edi, edi
je 0x412db2
cmp word [edi], ax
je 0x412db2
push eax
push 0x2000080
push 2
push eax
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x412db0
push 0
lea ecx, [ebp + 8]
push ecx
push 2
push 0x488338
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.0043d5bb
push eax
lea ecx, [ebp + 8]
call fcn.0043bbe8
lea edx, [ebp + 8]
mov ecx, esi
call fcn.0044cb64
mov edi, eax
test edi, edi
je 0x412deb
jle 0x412de3
movzx edi, di
or edi, 0x80070000
mov esi, dword [ebp + 8]
jmp 0x412e88
lea eax, [ebp + 8]
mov edx, 0x493624
push eax
lea ecx, [ebp - 4]
call fcn.00431d43
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043c5cb
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0043b8a7
push 0x5c
pop ecx
cmp ax, cx
je 0x412e35
push ecx
lea ecx, [ebp + 8]
call fcn.0043c971
mov esi, dword [ebp + 8]
lea eax, [ebx + 8]
mov dword [ebx], 4
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop ecx
pop ecx
push 0x49045c
push str.WIM_SKIP_WIMBOOT_CHECK
call edi
push 0x493660
push str.TRY_FULLY_OPTIMIZED_WIMGAPI
call edi
push 0x492da0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412e84
xor eax, eax
push eax
push 0x412c7f
push eax
call dword [sym.imp.WIMGAPI.DLL_WIMRegisterMessageCallback]
xor eax, eax
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0043d912
mov eax, edi
pop ebx
jmp 0x412e9a
mov eax, 0x80070057
pop edi
pop esi
leave
ret 4
Function at 0x4140b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 1
push eax
push 0x20019
push dword [0x4ad198]
mov esi, str.Security
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4141c6
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x4141bb
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str.Security
push dword [ebp - 8]
call edi
lea eax, [ebp - 0x14]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4141b3
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4141b3
mov eax, 0x20019
mov dword [ebp - 0xc], 0x2001f
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x44]
mov dword [ebp - 0x28], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], 0x20006
mov dword [ebp - 0x24], 0xf003f
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 0x10]
pop esi
leave
ret
Function at 0x4141cc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push esi
push edx
push 0x2000000
mov eax, dword [eax + 0x48]
xor esi, esi
push str.SYSTEMCurrentControlSetServices
mov dword [ebp - 4], esi
push 0x80000002
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41434e
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41434e
imul eax, dword [ebp - 0x10], 0xc14
push ebx
push edi
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov dword [ebp - 0x14], 4
test ecx, ecx
je 0x414334
mov eax, esi
mov dword [ebp - 0x18], esi
mov ebx, esi
cmp dword [ebp + 0x14], esi
je 0x414268
xor edx, edx
div ecx
push dword [ebp + 0x18]
push esi
push eax
push 0x9478
call dword [ebp + 0x14]
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41431c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push dword [0x4ad198]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41431c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x4916c8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414313
test byte [ebp - 8], 0x33
je 0x414313
mov ecx, 0xc14
push ecx
push esi
push edi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
test byte [ebp - 8], 0x30
je 0x4142ed
mov dword [edi], esi
jmp 0x4142f9
test byte [ebp - 8], 3
je 0x4142f9
mov dword [edi], 2
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x224]
mov ecx, dword [ebp + 8]
push edi
push eax
call fcn.0041c5e5
mov eax, 0xc14
add edi, eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
inc ebx
mov ecx, dword [ebp - 0x10]
add eax, 0x64
mov dword [ebp - 0x18], eax
cmp ebx, ecx
jne 0x414252
mov ebx, dword [ebp - 0x1c]
sub edi, ebx
mov ecx, 0xc14
mov eax, edi
cdq
idiv ecx
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop ebx
jmp 0x414350
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x4143ca
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x414528
xor ebx, ebx
cmp word [edi], bx
je 0x414528
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push esi
push edx
push 0x2000000
mov eax, dword [eax + 0x48]
push str.SYSTEMCurrentControlSetServices
mov dword [ebp - 4], ebx
push 0x80000002
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x41451b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push 0x2001f
push dword [0x4ad198]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x414513
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 8], 4
push eax
push ebx
push ebx
push 0x4916c8
push dword [ebp + 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x414513
test byte [ebp + 8], 0x33
jne 0x414476
mov esi, 0x80070057
jmp 0x414513
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 0xc], ebx
sub eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x4144ef
sub eax, 1
je 0x4144ef
sub eax, 1
je 0x4144df
sub eax, 1
je 0x4144df
sub eax, 1
je 0x4144df
sub eax, 1
jne 0x414510
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push esi
push str.Group
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x414510
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 1
push eax
push 4
push esi
push str.DelayedAutoStart
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x4144da
push 5
jmp 0x414512
push 2
pop esi
jmp 0x4144f5
push str.DelayedAutoStart
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4144f5
test byte [ebp + 8], 3
je 0x414510
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
push eax
push 4
push 0
push str.Start
push dword [ebp + 0xc]
call ebx
mov esi, eax
jmp 0x414513
push 0x57
pop esi
lea ecx, [ebp + 0xc]
call fcn.0043b8cb
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov eax, esi
pop esi
jmp 0x41452d
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 0xc
Function at 0x41564f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 0x212]
push esi
push edi
mov esi, 0x493624
lea edi, [ebp - 0x21c]
push 0x1fe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x100
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4156ff
push esi
push 0x2000000
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4156f5
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], 1
push ecx
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 2
push ecx
push 8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
push ecx
push 0x90368
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4156f5
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.0043bb32
mov eax, esi
pop edi
pop esi
leave
ret