joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401147
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push ebx
lea eax, [ebp - 0x390]
push str.SOFTWAREClasses_
push eax
call fcn.00409910
push dword [ebp + 0xc]
lea eax, [ebp - 0x390]
push eax
call fcn.00409920
lea eax, [ebp - 0x390]
push str.CLSID
push eax
call fcn.00409920
lea eax, [ebp - 0x264]
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats_
push eax
call fcn.00409910
add esp, 0x20
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x390]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012fe
push esi
lea eax, [ebp + 0xc]
push edi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp + 0xc]
call fcn.00409a00
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
call fcn.00409920
lea eax, [ebp - 0x264]
push str.iexploreAllowedDomains
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 4]
call esi
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00409910
lea eax, [ebp - 0x138]
push str.cntv.cn
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00409910
lea eax, [ebp - 0x138]
push str.cctv.com
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
call edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call fcn.004095a1
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401301
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
push 0x31
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
mov byte [ebp - 0x1a4], bl
push 0x31
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xdb]
mov byte [ebp - 0xdc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1a4]
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], ebx
call fcn.00409910
pop ecx
pop ecx
call fcn.00403edf
test eax, eax
je 0x401361
push str.SOFTWAREClassesWow6432NodeCLSID_
jmp 0x401366
push str.SOFTWAREClassesCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.00409910
pop ecx
lea eax, [ebp - 4]
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401470
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
call edi
push dword [ebp - 8]
call fcn.00409a00
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
push dword [ebp - 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xdc]
push eax
call fcn.00409920
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00409910
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.00409920
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401467
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x401467
mov dword [ebp - 0x14], 1
push dword [ebp - 0xc]
call fcn.004095a1
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401478
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.RC_BINARYTYPE
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov dword [ebp + 8], eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014eb
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push str.SelfClear.dll
push 0xdd
push dword [ebp + 8]
call fcn.00401478
add esp, 0xc
mov ebx, 0x30c
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str._rundll32.exe
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40155e
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push str._SelfClear.dll__MagicDel_16
push eax
call esi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409a10
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x464]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401927
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x10], 0x10
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x40217c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push 0x40
push eax
xor edi, edi
push 1
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xfffffffffffffff5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x48]
push esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x402207
cmp eax, edi
je 0x402207
lea ecx, [ebp - 8]
push edi
push ecx
push eax
push dword [ebp - 4]
push ebx
call esi
push 0x40
push str.CCTV_Player_Installer_V1.0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402244
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push str.RegDll_Error_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push 0x10
push str.CCTV_Player_Installer_V1.0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ceb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412403
call fcn.0040a258
sub esp, 0x124
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov al, byte [ebp + 0xb]
push 1
pop ebx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x28], al
call fcn.00403c3c
mov byte [ebp - 4], 2
call fcn.00403c99
test al, al
je 0x403da1
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x403da1
push str.IEGetWriteableFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x403d98
lea ecx, [ebp - 0x10]
push ecx
push 0x413230
call eax
cmp eax, edi
jl 0x403d98
cmp dword [ebp - 0x10], edi
je 0x403d98
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00403f5a
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x403d7c
call fcn.0040400b
mov esi, eax
jmp 0x403d7e
xor esi, esi
push esi
call fcn.00409b80
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404123
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x20], edi
jne 0x403dd8
push ebx
lea eax, [ebp - 0x130]
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403dd8
lea eax, [ebp - 0x130]
push eax
call fcn.00409b80
pop ecx
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404123
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push edi
mov ecx, esi
mov byte [esi], al
call fcn.00403c3c
push dword [0x413240]
lea eax, [ebp - 0x28]
mov ecx, esi
push edi
push eax
call fcn.00404055
mov dword [ebp - 0x2c], ebx
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00403c3c
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x403e15
call fcn.00403fde
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403edf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push edi
xor edi, edi
push 0x24
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00409a10
push 0x9c
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00409a10
add esp, 0x18
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403f3c
cmp dword [ebp - 0xbc], 6
jb 0x403f3a
cmp word [ebp - 0x24], 9
jne 0x403f3a
push 1
pop edi
mov eax, edi
pop edi
leave
ret
Function at 0x40a8f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a917
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d13a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a938
test byte [esp + 8], 2
je 0x40a938
mov dword [0x41ae18], 0xd
mov dword [0x41ae1c], 5
jmp 0x40a913
xor eax, eax
ret
Function at 0x401400
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
cmp edx, 0xff
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
jle 0x40143e
mov dword [esp + 0x10], 0xff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4014cd
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x1d]
lea ebx, [esp + 0x1e]
sub ecx, esi
lea ebp, [esp + 0x1f]
sub edi, esi
sub ebx, esi
mov dword [esp + 0x14], ecx
sub ebp, esi
mov al, byte [esi]
cmp al, 0x5c
je 0x401479
cmp al, 0x2f
je 0x401479
mov byte [ecx + esi], al
jmp 0x4014bb
mov byte [ecx + esi], 0x5c
lea eax, [esp + 0x1c]
mov byte [edi + esi], 0x2a
mov byte [ebx + esi], 0x2e
push eax
mov byte [esi + ebp], 0x2a
call fcn.004013c0
add esp, 4
mov byte [edi + esi], 0
test al, al
mov byte [ebx + esi], 0
mov byte [esi + ebp], 0
jne 0x4014b7
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014cd
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
inc esi
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x40146a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x4014e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x200
lea eax, [esp]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x25
push 0x25
push str._cProgramFiles_c
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push 0x100
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, dword [esp + 0x208]
lea ecx, [esp + 0x104]
push eax
push ecx
lea edx, [esp + 0xc]
push str._sNetblade_s_
push edx
call esi
lea eax, [esp + 0x14]
push eax
call fcn.00401400
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0x18]
push ecx
push 0x42b080
push edx
call esi
add esp, 0x20
pop esi
add esp, 0x200
ret
Function at 0x401560
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x264
push ebx
push ebp
push esi
mov esi, dword [esp + 0x278]
cmp esi, 3
push edi
jle 0x4016c1
mov ebx, dword [esp + 0x278]
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 1]
mov al, byte [ebx + 2]
shl edx, 8
add edx, eax
lea ebp, [edx + 3]
cmp esi, ebp
jl 0x4016c1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
cmp edx, 0x40
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
jg 0x4015b5
mov ecx, edx
mov edx, ecx
lea esi, [ebx + 3]
lea edi, [esp + 0x30]
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, dword [esp + 0x27c]
lea esi, [ebp + 2]
cmp edi, esi
jle 0x4016c1
xor edx, edx
xor eax, eax
mov dl, byte [ebx + ebp]
mov al, byte [ebx + ebp + 1]
shl edx, 8
add edx, eax
lea ebp, [edx + esi]
cmp edi, ebp
jl 0x4016c1
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
cmp edx, 0x20
rep stosd dword es:[edi], eax
mov ecx, 0x20
jg 0x401610
mov ecx, edx
mov edx, ecx
add esi, ebx
lea edi, [esp + 0x10]
lea eax, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.004014e0
lea edx, [esp + 0x18]
lea eax, [esp + 0x17c]
push edx
push eax
lea ecx, [esp + 0x84]
push 0x42b0b0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x8c]
push edx
call fcn.004013c0
add esp, 0x1c
test al, al
jne 0x4016c1
mov eax, dword [esp + 0x27c]
lea edi, [ebp + 2]
cmp eax, edi
jle 0x4016c1
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + ebp]
mov dl, byte [ebx + ebp + 1]
mov esi, ecx
shl esi, 8
add esi, edx
lea ecx, [esi + edi]
cmp eax, ecx
jl 0x4016c1
lea edx, [esp + 0x74]
push 0x42b0ac
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4016c1
push ebp
push esi
add edi, ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret
Function at 0x4022e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40232d
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40232d
pop edi
xor ax, ax
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x4023a0
dec eax
jne 0x4023ca
mov eax, dword [esp + 0xc]
cmp eax, 4
jbe 0x4023ca
cmp eax, 5
jne 0x402386
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402362
pop edi
mov ax, 5
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne 0x402374
pop edi
mov ax, 0x105
pop esi
add esp, 0x9c
ret
cmp eax, 2
jne 0x402367
pop edi
mov ax, 0x205
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x402367
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402367
pop edi
mov ax, 6
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x4023ca
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4023ca
cmp eax, 0xa
jne 0x4023c1
pop edi
mov ax, 0xa04
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
mov ax, 0x5a04
je 0x4023ce
mov ax, 4
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x4023e0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x42b0f8
push 1
push 0
push 0x42b0e8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x402440
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jne 0x402440
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40244e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40245c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x402c80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x88
lea edi, [esp + 0x138]
mov dword [esp + 0x134], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, dword [esp + 0x360]
mov esi, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
cmp esi, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x128
mov byte [ebx], al
je 0x402d5a
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402d53
mov edi, dword [esp + 0x35c]
mov edx, dword [esp + 0x14]
cmp edx, edi
je 0x402d13
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ceb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
mov ecx, 0x89
xor eax, eax
lea edi, [esp + 0x134]
push edx
rep stosd dword es:[edi], eax
push 8
mov dword [esp + 0x13c], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x134]
push edx
push eax
call sub.KERNEL32.dll_Module32First
lea eax, [esp + 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
Function at 0x4034d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x554
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4034ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x554
ret
mov ebp, dword [esp + 0x578]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x57c]
mov edi, ebp
mov word [esp + 0x50], ax
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
je 0x403532
mov esi, ebp
mov edi, dword [esp + 0x574]
mov ebx, dword [esp + 0x570]
push edi
push ebx
lea ecx, [esp + 0x16c]
push str._s__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x164]
push edx
push eax
push esi
push 0
push 0x230
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4036a4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x18]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00402c80
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4035e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x68]
push str..exe
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x403636
lea edx, [esp + 0x64]
push str..bat
push edx
call esi
add esp, 8
test eax, eax
jne 0x403636
lea eax, [esp + 0x64]
push str..cmd
push eax
call esi
add esp, 8
test eax, eax
jne 0x403636
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
cmp byte [esp + 0x65], 0x3a
jne 0x403642
mov byte [esp + 0x64], 0x63
lea ecx, [esp + 0x64]
push str.debug
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403676
lea edx, [esp + 0x64]
push str.player.exe
push edx
call esi
add esp, 8
test eax, eax
jne 0x403676
lea eax, [esp + 0x64]
push 0x1b
push eax
push str._s_c
jmp 0x403682
lea ecx, [esp + 0x64]
push 0x1b
push ecx
push 0x42b394
push 0x42d28c
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [0x42d51c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
mov edx, dword [esp + 0x57c]
mov eax, dword [esp + 0x56c]
mov ecx, dword [esp + 0x568]
push edx
push ebp
push edi
push ebx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, 0x20
pop edi
cmp edx, eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x554
ret