joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 3
jne 0x409c12
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x41a47c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401ef0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402170
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
mov byte [ebp - 4], 1
call fcn.004010d0
test bl, bl
jne 0x409c03
push esi
sub esp, 8
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00401000
call fcn.00409b20
add esp, 0xc
test al, al
je 0x409c03
push 0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x14]
setne bl
mov byte [ebp - 4], 0
call fcn.004010d0
jmp 0x409c14
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x409c14
mov bl, 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409c40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402170
test eax, eax
je 0x409d31
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409cb8
mov byte [ebp - 4], 0
jmp 0x409d29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x409d10
cmp byte [ebp + 0x10], 0
je 0x409d31
push 0
push 0x41a47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401ef0
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x409d31
cmp byte [ebp + 0x10], 0
je 0x409d31
push 0
push 0x41a47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401ef0
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4194a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a2f1
mov byte [ebp - 0xd], 0
jmp 0x40a346
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x14], 0
test edi, edi
je 0x40a32c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
lea eax, [eax + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a32c
add esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x40a301
cmp esi, edi
jne 0x40a33f
mov eax, dword [ebp + 0x10]
shr edi, 1
xor ecx, ecx
mov byte [ebp - 0xd], 1
mov word [eax + edi*2], cx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a6b0
xor al, al
pop ebx
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x40a6ea
jmp 0x40a6c0
push 0
lea eax, [ebp + 8]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a6ea
add esi, dword [ebp + 8]
cmp esi, edi
jb 0x40a6c0
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
Function at 0x40b930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41984c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [ebp + 8]
push str.kernel32
mov dword [ebp - 0x224], 0
call esi
push str.kernel32
mov ebx, eax
mov dword [ebp - 0x21c], 0
call esi
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x40b9b9
push str.IsWow64Process
push ecx
call eax
mov esi, eax
test esi, esi
je 0x40b9b4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x21c], 0
je 0x40b9f9
test ebx, ebx
je 0x40b9f9
push str.GetSystemWow64DirectoryW
push ebx
call eax
test eax, eax
je 0x40b9f9
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call eax
push 8
call fcn.0040e59c
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
jmp 0x40ba22
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 8
call fcn.0040e59c
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40ba36
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00401070
jmp 0x40ba38
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x42503c], eax
call fcn.00401000
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e615
mov esp, ebp
pop ebp
ret
Function at 0x40bc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198d0
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x41c], edi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x418], 0
call fcn.00402110
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40bd42
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push esi
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x414], 0x400
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x40bd19
push dword [ebp - 0x414]
call fcn.0040e59c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x414]
push eax
push edi
push 0
push 0
lea ecx, [ebp + 0x18]
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40bd08
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
push edi
mov ecx, ebx
call fcn.00401800
push edi
call fcn.0040e610
mov edi, dword [ebp - 0x41c]
add esp, 4
jmp 0x40bd36
cmp esi, 2
je 0x40bd36
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, ebx
call fcn.00401800
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
mov dword [edi], esi
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e615
mov esp, ebp
pop ebp
ret
Function at 0x40bd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41991e
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov dword [ebp - 4], 0
test eax, eax
je 0x40bdca
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
push 0
push 0x41a47c
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp + 8]
call fcn.00401d00
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.00402170
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00402170
cmp esi, eax
jne 0x40be6d
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40be1a
xor bl, bl
jmp 0x40be83
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401070
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.004014e0
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
lea ecx, [ebp + 8]
call fcn.00401820
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
setne bl
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e615
mov esp, ebp
pop ebp
ret 8
Function at 0x41458a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041317e
mov dword [ebp - 0x14], eax
cmp dword [0x425db8], edi
jne 0x41467b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x414608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41475b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41475b
push 0x41d134
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41475b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x425db8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x425dbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x425dc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc8], eax
test eax, eax
je 0x414678
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4146a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414693
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4146b5
push 4
pop eax
jmp 0x41475d
cmp dword [ebp - 0x14], edi
je 0x4146b5
push dword [0x425db8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41469a
mov eax, dword [0x425dc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x414713
cmp dword [0x425dc8], esi
je 0x414713
push eax
call ebx
push dword [0x425dc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414713
test eax, eax
je 0x414713
call ecx
test eax, eax
je 0x414708
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414708
test byte [ebp - 8], 1
jne 0x414713
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x414743
mov eax, dword [0x425dbc]
cmp eax, esi
je 0x414740
push eax
call ebx
test eax, eax
je 0x414740
call eax
mov edi, eax
test edi, edi
je 0x414740
mov eax, dword [0x425dc0]
cmp eax, esi
je 0x414740
push eax
call ebx
test eax, eax
je 0x414740
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x425db8]
call ebx
test eax, eax
je 0x41475b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41475d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e615
leave
ret
Function at 0x10002e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002e89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002e89
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10002e7a
cmp esi, edx
jae 0x10002e89
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10002e68
cmp esi, edx
jae 0x10002e89
cmp word [esi], 0
je 0x10002e89
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10003e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d147
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100551d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x10040a90
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.10003b20
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10012f77
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10003efa
push 1
mov byte [ebp - 4], 2
call fcn.1000b0dd
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10003efc
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100094a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.10005240
mov ecx, eax
call fcn.100033a0
push dword [eax]
push 0xffffffffffffffff
push 0x10040f08
push str.three_end
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100094e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d971
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x244], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100098af
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x100098b6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10009a4e
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x10009a6a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, str.explorer.exe
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
test eax, 0xffff0000
jne 0x100098f7
movzx eax, ax
push eax
call fcn.10009ff0
jmp 0x10009901
push str.explorer.exe
call fcn.1000a5c0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.1000a710
mov dword [ebp - 0x24c], eax
mov esi, dword [ebp - 0x240]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
nop dword [eax]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10025af7
add esp, 8
test eax, eax
jne 0x100099e5
push dword [ebp - 0x234]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100099df
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x100099a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x100099e5
lea eax, [ebp - 0x254]
push eax
call fcn.10009430
mov ecx, dword [ebp - 0x244]
add esp, 4
push dword [ebp - 0x244]
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push ecx
push 0
push eax
lea ecx, [ebp - 0x24c]
call fcn.100091d0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x100099e5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10009940
push ebx
call edi
cmp dword [ebp - 0x248], 0
jbe 0x10009a20
mov eax, dword [ebp - 0x24c]
mov ebx, 1
mov ecx, dword [ebp - 0x244]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
jmp 0x10009a22
xor ebx, ebx
lea ecx, [ebp - 0x24c]
call fcn.10009330
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10009a4c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001e70
int3
Function at 0x10009a80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.10005240
mov ecx, eax
call fcn.100033a0
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10040ed4
push 0x10040ed8
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x210]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009afd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20c]
push eax
call fcn.10029da1
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret

Function at 0x10009c20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.10005240
mov ecx, eax
call fcn.100033a0
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10040ed4
push str.mtime
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x210]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009c9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20c]
push eax
call fcn.10029dcb
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
Function at 0x1000f390
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x1000f39f
pop ebp
jmp fcn.1000fae0
xor eax, eax
pop ebp
ret 0xc