joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0x1f0], 0
jne 0x403de9
mov eax, dword [ebp + 8]
push 5
push 0x75
mov dword [esi + 0x7c], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x403df1
or eax, 0xffffffff
jmp 0x403ec5
push ebx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and byte [ebp - 0x40], 0
push 0xc
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ax, word [esi + 0xc]
cmp ax, 0x804
jne 0x403e25
push 0x412174
jmp 0x403e4f
cmp ax, 0x404
jne 0x403e32
push 0x41216c
jmp 0x403e4f
and eax, 0xff
cmp ax, 0x11
jne 0x403e44
push str.MS_UI_Gothic
jmp 0x403e4f
cmp ax, 0x12
jne 0x403e98
push 0x412154
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00403873
lea eax, [ebp - 0x40]
push 9
push eax
lea ecx, [ebp - 0xc]
call fcn.00403a1e
push esi
push 0x403b38
push dword [esi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
lea ecx, [ebp - 0xc]
mov dword [esi + 0x78], eax
call fcn.00403902
jmp 0x403ead
push esi
push 0x403b38
push dword [esi + 8]
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [esi + 0x78], eax
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 5
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 4

Function at 0x4042a3
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x4042fa
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4042fa
lea edi, [esi + 0x58]
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402d8a
mov edi, eax
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x28]
call fcn.00402199
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x404308
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push ebx
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esi + 4]
mov dword [esi + 8], ebx
cmp edi, ebx
je 0x404330
mov ecx, edi
call fcn.0040437b
push edi
call fcn.0040ba07
pop ecx
mov dword [esi + 4], ebx
lea edi, [esi + 0x88]
lea ecx, [edi + 0x1c]
call fcn.00402199
mov ecx, edi
call fcn.00402199
mov eax, dword [esi + 0x84]
lea edi, [esi + 0x84]
cmp eax, ebx
je 0x40435e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
lea ecx, [esi + 0x58]
call fcn.00402199
lea ecx, [esi + 0x34]
call fcn.00402199
lea ecx, [esi + 0x18]
call fcn.00402199
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043c5
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
push ebx
push 0x104
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp byte [eax + esi + 7], 0x5c
jne 0x4043fe
push ebx
call edi
and byte [eax + esi + 7], 0
lea edi, [esi + 0x10c]
push ebx
push str._s_isdelet.ini
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x404aeb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x4121c8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x10]
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
mov dword [ebp - 4], ebx
inc al
mov byte [ebp - 0xc], al
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x404b41
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x404b4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.00405007
lea ecx, [ebp - 0x10]
call fcn.0040587f
leave
ret

Function at 0x406173
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x406192
xor al, al
jmp 0x4061b5
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4061b9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x90], eax
mov al, cl
pop edi
pop esi
pop ecx
ret

Function at 0x4062e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x406317
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40633a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x406345
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065f3
Capabilities:
Delete directory
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x18]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x154]
mov ebx, 0x4131e0
push dword [ebp + 8]
mov esi, str.Files
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x4066ab
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40667c
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40667c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x40667c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406645
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
jmp 0x40663f
push dword [ebp + 8]
push 0
push str.FolderCount
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
mov dword [ebp - 4], eax
js 0x406720
jmp 0x4066c7
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push str.Folder_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x406720
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40671b
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x40671b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4066f5
dec dword [ebp - 4]
jns 0x4066c4
push dword [ebp + 8]
lea eax, [ebp - 0x154]
push 0x104
push eax
push ebx
push str.EngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], 0x4102f8
mov dword [ebp - 0x20], 0x4102f0
call fcn.00402c2b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x4102ec
push eax
call fcn.004067ce
pop ecx
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
push ebx
push str.MediaEngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0x4102f8
mov dword [ebp - 0x3c], 0x4102f0
call fcn.00402c2b
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x4102ec
push eax
call fcn.004067ce
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x50]
call fcn.00402199
lea ecx, [ebp - 0x34]
call fcn.00402199
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067ce
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40697c
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x40697c
push ebx
mov ecx, edi
call fcn.0040b421
mov ebx, 0x4102f0
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x4102f8
mov dword [ebp - 0xc], ebx
call fcn.004029b1
and byte [ebp + 0xb], 0
xor eax, eax
cmp dword [ebp - 0x10], eax
mov edi, 0x4102ec
mov dword [ebp - 0x20], edi
je 0x406832
push dword [ebp - 0x10]
call esi
cmp dword [0x4103a4], eax
je 0x406973
jmp 0x406843
mov eax, dword [ebp - 4]
cmp byte [ebp + 0xb], 0
jne 0x406973
push eax
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00403364
push eax
lea ecx, [ebp - 0x20]
call fcn.0040222b
lea ecx, [ebp - 0x74]
call fcn.00402199
push dword [0x4103a4]
lea ecx, [ebp - 0x58]
push 1
push 0x4120e8
call fcn.00402e13
push eax
lea ecx, [ebp - 0x20]
call fcn.00402e7f
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00402199
push dword [0x4103a4]
lea eax, [esi + 1]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00403364
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x4102f8
mov dword [ebp - 0x28], ebx
call fcn.004029b1
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edi
call fcn.00402199
lea ecx, [ebp - 0x2c]
call fcn.00406980
cmp word [str.INSTAL], 0
mov eax, 0x41250e
je 0x4068f5
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4068eb
mov ecx, str.INSTAL
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402ed7
cmp eax, dword [0x4103a4]
jne 0x40694a
cmp word [str.INSTALLSHIELD], 0
mov eax, 0x4124f2
je 0x40692c
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406922
mov ecx, str.INSTALLSHIELD
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402ed7
cmp eax, dword [0x4103a4]
je 0x40694e
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x20]
call fcn.004027e2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00402199
cmp dword [0x4103a4], esi
jne 0x406840
lea ecx, [ebp - 0x20]
call fcn.00402199
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4069ff
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
push ebx
push esi
lea eax, [ebp - 0x19c]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x406bfe
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x19c]
push eax
call esi
xor ebx, ebx
cmp byte [ebp + eax - 0x19d], 0x5c
jne 0x406a50
lea eax, [ebp - 0x19c]
push eax
call esi
mov byte [ebp + eax - 0x19d], bl
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x2a0]
push str._s_isdelet.ini
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
call esi
lea eax, [ebp - 0x4a8]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
lea eax, [ebp - 0x9ac]
push str.__deleter__s
push eax
call edi
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x94]
mov dword [ebp - 0x10], ebx
push 0x10
mov dword [ebp - 0xc], ebx
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x98], 0x44
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x9ac]
push ebx
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406bf6
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 8], eax
je 0x406be9
push 0x40
push 0xffffffffffffffff
lea eax, [ebp + 8]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x406b2c
cmp eax, 1
je 0x406b2c
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x28], 0x16
jne 0x406afd
cmp dword [ebp + 0xc], ebx
je 0x406bdc
lea eax, [ebp - 0x5ac]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x5ac]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x4102f8
mov dword [ebp - 0x18], 0x4102f0
call fcn.00402c2b
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x4102ec
call fcn.0040b488
mov edi, eax
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x54]
call fcn.00402199
lea ecx, [ebp - 0x2c]
call fcn.00402199
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x3a4]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x4a8]
push eax
call esi
cmp edi, ebx
je 0x406bdc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a0]
push eax
call fcn.004065f3
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00406c05
push 1
pop eax
jmp 0x406c00
lea ecx, [ebp - 0x10]
call fcn.00406c05
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407470
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x412380
mov dword [0x4132a8], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.004095b0
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4074bd
push 0x10
push dword [ebp + 0x10]
push 0x413298
call fcn.0040f0f0
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.0040f040
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x40750e
cmp dword [ebp - 0xb4], 5
jae 0x407564
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x407564
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x407530
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x40751e
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x40754d
jmp 0x40756a
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x407e3c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.004022e3
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004033f5
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x407e72
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00402199
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.00402ed7
cmp dword [0x4103a4], eax
je 0x407edd
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x4102f8
mov dword [ebp - 8], 0x4102f0
call fcn.00404f00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4102ec
call fcn.004027e2
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00402199
mov dword [ebp + 8], edi
jmp 0x407e81
lea ecx, [ebp - 0x38]
call fcn.00402421
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408149
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x4081ce
xor eax, eax
cmp dword [ebp - 4], esi
je 0x40818a
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x4081ce
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.004062e3
cmp dword [ebp - 4], esi
je 0x4081ca
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x4081ec
cmp eax, esi
push ebx
jle 0x4081dd
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4081e9
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4088f9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.004062a5
mov edi, eax
cmp edi, esi
je 0x408939
cmp dword [ebp - 4], esi
je 0x408932
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4089d6
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4089aa
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.004088f9
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x408997
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x40895c
cmp dword [ebp - 4], esi
je 0x4089a5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x4089d6
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4089bd
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4089d4
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x408af9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x4131e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408b54
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x408b2e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x408b3c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x408b56
cmp dword [ebp - 4], edi
je 0x408b4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x408b73
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040e093
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x408b70
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409248
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
push edi
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
and ecx, 0xf
movzx edi, ax
mov ax, word [esi + 0xc]
mov ebp, ecx
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x40929c
mov ax, word [esi + 0xc]
and ax, 0x3ff
or ah, 4
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x40929c
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4092cb
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4092cb
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x4092c3
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x4092d4
lea edi, [edi + eax*2]
jmp 0x4092c5
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x4092ad
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
lea esi, [edi + eax*2]
movzx ebx, word [esi]
and word [esi], 0
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 0x10], eax
mov word [esi], bx
mov al, 1
jmp 0x4092cd