joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40947a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x80070057
call fcn.0040c6e7
xor edi, edi
test al, al
je 0x4094ec
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], edi
push eax
call dword [sym.imp.msvcrt.dll_rand_s]
pop ecx
test eax, eax
jne 0x4094ec
movzx eax, byte [ebp - 0x274]
inc eax
mov dword [ebp - 0x274], eax
je 0x4094ea
push 1
push 0x2000
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc edi
cmp edi, dword [ebp - 0x274]
jb 0x4094cd
xor edi, edi
cmp word [ebx], di
je 0x4096b3
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x4096ae
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x409691
push 6
pop ecx
mov esi, 0x401f54
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [ebp - 0x256]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x278]
add esp, 0xc
test eax, eax
jle 0x409592
push dword [ebx]
lea eax, [ebp - 0x270]
push 0x401f70
push 0x104
push eax
call fcn.00408514
mov eax, dword [ebp - 0x278]
add esp, 0x10
mov dword [ebp - 0x280], edi
mov esi, edi
test eax, eax
jle 0x409688
mov edx, ebx
xor ebx, ebx
mov dword [ebp - 0x27c], edx
test esi, esi
js 0x409682
mov dword [ebp - 0x274], ebx
mov edi, ebx
mov eax, dword [edi + 0x424014]
mov ecx, dword [edx]
push eax
push dword [edi + 0x424010]
mov dword [ebp - 0x288], eax
push ecx
mov dword [ebp - 0x284], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x409604
push dword [ebp - 0x284]
lea ecx, [ebp - 0x68]
push 0x32
pop edx
call fcn.004084a5
test eax, eax
js 0x409604
mov eax, dword [ebp - 0x288]
cmp word [ebp + eax*2 - 0x68], bx
je 0x409624
mov eax, dword [ebp - 0x274]
add edi, 0xc
inc eax
mov dword [ebp - 0x274], eax
cmp edi, 0xb4
jae 0x409650
mov edx, dword [ebp - 0x27c]
jmp 0x4095bc
imul eax, dword [ebp - 0x274], 0xc
mov edi, dword [eax + 0x424018]
mov ecx, edi
call dword [0x4255c0]
mov esi, esp
call edi
cmp esi, esp
je 0x409648
mov ecx, 4
int 0x29
mov esi, eax
mov eax, dword [ebp - 0x274]
cmp eax, 0xf
jb 0x40965a
mov esi, 0x80070057
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x27c]
inc ecx
add edx, 4
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], edx
cmp ecx, dword [ebp - 0x278]
jl 0x4095ac
mov ebx, dword [ebp - 0x28c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4096a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4096a6
movzx esi, si
or esi, 0x80070000
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x4096b3
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4098e1
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 1
push 2
push dword [0x4041dc]
mov dword [ebp - 0x210], edi
call dword [sym.imp.iertutil.dll_Ordinal_654]
push 0xa
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409a42
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409a42
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x409a41
push dword [0x4041d8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call fcn.0040de3f
push dword [0x4041e8]
lea ecx, [ebp - 0x214]
call fcn.0040de3f
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add ecx, dword [ebp - 0x210]
adc eax, edi
cmp eax, 0x10000000
ja 0x409a41
jb 0x4099a7
cmp ecx, 0x178e182d
jae 0x409a41
push dword [0x4041e0]
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp - 0x20c], ax
call fcn.0040db23
push 0x5c
pop eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x409a41
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5c
pop eax
mov word [edi], ax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409a41
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x409b61
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409ba0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x402978
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x409bb6
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push 0x402978
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c38
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.00409a57
cmp dword [ebp + 0x10], 0
je 0x409bf7
cmp dword [ebp + 0x14], 0
jne 0x409bee
test eax, eax
je 0x409c2c
push 0x18
push 0x402f5c
jmp 0x409c1d
cmp dword [ebp + 0x14], 0
jne 0x409c17
test eax, eax
jne 0x409c2c
lea eax, [ebp - 0x20c]
push eax
push 0x402f5c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x409c2c
push esi
push 0x4021bc
push 1
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409c4e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x90]
xor ebx, ebx
push eax
push 1
push ebx
push 0x402ba0
push reloc.SHLWAPI.dll_ParseURLW
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x409d16
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409d16
push ebx
lea eax, [ebp - 0x8c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x402ba0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x409d0a
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40a0d4
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
mov edi, ecx
lea ecx, [ebp - 0x20c]
push edx
push edi
mov edx, 0x104
call fcn.0040eaa3
lea ecx, [ebp - 0x20c]
call fcn.0040bbdd
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40a84d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x402910
push 0x402ce8
push 0x104
push eax
mov esi, edx
call fcn.00408514
add esp, 0x10
mov dword [ebp - 0x214], 4
lea eax, [ebp - 0x214]
mov ebx, 0x402960
mov edi, SysReAllocStringLen
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, esi
or eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 4

Function at 0x40a99d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x424004]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
xor esi, esi
lea eax, [esp + 0x10]
push esi
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x104
test eax, eax
je 0x40aa15
lea ecx, [esp + 0x10]
call fcn.0040a902
push edi
lea eax, [esp + 0x21c]
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40aa15
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040ed30
lea ecx, [esp + 0x10]
call fcn.0040a902
lea eax, [esp + 8]
mov dword [esp + 8], 0x208
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4025c4
push 0x402600
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40aa65
push edi
lea eax, [esp + 0x21c]
push eax
push 0x11
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40aa92
push esi
push 2
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40aa92
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040ed30
lea ecx, [esp + 0x10]
call fcn.0040a902
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40aaab
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x40aafe
push 0
push dword [ebx + esi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40aaf8
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
push 0
call fcn.0040a6ff
inc esi
cmp esi, dword [ebp + 8]
jb 0x40aace
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 8

Function at 0x40ab16
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
je 0x40ab59
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40ab53
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push 2
pop edx
call fcn.0040a6ff
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add edi, 0x10
dec esi
jne 0x40ab27
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ab66
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
lea eax, [ebp - 0x61c]
push edi
push ecx
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ac6f
push esi
push ecx
push 0x40227c
lea eax, [ebp - 0x61c]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040eaa3
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ff
push esi
lea eax, [ebp - 0x414]
push eax
push 0x2db
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ecx
lea eax, [ebp - 0x414]
mov edx, esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040eaa3
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ff
push esi
lea eax, [ebp - 0x414]
push eax
push 0x2dd
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ecx
lea eax, [ebp - 0x414]
mov edx, esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040eaa3
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40adfe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ae3d
push 1
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ff
test esi, esi
je 0x40ae4a
call fcn.0040ad14
test al, al
je 0x40ae51
mov edx, esi
call fcn.0040ad6a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret 4

Function at 0x40aec7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40af74
push 0x4027d0
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.004096fa
test eax, eax
js 0x40af74
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x260]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x260], esi
lea edi, [ebp - 0x21c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x40af74
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret

Function at 0x40af89
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40b005
cmp dword [ebp - 0x28], 0
je 0x40b005
push edi
lea eax, [ebp - 0x28]
mov edi, SysReAllocStringLen
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x40b004
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40b004
push 7
pop ecx
mov byte [ebp - 0x24], al
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
push 0x1e
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
push 3
push 0
push 0x402ccc
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40b019
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40b16e
push edi
push 2
pop edx
cmp dword [ebp - 4], esi
jbe 0x40b0ef
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b0ef
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x40b0ec
cmp dword [ebp - 4], esi
jbe 0x40b0e4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b0de
and dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b0de
push dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
call fcn.0040b019
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 4]
jb 0x40b090
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push 2
pop edx
cmp dword [ebp - 0x10], 0
jbe 0x40b16d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b16d
inc eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x40b16d
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40b165
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [edi - 1]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40b162
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], eax
jb 0x40b162
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40b162
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec edi
jne 0x40b120
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b231
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x20c]
call fcn.0041f5ef
mov esi, eax
test esi, esi
js 0x40b33f
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b28f
call fcn.0040f835
mov esi, eax
test esi, esi
js 0x40b33d
push ebx
lea eax, [ebp - 0x418]
push eax
push 4
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b2af
mov esi, ebx
jmp 0x40b2b6
call fcn.0040f835
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x40b33d
cmp dword [ebp - 0x418], 4
jne 0x40b2d6
cmp dword [ebp - 0x414], 0x4020000
je 0x40b33d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2f2
call fcn.0040f835
mov esi, eax
test esi, esi
js 0x40b33d
mov edx, 0x100
lea ecx, [ebp - 0x40c]
call fcn.0041f651
mov esi, eax
test esi, esi
js 0x40b33d
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], ebx
push eax
sub esp, 0xc
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x20c]
push eax
call fcn.0041c9bb
mov esi, eax
test esi, esi
js 0x40b33d
mov ecx, dword [ebp - 0x410]
call fcn.0041cd6b
mov esi, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40b60e
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x40b63e
push 0x402f78
push 0x402848
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x40b689
push ecx
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040ca87
test al, al
je 0x40b689
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b658
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x402f78
push 0x402848
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x40b9e6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push 0x402770
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ba3a
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push esi
push 0x402738
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret