joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024f1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 1], 0
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x4025c9
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x130], esi
call sub.KERNEL32.dll_Process32First
jmp 0x402558
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x40255e
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40253a
jmp 0x402564
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40256d
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x4025c1
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x4025a2
cmp dword [ebp - 0x128], edi
je 0x4025a8
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402587
jmp 0x4025c1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.0041c3c0
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc

Function at 0x4026b9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x4027a4
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push 0x42c1e0
push eax
call fcn.004114da
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x42c608], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x42c608
je 0x402794
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40275e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402789
cmp byte [ebp + 0xc], bl
jne 0x402789
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push 0x42c6c8
push eax
call fcn.0041c368
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.004114da
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x40272d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8
Function at 0x4027ab
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push 0x42c71c
mov dword [esi], eax
setne al
push eax
call fcn.004114da
push dword [esi]
call fcn.0041bde5
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40281c
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x40281c
mov bl, 1
push 0x42c6dc
push ebx
call fcn.004114da
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40292a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor ecx, ecx
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], ecx
mov edi, dword [eax + 0x28]
mov dword [ebp + 0xc], ecx
mov dword [esi + 0xc], edi
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
cmp eax, ecx
mov dword [ebp + 8], eax
jbe 0x402991
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
cmp ecx, eax
jae 0x402975
mov eax, ecx
mov ebx, dword [edx + 0xc]
cmp edi, ebx
jb 0x402983
lea ecx, [ebx + eax]
cmp edi, ecx
jb 0x4029a8
inc dword [ebp + 0xc]
add edx, 0x28
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x402969
push 0x42c788
push 0
call fcn.004114da
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
sub edi, ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov ecx, dword [edx + 0x14]
add ecx, edi
sub eax, edi
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.004028bd
test al, al
je 0x4029ea
mov edi, 0x80
push 0x42c758
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.004114da
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x4029ed
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x4029a1

Function at 0x402a7f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x42c7f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402ad9
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x434f44
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x402ad9
cmp dword [ebp - 4], 8
jne 0x402ad9
mov eax, esi
jmp 0x402adb
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x402adf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x42c7f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402b3c
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402b38
cmp dword [ebp - 4], 8
jne 0x402b38
xor eax, eax
inc eax
jmp 0x402b3e
xor eax, eax
jmp 0x402b3e
xor al, al
pop esi
leave
ret 4

Function at 0x40364c
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x4282f0]
fnstsw ax
test ah, 0x41
je 0x40367e
call fcn.004071f1
test al, al
jne 0x40367e
push 0
push 0x42cbcc
push 0x42cb80
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00403dd9
call fcn.00401006
mov ecx, eax
call fcn.0040117b
test al, al
jne 0x40367c
call fcn.00401006
mov ecx, eax
call fcn.0040103b
mov ecx, esi
call fcn.004036b4
test al, al
je 0x40367c
mov ecx, esi
pop esi
jmp fcn.00403840
Function at 0x4036b4
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0041c310
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403732
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cc68
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403835
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.004148c8
push eax
call esi
push eax
call edi
test eax, eax
jne 0x40378e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cc34
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403835
push dword [ebp - 8]
mov edi, 0x42cc2c
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c368
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cc20
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cc10
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push 0x42c620
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403839
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cbdc
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x40383b
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403dd9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x4350e8]
call edi
call fcn.00401006
mov ecx, eax
call fcn.00401a76
mov ebx, eax
test ebx, ebx
je 0x403e83
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x403e2f
cmp dword [esi + 0xc], 0
je 0x403e83
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x403e83
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x403e5d
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x403e5d
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x403e5d
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x403e83
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.0041c310
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40409c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401006
mov ecx, eax
call fcn.00402a38
fld dword [ebp + 8]
fcomp dword [0x4282f0]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x4040c6
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00402d2a
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x4040c8
call fcn.00404125
mov esi, eax
test esi, esi
je 0x404104
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00402d7f
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401006
mov ecx, eax
call fcn.00402adf
pop edi
pop esi
leave
ret
Function at 0x404c8f
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x4350e8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404d21
mov dword [ebp - 4], eax
call fcn.004073a9
test eax, eax
jle 0x404d3a
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.004073c0
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.004073a9
cmp dword [ebp - 4], eax
jl 0x404cd1
pop edi
jmp 0x404d3a
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x4350e8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x405103
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x42cde8
lea eax, [ebp - 0x210]
push 0x42cf00
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405178
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x42cef0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405178
cmp dword [ebp - 4], eax
setne al
mov byte [0x4350dc], al
leave
ret
Function at 0x4053c1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x40540e
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x40540e
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42cf40
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x405441
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x405441
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42cf04
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x405489
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4054f8
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x4054ed
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00427740
pop ecx
test eax, eax
pop ecx
je 0x4054ff
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4054c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x4054fa

Function at 0x405503
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.004071f1
test al, al
je 0x405536
lea eax, [esp]
push 0x400
push eax
call fcn.00407498
pop ecx
test al, al
pop ecx
jne 0x405536
push 0x42cf84
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405538
xor al, al
add esp, 0x400
ret
Function at 0x405bec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c57
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405c29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405c57
push ebx
call fcn.0041ca22
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x405c20
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x405c5b
xor al, al
jmp 0x405c76
push ebx
push dword [ebp + 8]
call fcn.00405a8b
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041c939
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4066f4
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d26c
push dword [ebp + 8]
call fcn.0041cc44
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x4067af
push 2
push edi
push esi
call fcn.0041d07c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041d07c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041cf65
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041d07c
push esi
call fcn.0041cde3
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041cf65
add esp, 0x48
push edi
push edi
push esi
call fcn.0041d07c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, 0x42d240
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x4067b6
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x4067b6
push esi
call fcn.0041cb5a
pop ecx
xor al, al
jmp 0x40689e
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4067de
push esi
call fcn.0041cb5a
pop ecx
xor bl, bl
jmp 0x406891
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x4067f4
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041cf65
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406872
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x4067e5
push esi
call fcn.0041cb5a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d1b0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406879
movzx eax, word [ebp - 2]
push esi
push 0x42d220
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x40687d
xor bl, bl
jmp 0x40687f
push esi
call fcn.0041cb5a
pop ecx
xor bl, bl
jmp 0x406888
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4068c6
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x4068e5
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x348]
push 0x42d2cc
push eax
call fcn.0041c1e0
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4069c0
test byte [ebp - 0x140], 0x10
jne 0x4069aa
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c1e0
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x244]
push eax
call fcn.004068c6
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4069aa
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406934
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x4069cd
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x348]
push 0x42d2d8
push eax
call fcn.0041c1e0
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406aae
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c1d0
lea eax, [ebp - 0x104]
push 0x42c458
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041c1e0
lea eax, [ebp - 0x218]
push 0x42d2d4
push eax
call fcn.0041d140
add esp, 0x20
test eax, eax
je 0x406a98
lea eax, [ebp - 0x218]
push 0x42d2d0
push eax
call fcn.0041d140
pop ecx
test eax, eax
pop ecx
je 0x406a98
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406a92
call fcn.004069cd
jmp 0x406a97
call fcn.004068c6
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x40789e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4078cc
push esi
call fcn.0040a786
cmp dword [esi + 0x40], 0
pop ecx
je 0x4078c5
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x40793e
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407930
mov eax, dword [esi + 8]
test eax, eax
je 0x4078ed
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x40792c
cmp eax, 2
je 0x407930
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4078e2
cmp eax, 3
je 0x407911
cmp eax, 1
jne 0x4078e2
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4078e2
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4078e2
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x40795c
cmp eax, 0xcc
je 0x40795c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00407965
pop ecx
pop esi
ret