joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10008d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esi + 0x14], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile_1
push 0x1000c4c0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
push 0
push 0x4000
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CStdioFile::Open
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
call dword [edx + 0x60]
test eax, eax
je 0x10001603
mov eax, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0xc]
call dword [eax + 0x60]
test eax, eax
jne 0x100015df
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x10001ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10008e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov al, byte [edi + 0x40]
test al, al
jne 0x10001ce1
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
xor ecx, ecx
cmp word [esp + 0x2c], cx
mov dword [esp + 0x1c], ecx
jge 0x10001cfb
mov dword [esp + 0x2c], ecx
mov ebp, dword [esp + 0x24]
cmp ebp, ecx
jne 0x10001d2a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
je 0x10001e7d
cmp dword [ebx + 8], ecx
je 0x10001e7d
mov ax, word [esp + 0x30]
cmp ax, cx
jl 0x10001e53
cmp ax, 3
jg 0x10001e53
push esi
lea esi, [edi + 0x18]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetSize
mov ecx, edi
call fcn.10006360
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
jle 0x10001da9
lea eax, [esp + 0x34]
push edi
push eax
mov ecx, ebp
call fcn.10001680
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x10001d75
mov ebp, dword [ebp + 8]
cmp ebp, 0x64
mov ebp, dword [esp + 0x14]
jle 0x10001dbc
mov dword [ebp + 0xc], 2
mov ecx, esi
call section..text
mov ecx, dword [ebp + 0x88]
push ecx
mov ecx, esi
call fcn.10001640
lea edi, [ebp + 0x48]
push 0xffffffffffffffff
push 0
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x10001e1c
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, ebx
call fcn.10001680
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x10001de8
mov ax, word [esp + 0x30]
lea ecx, [esp + 0x10]
mov word [ebp + 0xa0], ax
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x10004460
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x40]
test al, al
je 0x1000449e
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__beginthread]
push esi
push 0
push 0x100024b0
mov dword [esi + 0x80], eax
mov byte [esi + 0x40], 0
mov byte [esi + 0x84], 0
call edi
push esi
push 0
push 0x10005190
call edi
add esp, 0x18
pop edi
pop esi
ret 4
Function at 0x10004e40
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
lea ecx, [esp + 0x100]
push ebx
push esi
push edi
push eax
push ecx
call fcn.10001b00
add esp, 8
lea edx, [esp + 0xc]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
add esp, 0x200
ret 8

Function at 0x100052b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push edi
push eax
push 0xf003f
push 0
push str.PerfStatsStartStat
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
je 0x100052e6
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
mov ebp, 4
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x2c], ebp
call esi
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.PerfStatsStatData
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
je 0x10005348
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x2c], ebp
call esi
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.PerfStatsStopStat
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
je 0x1000539d
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x2c], 4
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x100062f0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x40]
test al, al
jne 0x10006301
or eax, 0xffffffff
pop esi
ret 4
mov al, byte [esi + 0x84]
test al, al
je 0x10006314
mov eax, 0xfffffffe
pop esi
ret 4
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__beginthread]
push esi
push 0
push 0x100024b0
mov byte [esi + 0x84], 1
mov byte [esi + 0x40], 0
mov dword [esi + 0x80], eax
call edi
push esi
push 0
push 0x10005190
call edi
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret 4
Function at 0x10007350
Capabilities:
Enumerate processes
Get file system object information
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x100096c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x1000748e
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x10]
mov dword [esp + 0x2a0], 0
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000747a
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push edi
jmp 0x100073c7
mov esi, dword [esp + 0x18]
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x144]
push 0x101
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x148]
push 0x160
push ecx
lea edx, [esp + 0x4c]
push eax
push edx
call ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ac], 1
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x10]
push str.ENFILE.EXE
push ecx
call ebp
add esp, 8
test eax, eax
je 0x10007436
mov edx, dword [esp + 0x10]
push str.ENFI1E.EXE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x10007451
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2ac], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x100073c3
pop edi
pop ebp
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x2a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x298]
pop esi
mov dword fs:[0], ecx
add esp, 0x2a0
ret

Function at 0x100082f0
Capabilities:
Create directory
Create thread
Get common file path

Disassembly:
mov ecx, 0x1000c4e0
jmp fcn.10002030
Function at 0x4068a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x440010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x4068c7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4068ce
mov al, 1
jmp 0x4069a9
call fcn.0040bbc0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040bbc0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040bbf0
add esp, 8
movzx eax, al
test eax, eax
je 0x40690a
xor al, al
jmp 0x4069a9
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.0040d9f0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x406946
cmp dword [ebp - 0x30], 1
je 0x40694d
cmp dword [ebp - 0x30], 3
je 0x40699c
jmp 0x4069a7
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x40697c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00419099
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x40697c
xor al, al
jmp 0x4069a9
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x406990
mov dword [ebp - 0x38], 1
jmp 0x406997
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x4069a9
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x4069a9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f8c1
mov esp, ebp
pop ebp
ret
Function at 0x40c7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x440010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.0040bbc0
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040bbf0
add esp, 8
movzx edx, al
test edx, edx
je 0x40c825
lea eax, [ebp + 8]
push eax
call fcn.0040c610
add esp, 4
jmp 0x40c9a6
mov ecx, dword [ebp - 0x2c]
call fcn.0040cba0
test eax, eax
je 0x40c867
mov ecx, dword [ebp - 0x2c]
call fcn.0040cba0
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040bbd0
cmp esi, eax
jae 0x40c867
lea ecx, [ebp + 8]
push ecx
call fcn.0040d680
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.00409880
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c9a6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x40c87a
call fcn.0040bbc0
jmp 0x40c9a6
mov ecx, dword [ebp - 0x2c]
call fcn.00409970
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x40c8c9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040d680
add esp, 4
movzx ecx, al
push ecx
call fcn.00402fc0
add esp, 8
movzx edx, al
test edx, edx
je 0x40c8b9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x40c8c1
call fcn.0040bbc0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x40c9a6
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0040d680
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.0040c7a0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x40c9a1
cmp dword [ebp - 0x34], 1
jle 0x40c924
cmp dword [ebp - 0x34], 3
je 0x40c971
jmp 0x40c9a1
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x40c956
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.00419099
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40c956
call fcn.0040bbc0
jmp 0x40c9a6
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x40c96a
mov eax, dword [ebp + 8]
jmp 0x40c9a6
call fcn.0040bbc0
jmp 0x40c9a6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.00402fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x40c994
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x40c99c
call fcn.0040bbc0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x40c9a6
call fcn.0040bbc0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f8c1
mov esp, ebp
pop ebp
ret 4
Function at 0x40db50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40db70
jl 0x40db67
cmp dword [ebp + 0xc], 0
ja 0x40db70
xor eax, eax
xor edx, edx
jmp 0x40dca7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40db92
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040dcb0
jmp 0x40dca7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00408920
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40dc01
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004033d0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040c230
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040a3b0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040bf10
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40dc98
mov ecx, dword [ebp - 8]
call fcn.00409970
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40dc71
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00418a93
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40dc6f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40dca7
jmp 0x40dc1d
cmp dword [ebp - 4], 0
jbe 0x40dc98
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00418a93
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422445
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004222bb
Function at 0x42a920
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b105b
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.004a545f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a9a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a2b4b
mov eax, dword [eax]
push 0x556248
push eax
call fcn.00482844
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a56ea
test bl, bl
je 0x42a9a2
push 0x556248
lea ecx, [esp + 0xc]
call fcn.004a5a7a
push 0x559dd4
lea ecx, [esp + 0xc]
call fcn.004a5a7a
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 0x42a9de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a56ea
jmp 0x42aaa9
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 0x42aa62
lea edx, [esp + 0x7c]
push 0x559dd0
push edx
call fcn.00482844
add esp, 8
test eax, eax
je 0x42aa62
lea eax, [esp + 0x7c]
push 0x559dcc
push eax
call fcn.00482844
add esp, 8
test eax, eax
je 0x42aa62
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 0x42a9f2
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.004a56ea
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 0x42b2a0
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 0x42b302
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 0x42b310
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b10db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5622b0]
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 0x42b448
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b376
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a56ea
xor eax, eax
jmp 0x42b4bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a5827
push esi
lea ecx, [esp + 0xc]
call fcn.004a5ab6
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 0x42b49d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0042b2a0
test eax, eax
jne 0x42b49d
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 SysReAllocString
mov ecx, edi
call fcn.0042b2a0
test eax, eax
jne 0x42b49d
lea eax, [esp + 0x14]
push 0x559de8
push eax
call fcn.00483960
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b47c
lea ecx, [esp + 0x14]
push 0x559de4
push ecx
call fcn.004838e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b47c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b47f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a57d7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b38e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a56ea
xor eax, eax
jmp 0x42b4bf
mov byte [esi], 0
push 0x559de0
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.004a56ea
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