joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407473
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7fc
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x5a4], ax
lea eax, [ebp - 0x5a2]
push eax
mov dword [ebp - 0x7f8], esi
call sub.MSVCR100.dll_memset
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str._s.
lea eax, [ebp - 0x5a4]
push 0x103
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x7f4]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7fc], eax
test eax, eax
je 0x4075e1
push ebx
push edi
mov ebx, 0x4282c8
mov edi, 0xc7
lea eax, [ebp - 0x7c8]
push 0x4282c4
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x4075c4
lea eax, [ebp - 0x7c8]
push 0x4282bc
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x4075c4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call sub.MSVCR100.dll_memset
push 0x103
lea eax, [ebp - 0x7c8]
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0x18
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
call sub.MSVCR100.dll_memset
cmp dword [ebp - 0x7f4], 0x10
lea eax, [ebp - 0x39c]
push eax
push dword [ebp - 0x7f8]
lea eax, [ebp - 0x194]
push ebx
push edi
push eax
jne 0x4075b2
call esi
lea eax, [ebp - 0x194]
push eax
call fcn.00407473
add esp, 0x24
jmp 0x4075c4
call esi
add esp, 0x20
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x7f4]
push eax
push dword [ebp - 0x7fc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4074f6
pop edi
pop ebx
push dword [ebp - 0x7fc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x7f8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.00421350
leave
ret
Function at 0x40760c
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40762e
xor eax, eax
jmp 0x40779e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40768e
push ebx
test al, 0x10
je 0x407688
call fcn.004072e5
pop ecx
test eax, eax
jne 0x407680
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40768e
lea eax, [ebp - 0xcc]
push eax
call fcn.004073eb
pop ecx
test eax, eax
je 0x40768e
lea eax, [ebp - 0xcc]
push eax
push ebx
call fcn.00407386
pop ecx
pop ecx
test eax, eax
je 0x40768e
push ebx
call fcn.00407473
jmp 0x40768d
xor eax, eax
inc eax
jmp 0x40779e
call fcn.0040729f
pop ecx
push edi
push ebx
mov byte [ebp - 0xcd], 0
call dword [sym.imp.MSVCR100.dll_wcslen]
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
pop ecx
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x407796
push esi
push 2
pop ecx
mov esi, ebx
cmp edi, ecx
jle 0x40771a
push 0x5c
pop edx
cmp word [ebx], dx
jne 0x40771a
cmp word [ebx + 2], dx
jne 0x40771a
lea esi, [ebx + 4]
jmp 0x4076de
cmp ax, dx
je 0x4076ed
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x4076d7
jmp 0x4076ed
cmp ax, dx
je 0x4076f7
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x4076e8
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
push dword [ebp - 0xd4]
call dword [sym.imp.MSVCR100.dll_wcsncpy]
mov ecx, dword [ebp - 0xd4]
add esp, 0xc
xor eax, eax
mov word [ecx + edi*2], ax
mov byte [ebp - 0xcd], 1
cmp word [esi], 0
jmp 0x40772b
cmp ax, 0x5c
je 0x407738
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x407727
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
push dword [ebp - 0xd4]
call dword [sym.imp.MSVCR100.dll_wcsncpy]
mov eax, dword [ebp - 0xd4]
xor ecx, ecx
mov word [eax + edi*2], cx
xor edi, edi
push edi
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 0x14
test eax, eax
je 0x40777a
push edi
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407781
cmp word [esi], di
jne 0x407721
jmp 0x407788
mov byte [ebp - 0xcd], 0
push dword [ebp - 0xd4]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
pop esi
movzx eax, byte [ebp - 0xcd]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret
Function at 0x4077ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004018a7
pop ecx
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.supplyinfo
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
push edi
push 0x4257c8
push str.supplyid
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00421350
leave
ret

Function at 0x407873
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x407898
xor eax, eax
jmp 0x407935
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push str.SoftwareTencentQQPhoneManager
push SysReAllocString
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40791a
mov eax, 0x208
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push str.ChannelId
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40790e
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x407932
push dword [ebp + 0xc]
push edi
call fcn.004077ab
pop ecx
pop ecx
jmp 0x407935
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421350
leave
ret
Function at 0x4079c1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, 0x4369a8
push dword [ebp + 8]
mov ecx, esi
call fcn.004116bd
mov ecx, esi
pop esi
pop ebp
jmp 0x414913
push 8
mov eax, 0x423bab
call fcn.00421412
mov esi, ecx
push str.CReportInetSession::SendBugReportSecond_enter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
cmp byte [esi + 0x70], bl
je 0x41499c
push 0x436718
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.004040ca
lea edi, [esi + 0x64]
push edi
lea eax, [esi + 0x68]
push eax
push dword [esi + 0x60]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0041241a
test al, al
je 0x414991
push dword [edi]
lea eax, [esi + 0x6c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
mov ecx, esi
call fcn.00414290
test al, al
je 0x414991
cmp dword [ebp - 0x14], 0xc8
jne 0x414982
mov bl, 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
mov al, bl
jmp 0x41499e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
xor al, al
call fcn.004214ea
ret

Function at 0x4079e0
Capabilities:
Print debug messages

Disassembly:
mov ecx, 0x4369a8
jmp 0x4149a4
push 8
mov eax, 0x423bab
call fcn.00421412
mov esi, ecx
push str.CReportInetSession::SendBugReportFullDump_enter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [esi + 0x70], 0
je 0x414a20
cmp byte [esi + 0x75], 0
je 0x414a20
and dword [ebp - 0x14], 0
push 0x436718
lea ecx, [ebp - 0x10]
call fcn.004040ca
push dword [esi + 0x64]
and dword [ebp - 4], 0
lea eax, [esi + 0x6c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30e9e
mov ecx, esi
call fcn.00414290
test al, al
je 0x414a15
cmp dword [ebp - 0x14], 0xc8
jne 0x414a15
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
mov al, 1
jmp 0x414a22
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401171
xor al, al
call fcn.004214ea
ret
Function at 0x4079ea
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x190
lea eax, [ebp - 0x1f8]
push eax
mov ecx, esi
call fcn.004070cc
push 0x64
lea eax, [ebp - 0x68]
push 0x20
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [ebp + eax - 0x68], 0
push edi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x1f8]
push eax
push str._s_0x_08X__s_s_r_n
lea eax, [ebp - 0x5f8]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
mov edi, eax
add esp, 0x1c
test edi, edi
jle 0x407aad
push 2
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x5fc]
push eax
push edi
lea eax, [ebp - 0x5f8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x5fc], edi
je 0x407aad
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret 4
Function at 0x407bd0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], edi
cmp dword [esi + 0x20], ebx
jne 0x407d3a
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x80
push 4
push ebx
push 3
mov ebx, 0x40000000
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x407c78
and dword [ebp - 0x228], 0
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xc800
jb 0x407c78
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 3
push ebx
push dword [ebp - 0x220]
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407d2e
push 2
xor edi, edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
mov dword [esi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.
push esi
call fcn.00407b1e
movzx eax, word [ebp - 0x20e]
push str.19:19:17
push str.Sep_21_2017
push eax
movzx eax, word [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
push str.Log_at:__04u__02u__02u__02u:_02u:_02u:_03u__compiled:__s__s
push esi
call fcn.00407b1e
lea eax, [ebp - 0x20c]
push eax
push edi
push str.PID:__04u__Exe:__s
push esi
call fcn.00407b1e
add esp, 0x44
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret 4

Function at 0x4084cd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4227ae
call fcn.00421412
xor esi, esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
push 0x436718
mov dword [ebp - 4], esi
call fcn.004040ca
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push esi
push str.SoftwareTencentQQPhoneManager
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408556
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x428590
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40854d
push dword [ebp - 0x14]
push 0x427ce8
push dword [ebp + 8]
call fcn.00401557
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
call fcn.004214ea
ret
Function at 0x408d35
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422a12
mov eax, dword fs:[0]
push eax
mov eax, 0x121c
call fcn.00421610
mov eax, dword [0x43674c]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
push 0xffc
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x1224]
push esi
push eax
mov dword [ebp - 0x1228], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x1000
lea eax, [ebp - 0x1228]
push eax
push dword [ebp - 0x224]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x408eee
test dword [ebp - 0x228], 0xfffffffc
mov dword [ebp - 0x220], esi
jbe 0x408eee
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x220]
push dword [ebp + eax*4 - 0x1228]
push dword [ebp - 0x224]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x408ec3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401652
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.00408409
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401d11
push esi
push str.ANDROIDSERVER
lea ecx, [ebp - 0x21c]
call fcn.00402957
cmp eax, 0xffffffff
je 0x408eb1
push esi
push str.SDKCLIENT.DLL
lea ecx, [ebp - 0x21c]
call fcn.00402957
cmp eax, 0xffffffff
je 0x408e7f
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00401530
push esi
push str.CONNECTUI.DLL
lea ecx, [ebp - 0x21c]
call fcn.00402957
cmp eax, 0xffffffff
je 0x408ea3
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00401530
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x408eb1
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x408ee0
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401171
mov eax, dword [ebp - 0x228]
inc dword [ebp - 0x220]
shr eax, 2
cmp dword [ebp - 0x220], eax
jb 0x408dcf
jmp 0x408eee
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401171
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.00421350
leave
ret
Function at 0x408f08
Capabilities:
Write file on windows

Disassembly:
push 0x1a4
mov eax, 0x422a50
call fcn.0042147b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push str..txt
push ecx
push eax
lea eax, [ebp - 0x1a4]
push eax
mov dword [ebp - 0x1a8], esi
call fcn.00402b52
add esp, 0x14
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x1a4]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1a8], eax
cmp eax, 0xffffffff
je 0x40902b
mov edi, dword [edi]
push 0xffffffffffffffff
lea eax, [ebp - 0x1b0]
push edi
push eax
mov dword [ebp - 0x1ac], esi
call fcn.0041a0ba
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x1ac]
push eax
push 3
push 0x428628
push dword [ebp - 0x1a8]
mov byte [ebp - 4], 1
call edi
push esi
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x1b0]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x1a8]
call edi
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp - 0x1a4]
call fcn.00414aac
add esp, 0xc
mov ecx, 0x436a24
test eax, eax
jns 0x408ffa
push str.g_ac
jmp 0x409001
lea eax, [ebp - 0x1a0]
push eax
call fcn.00401530
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
push eax
call fcn.00401382
pop ecx
mov ecx, dword [ebp - 0x1b0]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.00401171
jmp 0x409037
push 0x4257c8
mov ecx, ebx
call fcn.00401652
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
call fcn.00401171
mov eax, ebx
call fcn.004214fe
ret

Function at 0x40904d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x42863c
mov ecx, esi
call fcn.00401530
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4090b5
push 0x4257c8
mov ecx, edi
call fcn.00401652
jmp 0x409115
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4090f5
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004020a5
push 0x425a34
mov ecx, esi
call fcn.004020a5
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4090ce
test ebx, ebx
je 0x409104
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00401382
add eax, 0x10
pop ecx
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret
Function at 0x40a58e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x436bf0
mov edi, 0x2b8
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.004216fa
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40a619
push edi
push ebx
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x40a555
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x40a607
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a607
push 0x2b4
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
cmp edi, ebx
je 0x40a619
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a8bf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40a8ec
test byte [ebp + 0x10], 2
jne 0x40a8ec
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0xfffbff00
add eax, 0x40100
jmp 0x40a8f1
mov eax, 0x40101
pop ebp
ret 0xc
Function at 0x40acc3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4241c9
call fcn.00421412
mov esi, ecx
and dword [ebp - 0x10], 0
push 0x436718
lea ecx, [ebp - 0x10]
call fcn.004040ca
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40ad1c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.004013e0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402904
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00401382
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00401171
mov eax, edi
call fcn.004214ea
ret 8

Function at 0x40b990
Capabilities:
Read .ini file

Disassembly:
push 0x438
mov eax, 0x422de1
call fcn.0042147b
xor eax, eax
push 0x422
mov word [ebp - 0x434], ax
xor ebx, ebx
lea eax, [ebp - 0x432]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x212
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x434]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
jne 0x40b9ee
xor eax, eax
jmp 0x40bb26
xor ecx, ecx
push 0x208
mov word [eax + 2], cx
lea eax, [ebp - 0x434]
push str.bugreport.ini
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
push 0x8000
call fcn.0042129f
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x434]
push eax
push 0x4000
push esi
push 0x4289e4
mov dword [ebp - 0x440], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x40bb1c
cmp word [esi], bx
je 0x40bb1c
push esi
lea ecx, [ebp - 0x438]
call fcn.00401652
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], ebx
call fcn.0040ae33
mov ecx, eax
call fcn.0040abf4
push ebx
push 0x4289e0
lea ecx, [ebp - 0x438]
call fcn.00402957
mov edi, eax
cmp edi, 0xffffffff
je 0x40baef
mov eax, dword [ebp - 0x438]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401c57
mov ebx, eax
push edi
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.00402a19
push eax
mov ecx, 0x436ae0
mov byte [ebp - 4], 2
call fcn.0040b8d4
push ebx
mov ecx, eax
call fcn.00401d11
mov ecx, dword [ebp - 0x444]
add ecx, 0xfffffff0
call fcn.00401171
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff0
call fcn.00401171
xor ebx, ebx
mov ecx, dword [ebp - 0x438]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401171
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
lea esi, [esi + eax*2 + 2]
pop ecx
cmp word [esi], bx
jne 0x40ba49
mov esi, dword [ebp - 0x440]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
call fcn.004214fe
ret