joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40603f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x431440]
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.004110f3
lea eax, [ebp - 0x108]
push eax
call fcn.00407232
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004110f3
push 0x426a04
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004112fd
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 0x406165
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cbc
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 0x40614f
test byte [ebp - 0x230], 0x10
je 0x406149
lea eax, [ebp - 0x344]
push 0x426a08
push eax
call fcn.00418bf0
pop ecx
pop ecx
test eax, eax
je 0x40614f
lea eax, [ebp - 0x344]
push 0x426a0c
push eax
call fcn.00418bf0
pop ecx
pop ecx
test eax, eax
je 0x40614f
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040603f
pop ecx
pop ecx
add esi, eax
jmp 0x40614f
add esi, dword [ebp - 0x210]
lea eax, [ebp - 0x370]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4060c2
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.0040d5ca
leave
ret

Function at 0x40617d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x431440]
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.00403cbc
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.00411399
pop ecx
pop ecx
test eax, eax
je 0x40620a
lea eax, [ebp - 0x21c]
push 0x426a0c
push eax
call fcn.00411399
pop ecx
pop ecx
test eax, eax
je 0x40620a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00411399
pop ecx
pop ecx
test eax, eax
jne 0x406236
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061c9
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.0040d5ca
leave
ret
xor bl, bl
jmp 0x40621e
Function at 0x40623a
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 0x4062ca
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 0x4062ca
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.00418c7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4062b3
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 0x4062b5
push esi
call fcn.00418bd0
pop ecx
xor esi, esi
jmp 0x4062b5
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4062c5
mov dword [eax], ebx
mov eax, esi
pop esi
jmp 0x4062e4
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp + 8]
call fcn.00405eed
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
pop ebx
leave
ret

Function at 0x4062e8
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.00405dd7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4063b6
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 0x4063b1
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.0040623a
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4063b1
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test eax, eax
jle 0x40639d
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 0x40639a
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 0x40639a
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 0x406350
jmp 0x40639d
push 0x18
pop esi
push dword [ebp - 0x10]
call fcn.00418bd0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4063b4
push 0x18
pop eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4063b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
mov dword [ebp - 0x110], eax
pop eax
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40645e
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004110f3
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0040ec10
add esp, 0x14
test eax, eax
je 0x40642a
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00405e68
pop ecx
push 0
push 0x80
push 2
pop eax
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40645e
xor eax, eax
inc eax
jmp 0x406491
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0
push eax
push ebx
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, dword [ebp - 0x10c]
push 2
pop ecx
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
Function at 0x407118
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and dword [0x4339e0], 0
cmp byte [ebp + 0xc], 0
push dword [ebp + 8]
je 0x407144
push 0
push fcn.004064a0
call fcn.00418f1d
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40714a
push 0xe
pop eax
pop ebp
ret
call fcn.004064a0
pop ecx
xor eax, eax
pop ebp
ret

Function at 0x407597
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 0x4075c1
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x433d18]
inc edi
sub esi, 1
jne 0x4075a9
not edx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x407606
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x431440]
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 0x407763
lea eax, [ebp - 0x108]
inc ebx
push edi
push eax
mov dword [ebp - 0x124], ebx
call fcn.0040ed50
pop ecx
pop ecx
test eax, eax
je 0x40775b
xor ebx, ebx
push ebx
call fcn.00418b68
pop ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x108]
mov dword [0x433d14], ebx
push eax
push 0x407b4e
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x433d14]
test eax, eax
je 0x40774f
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 [0x433d14]
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 0x4076fe
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 0x4076d6
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 [0x433d14], 0
je 0x40774f
xor ebx, ebx
push ebx
call fcn.00418b68
sub eax, dword [ebp - 0x11c]
pop ecx
sbb edx, dword [ebp - 0x120]
mov dword [ebp - 0x110], edx
js 0x407669
jg 0x40774f
cmp eax, 0x3c
jb 0x407669
mov ebx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.00407d9c
pop ecx
pop ecx
test al, al
jne 0x407636
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
Function at 0x4079e3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
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.00403cbc
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.00403cbc
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.0040d5ca
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x431440]
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.0040ec10
pop ecx
pop ecx
test eax, eax
je 0x407ac3
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.00403cbc
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 0x407b38
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 0x407b47
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
push ebx
call fcn.0041944e
int3
Function at 0x407bd5
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x431440]
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.0040e980
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.00407e9b
add esp, 0x14
test al, al
je 0x407cd3
xor eax, eax
inc eax
push ebx
push eax
call fcn.00408090
mov ax, word [ebp - 0x628]
mov ebx, 0x104
pop ecx
test ax, ax
jne 0x407c6a
push esi
push 0x1a
call fcn.00407f54
push edi
push str.DeskSoft_s
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
push ebx
push esi
call fcn.004112fd
mov ax, word [ebp - 0x628]
add esp, 0x24
xor ecx, ecx
inc ecx
cmp ax, cx
jne 0x407cc7
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.004110f3
add esp, 0xc
cmp word [ebp - 0x626], 0
je 0x407cc7
push 0x426af0
push ebx
push esi
call fcn.004112fd
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.004112fd
add esp, 0xc
push 0
call fcn.00408090
pop ecx
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
ret

Function at 0x407ce1
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
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 0x407d38
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
jne 0x407d30
or edx, 0xffffffff
mov eax, edx
jmp 0x407d8f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x407d8d
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.0040f370
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.0040d5ca
leave
ret
Function at 0x407d9c
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 0x407dc6
xor al, al
jmp 0x407df4
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 0x407e9b
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 0x407ee9
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 0x407ef0
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.00418c7c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407ee0
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 0x407f20
push edi
call fcn.00418bd0
pop ecx
jmp 0x407ee0
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.0040f370
push edi
call fcn.00418bd0
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 0x407eeb

Function at 0x407fa8
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 0x408017
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x408016
lea eax, [edi + 1]
push eax
push 1
call fcn.00418c7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408016
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40800d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40800d
push edi
push eax
push esi
call fcn.0040f370
add esp, 0xc
jmp 0x408016
push esi
call fcn.00418bd0
xor esi, esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x40812a
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x433d18
push 8
push edi
call fcn.00407564
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 0x408146
push 0x20
push edx
call fcn.00407564
mov dword [esi], eax
inc edi
add esi, 4
pop ecx
pop ecx
cmp esi, 0x434114
jle 0x408134
pop edi
pop esi
pop ebx
ret

Function at 0x408179
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x433a68], 0
mov eax, dword [ebp + 8]
mov dword [0x433a58], eax
jne 0x4081a3
push 0x104
push 0x433a68
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x433a58]
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 [0x433b74], eax
call fcn.0040812a
push 0x433a60
call fcn.00407df7
push 0
mov dword [0x433a5c], eax
call fcn.004069b0
pop ecx
pop ecx
xor ecx, ecx
cmp dword [0x4312c4], ecx
jle 0x408216
push ebx
mov edx, 0x4313cc
push edi
xor ebx, ebx
cmp dword [ecx*4 + 0x4313ec], ebx
jle 0x408208
mov edi, edx
lea eax, [ebx + 0x64]
xor byte [edi], al
inc ebx
inc edi
cmp ebx, dword [ecx*4 + 0x4313ec]
jl 0x4081f8
inc ecx
add edx, 0xa
cmp ecx, dword [0x4312c4]
jl 0x4081eb
pop edi
pop ebx
cmp dword [0x433b74], 0
mov eax, str.Uninstall.dis
push 1
cmovne esi, eax
push 0x433b70
push esi
call fcn.0040623a
add esp, 0xc
mov ecx, eax
mov dword [0x433b6c], ecx
pop esi
test ecx, ecx
jne 0x408245
inc eax
pop ebp
ret
mov eax, dword [0x433b70]
push 1
mov byte [ecx + eax], 0
call fcn.004069b0
pop ecx
pop ebp
ret
Function at 0x40856a
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], 2
push esi
xor esi, esi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov ebx, esi
mov eax, 0x8694
mov dword [ebp - 0x21a], esi
push edi
mov edi, esi
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x216], esi
mov dword [ebp - 0x212], esi
cmp dword [0x431408], ebx
jle 0x4086bb
test ebx, ebx
jne 0x408614
push 0x426538
push str._sInit
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
call fcn.004086ea
add esp, 0x14
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x43140c]
imul esi, ebx, 0x104
push 0x5c
add eax, esi
push eax
call fcn.0040ec10
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040e980
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040e980
mov eax, dword [0x43140c]
add eax, esi
mov esi, 0x104
push eax
push 0x426cf0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00403cbc
push 0x426538
push str._sInit
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cbc
add esp, 0x40
push dword [ebp - 0x220]
call fcn.004086ea
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
lea ecx, [edi + 1]
push 0
cmove ecx, edi
inc ebx
mov edi, ecx
pop esi
cmp ebx, dword [0x431408]
jl 0x4085d8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
Function at 0x408cc2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push dword [ebp + 8]
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408cf5
xor al, al
jmp 0x408d24
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push 0x530
push eax
push 3
push ebx
push dword [ebp + 8]
inc ecx
push dword [ebp - 4]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408d19
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x408ead
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x104
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], ecx
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408f12
or eax, 0xffffffff
jmp 0x409008
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push str.UninstallString
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f45
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408f0a
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3c
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 0x44
push esi
push eax
mov dword [ebp - 0x164], esi
call fcn.0040e980
xor eax, eax
lea edi, [ebp - 0x124]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x168]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408fac
push 0xfffffffffffffffe
pop eax
jmp 0x409007
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, 0x103
mov dword [ebp - 0x10c], edi
jmp 0x408fd7
cmp dword [ebp - 0x10c], edi
jne 0x408feb
call fcn.00405ab0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call esi
cmp eax, 1
je 0x408fbf
push dword [ebp - 0x124]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x120]
call esi
mov eax, dword [ebp - 0x10c]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
ret