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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov ecx, dword [ebp + 0x14]
push 0xa
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp + 0x18]
push eax
push dword [0x4339e8]
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x144], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x405fa8
push ebx
push dword [0x4339e8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405fa8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x4339e8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.DeskSoftBindData
push eax
push esi
call fcn.00409dcb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405fba
push edi
call fcn.00409596
pop ecx
push 0x11
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push dword [ebp - 0x138]
push esi
call fcn.0040979b
add esp, 0x14
test eax, eax
je 0x405fe1
push 0x11
jmp 0x406010
cmp dword [ebp + 0x10], 1
jne 0x406013
push dword [ebp - 0x13c]
push dword [ebp - 0x134]
push esi
call fcn.0040a203
add esp, 0xc
test eax, eax
je 0x40604f
push 8
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40604f
push 0x1f
pop edi
jmp 0x40604f
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
add eax, dword [ebp - 0x144]
push eax
push 1
call fcn.00418d1c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x148]
push eax
push dword [ebp - 0x134]
push esi
mov dword [ecx], eax
call fcn.0040a1e8
add esp, 0x18
test eax, eax
push 0x23
pop ecx
cmovne edi, ecx
push esi
call fcn.00409596
pop ecx
mov eax, edi
jmp 0x405fab
Function at 0x40605d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00411193
lea eax, [ebp - 0x108]
push eax
call fcn.00407281
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00411193
push 0x426a04
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0041139d
add esp, 0x28
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [ebp + 0xc]
mov edi, eax
cmp edi, 0xffffffff
je 0x406183
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cb5
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40616d
test byte [ebp - 0x230], 0x10
je 0x406167
lea eax, [ebp - 0x344]
push 0x426a08
push eax
call fcn.00418c90
pop ecx
pop ecx
test eax, eax
je 0x40616d
lea eax, [ebp - 0x344]
push 0x426a0c
push eax
call fcn.00418c90
pop ecx
pop ecx
test eax, eax
je 0x40616d
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040605d
pop ecx
pop ecx
add esi, eax
jmp 0x40616d
add esi, dword [ebp - 0x210]
lea eax, [ebp - 0x370]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4060e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret

Function at 0x40619b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push str._s.
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea eax, [ebp - 0x21c]
push 0x426a08
push eax
call fcn.00411439
pop ecx
pop ecx
test eax, eax
je 0x406228
lea eax, [ebp - 0x21c]
push 0x426a0c
push eax
call fcn.00411439
pop ecx
pop ecx
test eax, eax
je 0x406228
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00411439
pop ecx
pop ecx
test eax, eax
jne 0x406254
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061e7
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
xor bl, bl
jmp 0x40623c
Function at 0x406258
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062e4
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4062e4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
add ecx, ebx
push ecx
push 1
call fcn.00418d1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4062cf
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 8]
je 0x4062cf
push esi
call fcn.00418c70
pop ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4062df
mov dword [eax], ebx
mov eax, esi
pop esi
jmp 0x4062fe
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp + 8]
call fcn.00405f0b
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
pop ebx
leave
ret

Function at 0x406302
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00405df5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4063d0
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4063cb
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00406258
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4063cb
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test eax, eax
jle 0x4063b7
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
push 0
push 0
push eax
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4063b4
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0xc], ecx
jne 0x4063b4
push 0xfffffffffffffff8
add edi, ecx
pop eax
sub eax, ecx
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jg 0x40636a
jmp 0x4063b7
push 0x18
pop esi
push dword [ebp - 0x10]
call fcn.00418c70
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4063ce
push 0x18
pop eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4063d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 2
mov dword [ebp - 0x110], eax
pop eax
push eax
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406474
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00411193
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0040eca0
add esp, 0x14
test eax, eax
je 0x406440
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00405e86
pop ecx
push 0
push 0x80
push 2
pop eax
push eax
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406474
xor eax, eax
inc eax
jmp 0x4064aa
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
and dword [ebp - 0x10c], 0
push 0
push eax
push esi
push dword [ebp - 0x110]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, dword [ebp - 0x10c]
push 2
pop ecx
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d595
leave
ret
Function at 0x407167
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and dword [0x433970], 0
cmp byte [ebp + 0xc], 0
push dword [ebp + 8]
je 0x407193
push 0
push fcn.004064b8
call fcn.00418fbd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x407199
push 0xe
pop eax
pop ebp
ret
call fcn.004064b8
pop ecx
xor eax, eax
pop ebp
ret

Function at 0x4075fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
or edx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x407628
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x433ca8]
inc edi
sub esi, 1
jne 0x407610
not edx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x40766d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
xor ebx, ebx
mov dword [ebp - 0x128], edi
xor esi, esi
push eax
push esi
jmp 0x4077ca
lea eax, [ebp - 0x108]
inc ebx
push edi
push eax
mov dword [ebp - 0x124], ebx
call fcn.0040ede0
pop ecx
pop ecx
test eax, eax
je 0x4077c2
xor ebx, ebx
push ebx
call fcn.00418c08
pop ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x108]
mov dword [0x433ca4], ebx
push eax
push 0x407bb5
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x433ca4]
test eax, eax
je 0x4077b6
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x118]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push ebx
push 0x12
push dword [0x433ca4]
mov dword [ebp - 0x110], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, ebx
mov dword [ebp - 0x10c], 0x103
mov ebx, dword [ebp - 0x110]
cmp edi, 0x64
jge 0x407765
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp dword [ebp - 0x10c], 0x103
je 0x40773d
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp dword [ebp - 0x10c], 0x103
cmove esi, eax
cmp dword [0x433ca4], 0
je 0x4077b6
xor ebx, ebx
push ebx
call fcn.00418c08
sub eax, dword [ebp - 0x11c]
pop ecx
sbb edx, dword [ebp - 0x120]
mov dword [ebp - 0x110], edx
js 0x4076d0
jg 0x4077b6
cmp eax, 0x3c
jb 0x4076d0
mov ebx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.00407e03
pop ecx
pop ecx
test al, al
jne 0x40769d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
Function at 0x407a4a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x426c30
push 0x104
push eax
call fcn.00403cb5
add esp, 0x10
lea eax, [ebp - 0x108]
mov ebx, SysReAllocString
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edi
push str._sfile
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret

Function at 0x407adb
Capabilities:
Create process on windows
Move file
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040eca0
pop ecx
pop ecx
test eax, eax
je 0x407b2a
mov byte [eax], bl
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x108]
push 4
push ebx
push eax
call esi
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str._c_del___s___rmdir___s_
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00403cb5
add esp, 0x14
lea eax, [ebp - 0x108]
push edi
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x407b9f
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407bae
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
push ebx
call fcn.004194ee
int3
Function at 0x407c3c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push edi
mov edi, dword [ebp + 8]
push 0x530
push 0
push eax
call fcn.0040ea10
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.00407f02
add esp, 0x14
test al, al
je 0x407d3a
xor eax, eax
inc eax
push ebx
push eax
call fcn.004080f7
mov ax, word [ebp - 0x628]
mov ebx, 0x104
pop ecx
test ax, ax
jne 0x407cd1
push esi
push 0x1a
call fcn.00407fbb
push edi
push str.DeskSoft_s
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cb5
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041139d
mov ax, word [ebp - 0x628]
add esp, 0x24
xor ecx, ecx
inc ecx
cmp ax, cx
jne 0x407d2e
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.00411193
add esp, 0xc
cmp word [ebp - 0x626], 0
je 0x407d2e
push 0x426af0
push ebx
push esi
call fcn.0041139d
add esp, 0xc
mov dword [ebp - 0x63c], ebx
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.0041139d
add esp, 0xc
push 0
call fcn.004080f7
pop ecx
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d595
leave
ret

Function at 0x407d48
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push str.GetDiskFreeSpaceExA
push 0x426ba8
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407d9f
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
jne 0x407d97
or edx, 0xffffffff
mov eax, edx
jmp 0x407df6
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x407df4
xor eax, eax
xorps xmm0, xmm0
push 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push esi
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0040f410
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
mov ecx, eax
mov eax, edx
mul dword [ebp - 0x10]
mov esi, eax
mov eax, ecx
mul dword [ebp - 0x10]
add esi, edx
mov edx, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d595
leave
ret
Function at 0x407e03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407e2d
xor al, al
jmp 0x407e5b
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret

Function at 0x407f02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f50
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
jne 0x407f57
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
call fcn.00418d1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407f47
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x407f87
push edi
call fcn.00418c70
pop ecx
jmp 0x407f47
mov esi, dword [ebp + 0xc]
mov eax, 0x530
cmp dword [ebp - 4], eax
cmovb eax, dword [ebp - 4]
push eax
push edi
push esi
call fcn.0040f410
push edi
call fcn.00418c70
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp word [esi], ax
sete al
jmp 0x407f52

Function at 0x40800f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push str.TEXT
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40807e
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40807d
lea eax, [edi + 1]
push eax
push 1
call fcn.00418d1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40807d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408074
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408074
push edi
push eax
push esi
call fcn.0040f410
add esp, 0xc
jmp 0x40807d
push esi
call fcn.00418c70
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x408191
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x433ca8
push 8
push edi
call fcn.004075cb
pop ecx
pop ecx
mov edx, eax
push 8
shl edx, 0x18
pop ebx
mov ecx, edx
lea eax, [edx + edx]
sar ecx, 0x1f
and ecx, 0x4c11db7
mov edx, ecx
xor edx, eax
sub ebx, 1
jne 0x4081ad
push 0x20
push edx
call fcn.004075cb
mov dword [esi], eax
inc edi
add esi, 4
pop ecx
pop ecx
cmp esi, 0x4340a4
jle 0x40819b
pop edi
pop esi
pop ebx
ret

Function at 0x4081e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4339f8], 0
mov eax, dword [ebp + 8]
mov dword [0x4339e8], eax
jne 0x40820a
push 0x104
push 0x4339f8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4339e8]
push esi
push 0xa
mov esi, str.Setup.dis
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
neg eax
sbb eax, eax
inc eax
mov dword [0x433b00], eax
call fcn.00408191
push 0x4339f0
call fcn.00407e5e
push 0
mov dword [0x4339ec], eax
call fcn.004069ff
pop ecx
pop ecx
xor ecx, ecx
cmp dword [0x4313f4], ecx
jle 0x40827d
push ebx
mov edx, 0x4313d4
push edi
xor ebx, ebx
cmp dword [ecx*4 + 0x4312c4], ebx
jle 0x40826f
mov edi, edx
lea eax, [ebx + 0x64]
xor byte [edi], al
inc ebx
inc edi
cmp ebx, dword [ecx*4 + 0x4312c4]
jl 0x40825f
inc ecx
add edx, 0xa
cmp ecx, dword [0x4313f4]
jl 0x408252
pop edi
pop ebx
cmp dword [0x433b00], 0
mov ecx, str.Uninstall.dis
push 1
cmovne esi, ecx
push 0x433afc
push esi
call fcn.00406258
add esp, 0xc
mov ecx, eax
mov dword [0x4339f4], ecx
pop esi
test ecx, ecx
jne 0x4082ac
inc eax
pop ebp
ret
mov eax, dword [0x433afc]
push 1
mov byte [eax + ecx], 0
call fcn.004069ff
pop ecx
pop ebp
ret
Function at 0x4085d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x220], eax
mov eax, 0x8694
push ebx
push edi
mov word [ebp - 0x21c], ax
lea edi, [ebp - 0x21a]
xor eax, eax
mov dword [ebp - 0x228], 2
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
cmp dword [0x431408], ebx
jle 0x408714
push esi
mov esi, 0x104
test edi, edi
jne 0x408674
push 0x426538
push str._sInit
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cb5
lea eax, [ebp - 0x108]
push eax
call fcn.00408742
add esp, 0x14
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x43140c]
imul esi, edi, 0x104
push 0x5c
add eax, esi
push eax
call fcn.0040eca0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040ea10
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040ea10
mov eax, dword [0x43140c]
add eax, esi
mov esi, 0x104
push eax
push 0x426cf0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00403cb5
push 0x426538
push str._sInit
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cb5
add esp, 0x40
push dword [ebp - 0x220]
call fcn.00408742
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x408706
inc ebx
inc edi
cmp edi, dword [0x431408]
jl 0x40863c
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret