joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x48bc81
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x48bc65
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x48bbb7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x48bb95
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x48c6c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48c720
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x48c720
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x48c720
xor eax, eax
inc eax
jmp 0x48c722
xor eax, eax
leave
ret 0x10
Function at 0x48c74b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48c7b9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x6de71c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c7b0
cmp dword [ebp - 0xc], 4
jne 0x48c7b0
cmp dword [ebp - 0x10], edi
je 0x48c7b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x708cd0], edi
xor eax, eax
jmp 0x48c7f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x708cd0], edi
jge 0x48c7f3
lea eax, [ebp - 0x34]
push eax
mov dword [0x708cd0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48c7f3
cmp word [ebp - 0x14], 5
jb 0x48c7f3
call fcn.0048c726
test eax, eax
je 0x48c7f3
emms
mov dword [0x708cd0], 1
mov eax, dword [0x708cd0]
pop edi
leave
ret

Function at 0x4af3ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4af425
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ad4a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad47c
jmp 0x4af431
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b0ade
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b0b20
call fcn.004b685d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0b20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b0b17
xor eax, eax
jmp 0x4b0b28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0b2e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b6d8d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b6dbb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b6dd9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b6cf3
jmp 0x4b6dd9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6dd9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b6cf3
test edi, edi
mov eax, edi
jne 0x4b6dc3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402d48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a0
test esi, esi
jne 0x402d7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404620
jmp 0x402d9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402c4c
mov edi, eax
test esi, esi
je 0x402d9c
cmp dword [ebx], 0
je 0x402d9c
dec esi
jmp 0x402d85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403c88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d00
xor eax, eax
push ebp
push 0x403cf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40600c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404420
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x404481
cmp word [0x407208], 0xd7b2
jne 0x404449
cmp dword [0x407210], 0
jbe 0x404449
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4044a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x40449d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401130
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40e508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov edx, dword [ecx + 8]
push ebx
xor ebx, ebx
push ebp
push esi
cmp edx, ebx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jne 0x40117e
push ebx
push ebx
push 0x41108c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov dword [ecx + 0xc], 3
cmp edx, ebx
je 0x40131a
mov eax, dword [ecx + 4]
mov ebp, dword [eax]
cmp ebp, eax
je 0x40130d
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.004021d0
lea esi, [ebp + 8]
lea ecx, [esp + 0x1c]
cmp ecx, esi
mov dword [esp + 0x34], ebx
jne 0x4011d5
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea eax, [edx + edx]
cmp ecx, eax
jae 0x4011d5
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00401fe0
mov edx, dword [esi + 4]
cmp edx, ebx
jne 0x4011e1
mov edx, 0x40f15c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00401b90
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x401205
mov eax, 0x40f15c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 0x24]
and esi, 0xfffffff8
cmp eax, ebx
jge 0x40122f
mov eax, dword [0x40f158]
lea ecx, [esp + 0x1c]
push eax
push ebx
call fcn.004016a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x401240
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x401254
mov eax, 0x40f15c
jmp 0x401254
ja 0x401247
call fcn.00408987
lea ecx, [esp + 0x1c]
call fcn.00402340
mov eax, dword [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x24]
cmp eax, ebx
jge 0x40127b
mov ecx, dword [0x40f158]
push ecx
push ebx
lea ecx, [esp + 0x24]
call fcn.004016a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x40128c
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4012a0
mov eax, 0x40f15c
jmp 0x4012a0
ja 0x401293
call fcn.00408987
lea ecx, [esp + 0x1c]
call fcn.00402340
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4012af
dec dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00401330
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
cmp ecx, ebx
je 0x4012eb
mov al, byte [ecx - 1]
cmp al, bl
je 0x4012e1
cmp al, 0xff
je 0x4012e1
dec al
mov byte [ecx - 1], al
jmp 0x4012eb
dec ecx
push ecx
call fcn.00408750
add esp, 4
mov ebp, dword [ebp]
mov eax, dword [esi + 4]
cmp ebp, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jne 0x40119a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
dec eax
mov dword [ecx + 0xc], eax
jne 0x401185
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x403300
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov dword [0x4143f0], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40334d
movsx ecx, byte [esi + ebx]
push ecx
call fcn.004095e8
mov byte [esi + ebx], al
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x40332c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40339c
mov esi, ebx
cmp byte [esi], 0x20
jle 0x40338a
mov edi, str._delete
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._delete
push esi
call fcn.004095b0
add esp, 0xc
test eax, eax
jne 0x40339c
mov dword [esp + 0x20], eax
inc ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jb 0x40335f
push str.BlueBirdClearBBCLient
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
cmp eax, 0xb7
pop ebx
je 0x40340f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40340f
call fcn.00403ec0
lea ecx, [esp]
call fcn.00407520
lea edx, [esp + 0x10]
lea ecx, [esp]
push edx
mov dword [esp + 0x14], 0x1e240
call fcn.00407570
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403420
call fcn.00404320
lea ecx, [esp]
call fcn.00407710
lea ecx, [esp]
call fcn.00407560
xor eax, eax
add esp, 0xc
ret 0x10
Function at 0x403ec0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4144f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4144f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4145fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x414700
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4145fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or ecx, 0xffffffff
mov edi, 0x4110a4
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov esi, edi
mov ebp, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
push 0x4143f4
rep movsb byte es:[edi], byte [esi]
mov edi, 0x411088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4143f4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004096b3
add esp, 8
test eax, eax
pop edi
pop esi
pop ebp
je 0x404082
mov byte [eax + 1], 0
add esp, 0x208
ret
Function at 0x405b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
xor ebx, ebx
push eax
lea edx, [esp + 0x10]
push ebx
push edx
mov dword [esp + 0x14], ebx
call fcn.004017c0
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x2c]
mov cl, byte [esp + 0x30]
mov dword [esp + 0x24], ebx
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [eax + 4]
mov byte [esp + 0x24], 1
cmp eax, ebx
je 0x405c2c
cmp eax, 0x40f15c
je 0x405c2c
push ebp
push edi
mov edi, dword [0x40f158]
mov ecx, esi
call fcn.00402100
mov eax, dword [esi + 8]
cmp eax, edi
jae 0x405be6
mov edi, eax
cmp edi, ebx
jbe 0x405c17
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.00408f40
mov ebp, dword [esi + 8]
add esp, 0xc
sub ebp, edi
mov ecx, esi
push ebx
push ebp
call fcn.00401fe0
test al, al
je 0x405c17
push ebp
mov ecx, esi
call fcn.00401fc0
mov eax, dword [0x40f158]
mov ecx, dword [esp + 0x38]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00401d20
pop edi
pop ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405c51
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x405c48
cmp al, 0xff
je 0x405c48
dec al
mov byte [ecx], al
jmp 0x405c51
push ecx
call fcn.00408750
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x405ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov edx, dword [esp + 0x28]
push ebp
xor ebp, ebp
push esi
cmp edx, ebp
push edi
mov dword [esp + 0xc], ebp
jge 0x405ccb
xor edx, edx
mov eax, dword [esp + 0x38]
cmp eax, ebp
jge 0x405cd5
xor eax, eax
mov esi, dword [ecx + 8]
lea edi, [edx + eax]
cmp edi, esi
jbe 0x405ce3
mov eax, esi
sub eax, edx
cmp edx, esi
jbe 0x405d0e
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x30]
pop edi
pop esi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov byte [eax], cl
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push ebx
push eax
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.004017c0
mov ebx, eax
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
push ebp
mov ecx, esi
mov dword [esp + 0x30], ebp
mov byte [esi], al
call fcn.004021d0
mov eax, dword [esi + 4]
mov byte [esp + 0x2c], 1
cmp eax, ebp
jne 0x405d44
mov eax, 0x40f15c
mov ecx, dword [ebx + 4]
cmp ecx, ebp
jne 0x405d50
mov ecx, 0x40f15c
cmp eax, ecx
je 0x405dad
mov edi, dword [0x40f158]
mov ecx, esi
call fcn.00402100
mov eax, dword [esi + 8]
cmp eax, edi
jae 0x405d6a
mov edi, eax
cmp edi, ebp
jbe 0x405d9e
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.00408f40
mov ebp, dword [esi + 8]
add esp, 0xc
sub ebp, edi
mov ecx, esi
push 0
push ebp
call fcn.00401fe0
test al, al
je 0x405d9c
push ebp
mov ecx, esi
call fcn.00401fc0
xor ebp, ebp
mov eax, dword [0x40f158]
mov ecx, esi
push eax
push ebp
push ebx
call fcn.00401d20
mov eax, dword [esp + 0x18]
pop ebx
cmp eax, ebp
je 0x405dd3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405dca
cmp al, 0xff
je 0x405dca
dec al
mov byte [ecx], al
jmp 0x405dd3
push ecx
call fcn.00408750
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4062b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e8d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x30]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x4062fa
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4062f1
cmp al, 0xff
je 0x4062f1
dec al
mov byte [ecx], al
jmp 0x4062fa
push ecx
call fcn.00408750
add esp, 4
push ebp
push esi
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov ebp, dword [edi + 0x20]
mov esi, dword [edi + 0x1c]
cmp esi, ebp
mov dword [esp + 0x10], esi
je 0x40633b
push 1
lea ecx, [esi + 0x14]
mov byte [esp + 0x24], 1
call fcn.004021d0
push 1
lea ecx, [esi + 4]
mov byte [esp + 0x24], bl
call fcn.004021d0
add esi, 0x24
cmp esi, ebp
mov dword [esp + 0x10], esi
jne 0x406313
mov eax, dword [edi + 0x1c]
push eax
call fcn.00408750
add esp, 4
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0xc]
pop esi
cmp eax, ebx
pop ebp
je 0x406376
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40636d
cmp al, 0xff
je 0x40636d
dec al
mov byte [ecx], al
jmp 0x406376
push ecx
call fcn.00408750
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x406390
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4063ad
pop esi
ret 8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x4063c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x406600
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40661f
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push ebp
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x414824]
mov edi, str.procinfo.dll
cmp eax, 4
ja 0x406652
mov edi, str.dll32.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [ebx + 0x28], eax
test eax, eax
pop ebp
je 0x406730
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFullPathByID
push eax
call esi
mov ecx, dword [ebx + 0x28]
push str.GetTaskModuleInformationEx
push ecx
mov dword [ebx + 0x2c], eax
call esi
mov edx, dword [ebx + 0x28]
push str.GetTaskListEx
push edx
mov dword [ebx + 0x30], eax
call esi
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x28]
push str.GetParentIDByProcessID
push eax
call esi
mov ecx, dword [ebx + 0x28]
push str.GetProcessIDByName
push ecx
mov dword [ebx + 0x38], eax
call esi
mov edx, dword [ebx + 0x28]
push str.GetProcessNameByID
push edx
mov dword [ebx + 0x3c], eax
call esi
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x40], eax
test ecx, ecx
je 0x40671f
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40671f
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x40671f
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x40671f
test eax, eax
je 0x40671f
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40671f
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
mov eax, dword [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x28], 0
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret