joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5440
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov esi, dword [esp + 0xc]
call fcn.00598d40
test eax, eax
jne 0x4e55a0
push edi
cmp byte [0x645f3c], al
jne 0x4e545f
xor edi, edi
jmp 0x4e547a
push 5
call dword [0x645f80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4e547a
push edi
call dword [0x645f88]
add esp, 4
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x4e5586
test esi, esi
je 0x4e5586
cmp dword [0x64de68], 0
jne 0x4e5516
push 0
call fcn.004cffb0
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x64de68], xmm0
test eax, eax
jne 0x4e54c6
push 0x2c
push eax
push 0x64de78
call fcn.0042d620
add esp, 0xc
jmp 0x4e54f8
push ebp
mov ebp, dword [0x64604c]
test ebp, ebp
je 0x4e54e7
push 0x2c
push 0
push 0x64de78
call fcn.0042d620
mov dword [0x64de78], ebp
jmp 0x4e54f4
push 0x64de78
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
add esp, 0xc
pop ebp
mov eax, dword [0x64de98]
xor cl, cl
mov dword [0x64dea4], eax
mov dword [0x64de98], 0
mov byte [0x64dee8], cl
jmp 0x4e551c
mov cl, byte [0x64dee8]
movzx eax, cl
cmp ebx, eax
jle 0x4e5569
test cl, cl
je 0x4e5544
movzx eax, cl
push eax
push 0x64dea8
push esi
call fcn.00430da0
movzx eax, byte [0x64dee8]
add esp, 0xc
sub ebx, eax
add esi, eax
inc dword [0x64de98]
push 0x64de68
push 0x64dea8
call fcn.004eeda0
add esp, 8
mov cl, 0x40
mov byte [0x64dee8], cl
cmp ebx, 0x40
jg 0x4e5523
movzx eax, cl
sub eax, ebx
push ebx
add eax, 0x64dea8
push eax
push esi
call fcn.00430da0
add esp, 0xc
sub byte [0x64dee8], bl
jmp 0x4e5590
mov dword [0x64de68], 0
test edi, edi
je 0x4e559e
push edi
call dword [0x645f90]
add esp, 4
pop ebx
pop edi
pop esi
ret
Function at 0x537150
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.00566db0
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x537198
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.00566db0
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x5a0680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0
push 0x14
mov dword [ebp], 0
call fcn.005660f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a06a5
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x645f3c], 0
push ebx
push edi
je 0x5a06f7
mov eax, dword [0x646038]
test eax, eax
je 0x5a06c7
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x5a06f7
mov eax, dword [esp + 0x18]
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x579e90
lea edi, [esi + 8]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.005ded40
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x5a070a
jmp 0x5a06fd
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x5a0725
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [esp + 0x1c]
mov dword [ebx], eax
call dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
pop ebx
mov dword [ebp], esi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5a47a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x646038]
sub esp, 0x6c
test eax, eax
je 0x5a47e1
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a47e1
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
push esi
push edi
mov edi, dword [esp + 0x78]
cmp byte [edi + 0x2b], 2
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x14], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x34], xmm0
je 0x5a481a
mov eax, dword [edi + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
movups xmm0, xmmword [esi + 0x30]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [esp + 0x54], xmm0
movups xmm0, xmmword [esi + 0x50]
mov esi, 0x2c
movups xmmword [esp + 0x64], xmm0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5a4902
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5a4842
cmp byte [esp + 0x20], 0
je 0x5a4902
lea eax, [esp + 8]
push eax
push 0
push 0x28
lea eax, [esp + 0x20]
push eax
push 1
call fcn.005a2d70
mov eax, dword [esp + 0x1c]
add esp, 0x14
cmp eax, dword [esp + 0x3c]
jne 0x5a4902
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x40]
jne 0x5a4902
push ebx
lea ecx, [edi + 0x34]
mov esi, 0x2c
lea edx, [esp + 0x18]
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5a48ba
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5a48a0
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x6c
ret
mov eax, dword [esp + 0x80]
movups xmm0, xmmword [esp + 0x18]
pop ebx
mov dword [eax], 1
movups xmmword [edi + 0x34], xmm0
movups xmm0, xmmword [esp + 0x24]
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [esp + 0x34]
movups xmmword [edi + 0x54], xmm0
movzx ecx, word [edi + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
shl eax, 0x10
add eax, ecx
mov dword [edi + 0x24], eax
xor eax, eax
pop edi
pop esi
add esp, 0x6c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret
Function at 0x5b5700
Capabilities:
Parse pe header

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

Function at 0x5cd1db
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6444dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x621938
push esi
call fcn.00423ed2
pop ecx
pop ecx
test eax, eax
jne 0x5cd209
xor al, al
jmp 0x5cd286
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.005cce6e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5cd243
push dword [ebp - 0x210]
call fcn.005b5cea
xor al, al
jmp 0x5cd284
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5cd249
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5cd269
push edx
call fcn.005cd112
pop ecx
test al, al
je 0x5cd234
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5cd277
mov bl, 1
push dword [ebp - 0x210]
call fcn.005b5cea
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417d0f
leave
ret
Function at 0x5ce7d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005b55c0
mov eax, dword [0x6444dc]
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.0042a1d5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5ce814
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5ce970
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005b5c30
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 + 0x64bd08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042ceb1
mov ecx, dword [esi*4 + 0x64bd08]
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 0x5ce969
cmp eax, dword [ecx + edi + 0x24]
jne 0x5ce969
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 0x5ce969
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042ceb1
add esp, 0x14
test edx, edx
jl 0x5ce969
jg 0x5ce8df
test eax, eax
jb 0x5ce969
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5ce969
jl 0x5ce8f9
cmp dword [ebp - 0x1008], eax
ja 0x5ce969
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5ce917
test ebx, ebx
je 0x5ce950
cmp ecx, edi
jae 0x5ce950
mov al, byte [ecx]
cmp al, 0xd
jne 0x5ce931
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5ce93d
cmp byte [ecx + 1], 0xa
jne 0x5ce93d
inc ecx
jmp 0x5ce93d
movzx eax, al
movsx eax, byte [eax + 0x644c30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5ce917
cmp edx, ebx
jne 0x5ce917
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5ce96e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d0f
leave
ret
Function at 0x5e4028
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.005e3e97
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5e4197
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5e4197
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5e414c
jg 0x5e4084
test eax, eax
je 0x5e4142
push 1
push 0x1000
call fcn.0041d3e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5e40a7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5e4139
push 0x8000
push ebx
call fcn.00418458
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5e40d0
jg 0x5e40cb
cmp ecx, 0x1000
jb 0x5e40d0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042ae56
add esp, 0x10
cmp eax, 0xffffffff
je 0x5e4115
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 0x5e40cb
jl 0x5e40fc
test ecx, ecx
jne 0x5e40bd
push dword [ebp - 0xc]
push ebx
call fcn.00418458
push esi
call fcn.0041be30
add esp, 0xc
xor ebx, ebx
jmp 0x5e41a5
cmp byte [edi + 0x24], 0
je 0x5e412c
cmp dword [edi + 0x20], 5
jne 0x5e412c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5e4137
mov ebx, dword [edi + 0x18]
jmp 0x5e4139
xor ebx, ebx
push esi
call fcn.0041be30
pop ecx
jmp 0x5e41a5
test ecx, ecx
jg 0x5e410e
jl 0x5e414c
test eax, eax
jae 0x5e410e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cecf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5e416c
cmp byte [edi + 0x1c], 0
je 0x5e410e
jmp 0x5e419d
push ebx
call fcn.0041ee12
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5e410e
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 0x5e41a5
cmp byte [edi + 0x1c], 0
je 0x5e41a2
mov ebx, dword [edi + 0x18]
jmp 0x5e41a5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042cecf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ea574
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6444dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5ea5b7
call fcn.0041e7f8
mov dword [eax], 0xf
call fcn.0041e80b
mov dword [eax], 0xd
call fcn.0041d08d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d0f
leave
ret
test eax, eax
jne 0x5ea5be
inc eax
jmp 0x5ea5ab
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 0x5ea5a9
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5ea5ab

Function at 0x5ee0c4
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x64a51c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x64e870]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x64e874], 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.005f10a1
mov dword [esi + 0x58], 0x5ef0a7
mov eax, esi
mov dword [esi + 0x5c], 0x5ef0f3
mov dword [esi + 0x10], fcn.005eebdf
mov dword [esi + 0x30], 0x5ee9ba
mov dword [esi + 0x64], 0x5ef188
mov dword [esi + 0x60], 0x5ef13c
mov dword [esi + 0x34], 0x5ee485
mov dword [esi + 0x24], 0x5ee45c
mov dword [esi + 0x28], 0x5ee431
mov dword [esi + 0x2c], 0x5ee385
mov dword [esi + 0x44], 0x5eee77
mov dword [esi + 0x68], 0x5ee185
mov dword [esi + 0x6c], 0x5ef38a
pop esi
ret 4
Function at 0x5f36cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5f38d8
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 0x5f37e8
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 0x5f37b1
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 0x5f3742
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 0x5f370d
jmp 0x5f38d4
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 0x5f38a2
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 0x5f3829
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 0x5f37f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5f42a7
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 0x5f434c
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 0x5f432a
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 0x5f4308
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 0x5f42d7
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x5f468b
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 0x5f4759
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 0x5f4726
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 0x5f46f9
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 0x5f46c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5f4d6a
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 0x5f4e0d
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 0x5f4deb
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 0x5f4dc9
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 0x5f4d98
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x5f7376
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 0x5f750d
push dword [esp + 0x28]
call fcn.0045195e
test eax, eax
je 0x5f73b6
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x5f750d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x5f74fa
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 0x5f74f2
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0042d620
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 0x5f74f2
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 0x5f74f2
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 0x5f74f2
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 0x5f74e9
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 0x5f74c1
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x5f74a4
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