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

Disassembly:
mov eax, 0x429190
call fcn.004272c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42bf84
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.004025a5
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004025a5
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.004025a5
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004025a5
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.004025a5
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42bf4c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41193c
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x429286
call fcn.004272c0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x42bf84
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.004025a5
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004025a5
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004025a5
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi], 0x42bfec
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41199e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4292b9
call fcn.004272c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00411a11
push dword [esi + 0x24]
call fcn.004020c6
push dword [esi + 0x18]
call fcn.004020c6
push dword [esi + 0xc]
call fcn.004020c6
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42bfb8
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x412e66
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42954c
call fcn.004272c0
sub esp, 0x320
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.004025a5
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x412ed3
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.00412d22
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00412dc2
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402748
push dword [ebp - 0x58]
call fcn.004020c6
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.004020c6
pop ecx
pop ecx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402a3b
lea ebx, [eax + 1]
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
call fcn.004084a4
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.004025e8
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00412e08
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00412e08
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402678
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004028ba
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040292d
lea ecx, [ebp - 0x18]
call fcn.004028ba
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040292d
lea ecx, [ebp - 0x18]
call fcn.004028ba
cmp byte [esi + 1], 0
je 0x412faf
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.004054f2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040292d
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004020c6
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42c0a4
call fcn.00402969
push 0
lea edx, [ebp - 0x78]
lea ecx, [esi + 0x10]
call fcn.004052f1
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402969
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x32c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x413006
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x32c]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.004020c6
push dword [ebp - 0x34]
call fcn.004020c6
push dword [ebp - 0x4c]
call fcn.004020c6
push dword [ebp - 0x28]
call fcn.004020c6
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413171
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x429584
call fcn.004272c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.004025a5
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.004025a5
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.004025a5
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.00413207
lea ecx, [esi + 0x9c]
call fcn.004261f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414bad
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4297fc
call fcn.004272c0
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.004137cd
push 1
mov ecx, esi
call fcn.00414124
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0041007e
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.004020c6
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x50]
call fcn.00414d43
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00414d43
lea eax, [esi + 0x1e4]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1ac], ebx
lea ebx, [esi + 0x1b4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00414d74
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00414d74
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x414cc7
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x203], 1
jne 0x414cbd
push 0x42c1bc
lea ecx, [ebp - 0x50]
call fcn.00402846
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x414cf2
cmp byte [ebp - 0xd], 0
jne 0x414d08
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x203], 1
je 0x414d21
cmp dword [ebp - 0x34], ebx
jne 0x414ceb
push 0x42c1bc
lea ecx, [ebp - 0x38]
call fcn.00402846
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x414d21
cmp byte [esi + 0x136], 0
jne 0x414d21
mov ecx, esi
mov byte [esi + 0x135], 1
call fcn.00415111
jmp 0x414d2a
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00413686
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41572c
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret 0xc
Function at 0x4200d0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x3e4
push ebp
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4200fe
cmp dword [esp + 0xc], 6
jne 0x4200fe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420128
push str.SetDefaultDllDirectories
push 0x42b6b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420128
push 0xc00
call eax
test eax, eax
jne 0x4201dc
lea ecx, [esp + 0x11c]
push 0x106
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4201dc
cmp eax, 0x104
ja 0x4201dc
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x11a], 0x5c
je 0x420174
mov word [esp + ebp*2 + 0x11c], 0x5c
inc ebp
mov esi, dword [str.UXTHEME]
cmp byte [esi], 0
je 0x4201dc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, byte [esi]
inc esi
movsx cx, al
test al, al
mov word [esp + ebp*2 + 0x124], cx
je 0x4201b8
lea ecx, [esp + ebp*2 + 0x126]
mov al, byte [esi]
inc esi
movsx dx, al
mov word [ecx], dx
add ecx, 2
test al, al
jne 0x4201a7
lea eax, [esp + 0x124]
push str..dll
push eax
call edi
lea ecx, [esp + 0x124]
push 8
push 0
push ecx
call ebx
cmp byte [esi], 0
jne 0x42018d
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3e4
ret
Function at 0x423982
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x4239eb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x423a2c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x423a11
mov ecx, ebx
call fcn.00423670
add ebx, 0x28
dec ebp
jne 0x423a05
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x423a27
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.004235a0
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00423ad0
mov ebx, eax
cmp ebx, edi
jne 0x423a8f
lea ecx, [ebp + 0x20]
call fcn.00426140
mov ebx, eax
cmp ebx, edi
jne 0x423a8f
lea ecx, [ebp + 0x1c]
call fcn.00426140
mov ebx, eax
cmp ebx, edi
jne 0x423a8f
push ebp
call fcn.00423b20
mov ebx, eax
cmp ebx, edi
je 0x423aa4
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00423b00
cmp ebx, edi
jle 0x423a9f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x423aa4
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x423ab6
cmp dword [esi + 0x40], edi
jne 0x423ab6
cmp dword [esi + 0x3c], edi
jne 0x423ab6
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x425b00
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x426000
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x426035
jmp 0x426020
and edi, 0x3f
jne 0x42602b
push esi
call fcn.00425b40
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x426020
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.00425b40
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x426057
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x426100
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x426128
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426137
mov eax, 1
ret 4
Function at 0x402f30
Capabilities:
Check mutex on windows
Create thread
Delete registry key

Disassembly:
push ebx
push esi
push edi
push 0x401f44
xor esi, esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402f5f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push 0x401ed8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x403382
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 0x1f4
push ebp
call ebx
push esi
push esi
push esi
push 0x403219
push esi
push esi
call edi
push 0x7d0
call ebx
call fcn.004061bb
push esi
push esi
push esi
push 0x4034b6
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x4062f0
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x40448f
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x4061c0
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x403e13
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x404208
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x4047f0
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x4049c1
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x40573c
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x40530a
push esi
push esi
call edi
push 0x1388
call ebx
push esi
push esi
push esi
push 0x405cae
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x405cf2
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x405690
push esi
push esi
call edi
push ebp
call ebx
push esi
push esi
push esi
push 0x40638e
push esi
push esi
call edi
pop ebp
push 0xc350
call ebx
jmp 0x40307c
Function at 0x403085
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x401f54
lea edi, [ebp - 0xc]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
movsw word es:[edi], word [esi]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, 0x128
mov ebx, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40310f
lea edi, [esi + 0x24]
lea eax, [ebp - 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4030ef
test cl, cl
je 0x4030eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4030ef
inc eax
inc eax
inc edi
inc edi
test cl, cl
jne 0x4030cd
xor eax, eax
jmp 0x4030f4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4030bc
push dword [esi + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4030bc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40311b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push 0x401f64
push dword [ebp + 8]
call sub.MSVCRT.dll_fopen
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40318a
push 0x401f60
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x40318a
test byte [esi + 0xc], 0x10
push esi
jne 0x40317d
push 1
lea eax, [ebp - 0x104]
push 1
push eax
call sub.MSVCRT.dll_fread
push ebx
push 1
lea eax, [ebp - 0x104]
push 1
push eax
call sub.MSVCRT.dll_fwrite
add esp, 0x20
jmp 0x403150
call sub.MSVCRT.dll_fclose
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40318e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4031ba
test cl, cl
je 0x4031b6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4031ba
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x403198
xor eax, eax
jmp 0x4031bf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403216
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040311b
push 0x401fa0
push 0x401f90
call sub.MSVCRT.dll_fopen
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push 0x401f68
push dword [ebp + 0x14]
call sub.MSVCRT.dll_sprintf
push esi
push dword [ebp + 0x14]
call sub.MSVCRT.dll_fputs
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x2c
push 0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call sub.MSVCRT.dll_exit
pop esi
pop ebp
ret
Function at 0x403bfa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
call fcn.00403a52
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
push edi
call esi
test eax, eax
je 0x403ddb
push edi
call fcn.00403b4e
push edi
mov dword [ebp - 0xc], eax
call fcn.00403b65
push edi
mov dword [ebp - 8], eax
call fcn.00403b7c
push edi
mov dword [ebp - 4], eax
call fcn.00403b93
add esp, 0x10
mov edi, eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403ddb
push dword [ebp - 8]
call esi
test eax, eax
je 0x403ddb
push edi
call esi
test eax, eax
je 0x403ddb
push dword [ebp - 4]
call esi
test eax, eax
je 0x403ddb
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, 0x104
lea ecx, [ebp - 0x21c]
push edi
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x21c]
push 0x402248
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403d17
lea eax, [ebp - 0x118]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [0x407f80]
lea eax, [ebp - 0x118]
push eax
push 0x406f04
call fcn.00403baa
add esp, 0xc
test eax, eax
jne 0x403ddb
lea eax, [ebp - 0x118]
push eax
call fcn.00403bdb
pop ecx
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403ddb
push dword [ebp - 8]
call esi
test eax, eax
je 0x403ddb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
mov edi, 0xb1
push ebx
push edi
push dword [ebp - 4]
call esi
push ebx
push ebx
push 0x301
push dword [ebp - 4]
call esi
push ebx
push ebx
push edi
push dword [ebp - 4]
call esi
push 0xffff
push ebx
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xb0
push dword [ebp - 4]
call esi
push ebx
push 0xffff
push edi
push dword [ebp - 0xc]
call esi
push 0x4011d0
push ebx
push 0xc2
push dword [ebp - 0xc]
call esi
push ebx
push ebx
push 0xf5
push dword [ebp - 8]
call esi
push ebx
push ebx
push 0x201
push dword [ebp - 8]
call esi
push ebx
push ebx
push 0x202
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x10]
push 0xffff
dec eax
push eax
push edi
push dword [ebp - 4]
call esi
push ebx
push ebx
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret