joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003eab
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov byte [ebp - 1], 0x36
mov dword [ebp - 0x1c], 0
jmp 0x10003ec7

Function at 0x10003fb8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmp dword [ebp - 0x10], 0x74
jge 0x10003fc5
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x10], eax
jmp 0x10003fb4
movsx ecx, word [ebp - 8]
imul edx, ecx, 0x168
movsx eax, word [ebp - 8]
add edx, eax
movsx ecx, word [ebp - 8]
sub ecx, 0x92e
movsx eax, word [ebp - 8]
sub ecx, eax
lea ecx, [edx + ecx - 0x168]
mov word [ebp - 8], cx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 3
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x10004012
cmp dword [ebp - 0x34], 1
je 0x1000401d
jmp 0x10004028
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1000402e
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x1000402e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10004042
cmp dword [ebp - 0x38], 1
je 0x1000404d
jmp 0x10004058
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x1000405e
mov edx, dword [ebp - 0x10]
sub edx, 2
mov dword [ebp - 0x10], edx
jmp 0x1000405e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
movsx ecx, word [ebp - 8]
sub ecx, 0x56
mov word [ebp - 8], cx
mov edx, 0x34
mov word [ebp - 0xc], dx
mov eax, dword fs:[0x30]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x28], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
add eax, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax

Function at 0x100040c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x40]
je 0x100040f0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x44], edx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x30]
movzx ecx, word [eax + ecx]
mov bh, 0xc
or byte [ecx - 0x18], dl
dec esi
std
invalid
invalid
add esp, 4
movzx edx, ax
cmp edx, 0x6b
jne 0x100040e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x20], edx
jmp 0x100040f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
dec ebp
in al, dx
jmp 0x100040a7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
invalid
push eax
Function at 0x100040d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x40]
je 0x100040f0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x44], edx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x30]
movzx ecx, word [eax + ecx]
mov bh, 0xc
or byte [ecx - 0x18], dl
dec esi
std
invalid
invalid
add esp, 4
movzx edx, ax
cmp edx, 0x6b
jne 0x100040e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x20], edx
jmp 0x100040f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
dec ebp
in al, dx
jmp 0x100040a7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
invalid
push eax

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
push 0xd44
push 1
call fcn.10005c5a
add esp, 8
mov dword [eax + 4], esi
xor ecx, ecx
inc ecx
mov edx, 2
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul esi, edi, 0x6c078965
lea edi, [edx + esi]
dec edi
add esi, ecx
mov dword [eax + edx*4], edi
inc ecx
inc edx
cmp edx, 0x351
jne 0x10005ef6
mov dword [eax], 0x350
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 0x34f
jbe 0x10005ff0
mov edx, dword [eax + 4]
xor ecx, ecx
and edx, 0x80000000
mov esi, dword [eax + ecx*4 + 8]
mov edi, esi
and edi, 0x7ffffffe
or edi, edx
shr edi, 1
mov edx, esi
and edx, 1
mov edx, dword [edx*4 + 0x10265ca0]
xor edx, dword [eax + ecx*4 + 0x724]
xor edx, edi
mov dword [eax + ecx*4 + 4], edx
mov edx, esi
inc ecx
cmp ecx, 0x188
jne 0x10005f3b
mov edi, dword [eax + 0x624]
xor ecx, ecx
and edi, 0x80000000
mov esi, dword [eax + ecx*4 + 0x628]
mov edx, esi
and edx, 0x7ffffffe
or edx, edi
shr edx, 1
mov edi, esi
and esi, 1
mov esi, dword [esi*4 + 0x10265ca0]
xor esi, dword [eax + ecx*4 + 4]
xor esi, edx
mov dword [eax + ecx*4 + 0x624], esi
inc ecx
cmp ecx, 0x1c7
jne 0x10005f7d
mov edx, 0x80000000
and edx, dword [eax + 0xd40]
mov ecx, dword [eax + 4]
mov esi, ecx
and esi, 0x7ffffffe
or esi, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x10265ca0]
xor edx, dword [eax + 0x720]
shr esi, 1
xor edx, esi
mov dword [eax + 0xd40], edx
xor edx, edx
jmp 0x10005ff4
mov ecx, dword [eax + edx*4 + 4]
inc edx
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor eax, ecx
mov ecx, eax
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, eax
mov edx, ecx
shl edx, 0xf
and edx, 0xefc60000
xor edx, ecx
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x10006023
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x1043f5f0], 0
jne 0x100060da
lea esi, [ebp - 0x24]
mov dword [esi], 0
sub esp, 0x14
movdqa xmm0, xmmword [0x10265c90]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000608f
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000608f
push 0x1043f5f4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x100060d3
lea ebx, [ebp - 0x11]
mov byte [ebx], 0xff
shr ebx, 3
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x18]
imul esi, eax, 0xf4240
movzx eax, word [ebp - 0x16]
imul eax, eax, 0x3e8
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, ebx
xor eax, esi
xor eax, dword [ebp - 0x28]
not eax
mov dword [0x1043f5f4], eax
mov byte [0x1043f5f0], 1
mov eax, dword [0x1043f5f4]
inc eax
mov dword [0x1043f5f4], eax
push eax
call fcn.10005ed4
add esp, 4
mov esi, eax
test edi, edi
jle 0x1000610c
mov ebx, dword [ebp + 8]
inc edi
push esi
call fcn.10005f20
add esp, 4
mov dword [ebx], eax
add ebx, 4
dec edi
cmp edi, 1
ja 0x100060f8
push esi
call fcn.1000e8f9
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10006f09
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10006fab
movzx eax, word [ecx]
mov dword [ebp - 0x10], eax
add eax, 0xffffffd5
xor edx, edx
test eax, 0xfffd
sete dl
movzx eax, word [ecx + edx*2]
lea esi, [eax - 1]
xor edi, edi
cmp si, 0x7e
ja 0x10006f9d
lea ebx, [ecx + edx*2]
add ebx, 2
xor edi, edi
movzx eax, ax
push eax
call fcn.10248afc
add esp, 4
test eax, eax
je 0x10006f9d
movzx esi, word [ebx - 2]
xor ecx, ecx
cmp esi, 0x7f
ja 0x10006f73
push esi
call fcn.10248afc
add esp, 4
add esi, 0xffffffd0
test eax, eax
cmove esi, eax
mov ecx, esi
mov eax, ecx
xor eax, 0x7fffffff
mov edx, 0xcccccccd
mul edx
shr edx, 3
cmp edi, edx
jg 0x10006faf
lea eax, [edi + edi*4]
lea edi, [ecx + eax*2]
movzx eax, word [ebx]
mov ecx, eax
dec ecx
add ebx, 2
cmp cx, 0x7f
jb 0x10006f45
mov eax, edi
neg eax
cmp word [ebp - 0x10], 0x2d
cmovne eax, edi
jmp 0x10006fbe
xor eax, eax
jmp 0x10006fbe
xor eax, eax
cmp word [ebp - 0x10], 0x2d
sete al
add eax, 0x7fffffff
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ed80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000edbc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
lea edi, [ebp - 0x10]
mov dword [edi], esi
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
je 0x1000edbe
mov esi, dword [ebp - 0x10]
jmp 0x1000edbe
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.102377e8
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret 8

Function at 0x1000ede0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000ee1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
lea edi, [ebp - 0x10]
mov dword [edi], esi
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x1000ee1e
mov esi, dword [ebp - 0x10]
jmp 0x1000ee1e
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.102377e8
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret 8
Function at 0x100840f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp edi, 1
jne 0x1008419e
mov edi, dword [ebp + 0x10]
shl edx, 3
test edx, edx
js 0x1008420c
imul edi, eax
cmp edx, edi
cmovl edi, edx
cmp edi, 2
jl 0x10084204
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
xor edx, edx
xor esi, esi
inc esi
mov dword [ebp - 0x14], edi
mov ecx, esi
and ecx, 7
mov dword [ebp - 0x20], ecx
mov edi, esi
shr edi, 3
mov dword [ebp - 0x1c], edi
mov ebx, ecx
xor bl, 7
mov ecx, dword [ebp - 0x10]
movzx edi, byte [ecx + edi]
mov dword [ebp - 0x18], edi
mov ecx, ebx
shr edi, cl
movzx eax, al
xor dl, 7
mov ecx, edx
shr eax, cl
xor edx, edx
inc edx
mov ecx, ebx
shl edx, cl
mov ebx, edx
not bl
mov ecx, dword [ebp - 0x18]
and bl, cl
or dl, cl
xor eax, edi
mov edi, dword [ebp - 0x14]
test al, 1
movzx edx, dl
movzx eax, bl
cmovne eax, edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + edx], al
inc esi
mov edx, dword [ebp - 0x20]
cmp edi, esi
jne 0x1008413c
jmp 0x10084204
imul eax, edi
lea esi, [eax + 7]
test eax, eax
cmovns esi, eax
sar esi, 3
cmp edi, 0x10
jne 0x100841eb
inc esi
cmp esi, edx
jae 0x10084204
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
movzx ebx, word [ecx + eax - 1]
rol bx, 8
mov ecx, dword [ebp - 0x10]
movzx edi, word [ecx + esi - 1]
rol di, 8
add edi, ebx
rol di, 8
mov ecx, dword [ebp - 0x10]
mov word [ecx + esi - 1], di
add esi, 2
add eax, 2
cmp esi, edx
jb 0x100841b9
jmp 0x10084204
cmp esi, edx
jae 0x10084204
sub edx, esi
add esi, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov bl, byte [ecx + eax]
add byte [esi + eax], bl
inc eax
cmp edx, eax
jne 0x100841f9
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x1009bc74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
lea ecx, [eax + 0xc]
test eax, eax
mov eax, 0x10265083
cmovne eax, ecx
push 0x1028ab46
push eax
call fcn.1024c23f
add esp, 8
test eax, eax
je 0x1009bdc2
mov esi, eax
xor edi, edi
push 2
push edi
push eax
call fcn.10247864
add esp, 0xc
push esi
call fcn.10247b87
add esp, 4
mov dword [ebp - 0x24], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x20]
movdqu xmmword [ebx], xmm0
push edi
push edi
push esi
call fcn.10247864
add esp, 0xc
push esi
push 1
push 0xc
push ebx
call fcn.1024e07c
add esp, 0x10
cmp eax, 1
jne 0x1009bdb9
mov eax, dword [ebp - 0x20]
bswap eax
cmp eax, 0x74746366
jne 0x1009bda1
mov edx, dword [ebp - 0x18]
bswap edx
lea ebx, [edx*4]
xor eax, eax
mov ecx, edx
shr ecx, 0x1e
cmovne ebx, eax
cmp ecx, 1
cmove ebx, eax
mov dword [ebp - 0x30], edx
cmp edx, 0x3fffffff
ja 0x1009bdb9
xor edi, edi
inc edi
push edi
push ebx
call fcn.10005c5a
add esp, 8
push esi
push ebx
push edi
mov dword [ebp - 0x2c], eax
push eax
call fcn.1024e07c
add esp, 0x10
mov dword [ebp - 0x28], ebx
cmp eax, ebx
jne 0x1009bd8f
cmp dword [ebp - 0x30], 0
je 0x1009bd8f
shr dword [ebp - 0x28], 2
xor ebx, ebx
mov edi, dword [ebp - 0x24]
sar edi, 0x1f
cmp dword [ebp - 0x28], ebx
je 0x1009bdd6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + ebx*4]
bswap eax
mov ecx, dword [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x24]
push esi
push dword [ebp + 8]
call fcn.1009bdda
inc ebx
cmp dword [ebp - 0x30], ebx
jne 0x1009bd6b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1009bdb9
push eax
call fcn.1000e8f9
add esp, 4
jmp 0x1009bdb9
mov edx, dword [ebp - 0x24]
mov eax, edx
sar eax, 0x1f
mov ecx, dword [ebp - 0x34]
push 0
push eax
push edx
push esi
push dword [ebp + 8]
call fcn.1009bdda
push esi
call fcn.1024d720
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x1009c2c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
lea edi, [ebp - 0x14]
mov dword [edi], ebx
mov ecx, edi
call fcn.10001668
lea esi, [ebp - 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
push esi
call fcn.10001676
push dword [ebp - 0x24]
push 1
push ebx
push dword [esi]
call fcn.1024e07c
add esp, 0x10
test eax, eax
je 0x1009c32b
mov ecx, edi
push ebx
call fcn.1000173a
mov esi, dword [ebp - 0x20]
mov ecx, esi
push edi
call fcn.10001800
jmp 0x1009c335
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.10001668
lea ecx, [ebp - 0x14]
call fcn.100017a2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3874
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], edx
test ecx, ecx
jle 0x100b3949
lea eax, [ebp + 0x18]
lea edi, [ebp + 0x10]
lea esi, [ebp + 8]
mov edx, dword [ebp - 0x10]
lea ebx, [edx - 3]
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
mov edi, dword [edi]
mov ebx, dword [esi]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov al, byte [edi + 3]
test esi, esi
je 0x100b38c9
movzx eax, al
movzx edx, byte [esi]
inc esi
movzx eax, ax
imul eax, edx
imul eax, eax, 0x8081
shr eax, 0x17
jmp 0x100b38cb
xor esi, esi
test al, al
je 0x100b38f7
mov dword [ebp - 0x14], esi
mov esi, edi
movzx eax, al
mov dword [ebp - 0x18], eax
cmp eax, 0xff
jne 0x100b38ff
mov edi, esi
mov al, byte [esi + 2]
mov byte [ebx + 2], al
movzx eax, word [esi]
mov word [ebx], ax
add ebx, dword [ebp - 0x10]
add edi, 4
jmp 0x100b393a
add ebx, dword [ebp - 0x10]
add edi, 4
jmp 0x100b393d
mov ecx, dword [ebp - 0x18]
xor ecx, 0xff
xor edi, edi
movzx edx, byte [ebx + edi]
imul edx, ecx
movzx eax, byte [esi + edi]
imul eax, dword [ebp - 0x18]
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [ebx + edi], dl
inc edi
cmp edi, 3
jne 0x100b390a
mov eax, ebx
add eax, dword [ebp - 0x1c]
add eax, edi
mov ebx, eax
add edi, esi
inc edi
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, ecx
jne 0x100b38a7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3951
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x20], edx
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jle 0x100b3a6e
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
and ecx, 0xfffffffc
mov dword [ebp - 0x28], ecx
add eax, 0xfffffffd
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov bl, byte [edx + 3]
test esi, esi
je 0x100b39bd
movzx eax, bl
movzx ecx, byte [esi]
inc esi
movzx eax, ax
imul eax, ecx
imul ebx, eax, 0x8081
shr ebx, 0x17
jmp 0x100b39bf
xor esi, esi
test bl, bl
je 0x100b3a5b
cmp dword [ebp - 0x28], 0xc
mov dword [ebp - 0x3c], esi
jne 0x100b39e8
mov ecx, dword [ebp - 0x20]
mov esi, edi
mov edi, edx
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.100b6dfd
mov edx, edi
mov edi, esi
add esp, 8
movzx eax, bl
mov dword [ebp - 0x38], eax
xor eax, 0xff
mov dword [ebp - 0x34], eax
inc edx
mov ebx, 0xfffffff4
mov dword [ebp - 0x40], edi
movzx edi, byte [edi]
cmp dword [ebp - 0x28], 0xc
jne 0x100b3a10
mov ecx, dword [ebp + ebx - 0x10]
mov esi, edx
jmp 0x100b3a26
movzx eax, byte [edx - 1]
mov ecx, dword [ebp - 0x20]
mov esi, edx
mov edx, edi
push eax
call fcn.100b70b9
add esp, 4
mov ecx, eax
imul edi, dword [ebp - 0x34]
imul ecx, dword [ebp - 0x38]
add ecx, edi
mov eax, ecx
mov edx, 0x80808081
imul edx
add edx, ecx
mov eax, edx
shr eax, 0x1f
shr edx, 7
add edx, eax
mov edi, dword [ebp - 0x40]
mov byte [edi], dl
inc edi
inc esi
add ebx, 4
mov edx, esi
mov esi, dword [ebp - 0x3c]
jne 0x100b39fc
add edi, dword [ebp - 0x2c]
jmp 0x100b3a61
add edi, dword [ebp + 0x18]
add edx, 4
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, dword [ebp - 0x30]
jne 0x100b399b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3b86
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x24], edx
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x1c]
test ecx, ecx
jle 0x100b3d13
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x24]
and edx, 0xfffffffc
mov dword [ebp - 0x2c], edx
add eax, 0xfffffffd
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
movzx edx, byte [edi + 3]
test edx, edx
je 0x100b3ceb
mov dword [ebp - 0x28], edx
movzx edx, byte [ebx]
test edx, edx
je 0x100b3d03
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x28]
lea ecx, [ebx + edx]
mov eax, ebx
imul eax, edx
imul eax, eax, 0x8081
shr eax, 0x17
sub ecx, eax
mov eax, edx
shl eax, 8
sub eax, edx
movzx esi, cl
xor edx, edx
div si
mov esi, eax
mov byte [edi + 3], cl
cmp dword [ebp - 0x2c], 0xc
jne 0x100b3c36
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.100b6dfd
add esp, 8
movzx ecx, si
mov eax, 0xff
xor ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ecx
sub eax, ecx
mov dword [ebp - 0x40], eax
inc edi
mov eax, 0xfffffff4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x20], esi
movzx esi, byte [esi]
cmp dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x4c], eax
jne 0x100b3c6f
mov ecx, dword [ebp + eax - 0x10]
mov ebx, edi
movzx edi, byte [edi - 1]
jmp 0x100b3c85
mov ebx, edi
movzx edi, byte [edi - 1]
mov ecx, dword [ebp - 0x24]
mov edx, edi
push esi
call fcn.100b70b9
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x28]
imul edi, dword [ebp - 0x40]
imul esi, dword [ebp - 0x44]
imul ecx, eax
add ecx, esi
mov eax, ecx
mov edx, 0x80808081
imul edx
mov esi, edx
add esi, ecx
mov eax, esi
shr eax, 0x1f
sar esi, 7
add esi, eax
imul esi, dword [ebp - 0x48]
add esi, edi
mov eax, esi
mov ecx, 0x80808081
imul ecx
add edx, esi
mov eax, edx
shr eax, 0x1f
shr edx, 7
add edx, eax
mov byte [ebx - 1], dl
mov esi, dword [ebp - 0x20]
inc esi
inc ebx
mov eax, dword [ebp - 0x4c]
add eax, 4
mov edi, ebx
jne 0x100b3c54
add esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
jmp 0x100b3d09
mov edx, eax
mov al, byte [esi + 2]
mov byte [edi + 2], al
movzx eax, word [esi]
mov word [edi], ax
mov eax, edx
add esi, dword [ebp + 0x18]
add edi, 4
jmp 0x100b3d09
add edi, 4
add esi, dword [ebp + 0x18]
inc ebx
inc eax
cmp eax, ecx
jne 0x100b3bd0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3e39
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x100b3ef2
lea eax, [ebp + 0x10]
lea ecx, [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x18], esi
mov edi, dword [eax]
mov esi, dword [ecx]
add esi, 2
xor ebx, ebx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + ebx]
test ecx, ecx
je 0x100b3ee3
cmp ecx, 0xff
jne 0x100b3e89
lea eax, [esi - 2]
mov cl, byte [edi + 2]
mov byte [eax + 2], cl
movzx ecx, word [edi]
mov word [eax], cx
jmp 0x100b3ee3
movzx edx, byte [esi - 2]
mov eax, ecx
xor eax, 0xff
mov dword [ebp - 0x10], eax
imul edx, eax
movzx eax, byte [edi]
imul eax, ecx
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [esi - 2], dl
movzx edx, byte [esi - 1]
imul edx, dword [ebp - 0x10]
movzx eax, byte [edi + 1]
imul eax, ecx
add eax, edx
mov edx, 0x1010102
mul edx
mov byte [esi - 1], dl
movzx edx, byte [esi]
imul edx, dword [ebp - 0x10]
movzx eax, byte [edi + 2]
imul eax, ecx
add eax, edx
mov ecx, 0x1010102
mul ecx
mov byte [esi], dl
mov edx, dword [ebp - 0x14]
add edi, dword [ebp + 0x18]
inc ebx
add esi, edx
cmp dword [ebp - 0x1c], ebx
jne 0x100b3e65
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret