joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b0f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00467b90
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046d228
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e744
test eax, eax
je 0x43b20c
mov ecx, dword [esp + 0x3c]
call fcn.0046d255
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b1d0
push edi
mov ecx, esi
call fcn.0046a8b6
mov ecx, esi
call fcn.0043b370
cmp dword [esp + 0x38], 1
jne 0x43b205
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046a9f1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43dc20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dc53
push esi
call fcn.00440d20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dc4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43dcd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43dcc2
mov eax, dword [esi + 8]
test eax, eax
je 0x43dc77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43dcbe
cmp eax, 2
je 0x43dcc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dc6a
cmp eax, 3
je 0x43dc9d
cmp eax, 1
jne 0x43dc6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dc6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dc6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dd00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43dce8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dd00
add esp, 4
pop esi
ret
Function at 0x44ff40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44ff8c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44ff8c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44ff76
push eax
call ebp
test ax, ax
jl 0x44ff84
inc esi
add edi, 4
cmp esi, 6
jb 0x44ff68
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044fc40
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x453d80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x453de0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x453de0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x453de0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x453de0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x453df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x468985
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4689bd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00466a3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00466a14
jmp 0x4689c9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46a073
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46a0b5
call fcn.0046fcba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a0b5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a0ac
xor eax, eax
jmp 0x46a0bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a0c3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4701ea
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x470218
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470236
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470150
jmp 0x470236
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470236
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470150
test edi, edi
mov eax, edi
jne 0x470220
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401db0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40eab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [esp + 8], 0
call sub.BaseLib.dll_class_StringAllocator____stdcall_BrtStringAllocator_void_
lea esi, [eax + 0x14]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x401e0c
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401a50
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test esi, esi
jne 0x401e20
xor eax, eax
jmp 0x401e2e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e25
sub eax, edx
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
add esi, 0xfffffff0
push esi
call fcn.004019e0
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi]
lea eax, [ecx + 4]
add esp, 4
cmp esi, eax
mov dword [esp + 0x14], 0xffffffff
jne 0x401e64
mov eax, dword [esi + 0xc]
test eax, eax
jge 0x401e7c
jmp 0x401e74
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401e7c
mov ecx, dword [esi]
mov edx, dword [ecx]
push 1
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402750
Capabilities:
Create thread
Suspend thread
Terminate process
Terminate thread

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov dword [esp + 0xc], str.apl.bin
mov dword [esp + 0x10], 0x410558
mov dword [esp + 0x14], 0x410544
call fcn.004010c0
push str.upfiles_
push 0x415510
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
push 0x4151e4
push 0x415510
call esi
push str._apl
push 0x415510
call esi
mov dword [esp + 0x34], 0x415510
call fcn.00401180
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
call fcn.00409bd0
mov ebx, dword [sym.imp.MSVCR71.dll__beginthreadex]
push 0
push 0
mov esi, eax
push esi
push 0x402580
push 0
push 0
call ebx
push esi
mov edi, eax
call fcn.00409b4a
add esp, 0x38
test eax, eax
jne 0x402826
push esi
call fcn.00409b5d
add esp, 4
test eax, eax
je 0x402811
push esi
call fcn.00409b82
add esp, 4
test eax, eax
je 0x402811
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
push esi
push 0x4010a0
push 0
push 0
call ebx
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x40b650
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, dword [ebp + 8]
push 0x80
push edi
call fcn.0040b5f4
mov esi, eax
cmp esi, 0xffffffff
pop ecx
pop ecx
jne 0x40b697
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40b6ad
push 0x120089
push edi
call fcn.0040b610
push 0
push edi
call fcn.0040b5f4
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x40b6ad
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
push esi
jne 0x40b6b3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
test al, 1
je 0x40b6eb
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call esi
test eax, eax
jne 0x40b6e8
push 0x120116
push edi
call fcn.0040b610
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
and eax, 0xfffffffe
push eax
push edi
call esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40b6af

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

Disassembly:
push ebp
lea ebp, [esp - 0x66c]
sub esp, 0x6ec
mov eax, dword [0x4153c0]
push ebx
mov ebx, dword [ebp + 0x674]
push esi
mov dword [ebp + 0x668], eax
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.0040b650
push 0x41
push ebx
call fcn.0040b610
mov edi, dword [sym.imp.MSVCR71.dll_wcscpy]
lea eax, [ebp - 0x78]
push ebx
push eax
call edi
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
lea eax, [ebp - 0x78]
push 0x410b14
push eax
call esi
add esp, 0x20
lea eax, [ebp + 0x418]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x40b852
cmp word [ebp + 0x444], 0x2e
jne 0x40b793
cmp word [ebp + 0x446], 0
je 0x40b80b
cmp word [ebp + 0x446], 0x2e
jne 0x40b793
cmp word [ebp + 0x448], 0
je 0x40b80b
lea eax, [ebp + 0x1d0]
push ebx
push eax
call edi
lea eax, [ebp + 0x1d0]
push 0x410b10
push eax
call esi
lea eax, [ebp + 0x444]
push eax
lea eax, [ebp + 0x1d0]
push eax
call esi
add esp, 0x18
test byte [ebp + 0x418], 0x10
je 0x40b7d6
lea eax, [ebp + 0x1d0]
push eax
call fcn.0040b6f5
pop ecx
jmp 0x40b807
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1d0]
push eax
call fcn.0040b650
lea eax, [ebp + 0x1d0]
push 0x1f01ff
push eax
call fcn.0040b610
add esp, 0x10
lea eax, [ebp + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b849
lea eax, [ebp + 0x418]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b767
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x668]
pop edi
pop esi
pop ebx
call fcn.0040d4b1
add ebp, 0x66c
leave
ret
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b833
Function at 0x40b856
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4153c0]
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x19c]
call fcn.0040b650
test eax, eax
pop ecx
pop ecx
je 0x40b939
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
mov edi, dword [ebp - 0x7c]
and edi, 0x10
je 0x40b8a2
push dword [ebp + 0x19c]
call ebx
jmp 0x40b8b4
test byte [ebp - 0x7c], 0x40
jne 0x40b8bd
push dword [ebp + 0x19c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b8bd
xor eax, eax
inc eax
jmp 0x40b937
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
push dword [ebp + 0x19c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x40b935
mov eax, dword [ebp - 0x80]
and word [eax - 2], 0
lea eax, [ebp - 0x78]
push 0x41
push eax
call fcn.0040b610
cmp dword [ebp + 0x1a0], 0
mov eax, dword [ebp - 0x80]
pop ecx
pop ecx
mov word [eax - 2], 0x5c
je 0x40b917
test byte [ebp - 0x7c], 0x50
je 0x40b917
lea eax, [ebp - 0x78]
push eax
call fcn.0040b6f5
pop ecx
jmp 0x40b937
test edi, edi
je 0x40b923
lea eax, [ebp - 0x78]
push eax
call ebx
jmp 0x40b937
test byte [ebp - 0x7c], 0x40
jne 0x40b935
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40b937
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x190]
call fcn.0040d4b1
add ebp, 0x194
leave
ret

Function at 0x40b98d
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x3c
and dword [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_wcsrchr]
push esi
push edi
mov edi, dword [esp + 0x50]
push 0x1f0089
push edi
call fcn.0040b610
push 0
push edi
call fcn.0040b5f4
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x40b9ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40ba6c
xor ebx, ebx
inc ebx
cmp esi, 0xffffffff
je 0x40b9ff
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
push esi
je 0x40ba66
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [esp + 0x18], 0x50
jne 0x40ba0e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ba0c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ba0e
xor ebx, ebx
cmp dword [esp + 0x10], 0
jne 0x40ba70
test ebx, ebx
jne 0x40ba74
push 0x5c
push edi
call ebp
push 0x2f
push edi
mov dword [esp + 0x20], eax
call ebp
add esp, 0x10
cmp dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jb 0x40ba3c
lea eax, [esp + 0x10]
mov esi, dword [eax]
test esi, esi
je 0x40ba59
and word [esi], 0
push 1
push edi
call fcn.0040b98d
test eax, eax
pop ecx
pop ecx
mov word [esi], 0x5c
je 0x40ba6c
mov dword [esp + 0x10], 1
jmp 0x40b9a2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ba88
test ebx, ebx
je 0x40ba6c
cmp dword [esp + 0x54], 0
je 0x40ba85
push 0x44
push edi
call fcn.0040b610
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x40bcd8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x40f551
call fcn.0040d7e8
push ecx
mov eax, 0x2080
call fcn.0040d820
mov eax, dword [0x4153c0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, 0x120089
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.0040b94c
test eax, eax
pop ecx
pop ecx
je 0x40bd2d
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2080], eax
jne 0x40bd34
xor eax, eax
jmp 0x40be33
lea ecx, [ebp - 0x2084]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2088], eax
mov dword [ebp - 0x207c], esi
mov dword [ebp - 4], esi
call fcn.0040ca67
mov eax, dword [ebp - 0x2088]
mov dword [ebp - 0x2074], eax
mov eax, dword [ebp - 0x2084]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x2070], eax
cmp dword [ebp - 0x2070], esi
ja 0x40bd85
cmp dword [ebp - 0x2074], esi
jbe 0x40be04
lea eax, [ebp - 0x2074]
push eax
lea eax, [ebp - 0x2090]
push eax
mov dword [ebp - 0x2090], 0x2000
mov dword [ebp - 0x208c], esi
call fcn.0040bbde
mov eax, dword [eax]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x2078]
push ecx
push eax
mov dword [ebp - 0x2078], eax
lea eax, [ebp - 0x206c]
push eax
push dword [ebp - 0x2080]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40be04
push dword [ebp - 0x2078]
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040ca8b
mov eax, dword [ebp - 0x2078]
xor ecx, ecx
add edi, eax
adc ebx, ecx
sub dword [ebp - 0x2074], eax
sbb dword [ebp - 0x2070], ecx
jmp 0x40bd75
lea ecx, [ebp - 0x6c]
call fcn.0040caae
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.0040bcb7
mov dword [ebp - 0x207c], 1
push dword [ebp - 0x2080]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x207c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040d4b1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be64
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push 0x410b2c
push dword [esp + 0x14]
mov dword [esp + 0x10], ecx
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
jne 0x40be8b
xor eax, eax
jmp 0x40bf30
push ebp
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push ebx
push esi
call edi
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push ebx
push ebx
push esi
mov ebp, eax
call edi
mov ebx, dword [sym.imp.MSVCR71.dll_malloc]
push ebp
call ebx
push ebp
mov edi, eax
call ebx
add esp, 0x24
test edi, edi
mov ebx, eax
je 0x40bf16
test ebx, ebx
je 0x40bf16
push esi
push ebp
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, ebp
push esi
jne 0x40bf17
call dword [sym.imp.MSVCR71.dll_fclose]
push ebp
push edi
push ebx
call fcn.0040cbcb
add esp, 0x10
mov esi, eax
test esi, esi
push edi
jge 0x40befc
mov esi, dword [sym.imp.MSVCR71.dll_free]
call esi
push ebx
call esi
pop ecx
pop ecx
jmp 0x40bf2c
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [esp + 0x14]
and dword [eax + 4], 0
mov dword [eax + 0xc], ebx
mov dword [eax + 8], esi
xor eax, eax
pop ecx
inc eax
jmp 0x40bf2e
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov esi, dword [sym.imp.MSVCR71.dll_free]
push edi
call esi
push ebx
call esi
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4
Function at 0x40c583
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x40c5b5
push 2
push 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x40c67f
mov dword [ebp - 4], ebx
push esi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jbe 0x40c651
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40c683
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x40c626
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp dword [esi], edi
lea ebx, [eax + 8]
jbe 0x40c615
add esi, 4
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40c60f
mov eax, dword [ebp + 0x10]
inc edi
add esi, 8
cmp edi, dword [eax]
jb 0x40c5f7
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
cmp edi, dword [esi]
jae 0x40c624
movzx eax, word [eax + 2]
add dword [ebp - 0xc], eax
xor ebx, ebx
jmp 0x40c642
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x40c642
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x40c683
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jb 0x40c5c8
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x40c68e
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0xc]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 2
push esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x40c5b9
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c67c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40c67e
Function at 0x40c70c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push 1
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x40c73e
xor eax, eax
jmp 0x40c7e2
push esi
push edi
xor eax, eax
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x40c764
push 2
push 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x40c7d5
cmp dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp - 8], ebx
jbe 0x40c7d2
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40c7d5
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x40c7c7
cmp dword [esi], 0
mov dword [ebp - 0xc], ebx
lea ebx, [eax + 8]
jbe 0x40c7c5
lea edi, [esi + 4]
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40c7ba
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add edi, 8
cmp eax, dword [esi]
jb 0x40c79e
jmp 0x40c7c5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
or dword [eax], ecx
xor ebx, ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jb 0x40c774
xor ebx, ebx
inc ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40ca67
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx], 0
and dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x40cbcb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4153c0]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0x10
mov dword [ebp - 4], eax
jl 0x40ccc9
push ebx
push edi
push 0x744
call dword [sym.imp.MSVCR71.dll_srand]
mov eax, dword [ebp + 0xc]
lea eax, [eax + esi - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR71.dll_memcpy
mov ebx, dword [ebp + 8]
lea eax, [esi - 0x10]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x40cc46
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.MSVCR71.dll_rand]
imul eax, edi
xor edx, edx
push 0xf
pop ecx
div ecx
mov ecx, dword [ebp + 0x10]
lea eax, [edi + ebx]
mov cl, byte [ecx + eax]
mov dl, byte [ebp + edx - 0x14]
xor cl, dl
mov byte [eax], cl
inc edi
lea eax, [esi - 0x10]
cmp edi, eax
jl 0x40cc1d
push 0x10
lea eax, [ebx + esi - 0x10]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
xor eax, eax
movzx ecx, byte [eax + 0x410b98]
mov dl, byte [ebp + eax - 0x14]
inc eax
cmp eax, 0x10
mov byte [ebp + ecx - 0x24], dl
jb 0x40cc59
lea ecx, [ebp - 0x7c]
call fcn.0040ca67
mov edi, 0x410b88
push edi
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.0040ca8b
add esi, 0xfffffff0
push esi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040ca8b
lea ecx, [ebp - 0x7c]
call fcn.0040caae
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040bcb7
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR71.dll_memcmp
add esp, 0xc
test eax, eax
pop edi
pop ebx
jne 0x40ccc9
mov eax, esi
jmp 0x40cccc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040d4b1
leave
ret