joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000eb50
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5e80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100f9124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 0x24], ebx
call dword [0x100fa5b0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
push eax
push esi
mov ecx, ebx
call fcn.1000e8f0
mov ecx, dword [ebp + 0xc]
xor esi, esi
push ecx
mov dword [ebp - 4], esi
mov byte [ebp - 0x20], 4
mov byte [ebp - 0x1f], 1
call dword [sym.imp.WS2_32.dll_htons]
cmp edi, esi
mov word [ebp - 0x1e], ax
je 0x1000ebeb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1000ebeb
lea esi, [eax + eax]
mov eax, esi
call fcn.10097b70
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.1000e720
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x1000ec0f
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000ec2a
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
push 0
push 9
lea eax, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000ec31
push 0
call fcn.1000e790
mov edi, dword [sym.imp.WS2_32.dll_recv]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
xor esi, esi
cmp esi, 8
jae 0x1000ec84
mov edx, dword [ebp + 0x18]
push edx
mov ecx, ebx
call fcn.1000ea20
test eax, eax
je 0x1000ec7a
mov edx, dword [ebx + 4]
push 0
mov eax, 8
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x30]
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x1000ec76
push 0
call fcn.1000e790
add esi, eax
jmp 0x1000ec41
push 0x274c
call fcn.1000e790
mov eax, dword [ebp - 0x30]
test al, al
jne 0x1000ec90
cmp ah, 0x5a
je 0x1000ecb0
push 0x3a
call fcn.1000e790
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx + 8]
call fcn.1008bcd1
mov ecx, dword [ebp - 0x24]
call fcn.1000e6c0
push esi
call fcn.1000e790
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009536d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000ece0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x106
mov ebp, ecx
call fcn.100899ef
add esp, 4
mov ebx, eax
xor esi, esi
mov edi, 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebp
call fcn.1000ea20
test eax, eax
je 0x1000edad
mov eax, dword [ebp + 4]
push 0
mov ecx, 0x106
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000ed86
add esi, eax
cmp esi, 4
jb 0x1000ed72
mov al, byte [ebx + 3]
cmp al, 1
jne 0x1000ed5e
cmp esi, 0xa
sbb edi, edi
neg edi
jne 0x1000ed00
cmp byte [ebx + 1], 0
jne 0x1000ed8d
push ebx
call fcn.100899f4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4
cmp al, 3
jne 0x1000ed9d
cmp esi, 4
jbe 0x1000ed72
movzx ecx, byte [ebx + 4]
add ecx, 6
cmp esi, ecx
jmp 0x1000ed42
test edi, edi
jne 0x1000ed00
push ebx
call fcn.100899f4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
call fcn.1000e790
push ebx
call fcn.100899f4
add esp, 4
push 0x3a
call fcn.1000e790
push ebx
call fcn.100899f4
add esp, 4
push 0x57
call fcn.1000e790
push ebx
call fcn.100899f4
add esp, 4
push 0x274c
call fcn.1000e790
int3
Function at 0x1000f340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100f9124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call dword [0x100fa5b0]
push 0x1000
mov dword [ebp - 0x14], eax
call fcn.100899ef
add esp, 4
mov esi, eax
mov ebx, 0x1000
xor edi, edi
mov dword [ebp - 8], 1
lea esp, [esp]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.1000ea20
test eax, eax
je 0x1000f426
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push 0
push 1
lea ecx, [edi + esi]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000f434
add edi, eax
cmp edi, 4
mov byte [edi + esi], 0
jb 0x1000f3e7
cmp byte [edi + esi - 4], 0xd
jne 0x1000f3e0
cmp byte [edi + esi - 3], 0xa
jne 0x1000f3e0
cmp byte [edi + esi - 2], 0xd
jne 0x1000f3e0
cmp byte [edi + esi - 1], 0xa
mov dword [ebp - 8], 0
je 0x1000f3e7
mov dword [ebp - 8], 1
cmp edi, ebx
jb 0x1000f412
add ebx, 0x1000
push ebx
mov dword [ebp - 0x10], ebx
call fcn.100899ef
push edi
mov ebx, eax
push esi
push ebx
call fcn.10096770
push esi
call fcn.100899f4
mov esi, ebx
mov ebx, dword [ebp - 0x10]
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x1000f380
test esi, esi
jne 0x1000f43b
xor eax, eax
xor ecx, ecx
jmp 0x1000f481
push 0x274c
mov byte [edi + esi], 0
call fcn.1000e790
push 0
call fcn.1000e790
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x1000f420
lea eax, [edi + edi]
call fcn.10097b70
mov ecx, dword [ebp - 0x14]
mov eax, esp
push ecx
push edi
push esi
push eax
call fcn.1000e6e0
test eax, eax
jne 0x1000f46d
xor ecx, ecx
jmp 0x1000f481
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1000f472
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100025f0
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009536d
mov esp, ebp
pop ebp
ret 8
Function at 0x100206c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.10097eb0
push ebx
push esi
mov esi, dword [esp + 0x50]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
push ebx
xor edi, edi
call fcn.100127c0
add esp, 0xc
test eax, eax
je 0x1002071a
lea esp, [esp]
mov edx, dword [esp + 0xc]
shl edx, 8
test dword [esp + 0x18], edx
je 0x10020700
add edi, 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
add ebx, 1
push ebx
call fcn.100127c0
add esp, 0xc
test eax, eax
jne 0x100206f0
mov eax, dword [esp + 0x48]
cdq
idiv edi
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
push esi
push 0
push edx
mov ebx, eax
call fcn.100956b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x5c], 0
call fcn.100127c0
add esp, 0x18
test eax, eax
je 0x1002082d
push ebp
lea esp, [esp]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
shl edx, 8
test eax, edx
je 0x100207e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002080e
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x60]
and ecx, 1
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x5c]
push edi
push eax
call fcn.100203a0
add esp, 0x34
add edi, ebx
test esi, esi
jle 0x100207e0
mov eax, dword [esp + 0x50]
sub ebp, eax
mov ecx, esi
mov dl, byte [eax + ebp]
xor byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x100207d3
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
add eax, 1
push edx
push eax
mov dword [esp + 0x54], eax
call fcn.100127c0
add esp, 0xc
test eax, eax
jne 0x10020760
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0xf1
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.10024880
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x100250f0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.10097eb0
mov eax, dword [0x100f9124]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10025155
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10025155
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.10098c16
add eax, 0x40
push eax
call fcn.10098bfa
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1009536d
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.10098a91
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100251e4
call fcn.10025010
test eax, eax
jle 0x100251e4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1009536d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1009536d
add esp, 0x108
ret

Function at 0x10027970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x100279b9
mov al, byte [edx]
test al, al
je 0x100279b9
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
add edx, 1
xor esi, ecx
test al, al
jne 0x10027987
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10028840
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.10028020
add esp, 8
test esi, esi
jg 0x1002889e
je 0x1002887c
cmp esi, 0xffffffff
jne 0x1002889e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x10028893
cmp eax, 0xb
je 0x10028893
cmp eax, 0x2733
jne 0x1002889e
push 0xa
push edi
call fcn.10028040
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x10033eb0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.1009a64f
mov edi, eax
add esp, 8
test edi, edi
jne 0x10033f46
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10024880
push 0x100bb840
push esi
push 0x100cd88c
push ebx
push str.fopen_
push 5
call fcn.10024460
add esp, 0x2c
call fcn.1009801f
cmp dword [eax], 2
jne 0x10033f28
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10024880
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10024880
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x100f42cc
call fcn.100285e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10033f68
push edi
call fcn.10099eb8
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.10028020
push edi
push 1
push 0x6a
push esi
call fcn.10028380
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10036de0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.10097eb0
mov eax, dword [0x100f9124]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
test ebp, ebp
push edi
mov dword [esp + 0x14], ecx
je 0x10036e2f
mov eax, 1
mov dword [esi], ebp
jmp 0x10036e31
mov ebp, dword [esi]
test ecx, ecx
je 0x10036f14
push ebp
call fcn.10035a90
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x10036e60
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.10025210
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x10036eb7
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.1002e3e0
add esp, 0xc
test eax, eax
je 0x10036fc4
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.1002e590
add esp, 0xc
test eax, eax
je 0x10036fc4
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.1002e5a0
add esp, 0xc
test eax, eax
je 0x10036fc4
jmp 0x10036ef1
cmp edi, 0x80
jbe 0x10036ed3
push str.len_0__len__int_sizeof_ctx__key_
push 0x5f
push str..cryptohmachmac.c
call fcn.10025210
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.10096770
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x10036f1c
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.100956b0
add esp, 0xc
jmp 0x10036f1c
test eax, eax
je 0x10036fb0
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x10036f20
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.1002e3e0
add esp, 0xc
test eax, eax
je 0x10036fc4
push ebp
call fcn.10035a90
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.1002e590
add esp, 0x10
test eax, eax
je 0x10036fc4
xor eax, eax
jmp 0x10036f70
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x10036f70
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.1002e3e0
add esp, 0xc
test eax, eax
je 0x10036fc4
push ebp
call fcn.10035a90
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.1002e590
add esp, 0x10
test eax, eax
je 0x10036fc4
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.1002e730
add esp, 8
test eax, eax
jne 0x10036fc8
xor eax, eax
jmp 0x10036fcd
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009536d
add esp, 0x8c
ret
Function at 0x100414f0
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x10041510
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x100453a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.10097eb0
mov eax, dword [0x100f9124]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov dh, byte [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
add eax, 1
xor ebx, ebx
mov bh, byte [eax]
add eax, 1
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x10], 0
or edx, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x1004557f
sub dword [esp + 0x18], 1
test esi, esi
jne 0x100454db
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.10044880
mov ebx, dword [esp + 0x24]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x38], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 8
add dword [esp + 0x10], 1
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
add esi, 1
mov byte [ebp], cl
add eax, 1
add ebp, 1
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x10045477
cmp dword [esp + 0x10], 0
je 0x10045566
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1009536d
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1009536d
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009536d
add esp, 0x28
ret
Function at 0x100455a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov byte [edi], 0
jle 0x100455ba
mov eax, 0x80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x100455ca
cmp ecx, 0x400
jle 0x100455cf
mov ecx, 0x400
test eax, eax
jle 0x100455ee
mov esi, dword [esp + 0x18]
push ebp
mov edx, edi
sub esi, edi
mov ebp, eax
mov edi, edi
mov bl, byte [esi + edx]
mov byte [edx], bl
add edx, 1
sub ebp, 1
jne 0x100455e0
pop ebp
cmp eax, 0x80
movzx edx, byte [edi + eax - 1]
jge 0x10045620
mov esi, edi
sub esi, eax
mov edi, edi
movzx ebx, byte [esi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x100d32f8]
mov byte [eax + edi], dl
add eax, 1
cmp eax, 0x80
jl 0x10045600
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea esi, [eax + edi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [esi]
and ebx, ecx
test eax, eax
movzx ecx, byte [ebx + 0x100d32f8]
mov byte [esi], cl
je 0x1004566a
mov edi, edi
movzx ebx, byte [esi + edx - 1]
sub esi, 1
xor ebx, ecx
movzx ecx, byte [ebx + 0x100d32f8]
sub eax, 1
test eax, eax
mov byte [esi], cl
jne 0x10045650
lea ecx, [edi + 0xfc]
lea eax, [edi + 0x7e]
mov esi, 0x40
xor edx, edx
mov dh, byte [eax + 1]
sub ecx, 4
sub eax, 2
mov dl, byte [eax + 2]
and edx, 0xffff
sub esi, 1
mov dword [ecx + 4], edx
jne 0x10045678
pop edi
pop esi
pop ebx
ret
Function at 0x10045a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
cmp edx, 0
je 0x10045b87
mov al, byte [edi]
mov bl, byte [edi + 4]
add edi, 8
lea ecx, [esi + edx]
sub ebp, esi
mov dword [esp + 0x18], ecx
inc al
cmp dword [edi + 0x100], 0xffffffff
je 0x10045b50
mov ecx, dword [edi + eax*4]
and edx, 0xfffffffc
je 0x10045b10
lea edx, [esi + edx - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov ecx, dword [edi + eax*4]
mov ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [esp + 0x20]
or ebp, dword [edi + edx*4]
ror ebp, 8
xor ebp, dword [esi]
cmp esi, dword [esp + 0x1c]
mov dword [ecx + esi], ebp
lea esi, [esi + 4]
mov ecx, dword [edi + eax*4]
jb 0x10045a70
cmp esi, dword [esp + 0x18]
je 0x10045b7f
mov ebp, dword [esp + 0x20]
nop
nop
nop
nop
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov edx, dword [edi + edx*4]
xor dl, byte [esi]
lea esi, [esi + 1]
mov ecx, dword [edi + eax*4]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x10045b10
jmp 0x10045b7f
movzx ecx, byte [edi + eax]
add bl, cl
movzx edx, byte [edi + ebx]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add dl, cl
movzx edx, byte [edi + edx]
add al, 1
xor dl, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [edi + eax]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x10045b54
dec al
mov byte [edi - 4], bl
mov byte [edi - 8], al
pop edi
pop esi
pop ebx
pop ebp
ret