joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40005410
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ecx + 2]
cdq
push 3
pop esi
idiv esi
lea eax, [eax*4 + 1]
cmp dword [ebp + 0x14], eax
jge 0x40005433
xor eax, eax
jmp 0x40005561
mov eax, dword [ebp + 0xc]
cmp eax, 3
mov esi, dword [ebp + 8]
push ebx
push edi
push 0x3f
pop ebx
push 2
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x10]
pop edi
jl 0x400054d0
push 3
xor edx, edx
pop ebx
div ebx
push 0x3f
pop ebx
mov dword [ebp + 0x14], eax
lea eax, [eax + eax*2]
mov edx, eax
mov eax, dword [ebp + 0xc]
sub eax, edx
mov dword [ebp + 8], eax
movzx edx, byte [esi]
inc esi
movzx eax, byte [esi]
shl edx, 8
or edx, eax
inc esi
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, ebx
movsx ax, byte [eax + 0x40027998]
mov word [ecx], ax
mov eax, edx
shr eax, 0xc
and eax, ebx
movsx ax, byte [eax + 0x40027998]
add ecx, edi
mov word [ecx], ax
mov eax, edx
shr eax, 6
and eax, ebx
movsx ax, byte [eax + 0x40027998]
add ecx, edi
mov word [ecx], ax
and edx, ebx
movsx ax, byte [edx + 0x40027998]
add ecx, edi
mov word [ecx], ax
inc esi
add ecx, edi
dec dword [ebp + 0x14]
jne 0x4000546a
mov eax, dword [ebp + 8]
dec eax
je 0x40005519
dec eax
jne 0x40005551
xor eax, eax
mov ah, byte [esi]
mov al, byte [esi + 1]
mov edx, eax
shr edx, 0xa
and edx, ebx
movsx dx, byte [edx + 0x40027998]
mov word [ecx], dx
mov edx, eax
shr edx, 4
and edx, ebx
movsx dx, byte [edx + 0x40027998]
add ecx, edi
mov word [ecx], dx
add ecx, edi
and eax, 0xf
movsx ax, byte [eax*4 + 0x40027998]
mov word [ecx], ax
jmp 0x40005548
movzx eax, byte [esi]
mov edx, eax
shr edx, 2
and edx, ebx
movsx dx, byte [edx + 0x40027998]
and eax, 3
mov word [ecx], dx
shl eax, 4
movsx ax, byte [eax + 0x40027998]
add ecx, edi
mov word [ecx], ax
add ecx, edi
mov word [ecx], 0x3d
add ecx, edi
mov word [ecx], 0x3d
add ecx, edi
and word [ecx], 0
mov eax, ecx
sub eax, dword [ebp + 0x10]
add eax, edi
sar eax, 1
pop edi
dec eax
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x40005909
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x40005925
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4000591c
pop esi
ret
Function at 0x40005e24
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
call fcn.4000595c
and dword [ebp - 4], 0
mov edi, eax
shl edi, 2
test edi, edi
pop ecx
mov dword [ebp - 8], eax
jle 0x40005e8f
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
mov eax, dword [edx - 8]
mov ebx, dword [ecx - 8]
add dword [ebp - 4], 4
mov dword [ecx - 8], eax
mov dword [edx - 8], ebx
mov ebx, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebx
mov ebx, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebx
mov dword [edx + 4], eax
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp dword [ebp - 4], edi
jl 0x40005e4e
mov eax, dword [ebp - 8]
cmp eax, 1
jle 0x40006001
lea ecx, [eax - 1]
mov dword [ebp - 4], ecx
mov ecx, 0xff
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edx, dword [esi]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x40028df0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400295f0]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400291f0]
movzx ebx, byte [esi + 5]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x400299f0]
mov edx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x40028df0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400295f0]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400291f0]
movzx ebx, byte [esi + 9]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x400299f0]
mov edx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x40028df0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400295f0]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400291f0]
movzx ebx, byte [esi + 0xd]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x400299f0]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x40028df0]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400295f0]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x400291f0]
and edx, ecx
xor edi, dword [edx*4 + 0x400299f0]
dec dword [ebp - 4]
mov dword [esi + 0xc], edi
jne 0x40005ea3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40008475
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
push ebx
push dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [esi + 5]
push eax
mov byte [esi + 4], 0
call sub.MSVCRT.dll_memcpy
mov dword [ebp + 8], 0x40
sub dword [ebp + 8], ebx
push dword [ebp + 8]
lea edi, [ebx + esi]
lea eax, [edi + 5]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x45]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 8]
add edi, 0x45
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0x30
push 0x40
lea eax, [esi + 0x45]
pop ecx
xor byte [eax - 0x40], 0x36
xor byte [eax], 0x5c
inc eax
dec ecx
jne 0x400084d5
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40008d34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
dec ebp
or al, 3
dec eax
and al, 0x89
dec ebp
call 0xcbf8d2f1
dec ebp
or al, 3
dec eax
and byte [ecx + 0x458bf04d], cl
clc

Function at 0x40008dd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
sbb byte [ecx + 0x18], ah
add byte [eax], al
add byte [ecx + 0x458bf045], cl
invalid
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x40008e39
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.400088e3
pop ecx
cmp dword [ebp + 8], eax
jne 0x40008e2f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x40008e3b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40008e08
xor eax, eax
leave
ret
Function at 0x4000d254
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
xor edi, edi
xor esi, esi
test byte [ebp + 0xc], 2
je 0x4000d26a
inc esi
test byte [ebp + 0xc], 4
je 0x4000d273
or esi, 2
call sym.xprt6.dll__XprtGetSystemInfo_0
cmp dword [eax + 0x50], 2
push dword [ebp + 8]
jne 0x4000d2a7
lea eax, [ebp - 8]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 8]
mov edi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
jmp 0x4000d2db
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d2db
push sym.xprt6.dll_kSystemEncoding
push dword [ebp + 8]
lea ecx, [ebp - 0x114]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x114]
mov edi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
leave
ret
Function at 0x4000d333
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
xor esi, esi
call sym.xprt6.dll__XprtGetSystemInfo_0
cmp dword [eax + 0x50], 2
jne 0x4000d392
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x10]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
lea ecx, [ebp - 8]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
jmp 0x4000d3f5
push dword [ebp + 8]
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d3f5
push dword [ebp + 0xc]
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d3f5
push edi
mov esi, sym.xprt6.dll_kSystemEncoding
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
mov edi, dword [eax]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x11c]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x11c]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
lea ecx, [ebp - 0x228]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
pop edi
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret
Function at 0x4000d3ff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
xor esi, esi
call sym.xprt6.dll__XprtGetSystemInfo_0
cmp dword [eax + 0x50], 2
push dword [ebp + 8]
jne 0x4000d43e
lea eax, [ebp - 8]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
jmp 0x4000d470
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d470
push sym.xprt6.dll_kSystemEncoding
push dword [ebp + 8]
lea ecx, [ebp - 0x114]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x114]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret
Function at 0x4000d47a
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push edi
mov edi, dword [ebp + 8]
push 0x4002a904
push edi
call sym.xprt6.dll__XprtCompareWildcard_8
test eax, eax
jne 0x4000d4c9
push ebx
push sym.xprt6.dll_kSystemEncoding
push edi
lea ecx, [ebp - 0x14c]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
lea ecx, [ebp - 0x14c]
seta bl
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
mov al, bl
pop ebx
jmp 0x4000d572
push esi
xor esi, esi
call sym.xprt6.dll__XprtGetSystemInfo_0
cmp dword [eax + 0x50], 2
push edi
jne 0x4000d4fe
lea eax, [ebp - 8]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 8]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
jmp 0x4000d531
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d535
push sym.xprt6.dll_kSystemEncoding
push edi
lea ecx, [ebp - 0x14c]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x14c]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
test esi, esi
jne 0x4000d56a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4000d54b
cmp eax, 0xb7
jne 0x4000d56a
xor esi, esi
inc esi
jmp 0x4000d56a
lea ecx, [ebp - 0x40]
call fcn.400091d4
lea eax, [ebp - 0x40]
push eax
push edi
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::GetInfo_unsigned_short_int_const___class_XPRT::TFileInfo__
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
movzx esi, al
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
xor eax, eax
test esi, esi
setne al
pop esi
pop edi
leave
ret
Function at 0x4000d575
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
xor esi, esi
call sym.xprt6.dll__XprtGetSystemInfo_0
cmp dword [eax + 0x50], 2
push dword [ebp + 8]
jne 0x4000d5b4
lea eax, [ebp - 8]
push eax
call sym.xprt6.dll_public:_static_class_XPRT::TBstr___cdecl_XPRT::TFile::AddLeadingPathLengthEnhancer_unsigned_short_int_const__
pop ecx
pop ecx
mov ecx, eax
call sym.xprt6.dll_public:_unsigned_short_int_const____thiscall_XPRT::TBstr::GetString_void_const
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 8]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TBstr::destructor_void_
jmp 0x4000d5e6
call sym.xprt6.dll_public:_static_bool___cdecl_XPRT::TFile::SafeToConvert_unsigned_short_int_const__
test al, al
pop ecx
je 0x4000d5e6
push sym.xprt6.dll_kSystemEncoding
push dword [ebp + 8]
lea ecx, [ebp - 0x114]
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::constructor_unsigned_short_int_const___unsigned_short_int_const__
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x114]
mov esi, eax
call sym.xprt6.dll_public:_void___thiscall_XPRT::TConvertFromUcs2::destructor_void_
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret
Function at 0x4000dc2d
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.HardwareDescriptionSystemCentralProcessor0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4000dc85
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.MHz
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4000dd17
mov esi, dword [ebp - 0xc]
jmp 0x4000dd17
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4000dd17
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x24]
push eax
call edi
rdtsc
push esi
push 0x3e8
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call fcn.4000e500
mov esi, eax
add esi, dword [ebp - 0x24]
mov ebx, edx
adc ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jl 0x4000dcc3
jg 0x4000dcd9
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x4000dcc3
lea eax, [ebp - 0x14]
push eax
call edi
rdtsc
push dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
push dword [ebp - 0x1c]
cdq
push edx
push eax
call fcn.4000e370
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
sbb esi, dword [ebp - 0x20]
push esi
push ecx
push edx
push eax
call fcn.4000e500
push 0
push 0xf4240
push edx
push eax
call fcn.4000e500
mov esi, eax
lea eax, [esi + esi*2 + 0x64]
cdq
mov ecx, 0xc8
idiv ecx
push 3
pop ecx
imul eax, eax, 0xc8
cdq
idiv ecx
mov ebx, eax
sub eax, esi
push eax
call sub.MSVCRT.dll_abs
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x19]
cdq
push 0x32
pop ecx
idiv ecx
mov edi, eax
imul edi, edi, 0x32
mov eax, edi
sub eax, esi
push eax
call sub.MSVCRT.dll_abs
cmp eax, dword [ebp - 0xc]
pop ecx
pop ecx
jge 0x4000dd5f
mov eax, edi
jmp 0x4000dd6a
cmp ebx, 0x29a
mov eax, ebx
jne 0x4000dd6a
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4000dd6f
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xfc
mov eax, dword [str.JRDU]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x14], 1
jne 0x4000ddbe
push 0x20
push str.Windows
push esi
call fcn.400050ee
add esp, 0xc
jmp 0x4000ddd1
cmp dword [ebp - 0x14], 2
jne 0x4000ddcd
push 0x20
push str.Windows_NT
jmp 0x4000ddb3
and word [esi], 0
mov eax, dword [ebp - 0x20]
and dword [esi + 0x48], 0
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x4000ddf6
movzx ecx, word [esi + 0x4c]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], eax
mov ax, word [ebp - 0x74]
mov word [esi + 0x54], ax
call fcn.4000dc2d
mov word [esi + 0x56], ax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x70]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x5c], eax
xor ecx, ebp
pop esi
call fcn.4000e707
add ebp, 0x74
leave
ret

Function at 0x4000de44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 4
push eax
push dword [ebp + 8]
push 0x4000de37
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
pop ebp
ret

Function at 0x4000de6d
Capabilities:
Resume thread

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x4000deda
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa8
mov eax, dword [str.JRDU]
xor eax, ebp
cmp byte [0x400395f9], 0
mov dword [ebp + 0x70], eax
jne 0x4000df3e
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x28], 5
jne 0x4000df25
cmp dword [ebp - 0x24], 0
jne 0x4000df25
cmp word [ebp + 0x68], 1
jne 0x4000df25
mov byte [0x400395f8], 0
jmp 0x4000df37
push 0x400395f0
mov byte [0x400395f8], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov byte [0x400395f9], 1
cmp byte [0x400395f8], 0
jne 0x4000df63
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
cdq
mov esi, 0x3e8
idiv esi
pop esi
imul eax, ecx
xor edx, edx
jmp 0x4000df91
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0x30]
mov eax, dword [ebp + 0x7c]
push dword [ebp - 0x34]
cdq
push edx
push eax
call fcn.4000e370
push dword [0x400395f4]
push dword [0x400395f0]
push edx
push eax
call fcn.4000e500
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.4000e707
add ebp, 0x74
leave
ret
Function at 0x400219c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ebx
je 0x40021ab3
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x40021ab3
cmp dword [ebp + 0xc], 0
je 0x40021ab3
mov ecx, dword [esi + 0x18]
cmp ecx, 2
je 0x40021ab3
cmp ecx, 1
jne 0x40021a06
cmp dword [esi + 4], 0x2a
jne 0x40021ab3
cmp dword [esi + 0x18], 0
je 0x40021a21
push ebx
push dword [ebp + 0xc]
push dword [eax + 0x30]
call sym.xprt6.dll_adler32
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx + 0x30], eax
cmp ebx, 3
jb 0x40021aaf
mov eax, dword [esi + 0x2c]
add eax, 0xfffffefa
cmp ebx, eax
jbe 0x40021a3d
mov edi, eax
sub ebx, edi
add dword [ebp + 0xc], ebx
push edi
push dword [ebp + 0xc]
push dword [esi + 0x38]
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x5c], edi
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
add esp, 0xc
xor edx, edx
add edi, 0xfffffffd
mov dword [esi + 0x48], eax
mov dword [ebp + 8], edi
mov edi, dword [esi + 0x48]
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x38]
movzx eax, byte [eax + edx + 2]
mov ebx, dword [esi + 0x40]
shl edi, cl
mov ecx, dword [esi + 0x44]
xor eax, edi
and eax, dword [esi + 0x54]
mov edi, dword [esi + 0x34]
mov dword [esi + 0x48], eax
mov ax, word [ecx + eax*2]
and edi, edx
mov word [ebx + edi*2], ax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
mov word [ecx + eax*2], dx
inc edx
cmp edx, dword [ebp + 8]
jbe 0x40021a74
xor eax, eax
jmp 0x40021ab6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret