joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f76d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0050b0c0
mov eax, dword [0xc62148]
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.0050c6f6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f7716
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f7872
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00515dc0
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 + 0xc64e10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00525b9b
mov ecx, dword [esi*4 + 0xc64e10]
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 0x4f786b
cmp eax, dword [ecx + edi + 0x24]
jne 0x4f786b
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 0x4f786b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00525b9b
add esp, 0x14
test edx, edx
jl 0x4f786b
jg 0x4f77e1
test eax, eax
jb 0x4f786b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f786b
jl 0x4f77fb
cmp dword [ebp - 0x1008], eax
ja 0x4f786b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f7819
test ebx, ebx
je 0x4f7852
cmp ecx, edi
jae 0x4f7852
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f7833
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f783f
cmp byte [ecx + 1], 0xa
jne 0x4f783f
inc ecx
jmp 0x4f783f
movzx eax, al
movsx eax, byte [eax + 0xc62190]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f7819
cmp edx, ebx
jne 0x4f7819
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f7870
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0050c72a
leave
ret

Function at 0x4f7cd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4f7d08
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f7d03
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.004adb10
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x4f89c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

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

Disassembly:
cmp dword [0xc64b5c], 0
push ebx
push esi
mov esi, 0xc64b64
jne 0x4f8b24
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0xc64b7c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xc64b5c], 1
push dword [0xc64b7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4f8bc1
push 0x14
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4f8beb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xc64b60]
test eax, eax
je 0x4f8b66
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0xc64b60], 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 0x4f8c6e
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0xc64b7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4f8beb
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 0x4faf2d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x559d20
push 0x559d18
push str.FlsAlloc
push 0x1f
call fcn.004fb525
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4faf61
push dword [ebp + 8]
mov ecx, esi
call dword [0x584854]
call esi
jmp 0x4faf67
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fafab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x559d30
push 0x559d28
push str.FlsGetValue
push 0x21
call fcn.004fb525
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fafe2
push dword [ebp + 8]
mov ecx, esi
call dword [0x584854]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fafea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x559d38
push 0x559d30
push str.FlsSetValue
push 0x22
call fcn.004fb525
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fb024
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x584854]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5179e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xc64e10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x517a29
cmp byte [ebx], 0xa
jne 0x517a29
or byte [edi + eax + 0x28], 4
jmp 0x517a2e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x517b2d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x517b10
inc eax
cmp dl, 0xd
je 0x517a5a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x517a80
cmp eax, ecx
jae 0x517a8e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x517a42
jmp 0x517b2d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x517b0b
cmp dword [ebp - 0x10], 0
je 0x517b0b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xc64e10]
test byte [eax + edi + 0x28], 0x48
je 0x517ae5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x517ad0
mov byte [esi], dl
jmp 0x517ae1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xc64e10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x517b2d
cmp byte [ebp - 1], 0xa
jne 0x517af4
cmp esi, ebx
jne 0x517af4
mov byte [esi], 0xa
jmp 0x517b2c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00525b3d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x517b2d
mov byte [esi], 0xd
jmp 0x517b2c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xc64e10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x517b2a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x517b2d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x517b36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xc64e10]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x517b7c
cmp word [ebx], dx
jne 0x517b7c
or byte [eax + edi + 0x28], 4
jmp 0x517b81
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x517ce4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x517cc4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x517bc2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x517bf8
cmp eax, edx
jae 0x517c06
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x517b9d
jmp 0x517ce4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x517cbf
cmp dword [ebp - 0x18], 0
je 0x517cbf
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xc64e10]
test byte [eax + edi + 0x28], 0x48
je 0x517c95
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x517c59
mov word [esi], cx
jmp 0x517c90
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xc64e10]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xc64e10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xc64e10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x517ce4
pop eax
cmp word [ebp - 4], ax
jne 0x517ca5
cmp esi, ebx
jne 0x517ca5
mov word [esi], ax
jmp 0x517ce1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00525b3d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x517ce4
push 0xd
pop eax
jmp 0x517ca0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xc64e10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x517cde
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x517ce4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52213c
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 0x5221e8
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 0x5221c9
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 0x5221a2
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 0x5221de
sub ecx, dword [esp + 0x20]
jmp 0x5221e2
add ecx, dword [esp + 0x20]
test esi, esi
jne 0x522180
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24

Function at 0x522265
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 0x522337
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 0x52230b
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 0x5222d1
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 0x522324
sub esi, dword [esp + 0x24]
jmp 0x522328
add esi, dword [esp + 0x24]
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x5222a9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x522bf3
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 0x522c9f
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 0x522c80
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 0x522c59
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 0x522c95
sub edx, dword [esp + 0x20]
jmp 0x522c99
add edx, dword [esp + 0x20]
test esi, esi
jne 0x522c37
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24
Function at 0x522d3f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x522f4f
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 0x522e5d
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 0x522e2f
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 0x522db4
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 0x522e48
sub ebp, dword [esp + 0x20]
jmp 0x522e4c
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test edx, edx
jne 0x522d8c
jmp 0x522f4b
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 0x522f22
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 0x522e9c
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 0x522f3b
sub ebx, dword [esp + 0x20]
jmp 0x522f3f
add ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x522e74
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x524da7
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 0x524f3e
push dword [esp + 0x28]
call fcn.004856e1
test eax, eax
je 0x524de7
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x524f3e
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x524f2b
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 0x524f23
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00494030
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 0x524f23
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 0x524f23
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 0x524f23
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 0x524f1a
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 0x524ef2
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x524ed5
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
Function at 0x525060
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 4], 0
je 0x525087
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004efa30
mov dword [esp + 4], eax
jmp 0x5250a1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x525158
mov cl, byte [esp + 0xc]
test cl, cl
js 0x5250c6
mov eax, dword [esp + 0x10]
pop esi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push edi
cmp al, 0xc0
jne 0x5250d6
mov edi, 2
jmp 0x5250f2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x5250e5
mov edi, 3
jmp 0x5250f2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x525144
mov edi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [edi - 1]
mov byte [eax], cl
inc eax
cmp dword [esi + 4], 0
je 0x52511e
push ebx
push eax
push esi
call fcn.004efa30
mov ecx, eax
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x525666
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
or eax, edx
push esi
mov esi, dword [esp + 0x14]
or eax, esi
push edi
mov edi, dword [esp + 0x1c]
or eax, edi
test al, 3
jne 0x5256b7
add edi, esi
cmp esi, edi
jae 0x5256cf
sub ebx, esi
add ebx, edx
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + esi], edx
add esi, 4
cmp esi, edi
jb 0x52568f
jmp 0x5256cf
add edi, edx
cmp edx, edi
jae 0x5256cf
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x5256bf
pop edi
pop esi
pop ebx
ret

Function at 0x5256d3
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x52571b
lea ebp, [esi + edi]
cmp esi, ebp
jae 0x525733
sub ebx, esi
lea edi, [ebx + edx]
push dword [esi + 4]
push dword [esi]
call fcn.004f2723
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
add esi, 8
pop ecx
pop ecx
cmp esi, ebp
jb 0x5256ff
jmp 0x525733
add edi, edx
cmp edx, edi
jae 0x525733
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x525723
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x526d8e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x526dcd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x526dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x526dcd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x526dcd
cmp dword [ecx + 0x74], 0xe
jbe 0x526dcd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret