joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.00426920
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
push edi
push 0x800
push 0
push eax
call fcn.00492210
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00492210
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x17
lea edi, [ebp - 0x1fa0]
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
nop
movzx ecx, word [ebp + eax - 0x1fa4]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x403350
lea edx, [ebp - 0x804]
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x403372
mov edx, ebx
mov esi, ebx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403386
lea edi, [ebp - 0x1fa4]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4033a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, edx
and ecx, 3
push str.open
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
cmp eax, 0x20
ja 0x4033f0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004281c2
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret 4

Function at 0x403cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x90], 8
lea esi, [edi + 0x7c]
jb 0x403cc8
mov eax, dword [esi]
jmp 0x403cca
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x403d32
lea eax, [edi + 4]
lea ecx, [edi + 0xac]
cmp ecx, eax
je 0x403cef
push 0xffffffffffffffff
push 0
push eax
call fcn.00404af0
cmp dword [esi + 0x14], 8
jb 0x403cf9
mov eax, dword [esi]
jmp 0x403cfb
mov eax, esi
push ebx
push eax
mov ecx, edi
call fcn.00403be0
test eax, eax
jne 0x403d32
cmp dword [esi + 0x14], 8
jb 0x403d12
mov eax, dword [esi]
jmp 0x403d14
mov eax, esi
push 0
push 0
push ebx
push eax
call fcn.004281c2
add esp, 0x10
test eax, eax
je 0x403d32
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
cmp dword [edi + 0xa8], 8
lea eax, [edi + 0x94]
jb 0x403d43
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403d98
lea eax, [edi + 0x1c]
lea ecx, [edi + 0xac]
cmp ecx, eax
je 0x403d65
push 0xffffffffffffffff
push 0
push eax
call fcn.00404af0
cmp dword [esi + 0x14], 8
jb 0x403d6f
mov eax, dword [esi]
jmp 0x403d71
mov eax, esi
push ebx
push eax
mov ecx, edi
call fcn.00403be0
test eax, eax
jne 0x403d98
cmp dword [esi + 0x14], 8
jb 0x403d86
mov esi, dword [esi]
push 0
push 0
push ebx
push esi
call fcn.004281c2
add esp, 0x10
test eax, eax
jne 0x403d26
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x404e20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x64a3a4]
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 ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x4e0]
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 0x5d98a0
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], 0
mov word [ebp - 0x4e0], ax
call fcn.00404c10
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x404ee1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x4e0]
push eax
call fcn.00403e20
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 8
jb 0x405071
inc ecx
push ecx
push dword [ebp - 0x4e0]
lea ecx, [ebp - 0x4e0]
call fcn.00404d60
jmp 0x405071
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x404fc1
xor ebx, ebx
cmp word [ebp - 0x4c8], bx
je 0x404fc1
lea edi, [ebp - 0x4c8]
mov dword [ebp - 0x4e4], ebx
nop word [eax + eax]
push 0x5d9bb4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404fa3
push 0x5d9bbc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404fa3
movzx eax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e4]
push 0x64
movzx eax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405044
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push dword [ebp - 0x4e8]
call fcn.00494e26
add esp, 0xc
test eax, eax
je 0x405005
add ebx, 4
lea edi, [ebp - 0x4c8]
lea eax, [ebx + ebx]
add edi, eax
mov dword [ebp - 0x4e4], eax
cmp word [edi], 0
jne 0x404f20
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 8
jae 0x40505d
mov eax, dword [ebp - 0x4d0]
add eax, 1
je 0x405065
add eax, eax
push eax
lea eax, [ebp - 0x4e0]
push eax
push esi
call fcn.00491050
mov ecx, dword [ebp - 0x4cc]
add esp, 0xc
jmp 0x405065
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00405b40
mov ecx, dword [ebp - 0x4e8]
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00405b40
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.004020b0
lea ecx, [ebp - 0x4e0]
call fcn.0040d0b0
jmp 0x405071
push 0x5d98a0
mov ecx, esi
call fcn.004020e0
lea ecx, [ebp - 0x4e0]
call fcn.0040d0b0
jmp 0x405071
mov eax, dword [ebp - 0x4e0]
mov dword [esi], eax
mov eax, dword [ebp - 0x4d0]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
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.00426902
mov esp, ebp
pop ebp
ret 8
Function at 0x405b90
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x64a3a4]
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 ebx, ecx
lea ecx, [ebp - 0xac]
call fcn.0042b818
cmp dword [ebx + 0x174], 8
lea esi, [ebx + 0x160]
jb 0x405bde
mov eax, dword [esi]
jmp 0x405be0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ce8
cmp dword [esi + 0x14], 8
jb 0x405bf7
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ce8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xb0], eax
inc eax
push eax
mov dword [ebp - 0xb4], eax
call fcn.0042694d
mov edi, eax
add esp, 4
test edi, edi
je 0x405ce8
push dword [ebp - 0xb4]
push 0
push edi
call fcn.00492210
add esp, 0xc
lea eax, [ebp - 0xb8]
push 0
push eax
push dword [ebp - 0xb0]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
push edi
call fcn.0042c419
push edi
call fcn.00426956
add esp, 4
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xac]
push eax
call fcn.0042bc83
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004299a0
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402610
cmp dword [ebp - 0x18], 0
jbe 0x405ce0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
push str.FileMD5
push str.ZGSetting
call fcn.0042b101
lea ecx, [ebp - 0x28]
call fcn.0040d0b0
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.00426902
mov esp, ebp
pop ebp
ret
Function at 0x407710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x407740
lea eax, [esi + 0x2b4]
push eax
push 0
push esi
push 0x4076f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2b0], eax
pop esi
pop ebp
ret 4
call fcn.00407180
pop esi
pop ebp
ret 4

Function at 0x407750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00492210
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00492210
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [esi + 0x114], 8
lea ecx, [esi + 0x100]
jb 0x4077b3
mov ecx, dword [ecx]
lea edx, [ebp - 0x414]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4077c0
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4077e0
mov eax, dword [0x5d9db0]
lea edx, [ebp - 0x20c]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x407800
mov ecx, dword [str.WorthyShop]
lea edi, [ebp - 0x20c]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x5d9dec]
mov dword [edx + 4], ecx
mov ecx, dword [0x5d9df0]
mov dword [edx + 8], ecx
mov ecx, dword [0x5d9df4]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x5d9df8]
mov dword [edx + 0x10], ecx
mov cx, word [0x5d9dfc]
mov word [edx + 0x14], cx
nop dword [eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x407850
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f3c5
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
pop edi
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x407880
mov eax, dword [str.WorthyShop]
mov dword [ecx], eax
mov eax, dword [0x5d9dec]
mov dword [ecx + 4], eax
mov eax, dword [0x5d9df0]
mov dword [ecx + 8], eax
mov eax, dword [0x5d9df4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5d9df8]
mov dword [ecx + 0x10], eax
mov ax, word [0x5d9dfc]
mov word [ecx + 0x14], ax
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4078c6
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x5d9f9c]
mov dword [ecx + 4], eax
mov ax, word [0x5d9fa0]
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.InstallPath
push str.ZGQJCfg
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
push str.InstallPath
call fcn.00407930
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00426902
mov esp, ebp
pop ebp
ret
Function at 0x407930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8068
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x64a3a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
call fcn.0042b6f8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0042b72c
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407a08
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a83
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.WorthyShop
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4079de
push dword [ebp + 0xc]
call esi
jmp 0x407a83
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call esi
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a83
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.WorthyShop
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407a7e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042b70b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8248
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x658288], 0
jne 0x40a15a
call fcn.00409f60
mov ecx, dword [0x658288]
call fcn.00406700
mov edx, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40a184
xor ecx, ecx
jmp 0x40a19f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a190
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404c10
push 0xa
push str.Worthy.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404790
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a1e9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042834a
add esp, 4
lea ecx, [esi - 0x3a4]
call fcn.0044cefb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a209
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret
Function at 0x40bf70
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 8]
push 0
push 0x5d98a0
mov dword [ebp - 0xa38], eax
call fcn.00404c10
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00492210
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x40bfdd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x40c031
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042694d
push esi
mov esi, eax
mov dword [ebp - 0xa34], eax
push 0
push esi
call fcn.00492210
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x40c046
push esi
call fcn.00426956
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5da728]
mov dword [ebp - 0xc], eax
mov ax, word [0x5da72c]
push 0x208
mov word [ebp - 8], ax
call fcn.0042694d
add esp, 4
mov ebx, eax
mov cx, word [esi]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push ebx
push eax
mov word [ebp - 0xc], cx
call edi
test eax, eax
jne 0x40c0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40c159
push ebx
call fcn.00426956
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042694d
add esp, 8
mov ebx, eax
lea eax, [ebp - 0xc]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x40c159
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40c0d0
sub edi, ecx
lea eax, [ebp - 0x218]
sar edi, 1
push edi
push ebx
push eax
call fcn.00494e26
add esp, 0xc
test eax, eax
je 0x40c109
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c0f4
cmp word [esi], ax
je 0x40c159
jmp 0x40c067
lea eax, [ebp - 0x218]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5da730
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0040c560
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.004020e0
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.004029a0
lea ecx, [ebp - 0xa30]
call fcn.0040d0b0
mov eax, dword [ebp - 0xa34]
push eax
call fcn.00426956
push ebx
call fcn.00426956
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov al, 1
pop edi
pop ebx
pop esi
call fcn.00426902
mov esp, ebp
pop ebp
ret 8
Function at 0x40c190
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], 0
call fcn.00492210
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c218
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40c211
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x40c238
xor ecx, ecx
jmp 0x40c250
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c241
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404c10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00426902
mov esp, ebp
pop ebp
ret 8
Function at 0x40c280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8426
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x64a3a4]
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 dword [ebp - 0x478], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], 0
push eax
push 0x5d98a0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00404c10
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00492210
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c33e
push 0x5d98a0
mov ecx, ebx
call fcn.004020e0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40c4fd
inc ecx
push ecx
jmp 0x40c4ec
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c4b7
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x450], ax
jne 0x40c38a
xor ecx, ecx
jmp 0x40c3a2
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c393
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404c10
mov esi, dword [ebp - 0x46c]
mov byte [ebp - 4], 1
cmp esi, dword [ebp + 0xc]
je 0x40c400
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40c3e6
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404d60
lea eax, [ebp - 0x474]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c360
jmp 0x40c4b7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00492210
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c4a5
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b390
lea eax, [ebp - 0x230]
push 0x5d98a0
push eax
call fcn.0040b220
add esp, 8
test al, al
je 0x40c4a5
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0040bf70
lea eax, [ebp - 0x230]
push 0x5d98a0
push eax
call fcn.0040b220
add esp, 8
test al, al
je 0x40c4a5
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b390
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x248]
call fcn.0040d0b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00403e20
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40c4fd
inc eax
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00404d60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret 8
Function at 0x412210
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x184]
push eax
push 0
push esi
push 0x411fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x188], eax
pop esi
ret