joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a3f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48a45d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040459c
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040938c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004045f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a464
lea eax, [ebp - 4]
call fcn.0040459c
ret

Function at 0x48aa84
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x491bb4]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x48aac0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x48aad8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48aad1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403090
xor edx, edx
mov eax, 0x491db4
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x48ab42
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x48aaf6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x48ad80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x48ad99
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x48ad92
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x48adab
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48ada4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0048a974
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48adc5
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0048aa84
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x48ae4a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x48ae67
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0048aa04
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48ae90
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48aea8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x48aec1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x48aeba
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x48aed5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048a86c
test bl, bl
jne 0x48afa8
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x493db8
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48af0c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48af20
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048ad80
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x48af52
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x48af01
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48af75
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x48af86
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48af9a
jmp 0x48b063
cmp bl, 1
jne 0x48b063
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x493e12
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48afc8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48afdc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048ad80
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x48b00e
sub ebx, 6
inc dword [ebp - 8]
jne 0x48afbd
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x48b035
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x48b046
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x48b05a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048a8f0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x48bef4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a3c
xor eax, eax
push ebp
push 0x48bf72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a4c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x48bf3d
mov eax, dword [ebx + 4]
call fcn.00404a4c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf79
lea eax, [ebp - 4]
call fcn.0040459c
ret

Function at 0x48cf44
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48d0e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402af8
cmp word [ebx + 0xa2], 0
je 0x48cf8d
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x48cfa1
lea esi, [ebp - 8]
jmp 0x48cfa3
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x48cfb0
xor edi, edi
jmp 0x48cfbd
mov eax, dword [ebx + 0x80]
call fcn.00404a4c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404a4c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0048c6ac
mov eax, dword [ebp - 0x14]
call fcn.00404a4c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404a4c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404a4c
push eax
mov eax, ebx
call fcn.0048c7e0
push eax
mov eax, ebx
call fcn.0048c7b4
push eax
mov eax, ebx
call fcn.0048c768
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0048c578
mov eax, dword [ebp - 0x18]
call fcn.00404a4c
push eax
mov eax, dword [ebx + 8]
call fcn.00404a4c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x48d046
call fcn.0040d9c0
xor edx, edx
push ebp
push 0x48d0bf
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x48d084
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x48d07a
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48d0a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d0c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x48d0f0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x48d11c
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404a4c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48d141
call fcn.0040d9c0
xor eax, eax
push ebp
push 0x48d178
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x48d161
call fcn.0040d9c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d17f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x48de78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x48de81
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a3c
mov eax, dword [ebp - 8]
call fcn.00404a3c
mov eax, dword [ebp + 8]
call fcn.00404a3c
xor eax, eax
push ebp
push 0x48e0dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x495d84
mov edx, dword [ebp - 4]
call fcn.004045f0
mov eax, dword [ebx + 0x304]
mov eax, dword [eax + 0xdc]
add eax, 0x80
mov edx, dword [ebp - 8]
call fcn.004045f0
mov eax, dword [ebx + 0x304]
mov eax, dword [eax + 0xdc]
add eax, 0x5c
mov edx, dword [ebp + 8]
call fcn.004045f0
xor eax, eax
push ebp
push 0x48e09f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x495d84]
call fcn.0048a354
push 0x495d80
mov eax, dword [0x495d84]
call fcn.00404854
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404854
pop ecx
sub ecx, eax
mov edx, 1
mov eax, dword [0x495d84]
call fcn.00404aac
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x495d88]
call fcn.004048a0
mov eax, dword [ebp - 0x10]
call fcn.00408fcc
test al, al
je 0x48df75
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x495d88]
call fcn.004048a0
mov eax, dword [ebp - 0x14]
call fcn.00408fdc
mov eax, dword [ebx + 0x33c]
mov edx, 0x48e0f8
call fcn.0043f940
push 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x495d88]
call fcn.004048a0
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x495d84]
mov eax, ebx
call fcn.0048dd20
cmp byte [0x495d94], 0
je 0x48e095
xor eax, eax
push ebp
push 0x48e081
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x495d88]
push 0x48e110
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 0x1c]
call fcn.00408fcc
test al, al
je 0x48e00d
push dword [0x495d88]
push 0x48e110
push dword [ebp - 0xc]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 0x20]
call fcn.00408fdc
push dword [0x495d88]
push 0x48e110
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x495d88]
call fcn.004048a0
mov eax, dword [ebp - 0x28]
pop edx
call fcn.00475be0
push dword [0x495d88]
push 0x48e110
push 0x48e120
mov eax, 0x495d7c
mov edx, 3
call fcn.00404914
push 0
mov eax, dword [0x495d7c]
call fcn.00404a4c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e095
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e0ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e0e4
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004045c0
lea eax, [ebp + 8]
call fcn.0040459c
ret
Function at 0x48e950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x48ea63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48ea3e
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x495db0]
push 0x48ea7c
push 0x48ea8c
mov eax, 0x495dac
mov edx, 3
call fcn.00404914
push dword [0x495db0]
push 0x48ea7c
push 0x48ea8c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 4]
call fcn.00408fcc
test al, al
je 0x48e9e5
push dword [0x495db0]
push 0x48ea7c
push 0x48ea8c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 8]
call fcn.00408fdc
push dword [0x495db0]
push 0x48ea7c
push 0x48ea8c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404914
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, 0x48ea8c
mov edx, dword [0x495db0]
call fcn.004048a0
mov eax, dword [ebp - 0x10]
pop edx
call fcn.00475be0
push 0
mov eax, dword [0x495dac]
call fcn.00404a4c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ea48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ea6a
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004045c0
ret
Function at 0x668620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00663520
test eax, eax
jne 0x66868c
push ebp
push 0x59bf54
mov ecx, edi
call fcn.006678a0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00662f50
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0065a550
push ebx
mov dword [esp + 0x4c], ebp
call fcn.006636d0
add esp, 4
test eax, eax
je 0x66872f
add esi, 0x18
push esi
call 0x6a0460
add esi, eax
push esi
call 0x6a0460
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x668a32
jmp dword [ecx*4 + 0x495e70]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.006679e0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call 0x6a0460
add esi, eax
push esi
call 0x6a0460
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x668780
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004fa438]
test eax, eax
je 0x668780
mov eax, 1
jmp 0x668782
xor eax, eax
cmp ebx, 8
jge 0x6689e7
cmp ebx, 7
ja 0x668a32
jmp dword [ebx*4 + 0x495e80]
test eax, eax
jne 0x6689fa
mov ecx, dword [esp + 0x10]
push eax
push 0x59bf40
call fcn.006678a0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00668f40
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x585038
call fcn.0065a750
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x671560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5b3b90]
xor edx, edx
cmp eax, edx
jne 0x671586
xor eax, eax
mov byte [eax + 0x5b3a90], al
inc eax
cmp eax, 0x100
jl 0x67156e
mov dword [0x5b3b90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5b3a90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x671617
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x6715ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x6715b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x671690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x6716e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x6716ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x675980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x675ba1
cmp eax, 8
jg 0x675ba1
cmp dword [esp + 0x8c], 2
jl 0x675ba1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x675ba1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x675ba1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x675a07
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x675b8a
mov ebp, dword [fcn.004fa4d0]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x675a39
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x675b71
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x675a59
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.004fa4e0]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x675a98
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.004fa4dc]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004fa49c]
test eax, eax
jne 0x675b58
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00674f90
cmp eax, 1
jne 0x675b82
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00675840
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x675a4d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x675b8a
jmp 0x675a24
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00674b90
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c