joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43556d
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x4685cd
call fcn.00441b59
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x435586
xor al, al
jmp 0x4355fd
push str.SpotifyWindowHandle
lea ecx, [ebp - 0x40]
call fcn.0041d182
push esi
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00435467
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0041fdc3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x4355f3
push 4
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4355ec
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0041fdc3
mov al, bl
call fcn.00441b08
ret 4

Function at 0x435d11
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 1
push dword [ebp + 8]
call fcn.00435d54
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435d2c
xor bl, bl
jmp 0x435d4e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x43b958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x28
mov eax, 0x468d36
call fcn.00441b59
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x43b97a
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041d242
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041fde9
cmp esi, 0xffffffff
jne 0x43ba1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x43ba0f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43b9d5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43ba04
test esi, 0x400
jne 0x43ba0c
push esi
push edi
call fcn.0043aa9d
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
pop ecx
shr esi, 4
pop ecx
mov dword [ebx], esi
jmp 0x43ba34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43ba0f
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.0043b669
add esp, 0x10
jmp 0x43ba34
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0043b747
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00441b08
ret
Function at 0x43f8bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4eaf2c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x43f8f8
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x14]
mov word [0x4eaf2c], ax
movzx esi, word [0x4eaf2c]
xor eax, eax
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
cmp byte [edi], 1
mov ebx, edi
jbe 0x43f9b0
inc ebx
cmp byte [ebx], 1
ja 0x43f915
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x43f9b0
test eax, eax
jne 0x43f946
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
cmp word [0x4eaf28], si
je 0x43f95e
push esi
push eax
mov word [0x4eaf28], si
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, ebx
sub eax, edi
je 0x43f9b0
mov esi, dword [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov ecx, 0x2000
cmp eax, ecx
lea eax, [ebp - 0x34]
push 0
push eax
cmovg ebx, ecx
cmp dword [ebp - 0x2c], 0
push ebx
push edi
push esi
je 0x43f993
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x30]
jmp 0x43f99c
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
add edi, ebx
sub eax, ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jne 0x43f96f
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
cmp byte [ebx], 0
je 0x43fa02
movzx eax, byte [ebx + 1]
sub eax, 1
js 0x43fa02
cmp eax, 0x20
jge 0x43f9d6
and esi, 0xfff0
or si, word [eax*2 + 0x4d81ac]
movzx esi, si
jmp 0x43f9f4
cmp eax, 0x40
jge 0x43f9eb
and esi, 0xff0f
or si, word [eax*2 + 0x4d81cc]
jmp 0x43f9d1
jne 0x43f9f7
movzx esi, word [0x4eaf2c]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 2]
jmp 0x43f90a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret
Function at 0x43fe72
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
xor esi, esi
and edx, 7
cmp eax, 5
jae 0x43fe92
xor eax, eax
jmp 0x43ffe9
add dword [ebp + 0x10], 5
or ecx, 0xffffffff
push ebx
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi - 4]
add ebx, eax
mov dword [ebp - 0xc], ebx
add edi, esi
mov dword [ebp + 0xc], edi
cmp edi, ebx
jae 0x43febf
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x43febc
inc edi
cmp edi, ebx
jb 0x43feaf
mov dword [ebp + 0xc], edi
mov esi, edi
sub esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
cmp edi, ebx
jae 0x43ffd0
cmp eax, 3
jbe 0x43fef7
xor edx, edx
mov al, byte [edi + 4]
mov ecx, esi
mov dword [ebp - 8], ecx
test al, al
je 0x43ff33
cmp al, 0xff
je 0x43ff33
and edx, 3
xor eax, eax
add edx, edx
or edx, 1
inc eax
jmp 0x43ffc9
lea ecx, [eax - 1]
shl edx, cl
and edx, 7
je 0x43fed7
cmp byte [edx + 0x4d8354], 0
je 0x43ff20
movzx eax, byte [edx + 0x4d835c]
mov ecx, edi
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x43ff20
cmp al, 0xff
jne 0x43fed7
and edx, 3
mov ecx, esi
add edx, edx
or edx, 1
inc esi
mov edi, dword [ebp + 8]
jmp 0x43fea6
movzx ecx, al
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x43ff61
lea ebx, [ecx + esi]
add ebx, edi
jmp 0x43ff67
mov ebx, ecx
sub ebx, esi
sub ebx, edi
test edx, edx
je 0x43ff9e
movzx eax, byte [edx + 0x4d835c]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x43ff89
cmp al, 0xff
jne 0x43ff9e
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 4]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 4], eax
dec ecx
xor ecx, ebx
jmp 0x43ff54
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 8]
shr eax, 0x18
and al, 1
neg al
mov byte [edi + 1], bl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
push 5
mov byte [edi + 2], al
pop eax
add esi, eax
jmp 0x43ff2b
lea ecx, [eax - 1]
shl edx, cl
xor ecx, ecx
and edx, 7
cmp eax, 3
mov eax, dword [ebp + 0x14]
cmova edx, ecx
pop edi
pop ebx
mov dword [eax], edx
mov eax, esi
pop esi
leave
ret

Function at 0x441aa0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441f20
mov eax, dword [0x4e8018]
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.004141dc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4460dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x446239
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00441d70
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 + 0x4ea798]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418dad
mov ecx, dword [esi*4 + 0x4ea798]
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 0x446232
cmp eax, dword [ecx + edi + 0x24]
jne 0x446232
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 0x446232
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418dad
add esp, 0x14
test edx, edx
jl 0x446232
jg 0x4461a8
test eax, eax
jb 0x446232
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x446232
jl 0x4461c2
cmp dword [ebp - 0x1008], eax
ja 0x446232
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4461e0
test ebx, ebx
je 0x446219
cmp ecx, edi
jae 0x446219
mov al, byte [ecx]
cmp al, 0xd
jne 0x4461fa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x446206
cmp byte [ecx + 1], 0xa
jne 0x446206
inc ecx
jmp 0x446206
movzx eax, al
movsx eax, byte [eax + 0x4e8798]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4461e0
cmp edx, ebx
jne 0x4461e0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x446237
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret

Function at 0x4488dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004488b8
pop esi
leave
ret 8
Function at 0x465a21
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.0046599d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x465b90
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x465b90
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x465b45
jg 0x465a7d
test eax, eax
je 0x465b3b
push 1
push 0x1000
call fcn.0040cf6a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x465aa0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x465b32
push 0x8000
push ebx
call fcn.00405091
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x465ac9
jg 0x465ac4
cmp ecx, 0x1000
jb 0x465ac9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004160f3
add esp, 0x10
cmp eax, 0xffffffff
je 0x465b0e
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 0x465ac4
jl 0x465af5
test ecx, ecx
jne 0x465ab6
push dword [ebp - 0xc]
push ebx
call fcn.00405091
push esi
call fcn.0040cfc7
add esp, 0xc
xor ebx, ebx
jmp 0x465b9e
cmp byte [edi + 0x24], 0
je 0x465b25
cmp dword [edi + 0x20], 5
jne 0x465b25
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x465b30
mov ebx, dword [edi + 0x18]
jmp 0x465b32
xor ebx, ebx
push esi
call fcn.0040cfc7
pop ecx
jmp 0x465b9e
test ecx, ecx
jg 0x465b07
jl 0x465b45
test eax, eax
jae 0x465b07
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418dcb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x465b65
cmp byte [edi + 0x1c], 0
je 0x465b07
jmp 0x465b96
push ebx
call fcn.0040eb68
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x465b07
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 0x465b9e
cmp byte [edi + 0x1c], 0
je 0x465b9b
mov ebx, dword [edi + 0x18]
jmp 0x465b9e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418dcb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x22396221
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x521126f9
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x41cce0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 6
jb 0x41cd92
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1d8]
push eax
mov dword [ebp - 0x1cc], str.runas
mov dword [ebp - 0x1c4], str._softwarecad
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x41d700
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x17c], edx
xor edi, edi
mov edx, ecx
movzx esi, byte [edi + str.80_]
movzx ecx, byte [edi + 0x56a5c1]
mov eax, esi
shr eax, 3
and esi, 7
movzx eax, byte [eax + edx]
test byte [esi*2 + 0x56a580], al
setne al
mov byte [ebp + edi - 0x3c], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x56a580], al
movzx ecx, byte [edi + 0x56a5c2]
setne al
mov byte [ebp + edi - 0x3b], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x56a580], al
movzx ecx, byte [edi + 0x56a5c3]
setne al
mov byte [ebp + edi - 0x3a], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x56a580], al
setne al
mov byte [ebp + edi - 0x39], al
add edi, 4
cmp edi, 0x38
jl 0x41d720
mov ecx, 0x1e
xor ebx, ebx
mov dword [ebp - 0x178], ecx
nop dword [eax]
cmp dword [ebp - 0x17c], 1
lea eax, [ebx + ebx]
lea edi, [ebp - 0xf4]
cmovne ecx, eax
xor eax, eax
lea esi, [ebp + ecx*4 - 0xf0]
lea edi, [edi + ecx*4]
mov dword [esi], 0
movzx ecx, byte [ebx + 0x56a840]
mov dword [edi], 0
cmp ecx, 0x1c
jge 0x41d7fd
mov dl, byte [ebp + ecx - 0x3c]
jmp 0x41d801
mov dl, byte [ebp + ecx - 0x58]
mov byte [ebp + eax - 0x74], dl
inc ecx
inc eax
cmp eax, 0x1c
jl 0x41d7f2
movzx eax, byte [ebx + 0x56a840]
mov ecx, 0x1c
add eax, ecx
nop word [eax + eax]
cmp eax, 0x38
jge 0x41d82b
mov dl, byte [ebp + eax - 0x3c]
jmp 0x41d82f
mov dl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], dl
inc eax
inc ecx
cmp ecx, 0x38
jl 0x41d820
xor eax, eax
nop dword [eax]
movzx ecx, byte [eax + 0x56a590]
cmp byte [ebp + ecx - 0x74], 0
je 0x41d857
mov ecx, dword [eax*4 + 0x56a320]
or dword [edi], ecx
movzx ecx, byte [eax + 0x56a5a8]
cmp byte [ebp + ecx - 0x74], 0
je 0x41d86e
mov ecx, dword [eax*4 + 0x56a320]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x41d840
mov ecx, dword [ebp - 0x178]
inc ebx
sub ecx, 2
mov dword [ebp - 0x178], ecx
cmp ecx, 0xfffffffe
jg 0x41d7c0
lea eax, [ebp - 0x174]
mov dword [ebp - 0x17c], 0x10
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0x178], eax
nop dword [eax]
mov edi, dword [ebx + 4]
lea ebx, [ebx + 8]
mov esi, dword [ebx - 8]
mov edx, edi
shr edx, 4
mov eax, edi
and eax, 0xfc0
and edx, 0xfc000
or edx, eax
mov ecx, esi
and ecx, 0xfc0
shr edx, 6
shl ecx, 4
mov eax, esi
and eax, 0xfc0000
or ecx, eax
mov eax, dword [ebp - 0x178]
shl ecx, 6
or edx, ecx
mov ecx, esi
and ecx, 0x3f
and esi, 0x3f000
mov dword [eax], edx
mov edx, eax
shl ecx, 4
mov eax, edi
or ecx, esi
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
or ecx, eax
and edi, 0x3f
or ecx, edi
mov dword [edx + 4], ecx
add edx, 8
sub dword [ebp - 0x17c], 1
mov dword [ebp - 0x178], edx
jne 0x41d8b0
mov ecx, 0x20
lea esi, [ebp - 0x174]
mov edi, 0x5be060
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x41ec90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor esi, esi
push 0x104
lea eax, [esp + 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41edaa
lea eax, [esp + 0x150]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
test eax, eax
je 0x41edaa
lea ecx, [esp + 0x150]
mov byte [eax], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ed00
sub ecx, edx
cmp byte [esp + ecx + 0x14f], 0x5c
je 0x41ed2d
push 0x597538
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.0051e768
add esp, 0xc
push str..dsm
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.0051e768
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41edaa
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push eax
push 0
push 0x143
push dword [esp + 0x18]
call ebx
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ed67
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 4
Function at 0x41edd0
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x104
push 0
lea ebx, [edi + 0x188]
push ebx
call fcn.0051a780
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x184], eax
test eax, eax
jne 0x41eec9
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0051a780
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push 0
push eax
call fcn.0051a780
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41ee6d
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
mov byte [eax], 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0051e70e
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x597538
push 0x104
push eax
call fcn.0051e768
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push 0x104
push eax
call fcn.0051e768
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x184], eax
mov eax, dword [edi + 0x184]
test eax, eax
je 0x41f04b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
push str.Startup
push dword [edi + 0x184]
mov dword [edi + 0x28c], eax
call esi
push str.Shutdown
push dword [edi + 0x184]
mov dword [edi + 0x294], eax
call esi
push str.SetParams
push dword [edi + 0x184]
mov dword [edi + 0x290], eax
call esi
push str.GetParams
push dword [edi + 0x184]
mov dword [edi + 0x298], eax
call esi
push str.TransformBuffer
push dword [edi + 0x184]
mov dword [edi + 0x29c], eax
call esi
push str.RestoreBuffer
push dword [edi + 0x184]
mov dword [edi + 0x2a0], eax
call esi
push str.FreeBuffer
push dword [edi + 0x184]
mov dword [edi + 0x2a4], eax
call esi
push str.Reset
push dword [edi + 0x184]
mov dword [edi + 0x2a8], eax
call esi
push str.CreatePluginInterface
push dword [edi + 0x184]
mov dword [edi + 0x2ac], eax
call esi
push str.CreateIntegratedPluginInterface
push dword [edi + 0x184]
mov dword [edi + 0x2b0], eax
call esi
push 0x5976a8
push dword [edi + 0x184]
mov dword [edi + 0x2b4], eax
call esi
cmp dword [edi + 0x294], 0
mov dword [edi + 0x2b8], eax
je 0x41f033
cmp dword [edi + 0x290], 0
je 0x41f033
cmp dword [edi + 0x298], 0
je 0x41f033
cmp dword [edi + 0x29c], 0
je 0x41f033
cmp dword [edi + 0x2a0], 0
je 0x41f033
cmp dword [edi + 0x2a4], 0
je 0x41f033
cmp dword [edi + 0x2a8], 0
je 0x41f033
cmp dword [edi + 0x2ac], 0
je 0x41f033
cmp dword [edi + 0x2b0], 0
je 0x41f033
cmp dword [edi + 0x2b4], 0
je 0x41f033
test eax, eax
je 0x41f033
mov byte [edi + 0x20], 1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0x184]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebx], 0
je 0x41f04b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
Function at 0x41f060
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2bc]
test eax, eax
je 0x41f079
push eax
mov eax, dword [esi + 0x2a8]
call eax
add esp, 4
mov eax, dword [esi + 0x2c0]
test eax, eax
je 0x41f08f
push eax
mov eax, dword [esi + 0x2a8]
call eax
add esp, 4
mov eax, dword [esi + 0x290]
mov dword [esi + 0x2bc], 0
mov dword [esi + 0x2c0], 0
mov byte [esi + 0x20], 0
call eax
test eax, eax
je 0x41f0dc
push ebx
push dword [esi + 0x184]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
setne bl
add esi, 0x188
cmp byte [esi], 0
je 0x41f0d7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret