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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xf80ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf81035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00f80e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xf80fc5
mov edi, 0xf9b8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf81035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00f80e00
add edi, 4
add esp, 0xc
cmp edi, 0xf9b8c0
jb 0xf81000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xf81070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00f87082
mov esi, eax
add esp, 8
test esi, esi
je 0xf81107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xf81102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00f86946
add esp, 8
test eax, eax
je 0xf810e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xf810e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00f86946
add esp, 8
test eax, eax
jne 0xf810c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xf81102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xf81f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xf969fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xf82002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00f85dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xf82002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00f7d6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00f8620b
push 0x10
call fcn.00f861d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xf81fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00f721c0
jmp 0xf81fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00f81b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xf81ff0
mov ecx, edi
call fcn.00f722c0
push edi
call fcn.00f861c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xf82021
inc ebx
cmp ebx, 0x20
jb 0xf81f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xf83250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf97808
push 0xf87288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xf83329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xf83329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00f861d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xf83329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xf83329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xf8332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00f83351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xf83d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf83d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf83d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf83d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf83d94
push eax
push esi
call fcn.00f8620b
add esp, 8
pop esi
ret 0x10

Function at 0xf83da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf83e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf83e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf9c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f85dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf83dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf83e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf83ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf83eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf9c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f85dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf83eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf83e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf84000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf84131
push esi
call fcn.00f87145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f76080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf84131
push 0
push ebp
call fcn.00f763a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f76260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf8408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f762f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf84121
push 0xf9c918
push edi
call fcn.00f853f0
push eax
push ebx
push esi
call fcn.00f83f60
push 0xf9c8f8
push edi
call fcn.00f853f0
push eax
push ebx
push esi
call fcn.00f83f60
push 0xf9c8d8
push edi
call fcn.00f853f0
push eax
push ebx
push esi
call fcn.00f83f60
push 0xf9c8c0
push edi
call fcn.00f853f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f83f60
push 0xf9c8a0
push edi
call fcn.00f853f0
push eax
push ebx
push esi
call fcn.00f83f60
push 0xf9c888
push edi
call fcn.00f853f0
push eax
push ebx
push esi
call fcn.00f83f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf851b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f85140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f85140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f85140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f85140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf85bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf85c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf9787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf85c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf85c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x55e47ec9
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..text
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2f834810
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4077f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x52251c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.004c69fc
lea ecx, [esp + 0xc]
mov bl, 1
push ecx
lea ecx, [edi + 0x98]
mov byte [esp + 0x30], bl
call fcn.004c27b1
test byte [0x526bf8], bl
je 0x40789f
push str.CollectorText.txt
lea edx, [esp + 0x14]
push 0x52702c
push edx
call fcn.004c5a1c
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.004c6b0e
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004c5787
test esi, esi
je 0x40789f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004c6c65
lea ecx, [esp + 0x14]
call fcn.004c6d29
lea eax, [esp + 0xc]
lea ecx, [edi + 0xd4]
push eax
call fcn.004c27b1
test byte [0x526bf8], 2
je 0x407912
push str.CollectorOutput.txt
lea ecx, [esp + 0x14]
push 0x52702c
push ecx
call fcn.004c5a1c
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.004c6b0e
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004c5787
test esi, esi
je 0x407912
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004c6c65
lea ecx, [esp + 0x14]
call fcn.004c6d29
lea edx, [esp + 0xc]
lea ecx, [edi + 0x110]
push edx
call fcn.004c27b1
test byte [0x526bf8], 4
je 0x407985
push str.CollectorScript.txt
lea eax, [esp + 0x14]
push 0x52702c
push eax
call fcn.004c5a1c
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.004c6b0e
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.004c5787
test esi, esi
je 0x407985
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004c6c65
lea ecx, [esp + 0x14]
call fcn.004c6d29
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.004c6a51
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x408f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x20]
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x18]
push ecx
mov eax, dword [eax + 0x1c]
push edx
push 0xb0
push eax
mov dword [ebp - 4], 0
call edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov edx, dword [eax + 0x1c]
push 0xc9
push edx
call edi
mov ebx, eax
mov eax, dword [esi + 0x5c]
push 0
push ebx
mov eax, dword [eax + 0x1c]
push 0xbb
push eax
call edi
mov ecx, dword [ebp - 0x20]
mov esi, dword [esi + 0x5c]
sub ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x428]
mov word [ebp - 0x428], 0x406
mov edx, dword [esi + 0x1c]
push ecx
push ebx
push 0xc4
push edx
call edi
lea eax, [ebp + eax - 0x428]
mov cl, 0xd
mov byte [eax], 0
mov dl, byte [eax - 1]
cmp dl, cl
jne 0x408fc3
mov byte [eax - 1], 0
jmp 0x408fcc
cmp byte [eax - 2], cl
jne 0x408fcc
mov byte [eax - 2], 0
mov eax, dword [0x52251c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5712
lea ecx, [ebp - 0x428]
push 0x51c3dc
push ecx
call fcn.004ad970
lea edx, [ebp - 0x428]
push 0x51c420
push edx
mov esi, eax
call fcn.004ad970
add esp, 0x10
test esi, esi
jne 0x409014
lea eax, [ebp - 0x428]
push eax
jmp 0x409033
test eax, eax
je 0x40902f
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + ecx - 0x428]
cmp edx, eax
jbe 0x40902c
add eax, 4
push eax
jmp 0x409033
mov byte [eax], 0
add esi, 4
push esi
lea ecx, [ebp - 0x14]
call fcn.004c5910
lea ecx, [ebp - 0x14]
call fcn.004bdc60
lea ecx, [ebp - 0x14]
call fcn.004bdbd1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c54fc
call fcn.0041c1d0
add esp, 4
test eax, eax
jne 0x409078
push 0xffffffffffffffff
push eax
push 0xef98
call fcn.004194a0
add esp, 0xc
jmp 0x40908f
mov ecx, dword [ebp - 0x14]
push 0
push 0
push ecx
mov ecx, dword [0x52790c]
push 2
push 1
call fcn.00450380
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004c5787
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor bl, bl
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
call fcn.004c5712
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409b3b
mov al, byte [edx + ebp]
cmp al, 0x41
mov byte [esp + 0x10], al
jb 0x409af7
cmp al, 0x51
ja 0x409af7
mov eax, dword [esp + 0x10]
and eax, 0xff
sub eax, 0x41
jmp 0x409af9
xor eax, eax
shl bl, 4
or bl, al
mov eax, ebp
and eax, 1
cmp al, 1
jne 0x409b2a
mov ecx, dword [esp + 0x24]
mov dl, byte [esi + ecx]
mov ecx, dword [esp + 0x20]
xor dl, bl
push edx
call fcn.004c5b8a
lea eax, [esi + 1]
xor bl, bl
cdq
idiv dword [esp + 0x14]
mov esi, edx
mov edx, dword [esp + 0x1c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jb 0x409ada
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x414b60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4ddbc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [esp + 4], 0
mov dword [esp + 0x810], 1
mov eax, dword [0x52251c]
mov dword [esp], eax
lea ecx, [esp]
mov byte [esp + 0x810], 3
call fcn.004c5712
mov ecx, dword [esp + 0x81c]
mov eax, dword [esp + 0x820]
push ecx
lea edx, [esp + 0xc]
push 0x800
push edx
push 0
push eax
push 0x51c740
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x414be1
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.004c5910
push esi
mov esi, dword [esp + 0x81c]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004c54fc
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x814], 2
call fcn.004c5787
lea ecx, [esp + 0x820]
mov byte [esp + 0x814], 1
call fcn.004c5787
lea ecx, [esp + 0x824]
mov byte [esp + 0x814], 0
call fcn.004c5787
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x814
ret