joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea0
Capabilities:
Reference cloudflare dns server

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov eax, 1
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x401f95
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 8], eax
mov eax, str.1.0.0.1
test eax, eax
mov dword [ebp + 4], 0
jne 0x401ed4
xor ebx, ebx
jmp 0x401ee1
push str.1.0.0.1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp + 0x3c]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x401ef4
cmp ebx, dword [eax - 4]
jle 0x401f56
mov edx, dword [0x43734c]
add eax, 0xfffffff4
cmp eax, edx
je 0x401f24
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401f1b
mov ecx, dword [ebp + 0x3c]
sub ecx, 0xc
push ecx
call fcn.004292c0
add esp, 4
mov edx, dword [0x437348]
mov dword [ebp + 0x3c], edx
test ebx, ebx
jne 0x401f2f
mov eax, dword [0x437348]
jmp 0x401f53
lea ecx, [ebx + 0xd]
push ecx
call fcn.00429728
add esp, 4
test eax, eax
je 0x401f7f
mov dword [eax], 1
mov byte [ebx + eax + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp + 0x3c], eax
mov ecx, ebx
push esi
mov edx, ecx
push edi
mov edi, dword [ebp + 0x3c]
mov esi, str.1.0.0.1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x3c]
pop edi
pop esi
mov dword [eax - 8], ebx
mov ecx, dword [ebp + 0x3c]
mov byte [ecx + ebx], 0
mov ecx, ebp
call fcn.00401e80
mov eax, dword [esp + 8]
mov dword [ebp + 0xa8], 0
pop ebx
pop ebp
pop ecx
ret
Function at 0x404270
Capabilities:
Delete file
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
lea esi, [ecx + 4]
push 0x103
push eax
push esi
call fcn.00429dad
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4042cd
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0x8c000
jbe 0x4042cd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret 4

Function at 0x4052c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
add ecx, 0x3a4
push ecx
push 0
push eax
push str.INSTALLED
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret 4
Function at 0x408100
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
sub esp, 0x498
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x43bc58
push 0
push 0x43766c
mov esi, ecx
push str.Setup
call edi
test eax, eax
push 0x43bc58
push 0
setne al
push str.QuickLaunch
push str.Setup
mov byte [esi + 0x228], al
call edi
lea edx, [esi + 0x4b6]
push str.CompsVer.inf
test eax, eax
lea edi, [esi + 0x1144]
push edx
setne cl
push str._s_s
push edi
mov byte [esi + 0x229], cl
call fcn.00429590
add esp, 0x10
lea ebp, [esi + 0x5ba]
lea ebx, [esi + 0x1248]
push str.CompsVer.inf
push ebp
push str._s_s
push ebx
call fcn.00429590
add esp, 0x10
lea eax, [esi + 0x134c]
push edi
push 0x20
push eax
push 0x43babc
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esi + 0x136c]
push ebx
push 0x20
push edi
push 0x43babc
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esi + 0x134c]
push edi
push eax
call fcn.0042a9c0
add esp, 8
test eax, eax
je 0x4081ea
mov dword [esi + 0x1140], 1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x161]
mov byte [esp + 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x164]
push str._s.cfi
push eax
call fcn.00429590
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x378]
mov dword [esp + 0x374], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x368]
lea edx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40832c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x265]
mov byte [esp + 0x264], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x268]
push str._sCfgDll.dll
push eax
call fcn.00429590
add esp, 0xc
add esi, 0xace
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x394]
lea edx, [esp + 0x5c]
stosw word es:[edi], ax
push ecx
push ebp
push str._s_s
push edx
stosb byte es:[edi], al
call fcn.00429590
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.00411ba0
lea eax, [esp + 0x264]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.00411e40
push 0
lea ecx, [esp + 0x60]
push 0
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00412340
lea edx, [esp + 0x5c]
push eax
push edx
push str.PatchConfig__s..._d
push 0x43bb00
call fcn.004042f0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.00411cc0
lea eax, [esp + 0x368]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40828e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x498
ret
Function at 0x408bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x344
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 5
mov esi, str.SoftwareRisingRav
lea edi, [esp + 0x24c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
lea edi, [esp + 0x260]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24c]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408de6
lea edx, [esp + 0x10]
lea eax, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.installpath
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408cd0
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x408c9f
cmp byte [esp + ecx + 0x9b], 0x5c
je 0x408c9f
mov byte [esp + ecx + 0x9c], 0x5c
mov byte [esp + ecx + 0x9d], 0
mov edi, str.Guidll.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408d2c
push str._SetFilter_12
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d19
mov edx, dword [esp + 0x354]
neg edx
sbb edx, edx
add ebp, 0xbd2
add edx, 2
push edx
push 2
push ebp
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
add esp, 0x344
ret 4
mov esi, dword [esp + 0x354]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
neg esi
sbb esi, esi
add ebp, 0xbd2
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push ebp
push eax
add esi, 0x1f5
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push 0x2e
push ecx
call fcn.0042aa90
add esp, 8
test eax, eax
je 0x408d87
lea edx, [esp + 0x18]
push 0x2e
push edx
call fcn.0042aa90
add esp, 8
mov byte [eax], 0
lea ecx, [esp + 0x1a0]
call fcn.00401940
push 0
lea ecx, [esp + 0x1a4]
call fcn.00401bf0
test eax, eax
je 0x408dda
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push 0x43babc
push str.RavMonD.exe0
lea ecx, [esp + 0x1b4]
call fcn.00401fd0
lea ecx, [esp + 0x1a0]
call fcn.00401ea0
lea ecx, [esp + 0x1a0]
call fcn.00401b50
pop edi
pop esi
pop ebp
add esp, 0x344
ret 4
Function at 0x4092a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xe44
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x11c]
call fcn.00410970
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebx + 0x5ba]
lea ecx, [esp + 0x11c]
push esi
mov dword [esp + 0x18], esi
stosb byte es:[edi], al
call fcn.00411470
mov ebp, dword [ebx + 0x1134]
add ebp, 0x40c
mov eax, dword [ebp + 8]
test eax, eax
je 0x40939b
mov eax, dword [ebp + 4]
mov edi, dword [eax]
cmp edi, eax
je 0x40939b
mov esi, dword [edi + 8]
push 0
lea eax, [esp + 0x1c]
push 0x104
lea ecx, [esi + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x12c]
call fcn.00410a70
mov eax, dword [esi + 8]
test eax, eax
je 0x40936c
add esi, 0x224
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, 0x43bc08
call fcn.0040e9a0
test eax, eax
jne 0x409382
lea eax, [esp + 0x18]
push eax
call fcn.0042a6b5
lea ecx, [esp + 0x1c]
push str.LANGSET.EXE
push ecx
call fcn.0042a63f
add esp, 0xc
test eax, eax
je 0x4093e1
jmp 0x409382
add esi, 0x224
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, 0x43bc08
call fcn.0040e680
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [edi]
mov eax, dword [ebp + 4]
cmp edi, eax
jne 0x409308
mov esi, dword [esp + 0x14]
mov al, byte [ebx + 0xc94]
mov dword [esp + 0x10], 0
test al, al
jne 0x409473
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareRisingKaKaToolBar
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4093e8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409473
push 0
call fcn.0042a54c
push esi
lea edx, [esp + 0x1c]
push str._sToolsKakatool.exe
push edx
call fcn.00429590
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, 0x43bc08
push 0x437988
push eax
call fcn.0040e680
test eax, eax
jne 0x409473
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0042aa90
mov byte [eax], 0
mov edi, str.ToolsKakatool.exe
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x437988
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x43bc08
call fcn.0040e680
lea ecx, [esp + 0x11c]
call fcn.00410a60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe44
ret
Function at 0x409610
Capabilities:
Create directory

Disassembly:
mov al, byte [ecx + 0xc95]
test al, al
je 0x4096b9
push str.SHGetFolderPathA
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4096cb
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
push 1
push 0
push 0x1c
push 0
call eax
mov edi, 0x43775c
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, str.Rfw
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [esp + 4]
add ecx, 0x4b6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret 4

Function at 0x409870
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x5ba]
push str.CompsVer.inf
lea esi, [ebx + 0x1248]
push eax
push str._s_s
push esi
call fcn.00429590
add esp, 0x10
lea ecx, [esp + 0xc]
push esi
push 0x20
push ecx
push 0x43babc
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
push 0x2e
push edx
call fcn.0042a800
add esp, 8
test eax, eax
je 0x4098ff
lea eax, [esp + 0xc]
push 0x2e
push eax
call fcn.0042a800
lea ecx, [esp + 0x14]
push 0x2e
push ecx
mov byte [eax], 0x5f
call fcn.0042a800
add esp, 0x10
test eax, eax
jne 0x4098dd
lea edi, [ebx + 0xc54]
lea edx, [esp + 0xc]
push edi
push edx
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x40992d
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40992d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
mov eax, dword [0x43d6a0]
test eax, eax
je 0x409942
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
mov eax, dword [0x43d84c]
pop edi
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x4099a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0x4b6]
push str.CompsVer.inf
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call fcn.00429590
lea ebx, [esi + 0x134c]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x409a0f
lea edx, [esp + 0xc]
push edx
push 0x20
push ebx
push 0x43babc
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esi, 0x136c
push esi
push ebx
call fcn.00429736
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x104
ret
Function at 0x40a0af
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [esp - 0x1f1]
sub esp, 0x1f4
push ebx
push ebp
push esi
mov esi, ecx
push 0xc
mov byte [esi + 8], al
call fcn.00429728
mov cl, byte [esp + 0x13]
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
push 0xc
mov byte [esi + 0x14], cl
call fcn.00429728
mov dl, byte [esp + 0x17]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
push 0xc
mov byte [esi + 0x20], dl
call fcn.00429728
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x24], eax
mov al, byte [esp + 0x1b]
mov dword [esi + 0x28], ebx
push 0xc
mov byte [esi + 0x2c], al
call fcn.00429728
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov al, byte [esp + 0x1f]
mov dword [esi + 0x34], ebx
mov ecx, dword [0x437348]
mov dword [esi + 0x3c], ecx
mov edx, dword [0x437348]
mov dword [esi + 0x40], edx
push 0xc
mov byte [esi + 0x44], al
call fcn.00429728
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebx
mov ecx, dword [0x437348]
push 0xac
mov dword [esi + 0x158], ecx
mov edx, dword [0x437348]
mov dword [esi + 0x244], edx
mov dword [esi], 0x43442c
mov dword [esi + 0x15c], ebx
call fcn.00429728
add esp, 0x18
cmp eax, ebx
je 0x40a17f
mov ecx, eax
call fcn.00401940
mov ebp, eax
jmp 0x40a181
xor ebp, ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x101]
mov byte [esp + 0x100], bl
push 0x43c41a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x104]
push str._sRsCommx.dll
push eax
mov dword [esi + 0x240], ebp
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x100]
push ecx
mov ecx, ebp
call fcn.00401bf0
test eax, eax
jne 0x40a1e4
mov edx, dword [esi + 0x240]
push edx
call fcn.004292c0
add esp, 4
mov dword [esi + 0x240], ebx
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x74]
lea edi, [esp + 0x21]
cmp edx, 2
lea edx, [esp + 0x14]
sete cl
push edx
mov byte [esi + 0x251], cl
push 1
mov ecx, 0x10
xor eax, eax
push ebx
mov byte [esp + 0x2c], bl
push str.SoftwareMicrosoftInternet_Explorer
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esi + 0x154], ebx
pop edi
jne 0x40a299
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.Version
push eax
mov dword [esp + 0x30], 0x41
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a28e
movsx ecx, byte [esp + 0x1c]
sub ecx, 0x30
mov dword [esi + 0x154], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1f4
ret
mov ecx, 0x43bc08
jmp 0x40a0a0
Function at 0x40ce70
Capabilities:
Create directory
Delete file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push edi
jne 0x40ce8b
xor eax, eax
pop edi
add esp, 0x104
ret 4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jbe 0x40ceb3
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
add esp, 0x104
ret 4
push ebx
push esi
push 0x103
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0042a8c0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.004271a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40cf11
lea ecx, [esp + 0xc]
push 0
push ecx
mov byte [esi], 0
call edi
test eax, eax
jne 0x40cf09
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0
push eax
call edi
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x40ced8
lea ecx, [esp + 0xc]
push 0
push ecx
call edi
test eax, eax
jne 0x40cf2e
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
test eax, eax
je 0x40cf4d
cmp eax, 0xb7
je 0x40cf4d
xor eax, eax
pop edi
add esp, 0x104
ret 4
mov eax, 1
pop edi
add esp, 0x104
ret 4
Function at 0x40e680
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
jne 0x40e6a4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0042a8c0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004271e0
add esp, 0x14
test eax, eax
je 0x40e6ee
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.004271e0
add esp, 8
mov byte [eax], 0
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 5
push eax
push esi
push ebp
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40e83c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 5]
push edi
call fcn.00429728
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x40e7ef
or ecx, 0xffffffff
mov edi, 0x437c24
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x437c20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40e809
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
push ebx
jae 0x40e834
call fcn.004292c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
call fcn.004292c0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8