joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47aeb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x47aee6
mov eax, dword [esi]
jmp 0x47aee8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47aefc
test al, 0x10
je 0x47aefc
mov al, 1
jmp 0x47af77
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0047abc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x47af62
push str.SHCreateDirectoryEx
lea ecx, [ebp - 0x40]
call fcn.00433100
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov edx, esi
mov ecx, 2
call fcn.00482680
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x47af5e
push dword [ebp - 0x40]
call fcn.0048ccb8
add esp, 4
xor bl, bl
jmp 0x47af64
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x47af75
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x47afa8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47afb7
or eax, eax
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x47afd0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x47afdd
mov eax, dword [esi]
jmp 0x47afdf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x47aff1
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
test eax, eax
pop esi
setg al
ret
Function at 0x47b060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2f00
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 0
jb 0x47b0a7
mov eax, dword [ebx]
jmp 0x47b0a9
mov eax, ebx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x47b0cc
push 0x4bcf0c
mov ecx, edi
call fcn.00433100
jmp 0x47b1e6
push eax
lea ecx, [ebp - 0x4c]
call fcn.0047cdc0
mov dword [ebp - 4], 0
xor ecx, ecx
mov esi, dword [ebp - 0x4c]
mov eax, esi
cmp esi, dword [ebp - 0x48]
cmove eax, ecx
cmp dword [ebx + 0x14], 8
jb 0x47b0f1
mov ebx, dword [ebx]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp - 0x48]
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 0x34], 0
mov eax, esi
mov dword [ebp - 0x40], 0
cmove eax, ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push str.VarFileInfoTranslation
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x40], 4
jae 0x47b144
push 0x4bcf0c
mov ecx, edi
call fcn.00433100
jmp 0x47b1d9
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
sub esp, 0x18
mov ecx, esp
push str.StringFileInfo_04x_04xProductVersion
call fcn.00433100
lea eax, [ebp - 0x28]
push eax
call fcn.004799e0
add esp, 0x24
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, esi
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
cmp esi, ebx
cmove eax, edx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x2c]
push edx
push ecx
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x38], 0
mov ecx, edi
jne 0x47b1b0
push 0x4bcf0c
jmp 0x47b1b3
push dword [ebp - 0x2c]
call fcn.00433100
cmp dword [ebp - 0x14], 8
jb 0x47b1c9
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x47b1e6
push esi
call fcn.0048ccb8
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0x47b210
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
jb 0x47b240
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47b28d
push str.DeleteFile
lea ecx, [ebp - 0x28]
call fcn.00433100
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 2
call fcn.00482680
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x47b289
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
xor al, al
jmp 0x47b28f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret

Function at 0x47b2b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
jb 0x47b2e0
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47b32d
push str.RemoveDirectory
lea ecx, [ebp - 0x28]
call fcn.00433100
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 2
call fcn.00482680
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x47b329
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
xor al, al
jmp 0x47b32f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0x47b940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2064
call fcn.0049cd20
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
lea eax, [ebp - 0x2060]
mov esi, ecx
push 0
push eax
call fcn.00495750
mov eax, 1
mov dword [ebp - 0x2060], 0x44
mov word [ebp - 0x2030], ax
xorps xmm0, xmm0
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2006]
push eax
movdqu xmmword [ebp - 0x2018], xmm0
call fcn.00495750
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x47b9b1
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.0048fb7b
add esp, 0xc
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2060]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2018]
xor ecx, ebp
pop esi
call fcn.0048cca9
mov esp, ebp
pop ebp
ret

Function at 0x47ba10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3058
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00495750
mov eax, dword [0x5147c4]
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], str.open
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x4c], 0
jb 0x47ba77
mov esi, dword [esi]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], esi
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x47bad8
push str.ShellExecuteEx
lea ecx, [ebp - 0x28]
call fcn.00433100
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 2
call fcn.00482680
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x47bad4
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
xor al, al
jmp 0x47bada
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0x47d240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3388
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x60], ecx
mov eax, dword fs:[0x2c]
mov ebx, dword [ebp + 8]
mov esi, dword [eax]
cmp dword [esi + 4], 0
jne 0x47d2aa
push 0xc
call fcn.0048ccbd
add esp, 4
test eax, eax
je 0x47d2a5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x47d2a7
xor eax, eax
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
push dword [ebp - 0x60]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.00482c00
mov eax, dword [esi]
add esp, 8
mov dword [esi + 4], eax
test ebx, ebx
jne 0x47d330
push str.file_read
lea ecx, [ebp - 0x2c]
call fcn.00433100
push 0x4cdc4c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00433100
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004827f0
cmp dword [ebp - 0x30], 8
jb 0x47d304
push dword [ebp - 0x44]
call fcn.0048ccb8
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x18], 8
jb 0x47d329
push dword [ebp - 0x2c]
call fcn.0048ccb8
add esp, 4
xor eax, eax
jmp 0x47d3c1
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x47d361
push str.file_read
lea ecx, [ebp - 0x2c]
call fcn.00433100
mov dword [ebp - 4], 2
mov edx, 0x16
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edx - 0x15]
call fcn.00482680
add esp, 4
jmp 0x47d318
test edi, edi
jns 0x47d37b
push str.file_read
lea ecx, [ebp - 0x2c]
call fcn.00433100
mov dword [ebp - 4], 3
jmp 0x47d34b
push ebx
push edi
push 1
push eax
call fcn.0048ffe3
mov esi, eax
add esp, 0x10
cmp esi, edi
jge 0x47d3bf
push ebx
call fcn.0049008f
add esp, 4
test eax, eax
je 0x47d3bf
push str.fread
lea ecx, [ebp - 0x5c]
call fcn.00433100
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 4
call fcn.00482920
lea ecx, [ebp - 0x5c]
call fcn.00432b00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0x47d3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b33d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47d480
push str.file_write
lea ecx, [ebp - 0x2c]
call fcn.00433100
push 0x4cdc4c
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00433100
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004827f0
cmp dword [ebp - 0x30], 8
jb 0x47d454
push dword [ebp - 0x44]
call fcn.0048ccb8
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x18], 8
jb 0x47d479
push dword [ebp - 0x2c]
call fcn.0048ccb8
add esp, 4
xor eax, eax
jmp 0x47d519
test ecx, ecx
jne 0x47d4ae
push str.file_write
lea ecx, [ebp - 0x2c]
call fcn.00433100
mov dword [ebp - 4], 2
mov edx, 0x16
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edx - 0x15]
call fcn.00482680
add esp, 4
jmp 0x47d468
test esi, esi
jns 0x47d4c8
push str.file_write
lea ecx, [ebp - 0x2c]
call fcn.00433100
mov dword [ebp - 4], 3
jmp 0x47d498
push eax
push esi
push 1
push ecx
call fcn.0049020e
mov edi, eax
add esp, 0x10
cmp edi, esi
jge 0x47d517
push str.fwrite
lea ecx, [ebp - 0x5c]
call fcn.00433100
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 4
push eax
call fcn.00490a4a
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
add esp, 4
mov ecx, 1
push eax
call fcn.00482680
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00432b00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0x489690
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x48972d
cmp dword [esi + 0xc], 0
je 0x48972d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jns 0x489720
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 8]
cmp byte [edi + 0x50], 0
mov ecx, dword [edi + 0xc]
cmove eax, dword [esp + 0xc]
sub eax, dword [esi + 0x10]
add eax, dword [esi + 0x14]
mov edx, dword [edi + 0x10]
cmp eax, ecx
jl 0x4896fd
cmp eax, edx
mov ecx, eax
cmovg ecx, edx
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0xc]
call fcn.00488d80
push dword [edi + 4]
mov ecx, dword [esi + 0xc]
push dword [edi + 8]
call fcn.00489390
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0xc], 0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48b7d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4701
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x48b83a
xor eax, eax
jmp 0x48b843
push 0
push 0
push 0xe
push eax
call ebx
add eax, 0x10
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 0x58], eax
call fcn.0047a980
mov edi, dword [ebp - 0x50]
xor ecx, ecx
cmp edi, dword [ebp - 0x4c]
mov eax, edi
cmove eax, ecx
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x48b872
push eax
push dword [ebp - 0x58]
push 0xd
push ecx
call ebx
xor eax, eax
mov dword [esi + 0x14], 7
cmp edi, dword [ebp - 0x4c]
mov edx, edi
mov dword [esi + 0x10], eax
cmove edx, eax
mov word [esi], ax
cmp word [edx], ax
jne 0x48b892
xor ecx, ecx
jmp 0x48b8a6
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b897
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00432f80
xor eax, eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 0xa
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004379a0
push 0xd
push 1
lea ecx, [ebp - 0x2c]
call fcn.004379a0
push 0xa
push 1
lea ecx, [ebp - 0x2c]
call fcn.004379a0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
lea edx, [ebp - 0x2c]
call fcn.00479bb0
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x48b922
push dword [ebp - 0x2c]
call fcn.0048ccb8
add esp, 4
cmp dword [ebp - 0x30], 8
jb 0x48b933
push dword [ebp - 0x44]
call fcn.0048ccb8
add esp, 4
test edi, edi
je 0x48b940
push edi
call fcn.0048ccb8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret 4
Function at 0x49e3ac
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049702d
mov dword [ebp - 0x14], eax
cmp dword [0x4edad0], esi
jne 0x49e49f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x49e42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49e57f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49e57f
push 0x4bb87c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49e57f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4edad0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4edad4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4edad8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4edae0], eax
test eax, eax
je 0x49e49c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4edadc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x49e4c4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49e4b7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49e4d9
push 4
pop eax
jmp 0x49e581
cmp dword [ebp - 0x14], esi
je 0x49e4d9
push dword [0x4edad0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49e4be
mov eax, dword [0x4edadc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x49e537
cmp dword [0x4edae0], edi
je 0x49e537
push eax
call ebx
push dword [0x4edae0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x49e537
test eax, eax
je 0x49e537
call ecx
test eax, eax
je 0x49e52c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x49e52c
test byte [ebp - 8], 1
jne 0x49e537
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49e567
mov eax, dword [0x4edad4]
cmp eax, edi
je 0x49e564
push eax
call ebx
test eax, eax
je 0x49e564
call eax
mov esi, eax
test esi, esi
je 0x49e564
mov eax, dword [0x4edad8]
cmp eax, edi
je 0x49e564
push eax
call ebx
test eax, eax
je 0x49e564
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4edad0]
call ebx
test eax, eax
je 0x49e57f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49e581
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048cca9
mov esp, ebp
pop ebp
ret
Function at 0xc000dd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
sub esp, 0x2c
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
add ecx, dword [ecx + 0x3c]
mov dword [esp + 0x24], ecx
xor eax, eax
cmp dword [ecx + 0x7c], 0
mov dword [esp + 0x28], eax
je 0xc0025d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x1c], ecx
xor eax, eax
cmp ecx, 0
mov dword [esp + 0x28], eax
je 0xc0025d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add eax, ecx
mov edx, ecx
add edx, dword [eax + 0x20]
mov dword [esp + 8], edx
mov edx, ecx
add edx, dword [eax + 0x24]
mov dword [esp + 0xc], edx
add ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x18]
add eax, 0xffffffff
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp], edx
add eax, dword [ecx + edx*4]
mov dword [esp + 4], eax
cmp byte [eax], 0x47
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 1], 0x65
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 2], 0x74
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 3], 0x50
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 4], 0x72
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 5], 0x6f
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 6], 0x63
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 7], 0x41
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 8], 0x64
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 9], 0x64
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 0xa], 0x72
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0x65
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 0xc], 0x73
jne 0xc00241
mov eax, dword [esp + 4]
cmp byte [eax + 0xd], 0x73
jne 0xc00241
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov esi, dword [esp]
movzx edx, word [edx + esi*2]
add eax, dword [ecx + edx*4]
mov dword [esp + 0x28], eax
jmp 0xc0025d
mov edx, dword [esp + 0x14]
mov ecx, dword [esp]
add ecx, 1
xor eax, eax
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
jbe 0xc0014d
mov eax, dword [esp + 0x28]
add esp, 0x2c
pop esi
ret

Function at 0xc00266
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x401040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401066
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401066
mov eax, 1
ret
xor eax, eax
ret