joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100106e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001071e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10010716
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10010720
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10010706
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100107f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10010821
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10010821
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10010821
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4018c0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018c0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40181a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401821
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401800
jmp 0x401823
mov esi, 0x1505
jmp 0x401823
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
mov edx, ebx
sub edx, 1
jb 0x4018c0
mov ecx, esi
not ecx
or edx, ecx
mov ecx, ebx
xor ecx, 1
mov eax, ebx
and eax, 0xfffffffe
add eax, eax
sub eax, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea ebp, [esi + edx]
inc ebp
jmp 0x401864
inc ebp
dec ebx
je 0x4018be
mov eax, ebp
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4018be
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401860
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
push eax
call fcn.00408690
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401860
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.004086b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401860
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4018c0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4026b0
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402866
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x40285f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402745
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x40285f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x4027c5
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
mov edi, esi
xor edi, eax
and esi, eax
lea eax, [edi + esi*2]
add ecx, eax
movzx esi, byte [ebp + edx + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 6]
add eax, esi
add ecx, eax
movzx edi, byte [ebp + edx + 7]
add edi, eax
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402760
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x40270d
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x402810
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x4027f0
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402700
jmp 0x40281f
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402700
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x402830
jmp 0x402700
shl ecx, 0x10
or ecx, edi
jmp 0x40286b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402880
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4028ec
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x4028ee
not eax
xor esi, esi
nop
nop
nop
nop
mov edi, eax
shr edi, 4
movzx ebx, byte [ecx + esi]
mov ebp, eax
and ebp, ebx
or eax, ebx
not ebp
and ebp, eax
and ebp, 0xf
mov eax, dword [ebp*4 + 0x44380c]
mov ebp, eax
and ebp, edi
add edi, eax
add ebp, ebp
sub edi, ebp
mov eax, edi
shr eax, 4
mov ebp, edi
and ebp, 0xf
shr ebx, 4
and edi, ebx
add ebx, ebp
add edi, edi
sub ebx, edi
xor eax, dword [ebx*4 + 0x44380c]
inc esi
cmp edx, esi
jne 0x4028a0
not eax
jmp 0x4028ee
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408b80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x44b7e0], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x44c19c], edx
test eax, eax
je 0x408c0f
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x44c1a0], edx
add eax, 2
jmp 0x408b90
mov dword [0x44b7dc], 0x270
pop esi
ret

Function at 0x408c20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
mov eax, dword [0x44b7dc]
cmp eax, 0x270
jne 0x408c93
xor eax, eax
mov ecx, SysReAllocString
mov edx, SysReAllocString
jmp 0x408c5a
shr esi, 1
xor esi, dword [eax*4 + 0x44be14]
xor esi, edi
mov dword [eax*4 + 0x44c1a0], esi
inc eax
cmp eax, 0x270
je 0x408cab
lea esi, [eax + 0x270]
mov edi, dword [eax*4 + 0x44b7e0]
and edi, ecx
and esi, 1
mov ebx, eax
or ebx, 1
add ebx, esi
mov esi, dword [ebx*4 + 0x44b7e0]
and esi, edx
or esi, edi
mov ebx, esi
xor ebx, 0xfffffffe
mov edi, esi
or edi, 1
and edi, ebx
je 0x408c40
mov edi, 0x9908b0df
jmp 0x408c40
cmp eax, 0x4e0
jb 0x408cb0
mov ecx, 0x44b7dc
call fcn.00408e90
mov eax, dword [0x44b7dc]
jmp 0x408cb0
mov eax, 0x270
lea ecx, [eax + 1]
mov dword [0x44b7dc], ecx
mov eax, dword [eax*4 + 0x44b7e0]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x44cb60]
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
pop edi
pop ebx
ret
Function at 0x408d00
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
call fcn.0043d4c0
test al, al
je 0x408e7c
lea eax, [esp + 0xc]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00436810
test al, al
je 0x408e77
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x728caffc
mov esi, 0x8f5c4495
mov ecx, ebx
shrd esi, edi, cl
mov dword [esp + 8], eax
shr edi, cl
test bl, 0x20
je 0x408d61
mov esi, edi
xor edi, edi
xor esi, 0x8f5c4495
xor edi, 0x728caffc
mov ecx, 0xcd5fcb2
mov eax, esi
mul ecx
imul ecx, esi, 0x419fa8be
imul esi, edi, 0xcd5fcb2
add esi, edx
add esi, ecx
mov edi, esi
shr edi, 0x15
xor edi, esi
shld esi, eax, 0xb
xor esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x408e38
mov eax, esi
and eax, 0x218bea5a
mov dword [esp], eax
mov ebx, edi
and ebx, 0x88cc094
xor eax, 0x218bea5a
mov ebp, esi
and ebp, 0xde7415a5
mov ecx, edi
and ecx, 0xf7733f6b
imul ecx, eax
mul ebp
mov dword [esp + 4], eax
or esi, 0x218bea5a
mov eax, esi
imul esi, ebx
xor ebx, 0x88cc094
imul ebp, ebx
add ebp, edx
mov ebx, dword [esp]
mul ebx
add ebp, ecx
add esi, edx
or edi, 0x88cc094
imul edi, ebx
add edi, esi
add eax, dword [esp + 4]
adc edi, ebp
mov ebx, eax
mov ecx, dword [esp + 8]
shrd ebx, edi, cl
mov edx, edi
shr edx, cl
test cl, 0x20
je 0x408e17
mov ebx, edx
xor edx, edx
mov ecx, edi
not ecx
mov esi, eax
not esi
shld ecx, esi, 1
add esi, esi
add esi, eax
adc ecx, edi
or esi, 1
xor esi, eax
and esi, ebx
xor esi, eax
xor ecx, edi
and ecx, edx
xor edi, ecx
mov eax, edi
and eax, 0xfefefefe
mov ecx, esi
and ecx, 0xfefefefe
mov edx, edi
xor edx, 0x1010101
mov ebx, esi
xor ebx, 0x1010101
add ebx, esi
adc edx, edi
sub ebx, ecx
sbb edx, eax
push edx
push ebx
call fcn.0040a030
add esp, 8
test al, al
je 0x408e77
call fcn.0040ce50
call fcn.0040bb80
call fcn.0043e890
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408e90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push edi
push esi
mov edi, dword [ecx + 0x9c4]
mov eax, 0x3fe
nop
nop
and edi, 0x80000000
mov esi, dword [ecx + eax*4 - 0x630]
mov edx, esi
and edx, 0x7ffffffe
or edx, edi
shr edx, 1
mov edi, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, edx
mov edx, dword [ecx + eax*4]
mov ebx, esi
and ebx, edx
add esi, edx
add ebx, ebx
sub esi, ebx
mov dword [ecx + eax*4 - 0xff4], esi
inc eax
cmp eax, 0x4e1
jne 0x408ea0
mov eax, 0xe3
mov edx, SysReAllocString
nop
nop
mov esi, dword [ecx + eax*4 + 0x9c4]
and esi, edx
mov edi, dword [ecx + eax*4 + 0x9c8]
mov ebx, edi
not ebx
or ebx, 0x7fffffff
add edi, ebx
inc edi
or esi, edi
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 0x408ef0
mov esi, SysReAllocString
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
mov dword [ecx], 0
pop esi
pop edi
pop ebx
ret
Function at 0x409120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x404
mov dword [esp], ecx
mov esi, dword [esp + 0x418]
movzx eax, word [esi]
lea edi, [esp + 4]
test ax, ax
je 0x409268
mov edx, 0x1ff
nop
nop
nop
nop
nop
nop
nop
movzx ebx, ax
lea eax, [esi + 2]
cmp bx, 0x7f
ja 0x409170
lea ebp, [edi + 1]
mov byte [edi], bl
jmp 0x409210
cmp ebx, 0x7ff
ja 0x4091a0
cmp edx, 2
jb 0x4091a0
mov ecx, ebx
shr ecx, 6
add cl, 0xc0
mov byte [edi], cl
and bl, 0x3f
or bl, 0x80
lea ebp, [edi + 2]
mov byte [edi + 1], bl
jmp 0x409210
mov ecx, ebx
and ecx, 0xfc00
cmp ecx, 0xd800
jne 0x40922a
cmp edx, 4
jb 0x40922a
movzx eax, word [esi + 2]
mov ecx, eax
and ecx, 0x23ff
add ecx, ecx
xor eax, 0xdc00
sub ecx, eax
shl ebx, 0xa
add esi, 4
lea ebp, [ebx + ecx]
add ebp, 0xfca00000
lea eax, [ebx + ecx]
add eax, 0xfca10000
mov ebx, eax
shr ebx, 0x12
add bl, 0xf0
mov byte [edi], bl
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
mov eax, ebp
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edi + 2], al
and cl, 0x3f
or cl, 0x80
lea ebp, [edi + 4]
mov byte [edi + 3], cl
mov eax, esi
nop
add edx, edi
sub edx, ebp
mov esi, eax
mov edi, ebp
movzx eax, word [esi]
test ax, ax
je 0x409268
test edx, edx
jne 0x409150
jmp 0x409268
movzx ecx, cx
cmp ecx, 0xdc00
jne 0x409239
mov esi, eax
jmp 0x409218
cmp edx, 3
jb 0x409264
mov ecx, ebx
shr ecx, 0xc
or cl, 0xe0
mov byte [edi], cl
mov ecx, ebx
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [edi + 1], cl
and bl, 0x3f
or bl, 0x80
lea ebp, [edi + 3]
mov byte [edi + 2], bl
jmp 0x409210
mov ebp, edi
jmp 0x409210
mov esi, dword [esp + 0x420]
mov edx, dword [esp + 0x41c]
mov byte [edi], 0
xor eax, eax
jmp 0x409288
mov byte [esp + eax + 0x204], bl
inc eax
movzx ecx, byte [esp + eax + 4]
mov bl, 0x2f
cmp ecx, 0x5c
je 0x409280
test ecx, ecx
je 0x40929c
mov ebx, ecx
jmp 0x409280
mov byte [esp + eax + 0x204], 0
lea eax, [esp + 0x204]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push esi
push edx
push eax
push ecx
call fcn.00404950
add esp, 0x28
test eax, eax
setne al
add esp, 0x404
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40a030
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x22c
mov edi, dword [0x44cbbc]
mov dword [esp + 0x1ac], 0xf3f2c9f0
mov word [esp + 0x1b0], 0
mov byte [esp + 0x1b2], 0
xor ecx, ecx
nop
mov edx, ecx
add dl, 0xac
xor dl, byte [esp + ecx + 0x1ac]
add dl, 0xa4
mov byte [esp + ecx + 0x1ac], dl
inc ecx
cmp ecx, 7
jne 0x40a060
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x1c], 0x99679b65
mov dword [esp + 0x20], 0xa547a7a6
mov dword [esp + 0x24], 0xa19ca399
mov dword [esp + 0x28], 0xad42af92
mov dword [esp + 0x2c], 0xa95eab58
mov dword [esp + 0x30], 0xb7a8
mov byte [esp + 0x34], 0
xor edx, edx
mov bl, 0x24
nop
nop
nop
nop
mov bh, byte [esp + edx + 0x1c]
xor bh, bl
mov al, 0xb8
sub al, bh
mov byte [esp + edx + 0x1c], al
inc edx
dec bl
cmp edx, 0x19
jne 0x40a0c0
lea esi, [esp + 0x1c]
push ecx
push 0
push esi
call edi
mov ecx, 0x44cbc0
push eax
call fcn.0043d430
movzx eax, al
mov eax, dword [eax*4 + 0x4469d0]
mov ecx, 0x1f2ceec5
xor ecx, dword [0x4469d8]
add eax, ecx
inc eax
xor ebx, ebx
jmp eax
Function at 0x40aaa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
movzx ebx, byte [edx]
test bl, bl
je 0x40ad07
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
dec edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test esi, esi
je 0x40aadc
cmp edx, esi
jae 0x40ad07
test edi, edi
je 0x40ad07
movzx ebp, bl
test bl, bl
js 0x40ab10
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 + 0x24]
mov bh, byte [edx]
mov bl, bh
test bh, bh
jne 0x40aad0
jmp 0x40ad07
mov ecx, ebp
and ecx, 0xffffffe0
cmp ecx, 0xc0
jne 0x40ab48
cmp bl, 0xc2
jb 0x40ab00
mov bh, byte [edx + 1]
movzx esi, bh
mov ecx, esi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x40abaa
and ebp, 0x1f
shl ebp, 6
add edx, 2
and esi, 0x3f
or esi, ebp
jmp 0x40abfc
mov ecx, ebp
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x40ab72
movzx ecx, byte [edx + 1]
cmp bl, 0xed
je 0x40abb4
cmp ebp, 0xe0
jne 0x40abbd
mov ebx, ecx
add bl, 0x40
cmp bl, 0xe0
jb 0x40aafc
jmp 0x40abbd
mov ecx, ebp
and ecx, 0xfffffff8
cmp ecx, 0xf0
jne 0x40ace2
cmp bl, 0xf4
ja 0x40ab00
movzx ecx, byte [edx + 1]
je 0x40ac07
cmp ebp, 0xf0
jne 0x40ac10
mov bh, cl
add bh, 0x40
cmp bh, 0xd0
jb 0x40aafc
jmp 0x40ac10
inc edx
mov esi, dword [esp + 0x24]
jmp 0x40ab02
cmp cl, 0x9f
ja 0x40aafc
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40ace9
mov bh, byte [edx + 2]
movzx esi, bh
mov dword [esp], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40acef
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 0x40aaf2
cmp cl, 0x8f
ja 0x40aafc
mov esi, ecx
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40ace9
mov bh, byte [edx + 2]
movzx ebp, bh
mov esi, ebp
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40acef
mov bh, byte [edx + 3]
movzx esi, bh
mov dword [esp], esi
and esi, 0xffffffc0
cmp esi, 0x80
jne 0x40acfb
and bl, 7
movzx esi, bl
shl esi, 0x12
shl ecx, 0xc
mov ebx, ecx
and ebx, 0x3f000
and ebp, 0x3f
shl ebp, 6
or ebp, esi
or ebp, ebx
add edx, 4
mov esi, ebp
and esi, 0x1ff800
cmp esi, 0xd800
je 0x40aafc
mov ebx, dword [esp]
and ebx, 0x3f
or ebx, ebp
cmp ebx, 0x10000
jb 0x40aafc
cmp edi, 2
jb 0x40ace2
not ecx
and ecx, 0x10000
mov esi, ebp
and esi, 0xefc00
sub esi, ecx
shr esi, 0xa
and esi, 0x3ff
or esi, 0xd800
mov word [eax], si
xor ebx, 0x2000
or ebp, 0x3ff
and ebp, ebx
or ebp, 0xdc00
lea ecx, [eax + 4]
mov word [eax + 2], bp
jmp 0x40aaf2
mov ecx, eax
jmp 0x40aaf2
inc edx
jmp 0x40aafc
add edx, 2
mov esi, dword [esp + 0x24]
jmp 0x40ab02
add edx, 3
mov esi, dword [esp + 0x24]
jmp 0x40ab02
mov word [eax], 0
sub eax, dword [esp + 0x18]
sar eax, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bbb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x438
mov ebp, dword [esp + 0x44c]
mov dword [esp + 0x38], 0x21b727d3
mov dword [esp + 0x3c], 0xddb923aa
mov dword [esp + 0x40], 0xd94adf48
mov dword [esp + 0x44], 0xd50bdb3b
mov dword [esp + 0x48], 0xd100d71b
mov dword [esp + 0x4c], 0xcdf2d300
mov dword [esp + 0x50], 0xc927cf14
mov dword [esp + 0x54], 0xc55ccb53
mov dword [esp + 0x58], 0xc157c758
mov dword [esp + 0x5c], 0xfd4fc349
mov dword [esp + 0x60], 0xf908ffdc
mov dword [esp + 0x64], 0xf5dafb14
mov dword [esp + 0x68], 0xf126f727
mov dword [esp + 0x6c], 0xed22f326
mov dword [esp + 0x70], 0xe9ceef29
mov dword [esp + 0x74], 0xe571eb01
mov dword [esp + 0x78], 0xe128e772
mov dword [esp + 0x7c], 0x9d27e32c
mov dword [esp + 0x80], 0x99169fbc
mov dword [esp + 0x84], 0x95569b56
mov dword [esp + 0x88], 0x91b6974f
mov dword [esp + 0x8c], 0x8d029353
mov dword [esp + 0x90], 0x891a8f1c
mov dword [esp + 0x94], 0x85638b17
mov dword [esp + 0x98], 0x8164871b
mov dword [esp + 0x9c], 0xbd198375
mov dword [esp + 0xa0], 0xb96fbf30
mov dword [esp + 0xa4], 0xb577bb77
mov dword [esp + 0xa8], 0xb160b77d
mov dword [esp + 0xac], 0xad7cb37d
mov dword [esp + 0xb0], 0xa976af8c
mov dword [esp + 0xb4], 0xa552ab5d
mov dword [esp + 0xb8], 0xa151a748
mov dword [esp + 0xbc], 0x5d76a354
mov dword [esp + 0xc0], 0x59ca5f7c
mov dword [esp + 0xc4], 0x55cf5bc3
mov dword [esp + 0xc8], 0x517657cb
mov dword [esp + 0xcc], 0x4dcd53a9
mov dword [esp + 0xd0], 0x49db4fd1
mov dword [esp + 0xd4], 0x45914bd9
mov dword [esp + 0xd8], 0x41bb4764
mov dword [esp + 0xdc], 0x7dd043d8
mov dword [esp + 0xe0], 0x79e97fed
mov dword [esp + 0xe4], 0x75ab7be7
mov dword [esp + 0xe8], 0x71a577a7
mov dword [esp + 0xec], 0x6da473bb
mov dword [esp + 0xf0], 0x69b86fbc
mov dword [esp + 0xf4], 0x65bc6bb8
mov dword [esp + 0xf8], 0x614667b4
mov dword [esp + 0xfc], 0x1d81638d
mov dword [esp + 0x100], 0x19fd1f82
mov dword [esp + 0x104], 0x15811b8a
mov dword [esp + 0x108], 0x11d917c5
mov dword [esp + 0x10c], 0xddb13dd
mov dword [esp + 0x110], 0x9c30fda
mov dword [esp + 0x114], 0x50a0bc6
mov byte [esp + 0x118], 0
mov eax, dword [0x44cb8c]
mov ecx, 0x79
mov edx, 0x257f6e86
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x41]
mov ebx, edx
or ebx, esi
not esi
or esi, ecx
mov edi, ebx
not edi
xor ebx, esi
and esi, edi
add ebx, edi
sub ebx, esi
add bl, 0xa3
mov byte [esp + ecx - 0x41], bl
inc ecx
dec edx
cmp ecx, 0x15a
jne 0x40be10
lea ecx, [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
call eax
mov esi, eax
xor eax, eax
test esi, esi
setne al
mov ecx, 0x93638a1
xor ecx, dword [0x446d30]
mov eax, dword [eax*4 + 0x446d28]
add eax, ecx
inc eax
xor ebx, ebx
xor edi, edi
jmp eax
Function at 0x418640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax], 0
lea eax, [eax + 2]
jne 0x418660
lea ecx, [eax + ebp]
add ecx, 0xfffffffe
add eax, ebp
mov edx, 1
sub edx, eax
and edx, ebp
mov edi, ebp
not edi
and edi, ecx
sub edi, edx
mov esi, dword [esi + 4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x418690
sar edi, 1
lea ecx, [esi + eax]
add ecx, 0xfffffffe
add eax, esi
mov edx, 1
sub edx, eax
and edx, esi
mov eax, esi
not eax
and eax, ecx
sub eax, edx
sar eax, 1
inc eax
mov ecx, eax
and ecx, edi
xor eax, edi
lea edx, [eax + ecx*2]
inc edx
test edx, edx
jns 0x4186cd
mov eax, 0xffffffff
jmp 0x4186d7
lea eax, [eax + ecx*2]
lea eax, [eax*2 + 2]
push eax
call fcn.00408580
add esp, 4
mov ebx, eax
movzx ecx, word [esi]
test cx, cx
je 0x418701
add esi, 2
mov eax, ebx
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4186f0
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x418731
lea edx, [ebp + 2]
nop
nop
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 0x418720
mov word [eax], 0
lea eax, [esp + 4]
push 0x60
push 3
push 0x120089
push eax
push ebx
call fcn.00441030
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x4473c0]
Function at 0x41d2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x198
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xd164cf3d
mov dword [esp + 0x14], 0xd563d365
mov dword [esp + 0x18], 0xd9d6d77a
mov byte [esp + 0x1c], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x10]
mov esi, ecx
and esi, 0xd
mov edi, ecx
or edi, 0x9b8f39d2
sub edi, esi
add edi, eax
xor edi, edx
mov edx, 0x9cc211d
sub edx, edi
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov byte [esp + ecx + 0x10], dl
inc ecx
dec eax
cmp eax, 0xfffffff3
jne 0x41d300
mov dword [esp + 0x30], 0x4fda49d0
mov dword [esp + 0x34], 0x43d24dd8
mov dword [esp + 0x38], 0x4715410e
mov dword [esp + 0x3c], 0xbb264517
mov dword [esp + 0x40], 0xbf19b92b
mov dword [esp + 0x44], 0xb32ebd1d
mov dword [esp + 0x48], 0xb725b128
mov dword [esp + 0x4c], 0xab3eb523
mov dword [esp + 0x50], 0xafaea9e6
mov word [esp + 0x54], 0
mov eax, 0xf2
mov ecx, 0xd
nop
nop
movzx edx, byte [esp + eax - 0xc2]
mov esi, eax
or esi, edx
not edx
or edx, ecx
and edx, esi
add dl, 0x46
mov byte [esp + eax - 0xc2], dl
inc eax
dec ecx
cmp eax, 0x118
jne 0x41d390
movzx ecx, word [esp + 0x30]
lea eax, [esp + 0x154]
test cx, cx
je 0x41d3e3
lea edx, [esp + 0x32]
mov esi, dword [ebp + 0x10]
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41d3d0
jmp 0x41d3e6
mov esi, dword [ebp + 0x10]
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x41d411
lea edx, [esi + 2]
nop
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 0x41d400
mov word [eax], 0
movzx ecx, word [esp + 0x10]
test cx, cx
je 0x41d441
lea edx, [esp + 0x12]
nop
nop
nop
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 0x41d430
mov word [eax], 0
mov edi, dword [ebx]
mov dword [esp + 0x30], 0x55686886
mov byte [esp + 0x34], 0xb0
mov dword [esp + 0x35], 0
xor eax, eax
nop
mov ecx, eax
add cl, 0xdd
xor cl, byte [esp + eax + 0x30]
add cl, 0xaf
mov byte [esp + eax + 0x30], cl
inc eax
cmp eax, 9
jne 0x41d460
movzx eax, byte [esp + 0x30]
test al, al
je 0x41d49b
lea ecx, [esp + 0x31]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x41d490
mov byte [edi], 0
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x154]
push eax
push ecx
push edx
call fcn.0040b210
add esp, 0xc
movzx eax, al
mov eax, dword [eax*4 + 0x447c08]
mov ecx, 0xd5b86eff
xor ecx, dword [0x447c10]
add eax, ecx
inc eax
jmp eax