joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470f90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x7c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 0xa
push 0x50
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x28]
test al, al
je 0x471138
push 0x4c6e14
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x48]
push esi
push eax
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x471138
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x8c], eax
call ebp
push 0x470ed0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push str.PROP_STAT_PSKIN
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropA]
push ebp
push str.PROP_STAT_OLDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x47110d
mov edx, dword [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.00471140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x474810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a28f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4a423c]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x4a4238
mov dword [esp + 0x30], 0x4a4230
lea esi, [esp + eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
test eax, eax
je 0x474869
add eax, 4
jmp 0x47486b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.00473020
lea ecx, [esp + 0x24]
call fcn.004686a0
push 0
lea ecx, [esp + 0x34]
call fcn.004686e0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
test ebx, ebx
je 0x47489e
lea ecx, [ebx - 1]
jmp 0x4748a0
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x4a36e0
test edx, edx
je 0x4748af
mov eax, edx
cmp word [eax + ecx*2], 0x5c
je 0x474921
test ebx, ebx
je 0x4748bf
lea ecx, [ebx - 1]
jmp 0x4748c1
xor ecx, ecx
test edx, edx
mov eax, 0x4a36e0
je 0x4748cc
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x474921
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x4748e6
mov eax, 0x4a36e0
cmp word [eax], 0x5c
je 0x47490f
mov eax, dword [edi + 4]
test eax, eax
jne 0x4748f8
mov eax, 0x4a36e0
cmp word [eax], 0x2f
je 0x47490f
test ebx, ebx
je 0x47490f
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00405ab0
mov ecx, dword [0x4a36c0]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x474964
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x474934
mov ecx, 0x4a36e0
cmp word [ecx], 0x5c
je 0x474950
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x474946
mov ecx, 0x4a36e0
cmp word [ecx], 0x2f
je 0x474950
xor edx, edx
jmp 0x474955
mov edx, 1
mov ecx, dword [0x4a36c0]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0040af14
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x4a4238
mov dword [edi + 0x20], 0x4a4230
call fcn.00403d4e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0044c894
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.00403edb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x47b000
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4a2a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x47b06e
lea ecx, [esp + 0x14]
call fcn.00405f3e
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x47b0a1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0041093c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.004103a2
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00405f3e
xor al, al
jmp 0x47b1b4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x47b0cf
cmp eax, ebx
je 0x47b0c9
cmp edi, ebx
je 0x47b0c9
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x47b106
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x47b0fe
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x47b0fe
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x47b0fe
cmp edi, ebx
je 0x47b0fe
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x47b151
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x47b133
cmp eax, ebx
je 0x47b12d
cmp ebp, ebx
je 0x47b12d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x47b15e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47b14a
cmp edi, ebx
je 0x47b14a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47b15a
cmp edi, ebx
je 0x47b15a
push eax
call edi
xor al, al
jmp 0x47b1b4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.0047ad90
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47b18f
cmp ebp, ebx
je 0x47b18f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47b1a2
cmp edi, ebx
je 0x47b1a2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47b1b2
cmp edi, ebx
je 0x47b1b2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x47b720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 2
mov dword [esi + 0x20], eax
and eax, 0xffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x47b761
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x47b773
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.0047b7a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x48d530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield16.0Professional
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48d5ba
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48d5af
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x48d5a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x48d5ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x48d9b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a2c05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
mov dword [esp + 4], 0x4a3670
test eax, eax
mov dword [esp + 0x24], 0x4a3668
jne 0x48d9e5
mov eax, 0x4c6e10
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x78]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004011a9
lea edx, [esp + 0x3c]
mov dword [esp + 0x70], 0
push edx
call fcn.0048d600
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, eax
mov byte [esp + 0x88], 1
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x78], edi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x5c]
neg eax
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, ecx
mov byte [esp + 0x70], 5
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x50]
and ecx, eax
call fcn.00402e22
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [esp + 0x74], 4
call fcn.00401245
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ebp, eax
lea esi, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov eax, dword [esp + 0x28]
jae 0x48dac9
test eax, eax
jne 0x48dae7
push eax
call fcn.0044c894
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [esp + 0x34], esi
call fcn.0047d58e
add esp, 8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401b10
lea edx, [esp + 0x10]
push 0
mov eax, dword [esp + 0x2c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x48db1c
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48db1c
push edi
call eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
mov dword [esi], eax
lea esi, [esp + 0x14]
neg esi
sbb esi, esi
lea eax, [esp + 0x28]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0044c894
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call edi
lea esi, [esp + 0x14]
lea eax, [esp + 0x18]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x48db8a
mov cl, byte [eax - 1]
test cl, cl
je 0x48db84
cmp cl, 0xff
je 0x48db84
dec cl
mov byte [eax - 1], cl
jmp 0x48db8a
add eax, 0xfffffffe
push eax
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x60]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x495dc8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x4a2d53
call fcn.0047d43c
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00495ff8
test al, 0x10
pop ecx
je 0x495f4a
push 1
lea eax, [ebp + 8]
pop ebx
push 0x4c13d8
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00495f7f
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00402438
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x495ef1
test ebx, ebx
je 0x495ee6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x4a519c
push eax
call ebx
test eax, eax
je 0x495ed1
lea eax, [ebp - 0x1bc]
push 0x4c6c9c
push eax
call ebx
test eax, eax
je 0x495ed1
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4a4238
mov dword [ebp - 0x20], 0x4a4230
call fcn.00402d70
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00474810
add esp, 0xc
call fcn.00495dc8
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00402438
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x495e4b
test esi, esi
je 0x495ef1
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x495f20
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.0043de0e
lea eax, [ebp - 0x60]
push 0x4b1e88
push eax
call fcn.0047ecc7
cmp dword [ebp - 0x10], 0xffffffff
je 0x495f2f
test esi, esi
je 0x495f2f
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x495f2f
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.0043de0e
lea eax, [ebp - 0xa8]
push 0x4b1e88
push eax
call fcn.0047ecc7

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49602d
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0043de0e
lea eax, [ebp - 0x48]
push 0x4b1e88
push eax
call fcn.0047ecc7
leave
ret
Function at 0x49653e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00445b64
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x496575
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0043de0e
lea eax, [ebp - 0x48]
push 0x4b1e88
push eax
call fcn.0047ecc7
leave
ret

Function at 0x496a2f
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x497085
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.00497307
add esp, 0x10
mov dword [ebp - 4], 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 ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x4971e0
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00497345
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4971d6
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x4971cd
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x4971a3
jg 0x497147
cmp ebx, edi
jbe 0x4971a3
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x497170
call fcn.00480c10
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.004972dd
jmp 0x497188
call fcn.00480c10
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.004972f2
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x497147
jg 0x4971a3
cmp esi, ebx
jb 0x497147
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4971c1
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4971c1
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.0044c894
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x497307
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0047d58e
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x49733f
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x497324
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x408ffc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
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.0040583e
and dword [ebp - 0x14], 0
cmp dword [0x411ca8], 0
mov dword [ebp - 0x18], eax
jne 0x4090af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409157
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409157
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411cb0], eax
call edi
push eax
call esi
mov dword [0x411cb8], eax
test eax, eax
je 0x4090af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cb4], eax
mov eax, dword [0x411cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409108
cmp dword [0x411cb8], ecx
je 0x409108
push eax
call esi
push dword [0x411cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409108
test ebx, ebx
je 0x409108
call edi
test eax, eax
je 0x4090ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4090ff
test byte [ebp - 8], 1
jne 0x409108
or dword [ebp + 0x10], 0x200000
jmp 0x40913b
mov eax, dword [0x411cac]
cmp eax, dword [ebp - 0x18]
je 0x40913b
push eax
call esi
test eax, eax
je 0x40913b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40913b
mov eax, dword [0x411cb0]
cmp eax, dword [ebp - 0x18]
je 0x40913b
push eax
call esi
test eax, eax
je 0x40913b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca8]
call esi
test eax, eax
je 0x409157
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409159
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b34
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5bf97fea
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x627f0933
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219