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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
and byte [ebp - 0x1fc], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, 0x412314
mov edi, 0x41231c
mov esi, 0x412310
je 0x404141
cmp dword [ebp - 0xe8], 1
jne 0x404141
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403a2f
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.004049b4
lea ecx, [ebp - 0x20]
call fcn.00402077
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x404121
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004041db
pop ecx
pop ecx
mov ecx, eax
call fcn.00404416
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x64]
call fcn.00401b39
lea ecx, [ebp - 0x3c]
call fcn.00401b39
push 0x4141a8
lea ecx, [ebp - 0x20]
call fcn.004049b4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403a9e
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x4041cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00402077
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00401b39
cmp byte [ebp - 0x1fc], 0
je 0x40417a
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.00403a2f
push 0x4141a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40419e
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403a2f
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403a9e
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4041c6
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x4041d4
lea ecx, [ebp - 0x3c]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4041db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x40425a
lea eax, [ebp - 0x140]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x412314
mov dword [ebp - 0xc], edi
call fcn.00403a2f
mov esi, 0x412310
push 0x4141a4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40428b
lea eax, [ebp - 0x140]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x412314
mov dword [ebp - 0x28], edi
call fcn.00403a2f
mov esi, 0x412310
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x412314
mov dword [ecx + 0x14], edi
call fcn.00403a9e
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4042b7
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x4042c5
lea ecx, [ebp - 0x20]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4045e8
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.00404887
mov edi, eax
mov ecx, edi
call fcn.00402077
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov edi, eax
mov ecx, edi
call fcn.00402077
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00403b6f
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.00401b39
lea ecx, [ebp - 0x50]
call fcn.00401b39
lea ecx, [ebp - 0x14]
call fcn.00403b48
test bl, bl
jne 0x4046ef
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x404753
cmp word [ebp - 4], 3
jge 0x4046ef
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.00404887
mov ebx, eax
mov ecx, ebx
call fcn.00402077
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov ebx, eax
mov ecx, ebx
call fcn.00402077
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.00403b6f
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x40464f
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.00402077
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 0x40470e
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.0040476c
jmp 0x404763
mov ecx, esi
call fcn.00402077
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 0x405196
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x41421c]
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 0x4051ec
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 0x4051fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.0040566e
lea ecx, [ebp - 0x10]
call fcn.00405ed7
leave
ret

Function at 0x406717
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 0x406736
xor al, al
jmp 0x406759
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40675d
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 0x406887
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 0x4068bb
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x4068de
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 0x4068e9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x406c0e
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, 0x4155f0
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 0x406cc6
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406c97
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406c97
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406c97
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406c60
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 0x406c5a
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 0x406d3b
jmp 0x406ce2
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 0x406d3b
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406d36
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406d36
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406d10
dec dword [ebp - 4]
jns 0x406cdf
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], 0x412314
mov dword [ebp - 0x20], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x412310
push eax
call fcn.00406de9
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], 0x412314
mov dword [ebp - 0x3c], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x412310
push eax
call fcn.00406de9
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x50]
call fcn.00401b39
lea ecx, [ebp - 0x34]
call fcn.00401b39
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406de9
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 0x406f97
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x406f97
push ebx
mov ecx, edi
call fcn.0040c672
mov ebx, 0x41231c
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x412314
mov dword [ebp - 0xc], ebx
call fcn.00403a9e
and byte [ebp + 0xb], 0
xor eax, eax
cmp dword [ebp - 0x10], eax
mov edi, 0x412310
mov dword [ebp - 0x20], edi
je 0x406e4d
push dword [ebp - 0x10]
call esi
cmp dword [0x4123d0], eax
je 0x406f8e
jmp 0x406e5e
mov eax, dword [ebp - 4]
cmp byte [ebp + 0xb], 0
jne 0x406f8e
push eax
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00404839
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x74]
call fcn.00401b39
push dword [0x4123d0]
lea ecx, [ebp - 0x58]
push 1
push 0x4141a4
call fcn.004039c3
push eax
lea ecx, [ebp - 0x20]
call fcn.00404354
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00401b39
push dword [0x4123d0]
lea eax, [esi + 1]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404839
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x412314
mov dword [ebp - 0x28], ebx
call fcn.00403a9e
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edi
call fcn.00401b39
lea ecx, [ebp - 0x2c]
call fcn.00406f9b
cmp word [str.INSTAL], 0
mov eax, 0x41459e
je 0x406f10
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406f06
mov ecx, str.INSTAL
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004043ac
cmp eax, dword [0x4123d0]
jne 0x406f65
cmp word [str.INSTALLSHIELD], 0
mov eax, 0x414582
je 0x406f47
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406f3d
mov ecx, str.INSTALLSHIELD
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004043ac
cmp eax, dword [0x4123d0]
je 0x406f69
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x20]
call fcn.00402077
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00401b39
cmp dword [0x4123d0], esi
jne 0x406e5b
lea ecx, [ebp - 0x20]
call fcn.00401b39
pop ebx
pop edi
pop esi
leave
ret
Function at 0x407277
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 0x4072fc
xor eax, eax
cmp dword [ebp - 4], esi
je 0x4072b8
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x4072fc
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.00406887
cmp dword [ebp - 4], esi
je 0x4072f8
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x40731a
cmp eax, esi
push ebx
jle 0x40730b
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x407317
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40743a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
push esi
jne 0x407450
cmp dword [ebp + 0x24], ebx
je 0x40745f
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00401b39
mov al, bl
jmp 0x4074eb
lea eax, [ebp - 0x28]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.00404416
mov esi, eax
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00401b39
cmp esi, 2
je 0x4074e1
cmp esi, 5
je 0x4074e1
cmp esi, 3
je 0x407450
cmp esi, 4
je 0x407450
cmp esi, 6
je 0x407450
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x412314
mov dword [esi + 0x14], 0x41231c
call fcn.00403a9e
mov dword [esi], 0x412310
call fcn.0040731e
add esp, 0x1c
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401b39
cmp si, 1
setne al
jmp 0x4074eb
lea ecx, [ebp + 8]
call fcn.00401b39
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4075cb
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.00406849
mov edi, eax
cmp edi, esi
je 0x40760b
cmp dword [ebp - 4], esi
je 0x407604
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4076a8
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 0x40767c
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.004075cb
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x407669
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 0x40762e
cmp dword [ebp - 4], esi
je 0x407677
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x4076a8
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40768f
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 0x4076a6
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408510
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], 0x4143c8
mov dword [0x4156c0], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.00408f78
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40855d
push 0x10
push dword [ebp + 0x10]
push 0x4156b0
call fcn.00410940
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.004108c0
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 0x4085ae
cmp dword [ebp - 0xb4], 5
jae 0x408604
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x408604
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x4085d0
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x4085be
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 0x4085ed
jmp 0x40860a
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x408ec8
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.00401c42
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004048ca
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x408efe
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b39
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.004043ac
cmp dword [0x4123d0], eax
je 0x408f69
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.004055bf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
call fcn.00402077
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov dword [ebp + 8], edi
jmp 0x408f0d
lea ecx, [ebp - 0x38]
call fcn.00401d80
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4099cf
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 0x409a24
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x4155f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409a7f
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 0x409a59
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 0x409a67
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x409a81
cmp dword [ebp - 4], edi
je 0x409a79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x409a9e
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040cfa0
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x409a9b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a093
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 0x40a0e7
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 0x40a0e7
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a116
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a116
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x40a10e
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x40a11f
lea edi, [edi + eax*2]
jmp 0x40a110
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x40a0f8
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 0x40a118