joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 1
lea esi, [esp + 0xc]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x41127e
mov eax, dword [eax + 4]
jmp 0x411281
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 8]
mov ebx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp ebx, 0xffffffff
jne 0x4112a1
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
test bl, 0x10
mov eax, 0
sete al
pop esi
pop ebx
lea eax, [eax + eax - 1]
add esp, 0x1c
ret

Function at 0x4112c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4bb85b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040d7d0
lea esi, [esp + 0x10]
lea eax, [esp + 0x2c]
mov dword [esp + 0xcc], 0
call fcn.00411080
cmp dword [eax + 0x18], 8
jb 0x41132e
mov eax, dword [eax + 4]
jmp 0x411331
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
lea ecx, [esp + 0x10]
sete bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00417ed0
mov al, bl
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042bebe
add esp, 0xc4
ret

Function at 0x411470
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push 0
mov ecx, edi
lea esi, [esp + 0xc]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x4114a0
mov eax, dword [eax + 4]
jmp 0x4114a3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test esi, esi
je 0x4114cc
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042bebe
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x4114de
push 0xd9
mov ecx, edi
call fcn.0040a140
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor al, al
call fcn.0042bebe
mov esp, ebp
pop ebp
ret
Function at 0x4114f0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4bb418
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
push 0
lea esi, [esp + 0x34]
call fcn.00418020
add esp, 4
mov edi, eax
push 0
mov ecx, ebp
lea esi, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00418020
mov ecx, 8
add esp, 4
cmp dword [edi + 0x18], ecx
jb 0x411552
mov edi, dword [edi + 4]
jmp 0x411555
add edi, 4
cmp dword [eax + 0x18], ecx
jb 0x41155f
mov eax, dword [eax + 4]
jmp 0x411562
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x41159b
push 0xda
mov ecx, ebp
call fcn.0040a140
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x4115c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 1
lea esi, [esp + 0xc]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x4115de
mov eax, dword [eax + 4]
jmp 0x4115e1
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [esp + 8]
setne bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x411820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ba05c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x40]
mov ecx, esi
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_void_]
lea ebp, [esi + 0xc]
mov dword [esp + 0x38], 0
mov ecx, ebp
mov dword [esi], vtable.CZipException.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, dword [esp + 0x44]
mov byte [esp + 0x38], 1
mov dword [esi + 0x28], eax
test edi, edi
je 0x4118a8
lea ecx, [esp + 0x14]
push ecx
call fcn.00409ee0
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 8

Function at 0x4120c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bb184
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [edi], vtable.CZipStorage.0
xor eax, eax
mov dword [edi + 0x28], vtable.CZipAutoBuffer.0
mov dword [edi + 0x30], eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x68]
mov dword [edi + 0x60], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [edi + 0x84]
push eax
mov byte [esp + 0x18], 1
call fcn.00417850
mov byte [esp + 0x14], 2
call fcn.00412160
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 4
Function at 0x4127d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4baea1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov esi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x14], edi
call eax
mov dword [esp + 0x40], 1
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
lea edx, [esp + 0x34]
push edx
push ecx
call fcn.00402e30
push 0
push 0
push 0
call fcn.00413160
mov eax, dword [esi + 0x64]
add eax, 4
push eax
push edi
call fcn.00402e30
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 1
mov byte [esp + 0x40], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0042bebe
add esp, 0x3c
ret
Function at 0x412890
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bb5d2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov edi, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 0x40]
mov esi, edx
xor ecx, ecx
mov dword [esp + 0x1c], esi
cmp eax, dword [edi + 0x10]
jne 0x4128dd
mov byte [esp + 0x18], 1
cmp ecx, dword [edi + 0x14]
je 0x4128e1
mov byte [esp + 0x18], cl
mov eax, dword [esp + 0x18]
push eax
mov eax, edi
call fcn.00411f70
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], 1
cmp dword [edi + 0x64], ebx
je 0x4129d8
mov dword [esp + 0x20], ebx
cmp byte [esp + 0x18], 0
je 0x412915
or ebp, 0xffffffff
or ebx, 0xffffffff
jmp 0x412917
xor ebp, ebp
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], esp
mov ecx, esi
mov dword [esp + 0x40], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x6c], 1
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esp + 0x3c]
push edx
push ebx
push ebp
mov esi, edi
mov byte [esp + 0x78], 0
call fcn.00413160
mov eax, dword [edi + 0x64]
add eax, 4
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x412969
mov eax, dword [eax + 4]
jmp 0x41296c
add eax, 4
push 1
mov ecx, eax
lea esi, [esp + 0x30]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], ebx
jb 0x412986
mov eax, dword [eax + 4]
jmp 0x412989
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x2c]
mov ebx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp ebx, 0xffffffff
je 0x4129b4
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
jne 0x4129c3
mov dword [esp + 0x20], 5
xor ebx, ebx
jmp 0x412906
mov eax, dword [edi + 0x64]
mov ecx, dword [esp + 0x1c]
add eax, 4
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov esi, dword [esp + 0x1c]
mov edi, dword [edi + 8]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x416160
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbe48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x60]
shr eax, 4
test al, 1
je 0x4161d4
mov esi, dword [edi + 0x14]
mov ecx, dword [esi + 0x60]
and ecx, 0x70
push 0
cmp cl, 0x70
jne 0x4161b6
push 1
call fcn.004134c0
xor ebx, ebx
jmp 0x4161d4
push 0x38
call fcn.004134c0
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x40]
cmp ebx, eax
je 0x4161d4
mov ebx, eax
mov eax, dword [edi + 0x24]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
push 0x38
mov dword [esp + 0x14], vtable.CZipAutoBuffer.0
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x38
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [0x4d9348]
mov dword [esi], eax
mov eax, 0x2c
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, 0x2d
mov word [esi + 0xc], cx
mov edx, ecx
mov word [esi + 0xe], dx
mov eax, dword [edi + 0x24]
mov dword [eax + 0x30], ebx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x10], eax
mov edx, dword [edi + 0x14]
push edx
call fcn.0040a270
mov ecx, dword [edi + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x14]
add eax, 0x10
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 0x1c]
add eax, 0x18
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x20]
add eax, 0x20
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x28]
add eax, 0x28
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 4]
push 1
push 0x38
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x14]
push esi
push eax
call fcn.00413520
push esi
mov dword [esp + 0x2c], 0xffffffff
call sub.mfc90u.dll_delete
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ba7d8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], vtable.CZipAutoBuffer.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x3c]
mov dword [esp + 0x10], eax
push ecx
mov dword [esi], vtable.ZipArchiveLib::CBaseLibCompressor.0
call fcn.0041a7e0
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x41b7f0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x41ba10
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x41baa3
cmp eax, 0x40
jbe 0x41ba36
push esi
push edi
lea esi, [edi + 0x44]
call fcn.0041b8b0
mov dword [edi + 0x40], 0x14
pop esi
mov eax, dword [edi + 0x40]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
xor dword [edi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x41ba50
lea eax, [edi + 0x44]
push edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
push eax
mov eax, 0x40
call fcn.0041b830
mov dword [edi + 0x40], 0xffffffff
test ebx, ebx
je 0x41bab7
mov edx, dword [esp + 8]
push edx
add edi, 0x44
push edi
mov eax, ebx
call fcn.0041b830
pop edi
ret 4

Function at 0x41bac0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [edi + 0x40], 0xffffffff
mov eax, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], eax
je 0x41baee
push ebx
push 0
xor ebx, ebx
mov eax, edi
call fcn.0041ba10
pop ebx
push esi
lea ecx, [esp + 0xc]
lea esi, [edi + 0x44]
push ecx
call fcn.0041b8b0
xor eax, eax
mov edi, edi
xor dword [edi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x41bb00
push edi
push esi
mov eax, 0x40
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.0041b830
lea edx, [esp + 0xc]
push edx
push esi
mov eax, 0x14
call fcn.0041b830
lea eax, [esp + 0xc]
push eax
call fcn.0041b8b0
pop esi
test ebp, ebp
jbe 0x41bb7b
mov edx, dword [esp + 4]
push ebp
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
call fcn.0042bebe
add esp, 0x1c
ret 8
Function at 0x41f4d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0x10]
mov ecx, 0x41
mov esi, 0x4df598
mov edi, 0x4df69c
rep movsd dword es:[edi], dword [esi]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x41f5af
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
je 0x41f529
xor eax, eax
mov edi, edi
cmp esi, 0x104
jae 0x41f531
mov dl, byte [esp + eax + 0x10]
mov byte [esi + 0x4df598], dl
inc eax
inc esi
cmp eax, 8
jl 0x41f510
cmp esi, 0x104
jb 0x41f501
xor eax, eax
jmp 0x41f540
movzx edx, byte [eax + 0x4df69c]
movzx ecx, byte [eax + 0x4df69d]
not dl
xor byte [eax + 0x4df598], dl
movzx edx, byte [eax + 0x4df69e]
not cl
xor byte [eax + 0x4df599], cl
movzx ecx, byte [eax + 0x4df69f]
not dl
xor byte [eax + 0x4df59a], dl
movzx edx, byte [eax + 0x4df6a0]
not cl
xor byte [eax + 0x4df59b], cl
not dl
xor byte [eax + 0x4df59c], dl
add eax, 5
cmp eax, 0x104
jl 0x41f540
mov edi, 0x4df598
call fcn.0041f5f0
mov edi, 0x4df69c
call fcn.0041f5f0
pop edi
pop esi
add esp, 0x14
ret
mov edi, dword [sym.imp.MSVCR90.dll_rand_s]
lea eax, [esp + 0xc]
push eax
call edi
add esp, 4
test eax, eax
jne 0x41f5db
mov cl, byte [esp + 0xc]
mov byte [esi + 0x4df598], cl
inc esi
cmp esi, 0x104
jb 0x41f5b5
jmp 0x41f531
push 0xd7
xor ecx, ecx
call fcn.0040a140
int3
Function at 0x41ffa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x420030
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41ffff
sub eax, ebp
jmp 0x420001
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41fff0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x420020
sub eax, ebp
jmp 0x420022
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x420011
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x420149
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x420058
mov ebx, edx
test ebx, ebx
je 0x420093
mov edx, dword [edi + 0x24]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x42007d
mov edx, dword [edi]
mov ecx, dword [edi + 0x38]
mov eax, ebx
call fcn.00424d10
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCR90.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
adc dword [edi + 0xc], 0
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x4200bd
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
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]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4200d1
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x41ffb0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x420149
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x420118
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4200f8
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x420149
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x420132
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x422290
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [eax + 0x34]
push ebx
push esi
xor esi, esi
cmp dword [eax + 0x38], esi
lea ebx, [esi + 1]
jle 0x4222ca
push ebp
push edi
movzx edi, dl
mov ecx, dword [eax + 0x260]
mov ebp, ecx
shr ebp, 0x18
xor ebp, edi
shl ecx, 8
xor ecx, dword [ebp*4 + 0x4d86b0]
add esi, ebx
mov dword [eax + 0x260], ecx
cmp esi, dword [eax + 0x38]
jl 0x4222a4
pop edi
pop ebp
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x422352
sub ecx, ebx
je 0x422337
sub ecx, ebx
je 0x42232b
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret