joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43e5a0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00440401
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43e5c3
test byte [esp + 8], 2
je 0x43e5c3
call fcn.00440474
mov dword [eax], 0xd
call fcn.0044047d
mov dword [eax], 5
jmp 0x43e59c
xor eax, eax
ret

Function at 0x444fe5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x464250
cmp edx, dword [eax]
je 0x445007
add eax, 8
inc ecx
cmp eax, 0x4642e0
jl 0x444ff8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x464250]
jne 0x445135
mov eax, dword [0x46eb64]
cmp eax, 1
je 0x44510f
test eax, eax
jne 0x445038
cmp dword [0x4638b4], 1
je 0x44510f
cmp edx, 0xfc
je 0x445135
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44506f
lea eax, [ebp - 0x1a4]
push 0x45bb7c
push eax
call fcn.00444180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043f520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4450b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043f520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45bb78
push edi
call fcn.0043fdf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x45bb5c
push eax
call fcn.00444180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00444190
lea eax, [ebp - 0xa0]
push 0x45bb58
push eax
call fcn.00444190
push dword [esi + 0x464254]
lea eax, [ebp - 0xa0]
push eax
call fcn.00444190
push 0x12010
lea eax, [ebp - 0xa0]
push 0x45bb30
push eax
call fcn.00448b20
add esp, 0x2c
pop edi
jmp 0x445135
lea eax, [ebp + 8]
lea esi, [esi + 0x464254]
push 0
push eax
push dword [esi]
call fcn.0043f520
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x449ef0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x449f90
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x449f42
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x464b74]
xor eax, edx
inc esi
cmp esi, edi
jl 0x449f23
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x449f6b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x464b74]
xor eax, edx
inc esi
cmp esi, edi
jl 0x449f4e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4036fa
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x414054
call fcn.00411100
sub esp, 0x1c
push ebx
push esi
push edi
push 0x41f0c4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
mov dword [ebp - 0x14], esi
je 0x4038d3
and byte [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x1b]
push esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push 8
lea eax, [ebp - 0x1c]
push 1
push eax
call edi
mov eax, dword [ebp - 0x18]
add esp, 0x10
add eax, 0xfffffff8
cmp byte [ebp - 0x1b], 0x57
mov dword [ebp + 8], eax
jne 0x4038cb
cmp byte [ebp - 0x1a], 0x53
jne 0x4038cb
push eax
call sub.MFC42.DLL_operatornew
cmp byte [ebp - 0x1c], 0x43
pop ecx
mov dword [ebp - 0x10], eax
jne 0x4037e2
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 8
push dword [ebp - 0x14]
mov esi, eax
sub esi, 8
call ebx
push esi
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x14]
mov ebx, eax
push esi
push 1
push ebx
call edi
push esi
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp - 0x10]
call fcn.00411520
add esp, 0x40
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
pop ecx
add eax, 0xfffffff8
cmp dword [ebp + 8], eax
je 0x4037ee
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x4038d2
push esi
push dword [ebp + 8]
push 1
push eax
call edi
add esp, 0x10
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
call fcn.0040172d
push dword [ebp - 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.004016ea
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
push 5
lea ecx, [ebp - 0x28]
call fcn.004017a9
add dword [ebp - 0x20], 5
mov ebx, eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040174a
movzx esi, bl
add dword [ebp - 0x20], esi
push ebx
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040174a
add dword [ebp - 0x20], esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
call fcn.0040174a
add dword [ebp - 0x20], esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0040174a
add dword [ebp - 0x20], esi
mov ebx, eax
test byte [ebp - 0x20], 7
je 0x40386d
inc dword [ebp - 0x20]
jmp 0x403862
lea ecx, [ebp - 0x28]
call fcn.004038e9
add dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x28]
call fcn.004038e9
add dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040172d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4038ae
mov eax, dword [ebp - 0x14]
push 0x14
sub eax, edi
pop edi
cdq
idiv edi
mov dword [ecx], eax
mov eax, ebx
sub eax, dword [ebp - 0x10]
cdq
idiv edi
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4038ba
movzx ecx, si
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040172d
push 1
pop eax
jmp 0x4038d5
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4055e7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x408]
xor ebx, ebx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x4056ac
cmp eax, esi
jae 0x4056ac
mov byte [ebp + eax - 0x408], bl
lea eax, [ebp - 0x408]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4056ac
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4056ac
push edi
push esi
lea eax, [ebp - 0x408]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4056a5
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push 0x41f174
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4056a5
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 1
mov ecx, dword [eax + 8]
pop ebx
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
mov edx, dword [eax + 0xc]
mov esi, dword [ebp + 0x14]
shr edx, 0x10
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x405984
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x405998
mov eax, dword [esp + 8]
push 1
pop ecx
cmp eax, ecx
jge 0x40599c
xor eax, eax
jmp 0x4059d5
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
mov dword [esi + 4], edx
mov edx, dword [esp + 0xc]
push eax
push 0
push esi
push 0x405a0f
push 0
push 0
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0xc], eax
test eax, eax
setne cl
mov eax, ecx
mov dword [esi + 0x18], eax
pop esi
ret 0xc

Function at 0x4059d9
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x405a0a
push dword [esi + 8]
and dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405a06
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0xc], 0
push 1
pop eax
pop esi
ret
Function at 0x406256
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x4062b1
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4062b8
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x4062b8
xor eax, eax
jmp 0x40641e
mov eax, dword [ebp - 0x8c]
mov byte [edi], bl
sub eax, ebx
je 0x40638e
dec eax
je 0x40631a
dec eax
jne 0x40639b
cmp dword [ebp - 0x98], 4
ja 0x4062e5
push str.Microsoft_Windows_NT
jmp 0x406393
cmp dword [ebp - 0x98], 5
jne 0x406313
cmp dword [ebp - 0x94], ebx
jne 0x406300
push str.Microsoft_Windows_2000
jmp 0x406393
cmp dword [ebp - 0x94], 1
jne 0x406313
push str.Microsoft_Windows_XP
jmp 0x406393
push str.Microsoft_Windows_XP_later
jmp 0x406393
cmp dword [ebp - 0x98], 4
jne 0x406387
cmp dword [ebp - 0x94], ebx
jne 0x406351
push str.Microsoft_Windows_95
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x43
pop ecx
pop ecx
je 0x40634a
cmp byte [ebp - 0x87], 0x42
jne 0x40639b
push str.OSR2
jmp 0x406393
cmp dword [ebp - 0x94], 0xa
jne 0x406377
push str.Microsoft_Windows_98
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x41
pop ecx
pop ecx
jne 0x40639b
push 0x41f5b0
jmp 0x406393
cmp dword [ebp - 0x94], 0x5a
jne 0x406387
push str.Microsoft_Windows_Me
jmp 0x406393
push str.Microsoft_Windows_Me_later
jmp 0x406393
push str.Microsoft_Win32s
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp - 0x98], 4
mov eax, dword [ebp - 0x90]
ja 0x4063e0
and eax, 0xffff
push eax
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str._Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
jmp 0x40641b
and eax, 0xffff
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push eax
lea eax, [ebp - 0x1a0]
push str._s__Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064a5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x414338
call fcn.00411100
push ecx
mov eax, 0x1188
call fcn.00411300
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], esi
push 1
pop ebx
mov byte [ebp - 4], bl
push 0x10
push esi
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 0x80
push 3
push esi
push ebx
push 0x80000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x11c], edi
cmp edi, 0xffffffff
je 0x40659b
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x118c]
push eax
call fcn.0040ffa6
pop ecx
push esi
lea eax, [ebp - 0x130]
push eax
push 0x1000
lea eax, [ebp - 0x1130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x130], esi
je 0x40657f
push dword [ebp - 0x130]
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x118c]
push eax
call fcn.0040ffe1
add esp, 0xc
jmp 0x40653e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00410b35
pop ecx
pop ecx
push dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x12c]
push eax
call fcn.00406423
add esp, 0xc
mov dword [ebp - 0x1190], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x4065e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40695c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x414344
call fcn.00411100
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x40699d
inc eax
mov byte [eax], bl
push str.BugReport.log
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
add esp, 0xc
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x124], esi
cmp esi, 0xffffffff
je 0x406a12
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408bfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jle 0x408c21
mov cl, byte [eax + esi - 2]
lea edx, [eax + esi]
add cl, byte [edx - 1]
jmp 0x408c29
jne 0x408c27
mov cl, byte [esi]
jmp 0x408c29
xor cl, cl
xor cl, al
xor ebx, ebx
movzx esi, cl
mov al, byte [esi + edi + 0x9c]
movzx eax, al
test eax, eax
mov dword [ebp - 8], eax
jle 0x408c6f
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x28]
push dword [ebp + 8]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + esi]
mov byte [ebp - 1], al
movzx eax, al
mov eax, dword [ecx + eax*4]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x408c79
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x408c41
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
movzx eax, byte [ebp - 1]
jmp 0x408c72

Function at 0x40954c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + ecx + 7]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov eax, dword [edi]
inc esi
mov ebx, dword [eax - 8]
movzx eax, bx
mov word [esi], bx
push eax
push dword [edi]
inc esi
inc esi
mov dword [ebp + 0x10], eax
push esi
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0xc
xor bl, bh
xor eax, eax
cmp dword [ebp + 0x10], edi
jbe 0x4095ad
mov cl, byte [eax + esi]
not cl
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x40959d
add esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
mov dword [esi], ebx
add esi, 4
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0xc], 7
je 0x4095d1
cmp byte [ebp + 0xc], 6
jne 0x4095e8
mov al, bl
xor al, bh
cmp ebx, edi
jbe 0x4095e8
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x4095d9
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40ffa6
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x40c030
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c5fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00460ee1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c0b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ec60
mov eax, dword [eax]
push 0x4a41f0
push eax
call fcn.00451854
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046116c
test bl, bl
je 0x40c0b2
push 0x4a41f0
lea ecx, [esp + 0xc]
call fcn.004614fc
push 0x4a7d6c
lea ecx, [esp + 0xc]
call fcn.004614fc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c0ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046116c
jmp 0x40c1b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c172
lea edx, [esp + 0x7c]
push 0x4a7d68
push edx
call fcn.00451854
add esp, 8
test eax, eax
je 0x40c172
lea eax, [esp + 0x7c]
push 0x4a7d64
push eax
call fcn.00451854
add esp, 8
test eax, eax
je 0x40c172
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c102
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046116c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c9b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ca12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ca20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c67b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ae474]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40cb58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ca86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046116c
xor eax, eax
jmp 0x40cbcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004612a9
push esi
lea ecx, [esp + 0xc]
call fcn.00461538
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40cbad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040c9b0
test eax, eax
jne 0x40cbad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040c9b0
test eax, eax
jne 0x40cbad
lea eax, [esp + 0x14]
push 0x4a7d80
push eax
call fcn.00452890
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb8c
lea ecx, [esp + 0x14]
push 0x4a7d7c
push ecx
call fcn.00452810
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cb8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461259
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ca9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046116c
xor eax, eax
jmp 0x40cbcf
mov byte [esi], 0
push 0x4a7d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046116c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4