joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
push eax
call fcn.10041f9a
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, 0x40
jne 0x1003d96a
mov ebx, 0x2746
jmp 0x1003d976
cmp eax, 0x4d2
jne 0x1003d980
mov ebx, 0x274d
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], ebx
cmp dword [ebp - 0xc], edi
je 0x1003d98a
or eax, 0xffffffff
jmp 0x1003d997
call fcn.1007d8c0
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003da09
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
or ebx, 0xffffffff
push edi
mov esi, ecx
mov edi, edx
cmp dword [ebp + 8], ebx
jne 0x1003da22
mov edi, 0x2719
jmp 0x1003da9f
cmp dword [ebp + 0xc], 0xa5100000
jne 0x1003da61
cmp edi, 2
jne 0x1003da37
mov edi, 0x2726
jmp 0x1003da9f
cmp edi, 1
jne 0x1003da75
cmp dword [ebp + 0x14], 4
jne 0x1003da30
mov ecx, dword [ebp + 0x10]
xor edi, edi
cmp dword [ecx], edi
je 0x1003da50
or byte [eax], 4
jmp 0x1003da53
and byte [eax], 0xfb
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x1003daab
cmp dword [ebp + 0xc], 0xffff
jne 0x1003da75
cmp edi, 0x80
jne 0x1003da75
or byte [eax], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.10041f9a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1003daa9
xor edi, edi
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1003db17
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp + 0xc], ebx
jne 0x1003db6c
cmp dword [ebp + 0x10], ebx
jne 0x1003db6c
cmp dword [ebp + 0x14], ebx
jne 0x1003db6c
cmp edi, ebx
je 0x1003db87
mov eax, dword [edi + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
add eax, ecx
jne 0x1003db55
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x1003dbb5
cmp edi, ebx
je 0x1003db87
cmp dword [edi], ebx
jne 0x1003db87
mov eax, dword [edi + 4]
cmp eax, ebx
jle 0x1003db87
mov ecx, 0x3e8
cmp eax, ecx
jge 0x1003db87
mov dword [edi + 4], ecx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.10041f9a
mov ebx, eax
pop ecx
test ebx, ebx
js 0x1003dbb3
xor edi, edi
call fcn.1007d8c0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1003e2a1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 5]
xor ebx, ebx
push esi
mov byte [ebp - 5], bl
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
call fcn.1007d8c0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.1007d8c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1003e2fd
cmp eax, 0x4d2
jne 0x1003e302
call fcn.1007d8c0
cmp esi, ebx
jne 0x1003e30b
call fcn.1007d8c0
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x1003ec72
push 0
push 0
jmp 0x1003ec83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x1003ec8d
push 0
push 0x2719
mov eax, dword [ebx + 4]
call fcn.1003d70d
jmp 0x1003ece1
and dword [ebp + 0x18], 0
push edi
push 0
push esi
push dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x1003ecbd
mov eax, 0x274d
test edi, edi
je 0x1003ecd6
cmp eax, 0x3e5
je 0x1003ecd6
push dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 4]
call fcn.1003d70d
jmp 0x1003ece0
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.1003d6ae
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x1003ece6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x1003ed05
push 0
push 0
jmp 0x1003ed16
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x1003ed20
push 0
push 0x2719
mov eax, dword [ebx + 4]
call fcn.1003d70d
jmp 0x1003ed87
mov ecx, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push esi
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1003ed57
mov eax, 0x2746
jmp 0x1003ed63
cmp eax, 0x4d2
jne 0x1003ed63
mov eax, 0x274d
test edi, edi
je 0x1003ed7c
cmp eax, 0x3e5
je 0x1003ed7c
push dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 4]
call fcn.1003d70d
jmp 0x1003ed86
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.1003d6ae
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1004aae2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
push edi
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x1004ab2f
push 0x10
xor eax, eax
pop esi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
add edx, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add ecx, edi
dec esi
jne 0x1004ab58
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1004abcf
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
push edi
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x1004ac1c
push 0x10
mov eax, 0xe3779b90
pop esi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
sub ecx, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x14]
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub edx, edi
add eax, 0x61c88647
dec esi
jne 0x1004ac48
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1004b266
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, 0xfffffc18
mov dword [ebp - 0x118], 0x114
call fcn.1005d3f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004b3e4
cmp dword [ebp - 0x108], 2
jne 0x1004b3e4
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
mov dword [edi], eax
mov dword [ebx], ecx
cmp eax, 5
jne 0x1004b35f
test ecx, ecx
jne 0x1004b2e6
xor esi, esi
inc esi
jmp 0x1004b3e4
cmp ecx, 1
jne 0x1004b34e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1004b309
push 3
jmp 0x1004b359
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1004b327
push 4
jmp 0x1004b359
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.1005f333
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
jmp 0x1004b3e4
cmp ecx, 2
jne 0x1004b3e4
push 6
pop esi
jmp 0x1004b3e4
cmp eax, 6
jne 0x1004b3dd
test ecx, ecx
jne 0x1004b3aa
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1004b386
push 8
jmp 0x1004b359
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.1005f333
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 9
jmp 0x1004b3e4
cmp ecx, 1
jne 0x1004b3b3
push 0xa
jmp 0x1004b359
call fcn.1004b237
movzx eax, ax
cmp eax, 2
jne 0x1004b3c4
push 0xb
jmp 0x1004b359
xor ecx, ecx
cmp eax, 3
setne cl
lea esi, [ecx - 1]
and esi, 0xfffffc24
add esi, 0x3e8
jmp 0x1004b3e4
jbe 0x1004b3e4
mov esi, 0x3e8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x1004b535
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x1004b566
or eax, 0xffffffff
jmp 0x1004b6a8
cmp dword [ebp + 8], edi
jg 0x1004b573
push 0xfffffffffffffffe
pop eax
jmp 0x1004b6a8
cmp dword [ebp + 0x14], edi
jne 0x1004b57c
push 0xfffffffffffffffd
jmp 0x1004b56d
cmp dword [ebp + 0x10], edi
jg 0x1004b585
push 0xfffffffffffffffc
jmp 0x1004b56d
cmp eax, edi
jne 0x1004b58d
push 0xfffffffffffffffb
jmp 0x1004b56d
cmp ecx, edi
jg 0x1004b595
push 0xfffffffffffffffa
jmp 0x1004b56d
cmp dword [ebp + 0x10], ecx
jge 0x1004b59e
push 0xfffffffffffffff9
jmp 0x1004b56d
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x1004b5a2
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x1004b5ee
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x1004b5c6
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x1004b6a5
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x1004b63f
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x1004b65f
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x1004b68a
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x1004b62e
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x1004b6b6
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x1004b6e7
or eax, 0xffffffff
jmp 0x1004b829
cmp dword [ebp + 8], edi
jg 0x1004b6f4
push 0xfffffffffffffffe
pop eax
jmp 0x1004b829
cmp eax, edi
jne 0x1004b6fc
push 0xfffffffffffffffd
jmp 0x1004b6ee
cmp dword [ebp + 0x10], edi
jg 0x1004b705
push 0xfffffffffffffffc
jmp 0x1004b6ee
cmp dword [ebp + 0x14], edi
jne 0x1004b70e
push 0xfffffffffffffffb
jmp 0x1004b6ee
cmp ecx, edi
jg 0x1004b716
push 0xfffffffffffffffa
jmp 0x1004b6ee
cmp dword [ebp + 0x10], ecx
jge 0x1004b71f
push 0xfffffffffffffff9
jmp 0x1004b6ee
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x1004b723
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x1004b76f
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x1004b747
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x1004b826
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x1004b7c0
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x1004b7e0
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x1004b80b
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x1004b7af
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x1004c0bb
Capabilities:
Write file on windows

Disassembly:
push 0x80
mov eax, 0x1009b177
call fcn.1007684e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x100da3b0
mov byte [ebp - 0x7c], bl
call fcn.10024fa9
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x6d], bl
call fcn.1004c27a
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x1004c119
lea eax, [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, 0x40000000
push edi
push eax
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x1004c16f
push 1
lea ecx, [ebp - 0x6c]
call fcn.1004c27a
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
pop ecx
jae 0x1004c14d
lea eax, [ebp - 0x6c]
push ebx
push ebx
push 2
push ebx
push ebx
push edi
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
call fcn.1000f89d
cmp dword [ebp - 0x78], 0xffffffff
je 0x1004c253
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x74]
push eax
push 4
push 0x100b5150
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x1004c24a
cmp dword [ebp - 0x74], 4
jne 0x1004c24a
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
push dword [ebp - 0x88]
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x1004c24a
cmp dword [ebp - 0x74], 0x10
jne 0x1004c24a
xor eax, eax
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1004c1db
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x34]
call fcn.10052b12
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x1004c24a
cmp dword [ebp - 0x74], 0x10
jne 0x1004c24a
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1004c220
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x24]
call fcn.10052b12
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x1004c24a
cmp dword [ebp - 0x74], 0x10
jne 0x1004c24a
mov byte [ebp - 0x6d], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.1000f89d
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x7c], bl
je 0x1004c26f
mov ecx, dword [ebp - 0x80]
call fcn.10023e8b
mov al, byte [ebp - 0x6d]
call fcn.100768d1
ret 0xc
Function at 0x1004ed40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x1004edcf
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.1005c880
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1004ed8d
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1004edb0
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1004eefa
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x1004edf7
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1004ee02
xor eax, eax
jmp 0x1004ee4d
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x1004ee1f
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.10050b1b
jmp 0x1004ee30
cmp ecx, 2
jne 0x1004ee37
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.1004ca8f
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.1005c880
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x1004ee75
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edi]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x1004ee89
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1004ed4b
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x1004eefa
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x1004eec9
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x1004eeae
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.1005d3f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x1004eefa
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x1004eefa
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x1004eee3
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.1005d3f0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret