joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f6a
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.00403279
mov edi, eax
mov ecx, edi
call fcn.00402639
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.00403133
mov edi, eax
mov ecx, edi
call fcn.00402639
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00402245
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00402172
lea ecx, [ebp - 0x50]
call fcn.00402172
lea ecx, [ebp - 0x14]
call fcn.0040221e
test bl, bl
jne 0x403071
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4030d5
cmp word [ebp - 4], 3
jge 0x403071
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.00403279
mov ebx, eax
mov ecx, ebx
call fcn.00402639
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403133
mov ebx, eax
mov ecx, ebx
call fcn.00402639
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.00402245
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x402fd1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402639
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403090
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.004030ee
jmp 0x4030e5
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4
Function at 0x403c85
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 0x403cb0
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 0x403cb8
or eax, 0xffffffff
jmp 0x403d8c
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 0x403cec
push 0x412174
jmp 0x403d16
cmp ax, 0x404
jne 0x403cf9
push 0x41216c
jmp 0x403d16
and eax, 0xff
cmp ax, 0x11
jne 0x403d0b
push str.MS_UI_Gothic
jmp 0x403d16
cmp ax, 0x12
jne 0x403d5f
push 0x412154
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040373a
lea eax, [ebp - 0x40]
push 9
push eax
lea ecx, [ebp - 0xc]
call fcn.004038e5
push esi
push 0x4039ff
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.004037c9
jmp 0x403d74
push esi
push 0x4039ff
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 0x404154
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 0x4041ab
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4041ab
lea edi, [esi + 0x58]
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402be1
mov edi, eax
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x28]
call fcn.00402172
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4041b9
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 0x4041e1
mov ecx, edi
call fcn.0040422c
push edi
call fcn.0040b33f
pop ecx
mov dword [esi + 4], ebx
lea edi, [esi + 0x88]
lea ecx, [edi + 0x1c]
call fcn.00402172
mov ecx, edi
call fcn.00402172
mov eax, dword [esi + 0x84]
lea edi, [esi + 0x84]
cmp eax, ebx
je 0x40420f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
lea ecx, [esi + 0x58]
call fcn.00402172
lea ecx, [esi + 0x34]
call fcn.00402172
lea ecx, [esi + 0x18]
call fcn.00402172
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404276
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 0x4042af
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 0x404afc
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 0x404b52
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 0x404b60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.00405018
lea ecx, [ebp - 0x10]
call fcn.00405874
leave
ret

Function at 0x406168
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 0x406187
xor al, al
jmp 0x4061aa
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4061ae
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 0x4062d8
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 0x40630c
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40632f
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 0x40633a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065e8
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, 0x413050
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 0x4066a0
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406671
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406671
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406671
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40663a
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 0x406634
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 0x406715
jmp 0x4066bc
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 0x406715
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406710
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406710
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4066ea
dec dword [ebp - 4]
jns 0x4066b9
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.00402a82
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x4102ec
push eax
call fcn.004067c3
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.00402a82
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x4102ec
push eax
call fcn.004067c3
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x50]
call fcn.00402172
lea ecx, [ebp - 0x34]
call fcn.00402172
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067c3
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 0x406971
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x406971
push ebx
mov ecx, edi
call fcn.0040aefc
mov ebx, 0x4102f0
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x4102f8
mov dword [ebp - 0xc], ebx
call fcn.00402808
and byte [ebp + 0xb], 0
xor eax, eax
cmp dword [ebp - 0x10], eax
mov edi, 0x4102ec
mov dword [ebp - 0x20], edi
je 0x406827
push dword [ebp - 0x10]
call esi
cmp dword [0x4103a4], eax
je 0x406968
jmp 0x406838
mov eax, dword [ebp - 4]
cmp byte [ebp + 0xb], 0
jne 0x406968
push eax
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.004031bb
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a895
lea ecx, [ebp - 0x74]
call fcn.00402172
push dword [0x4103a4]
lea ecx, [ebp - 0x58]
push 1
push 0x4120e8
call fcn.00402c6a
push eax
lea ecx, [ebp - 0x20]
call fcn.00402cd6
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00402172
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.004031bb
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x4102f8
mov dword [ebp - 0x28], ebx
call fcn.00402808
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edi
call fcn.00402172
lea ecx, [ebp - 0x2c]
call fcn.00406975
cmp word [str.INSTAL], 0
mov eax, 0x41250e
je 0x4068ea
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4068e0
mov ecx, str.INSTAL
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402d2e
cmp eax, dword [0x4103a4]
jne 0x40693f
cmp word [str.INSTALLSHIELD], 0
mov eax, 0x4124f2
je 0x406921
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406917
mov ecx, str.INSTALLSHIELD
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402d2e
cmp eax, dword [0x4103a4]
je 0x406943
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x20]
call fcn.00402639
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00402172
cmp dword [0x4103a4], esi
jne 0x406835
lea ecx, [ebp - 0x20]
call fcn.00402172
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4069f4
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 0x406bf3
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 0x406a45
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 0x406beb
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 8], eax
je 0x406bde
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 0x406b21
cmp eax, 1
je 0x406b21
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 0x406af2
cmp dword [ebp + 0xc], ebx
je 0x406bd1
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.00402a82
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x4102ec
call fcn.0040af63
mov edi, eax
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x54]
call fcn.00402172
lea ecx, [ebp - 0x2c]
call fcn.00402172
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 0x406bd1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a0]
push eax
call fcn.004065e8
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00406bfa
push 1
pop eax
jmp 0x406bf5
lea ecx, [ebp - 0x10]
call fcn.00406bfa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40741d
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 [0x413118], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.00409359
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40746a
push 0x10
push dword [ebp + 0x10]
push 0x413108
call fcn.0040e8c0
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.0040e7e0
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 0x4074bb
cmp dword [ebp - 0xb4], 5
jae 0x407511
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x407511
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x4074dd
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x4074cb
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 0x4074fa
jmp 0x407517
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x407e1c
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.0040225b
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004032bc
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x407e52
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00402172
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.00402d2e
cmp dword [0x4103a4], eax
je 0x407ebd
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.00404f11
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4102ec
call fcn.00402639
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00402172
mov dword [ebp + 8], edi
jmp 0x407e61
lea ecx, [ebp - 0x38]
call fcn.00402399
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4083b0
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 0x408435
xor eax, eax
cmp dword [ebp - 4], esi
je 0x4083f1
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x408435
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.004062d8
cmp dword [ebp - 4], esi
je 0x408431
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x408453
cmp eax, esi
push ebx
jle 0x408444
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x408450
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40851e
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 0x408573
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x413050
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4085ce
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 0x4085a8
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 0x4085b6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x4085d0
cmp dword [ebp - 4], edi
je 0x4085c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x4085ed
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040d9d4
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x4085ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret