joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ca00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x10]
test edi, edi
mov dword [ecx + 0x245a8], 0
mov dword [ecx + 0x245ac], 0
mov dword [ecx + 0x245b0], 0
je 0x46caec
mov al, byte [edi + 0x34]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
and eax, 0xff
mov edx, eax
shl edx, 5
add edx, eax
lea esi, [eax + edx*2]
shl esi, 2
mov eax, dword [esi + 0x6dc57c]
test eax, eax
jge 0x46ca8c
cdq
mov ebp, eax
mov eax, dword [edi + 0x24]
xor ebp, edx
lea eax, [eax + eax*4]
sub ebp, edx
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div dword [esi + 0x6dc540]
imul ebp, eax
mov eax, 0x51eb851f
mul ebp
mov eax, dword [ecx + 0x245a8]
shr edx, 5
add eax, edx
mov dword [ecx + 0x245a8], eax
jmp 0x46ca92
add dword [ecx + 0x245ac], eax
mov edi, dword [edi + 0x7c]
test edi, edi
jne 0x46ca2d
mov eax, dword [ecx + 0x245a8]
mov edx, 0xc8
test eax, eax
je 0x46cabe
add eax, edx
mov dword [ecx + 0x245a8], eax
mov eax, dword [ecx + 0x245ac]
add eax, edx
mov dword [ecx + 0x245ac], eax
mov esi, dword [ecx + 0x245ac]
test esi, esi
je 0x46cae6
mov eax, dword [ecx + 0x245a8]
xor edx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div esi
mov dword [ecx + 0x245b0], eax
pop edi
pop esi
pop ebp
pop ecx
ret
mov dword [ecx + 0x245b0], edx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x46eda0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xd8
xor eax, eax
push ebx
push ebp
mov dword [esp + 8], eax
push esi
push edi
mov dword [esp + 0x14], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [edi + 0x1a0], ebp
mov dword [edi + 0x1ac], ebp
mov dword [edi + 0x1b0], ebp
mov dword [edi], ebp
mov dword [esp + 0x1c], eax
lea esi, [edi + 4]
xor ebx, ebx
mov dword [0x79560c], ebp
mov word [esp + 0x10], 1
mov word [esp + 0x12], 2
mov dword [esp + 0x14], 0x5622
mov dword [esp + 0x18], 0x15888
mov word [esp + 0x1c], 4
mov word [esp + 0x1e], 0x10
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
cmp eax, ebp
jne 0x46ee36
lea ecx, [esp + 0x20]
push str.ISampleManager___:_No_wave_playing_devices_detected
push ecx
call fcn.004b0670
add esp, 8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [edi], ebp
jmp 0x46ee46
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push edi
call dword [sym.imp.mss32.dll__AIL_waveOutOpen_16]
mov ebx, eax
cmp ebx, ebp
je 0x46ee82
call dword [sym.imp.mss32.dll__AIL_last_error_0]
push eax
lea ecx, [esp + 0x24]
push str.ISampleManager___error:__n_s
push ecx
call fcn.004b0670
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0046eee0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 8
mov ebp, dword [sym.imp.mss32.dll__AIL_allocate_sample_handle_4]
mov byte [0x795610], 1
xor ebx, ebx
mov eax, dword [edi]
push eax
call ebp
or ecx, 0xffffffff
push eax
mov dword [esi], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
call dword [sym.imp.mss32.dll__AIL_init_sample_4]
push 0
push 0
push 0x5622
push 0
push 0x40
push 0x40
push ebx
mov ecx, edi
call fcn.0046f390
add esi, 0x24
inc ebx
cmp bx, 6
jl 0x46ee91
mov ecx, edi
call fcn.0046eee0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 8

Function at 0x46ff30
Capabilities:
Packed with generic packer

Disassembly:
mov al, byte [0x4eb00c]
push esi
test al, al
mov esi, ecx
je 0x470069
cmp dword [esi], 0
je 0x470069
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x470069
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x470069
push eax
call dword [sym.imp.mss32.dll__AIL_sample_buffer_ready_4]
cmp eax, 0xffffffff
je 0x470069
mov ecx, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1a0]
shl ecx, 0xf
add ecx, edx
mov edx, dword [esi + 0x1b0]
push 0x8000
push ecx
push eax
push edx
call dword [sym.imp.mss32.dll__AIL_load_sample_buffer_16]
mov eax, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x1a4]
push 0x8000
shl eax, 0xf
add eax, edx
mov edx, dword [esi + 0x1ac]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0046fcc0
mov ecx, dword [esi + 0x1a8]
mov dword [esi + ecx*4 + 0x1b4], eax
mov edx, dword [esi + 0x1a8]
mov eax, dword [esi + edx*4 + 0x1b4]
test eax, eax
jne 0x470053
jmp loc.008d71d0
mov eax, dword [esi + 0x1a8]
xor edx, edx
inc eax
mov ecx, 3
div ecx
mov dword [esi + 0x1a8], edx
pop esi
ret
Function at 0x4700e0
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [0x795608]
push esi
test eax, eax
je 0x470163
mov al, byte [0x797df0]
test al, al
mov al, byte [0x797df4]
je 0x4700fc
test al, al
je 0x470163
jmp 0x8d7210
pop esi
ret
Function at 0x481cf0
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0xcc
mov eax, dword [0x7975a0]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
jne 0x481e1c
push str.colours.uib
lea eax, [esp + 0x10]
push str.UI_data_s
push eax
call fcn.004b0670
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push 0x4db9b4
push ecx
call fcn.0042ba50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x481e1c
push esi
push 1
push 4
push 0x7975a4
call fcn.0042bb60
mov edx, dword [0x7975a4]
add esp, 0x10
lea eax, [edx*4]
push str.CUIManager::LoadBinaryUIData___gColourTable
push eax
call fcn.0044f4d0
mov dword [0x7975a0], eax
mov eax, dword [0x7975a4]
add esp, 8
xor edi, edi
test eax, eax
jbe 0x481e13
push 8
call fcn.004b06e0
mov ecx, dword [0x7975a0]
add esp, 4
lea edx, [esp + 8]
push esi
push 1
push 2
push edx
mov dword [ecx + edi*4], eax
call fcn.0042bb60
mov eax, dword [esp + 0x18]
add esp, 0x10
and eax, 0xffff
push str.CUIManager::LoadBinaryUIData___gColourTable___id_str_len
push eax
call fcn.0044f4d0
mov ecx, dword [0x7975a0]
add esp, 8
mov edx, dword [ecx + edi*4]
push esi
mov dword [edx], eax
mov ecx, dword [0x7975a0]
mov eax, dword [esp + 0xc]
mov edx, dword [ecx + edi*4]
and eax, 0xffff
push eax
push 1
mov eax, dword [edx]
push eax
call fcn.0042bb60
mov ecx, dword [0x7975a0]
add esp, 0x10
mov edx, dword [ecx + edi*4]
push esi
push 1
add edx, 4
push 4
push edx
call fcn.0042bb60
mov eax, dword [0x7975a4]
add esp, 0x10
inc edi
cmp edi, eax
jb 0x481d83
push esi
call fcn.0042bb40
add esp, 4
mov eax, dword [0x7975a8]
test eax, eax
jmp 0x8d3f90

Function at 0x482690
Capabilities:
Get disk information

Disassembly:
mov al, byte [0x797e30]
sub esp, 0x68
test al, al
push ebx
push ebp
push esi
push edi
mov dword [0x7984b0], 0x482620
je 0x4826b4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov dl, byte [esp + 0x7c]
mov al, byte [0x513520]
neg dl
sbb edx, edx
mov cl, byte [0x513521]
and edx, 0x13
mov byte [esp + 0x10], al
inc edx
mov byte [esp + 0x11], cl
mov esi, edx
mov byte [esp + 0x12], 0x5c
mov eax, esi
dec esi
test eax, eax
mov byte [esp + 0x13], 0
je 0x482770
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
call ebp
cmp eax, 5
jne 0x48274e
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0x64
lea eax, [esp + 0x28]
push edx
push eax
call edi
test eax, eax
je 0x48274e
push 1
push str.Dune2000CDLabel
call fcn.0048dc10
add esp, 4
push eax
call fcn.0048dcc0
add esp, 8
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004bcb20
add esp, 8
test eax, eax
je 0x482766
push 0x1f4
call ebx
mov edx, esi
dec esi
test edx, edx
jne 0x4826fc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x68
ret
Function at 0x492000
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x49202f
push str.GetVersionEx_..__error
push str.IsWindowsNTMachine__
call fcn.0042b590
add esp, 8
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x492048
cmp dword [esp + 4], 5
jb 0x492048
xor al, al
add esp, 0x94
ret
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
add esp, 0x94
ret

Function at 0x4927c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x154
mov eax, dword [esp + 0x158]
push edi
push eax
lea ecx, [esp + 0x5c]
push str.control.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
xor edx, edx
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [esp + 0x10], edx
add esp, 0xc
mov word [esp + 0x44], ax
mov dword [esp + 0x40], eax
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], edx
push eax
push ecx
push edx
push edx
push 0x4000000
push edx
push edx
mov dword [esp + 0x2c], edx
push edx
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x154
ret
Function at 0x49e3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push esi
mov byte [esp + 0x28], 1
mov al, byte [edi + 0x4c]
mov cl, byte [edi + 0x4d]
mov dl, byte [edi + 0x2c]
mov byte [esp + 0x14], al
mov byte [esp + 0x18], cl
mov byte [esp + 0x20], dl
call fcn.004a4660
mov ecx, dword [esp + 0x20]
add esp, 4
and ecx, 0xff
mov edx, ecx
shl edx, 3
sub edx, ecx
mov cl, byte [eax + edx*8 + 0x26321]
cmp cl, 2
lea ebp, [eax + edx*8 + 0x262ec]
setne al
dec eax
xor edx, edx
and eax, 4
add eax, 4
mov byte [esp + 0x18], al
mov eax, dword [0x5173f4]
mov ebx, dword [esp + 0x18]
and ebx, 0xff
div ebx
test edx, edx
jne 0x49e6a3
mov dl, byte [edi + 0x4d]
mov al, byte [edi + 0x4c]
mov ebx, edx
and ebx, 0xff
mov dword [esp + 0x18], ebx
mov ebx, eax
mov eax, dword [esp + 0x18]
and ebx, 0xff
mov eax, dword [eax*4 + 0x547df0]
add eax, ebx
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x517df4]
test eax, 0x3f8
je 0x49e49a
cmp cl, 1
je 0x49e4a6
test eax, 0x3e8
je 0x49e4e5
cmp cl, 2
jne 0x49e4e5
mov dl, byte [edi + 0x2b]
inc dl
mov al, dl
mov byte [edi + 0x2b], dl
cmp al, 0x28
jbe 0x49e4cf
cmp byte [ebp + 0x35], 1
jne 0x49e4cf
push 0x16
push edi
call fcn.0049deb0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp al, 0x50
jbe 0x49e6a3
mov byte [ebp + 3], 0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [edi + 0x2b], 0
mov al, byte [ebp + 8]
xor cl, cl
cmp al, 0xfe
mov byte [esp + 0x18], cl
jne 0x49e511
inc cl
mov byte [esp + 0x18], cl
mov eax, dword [esp + 0x18]
mov ebx, eax
and ebx, 0xff
cmp byte [ebx + ebp + 8], 0xfe
je 0x49e4f6
jmp 0x49e515
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ebx, [eax + ebp]
mov al, byte [eax + ebp + 8]
cmp al, 0xff
je 0x49e69a
jmp 0x8d3990
mov byte [esp + 0x24], 0
mov byte [ebp + 3], 0
mov al, byte [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4a3b50
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
shr ecx, 0x14
shr edx, 0x14
add ecx, edx
cmp ecx, 0x1e
jae 0x4a3b9b
push 0x1400000
call fcn.004b0e30
add esp, 4
test eax, eax
jne 0x4a3b92
xor al, al
add esp, 0x20
ret
push eax
call fcn.004b0ee0
add esp, 4
mov al, 1
add esp, 0x20
ret
Function at 0x4a3bb0
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x4eb038
push 0x4eb038
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
cmp eax, ebx
je 0x4a3be0
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
call ebp
mov eax, dword [esp + 0x54]
mov byte [0x7984b4], bl
push eax
mov byte [0x7984b8], bl
call fcn.008da66c
mov esi, dword [esp + 0x50]
add esp, 4
mov dword [0x7984f0], esi
mov dword [esp + 0x20], 8
push 0x66
push esi
mov dword [esp + 0x2c], 0x8dab2c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 4
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x4eb038
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x4eb038
push 0x4eb038
call edi
cmp eax, ebx
je 0x4a3c6e
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
call ebp
mov al, byte [0x4eb008]
push ebx
push esi
cmp al, bl
push ebx
push ebx
je 0x4a3cda
jmp 0x8d7550
mov edx, dword [0x4eb024]
mov eax, dword [0x4eb020]
add edx, 0x32
push edx
push eax
push ebx
push ebx
push 0x10cf0000
push 0x4eb038
push 0x4eb038
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
mov dword [0x7984ec], eax
call dword [sym.imp.USER32.dll_ShowCursor]
call fcn.004a3b50
test al, al
jne 0x4a3d33
push ebx
push str.Dune_2000
push 2
call fcn.008d8a14
add esp, 4
push eax
push ebx
call fcn.008d7418
nop
push 1
call ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push esi
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x54], 8
jae 0x4a3d87
push ebx
push str.Dune_2000
push ebx
call fcn.008d8a14
add esp, 4
push eax
push ebx
call fcn.008d7418
nop
push 1
call ebp
call fcn.004a3b30
test al, al
je 0x4a3da1
mov edx, dword [0x798620]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
call ebp
mov al, byte [0x7984e4]
mov esi, 0x1e0
cmp al, bl
je 0x4a3db5
mov dword [0x4eb024], esi
jmp 0x8d7570
Function at 0x4a61d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x4a61f6
xor al, al
jmp 0x4a6378
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x190]
push edx
call fcn.004b2b60
add esp, 4
test eax, eax
je 0x4a6376
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 5
jne 0x4a6352
lea ecx, [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x190]
push edx
call fcn.004a637c
add esp, 8
push str.DUNE2000
lea eax, [ebp - 0x188]
push eax
call fcn.004b2ad0
add esp, 8
test eax, eax
jne 0x4a6352
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x198], 0
mov byte [ebp - 0x19c], 0
push str.CDFS
lea ecx, [ebp - 0x144]
push ecx
call fcn.004bcb20
add esp, 8
test eax, eax
je 0x4a62af
xor al, al
jmp 0x4a6378
push str.BUBBA
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
je 0x4a62e0
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
xor al, al
jmp 0x4a6378
mov edx, dword [ebp - 0x190]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004b29e0
add esp, 8
push 0x4eb404
lea ecx, [ebp - 0x104]
push ecx
call fcn.004b29f0
add esp, 8
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.004a63d5
add esp, 0x10
cmp dword [ebp - 0x198], 0xa2800
jbe 0x4a6343
mov byte [ebp - 0x19c], 1
jmp 0x4a634a
mov byte [ebp - 0x19c], 0
mov al, byte [ebp - 0x19c]
jmp 0x4a6378
mov eax, dword [ebp - 0x190]
push eax
call fcn.004b2b60
add esp, 4
mov ecx, dword [ebp - 0x190]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x190], edx
jmp 0x4a6202
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4a637c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x88
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b2be0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
push 0x40
mov eax, dword [ebp + 0xc]
add eax, 0x48
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x44
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4a63d5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
je 0x4a6501
mov edx, dword [ebp - 0x140]
and edx, 0x10
test edx, edx
je 0x4a64c5
push 0x4eb408
lea eax, [ebp - 0x114]
push eax
call fcn.004bcb20
add esp, 8
test eax, eax
je 0x4a64c3
push 0x4eb40c
lea ecx, [ebp - 0x114]
push ecx
call fcn.004bcb20
add esp, 8
test eax, eax
je 0x4a64c3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.004b29e0
add esp, 8
lea ecx, [ebp - 0x248]
push ecx
call fcn.004b2b60
add esp, 4
mov byte [ebp + eax - 0x249], 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.004b29f0
add esp, 8
push 0x4eb410
lea ecx, [ebp - 0x248]
push ecx
call fcn.004b29f0
add esp, 8
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.004a63d5
add esp, 0x10
jmp 0x4a64e2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a64fc
jmp 0x4a6501
jmp 0x4a63f5
mov esp, ebp
pop ebp
ret

Function at 0x4b1900
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x8cd550]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4b191f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x8cd54c], 1
mov byte [0x8cd548], bl
jne 0x4b1979
mov ecx, dword [0x8cead0]
test ecx, ecx
je 0x4b1967
mov esi, dword [0x8ceacc]
sub esi, 4
cmp esi, ecx
jb 0x4b1967
mov eax, dword [esi]
test eax, eax
je 0x4b1960
call eax
mov ecx, dword [0x8cead0]
sub esi, 4
cmp esi, ecx
jae 0x4b1952
push 0x4d9040
push 0x4d9038
call fcn.004b19b0
add esp, 8
push 0x4d904c
push 0x4d9044
call fcn.004b19b0
add esp, 8
test ebx, ebx
jne 0x4b19a0
push ebp
mov dword [0x8cd550], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4b25b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4b25c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b25c9
xor eax, eax
test eax, eax
je 0x4b25da
push eax
call fcn.004b7950
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4b25e0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4b25fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b25fe
xor eax, eax
test eax, eax
je 0x4b260f
push eax
call fcn.004b7950
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4b67a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x8cdaa0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4b694d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x8cd9a0]
lea edi, [ecx*4 + 0x8cd9a0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4b694d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4b680e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4b681f
push 2
push ebp
push eax
call fcn.004b69c0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b697e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4b68c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4b687a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4b6867
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4b684a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b696f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4b68c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4b6846
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b693e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b6912
cmp eax, 5
jne 0x4b68fb
mov dword [0x8cd50c], eax
mov dword [0x8cd508], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004b7950
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4b6932
cmp byte [ebp], 0x1a
jne 0x4b6932
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x8cd508], 0x1c
jmp 0x4b6957
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x8cd508], 9
pop edi
pop esi
pop ebp
mov dword [0x8cd50c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4b68c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b69af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4b68c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4b68c9