joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401163
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x691dac
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx + 0x44]
test edx, edx
je 0x4011eb
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInStop]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInReset]
mov dword [ebp - 8], 0
jmp 0x4011ad
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
jge 0x4011cf
push 0x20
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4 + 0x30]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
jmp 0x4011a4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WINMM.dll_waveInClose]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [edx + 0x45]
test eax, eax
je 0x401245
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WINMM.dll_waveOutReset]
mov dword [ebp - 0xc], 0
jmp 0x401216
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x401238
push 0x20
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4 + 0x30]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
jmp 0x40120d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WINMM.dll_waveOutClose]
mov dword [ebp - 4], 0
jmp 0x401257
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 2
jge 0x4012c3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax*4 + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0061d6ce
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4 + 0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0061d6ce
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4 + 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0061d6ce
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax*4 + 0x38]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0061d6ce
add esp, 4
jmp 0x40124e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4013fa
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x401414
xor al, al
jmp 0x40152d
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
push 0x40163c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], eax
push 0x20000
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x46
push ecx
push 0xffff
mov edx, dword [ebp - 0x10]
add edx, 0x18
push edx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40146e
xor al, al
jmp 0x40152d
mov dword [ebp - 0xc], 0
jmp 0x401480
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x4014ed
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + ecx*4 + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4 + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
mov dword [eax + 0x14], 0
push 0x20
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
jmp 0x401477
push 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4 + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x402cb6
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret
Function at 0x404149
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657846
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x44], str.hbturkey
push 0x100
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
push 4
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4041a5
mov ecx, dword [ebp - 0x50]
mov dword [ecx], 0x100
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x60], edx
jmp 0x4041ac
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x2c], eax
push 0x781b64
lea ecx, [ebp - 0x30]
call fcn.006225d4
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x752324
push 0xc
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0xc
push 0xa
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0xa
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x18]
call fcn.00401d70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
push ecx
push 0x752328
lea edx, [ebp - 0x18]
push edx
call fcn.00617593
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00402950
add eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00622996
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.006229e5
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005fc1d0
add esp, 8
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00622566
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00622566
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404a33
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
and eax, 0xff
cdq
mov ecx, 0xf27
idiv ecx
add edx, 0x288
mov byte [ebp - 4], dl
mov dword [ebp - 8], 0
jmp 0x404a64
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x404a91
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
sub dl, byte [ebp - 4]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
xor dl, byte [ebp - 4]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x404a5b
mov esp, ebp
pop ebp
ret
Function at 0x4074a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4074d8
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x5e0c0
push 0x6f4248
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4074fa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x413045
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov dword [ebp - 0x2c], ecx
push 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xb8]
add ecx, 0x24
call fcn.0040274a
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.005fcb60
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x68], esi
mov dword [ecx + 0x6c], edi
mov ecx, dword [ebp - 0x2c]
call fcn.004131fc
mov edx, dword [ebp - 0x2c]
add edx, 0x68
mov eax, dword [ebp - 0x2c]
add eax, 0x60
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4130d1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
je 0x4130e6
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
je 0x4130e6
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov al, byte [edx + 0x70]
test eax, eax
je 0x4130f3
mov ecx, dword [ebp - 0x2c]
call fcn.00413307
jmp 0x4131f6
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x5c
call fcn.00622996
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x413127
jmp 0x4131f6
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], 9
mov ecx, 0x2000
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx], 6
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.005fb2d0
add esp, 0xc
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
add eax, 5
push eax
call fcn.005fb2d0
add esp, 0xc
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jbe 0x4131ec
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xb8]
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0xbc]
call fcn.0041c41b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658e66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0
mov ecx, dword [ebp - 0x138]
add ecx, 0x5c
call fcn.00622996
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x413406
mov eax, dword [ebp + 8]
push eax
push 0x75677c
lea ecx, [ebp - 0x12c]
push ecx
call fcn.005fcbb4
add esp, 0xc
push 0x30
push 0x7567a0
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x138]
call fcn.0061ff13
push 0
push 0
push 0x10
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00622566
mov eax, dword [ebp - 0x130]
jmp 0x413549
mov dword [ebp - 0x20], 0xffffffff
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov edx, dword [ebp - 0x10]
imul edx, ecx
add edx, dword [ebp - 0x24]
xor eax, eax
mov ecx, dword [ebp - 0x138]
mov dword [ecx + 0x60], edx
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00401d70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x138]
push 0
push 0x400
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [eax + 0x60]
push edx
call fcn.005fcab0
push eax
push str._dKB
lea eax, [ebp - 0x1c]
push eax
call fcn.00617593
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401d90
push eax
push 0x3e8
mov ecx, dword [ebp - 0x138]
call fcn.00621902
mov dword [ebp - 0x14], 9
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.005fb270
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 5
push 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
call fcn.005fb2d0
add esp, 0xc
push 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 5
push edx
call fcn.005fb2d0
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0xb8]
push eax
mov ecx, dword [ebp - 0x138]
mov ecx, dword [ecx + 0xbc]
call fcn.0041c41b
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x134], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00622566
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00622566
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x413d08
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
cmp dword [ebp + 0xc], 0xffffffff
jne 0x413d20
mov dword [ebp + 0xc], 0x80
jmp 0x413d28
mov eax, dword [ebp + 0xc]
or al, 0x80
mov dword [ebp + 0xc], eax
push 0x4010
push 0x160
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
mov esp, ebp
pop ebp
ret
Function at 0x416695
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6591a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
mov dword [ebp - 0x364], ecx
mov dword [ebp - 0x154], 0
push 0x104
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.005fb270
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 8]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x4166fc
mov dword [ebp - 0x154], 0x756fdc
jmp 0x416706
mov dword [ebp - 0x154], 0x78253c
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s.
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41674a
xor al, al
jmp 0x41682a
movsx eax, byte [ebp - 0x124]
cmp eax, 0x2e
jne 0x41675b
jmp 0x416805
mov ecx, dword [ebp - 0x150]
and ecx, 0x10
test ecx, ecx
je 0x4167a3
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x756fe8
lea edx, [ebp - 0x35c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp - 0x364]
call fcn.00416695
jmp 0x416805
lea ecx, [ebp - 0x360]
call fcn.00401d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x360]
push ecx
call fcn.00617593
add esp, 0x14
lea edx, [ebp - 0x360]
push edx
mov ecx, dword [ebp - 0x364]
add ecx, 0xa4
call fcn.0041a050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.00622566
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41674a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4184e2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov dword [ebp - 0x30], ecx
push 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x5a0]
add ecx, 0x24
call fcn.0040274a
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.005fcb60
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x84], edi
mov ecx, dword [ebp - 0x30]
call fcn.00417dbc
mov edx, dword [ebp - 0x30]
add edx, 0x80
mov eax, dword [ebp - 0x30]
add eax, 0x78
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x418577
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
je 0x41858c
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 4], 0xffffffff
je 0x41858c
mov edx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [edx + 0x5c]
test eax, eax
je 0x418599
mov ecx, dword [ebp - 0x30]
call fcn.00417be1
jmp 0x4186ab
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x70
call fcn.00622996
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4185cd
jmp 0x4186ab
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], 9
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov edx, 0x2000
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [eax], 5
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
add edx, 1
push edx
call fcn.005fb2d0
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 5
push ecx
call fcn.005fb2d0
add esp, 0xc
mov byte [ebp - 4], 1
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jbe 0x4186a1
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x5a0]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x5a4]
call fcn.0041c41b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4186b1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4186fd
xor al, al
jmp 0x4187ae
movsx ecx, byte [ebp - 0x118]
cmp ecx, 0x2e
je 0x418777
mov edx, dword [ebp - 0x144]
and edx, 0x10
test edx, edx
je 0x41874a
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x7571fc
lea edx, [ebp - 0x34c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x454]
call fcn.004186b1
jmp 0x418777
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4186fd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4187ac
xor al, al
jmp 0x4187ae
mov al, 1
mov esp, ebp
pop ebp
ret 4