joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6d90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [eax], 0
test edi, edi
jne 0x4b6dba
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4b6db1
sub edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [edi*4]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 4]
shr edx, 1
add edx, 4
push esi
push edx
call eax
add esp, 8
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x4b6ded
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4b6eb6
xor edx, edx
xor eax, eax
nop dword [eax]
test edi, edi
je 0x4b6e0b
mov cl, byte [ebx]
inc edx
inc ebx
dec edi
jmp 0x4b6e16
cmp eax, 3
jae 0x4b6ed3
xor cl, cl
mov byte [ebp + eax + 8], cl
inc eax
cmp eax, 3
jl 0x4b6e00
mov ah, byte [ebp + 8]
mov cl, byte [ebp + 9]
mov al, ah
shr al, 2
and ah, 3
mov byte [ebp + 0xf], al
mov al, cl
shl ah, 4
and cl, 0xf
shr al, 4
or ah, al
shl cl, 2
mov byte [ebp + 0x13], ah
mov ah, byte [ebp + 0xa]
mov al, ah
and ah, 0x3f
shr al, 6
or cl, al
sub edx, 1
je 0x4b6e7c
sub edx, 1
je 0x4b6e6f
movzx eax, ah
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, cl
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4b6e80
movzx eax, cl
mov dl, 0x3d
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4b6e80
mov dl, 0x3d
mov ch, dl
movzx eax, byte [ebp + 0xf]
mov esi, dword [ebp - 4]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, byte [ebp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov byte [eax + 2], ch
mov byte [eax + 3], dl
add eax, 4
mov dword [ebp - 4], eax
test edi, edi
jne 0x4b6df5
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4b6ec1
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042ade5
int3
Function at 0x4b7670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
test edi, edi
je 0x4b7733
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp edi, 0x40
jb 0x4b7716
lea ecx, [esi - 1]
lea edx, [eax - 1]
add ecx, edi
add edx, edi
cmp eax, ecx
ja 0x4b76a4
cmp edx, esi
jae 0x4b7716
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 1]
add ecx, edi
cmp eax, ecx
ja 0x4b76b9
lea ecx, [edi - 1]
add ecx, eax
cmp ecx, edx
jae 0x4b7719
mov ecx, edi
and ecx, 0xffffffc0
nop
movups xmm0, xmmword [esi]
add ebx, 0x40
movups xmm1, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax], xmm1
movups xmm1, xmmword [edx + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x10], xmm1
movups xmm1, xmmword [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x30]
add esi, 0x40
movups xmmword [eax + 0x20], xmm1
movups xmm1, xmmword [edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp ebx, ecx
jb 0x4b76c0
mov dword [ebp + 0x14], ebx
cmp ebx, edi
jae 0x4b7732
jmp 0x4b7719
mov edx, dword [ebp + 0xc]
sub edx, eax
sub esi, eax
sub edi, ebx
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [edx + eax - 1]
mov byte [eax - 1], cl
sub edi, 1
jne 0x4b7720
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4be8c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x5a3b7c], 0
push ebx
push esi
mov esi, 0x5a3b84
jne 0x4be8ec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x5a3b9c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5a3b7c], 1
push dword [0x5a3b9c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4be989
push 0x14
push 8
push dword [0x59f0c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4be9b3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5a3b80]
test eax, eax
je 0x4be92e
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x5a3b80], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4be9b8
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x5a3b9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x59f0c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4be9b3
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x4bef70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bef9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bef9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c9cce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004bee30
mov eax, dword [0x59e414]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043825d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c9d10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c9e6c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bf1c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x59fa48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00439d8a
mov ecx, dword [esi*4 + 0x59fa48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4c9e65
cmp eax, dword [ecx + edi + 0x24]
jne 0x4c9e65
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9e65
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439d8a
add esp, 0x14
test edx, edx
jl 0x4c9e65
jg 0x4c9ddb
test eax, eax
jb 0x4c9e65
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c9e65
jl 0x4c9df5
cmp dword [ebp - 0x1008], eax
ja 0x4c9e65
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c9e13
test ebx, ebx
je 0x4c9e4c
cmp ecx, edi
jae 0x4c9e4c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c9e2d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c9e39
cmp byte [ecx + 1], 0xa
jne 0x4c9e39
inc ecx
jmp 0x4c9e39
movzx eax, al
movsx eax, byte [eax + 0x59eb78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c9e13
cmp edx, ebx
jne 0x4c9e13
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c9e6a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042acb5
leave
ret
Function at 0x4cbee7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59e414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4feac0
push esi
call fcn.00433577
pop ecx
pop ecx
test eax, eax
jne 0x4cbf15
xor al, al
jmp 0x4cbf92
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004cbc1c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4cbf4f
push dword [ebp - 0x210]
call fcn.004bf434
xor al, al
jmp 0x4cbf90
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4cbf55
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4cbf75
push edx
call fcn.004cbe1e
pop ecx
test al, al
je 0x4cbf40
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4cbf83
mov bl, 1
push dword [ebp - 0x210]
call fcn.004bf434
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042acb5
leave
ret

Function at 0x4d4166
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x59e414]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4d41a9
call fcn.0042fb6c
mov dword [eax], 0xf
call fcn.0042fb7f
mov dword [eax], 0xd
call fcn.0042dfdb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042acb5
leave
ret
test eax, eax
jne 0x4d41b0
inc eax
jmp 0x4d419d
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4d419b
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4d419d
Function at 0x4d4e94
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d4e10
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d5003
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d5003
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d4fb8
jg 0x4d4ef0
test eax, eax
je 0x4d4fae
push 1
push 0x1000
call fcn.0042e01f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d4f13
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d4fa5
push 0x8000
push ebx
call fcn.0042bf61
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d4f3c
jg 0x4d4f37
cmp ecx, 0x1000
jb 0x4d4f3c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00438b6e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d4f81
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d4f37
jl 0x4d4f68
test ecx, ecx
jne 0x4d4f29
push dword [ebp - 0xc]
push ebx
call fcn.0042bf61
push esi
call fcn.0042e07c
add esp, 0xc
xor ebx, ebx
jmp 0x4d5011
cmp byte [edi + 0x24], 0
je 0x4d4f98
cmp dword [edi + 0x20], 5
jne 0x4d4f98
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d4fa3
mov ebx, dword [edi + 0x18]
jmp 0x4d4fa5
xor ebx, ebx
push esi
call fcn.0042e07c
pop ecx
jmp 0x4d5011
test ecx, ecx
jg 0x4d4f7a
jl 0x4d4fb8
test eax, eax
jae 0x4d4f7a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439da8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d4fd8
cmp byte [edi + 0x1c], 0
je 0x4d4f7a
jmp 0x4d5009
push ebx
call fcn.00431dfa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d4f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d5011
cmp byte [edi + 0x1c], 0
je 0x4d500e
mov ebx, dword [edi + 0x18]
jmp 0x4d5011
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00439da8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d5b88
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x59f0c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x5a3e04]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x5a3e00], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004d8bf5
mov dword [esi + 0x58], 0x4d6a8d
mov eax, esi
mov dword [esi + 0x5c], 0x4d6ad9
mov dword [esi + 0x10], fcn.004d65e7
mov dword [esi + 0x30], 0x4d63d0
mov dword [esi + 0x64], 0x4d6b6e
mov dword [esi + 0x60], 0x4d6b22
mov dword [esi + 0x34], 0x4d5f49
mov dword [esi + 0x24], 0x4d5f20
mov dword [esi + 0x28], 0x4d5ef5
mov dword [esi + 0x2c], 0x4d5e49
mov dword [esi + 0x44], 0x4d6882
mov dword [esi + 0x68], 0x4d5c49
mov dword [esi + 0x6c], 0x4d6d70
pop esi
ret 4
Function at 0x4db029
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x4db0fb
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x28]
imul edx, dword [esp + 0x1c], 3
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
add eax, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], edx
add esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov edi, dword [eax + 0xcc]
imul edi, ebp
mov dword [esp + 0x28], esi
add edi, dword [eax + 0xc8]
add edi, edx
test ecx, ecx
jle 0x4db0cf
mov ebp, dword [esp + 0x28]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov esi, ecx
movzx eax, byte [ebp]
imul eax, dword [esp + 0x40]
movzx ecx, byte [edi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [edi], al
inc edi
sub esi, 1
jne 0x4db095
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4db0e8
sub esi, dword [esp + 0x24]
jmp 0x4db0ec
add esi, dword [esp + 0x24]
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x4db06d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28

Function at 0x4db71d
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4db7c9
imul eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x24], 3
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0xcc]
mov ebp, ecx
imul edx, ebx
add edx, dword [edi + 0xc8]
add edx, eax
cmp dword [esp + 0x34], 0
jle 0x4db7aa
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [edx + 2], al
mov al, byte [ebp + 1]
xor byte [edx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [edx], al
add edx, edi
sub esi, 1
jne 0x4db783
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x4db7bf
sub ecx, dword [esp + 0x20]
jmp 0x4db7c3
add ecx, dword [esp + 0x20]
test esi, esi
jne 0x4db761
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24
Function at 0x4dbc4f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4dbe5f
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
imul esi, dword [esp + 0x20], 3
add ecx, dword [esp + 0x18]
push edi
mov edi, 0xff
cmp dword [esp + 0x3c], edi
jne 0x4dbd6d
lea ebp, [ecx + eax*4]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [ecx + 0xcc]
imul ebx, eax
mov dword [esp + 0x2c], ebp
add ebx, dword [ecx + 0xc8]
add ebx, esi
cmp dword [esp + 0x34], 0
jle 0x4dbd3f
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x4dbcc4
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x4dbd58
sub ebp, dword [esp + 0x20]
jmp 0x4dbd5c
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test edx, edx
jne 0x4dbc9c
jmp 0x4dbe5b
lea ebx, [ecx + eax*4]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov ebp, dword [ecx + 0xcc]
imul ebp, eax
mov dword [esp + 0x2c], ebx
add ebp, dword [ecx + 0xc8]
add ebp, esi
cmp dword [esp + 0x34], 0
jle 0x4dbe32
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 3]
mov esi, 0xff
imul eax, dword [esp + 0x3c]
movzx ecx, byte [ebp + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebx + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebp + 1]
mov byte [ebp + 2], al
movzx eax, byte [ebx + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [ebp]
movzx ecx, byte [ebx]
lea ebx, [ebx + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebp], al
lea ebp, [ebp + 3]
jne 0x4dbdac
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x4dbe4b
sub ebx, dword [esp + 0x20]
jmp 0x4dbe4f
add ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x4dbd84
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x4dc88d
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4dc939
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add ecx, dword [esp + 0x18]
push ebp
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x34], 0
jle 0x4dc91a
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, edi
sub esi, 1
jne 0x4dc8f3
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x4dc92f
sub edx, dword [esp + 0x20]
jmp 0x4dc933
add edx, dword [esp + 0x20]
test esi, esi
jne 0x4dc8d1
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24
Function at 0x4de6e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4de87c
push dword [esp + 0x28]
call fcn.004518ef
test eax, eax
je 0x4de725
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4de87c
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4de869
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4de861
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0043afb0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4de861
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4de861
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4de861
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x4de858
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x4de830
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4de813
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4