joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f3c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0xa0]
test esi, esi
push edi
mov dword [esp + 0x10], eax
jge 0x1004f401
mov esi, 1
mov ebp, 0x1005e360
jmp 0x1004f40e
cmp esi, 0x80
jle 0x1004f40e
mov esi, 0x80
mov ecx, dword [esp + 0xac]
test ecx, ecx
jne 0x1004f41e
mov ecx, 0x400
lea eax, [ecx + 7]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
lea edx, [edi*8]
sub ecx, edx
add ecx, 8
mov ebx, 0xff
shl ebx, cl
push esi
lea eax, [esp + 0x1c]
push ebp
push eax
not ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp esi, 0x80
jge 0x1004f495
mov ecx, 1
sub ecx, esi
mov ebp, 0x80
lea eax, [esp + esi + 0x17]
mov dword [esp + 0x14], ecx
sub ebp, esi
jmp 0x1004f474
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + eax]
movzx edx, byte [eax]
add ecx, edx
and ecx, 0xff
movzx ecx, byte [ecx + 0x1005e260]
mov byte [eax + 1], cl
add eax, 1
sub ebp, 1
jne 0x1004f470
lea eax, [esp + 0x98]
sub eax, edi
movzx edx, byte [eax]
and edx, ebx
mov cl, byte [edx + 0x1005e260]
mov byte [eax], cl
mov eax, 0x7f
sub eax, edi
js 0x1004f4df
jmp 0x1004f4c0
lea edx, [edi + eax - 1]
movzx ecx, byte [esp + edx + 0x19]
movzx edx, byte [esp + eax + 0x19]
xor ecx, edx
sub eax, 1
mov cl, byte [ecx + 0x1005e260]
mov byte [esp + eax + 0x19], cl
jns 0x1004f4c0
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [edi + 8]
mov esi, 0x10
nop
xor edx, edx
mov dh, byte [eax + 1]
add ecx, 0x10
add eax, 8
mov dl, byte [eax - 8]
mov dword [ecx - 0x18], edx
xor edx, edx
mov dh, byte [eax - 5]
mov dl, byte [eax - 6]
mov dword [ecx - 0x14], edx
xor edx, edx
mov dh, byte [eax - 3]
mov dl, byte [eax - 4]
mov dword [ecx - 0x10], edx
xor edx, edx
sub esi, 1
mov dh, byte [eax - 1]
mov dl, byte [eax - 2]
mov dword [ecx - 0xc], edx
jne 0x1004f4f0
mov ecx, dword [esp + 0x98]
mov dword [edi + 0x100], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100508c2
add esp, 0x8c
ret

Function at 0x100508c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006d680]
jne 0x100508cc
repz ret
jmp fcn.10050d1f
Function at 0x4014f8
Capabilities:
Get file size

Disassembly:
mov eax, 0x46ce70
call fcn.00453e8c
sub esp, 0x134
push ebx
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4015ce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4015c7
push esi
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4015bd
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
mov byte [ebp - 0x3d], bl
call fcn.00401889
push 0x103
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00401a19
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00453ee0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00401093
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
push esi
call fcn.0040149a
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
je 0x4016ed
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4016e5
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004015f3
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4016f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00453fde
mov esi, eax
pop ecx
test esi, esi
je 0x401741
xor edx, edx
test ebx, ebx
jbe 0x401741
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x40172b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404335
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x404465
cmp byte [ebp + 0xc], bl
jne 0x4043e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404465
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40445b
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004545d0
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00453eb4
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0040522e
push dword [ebp + 0xc]
jmp 0x40444a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404465
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404458
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x404434
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.00453eb4
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0040522e
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x404467
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40506f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x4050de
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x4050c1
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4050c1
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4050c1
mov byte [ebp - 1], 1
jmp 0x4050de
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4050de
cmp byte [ebp - 1], bl
jne 0x4050de
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4050c8
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x4096b4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.0042a9b6
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4096f5
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.0040974a
test eax, eax
jne 0x409741
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x409711
push esi
push edi
mov ecx, ebx
call fcn.0040974a
test eax, eax
jne 0x409741
push 0x493568
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.00434f66
add esp, 0xc
test eax, eax
jge 0x409741
push edi
push esi
push 4
call fcn.00434f66
add esp, 0xc
test eax, eax
jge 0x409741
xor eax, eax
jmp 0x409744
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c85e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x40c887
push ebx
push ebx
call fcn.00455086
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40c89f
push ebx
push ebx
call fcn.00455086
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40c8b7
push ebx
push ebx
call fcn.00455086
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40c8cd
push ebx
push ebx
call fcn.00455086
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00454840
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ceda
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x46dd5e
call fcn.00453e8c
sub esp, 0x828
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040d0f4
test al, al
je 0x40cf0d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40d07c
push edi
xor esi, esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x834]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0040d11e
lea eax, [ebp - 0x834]
lea edi, [ebx + 0xd4]
test eax, eax
lea eax, [ebp - 0x834]
jne 0x40cf54
mov eax, 0x493568
push eax
mov ecx, edi
call fcn.0040b32d
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xfc]
cmp eax, esi
jne 0x40cf6e
mov eax, 0x493568
push eax
call fcn.0040b32d
push 0x2c
call fcn.00453fde
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40cf9d
mov ecx, edi
call fcn.0040afe6
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push ebx
push eax
call fcn.0040d08c
jmp 0x40cf9f
xor eax, eax
mov dword [ebx + 0x124], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push ebx
push 0x40ce84
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.00453fde
pop ecx
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp + 8], eax
push 1
call edi
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x40d02e
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40d01f
cmp dword [ebp - 0x30], 0x8032
jne 0x40d013
mov ecx, dword [ebx + 0x124]
call fcn.0040d4e6
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40cfec
push 0xff
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push 1
jmp 0x40cfe2
push dword [ebp + 8]
call fcn.004389b2
mov ebx, dword [ebx + 0x124]
pop ecx
cmp ebx, esi
pop edi
je 0x40d051
lea ecx, [ebx + 8]
call fcn.0040d2b2
push ebx
call fcn.004389b2
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40d05b
xor eax, eax
jmp 0x40d07c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], esi
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d4bc
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d4e1
call esi
call esi
inc edi
cmp edi, 0x64
jl 0x40d4c6
pop edi
xor eax, eax
pop esi
ret
Function at 0x40e134
Capabilities:
Get common file path

Disassembly:
mov eax, 0x46df1f
call fcn.00453e8c
sub esp, 0x45c
push ebx
push esi
lea eax, [ebp - 0x260]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040e266
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x468]
push ecx
push ebx
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x58]
call fcn.0040d2b2
lea eax, [ebp - 0x468]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x475698
mov dword [ebp - 0x1c], 0x475690
call fcn.0040d1f0
mov edi, 0x47568c
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 1
je 0x40e222
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040e266
push dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040d2b2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040e395
push dword [eax + 0x10]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040d2b2
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x475698
mov dword [esi + 0x14], 0x475690
call fcn.0040e777
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040d2b2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40f9f2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40fa58
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403f1b
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x41306a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41319a
cmp byte [ebp + 0xc], bl
jne 0x41311e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x41319a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x413190
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004545d0
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00453eb4
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00404ed2
push dword [ebp + 0xc]
jmp 0x41317f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x41319a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41318d
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x413169
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.00453eb4
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404ed2
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x41319c
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41371f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x41378e
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x413771
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x413771
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x413771
mov byte [ebp - 1], 1
jmp 0x41378e
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x41378e
cmp byte [ebp - 1], bl
jne 0x41378e
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x413778
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x41599f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x489ff0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4159f6
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4936d0
push 0
push 0
push 0x489fcc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4159ed
mov byte [0x4956fc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41737a
Capabilities:
Hide graphical window

Disassembly:
push dword [0x495738]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4173aa
push 0
push dword [0x495738]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x495740]
push 0
mov ecx, dword [eax + 0x26c]
call fcn.00432b06
ret

Function at 0x4173ab
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x495738]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042a5ce
cmp dword [eax], 1
je 0x417415
cmp dword [eax + 4], ebx
je 0x41746a
push ebx
push 0x48a330
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41746a
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x495738]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret