joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e781
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
jmp 0x44e898
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x44e7fe
cmp eax, 0x11
je 0x44e80e
cmp eax, 0x12
je 0x44e80e
cmp eax, 0x13
je 0x44e82a
cmp eax, 0x10
je 0x44e888
mov eax, 0
jmp 0x44e88d
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x44e88d
mov eax, dword [ebp - 0x24]
xor al, 1
cmp eax, 0
je 0x44e821
xor eax, eax
jmp 0x44e8b4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x44e88d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
mov dword [ebp - 0x20], eax
mov eax, dword [0x53795c]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x44e86e
mov eax, dword [0x537960]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x44e86e
xor eax, eax
jmp 0x44e871
xor eax, eax
inc eax
cmp eax, 0
je 0x44e87f
jmp 0x44e8a6
xor eax, eax
jmp 0x44e8b4
jmp 0x44e8a6
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jb 0x44e7c3
mov eax, dword [ebp - 0x1c]
cmp eax, 2
sete al
xor ah, ah
cwde
leave
ret 4
Function at 0x455cbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x3c
mov eax, dword [0x53dd04]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, 8
jne 0x455ce2
mov eax, dword [ebp - 0xc]
jmp 0x456030
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x1e
je 0x455d39
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
push eax
call fcn.00439a3e
push eax
push 0xc
push dword [0x54749c]
call fcn.00452889
push eax
push 3
push dword [0x54748c]
call fcn.00452889
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042c0ce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
xchg edx, eax
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
xchg edx, eax
sub eax, edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
cmp eax, edx
jle 0x455daf
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x80000
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and eax, 0x80000
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x44], eax
push 0
push dword [ebp - 0x40]
call fcn.0042a564
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
xor al, 1
cmp eax, 0
je 0x455e0f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
or eax, 0x80000
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, 0
mov dword [ebp - 0x30], 0
jmp 0x455edc
Function at 0x461b08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sar eax, 0x13
and eax, 0xf
mov dword [ebp - 0x18], eax
mov eax, 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
and eax, 0xff
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
dec edi
mov al, byte [eax + edi]
and eax, 0xff
push eax
call fcn.004499b4
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00444136
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, edx
sete al
xor ah, ah
cwde
xor al, 1
cmp eax, 0
je 0x461b9f
mov eax, dword [ebp + 0x14]
dec eax
mov dword [ebp + 0x14], eax
mov al, 0x2e
and eax, 0xff
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call fcn.00442c16
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.DLL_strlen]
add esp, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x461b39
mov eax, dword [ebp + 0x14]
leave
ret 0x10

Function at 0x4853b5
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 0x100
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [0x53dce0], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
mov eax, 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
and eax, 1
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x485410
mov eax, dword [ebp - 0xc]
shr eax, 1
jmp 0x48541b
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jne 0x4853f5
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [0x53dce0]
mov edi, dword [ebp - 0x10]
dec edi
mov dword [eax + edi*4], edx
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x101
jne 0x4853e2
leave
ret
Function at 0x485dc2
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0xf0000000
push 0x18
push 0
push 0
push 0x53dce4
call dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
leave
ret

Function at 0x485dfe
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
push 0x40
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], 0
push dword [ebp + 0x10]
call fcn.00485452
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
je 0x485e8d
cmp eax, 3
je 0x485e94
cmp eax, 4
je 0x485e9b
cmp eax, 5
je 0x485ea2
cmp eax, 6
je 0x485ea9
push dword [ebp + 0x10]
call fcn.0044a1d8
push eax
push 0xb
push dword [0x54749c]
call fcn.00452889
push eax
push 3
push dword [0x54748c]
call fcn.00452889
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042c0ce
mov eax, 0
jmp 0x485eae
mov eax, 0x8003
jmp 0x485eae
mov eax, 0x8004
jmp 0x485eae
mov eax, 0x800c
jmp 0x485eae
mov eax, 0x800d
jmp 0x485eae
mov eax, 0x800e
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [0x53dce4]
call dword [sym.imp.ADVAPI32.DLL_CryptCreateHash]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptHashData]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptGetHashParam]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x485efd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, dword [ebp + 8]
xchg edx, eax
mov eax, dword [0x53dcec]
mov dword [eax], edx
mov eax, 0
mov dword [0x53dce8], 0
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x53dcec]
mov edi, dword [ebp - 0x10]
dec edi
mov eax, dword [eax + edi*4]
sar eax, 0x1e
push eax
pop edx
xchg edx, eax
mov eax, dword [0x53dcec]
mov edi, dword [ebp - 0x10]
dec edi
mov eax, dword [eax + edi*4]
xchg edx, eax
xor eax, edx
push edx
mov edx, 0x6c078965
mov ecx, edx
imul ecx
pop edx
mov edx, dword [ebp - 0x10]
add eax, edx
mov edx, eax
mov eax, dword [0x53dcec]
mov edi, dword [ebp - 0x18]
dec edi
mov dword [eax + edi*4], edx
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x270
jne 0x485f39
leave
ret 4
Function at 0x486e72
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, dword [0x53dd14]
mov edx, dword [0x53dd10]
cmp eax, edx
jbe 0x486ecd
call fcn.00486865
push eax
push dword [ebp + 8]
call fcn.0045adbb
push dword [ebp + 8]
call fcn.00486e16
mov eax, dword [0x53dd0c]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push 0x4000000
call fcn.00486a95
mov eax, dword [0x53dd14]
sub eax, 0x14
mov dword [0x53dd14], eax
mov eax, dword [ebp - 0xc]
mov dword [0x53dd0c], eax
mov eax, dword [0x53dd14]
mov edx, dword [0x53dd10]
cmp eax, edx
jne 0x486f0c
mov eax, dword [0x53dd14]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x4000000
je 0x486f0c
mov eax, dword [0x53dd14]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x5000000
je 0x486f0c
jmp 0x486f10
xor eax, eax
jmp 0x486f13
xor eax, eax
inc eax
cmp eax, 0
je 0x486f35
push dword [ebp + 8]
call fcn.0048767b
xor eax, eax
push eax
call fcn.004762ae
push 0xfffffffffffffffe
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
push dword [ebp + 8]
call fcn.0048772a
mov eax, 0x7fffffff
jmp 0x486f45
leave
cmp dword [ebp - 4], eax
jb 0x486f44
mov edx, eax
mov eax, dword [0x51502c]
mov dword [eax + 0x24], edx
mov edi, dword [ebp - 8]
cmp edi, 0
je 0x486f61
jmp edi
pop edi
cmp edi, 0
je 0x486f69
jmp edi
leave
ret 4
Function at 0x49279b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0x54a82c
mov dword [ebp - 0x14], str.0000000000000000000000000000000
mov eax, dword [ebp + 0x10]
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov cl, dl
shl eax, cl
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
jle 0x4927e9
mov eax, dword [ebp + 0xc]
inc eax
sar eax, 2
inc eax
shl eax, 2
sub esp, eax
and esp, 0xfffffffc
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004429fd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x27
je 0x49283e
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x2c
jne 0x49282e
mov eax, 0x2e
and eax, 0xff
mov dword [ebp - 0xc], 0x2e
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x4927ef
mov al, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
add eax, edx
push eax
push dword [ebp - 0x18]
call fcn.0048e46f
xor al, 1
cmp eax, 0
je 0x492895
mov eax, 0xffffffff
xchg edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push 0x7ff80000
push 0
fld qword [esp]
add esp, 8
jmp 0x4928a3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00441fb4
leave
ret 0x10

Function at 0x492f53
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
mov eax, 0xffffffff
cmp eax, edx
setne al
xor ah, ah
cwde
leave
ret 4

Function at 0x492f91
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x492fd2
mov eax, 0xffffffff
jmp 0x492fd5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x492fdf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x493020
mov eax, 0xffffffff
jmp 0x493023
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x49366e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.0045131a
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0049352d
cmp eax, 0
je 0x49369d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x4936a6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne al
xor ah, ah
cwde
leave
ret 4
Function at 0x4947f7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.0045131a
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call fcn.0045131a
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.DLL__wrename]
add esp, 8
mov edx, eax
mov eax, 0
cmp eax, edx
sete al
xor ah, ah
cwde
leave
ret 8
Function at 0x49a2c4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov dword [ebp - 0xc], eax
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x49a408
push 0x64
call fcn.0043e590
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x49a3eb
mov eax, dword [ebp - 0x1c]
cmp eax, 0
je 0x49a33a
mov esi, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0x3d
jne 0x49a33a
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 1]
cmp al, 0
jne 0x49a33a
jmp 0x49a33e
xor eax, eax
jmp 0x49a341
xor eax, eax
inc eax
cmp eax, 0
je 0x49a3d9
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00444295
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00444295
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 2]
cmp al, 0
jne 0x49a3af
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 3]
cmp al, 0
jne 0x49a3af
jmp 0x49a3b3
xor eax, eax
jmp 0x49a3b6
xor eax, eax
inc eax
cmp eax, 0
je 0x49a3c2
jmp 0x49a3f4
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x14], eax
mov eax, 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
jne 0x49a318
push dword [ebp - 0x18]
call fcn.0043d912
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0045e7ba
leave
ret
Function at 0x49a461
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xe4
push 8
call fcn.004876bc
push eax
call fcn.004543ba
mov dword [ebp - 0xc], eax
call fcn.004876bc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, 0x9c
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xb4]
mov al, byte [eax + 0x9a]
cmp al, 1
setne al
xor ah, ah
cwde
mov dword [ebp - 0xec], eax
push 0
push dword [ebp - 0x18]
push 8
push str.Windows
call fcn.004441d1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x49a5ac
cmp eax, 6
je 0x49a607
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a579
mov eax, dword [ebp - 0xe8]
cmp eax, 0x4f3d
jl 0x49a549
mov eax, str.Server_2022
jmp 0x49a577
mov eax, dword [ebp - 0xe8]
cmp eax, 0x42ee
jl 0x49a55d
mov eax, str.Server_2019
jmp 0x49a577
xor eax, eax
inc eax
je 0x49a569
mov eax, str.Server_2016
jmp 0x49a577
call fcn.0049a56e
mov eax, dword [ebp - 0xe8]
cmp eax, 0x55f0
jl 0x49a58d
mov eax, 0x54aaac
jmp 0x49a5a7
xor eax, eax
inc eax
je 0x49a599
mov eax, 0x54aaaf
jmp 0x49a5a7
call fcn.0049a59e
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49a5db
cmp eax, 1
je 0x49a5e2
cmp eax, 2
je 0x49a5e9
call fcn.0049a5d2
mov eax, 0x54aa26
jmp 0x49a602
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a5fd
mov eax, str.Server_2003_R2
jmp 0x49a602
mov eax, str.Server_2003
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49a63d
cmp eax, 1
je 0x49a658
cmp eax, 2
je 0x49a673
cmp eax, 3
je 0x49a68e
call fcn.0049a634
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a66c
mov eax, str.Server_2008_R1
jmp 0x49a671
mov eax, 0x54aa65
jmp 0x49a6a7
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a687
mov eax, str.Server_2012
jmp 0x49a68c
mov eax, 0x54aa73
jmp 0x49a6a7
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a6a2
mov eax, str.Server_2012_R2
jmp 0x49a6a7
mov eax, 0x54aa84
Function at 0x49aa56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, 0x1000
mov dword [ebp - 0x18], 0x1000
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, 0
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
add eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x49aafa
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x49aafa
mov eax, 2
push edx
mov edx, dword [ebp - 0x18]
imul edx
pop edx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.DLL_realloc]
add esp, 8
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x49aa78
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
leave
ret 8
Function at 0x50053e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
leave
ret 4

Function at 0x501962
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x501990
cmp eax, 5
je 0x5019c7
mov dword [ebp - 0x20], 0
jmp 0x501a7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
jmp 0x501a7c
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.0043da1c
mov dword [ebp - 0x14], eax
jmp 0x501a52
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xf
je 0x501a0b
mov eax, dword [ebp - 0x1c]
cmp eax, 0x11
je 0x501a0b
xor eax, eax
jmp 0x501a0e
xor eax, eax
inc eax
cmp eax, 0
je 0x501a47
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x501a6a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jae 0x501a6a
jmp 0x501a6e
xor eax, eax
jmp 0x501a71
xor eax, eax
inc eax
cmp eax, 0
jne 0x5019e6
mov eax, dword [0x53dd04]
mov dword [ebp - 0x18], eax
mov eax, 4
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
leave
ret 8

Function at 0x50246f
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
je 0x50249d
cmp eax, 0xf
je 0x5024cb
mov eax, 0
jmp 0x502712
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0043d912
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x5024c9
mov eax, 0
jmp 0x502712
jmp 0x5024dd
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x50270f