joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051ff
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x100531d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100530a
push 0xc3
push edi
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100530a
push str.SHGetPathFromIDList
push edi
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100530a
mov esi, 0x100d0e0
cmp byte [0x100d0e0], bl
jne 0x10052a5
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x10052a5
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x10052a5
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1003056
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10052f8
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100d0e0], bl
je 0x10052f2
push esi
push dword [ebp + 0x14]
push edi
call fcn.01001edb
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x1005331
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1005327
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.01003810
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x100533d
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
inc ebx
call fcn.0100766b
test eax, eax
je 0x10053ab
cmp dword [0x100d29c], 0
jne 0x100539f
test byte [0x100def8], bl
jne 0x100539f
push 6
push 0
push 0x100377a
push dword [0x100cd68]
mov dword [0x100d4c4], esi
push 0x7d3
push dword [0x100db04]
call fcn.01004b82
sub eax, 6
je 0x100539f
dec eax
je 0x10053b3
sub eax, 0x832
jne 0x100539f
mov dword [0x100d29c], ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
xor ebx, ebx
jmp 0x10053ab
Function at 0x10056f0
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x100579d
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.01003f79
test eax, eax
je 0x1005806
lea eax, [ebp - 0x108]
push eax
push edi
mov esi, 0x100d2a4
push esi
call fcn.01001edb
test byte [0x100daf4], 0x20
je 0x100578f
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005783
dec eax
je 0x100577c
dec eax
je 0x1005775
dec eax
jne 0x100578f
push 0x10014d0
jmp 0x1005788
push 0x10014c8
jmp 0x1005788
push 0x10014c0
jmp 0x1005788
push 0x10014b8
push edi
push esi
call fcn.01007610
push 0x10012f1
push edi
push esi
call fcn.01007610
jmp 0x10057ae
push eax
push 0x104
mov esi, 0x100d2a4
push esi
call fcn.01001edb
push esi
call fcn.0100406c
xor edi, edi
inc edi
test eax, eax
jne 0x10057cd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10057e5
mov dword [0x100dee0], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01004117
test eax, eax
je 0x10057f1
mov dword [0x100d0c4], ebx
mov eax, edi
jmp 0x1005808
call fcn.010035f7
mov dword [0x100d0c4], eax
jmp 0x1005806
cmp dword [0x100dee0], ebx
je 0x1005806
push esi
mov dword [0x100dee0], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b51
leave
ret 0xc
Function at 0x100581e
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x8fc
push ebx
push 0x100d200
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
mov dword [0x100db04], edi
call sub.msvcrt.dll_memset
push 0x32c
push ebx
push 0x100dee0
call sub.msvcrt.dll_memset
push 0x104
push ebx
push 0x100d0e0
call sub.msvcrt.dll_memset
add esp, 0x24
push 0x7f
mov esi, 0x100d214
push esi
push 0x10014fc
mov dword [0x100d4ac], 1
call fcn.0100316f
cmp eax, ebx
je 0x1005a7e
cmp eax, 0x80
ja 0x1005a7e
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100cd6c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100daf4
push 0x10014f0
call fcn.0100316f
test eax, eax
jne 0x10058fe
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003810
mov dword [0x100d0c4], 0x80070714
jmp 0x1005a8e
test byte [0x100daf4], 0xc0
je 0x1005997
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10014e0
call fcn.0100316f
test eax, eax
je 0x10058df
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x100cd70], eax
cmp eax, ebx
je 0x1005997
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005997
test byte [0x100daf4], 0x80
je 0x1005966
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003810
jmp 0x100597c
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003810
cmp eax, 6
je 0x1005997
push dword [0x100cd70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100d0c4], 0x800700b7
jmp 0x1005a8e
push dword [ebp - 0x110]
mov dword [0x100d0c8], ebx
call fcn.01004361
test eax, eax
jne 0x10059bb
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1005a88
cmp byte [0x100defa], bl
je 0x10059d2
push 0x100defa
call fcn.010023ec
jmp 0x1005a8e
push 0xa
push 0x10014d4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10059f2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
cmp dword [0x100c2bc], ebx
je 0x1005a00
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100dee4], ebx
je 0x1005a10
xor eax, eax
inc eax
jmp 0x1005a90
push dword [ebp - 0x10c]
call fcn.01004bf5
test eax, eax
je 0x1005a8e
mov ax, word [0x100d0cc]
cmp ax, 1
je 0x1005a37
cmp ax, 2
je 0x1005a37
cmp ax, 3
jne 0x1005a08
test dword [0x100daf4], 0x100
je 0x1005a08
test byte [0x100def8], 1
jne 0x1005a08
call fcn.010018a0
test eax, eax
jne 0x1005a08
push 0x83e
push 0x547
push 0x10019d7
push ebx
push 0x7d6
push dword [0x100db04]
call fcn.01004b82
cmp eax, 0x83d
jne 0x1005a8e
jmp 0x1005a08
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003810
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b51
leave
ret 0xc
Function at 0x1006658
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp word [0x100def8], di
jne 0x10066a3
cmp dword [0x100dee4], edi
jne 0x100669a
call fcn.01003db8
test eax, eax
jne 0x1006691
xor eax, eax
jmp 0x10067bb
cmp word [0x100def8], di
jne 0x10066a3
call fcn.01004f3f
test eax, eax
je 0x100668a
call fcn.01005662
test eax, eax
je 0x100668a
call fcn.0100636d
test eax, eax
je 0x100668a
push ebx
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10012e4
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.01007610
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ebx, 0x100d2a4
cmp esi, edi
je 0x1006708
push 0x1001558
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1006708
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100dee4], edi
jne 0x1006728
cmp dword [0x100daf0], edi
jne 0x1006728
call fcn.010048b7
test eax, eax
je 0x100679c
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x100674f
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.01003810
call fcn.010035f7
mov dword [0x100d0c4], eax
jmp 0x100679c
cmp dword [0x100deec], edi
jne 0x1006760
call fcn.01005e74
test eax, eax
je 0x100679c
test byte [0x100e208], 0xc0
jne 0x100677d
movzx eax, word [0x100d0cc]
push eax
call fcn.01001d90
mov dword [0x100d1e4], eax
jmp 0x1006783
mov dword [0x100d1e4], edi
cmp dword [0x100dee4], edi
jne 0x10067a0
cmp dword [0x100daf0], edi
jne 0x10067a0
call fcn.01005ef8
test eax, eax
jne 0x10067a0
xor eax, eax
jmp 0x10067b9
cmp word [0x100def8], di
jne 0x10067b6
cmp dword [0x100dee4], edi
jne 0x10067b6
call fcn.0100516d
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b51
leave
ret
Function at 0x1006b42
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100aeb0
call fcn.01007164
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100e250
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10068f9
cmp eax, esi
jne 0x10068ec
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10068fc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10068d3
xor esi, esi
inc esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x100690f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100693e
mov eax, dword [0x100e24c]
test eax, eax
jne 0x1006938
mov dword [0x100e24c], esi
push 0x10012a0
push 0x1001294
call fcn.01006838
pop ecx
pop ecx
test eax, eax
je 0x100693e
jmp 0x1006a66
mov dword [0x100cd94], esi
mov eax, dword [0x100e24c]
cmp eax, esi
jne 0x1006962
push 0x1001290
push 0x1001288
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e24c], 2
test ebx, ebx
jne 0x100696e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e258], 0
je 0x1006992
push 0x100e258
call fcn.010070d9
pop ecx
test eax, eax
je 0x1006992
push 0
push 2
push 0
call dword [0x100e258]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10069ee
test al, al
je 0x10069ac
cmp dword [ebp - 0x1c], 0
jne 0x10069ee
mov al, byte [esi]
test al, al
je 0x10069bc
cmp al, 0x20
ja 0x10069bc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10069ac
test byte [ebp - 0x3c], 1
je 0x10069c8
movzx eax, word [ebp - 0x38]
jmp 0x10069cb
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100cd90], eax
cmp dword [0x100cd84], 0
jne 0x1006a42
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10069fd
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1006a10
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1006999
cmp dword [0x100cd94], 0
jne 0x1006a51
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cd90]
jmp 0x1006a72
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010071a9
ret
call fcn.010072a4
jmp 0x1006899

Function at 0x100766b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007682
xor eax, eax
jmp 0x100768a
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x10077f1
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e4], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x1007916
and dword [0x100c5e4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1007916
cmp dword [ebp - 0x94], 1
jne 0x1007916
cmp dword [ebp - 0xa0], 4
jne 0x1007916
cmp dword [ebp - 0x9c], 0xa
jae 0x1007916
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1007916
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x1001604
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007916
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012f1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007916
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010076ce
test eax, eax
je 0x1007916
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100790c
cmp dword [ebp - 0xa8], 0xd
jne 0x1007916
mov dword [0x100c5e4], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e4]
xor ecx, ebp
call fcn.01006b51
leave
ret

Function at 0x1007987
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100792c

Function at 0x1008d5e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x1008da1
push ebx
movzx ebx, byte [ecx + 1]
movzx edx, byte [ecx]
shl ebx, 8
or edx, ebx
movzx ebx, byte [ecx + 2]
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [ecx + 3]
shl ebx, 0x18
or edx, ebx
dec eax
add ecx, 4
xor edi, edx
test eax, eax
jg 0x1008d78
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1008dbf
dec esi
je 0x1008db6
dec esi
jne 0x1008dc4
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [0x40a03c], 0
jne 0x4025e9
push 0x40a008
push 0
push 0x100000
push 0x1000000
push 0
push 2
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x40a03c], eax
cmp dword [0x40a03c], 0
jne 0x4025e9
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov eax, dword [ebp + 8]
add eax, 3
and eax, 0xfffffffc
push eax
push 0
mov ecx, dword [0x40a03c]
push ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40260d
jmp 0x4025df
mov dword [ebp - 8], 0
jmp 0x40262c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 3
shr edx, 2
cmp dword [ebp - 8], edx
jae 0x40263c
jmp 0x402616
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402720
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
add eax, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004025a0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x4c
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40279c
cmp dword [ebp - 0x10], 0xc0000023
jne 0x4027a5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jl 0x4027cb
cmp dword [ebp + 0x10], 0
je 0x4027cb
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x10
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402670
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push 4
push 0
lea eax, [ebp - 8]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x64
push 0
lea ecx, [ebp - 0x198]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x64
push 0
lea edx, [ebp - 0xd0]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x19c], 0
jmp 0x4029cf
mov edx, dword [ebp - 0x19c]
add edx, 1
mov dword [ebp - 0x19c], edx
cmp dword [ebp - 0x19c], 4
jge 0x4029fe
mov eax, dword [ebp - 0x1cc]
movsx cx, byte [eax]
mov edx, dword [ebp - 0x19c]
mov word [ebp + edx*2 - 8], cx
mov eax, dword [ebp - 0x1cc]
add eax, 1
mov dword [ebp - 0x1cc], eax
jmp 0x4029c0
push 0x401354
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
push 0x401390
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
push eax
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.ntdll.dll_wcsncpy]
add esp, 0xc
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.ntdll.dll_wcsncat]
add esp, 0xc
push 0x4013cc
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0x4013d8
call fcn.004026e0
add esp, 4
lea ecx, [ebp - 0x198]
push ecx
call fcn.004026e0
add esp, 4
push 0x4013dc
call fcn.004026e0
add esp, 4
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov byte [ebp - 0x1b9], 0
mov dword [ebp - 0x1b8], 0x18
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1ac], 0
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
lea edx, [ebp - 0x1b8]
push edx
call dword [sym.imp.ntdll.dll_NtDeleteFile]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jge 0x402b1e
mov byte [ebp - 0x1b9], 0
push 0x4013e0
call fcn.004026e0
add esp, 4
mov al, byte [ebp - 0x1b9]
jmp 0x402b2b
mov byte [ebp - 0x1b9], 1
mov al, byte [ebp - 0x1b9]
mov esp, ebp
pop ebp
ret
Function at 0x403140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
jne 0x403172
push 4
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 8], 4
jmp 0x4031c2
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
je 0x4031b9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
jmp 0x40317f
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 7
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x403200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4032f5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov byte [edx + 0xc], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov byte [eax + 0xd], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
jmp 0x403283
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 1
cmp dword [ebp - 4], ecx
jae 0x4032c4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4032b9
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 2]
test eax, eax
jne 0x4032b9
jmp 0x4032c4
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40327a
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], dx
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp + 0x10]
sar edx, 1
shl edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx], cx
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4037a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], 1
jne 0x4038b8
mov eax, dword [0x40a044]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
push 0x401884
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.004026e0
add esp, 4
push 0x4018cc
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0x40
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x44]
push edx
push 0xf003f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4038a9
mov ecx, dword [0x40a044]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
push 0x401918
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004026e0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x40389d
push 0x40191c
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x4038b6
push 0x401950
call fcn.004026e0
add esp, 4
jmp 0x4038d2
cmp dword [ebp + 0x10], 3
jne 0x4038d2
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403400
add esp, 0xc
mov esp, ebp
pop ebp
ret