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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x571b28
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.00571cb0
add esp, 8
test eax, eax
je 0x571b24
lea eax, [esi + 4]
push eax
push esi
call fcn.00571cb0
add esp, 8
test eax, eax
je 0x571b24
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x571b60
push 3
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x571b74
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 3
push 1
push eax
call fcn.00589a16
add esp, 0x10
cmp eax, 3
je 0x571b96
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.00572410
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
ret
mov dl, byte [esp + 8]
movzx ecx, dl
mov eax, ecx
shr eax, 4
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0xd]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0xe]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x571c93
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
push 0
push eax
call fcn.005724c0
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x571bf2
pop edi
pop ebx
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x571c9a
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x571c1d
push 3
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x571c31
push dword [ecx + 0x38]
lea eax, [esp + 0x14]
push 3
push 1
push eax
call fcn.00589a16
add esp, 0x10
mov ecx, dword [esi + 0x14]
cmp eax, 3
jne 0x571c76
mov ecx, dword [ecx + 0xc]
inc ebx
movzx eax, byte [esp + 0x10]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x11]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x12]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x571c04
pop edi
pop ebx
mov eax, 1
pop esi
ret
push ecx
call fcn.00572410
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x571cb0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x571cce
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x571ce2
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call fcn.00589a16
add esp, 0x10
cmp eax, 2
je 0x571cf2
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x571d10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
push 0x4c
call fcn.00573b44
mov esi, eax
add esp, 4
test esi, esi
jne 0x571d3f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x571e60
pop edi
mov dword [eax], 0x6d
xor eax, eax
pop esi
add esp, 8
ret
push 0x4c
push 0
push esi
call fcn.0042d490
push 0x614c
push 1
call fcn.00573b6a
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x571d7d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x571d6c
mov dword [eax], 0x6d
push esi
call fcn.00573b4f
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push 0x614c
push 0
push edi
call fcn.0042d490
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], 0
mov dword [edi + 0x38], 0
mov dword [edi], 8
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x571dcb
push 6
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x571ddf
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call fcn.00589a16
add esp, 0x10
cmp eax, 6
je 0x571df4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x571e1f
mov dword [eax], 0x66
jmp 0x571e1f
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call fcn.00573b80
add esp, 0xc
test eax, eax
je 0x571e36
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x571e1f
mov dword [eax], 0x67
push edi
call fcn.00573b4f
push esi
call fcn.00573b4f
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push esi
call fcn.00571b10
add esp, 4
test eax, eax
jne 0x571e68
push edi
call fcn.00573b4f
push esi
call fcn.00573b4f
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x571e60
mov dword [eax], 0x68
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov dword [esi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [edi + 0x6148], al
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x572d5b
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x875acc], 0
push ebx
push esi
mov esi, 0x875ad4
jne 0x572d87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x875aec], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x875acc], 1
push dword [0x875aec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x572e24
push 0x14
push 8
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x572e4e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x875ad0]
test eax, eax
je 0x572dc9
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x875ad0], 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 0x572e53
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x875aec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x572e4e
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 0x573420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57344d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57344d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x58a075
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005732e0
mov eax, dword [0x86d584]
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.0042a052
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58a0b7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x58a213
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00573530
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 + 0x872908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042cd23
mov ecx, dword [esi*4 + 0x872908]
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 0x58a20c
cmp eax, dword [ecx + edi + 0x24]
jne 0x58a20c
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 0x58a20c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cd23
add esp, 0x14
test edx, edx
jl 0x58a20c
jg 0x58a182
test eax, eax
jb 0x58a20c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58a20c
jl 0x58a19c
cmp dword [ebp - 0x1008], eax
ja 0x58a20c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58a1ba
test ebx, ebx
je 0x58a1f3
cmp ecx, edi
jae 0x58a1f3
mov al, byte [ecx]
cmp al, 0xd
jne 0x58a1d4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58a1e0
cmp byte [ecx + 1], 0xa
jne 0x58a1e0
inc ecx
jmp 0x58a1e0
movzx eax, al
movsx eax, byte [eax + 0x86dcd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58a1ba
cmp edx, ebx
jne 0x58a1ba
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x58a211
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417cdf
leave
ret
Function at 0x59b2fa
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x86d584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x606860
push esi
call fcn.00423d32
pop ecx
pop ecx
test eax, eax
jne 0x59b328
xor al, al
jmp 0x59b3a5
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.0059af8d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x59b362
push dword [ebp - 0x210]
call fcn.00573b4f
xor al, al
jmp 0x59b3a3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x59b368
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x59b388
push edx
call fcn.0059b231
pop ecx
test al, al
je 0x59b353
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x59b396
mov bl, 1
push dword [ebp - 0x210]
call fcn.00573b4f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417cdf
leave
ret
Function at 0x5a43c1
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.005a4230
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5a4530
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5a4530
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5a44e5
jg 0x5a441d
test eax, eax
je 0x5a44db
push 1
push 0x1000
call fcn.0041d381
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5a4440
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a44d2
push 0x8000
push ebx
call fcn.00418428
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5a4469
jg 0x5a4464
cmp ecx, 0x1000
jb 0x5a4469
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042acd3
add esp, 0x10
cmp eax, 0xffffffff
je 0x5a44ae
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 0x5a4464
jl 0x5a4495
test ecx, ecx
jne 0x5a4456
push dword [ebp - 0xc]
push ebx
call fcn.00418428
push esi
call fcn.0041be00
add esp, 0xc
xor ebx, ebx
jmp 0x5a453e
cmp byte [edi + 0x24], 0
je 0x5a44c5
cmp dword [edi + 0x20], 5
jne 0x5a44c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5a44d0
mov ebx, dword [edi + 0x18]
jmp 0x5a44d2
xor ebx, ebx
push esi
call fcn.0041be00
pop ecx
jmp 0x5a453e
test ecx, ecx
jg 0x5a44a7
jl 0x5a44e5
test eax, eax
jae 0x5a44a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cd41
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5a4505
cmp byte [edi + 0x1c], 0
je 0x5a44a7
jmp 0x5a4536
push ebx
call fcn.0041ec72
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5a44a7
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 0x5a453e
cmp byte [edi + 0x1c], 0
je 0x5a453b
mov ebx, dword [edi + 0x18]
jmp 0x5a453e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042cd41
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5aa910
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x86d584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5aa953
call fcn.0041e658
mov dword [eax], 0xf
call fcn.0041e66b
mov dword [eax], 0xd
call fcn.0041d05d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cdf
leave
ret
test eax, eax
jne 0x5aa95a
inc eax
jmp 0x5aa947
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 0x5aa945
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5aa947

Function at 0x5aba4c
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x871534]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x875ef4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x875ef8], 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.005aea06
mov dword [esi + 0x58], 0x5aca2f
mov eax, esi
mov dword [esi + 0x5c], 0x5aca7b
mov dword [esi + 0x10], fcn.005ac567
mov dword [esi + 0x30], 0x5ac342
mov dword [esi + 0x64], 0x5acb10
mov dword [esi + 0x60], 0x5acac4
mov dword [esi + 0x34], 0x5abe0d
mov dword [esi + 0x24], 0x5abde4
mov dword [esi + 0x28], 0x5abdb9
mov dword [esi + 0x2c], 0x5abd0d
mov dword [esi + 0x44], 0x5ac7ff
mov dword [esi + 0x68], 0x5abb0d
mov dword [esi + 0x6c], 0x5acd12
pop esi
ret 4
Function at 0x5b1031
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5b123d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x5b114d
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5b1116
mov eax, dword [esp + 0x38]
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 0x5b10a7
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x5b1072
jmp 0x5b1239
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5b1207
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, 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
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x5b118e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x5b1155
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5b1c0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5b1cb1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5b1c8f
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5b1c6d
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5b1c3c
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x5b1ff0
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 0x5b20be
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x5b208b
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x5b205e
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x5b2025
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5b26cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5b2772
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5b2750
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5b272e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5b26fd
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x5b4cd6
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 0x5b4e6d
push dword [esp + 0x28]
call fcn.00457ee9
test eax, eax
je 0x5b4d16
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x5b4e6d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x5b4e5a
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 0x5b4e52
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0042d490
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 0x5b4e52
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 0x5b4e52
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 0x5b4e52
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 0x5b4e49
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 0x5b4e21
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x5b4e04
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