joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036c6
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x1e0]
sub esp, 0x260
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1dc], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp + 0xd8]
push eax
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x2c]
push str._s.bat
push eax
call fcn.0042312c
lea eax, [ebp - 0x2c]
push 0x425fc0
push eax
call fcn.0042312c
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.00408778
lea eax, [ebp + 0xd8]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.00408778
lea eax, [ebp + 0xd8]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.00408778
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.00408778
add esp, 0x40
push ebx
call fcn.00408fa6
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004076c0
add esp, 0x10
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4253ac
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x4037e7
mov esi, dword [sym.imp.kernel32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x38]
call esi
push 0xf
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_SetPriorityClass]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_ResumeThread]
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x1dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x1e0
leave
ret

Function at 0x403989
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call fcn.00407290
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40399f
pop esi
ret
inc esi
movsx eax, byte [esi]
push eax
call fcn.0042312c
pop ecx
test eax, eax
jne 0x40399f
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop esi
ret

Function at 0x4039b7
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call fcn.00407290
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4039cd
pop esi
ret
inc esi
movsx eax, byte [esi]
push eax
call fcn.0042312c
pop ecx
test eax, eax
jne 0x4039cd
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x4044dd
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00408e10
mov eax, dword [0x42f180]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x43292c]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x425524
push ebx
push str.title
mov esi, 0x425f40
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x431140
call fcn.0042312c
push dword [0x43292c]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x431580
call fcn.0042312c
push dword [0x43292c]
push 0x50
push 0x4327c0
push ebx
push str.build_info
push esi
call edi
push dword [0x43292c]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x43292c]
mov dword [0x431194], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x43292c]
mov dword [0x431190], eax
push 0xa
push 0x432590
push ebx
push str.target_version
push esi
call edi
push dword [0x43292c]
push 0x50
push 0x4312c0
push ebx
push str.name
push str.metadata
call edi
push dword [0x43292c]
push 0x104
push 0x4311a0
push ebx
push str.install_script
push esi
call edi
push dword [0x43292c]
mov ebp, 0x431550
push 0xa
push ebp
push ebx
push str.user_access_control
push esi
call edi
push 6
mov edi, str.force
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40462b
call fcn.0042312c
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.0042312c
jmp 0x4046cb
push 5
mov edi, str.auto
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404658
call fcn.0042312c
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.0042312c
test eax, eax
je 0x404688
jmp 0x404621
cmp byte [0x431550], al
je 0x404688
push 5
mov edi, str.none
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404688
push eax
push str.oops
push str.Bad_user_access_control_value
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x431140
call fcn.00402766
push eax
mov dword [0x432580], eax
call fcn.0042312c
pop ecx
pop ecx
push dword [0x432814]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x43292c]
test eax, eax
je 0x4046bb
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x432930]
test eax, eax
je 0x4046cb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00407875
add esp, 0x1004
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x42312c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x42313b
pop dword [ebp - 0x2c]
mov eax, 0x42313b
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3a26f
push 0
mov eax, 0x34518dcf
sub eax, 0x340f3bb7
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x391e
xor edx, edx
add edx, eax
mov ebx, 0xc2f654da
sub ebx, 0xc2b300da
add ebx, dword [ebp - 0x2c]
mov esi, 0x1d5b5746
add esi, 0x356da84d
add dword [ebp - 4], esi
mov edi, dword [ebx]
add dword [ebp - 0x14], esi
sub edi, esi
xor dword [ebp - 0x24], 0x2299d383
mov dword [edx], edi
xor dword [ebp - 8], ecx
add edx, 0xe6d6f85
sub edx, 0xe6d6f81
add ebx, 0x52506332
sub ebx, 0x5250632e
loop 0x423191
add eax, 0xd74b
xor ebx, ebx
add ebx, eax
add eax, 0x93dadc80
add eax, 0x6c252385
mov ecx, 0xc6bd807a
add ecx, 0x39827f86
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
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 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10001000
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
jmp 0x100011ae
rdtsc
mov ecx, eax
rdtsc
sub ecx, eax
not ecx
cmp ecx, 0x5000
jg 0x100011be
Function at 0x10001580
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
jmp 0x1000172e
rdtsc
mov ecx, eax
rdtsc
sub ecx, eax
not ecx
cmp ecx, 0x5000
jg 0x1000173e
Function at 0x10001bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 5
ja case.0x10001c0c.1
mov edx, dword [ebp - 4]
jmp dword [edx*4 + 0x10001c79]
mov dword [0x1002a8f0], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x10001c6b
mov dword [0x1002a8fc], 1
jmp 0x10001c75
mov dword [0x1002a8fc], 0
mov esp, ebp
pop ebp
ret
Function at 0x10002d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002d81
cmp dword [ebp - 8], 1
je 0x10002d44
jmp 0x10002da0
push 0
push 0
push 0
push 0x10002d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10002960
push str.ShowWindow
push str.user32.dll
mov ecx, 0x1002a918
call fcn.10001930
jmp 0x10002da0
cmp dword [0x1002a8e8], 0
je 0x10002da0
mov eax, dword [0x1002a8e8]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x1002a8e8], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100211fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xd]
call fcn.10004c10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xd]
call fcn.10004c30
test eax, eax
jne 0x10004fcd
push 0
call dword [sym.imp.MSVCR71.dll_exit]
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR71.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.10004c20
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100057f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.1001d330
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000581b
xor eax, eax
jmp 0x10005899
lea ecx, [ebp - 0xc]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10005897
mov dword [ebp - 8], 0
jmp 0x1000584a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
shr edx, 2
cmp dword [ebp - 8], edx
jae 0x10005897
push 0x104
lea eax, [ebp - 0x1118]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0x1010]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x10005895
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1118]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10005895
mov eax, 1
jmp 0x10005899
jmp 0x10005841
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10005cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x10023570
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10005cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x10023578
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10005d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
movzx edx, cl
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
and eax, 0x8000000f
cmp eax, 5
jne 0x10005d8a
cmp dword [ebp - 0xc], 5
jne 0x10005d8a
cmp dword [ebp - 8], 1
jne 0x10005d8a
mov eax, 1
jmp 0x10005d8c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10006aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0xc], 0
je 0x10006ab5
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp + 8], 0
jne 0x10006ac2
xor eax, eax
jmp 0x10006b98
cmp dword [ebp + 0xc], 0
jne 0x10006b7f
mov dword [ebp - 0xc], 0x200
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 2
cmp edx, dword [ebp - 0xc]
jb 0x10006b65
mov eax, dword [ebp - 0xc]
add eax, 0x200
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 8], eax
jmp 0x10006b07
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
add eax, 2
jmp 0x10006b98
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x10006d1f
mov dword [ebp - 0xc], 0x200
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 2
cmp eax, dword [ebp - 0xc]
jb 0x10006d05
mov ecx, dword [ebp - 0xc]
add ecx, 0x200
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 8], eax
jmp 0x10006caa
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
add eax, 2
jmp 0x10006d34
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov esp, ebp
pop ebp
ret 8
Function at 0x10007110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1000712c
cmp dword [ebp + 0xc], 0
jne 0x10007186
cmp dword [ebp + 0x10], 0
jne 0x1000714d
push 1
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
jmp 0x1000717e
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCR71.dll_strlen
add esp, 4
add eax, 1
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCR71.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x1000725d
mov dword [ebp - 0xc], 0x200
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
jne 0x100071b4
mov dword [ebp - 0x28], 0x100235ff
jmp 0x100071ba
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
cmp ecx, dword [ebp - 0xc]
jb 0x1000725a
mov edx, dword [ebp - 0xc]
add edx, 0x200
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
jne 0x1000722e
mov dword [ebp - 0x2c], 0x10023600
jmp 0x10007234
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 8], eax
jmp 0x100071de
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008c50
Capabilities:
Enumerate process modules
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push edi
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], 0x224
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x1002369c
push 0x100236a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10008cc3
xor eax, eax
jmp 0x10008e41
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1f03ff
call dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10008ce1
xor eax, eax
jmp 0x10008e41
push 0x100236b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10008cfc
xor eax, eax
jmp 0x10008e41
push 0x100236c0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
push 9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [ebp - 4]
cmp dword [ebp - 0x10], 0
je 0x10008e0c
mov edx, dword [ebp + 0x10]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x254], eax
jmp 0x10008d70
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x258]
push eax
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x10008dff
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0xc]
ja 0x10008dfa
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x228]
push eax
push str.dinput8.dll
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10008dbd
mov ecx, dword [ebp + 0xc]
mov dword [0x1002aad4], ecx
lea edx, [ebp - 0x228]
push edx
push str.mswsock.dll
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10008ddb
mov eax, dword [ebp + 0xc]
mov dword [0x1002aad8], eax
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10008dfa
mov dword [ebp - 0x250], 1
jmp 0x10008d57
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x24c], 0
jne 0x10008e28
cmp dword [ebp - 0x250], 0
je 0x10008e32
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret