joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5636df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi], vtable.Xenesis2::Foundation::Process::xThread_0__10_.0
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.Xenesis2::Foundation::Memory::xEncryptMemory.0
lea ebp, [esi + 0x10]
call fcn.004cc550
mov dword [ebp + 4], eax
mov cl, 1
mov byte [eax + 0x11], cl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], ebx
push 0x40000
mov byte [esp + 0x28], cl
call fcn.005493e8
mov dword [esi + 0x1c], eax
push 0x8000
mov byte [esp + 0x2c], 2
call fcn.005493e8
mov dword [esi + 0x20], eax
push 0x8000
mov byte [esp + 0x30], 3
call fcn.005493e8
add esp, 0xc
mov dword [esi + 0x24], eax
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0055243f
mov edi, dword [esi + 0x1c]
xor eax, eax
mov ecx, 0x10000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x20]
mov ecx, 0x2000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x24]
mov ecx, 0x2000
add esp, 4
rep stosd dword es:[edi], eax
xor edi, edi
jmp 0x4cc190
push esi
mov eax, edi
call fcn.004cc320
inc edi
cmp edi, 0x2000
jb 0x4cc190
xor edi, edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x14]
mov eax, ebp
call fcn.00417900
inc edi
cmp edi, 0x10000
mov dword [esp + 0x10], edi
jb 0x4cc1a7
call fcn.0055244c
push esi
push 0
push 0x4cc4d0
mov dword [esi + 0x2c], eax
mov byte [esi + 0xc], 1
call fcn.00552138
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4cc590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5634c8
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
call fcn.0044c110
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], ecx
lea edi, [esi + 0x34]
mov dword [esi], vtable.Xenesis2::Utility::Interface::xInterface.0
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4cc610
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00402890
mov dl, byte [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov al, 1
mov byte [esi + 0x50], al
mov byte [esi + 0x52], al
mov al, byte [esp + 0x34]
mov byte [esi + 0x51], bl
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], al
mov byte [esi + 0x56], bl
mov byte [esi + 0x57], bl
mov byte [esi + 0x58], bl
mov byte [esi + 0x53], dl
pop edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18

Function at 0x4cf9c4
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp dword [eax], 0x1000001
je 0x4cf9db
push eax
mov ecx, esi
call fcn.004cc740
pop esi
ret 4
mov eax, dword [eax + 4]
sub eax, 0x2a8
je 0x4cf9f3
dec eax
jne 0x4cfa2b
call fcn.004cfb40
mov al, 1
pop esi
ret 4
cmp dword [0x8849e0], 0x5e
push 1
push 0
push 0
jne 0x4cfa09
push 0x160
jmp 0x4cfa0e
push 0xcf
push 0x8872dc
call fcn.00447150
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004cfb40
mov al, 1
pop esi
ret 4
Function at 0x4cff54
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x50
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x51]
xor ebx, ebx
cmp al, bl
je 0x4d005d
call fcn.004cc880
cmp byte [eax + 0x8c], bl
jne 0x4d005d
cmp byte [esi + 0x50], bl
je 0x4d005d
push edi
call fcn.004cc880
mov eax, dword [eax + 0x88]
cmp eax, 9
je 0x4cffff
cmp eax, 0xd
je 0x4cffbd
cmp eax, 0x1b
jne 0x4d0050
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], 0x3000004
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edi, [esp + 0xc]
jmp 0x4d0049
cmp byte [esi + 0x28], bl
je 0x4cffdf
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], 0x3000001
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x1c]
jmp 0x4d0049
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], 0x3000002
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x2c]
jmp 0x4d0049
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x4d002b
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x3c], 0x3000002
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
lea edi, [esp + 0x3c]
jmp 0x4d0049
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x4c], 0x3000002
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
lea edi, [esp + 0x4c]
mov eax, esi
call fcn.0040afb0
call fcn.004cc880
mov byte [eax + 0x8c], 1
pop edi
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x4f79c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
and ecx, 0xff00
xor al, al
cmp ecx, 0xff00
sete cl
mov dl, cl
neg dl
push ebp
push edi
mov byte [esp + 0xa], al
mov byte [esp + 0xb], cl
sbb edx, edx
add edx, 6
mov ebp, edx
xor edi, edi
test ebp, ebp
jle 0x4f7b55
push ebx
push esi
jmp 0x4f7a00
mov cl, byte [esp + 0x13]
nop
test cl, cl
je 0x4f7ab6
mov ecx, dword [0x884634]
mov edx, dword [ecx + edi*8 + 0x1a590]
lea eax, [esp + 0x18]
push eax
push edx
call fcn.004cc430
mov ebx, 1
mov esi, eax
call fcn.00403200
cmp byte [esp + 0x18], 0xff
jne 0x4f7b46
mov ecx, dword [0x884634]
mov edx, dword [ecx + edi*8 + 0x1a598]
lea eax, [esp + 0x28]
push eax
push edx
call fcn.004cc430
mov esi, eax
call fcn.00403200
mov al, byte [esp + 0x28]
xor al, byte [esp + 0x5c]
jne 0x4f7b46
mov edx, dword [0x884634]
mov eax, dword [edx + edi*8 + 0x1a590]
push 1
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [0x884634]
mov eax, dword [edx + edi*8 + 0x1a598]
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
inc edi
jmp 0x4f7b41
mov edx, dword [0x884634]
mov eax, dword [edx + edi*8 + 0x1a590]
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004cc430
mov ebx, 1
mov esi, eax
call fcn.00403200
cmp byte [esp + 0x38], 0xff
jne 0x4f7ae4
inc edi
jmp 0x4f7b46
mov edx, dword [0x884634]
mov eax, dword [edx + edi*8 + 0x1a590]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004cc430
mov ebx, 1
mov esi, eax
call fcn.00403200
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
and ecx, 0xff
cmp eax, ecx
jne 0x4f7b46
mov eax, dword [0x884634]
mov ecx, dword [eax + edi*8 + 0x1a590]
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x20], 0
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov byte [esp + 0x12], 1
inc edi
cmp edi, ebp
jl 0x4f79fb
mov al, byte [esp + 0x12]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x48
ret 4
Function at 0x50b1b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5634b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
push edi
push str.MuteList.txt
push 0x882e80
lea eax, [esp + 0x40]
push 0x5827b8
xor edi, edi
push eax
mov dword [esp + 0x48], edi
call fcn.00550730
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x884634]
mov eax, dword [edx + 0x4effc]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 8], esi
je 0x50b2b9
push edi
lea eax, [esp + 0x1c]
push 0x581fc0
push eax
call fcn.00550730
mov eax, dword [esi + 0x24]
add esp, 0xc
inc edi
cmp eax, 0x10
jb 0x50b235
mov ecx, dword [esi + 0x10]
jmp 0x50b238
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00407c80
push ecx
mov dword [esp + 0x14c], 0
mov eax, esp
mov dword [esp + 0x14], esp
push eax
lea ecx, [esp + 0x24]
call fcn.00407c80
push 0xd9038
push 0x8872dc
mov byte [esp + 0x154], 1
call fcn.00447150
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, eax
call fcn.00407c80
mov dword [esp + 0x150], 0xffffffff
call fcn.0040bf00
add esp, 0xc
lea edx, [esp + 8]
call fcn.0042e340
mov edx, dword [0x884634]
mov esi, dword [esp + 8]
cmp esi, dword [edx + 0x4effc]
jne 0x50b214
mov ecx, dword [esp + 0x13c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x140
ret
Function at 0x533100
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5e00a4]
push ebp
push esi
push edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
mov esi, ecx
mov ecx, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00532f70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00533030
xor ebp, ebp
lea ecx, [ecx]
movzx edx, byte [esp + ebp + 0xc]
push edx
lea eax, [esp + 0x84]
push 0x56ea3c
push eax
call fcn.00550730
lea eax, [esp + 0x8c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x533194
mov edi, 0x75b6c0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5331a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x533170
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov eax, 0x75b6c0
pop ebp
call fcn.0055361e
add esp, 0x6c
ret 8

Function at 0x5331e0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5e00a4]
mov dword [esp + 0x58], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00532f70
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.00533030
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.0055361e
add esp, 0x5c
ret 0xc
Function at 0x5345e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5e00a4]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x224]
push edi
push ebp
mov dword [esp + 0x220], eax
lea eax, [esp + 0x20]
push str._s_s
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x28]
push ecx
call fcn.004bab20
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53468a
push edi
push ebp
lea eax, [esp + 0x20]
push 0x5827b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x28]
push ecx
call fcn.004bab20
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53468a
xor al, al
jmp 0x534704
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x10]
shl edi, 0x10
or edi, eax
push edi
call fcn.005493ed
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x5346c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 4]
push edi
push edx
mov ecx, ebx
call fcn.00533100
movzx ecx, byte [esp + 0x228]
imul ecx, ecx, 0x21
lea edx, [ecx + ebx + 8]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x5346e1
mov eax, dword [ebx + 4]
test eax, eax
je 0x534702
push eax
call fcn.00551882
add esp, 4
mov dword [ebx + 4], 0
mov al, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0055361e
add esp, 0x20c
ret 0xc
Function at 0x534720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x5e00a4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x114], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_bind
mov ebx, ecx
call esi
test eax, eax
jne 0x53478e
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.Location
push ecx
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5347bf
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunboundWC
push reloc.WS2_32.dll_getsockname
call esi
test eax, eax
je 0x534758
mov ax, word [0x583524]
mov cl, byte [0x583526]
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
push 0
push 0x56eaa8
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.005345e0
test al, al
jne 0x5347ed
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
call fcn.0055361e
add esp, 0x110
ret 4
push 0x21
call fcn.005493ed
mov dword [ebx + 4], eax
add esp, 4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea eax, [ebx + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x534818
push edi
mov edi, dword [ebx + 4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x534826
mov edx, dword [esp + 0x120]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push 0x20
push eax
mov ecx, ebx
call fcn.005331e0
mov eax, dword [ebx + 4]
test eax, eax
pop edi
je 0x534869
push eax
call fcn.00551882
add esp, 4
mov dword [ebx + 4], 0
mov ecx, dword [esp + 0x114]
pop esi
mov al, 1
pop ebx
call fcn.0055361e
add esp, 0x110
ret 4
Function at 0x549738
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x562eb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x11b4]
mov dword [esp + 0x14], 1
call fcn.0054e920
lea ecx, [esi + 0x105c]
mov byte [esp + 0x14], 0
call fcn.0054fa40
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x5498af
push ebp
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x5497a4
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5dd66c
ja 0x5497a9
mov eax, 0x881cdc
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x5dd614
lea ebp, [esi + 0x1c]
call fcn.005500f0
add esp, 4
push eax
push ebp
call fcn.00550730
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x549847
test ecx, ecx
jle 0x549877
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x549829
jmp 0x549877
test ecx, ecx
jle 0x549877
mov edi, 0xffffffe4
push ebx
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x76
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x549855
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x549895
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebp
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x54b360
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.00554980
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x54b4e5
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x54b3a7
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x54b3a7
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x54b4e5
inc ecx
mov dword [esi + 0x1038], ecx
lea ebx, [esi + 4]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00552256
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, fcn.00550730
cmp byte [eax], 0xcc
je 0x54b4de
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x54b4de
xor eax, eax
push ebp
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x5ddd6c
lea ebp, [esi + 0x1c]
call fcn.005500f0
add esp, 4
push eax
push ebp
call fcn.00550730
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x54b48e
test ecx, ecx
jle 0x54b4b8
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, 2
mov ebx, dword [esi + 0x1030]
add ebx, edx
mov dword [esi + 0x1030], ebx
add bl, 0x43
xor byte [eax], bl
inc eax
lea ebx, [edi + eax]
cmp ebx, ecx
jl 0x54b46d
mov ebx, dword [esp + 0x10]
jmp 0x54b4b8
test ecx, ecx
jle 0x54b4b8
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
add dl, 0x76
xor byte [eax], dl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x54b49b
lea eax, [esp + 0x14]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1008
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
add esp, 0x1008
ret
Function at 0x54b5a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x5dde2c
call fcn.00550160
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5dde18
mov esi, eax
call fcn.00550160
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x54b629
push 0x5dde00
call fcn.00550160
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x54b629
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x54b616
jne 0x54b62d
cmp dword [esp + 0x14], 1
jae 0x54b62d
pop edi
mov byte [ebp + 0x127c], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x54b663
cmp eax, 5
mov byte [0x881ca2], 1
jne 0x54b657
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x54b657
mov ecx, dword [0x5dd5fc]
lea edx, [ecx + ecx]
mov dword [0x5dd5fc], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x54bb10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x54bb1e
mov al, 1
pop esi
ret
push edi
push 0x5ddff8
lea edi, [esi + 0x20]
call fcn.00550160
push eax
push edi
call fcn.0054b360
mov ecx, dword [esi + 0x11fc]
lea eax, [esi + 0x1228]
push eax
push ecx
call dword [esi + 0x1284]
mov eax, dword [esi + 0x14]
add esp, 0x14
test eax, eax
mov byte [esi + 0x1c], 0
je 0x54bb5c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1224]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54bb98
push 0x5ddfe0
call fcn.00550160
push eax
push edi
call fcn.0054b360
mov eax, dword [esi + 0x1224]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1220]
test eax, eax
je 0x54bbb6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5ddfcc
mov dword [esi + 0x1280], 0
mov dword [esi + 0x1284], 0
call fcn.00550160
push eax
push edi
call fcn.0054b360
add esp, 0xc
mov al, 1
pop edi
pop esi
ret

Function at 0x54bce0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x54bd2b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x54bd2b
lea edi, [esp + 0x10]
push 0x5de050
call fcn.00550160
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54bd93
push 0x5de044
call fcn.00550160
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x54bd93
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5de020
call fcn.00550160
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.0054b360
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54bdb3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x54bdd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4