joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e8bd
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, ecx
push ebx
mov dword [ebp - 0x80], ebx
call esi
test eax, eax
jne 0x40e8f6
inc eax
jmp 0x40e98c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x40e91b
mov dword [ebp - 0x7c], 1
jmp 0x40e988
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00421bc0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push 0x437a50
push 0x103
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x40e964
push 0x80
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
je 0x40e988
push 4
push 0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], edi
call esi
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f23c
add ebp, 0x194
leave
ret
Function at 0x40e9a3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x68c
mov eax, 0x4323bc
call fcn.00421b16
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x67c], esi
mov dword [ebp - 0x674], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40eb24
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00421bc0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x438024
push esi
lea eax, [ebp - 0x420]
push eax
call edi
and dword [ebp - 0x670], 0
push 0x24c
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x678], eax
cmp eax, 0xffffffff
je 0x40eb24
lea eax, [ebp - 0x644]
push 0x437a1c
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x40eafd
lea eax, [ebp - 0x644]
push 0x437a20
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x40eafd
xor eax, eax
push ebx
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0x67c]
lea eax, [ebp - 0x218]
push eax
call edi
test byte [ebp - 0x670], 0x10
lea eax, [ebp - 0x218]
je 0x40eacc
push dword [ebp - 0x674]
push eax
call fcn.0040e9a3
pop ecx
pop ecx
jmp 0x40eafd
push eax
lea esi, [ebp - 0x698]
call fcn.00411484
and dword [ebp - 4], 0
mov eax, esi
mov esi, dword [ebp - 0x674]
push eax
call fcn.004114f3
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x698]
call fcn.004064c2
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea47
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00421b99
ret
Function at 0x40f0d8
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2274]
mov eax, 0x22f4
call fcn.0042d800
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x2270], eax
push esi
push edi
xor esi, esi
push ebx
mov edi, ecx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f208
xor eax, eax
push 0x208e
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x26]
push esi
push eax
call fcn.00421bc0
add esp, 0xc
cmp edi, esi
je 0x40f14a
cmp word [edi], si
je 0x40f14a
push edi
push ebx
push 0x437bbc
lea eax, [ebp - 0x28]
push 0x1047
push eax
call fcn.0041fb89
add esp, 0x14
jmp 0x40f161
push ebx
push 0x437bcc
lea eax, [ebp - 0x28]
push 0x1047
push eax
call fcn.0041fb89
add esp, 0x10
xor eax, eax
push 0x206
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x206a]
push esi
push eax
call fcn.00421bc0
push ebx
push 0x435dc0
lea eax, [ebp + 0x2068]
push 0x103
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp + 0x2068]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push reloc.KERNEL32.dll_HeapFree
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00421bc0
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x2068]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f205
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 1
call esi
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x2270]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f23c
add ebp, 0x2274
leave
ret
Function at 0x40f21f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x49c]
mov eax, 0x1430
call fcn.0042d800
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x498], eax
mov eax, dword [ebp + 0x4a4]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x7c], ebx
cmp esi, ebx
je 0x40f3af
cmp word [esi], bx
je 0x40f3af
cmp eax, ebx
je 0x40f3af
xor eax, eax
push 0x206
mov word [ebp + 0x84], ax
lea eax, [ebp + 0x86]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
push 0x437bd8
push esi
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x70]
push eax
push reloc.KERNEL32.dll_WaitForMultipleObjects
lea eax, [ebp - 0xf94]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40f3af
push edi
mov edi, dword [ebp + 0x70]
xor eax, eax
push 0x208
mov word [ebp + reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp + 0x28e]
push ebx
push eax
shr edi, 2
call fcn.00421bc0
add esp, 0xc
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x80], ebx
cmp edi, ebx
jbe 0x40f3a9
jmp 0x40f2f1
xor ebx, ebx
mov eax, dword [ebp + 0x80]
push dword [ebp + eax*4 - 0xf94]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40f397
lea eax, [ebp + 0x6c]
push eax
push 4
lea eax, [ebp + 0x78]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40f390
push 0x104
lea eax, [ebp + 0x28c]
push eax
push dword [ebp + 0x78]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40f390
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor esi, esi
cmp dword [ebp + reloc.USER32.dll_SetRect], esi
mov ebx, eax
jle 0x40f397
mov eax, dword [ebp + 0x74]
push dword [eax + esi*4]
push ebx
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x40f38b
inc esi
cmp esi, dword [ebp + reloc.USER32.dll_SetRect]
jl 0x40f36e
jmp 0x40f397
inc dword [ebp + 0x7c]
jmp 0x40f397
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 0x80]
cmp dword [ebp + 0x80], edi
jb 0x40f2ef
mov eax, dword [ebp + 0x7c]
pop edi
jmp 0x40f3b1
xor eax, eax
mov ecx, dword [ebp + 0x498]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f23c
add ebp, 0x49c
leave
ret
Function at 0x40f94d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40f9ec
push edi
push 0x437090
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40f9e7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x40f9e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40f9de
push ebx
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f9dd
push edi
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f9d6
cmp edi, dword [ebp + 8]
jne 0x40f9d6
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
jmp 0x40f9ee
xor eax, eax
pop esi
leave
ret

Function at 0x40fc84
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd09
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421bc0
push esi
push 0x435dc0
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0041fb89
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 5
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
push 0x437bdc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40fd07
xor ebx, ebx
inc ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041f23c
leave
ret

Function at 0x40fd16
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x18c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00421bc0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push 0x437be8
push 0x80000001
mov dword [ebp - 0x80], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.0041f23c
add ebp, 0x190
leave
ret
Function at 0x40fd92
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x432603
call fcn.00421b16
mov esi, ecx
xor ebx, ebx
push esi
mov edi, edx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe24
cmp edi, ebx
je 0x40fe24
cmp word [edi], bx
je 0x40fe24
push esi
lea esi, [ebp - 0x64]
call fcn.00411484
push edi
lea esi, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00411484
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00414a9b
xor edi, edi
add esp, 0xc
inc edi
test eax, eax
jne 0x40fe01
mov dword [ebp - 0x68], edi
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.004064c2
push ebx
push edi
lea esi, [ebp - 0x48]
call fcn.004064c2
push ebx
push edi
lea esi, [ebp - 0x64]
call fcn.004064c2
mov eax, dword [ebp - 0x68]
jmp 0x40fe26
xor eax, eax
call fcn.00421b99
ret

Function at 0x40fe2c
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
mov ebx, 0x437ca8
push ebx
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
mov eax, dword [esi]
cmp eax, ebp
jne 0x40fe62
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x40fe8b
push dword [esp + 0x14]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40fe82
mov dword [esp + 0xc], 1
jmp 0x40fe8b
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410c6b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x410d6c
push 0x437de8
push 0x437e04
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 3
cmp eax, ebx
je 0x410d6c
mov dword [ebp - 0x2c], ebx
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x410d16
push eax
push ebx
push reloc.KERNEL32.dll_FindClose
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x410d16
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
call dword [ebp - 0x14]
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x410d6c
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x410d1b
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 0x3c
cmp dword [ebp - 8], 1
mov dword [ecx], eax
jl 0x410ccc
cmp dword [ebp - 0xc], ebx
jne 0x410d6c
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x410d67
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x4108c4
push ebx
push ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
xor eax, eax
inc eax
jmp 0x410d6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410db0
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410dc3
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x410df4
push 0x437e34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410ded
call eax
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
ret
Function at 0x410df9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x690
mov eax, 0x432317
call fcn.00421b16
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [ebp - 0x680], esi
mov dword [ebp - 0x67c], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410f65
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00421bc0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x437e48
push esi
lea eax, [ebp - 0x21c]
push eax
call edi
and dword [ebp - 0x674], 0
push 0x24c
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x678], eax
cmp eax, 0xffffffff
je 0x410f65
lea eax, [ebp - 0x648]
push 0x437a1c
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x410f3e
lea eax, [ebp - 0x648]
push 0x437a20
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
je 0x410f3e
xor eax, eax
push ebx
push eax
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
push dword [ebp - 0x680]
lea eax, [ebp - 0x424]
push eax
call edi
test byte [ebp - 0x674], 0x10
jne 0x410f3e
lea eax, [ebp - 0x424]
push eax
lea esi, [ebp - 0x69c]
call fcn.00411484
and dword [ebp - 4], 0
mov eax, esi
mov esi, dword [ebp - 0x67c]
push eax
call fcn.004114f3
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x69c]
call fcn.004064c2
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410e9c
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00421b99
ret
Function at 0x411078
Capabilities:
Create process on windows

Disassembly:
push 0x228
mov eax, 0x432590
call fcn.00421b16
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x21c], eax
cmp esi, edi
je 0x4111a0
cmp eax, edi
je 0x4111a0
lea eax, [ebp - 0x234]
push eax
call fcn.0040b9f1
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00410df9
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
pop ecx
push reloc.KERNEL32.dll_GetSystemTimeAsFileTime
cdq
pop ecx
idiv ecx
xor ebx, ebx
test eax, eax
jbe 0x411190
xor eax, eax
push 0x206
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00421bc0
add esp, 0xc
push ebx
lea esi, [ebp - 0x234]
call fcn.0040ba57
cmp dword [eax + 0x18], 8
jb 0x411113
mov eax, dword [eax + 4]
jmp 0x411116
add eax, 4
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.0040ec65
pop ecx
pop ecx
test eax, eax
je 0x411175
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
jne 0x411175
push ebx
lea esi, [ebp - 0x234]
call fcn.0040ba57
cmp dword [eax + 0x18], 8
jb 0x411158
mov esi, dword [eax + 4]
jmp 0x41115b
lea esi, [eax + 4]
call fcn.0040de57
cmp eax, 9
jl 0x411175
push edi
push edi
push edi
push esi
push reloc.KERNEL32.dll_SetHandleCount
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
push reloc.KERNEL32.dll_GetSystemTimeAsFileTime
cdq
pop ecx
idiv ecx
inc ebx
cmp ebx, eax
jb 0x4110de
lea esi, [ebp - 0x234]
call fcn.0040ba2a
xor eax, eax
inc eax
jmp 0x4111a2
xor eax, eax
call fcn.00421b99
ret
Function at 0x4111a8
Capabilities:
Create process on windows

Disassembly:
push 0x228
mov eax, 0x432590
call fcn.00421b16
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x21c], eax
cmp esi, edi
je 0x4112d0
cmp eax, edi
je 0x4112d0
lea eax, [ebp - 0x234]
push eax
call fcn.0040b9f1
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00410df9
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
pop ecx
push reloc.KERNEL32.dll_GetSystemTimeAsFileTime
cdq
pop ecx
idiv ecx
xor ebx, ebx
test eax, eax
jbe 0x4112c0
xor eax, eax
push 0x206
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00421bc0
add esp, 0xc
push ebx
lea esi, [ebp - 0x234]
call fcn.0040ba57
cmp dword [eax + 0x18], 8
jb 0x411243
mov eax, dword [eax + 4]
jmp 0x411246
add eax, 4
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.0040ec65
pop ecx
pop ecx
test eax, eax
je 0x4112a5
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
jne 0x4112a5
push ebx
lea esi, [ebp - 0x234]
call fcn.0040ba57
cmp dword [eax + 0x18], 8
jb 0x411288
mov esi, dword [eax + 4]
jmp 0x41128b
lea esi, [eax + 4]
call fcn.0040de57
cmp eax, 9
jl 0x4112a5
push edi
push edi
push edi
push esi
push 0x437e70
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
push reloc.KERNEL32.dll_GetSystemTimeAsFileTime
cdq
pop ecx
idiv ecx
inc ebx
cmp ebx, eax
jb 0x41120e
lea esi, [ebp - 0x234]
call fcn.0040ba2a
xor eax, eax
inc eax
jmp 0x4112d2
xor eax, eax
call fcn.00421b99
ret
Function at 0x4112d8
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
cmp eax, edi
je 0x4113d1
push ebx
push esi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push edi
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x437e88
mov ebx, 0x80000001
push ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x4113ca
lea eax, [ebp - 0x70]
push 0x437ed8
push eax
call fcn.0041faf6
pop ecx
pop ecx
test eax, eax
jne 0x4113ca
push 0x208
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x437f28
push ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x4113ca
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4113ca
mov edi, dword [ebp - 0x80]
push 0x3e
lea esi, [ebp - 0x70]
call fcn.0040dfbe
pop ecx
test eax, eax
je 0x4113ca
cmp word [edi], 0
je 0x4113ca
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x7c]
pop esi
pop ebx
jmp 0x4113d3
xor eax, eax
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop edi
call fcn.0041f23c
add ebp, 0x19c
leave
ret

Function at 0x4122c5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4122cd
mov dword [ecx*4 + 0x4433a0], eax
inc ecx
cmp ecx, 0x100
jb 0x4122c8
pop esi
ret
Function at 0x4146b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4146c9
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4146e8
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4146ed
inc edi
cmp edi, dword [ebp - 8]
jb 0x4146df
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4147dc
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41476f
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x414719
cmp cl, 0xff
jne 0x41479e
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4147af
movzx esi, byte [edx + 0x435984]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41475f
cmp bl, 0xff
jne 0x4147ac
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x414737
dec ecx
shl edx, cl
and edx, 7
je 0x414706
movzx ecx, byte [edx + 0x435984]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x43597c], 0
mov cl, byte [ebx + 4]
je 0x41479b
test cl, cl
je 0x41479b
cmp cl, 0xff
jne 0x414706
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4146da
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4146da
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret