joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc703a2
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0xc70bd0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0xd16283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.00c74916
pop ecx
push eax
call fcn.00c74744
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0xca6305
lea ecx, [ebp - 0x18]
call fcn.00c55c18
mov ecx, edi
call fcn.00c59997
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00c55b75
push dword [ebp - 0x18]
push 0xce1d28
push esi
call fcn.00c74b15
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0xca6325
lea ecx, [ebp - 0x18]
call fcn.00c55a64
mov edi, dword [ebp - 8]
push esi
call fcn.00c74cda
pop ecx
cmp ebx, 0xffffffff
je 0xc70c6e
push ebx
push esi
call fcn.00c74916
pop ecx
push eax
call fcn.00c74744
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0xc70c56
push esi
mov ecx, edi
call fcn.00cb89e2
push eax
push 1
call fcn.00cb899f
push eax
call fcn.00c74a93
add esp, 0x10
mov edi, eax
jmp 0xc70c49
mov ecx, edi
call fcn.00c59997
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0xc70c3e
Function at 0xc85ccc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xd0fd50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00c7a099
mov dword [ebp - 0x14], eax
cmp dword [0xd150e8], esi
jne 0xc85dbf
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0xc85d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0xc85e9f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0xc85e9f
push 0xcf0db0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xc85e9f
push eax
call ebx
push 0xcf0dbc
push edi
mov dword [0xd150e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xd150ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xd150f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xd150f8], eax
test eax, eax
je 0xc85dbc
push 0xcf0dfc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xd150f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0xc85de4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0xc85dd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0xc85df9
push 4
pop eax
jmp 0xc85ea1
cmp dword [ebp - 0x14], esi
je 0xc85df9
push dword [0xd150e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0xc85dde
mov eax, dword [0xd150f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0xc85e57
cmp dword [0xd150f8], edi
je 0xc85e57
push eax
call ebx
push dword [0xd150f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0xc85e57
test eax, eax
je 0xc85e57
call ecx
test eax, eax
je 0xc85e4c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0xc85e4c
test byte [ebp - 8], 1
jne 0xc85e57
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0xc85e87
mov eax, dword [0xd150ec]
cmp eax, edi
je 0xc85e84
push eax
call ebx
test eax, eax
je 0xc85e84
call eax
mov esi, eax
test esi, esi
je 0xc85e84
mov eax, dword [0xd150f0]
cmp eax, edi
je 0xc85e84
push eax
call ebx
test eax, eax
je 0xc85e84
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xd150e8]
call ebx
test eax, eax
je 0xc85e9f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0xc85ea1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00c7c836
mov esp, ebp
pop ebp
ret
Function at 0xcafc4d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00c70ff6
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00c71080
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0xcafca8
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0xcafc9f
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0xcb3696
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00cb3595
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0xcb38ad
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20030
call fcn.00c81b90
push ebx
push esi
lea eax, [esp + 0x10038]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00cb48aa
lea eax, [esp + 0x3c]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.00cb48aa
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0xcb393b
cmp byte [ebp + 8], al
je 0xcb3934
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcb392d
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0xcb39e7
xor al, al
jmp 0xcb39e7
lea ecx, [esp + 0x10038]
call fcn.00cb4cd3
test al, al
je 0xcb3934
lea ecx, [esp + 0x38]
call fcn.00cb4cd3
test al, al
je 0xcb39ed
cmp byte [ebp + 8], 0
je 0xcb3934
lea eax, [esp + 0x10038]
push 0xd0a338
push eax
call fcn.00c72fcd
lea eax, [esp + 0x10040]
push eax
call fcn.00c72e3c
xor ecx, ecx
mov word [esp + eax*2 + 0x10046], cx
lea eax, [esp + 0x44]
push eax
call fcn.00c72e3c
xor ecx, ecx
mov dword [esp + 0x1c], 2
add esp, 0x10
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x10038]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00c57f41
lea ecx, [esp + 0x28]
call fcn.00cb3c66
mov bl, al
lea ecx, [esp + 0x28]
neg bl
sbb bl, bl
call fcn.00c55a64
inc bl
jne 0xcb3934
lea ecx, [esp + 0x38]
call fcn.00cb4cd3
test al, al
jmp 0xcb3960
Function at 0xcb3a2b
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.00c577c7
lea ecx, [ebp - 0x44]
call fcn.00c577c7
lea ecx, [ebp - 0x24]
call fcn.00c577c7
lea ecx, [ebp - 0x14]
call fcn.00c577c7
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00c548ae
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00c548ae
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.00cb4c69
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00cb4cd3
mov esi, 0xd0a338
test al, al
je 0xcb3a9c
push esi
lea ecx, [ebp - 0x34]
call fcn.00c57e0b
mov ecx, dword [ebp - 0x44]
call fcn.00cb4cd3
test al, al
je 0xcb3ab1
push esi
lea ecx, [ebp - 0x44]
call fcn.00c57e0b
lea ecx, [ebp - 0x54]
call fcn.00c577c7
lea ecx, [ebp - 0x64]
call fcn.00c577c7
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.00c546f9
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0xcb3bfd
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0xcb3bfd
test byte [ebp - 0x2c8], 0x10
jne 0xcb3bd1
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00c57f41
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00cb42ad
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00c55a64
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00c581a7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00c57c8e
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00c57e0b
lea ecx, [ebp - 0x24]
call fcn.00cb3e73
test al, al
je 0xcb3b89
cmp byte [ebp + 8], bl
je 0xcb3bf4
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00c57a68
push dword [ebp - 0x24]
test eax, eax
je 0xcb3b97
call edi
cmp byte [ebp + 0xc], 1
jne 0xcb3bbb
cmp byte [ebp - 3], bl
jne 0xcb3ba2
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0xcb3bc9
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00cb3c40
movzx eax, al
test eax, eax
je 0xcb3bf4
push dword [ebp - 0x14]
call edi
jmp 0xcb3bc9
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00cb3c40
movzx eax, al
test eax, eax
je 0xcb3bf4
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0xcb3afb
mov al, bl
mov byte [ebp - 2], al
jmp 0xcb3afb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0xcb3c07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.00c55a64
lea ecx, [ebp - 0x54]
call fcn.00c55a64
lea ecx, [ebp - 0x14]
call fcn.00c55a64
lea ecx, [ebp - 0x24]
call fcn.00c55a64
lea ecx, [ebp - 0x44]
call fcn.00c55a64
lea ecx, [ebp - 0x34]
call fcn.00c55a64
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcb3c66
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0xcdfac0
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00c57886
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xcb3d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0xcb3cca
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0xcb3ccf
jmp 0xcb3d37
cmp eax, 3
jne 0xcb3d3b
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0xcdfac0
inc dword [eax]
call fcn.00c57e2f
cmp eax, 0xffffffff
je 0xcb3d28
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00c57e8c
lea ecx, [esp + 0x18]
call fcn.00cb3c66
test al, al
je 0xcb3d26
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00c55a64
jmp 0xcb3d3d
test al, 0x10
je 0xcb3d3b
mov bl, 1
jmp 0xcb3d3d
xor bl, bl
lea ecx, [esp + 8]
call fcn.00c55a64
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xcb3e91
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x14], edx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.00cb49c9
mov ebx, eax
jmp 0xcb3f84
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0xcb3f8d
lea ecx, [esp + 0x18]
call fcn.00c577c7
lea ecx, [esp + 0x28]
call fcn.00c577c7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00c57f41
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00c546f9
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00c55a64
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00c57c8e
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00c57a68
test eax, eax
jne 0xcb3f5d
mov eax, dword [esp + 0x50]
jmp 0xcb3f69
test ebx, ebx
je 0xcb3f72
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0xcb3f72
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00c55a64
lea ecx, [esp + 0x18]
call fcn.00c55a64
cmp byte [esi], 0
je 0xcb3ede
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcb4696
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xcb46d1
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0xcb46c6
or eax, eax
jmp 0xcb46d1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xcb46d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0xcb46fb
xor al, al
jmp 0xcb48a3
push esi
call fcn.00c70ff6
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00c72e3c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00c70ff6
mov edi, eax
push 0xcdfac0
push edi
call fcn.00c72ffc
push 0xcdfac0
push esi
call fcn.00c7378c
add esp, 0x18
test eax, eax
je 0xcb47e7
push str.StringFileInfo_
push edi
call fcn.00c72fcd
push 0xcdfac0
push esi
call fcn.00c73bba
add esp, 0x10
test eax, eax
jne 0xcb47de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0xcb47ba
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.00c6fd71
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.00c6fd71
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0xcb47c7
push str.04090000
push edi
call fcn.00c72fcd
pop ecx
pop ecx
push 0xcdfac0
push edi
call fcn.00c72fcd
push esi
push edi
call fcn.00c72fcd
add esp, 0x10
jmp 0xcb47e7
push esi
push edi
call fcn.00c72fcd
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.00c7313d
pop ecx
pop ecx
test eax, eax
jne 0xcb4822
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.00c742ee
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.00c7106c
push edi
call fcn.00c7106c
add esp, 0x14
mov al, 1
jmp 0xcb48a3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0xcb4890
push 0xcdfac0
push esi
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
jne 0xcb4872
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.00c738d8
add esp, 0x18
jmp 0xcb488c
push 0x200
push dword [ebp - 8]
push ebx
call fcn.00c742ee
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.00c7106c
push edi
call fcn.00c7106c
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcb48f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0xcb49b6
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0xcb49b6
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0xcb4953
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0xcb494a
cmp esi, ecx
jle 0xcb4966
push str.0.0.0.0
push edi
call fcn.00c72ffc
pop ecx
pop ecx
jmp 0xcb49ae
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00c71080
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00c74570
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00cb573e
mov esi, eax
push esi
push edi
call fcn.00c72ffc
push esi
call fcn.00c7106c
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0xcb49c3
push 0xcdf910
push edi
call fcn.00c72ffc
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xcb4c03
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0xcb4c5c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

Function at 0xcb4cd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0xcb4ce6
test al, 0x10
je 0xcb4ce6
mov al, 1
ret
xor al, al
ret
Function at 0xcb53c5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00c81b90
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.00cb48aa
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00cb4cd3
test al, al
je 0xcb545a
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0xcb5410
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0xcb545a
call fcn.00c72e3c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xcb54e6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0xcb5564
jne 0xcb54f9
push 0
jmp 0xcb555e
cmp esi, 0xf
jae 0xcb555d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0xcb555d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0xcf4be0]
call fcn.00c8b606
cmp eax, esi
jb 0xcb5516
jmp 0xcb5564
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret