joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push 0x2c
push 0
push 0x404518
call sub.CRTDLL.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40451c], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x404518], eax
call fcn.00402c00
call fcn.00402b98
call fcn.0040252b
call fcn.00402410
call fcn.00402120
call fcn.00402038
call fcn.00402300
mov ebx, eax
cmp ebx, 0xa
je 0x401077
call fcn.00402300
mov ebx, eax
cmp ebx, 0x1e
je 0x401077
jmp 0x40107e
mov eax, 1
jmp 0x401080
xor eax, eax
and eax, eax
je 0x4010a5
push 0x10
push str.This_operating_system_is_not_supported.
push str.Error_
call fcn.00402130
push 1
call sub.CRTDLL.dll_exit
add esp, 4
push dword [0x40454c]
push 0x3e8
call fcn.004020f0
sub esp, 4
lea ecx, [0x40453c]
pop edx
call fcn.00402000
push 0x3e8
push dword [0x40453c]
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push dword [0x40453c]
push 0
call fcn.00402690
push 0
call fcn.004026c0
mov ebx, eax
mov edi, edx
add ebx, 0xfffffff8
adc edi, 0xffffffff
push edi
push ebx
push 0
call fcn.00402750
push 0
call fcn.004027a0
mov dword [0x40452c], eax
push 0
call fcn.004026c0
mov ebx, eax
mov edi, edx
add ebx, 0xfffffffc
adc edi, 0xffffffff
push edi
push ebx
push 0
call fcn.00402750
push 0
call fcn.004027a0
mov dword [0x404540], eax
push 0
call fcn.004026c0
mov ebx, eax
mov edi, edx
mov eax, dword [0x40452c]
cdq
sub ebx, eax
sbb edi, edx
add ebx, 0xfffffff8
adc edi, 0xffffffff
push edi
push ebx
push 0
call fcn.00402750
mov ebx, dword [0x40452c]
and ebx, ebx
je 0x4011d7
push dword [0x40452c]
call sub.CRTDLL.dll_malloc
add esp, 4
mov dword [0x404530], eax
push dword [0x40452c]
push dword [0x404530]
push 0
call fcn.004027f0
push 0
call fcn.004024a7
push dword [0x404540]
call sub.CRTDLL.dll_malloc
add esp, 4
mov dword [0x404534], eax
push dword [0x404534]
push dword [0x404530]
call fcn.00402280
jmp 0x40129f
push 0
call fcn.004026c0
mov ebx, eax
mov edi, edx
mov eax, dword [0x404540]
cdq
sub ebx, eax
sbb edi, edx
add ebx, 0xfffffff8
adc edi, 0xffffffff
push edi
push ebx
push 0
call fcn.00402750
push dword [0x404540]
call sub.CRTDLL.dll_malloc
add esp, 4
mov dword [0x404530], eax
push dword [0x404540]
push dword [0x404530]
push 0
call fcn.004027f0
push 0
call fcn.004024a7
push dword [0x404530]
pop dword [0x404534]
mov dword [0x404524], 0
mov eax, dword [0x404540]
cmp eax, dword [0x404524]
jl 0x40129f
mov ebx, dword [0x404534]
add ebx, dword [0x404524]
mov eax, ebx
call fcn.00406000
mov dword [0x404528], eax
mov ebx, dword [0x404528]
imul ebx, ebx, 0xffffffff
mov dword [0x404538], ebx
push dword [0x404538]
mov ebx, dword [0x404534]
add ebx, dword [0x404524]
mov eax, ebx
call fcn.00406010
inc dword [0x404524]
jmp 0x40124a
push dword [0x40454c]
push dword [0x40454c]
push dword [0x404534]
call fcn.00402430
sub esp, 4
inc dword [0x40454c]
mov edx, dword [0x404044]
add dword [esp], edx
call fcn.00402098
pop dword [0x40454c]
push 0
call sub.CRTDLL.dll_exit
add esp, 4
push 0
call 0x4012fa
push dword [0x404518]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.004020d0
call fcn.004022ef
call fcn.00402424
call fcn.004024fd
call fcn.00402bac
ret
Function at 0x4021ee
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x402208
push dword [ebp + 8]
push 0x402180
call sub.USER32.dll_EnumWindows
jmp 0x40223f
mov edi, dword [0x404090]
jmp 0x40223b
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x402239
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x404090
call fcn.00402bb0
add esp, 8
mov edi, esi
or edi, edi
jne 0x402210
pop edi
pop esi
pop ebp
ret 4

Function at 0x402300
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
mov edi, 0x64
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.KERNEL32.dll_GetVersionExA
or eax, eax
je 0x4023fc
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x402344
cmp eax, 2
je 0x40237f
jmp 0x4023fc
mov eax, dword [ebp - 0x8c]
cmp eax, 0xa
je 0x40236e
jg 0x40235a
or eax, eax
je 0x402364
jmp 0x4023fc
cmp eax, 0x5a
je 0x402378
jmp 0x4023fc
mov edi, 0xa
jmp 0x4023fc
mov edi, 0x1e
jmp 0x4023fc
mov edi, 0x28
jmp 0x4023fc
mov eax, dword [ebp - 0x90]
cmp eax, 3
jl 0x4023fc
cmp eax, 6
jg 0x4023fc
jmp dword [eax*4 + 0x4040a4]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x40249f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x4026c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4040c0]
mov edx, dword [0x4040c4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [0x404554]
call fcn.004029c2
mov dword [ebp - 0xc], eax
or eax, eax
je 0x40273a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call sub.KERNEL32.dll_GetFileSize
push 0
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x40273a
cmp dword [ecx + 0x14], 0
jne 0x40273a
mov edi, ecx
mov esi, dword [edi + 8]
sub esi, dword [edi + 0xc]
add eax, esi
adc edx, 0
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x402850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x402875
push edi
call fcn.00402470
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x4028cd
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x402898
cmp eax, 2
je 0x4028a1
cmp eax, 4
je 0x4028ac
jmp 0x4028b5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x4028c2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x4028c2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x4028c2
push esi
push ebx
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x40294f
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x40290f
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
add dword [ebp - 4], ebx
jmp 0x40294f
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x402936
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x331890
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x331991
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x331991
push ebx
call fcn.00338730
add esp, 4
test eax, eax
je 0x3318ea
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x3318f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x3318d0
jmp 0x3318f3
mov esi, 0x1505
jmp 0x3318f3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x331991
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x331924
inc ebp
dec ebx
je 0x33198f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x33198f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x331920
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00338730
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x331920
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00338750
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x331920
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x33198f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x331991
mov edi, dword [eax + 8]
jmp 0x331991
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x3319c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x331a2b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x331a2b
push esi
call fcn.00338730
add esp, 4
test eax, eax
je 0x331a0a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x331a11
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x3319f0
jmp 0x331a13
mov ebp, 0x1505
jmp 0x331a13
mov ebp, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x331a37
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x331a54
inc ebx
dec edi
je 0x331a2b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x331a2b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x331a50
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00338730
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x331a50
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00338750
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x331a50
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x331a2b
cmp dword [eax + 4], 3
jne 0x331a2b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x331a2b
Function at 0x331af0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x331bf1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x331bf1
push ebx
call fcn.00338730
add esp, 4
test eax, eax
je 0x331b4a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x331b51
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x331b30
jmp 0x331b53
mov esi, 0x1505
jmp 0x331b53
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x331bf1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x331b84
inc ebp
dec ebx
je 0x331bef
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x331bef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x331b80
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00338730
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x331b80
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00338750
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x331b80
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x331bef
cmp dword [eax + 4], 5
mov edi, 0
jne 0x331bf1
mov edi, dword [eax + 8]
jmp 0x331bf1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x331f20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x331f8d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x331f8d
push esi
call fcn.00338730
add esp, 4
test eax, eax
je 0x331f6a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x331f71
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x331f50
jmp 0x331f73
mov ebx, 0x1505
jmp 0x331f73
mov ebx, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
lea ebp, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x331f95
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x331fa4
inc ebp
dec edi
je 0x331f8b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x331f8b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x331fa0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00338730
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x331fa0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00338750
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x331fa0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x331f8d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x331f8d
Function at 0x338270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x33828b
mov ebx, dword [esp + 0x18]
cmp eax, 1
jne 0x338293
mov word [ebx], 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, word [ebx + 4]
add word [ebx], cx
cmp eax, 3
jl 0x33832b
mov edx, 2
mov ecx, 2
sub ecx, eax
mov dword [esp], ecx
xor edi, edi
mov ebx, 1
jmp 0x3382d9
movzx ebp, word [esi + edi*4]
add word [esi + ebx*4], bp
mov word [esi + edi*4], bx
inc edi
mov ecx, dword [esp]
add ecx, ebx
inc ecx
inc ebx
cmp ecx, 1
je 0x33833a
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + edi*4]
cmp edx, eax
jge 0x3382ee
movzx ebp, word [esi + edx*4]
cmp cx, bp
jae 0x338300
mov word [esi + ebx*4], cx
mov word [esi + edi*4], bx
inc edi
cmp edx, eax
jge 0x3382c0
jmp 0x338309
inc edx
mov word [esi + ebx*4], bp
cmp edx, eax
jge 0x3382c0
cmp edi, ebx
jge 0x338320
movzx ebp, word [esi + edi*4]
movzx ecx, word [esi + edx*4]
cmp bp, cx
jb 0x3382c4
jmp 0x338324
movzx ecx, word [esi + edx*4]
inc edx
add word [esi + ebx*4], cx
jmp 0x3382cd
lea edx, [eax - 2]
mov word [ebx + eax*4 - 8], 0
jmp 0x3383c2
lea edx, [eax - 2]
mov ebx, dword [esp + 0x18]
mov word [ebx + eax*4 - 8], 0
cmp eax, 3
jl 0x3383c2
lea edi, [eax - 3]
mov ebp, ebx
mov ebx, eax
and ebx, 3
xor ebx, 2
mov esi, edi
je 0x338374
mov esi, edi
movzx ecx, word [ebp + esi*4]
movzx ecx, word [ebp + ecx*4]
inc ecx
mov word [ebp + esi*4], cx
dec esi
dec ebx
jne 0x338360
mov ebx, dword [esp + 0x18]
cmp edi, 3
jb 0x3383c2
nop
nop
nop
movzx ecx, word [ebx + esi*4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4], cx
movzx ecx, word [ebx + esi*4 - 4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 4], cx
movzx ecx, word [ebx + esi*4 - 8]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 8], cx
movzx ecx, word [ebx + esi*4 - 0xc]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 0xc], cx
add esi, 0xfffffffc
cmp esi, 0xffffffff
jne 0x338380
dec eax
mov ecx, 1
xor esi, esi
jmp 0x3383dc
lea ecx, [edi + edi]
inc esi
test edi, edi
je 0x33828b
test edx, edx
mov dword [esp], ecx
js 0x338410
lea edi, [edx + 1]
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebx + edx*4]
cmp esi, ecx
jne 0x338420
inc ebp
dec edx
cmp edi, ebp
jne 0x3383f0
mov edx, 0xffffffff
jmp 0x338422
xor edi, edi
jmp 0x338425
mov edi, ebp
mov ecx, dword [esp]
mov ebp, ecx
sub ebp, edi
jle 0x3383d0
and ebp, 3
je 0x338458
lea ecx, [ebx + eax*4]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], si
inc ebx
add ecx, 0xfffffffc
cmp ebp, ebx
jne 0x338440
mov ebp, dword [esp]
sub ebp, ebx
sub eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0x33845a
mov ebp, ecx
mov ecx, edi
sub ecx, dword [esp]
cmp ecx, 0xfffffffc
ja 0x3383d0
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx + eax*4], si
mov word [ebx + eax*4 - 4], si
mov word [ebx + eax*4 - 8], si
mov word [ebx + eax*4 - 0xc], si
add eax, 0xfffffffc
add ebp, 0xfffffffc
cmp ebp, edi
jg 0x338470
jmp 0x3383d0
Function at 0x338e80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0x338ee5
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax + 0xff8]
shr edx, 1
xor edi, edx
mov dword [ecx + eax + 0x1384], edi
add eax, 4
jne 0x338ea0
mov eax, 0x270
jmp 0x338fc7
cmp eax, 0x4e0
jb 0x338fc7
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0x338f00
mov esi, dword [ecx + 0xd50]
xor eax, eax
jmp 0x338f71
and esi, 0x80000000
or edi, esi
shr edi, 1
xor edi, dword [ecx + eax*4 + 4]
xor edi, ebx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
mov esi, edx
cmp eax, 0x18c
je 0x338f93
mov edx, dword [ecx + eax*4 + 0xd54]
mov edi, edx
and edi, 0x7fffffff
mov ebx, edx
xor ebx, 0x7ffffffe
and ebx, edi
je 0x338f50
mov ebx, 0x9908b0df
jmp 0x338f50
mov esi, 0x80000000
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
mov esi, edx
not esi
or esi, dword [ecx + 0x1384]
add edx, esi
inc edx
xor edx, eax
mov ecx, edx
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, edx
mov edx, ecx
shl edx, 0xf
and edx, 0xefc60000
xor edx, ecx
mov eax, edx
shr eax, 0x12
and ecx, eax
or eax, edx
xor eax, ecx
pop esi
pop edi
pop ebx
ret
Function at 0x34b020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
test edi, edi
sets bl
mov esi, edi
sub esi, 1
sete bh
or bl, bh
mov esi, edi
sub esi, 0x25
setge bh
or bl, bh
test bl, 1
jne 0x34b054
jmp 0x34b059
jmp 0x34b1e8
mov esi, ecx
add esi, edx
add esi, 0xffffffff
mov byte [ecx + edx - 1], 0
cmp eax, 0
jne 0x34b078
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], 0x30
jmp 0x34b1e8
cmp edi, 0xa
jne 0x34b106
jmp 0x34b083
cmp eax, 0x64
jb 0x34b0c2
mov edi, 0x64
mov ecx, eax
mov eax, ecx
xor edx, edx
div edi
shl edx, 1
mov al, byte [edx + 0x3712bd]
mov edi, esi
add edi, 0xffffffff
mov byte [esi - 1], al
mov al, byte [edx + 0x3712bc]
add edi, 0xffffffff
mov byte [esi - 2], al
mov esi, 0x64
mov eax, ecx
xor edx, edx
div esi
mov esi, edi
jmp 0x34b083
cmp eax, 0xa
setb cl
jmp 0x34b0ca
test cl, 1
jne 0x34b0d1
jmp 0x34b0df
mov al, byte [eax + 0x371b88]
add esi, 0xffffffff
mov byte [esi], al
jmp 0x34b0ff
shl eax, 1
mov cl, byte [eax + 0x3712bd]
mov edx, esi
add edx, 0xffffffff
mov byte [esi - 1], cl
mov al, byte [eax + 0x3712bc]
add edx, 0xffffffff
mov byte [esi - 2], al
mov esi, edx
mov ecx, esi
jmp 0x34b1e8
cmp edi, 0x10
sete cl
test cl, 1
jne 0x34b118
jmp 0x34b113
jmp 0x34b1be
jmp 0x34b11a
cmp eax, 0x100
jb 0x34b14e
mov ecx, eax
and ecx, 0xff
shl ecx, 1
mov dl, byte [ecx + 0x371386]
mov edi, esi
add edi, 0xffffffff
mov byte [esi - 1], dl
mov cl, byte [ecx + 0x371385]
add edi, 0xffffffff
mov byte [esi - 2], cl
shr eax, 8
mov esi, edi
jmp 0x34b11a
cmp eax, 0x10
setb cl
test cl, 1
jne 0x34b15b
jmp 0x34b16c
mov al, byte [eax + 0x371b88]
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], al
jmp 0x34b1e8
mov ecx, eax
and ecx, 0xffffffff
shl ecx, 1
mov edx, eax
add edx, 0xffffffff
sub edx, ecx
or edx, 0xfffffffd
add edx, 3
mov ecx, eax
and ecx, 0xfffffffd
imul ecx, edx
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
mov edx, eax
and edx, ecx
shl edx, 1
xor eax, ecx
add eax, edx
mov dl, byte [eax + 0x371386]
mov ecx, esi
add ecx, 0xffffffff
mov byte [esi - 1], dl
mov al, byte [eax + 0x371385]
add ecx, 0xffffffff
mov byte [esi - 2], al
jmp 0x34b1e8
cmp eax, 0
jbe 0x34b1e4
mov ecx, eax
mov eax, ecx
xor edx, edx
div edi
mov al, byte [edx + 0x371b88]
mov ebx, esi
add ebx, 0xffffffff
mov byte [esi - 1], al
mov eax, ecx
xor edx, edx
div edi
mov esi, ebx
jmp 0x34b1be
mov ecx, esi
jmp 0x34b1e8
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x353c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1dec
call fcn.00338500
push eax
sub esp, 0x3fc
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 0x28], esp
sub esp, 0x14
mov ebx, esp
sub esp, 0x14
mov esi, esp
sub esp, 0x24
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x1df6], 0x32833093
mov dword [ebp - 0x1df2], 0x36723476
mov dword [ebp - 0x1dee], 0x2a9a288e
mov dword [ebp - 0x1dea], 0x2e9f2c9f
mov dword [ebp - 0x1de6], 0x228d2086
mov dword [ebp - 0x1de2], 0x26962496
mov dword [ebp - 0x1dde], 0x1aab1862
mov word [ebp - 0x1dda], 0x1c1b
xor eax, eax
nop
movzx edx, byte [ebp + eax - 0x1df6]
lea ecx, [eax - 0x12fa17f9]
xor ecx, edx
mov edx, ecx
xor edx, 0x11
and ecx, 0x6e
add ecx, ecx
sub ecx, edx
add cl, 0xd9
mov byte [ebp + eax - 0x1df6], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x1e
jb 0x353d10
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1df6]
push 0
push 0
push 0x20019
push eax
mov dword [ebp - 0x14], ecx
push ecx
call fcn.0036e590
add esp, 0x14
shr eax, 0x1f
jmp dword [eax*4 + 0x375838]