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

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x101130f8
push 0x2a2
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.dwFileAttrib_INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
test edi, edi
jne 0x10113143
push 0x2a5
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebx
push str.SetFileAttributes_pFile__dwFileAttrib_
push str._s_return_code:_0x_08X___s.
push eax
call edx
mov eax, edi
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x10113580
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x61c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x229]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x230], bl
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x2e]
push ebx
push ecx
mov word [esp + 0x34], bx
call sub.MSVCR80.dll_memset
movzx edx, word [esi + 0x1c]
push edx
lea eax, [esp + 0x38]
push str.._C:
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x24
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10113645
push 0x321
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push edi
push str.hHandle_INVALID_HANDLE_VALUE
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x101136cf
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x400
xor eax, eax
lea edx, [esp + 0x230]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101136c1
push ebp
push 0x32f
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebp
push str.bResult
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
pop ebp
jmp 0x101136c8
mov ebx, dword [esp + 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x624]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x61c
ret
Function at 0x10113b30
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10113bd8
mov eax, dword [esp]
test eax, eax
je 0x10113bd8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.bklimitblankpassworduse
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10113bd8
cmp dword [esp + 4], eax
je 0x10113bc5
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.limitblankpassworduse
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push str.bklimitblankpassworduse
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x10113be0
Capabilities:
Get hostname
Impersonate user

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0xcc], eax
push esi
push 0xc6
lea eax, [esp + 0xe]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], 0x64
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10113c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1012d370
add esp, 0xd0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
call ebp
xor ecx, ecx
mov ch, al
shr eax, 8
or ecx, eax
cmp ecx, 0x500
je 0x10113c71
call fcn.1007a6c0
push esi
push 0
push 2
push ebx
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
xor ecx, ecx
mov ch, al
shr eax, 8
pop ebp
or ecx, eax
cmp ecx, 0x500
je 0x10113ca4
call fcn.10113b30
mov ecx, dword [esp + 0xd0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1012d370
add esp, 0xd0
ret
Function at 0x10114730
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
push 0x228
lea eax, [esp + 0x18]
push 0
push eax
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, ebx
jne 0x101147ae
push 0x23a
call fcn.10113800
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.hProcessSnap_INVALID_HANDLE_VALUE
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10114879
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x101147fa
push 0x23d
call fcn.10113800
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.Process32First_hProcessSnap__pe32_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10114872
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea eax, [esp + 0x34]
push str.Abspawnhlp.exe
push eax
call esi
add esp, 8
test eax, eax
je 0x10114824
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10114800
jmp 0x1011482d
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x10114862
push 0x248
call fcn.10113800
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push edi
push str.ProcessID__1
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10114872
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x230
ret
Function at 0x10128120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145208
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.10126c50
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.10127840
push eax
push esi
call fcn.101278e0
mov edi, eax
lea eax, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.10126f10
mov esi, eax
call fcn.10126e20
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1012adc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10144cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push edi
push esi
mov dword [esp + 0x3c], 1
call fcn.1012aea0
test al, al
jne 0x1012ae38
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.10126e20
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov eax, esi
call fcn.1012ba30
mov edx, dword [eax]
lea eax, [esp + 0xc]
call fcn.10126eb0
mov eax, esi
call fcn.1012ba30
mov ecx, dword [eax]
mov eax, dword [edi + 4]
sub eax, dword [esi + 0x44]
mov dword [ecx + 0x10], eax
mov eax, esi
call fcn.1012ba30
mov ecx, dword [eax]
mov eax, dword [edi + 8]
sub eax, dword [esi + 0x44]
lea esi, [esp + 0xc]
mov dword [ecx + 0x14], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10126e20
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x1012d370
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10170024]
jne 0x1012d37a
repz ret
jmp fcn.1012d912

Function at 0x1012e3af
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10170024]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1012e2ee
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1012e3fe
cmp dword [ebp - 0x1c], 5
jb 0x1012e416
jmp 0x1012e412
cmp dword [ebp - 0x10], 1
jne 0x1012e416
cmp dword [ebp - 0x1c], 4
ja 0x1012e412
jne 0x1012e416
cmp dword [ebp - 0x18], 0
jbe 0x1012e416
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10146c44
call fcn.1012e1a1
test eax, eax
jge 0x1012e437
mov byte [0x10186f00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1012d370
add ebp, 0x78
leave
ret
Function at 0x10133e10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov byte [ebp - 0x208], 0
push 0x207
push 0
lea eax, [ebp - 0x207]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x208
lea edx, [ebp - 0x208]
push edx
push 0x10146f7e
push 0x101479f8
push 0x10147a00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10133e75
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
call dword [0x10146514]
mov esp, ebp
pop ebp
ret 8

Function at 0x10135310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov byte [ebp - 9], 0
mov dword [ebp - 8], 0
push str.Cache__n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea ecx, [ebp - 4]
call fcn.10136520
push str.wait_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea ecx, [ebp - 4]
call fcn.10136490
push str.lock_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push 0x10147b10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10135396
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push str.Failed_to_open_cachefile__code__d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101353d6
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
test eax, eax
jae 0x101353ca
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push eax
push str.Failed_to_write_data__code__d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101353d6
mov byte [ebp - 9], 1
xor ecx, ecx
jne 0x1013533a
cmp dword [ebp - 8], 0
je 0x101353e9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [ebp - 4]
call fcn.10136450
push str.unlock_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
mov al, byte [ebp - 9]
mov byte [ebp - 0x11], al
lea ecx, [ebp - 4]
call fcn.10136500
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10135420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
push 0x10147aa4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1013546c
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push 0x10147aa8
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101354e9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.1011b4f0
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, ecx
sub eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jl 0x101354dd
jg 0x101354a9
cmp dword [ebp - 0x10], 0
jbe 0x101354dd
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
test eax, eax
jae 0x101354dd
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push eax
push 0x10147acc
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101354e9
mov byte [ebp - 5], 1
xor ecx, ecx
jne 0x10135434
cmp dword [ebp - 4], 0
je 0x101354fc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x101355a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0x10147af4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10135610
jmp 0x10135717
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0xc], 0
jne 0x1013566c
jmp 0x10135717
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test eax, eax
jae 0x1013569b
jmp 0x10135717
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x24]
ja 0x1013570b
jb 0x101356ad
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jae 0x1013570b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
je 0x101356e7
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x24]
jb 0x101356e9
ja 0x101356e7
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x28]
jbe 0x101356e9
jmp 0x1013570b
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1011b560
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x1013569b
mov byte [ebp - 0x19], 1
xor edx, edx
jne 0x101355ec
cmp dword [ebp - 4], 0
je 0x1013572a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov al, byte [ebp - 0x19]
mov esp, ebp
pop ebp
ret 8
Function at 0x10136490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GLOBAL_C5FD4B75_0292_4B34_9408_0B6CFB5FAE48
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x101364d6
push 0x10147bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x101364d6
xor al, al
jmp 0x101364ee
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101364ec
xor al, al
jmp 0x101364ee
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10136570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0xb4]
call eax
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0x5c
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char__unsigned_int_const]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x10136616
mov eax, dword [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.other.ini
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x10136624
push str..other.ini
lea ecx, [ebp - 0x28]
call dword [0x10146514]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
push 0x10147e20
push 0x10147e30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
sete cl
mov byte [ebp - 0x49], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x101368d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a5e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x10136935
mov byte [ebp - 0x241], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x241]
jmp 0x101369e1
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x101369b7
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x101369a0
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x242], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x242]
jmp 0x101369e1
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10136956
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x243], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x243]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c