joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40583f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x423cc0], 0x44
push eax
xor eax, eax
push 0x423cc0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40587a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405c31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4230c0
push esi
call fcn.00406065
push esi
call fcn.00405be2
mov edi, eax
test edi, edi
jne 0x405c52
xor eax, eax
jmp 0x405ca4
push edi
call fcn.004062f1
test byte [0x4262f8], 0x80
je 0x405c6b
mov al, byte [edi]
test al, al
je 0x405c4e
cmp al, 0x5c
je 0x405c4e
sub edi, esi
push esi
call fcn.0040607b
cmp eax, edi
push esi
jle 0x405c8e
call fcn.00406537
test eax, eax
je 0x405c86
test byte [eax], 0x10
je 0x405c4e
push esi
call fcn.00405b95
jmp 0x405c6d
call fcn.00405b4e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d1b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d37
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d3a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d69
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405dae
mov eax, edi
dec edi
test eax, eax
jne 0x405d74
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405da8
Function at 0x405db2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040655e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405dd6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423e48], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e48
je 0x405e1a
push 1
push 0
push esi
call fcn.00405d3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f15
cmp eax, edi
jg 0x405f15
mov esi, 0x4238c0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f15
cmp eax, edi
jg 0x405f15
push esi
push ebp
push str._s_s_r_n
push 0x4234c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4262f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406099
push 4
push 0xc0000000
push esi
call fcn.00405d3a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f0f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f08
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f08
cmp edi, dword [esp + 0x18]
jne 0x405f08
push str._Rename__r_n
push esi
call fcn.00405ca9
test eax, eax
jne 0x405f1c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406065
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234c0
push eax
call fcn.00405cf5
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405ca9
test eax, eax
je 0x405ed3
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405f43
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f38
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ed5
Function at 0x405f4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fbc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fab
cmp dword [ebp + 0x14], 1
je 0x405fad
cmp dword [ebp + 0x14], 2
je 0x405fad
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40638a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063af
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x4063a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x406422
cmp dword [0x424a60], ebx
je 0x406422
cmp byte [0x424660], bl
je 0x4063ee
cmp dword [0x40a8a8], 0xffffffff
jne 0x4063f7
push 4
push 0x40000000
push 0x424660
call fcn.00405d3a
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x406422
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x406422
push esi
mov esi, 0x425280
push 0x40aaf0
push esi
call fcn.00406088
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040607b
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4065d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42424c], esi
push edi
jne 0x40660e
mov ecx, 0x424248
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4065ea
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x424648
jl 0x4065e5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406643
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424248]
xor eax, esi
inc ecx
dec edx
jne 0x406626
pop edi
pop esi
not eax
ret 0xc
Function at 0x24b2e44
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x25b6008], 0x8088405
inc edx
mov dword [ebx + 0x25b6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x24d7ebc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x24d7ec2
ret

Function at 0x24e41f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x24e43a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.024b4a4c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x24e43b8
call fcn.024b46a8
mov eax, ebx
call fcn.024d5da0
mov edi, eax
dec edi
test edi, edi
jl 0x24e42a8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.024d5d74
mov edx, dword [0x250ff24]
call fcn.024b364c
test al, al
je 0x24e42a4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.024d5d74
lea edx, [ebp - 0x14]
call fcn.0250319c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.024b4a4c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.024b471c
inc esi
dec edi
jne 0x24e4256
mov al, byte [0x24e43bc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x24e43c8
mov eax, dword [ebp - 0xc]
call fcn.024bdbdc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.024b4434
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0250319c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x24e43b8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0250319c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x24e43b8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x24e43b8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x24e43d4
call fcn.024b9a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x24e43a8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.024b43c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.024b43c0
lea eax, [ebp - 0x14]
call fcn.024b439c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.024b43c0
ret
Function at 0x25503e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x2550416
mov eax, ebx
call fcn.02550e9c
cmp dword [ebx + 0x40], 0
je 0x255040f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x2550487
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x2550479
cmp dword [ebx + 8], 0
je 0x2550438
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x255044a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x2550479
cmp dword [ebx + 8], 0
je 0x255042b
cmp eax, 3
je 0x255045d
dec eax
jne 0x255042b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x255042b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x255042b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x25504a5
cmp dword [ebx + 0x14], 0xcc
je 0x25504a5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.025504b0
pop ebx
ret
Function at 0x2578510
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x11], 0xca
jne 0x2578540
push ebx
call fcn.0257e5f0
cmp byte [ebx + 0x3d], 0
pop ecx
je 0x2578539
mov dword [ebx + 0x11], 0xcf
mov al, 1
pop ebx
pop ebp
ret
mov dword [ebx + 0x11], 0xcb
cmp dword [ebx + 0x11], 0xcb
jne 0x25785ac
mov edx, dword [ebx + 0x183]
cmp byte [edx + 0x10], 0
je 0x25785a4
cmp dword [ebx + 8], 0
je 0x2578562
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
push ebx
mov eax, dword [ebx + 0x183]
call dword [eax]
pop ecx
test eax, eax
jne 0x2578575
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
je 0x25785a4
cmp dword [ebx + 8], 0
je 0x2578555
cmp eax, 3
je 0x2578588
dec eax
jne 0x2578555
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x2578555
mov edx, dword [ebx + 0x10f]
add dword [eax + 8], edx
jmp 0x2578555
mov ecx, dword [ebx + 0x72]
mov dword [ebx + 0x7a], ecx
jmp 0x25785ca
cmp dword [ebx + 0x11], 0xcc
je 0x25785ca
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x11]
mov dword [eax + 0x18], edx
push ebx
mov ecx, dword [ebx]
call dword [ecx]
pop ecx
push ebx
call fcn.025785d4
pop ecx
pop ebx
pop ebp
ret

Function at 0x25785d4
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x11], 0xcc
je 0x2578659
push ebx
mov eax, dword [ebx + 0x173]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x6e], edx
mov dword [ebx + 0x11], 0xcc
jmp 0x2578659
mov eax, dword [ebx + 8]
test eax, eax
je 0x2578616
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x56]
mov dword [eax + 8], edx
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
mov esi, dword [ebx + 0x6e]
lea eax, [ebx + 0x6e]
push 0
push eax
push 0
push ebx
mov edx, dword [ebx + 0x177]
call dword [edx + 4]
add esp, 0x10
cmp esi, dword [ebx + 0x6e]
jne 0x2578637
xor eax, eax
jmp 0x2578676
mov edx, dword [ebx + 0x6e]
cmp edx, dword [ebx + 0x56]
jb 0x25785ff
push ebx
mov ecx, dword [ebx + 0x173]
call dword [ecx + 4]
pop ecx
push ebx
mov eax, dword [ebx + 0x173]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x6e], edx
mov ecx, dword [ebx + 0x173]
cmp byte [ecx + 8], 0
jne 0x2578637
cmp byte [ebx + 0x3e], 0
mov eax, 0xce
jne 0x2578671
dec eax
mov dword [ebx + 0x11], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x259d5cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp byte [edx + 8], 3
je 0x259d762
mov ecx, dword [edx]
xor ebx, ebx
mov dword [ebp - 4], ecx
xor esi, esi
test byte [edx + 8], 2
je 0x259d625
movzx edi, byte [eax]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
movzx edi, byte [eax + 1]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
xor ecx, ecx
movzx edi, byte [eax + 2]
inc ebx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
jmp 0x259d635
xor ecx, ecx
mov cl, byte [edx + 9]
movzx edi, byte [eax + 3]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
test byte [edx + 8], 4
je 0x259d64b
xor ecx, ecx
mov cl, byte [edx + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
xor ecx, ecx
lea eax, [ebp - 0x20]
cmp ebx, ecx
jle 0x259d66b
cmp dword [eax], 0
jg 0x259d65f
xor edi, edi
mov dword [eax], edi
jmp 0x259d663
mov si, 1
inc ecx
add eax, 4
cmp ebx, ecx
jg 0x259d654
test si, si
je 0x259d762
mov al, byte [edx + 9]
sub al, 2
je 0x259d690
sub al, 2
je 0x259d6b0
sub al, 4
je 0x259d6eb
sub al, 8
je 0x259d712
jmp 0x259d762
mov ecx, dword [edx + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp ecx, edx
jbe 0x259d762
shr byte [eax], 1
and byte [eax], 0x55
inc eax
inc edx
cmp ecx, edx
ja 0x259d6a0
jmp 0x259d762
mov esi, dword [ebp - 0x20]
mov ebx, 0xf0
mov ecx, esi
mov edx, dword [edx + 4]
sar ebx, cl
mov ecx, esi
mov esi, 0xf
sar esi, cl
mov ecx, esi
and bl, 0xf0
or bl, cl
xor esi, esi
cmp edx, esi
mov eax, dword [ebp + 0xc]
jbe 0x259d762
mov ecx, dword [ebp - 0x20]
inc esi
shr byte [eax], cl
and byte [eax], bl
inc eax
cmp edx, esi
ja 0x259d6dc
jmp 0x259d762
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
imul ebx
mov dword [ebp - 8], eax
xor esi, esi
cmp esi, dword [ebp - 8]
jae 0x259d762
mov eax, esi
xor edx, edx
div ebx
mov ecx, dword [ebp + edx*4 - 0x20]
shr byte [edi], cl
inc edi
inc esi
cmp esi, dword [ebp - 8]
jb 0x259d6fd
jmp 0x259d762
mov edi, dword [ebp + 0xc]
mov eax, ebx
imul dword [ebp - 4]
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x259d762
movzx esi, byte [edi]
shl esi, 8
xor eax, eax
mov al, byte [edi + 1]
xor edx, edx
add si, ax
mov eax, dword [ebp - 0xc]
div ebx
mov ecx, dword [ebp + edx*4 - 0x20]
shr si, cl
movzx eax, si
sar eax, 8
mov edx, esi
mov byte [edi], al
inc edi
and dl, 0xff
mov byte [edi], dl
inc edi
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jb 0x259d72a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x25a9e98
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x25c7570
test edx, edx
jne 0x25a9eb6
xor eax, eax
jmp 0x25a9f9e
xor eax, 0xffffffff
cmp ebx, 8
jb 0x25a9f7e
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
sub ebx, 8
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
cmp ebx, 8
mov eax, esi
jae 0x25a9ec2
test ebx, ebx
je 0x25a9f9b
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
dec ebx
mov eax, esi
jne 0x25a9f82
xor eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
Function at 0x25aae00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x22]
mov eax, dword [ebx + 0x32]
sub eax, dword [ebx + 0x6a]
sub eax, dword [ebx + 0x62]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x25aae35
cmp dword [ebx + 0x62], 0
jne 0x25aae35
cmp dword [ebx + 0x6a], 0
jne 0x25aae35
mov dword [ebp - 8], esi
jmp 0x25aaec4
cmp dword [ebp - 8], 0xffffffff
jne 0x25aae43
dec dword [ebp - 8]
jmp 0x25aaec4
mov edx, dword [ebx + 0x22]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x62]
ja 0x25aaec4
push esi
mov eax, dword [ebx + 0x2e]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.0258fb14
add esp, 0xc
sub dword [ebx + 0x66], esi
sub dword [ebx + 0x62], esi
sub dword [ebx + 0x52], edi
mov eax, dword [ebx + 0x42]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3a]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x25aae91
mov cx, word [ebp - 4]
sub cx, si
jmp 0x25aae93
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x25aae7a
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x36]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x25aaeb9
mov cx, word [ebp - 4]
sub cx, si
jmp 0x25aaebb
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x25aaea2
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x25aaf26
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x2e]
add edx, dword [ebx + 0x62]
add edx, dword [ebx + 0x6a]
push edx
push edi
call fcn.025aab98
add esp, 0xc
add dword [ebx + 0x6a], eax
cmp dword [ebx + 0x6a], 3
jb 0x25aaf11
mov ecx, dword [ebx + 0x2e]
mov eax, dword [ebx + 0x62]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x3e], eax
mov ecx, dword [ebx + 0x4e]
shl eax, cl
mov edx, dword [ebx + 0x2e]
mov ecx, dword [ebx + 0x62]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4a]
mov dword [ebx + 0x3e], eax
cmp dword [ebx + 0x6a], 0x106
jae 0x25aaf26
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x25aae0f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ed8c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41ed92
ret
Function at 0x4062f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46054b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00455635
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00453547
mov eax, dword [eax]
push 0x478c30
push eax
call fcn.00446444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004558c0
test bl, bl
je 0x406372
push 0x478c30
lea ecx, [esp + 0xc]
call fcn.00455c50
push 0x478c3c
lea ecx, [esp + 0xc]
call fcn.00455c50
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4063ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004558c0
jmp 0x406479
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x406432
lea edx, [esp + 0x7c]
push 0x478c38
push edx
call fcn.00446444
add esp, 8
test eax, eax
je 0x406432
lea eax, [esp + 0x7c]
push 0x478c34
push eax
call fcn.00446444
add esp, 8
test eax, eax
je 0x406432
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004558c0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406ce2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc