joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401860
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push 0x41820c
push 1
push 0
push 0x41821c
mov dword [ebp - 0x218], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4019ae
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x214]
push ecx
push 0x41822c
push eax
call edx
test eax, eax
jne 0x4019a0
push 0x5c
push esi
call fcn.00409274
sub eax, esi
sar eax, 1
add esp, 8
inc eax
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x40197b
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea ecx, [ebp - 0x20c]
push 0x41b500
push ecx
call ebx
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edx
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push str.data_uicon.ico
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.00409274
add eax, 2
add esp, 8
push eax
call ebx
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
add esp, 0xc
push 0
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edx
pop ebx
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x218]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040905b
mov esp, ebp
pop ebp
ret
Function at 0x4019c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2b8]
push str.07073_s.lnk
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 2
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x41b4b8
lea edx, [ebp - 0x218]
push edx
call esi
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x41b544
lea ecx, [ebp - 0x218]
push ecx
call esi
push str.07073Login.exe
lea edx, [ebp - 0x2d4]
push ebx
push edx
call fcn.004022d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x401a70
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
xor edi, edi
mov esi, eax
call fcn.00401860
mov esi, 8
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c0], esi
jb 0x401aa6
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.004092a2
add esp, 4
push 0x41b560
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Uninstall.exe
lea ecx, [ebp - 0x2d4]
push ebx
push ecx
call fcn.004022d0
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x401ae2
mov eax, dword [eax]
lea edx, [ebp - 0x218]
push edx
xor edi, edi
mov esi, eax
call fcn.00401860
mov esi, 8
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c0], esi
jb 0x401b18
mov eax, dword [ebp - 0x2d4]
push eax
call fcn.004092a2
add esp, 4
push 0
push 0x10
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.07073Login.exe
lea ecx, [ebp - 0x2f0]
push ebx
push ecx
call fcn.004022d0
add esp, 0xc
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x401b62
mov eax, dword [eax]
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x218]
push edx
mov esi, eax
call fcn.00401860
add esp, 4
cmp dword [ebp - 0x2dc], 8
jb 0x401b8e
mov eax, dword [ebp - 0x2f0]
push eax
call fcn.004092a2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040905b
mov esp, ebp
pop ebp
ret
Function at 0x401bb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
lea eax, [ebp - 0x88c]
push 0x41b580
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
mov esi, eax
mov ecx, 0x3ff
sub ecx, esi
push ecx
lea edx, [ebp + esi*2 - 0x88c]
push edx
push 0
push str.mygames
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esi, eax
cmp word [ebp + esi*2 - 0x88e], 0x7c
je 0x401c18
mov dword [ebp + esi*2 - 0x88c], 0x7c
inc esi
push ebx
lea eax, [ebp - 0x8c]
push str._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x88c]
push edx
call fcn.004098e2
add esp, 0x14
test eax, eax
jne 0x401c65
push edi
lea ecx, [ebp - 0x88c]
push ecx
push str.mygames
push str.setting
mov word [ebp + esi*2 - 0x88e], ax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040905b
mov esp, ebp
pop ebp
ret

Function at 0x401c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x238]
push eax
push 2
push 0
push str.SoftwareClasseslogin07073
push 0x80000001
call esi
test eax, eax
je 0x401ce0
push 0
lea ecx, [ebp - 0x238]
push ecx
push 0
push 2
push 0
push 0
push 0
push str.SoftwareClasseslogin07073
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401d8c
mov edx, dword [ebp - 0x238]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 1
push 0
push str.URL_Protocol
push edx
call edi
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x23c]
push eax
push 2
push 0
push str.shellopencommand
push ecx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401d49
mov eax, dword [ebp - 0x238]
push 0
lea edx, [ebp - 0x23c]
push edx
push 0
push 2
push 0
push 0
push 0
push str.shellopencommand
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401d82
push ebx
lea ecx, [ebp - 0x234]
push str.__s_____1_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x23c]
add esp, 0xc
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x234]
push eax
push 1
push 0
push 0
push ecx
call edi
mov edx, dword [ebp - 0x23c]
push edx
call esi
mov eax, dword [ebp - 0x238]
push eax
call esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040905b
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push str.GameLogin07073_SetupLock
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x402231
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10
push edi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402250
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401da0
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x402ee0
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
add edi, 0x20
push 0
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ebx, [eax - 0x20]
test ebx, ebx
jle 0x402f3f
mov ecx, dword [edi]
push 0
push 0
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x402f3f
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x402f4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x4090]
lea ecx, [edx + edi]
mov esi, 0x5a4d
mov dword [ebp - 4], eax
cmp word [ecx], si
jne 0x402f8c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x402f74
xor eax, eax
jmp 0x402f8c
movzx ecx, word [eax + 6]
movzx esi, word [eax + 0x14]
add esi, eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + ecx*8 + 4]
add eax, dword [esi + ecx*8]
lea ecx, [esi + ecx*8 - 0x10]
lea esi, [edx + eax]
cmp esi, ebx
jge 0x403026
mov eax, dword [0x41dc20]
lea esp, [esp]
movsx edx, byte [esi + edi]
movzx ecx, al
cmp edx, ecx
jne 0x402fe9
cmp dword [esi + edi], eax
jne 0x402fe9
mov dl, byte [0x41dc24]
cmp dl, byte [esi + edi + 4]
jne 0x402fe9
mov cl, byte [0x41dc25]
cmp cl, byte [esi + edi + 5]
jne 0x402fe9
push 0x41f020
push 0x14
lea edx, [esi + edi + 0xc]
or ecx, 0xffffffff
call dword [0x41eec8]
not eax
cmp dword [esi + edi + 8], eax
je 0x402ff0
mov eax, dword [0x41dc20]
inc esi
cmp esi, ebx
jl 0x402fa0
jmp 0x403026
mov edx, dword [esi + edi + 0x14]
add edx, dword [esi + edi + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [edx + esi + 0x20]
mov dword [ecx + 0x4090], eax
mov eax, esi
cdq
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
push 0
push edx
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00403660
add esp, 8
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403520
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
mov esi, edi
je 0x403558
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [esi], 0x2f
jne 0x40354e
xor eax, eax
push eax
push edi
mov word [esi], ax
call ebx
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
cmp word [esi], 0
jne 0x403537
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x403560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x4035bf
mov dword [edi], 0
jmp 0x403580
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40358f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4035c7
test ecx, ecx
je 0x4035bf
test esi, esi
jne 0x403580
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40363f
mov dword [edi], 0
jmp 0x403600
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40360f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x403647
test ecx, ecx
je 0x40363f
test esi, esi
jne 0x403600
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41f020], ecx
inc edx
cmp edx, 0x100
jb 0x406163
cmp edx, 0x800
jae 0x406239
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x41ec20]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41f020]
inc edx
mov dword [edx*4 + 0x41f01c], eax
cmp edx, 0x800
jb 0x406210
mov dword [0x41eec8], 0x406d70
call fcn.00406ef0
test eax, eax
jne 0x406256
mov dword [0x41eec8], 0x406e20
pop ecx
ret
Function at 0x407390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4073b2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x4073e0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4073e0
inc edi
cmp edi, edx
jb 0x4073d1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x4074e7
cmp eax, 3
jbe 0x407417
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x407454
cmp al, 0xff
je 0x407454
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4073c5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4073fb
movzx eax, byte [esi + 0x41b73c]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x41b734], 0
mov al, byte [ecx + 4]
je 0x407440
test al, al
je 0x407440
cmp al, 0xff
jne 0x4073fb
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4073c5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x4074b7
movzx edx, byte [esi + 0x41b73c]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x40749e
cmp cl, 0xff
jne 0x4074b4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x407472
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4073c5
cmp eax, 3
jbe 0x4074fc
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40905b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d084]
jne 0x409065
repz ret
jmp fcn.00409d31
Function at 0x40db72
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a854
and dword [ebp - 0x14], 0
cmp dword [0x41ea10], 0
mov dword [ebp - 0x18], eax
jne 0x40dc25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40dccd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40dccd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41ea10], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41ea14], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41ea18], eax
call edi
push eax
call esi
mov dword [0x41ea20], eax
test eax, eax
je 0x40dc25
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41ea1c], eax
mov eax, dword [0x41ea1c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40dc7e
cmp dword [0x41ea20], ecx
je 0x40dc7e
push eax
call esi
push dword [0x41ea20]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dc7e
test ebx, ebx
je 0x40dc7e
call edi
test eax, eax
je 0x40dc75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dc75
test byte [ebp - 8], 1
jne 0x40dc7e
or dword [ebp + 0x10], 0x200000
jmp 0x40dcb1
mov eax, dword [0x41ea14]
cmp eax, dword [ebp - 0x18]
je 0x40dcb1
push eax
call esi
test eax, eax
je 0x40dcb1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40dcb1
mov eax, dword [0x41ea18]
cmp eax, dword [ebp - 0x18]
je 0x40dcb1
push eax
call esi
test eax, eax
je 0x40dcb1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41ea10]
call esi
test eax, eax
je 0x40dccd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40dccf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040905b
leave
ret
Function at 0x40e3e0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x44
mov eax, dword [0x41d084]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x2f
xor ecx, ecx
mov dl, cl
add dl, 0x41
mov byte [esp + ecx + 8], dl
mov dl, cl
add dl, 0x61
mov byte [esp + ecx + 0x22], dl
add ecx, 1
cmp ecx, 0x1a
jne 0x40e404
xor ecx, ecx
mov dl, cl
add dl, 0x30
mov byte [esp + ecx + 0x3c], dl
add ecx, 1
cmp ecx, 0xa
jne 0x40e420
test edi, edi
jle 0x40e503
lea esp, [esp]
movzx ecx, byte [esi]
shr ecx, 2
movsx dx, byte [esp + ecx + 8]
mov word [eax], dx
mov ecx, edi
add eax, 2
sub ecx, 1
je 0x40e4d0
movzx edx, byte [esi + 1]
shr edx, 4
sub ecx, 1
movzx ecx, byte [esi]
je 0x40e4ac
and ecx, 3
shl ecx, 4
or ecx, edx
movsx cx, byte [esp + ecx + 8]
mov word [eax], cx
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
and edx, 0xf
add edx, edx
add edx, edx
shr ecx, 6
or edx, ecx
movsx edx, byte [esp + edx + 8]
add eax, 2
mov word [eax], dx
movzx ecx, byte [esi + 2]
add eax, 2
and ecx, 0x3f
movsx edx, byte [esp + ecx + 8]
mov word [eax], dx
jmp 0x40e4f2
and ecx, 3
shl ecx, 4
or ecx, edx
movsx ecx, byte [esp + ecx + 8]
mov word [eax], cx
movzx edx, byte [esi + 1]
add eax, 2
and edx, 0xf
movsx ecx, byte [esp + edx*4 + 8]
mov word [eax], cx
jmp 0x40e4ea
movzx edx, byte [esi]
and edx, 3
shl edx, 4
movsx cx, byte [esp + edx + 8]
mov word [eax], cx
add eax, 2
mov word [eax], 0x3d
add eax, 2
mov word [eax], 0x3d
sub edi, 3
add eax, 2
add esi, 3
test edi, edi
jg 0x40e440
mov ecx, dword [esp + 0x48]
pop edi
pop esi
xor ecx, esp
mov word [eax], 0
call fcn.0040905b
add esp, 0x44
ret

Function at 0x40e520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 0x656c6946
mov dword [ebp - 0x48], 0x3037305f
mov dword [ebp - 0x44], 0x535f3337
mov dword [ebp - 0x40], 0x69746174
mov dword [ebp - 0x3c], 0x63697473
mov dword [ebp - 0x38], 0x3430255f
mov dword [ebp - 0x34], 0x30255f58
mov dword [ebp - 0x30], 0x5834
cmp dword [ebp + 8], 0
je 0x40e575
mov dword [ebp - 0x4c], 0x6b636f4c
mov eax, dword [0x41ea2c]
mov byte [ebp - 0x50], ah
mov byte [ebp - 0x4f], al
lea eax, [ebp - 0xc]
push eax
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.004175e0
mov eax, dword [0x41ea30]
mov edx, dword [ebp - 0xc]
mov byte [ebp - 0x50], ah
mov byte [ebp - 0x4f], al
lea eax, [ebp - 0xc]
push eax
push 2
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x37], edx
call fcn.004175e0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x32], edx
mov dword [ebp - 0x54], 0x1e
call fcn.0040fbc0
mov ecx, dword [ebp - 0x54]
push esi
lea edx, [ebp - 0x4c]
call fcn.0040e3e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
mov eax, esi
call fcn.0040905b
mov esp, ebp
pop ebp
ret
Function at 0x40f7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x40f7c0
xor eax, eax
jmp 0x40f82c
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x18], 0
je 0x40f7ff
cmp dword [ebp - 0x14], 0
jne 0x40f801
jmp 0x40f81a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004104a0
add esp, 8
test eax, eax
jne 0x40f81a
mov eax, dword [ebp - 0x18]
jmp 0x40f82c
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jne 0x40f7e1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40fb10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], 0x65006b
mov dword [ebp - 0x84], 0x6e0072
mov dword [ebp - 0x80], 0x6c0065
mov dword [ebp - 0x7c], 0x610062
mov dword [ebp - 0x78], 0x650073
mov dword [ebp - 0x74], 0x64002e
mov dword [ebp - 0x70], 0x6c006c
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x88]
push eax
call fcn.0040f7b0
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x40fb87
mov eax, dword [ebp - 0x8c]
jmp 0x40fbb2
mov dword [ebp - 0x7c], 0x320033
mov dword [ebp - 0x78], 0x64002e
mov dword [ebp - 0x74], 0x6c006c
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.0040f7b0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040905b
mov esp, ebp
pop ebp
ret