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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x20
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00441278
push eax
call fcn.0044f692
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, 0
mov dword [ebp - 0x28], 0
jmp 0x44f88d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xf
je 0x44f851
mov eax, dword [ebp - 0x24]
cmp eax, 0x12
je 0x44f851
mov eax, dword [ebp - 0x24]
cmp eax, 0x11
je 0x44f851
mov eax, dword [ebp - 0x24]
cmp eax, 0x13
je 0x44f851
xor eax, eax
jmp 0x44f854
xor eax, eax
inc eax
cmp eax, 0
je 0x44f882
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
xor eax, eax
inc eax
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
push eax
push dword [ebp - 0x10]
call fcn.0044ed5b
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jb 0x44f818
mov eax, dword [ebp + 0xc]
xor al, 1
cmp eax, 0
je 0x44f8cf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x28]
shl eax, 4
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
leave
ret 0x10
Function at 0x4520e7
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 0x4521fe
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x452164
cmp eax, 0x11
je 0x452174
cmp eax, 0x12
je 0x452174
cmp eax, 0x13
je 0x452190
cmp eax, 0x10
je 0x4521ee
mov eax, 0
jmp 0x4521f3
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x4521f3
mov eax, dword [ebp - 0x24]
xor al, 1
cmp eax, 0
je 0x452187
xor eax, eax
jmp 0x45221a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x4521f3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
call fcn.0044ebdc
mov dword [ebp - 0x20], eax
mov eax, dword [0x570a34]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x4521d4
mov eax, dword [0x570a38]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x4521d4
xor eax, eax
jmp 0x4521d7
xor eax, eax
inc eax
cmp eax, 0
je 0x4521e5
jmp 0x45220c
xor eax, eax
jmp 0x45221a
jmp 0x45220c
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 0x452129
mov eax, dword [ebp - 0x1c]
cmp eax, 2
sete al
xor ah, ah
cwde
leave
ret 4
Function at 0x459624
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x3c
mov eax, dword [0x576ddc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, 8
jne 0x459648
mov eax, dword [ebp - 0xc]
jmp 0x459996
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 0x45969f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
push eax
call fcn.0043d3a4
push eax
push 0xc
push dword [0x5813e0]
call fcn.004561ef
push eax
push 3
push dword [0x5813d0]
call fcn.004561ef
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fa34
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 0x459715
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.0042e00f
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 0x459775
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 0x459842
Function at 0x46546e
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.0044d31a
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00447a9c
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 0x465505
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.0044657c
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 0x46549f
mov eax, dword [ebp + 0x14]
leave
ret 0x10

Function at 0x488d1f
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 [0x576db8], 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 0x488d7a
mov eax, dword [ebp - 0xc]
shr eax, 1
jmp 0x488d85
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 0x488d5f
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [0x576db8]
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 0x488d4c
leave
ret
Function at 0x48972c
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 0x576dbc
call dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
leave
ret

Function at 0x489768
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.00488dbc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
je 0x4897f7
cmp eax, 3
je 0x4897fe
cmp eax, 4
je 0x489805
cmp eax, 5
je 0x48980c
cmp eax, 6
je 0x489813
push dword [ebp + 0x10]
call fcn.0044db3e
push eax
push 0xb
push dword [0x5813e0]
call fcn.004561ef
push eax
push 3
push dword [0x5813d0]
call fcn.004561ef
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042fa34
mov eax, 0
jmp 0x489818
mov eax, 0x8003
jmp 0x489818
mov eax, 0x8004
jmp 0x489818
mov eax, 0x800c
jmp 0x489818
mov eax, 0x800d
jmp 0x489818
mov eax, 0x800e
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [0x576dbc]
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 0x489867
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 [0x576dc4]
mov dword [eax], edx
mov eax, 0
mov dword [0x576dc0], 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 [0x576dc4]
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 [0x576dc4]
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 [0x576dc4]
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 0x4898a3
leave
ret 4
Function at 0x48a7dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, dword [0x576dec]
mov edx, dword [0x576de8]
cmp eax, edx
jbe 0x48a837
call fcn.0048a1cf
push eax
push dword [ebp + 8]
call fcn.0045e721
push dword [ebp + 8]
call fcn.0048a780
mov eax, dword [0x576de4]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push 0x4000000
call fcn.0048a3ff
mov eax, dword [0x576dec]
sub eax, 0x14
mov dword [0x576dec], eax
mov eax, dword [ebp - 0xc]
mov dword [0x576de4], eax
mov eax, dword [0x576dec]
mov edx, dword [0x576de8]
cmp eax, edx
jne 0x48a876
mov eax, dword [0x576dec]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x4000000
je 0x48a876
mov eax, dword [0x576dec]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x5000000
je 0x48a876
jmp 0x48a87a
xor eax, eax
jmp 0x48a87d
xor eax, eax
inc eax
cmp eax, 0
je 0x48a89f
push dword [ebp + 8]
call fcn.0048afe5
xor eax, eax
push eax
call fcn.00479c14
push 0xfffffffffffffffe
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
push dword [ebp + 8]
call fcn.0048b094
mov eax, 0x7fffffff
jmp 0x48a8af
leave
cmp dword [ebp - 4], eax
jb 0x48a8ae
mov edx, eax
mov eax, dword [0x54802c]
mov dword [eax + 0x24], edx
mov edi, dword [ebp - 8]
cmp edi, 0
je 0x48a8cb
jmp edi
pop edi
cmp edi, 0
je 0x48a8d3
jmp edi
leave
ret 4
Function at 0x496105
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0x58478c
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 0x496153
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.00446363
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x27
je 0x4961a8
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x2c
jne 0x496198
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 0x496159
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.00491dd9
xor al, 1
cmp eax, 0
je 0x4961ff
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 0x49620d
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.0044591a
leave
ret 0x10

Function at 0x4968bd
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 0x4968fb
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 0x49693c
mov eax, 0xffffffff
jmp 0x49693f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x496949
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 0x49698a
mov eax, 0xffffffff
jmp 0x49698d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x496fd8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00454c80
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00496e97
cmp eax, 0
je 0x497007
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x497010
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 0x498161
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00454c80
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call fcn.00454c80
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 0x49dc2e
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 0x49dd72
push 0x64
call fcn.00441ef6
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 0x49dd55
mov eax, dword [ebp - 0x1c]
cmp eax, 0
je 0x49dca4
mov esi, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0x3d
jne 0x49dca4
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 1]
cmp al, 0
jne 0x49dca4
jmp 0x49dca8
xor eax, eax
jmp 0x49dcab
xor eax, eax
inc eax
cmp eax, 0
je 0x49dd43
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00447bfb
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.00447bfb
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 0x49dd19
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 3]
cmp al, 0
jne 0x49dd19
jmp 0x49dd1d
xor eax, eax
jmp 0x49dd20
xor eax, eax
inc eax
cmp eax, 0
je 0x49dd2c
jmp 0x49dd5e
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 0x49dc82
push dword [ebp - 0x18]
call fcn.00441278
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.00462120
leave
ret
Function at 0x49ddcb
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.0048b026
push eax
call fcn.00457d20
mov dword [ebp - 0xc], eax
call fcn.0048b026
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.00447b37
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x49df16
cmp eax, 6
je 0x49df71
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49dee3
mov eax, dword [ebp - 0xe8]
cmp eax, 0x4f3d
jl 0x49deb3
mov eax, str.Server_2022
jmp 0x49dee1
mov eax, dword [ebp - 0xe8]
cmp eax, 0x42ee
jl 0x49dec7
mov eax, str.Server_2019
jmp 0x49dee1
xor eax, eax
inc eax
je 0x49ded3
mov eax, str.Server_2016
jmp 0x49dee1
call fcn.0049ded8
mov eax, dword [ebp - 0xe8]
cmp eax, 0x55f0
jl 0x49def7
mov eax, 0x584a0c
jmp 0x49df11
xor eax, eax
inc eax
je 0x49df03
mov eax, 0x584a0f
jmp 0x49df11
call fcn.0049df08
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49df45
cmp eax, 1
je 0x49df4c
cmp eax, 2
je 0x49df53
call fcn.0049df3c
mov eax, 0x584986
jmp 0x49df6c
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49df67
mov eax, str.Server_2003_R2
jmp 0x49df6c
mov eax, str.Server_2003
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49dfa7
cmp eax, 1
je 0x49dfc2
cmp eax, 2
je 0x49dfdd
cmp eax, 3
je 0x49dff8
call fcn.0049df9e
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49dfd6
mov eax, str.Server_2008_R1
jmp 0x49dfdb
mov eax, 0x5849c5
jmp 0x49e011
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49dff1
mov eax, str.Server_2012
jmp 0x49dff6
mov eax, 0x5849d3
jmp 0x49e011
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49e00c
mov eax, str.Server_2012_R2
jmp 0x49e011
mov eax, 0x5849e4
Function at 0x49e3c0
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 0x49e464
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 0x49e464
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 0x49e3e2
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
leave
ret 8