joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008eb9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100b97c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10008efd
cmp dword [ebp - 0x108], 2
jne 0x10008efd
cmp dword [ebp - 0x114], 6
jae 0x10008efd
mov al, 1
jmp 0x10008eff
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005bea6
leave
ret

Function at 0x10008f0b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100b97c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 4
jbe 0x10008f70
xor eax, eax
inc eax
cmp dword [ebp - 0x11c], 5
jne 0x10008f72
cmp dword [ebp - 0x118], 0
je 0x10008f70
cmp dword [ebp - 0x118], 2
jne 0x10008f61
cmp byte [ebp - 6], al
jmp 0x10008f6e
cmp dword [ebp - 0x118], eax
jne 0x10008f72
cmp word [ebp - 0xc], 0
jne 0x10008f72
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005bea6
leave
ret

Function at 0x1000a5ff
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100b97c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x21c], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.1000568a
mov ebx, eax
cmp ebx, esi
je 0x1000a668
lea esi, [ebp - 0x214]
call fcn.100056c8
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005bea6
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1000a686
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1000a5ff
cmp eax, esi
jne 0x1000a6cd
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x1000a670
lea esi, [ebp - 0x214]
call fcn.100056c8
push dword [ebp - 0x21c]
mov esi, edi
call fcn.1000a5a6
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.100056c8
mov eax, edi
jmp 0x1000a657

Function at 0x1000a71c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a780
cmp dword [ebp + 0xc], 1
je 0x1000a758
cmp dword [ebp + 0xc], 2
je 0x1000a758
push 0xd
pop eax
jmp 0x1000a780
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000a77a
test eax, eax
je 0x1000a775
test al, 1
jne 0x1000a753
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000a77a
jmp 0x1000a753
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x1000bfd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1000b0c5
mov edi, 0x8fffff0
mov al, byte [0x2ff845c6]
mov eax, dword [ebp - 0x3d0]
inc eax
invalid

Function at 0x1000c00c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
invalid
invalid
invalid

Function at 0x1000d5c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xa
jne 0x1000d5ff
add dword [esi + 0x28], 0x3e8
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, eax
jle 0x1000d5dd
mov dword [esi + 0x28], eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000d625
push 0
push dword [esi + 0x28]
push 0x402
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1000d625
cmp dword [ebp + 8], 0xb
jne 0x1000d625
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1000d616
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [esi + 0x34], 0
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
xor eax, eax
pop ebp
ret 8

Function at 0x1000e00c
Capabilities:
Check mutex on windows

Disassembly:
push 0x100a21d0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x1000e039
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000e039
push 0x3e8
push dword [esi + 4]
jmp 0x1000e05a
cmp dword [esi + 4], 0
jne 0x1000e060
push str.Global223CEB62_A2BC_4E33_BA9B_FCAC6DAAB1BE
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0x3e8
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x1002cc55
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1002d583
lea edi, [esi + 0x80]
mov eax, dword [edi]
test eax, eax
je 0x1002cc7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi], 0
lea edi, [esi + 0x90]
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x18]
call fcn.1002de8c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x18]
call fcn.1002de8c
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1002ccba
cmp esi, dword [esp + 0x18]
je 0x1002ccbf
call fcn.1005e430
mov ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x1c]
jae 0x1002cd0a
test esi, esi
jne 0x1002cd02
call fcn.1005e430
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1002ccde
call fcn.1005e430
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x1002cd06
call fcn.1005e430
cmp ebx, dword [esi + 0x10]
jb 0x1002ccf9
call fcn.1005e430
add ebx, 0x1c
mov dword [esp + 0x14], ebx
jmp 0x1002cca0
mov eax, dword [esi]
jmp 0x1002ccd4
mov esi, dword [esi]
jmp 0x1002ccef
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x18]
call fcn.1002de8c
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x10]
call fcn.1002de8c
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push edi
call fcn.1002ddd6
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
cmp eax, edi
je 0x1002cd6d
push dword [esi + 0x74]
push eax
call ebx
push dword [esi + 0x60]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0x70]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x64]
cmp eax, edi
je 0x1002cd92
push dword [esi + 0x6c]
push eax
call ebx
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0x68]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
push edi
push edi
push edi
push edi
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi + 0x3c], 0xffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ee73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077206
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100b97c0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x100b97c0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002eed6
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1005bea6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x1002eefe
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x1002eefe
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x1002eeb6
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x1002ef0a
or eax, 0xffffffff
jmp 0x1002eeb6
cmp dword [esi + 0x3c], edi
jne 0x1002ef1e
push eax
push ebx
call fcn.1002ec3e
pop ecx
pop ecx
test al, al
je 0x1002ef05
jmp 0x1002eefa
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.1002f550
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x1002f02e
cmp eax, 1
jg 0x1002f056
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x1002efc3
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1005e9c2
add esp, 0x10
cmp edi, eax
jne 0x1002f06d
lea eax, [esp + 0x10]
mov byte [esi + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x1002f084
test edi, edi
ja 0x1002eff1
cmp dword [esp + 0x58], 0x20
jae 0x1002f06d
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.1002f578
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x1002ef71
jmp 0x1002f06d
cmp eax, 3
jne 0x1002f06d
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.1002ec3e
pop ecx
pop ecx
test al, al
jne 0x1002f084
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.1002dcdc
mov eax, esi
jmp 0x1002eeb6
mov esi, dword [ebp + 8]
jmp 0x1002f070
Function at 0x1002f6bc
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x10077368
call fcn.10060cc6
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x1002f7c8
cmp byte [esi + 0x41], 0
je 0x1002f7c8
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1002f6f2
xor al, al
jmp 0x1002f7ca
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.1002f550
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x1002f762
dec eax
je 0x1002f766
dec eax
dec eax
je 0x1002f7c4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.1002dcdc
mov al, bl
jmp 0x1002f7ca
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x1002f7a6
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002f5c8
mov ecx, eax
call fcn.1002f9cc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1005e9c2
add esp, 0x10
cmp edi, eax
jne 0x1002f750
cmp byte [esi + 0x41], 0
je 0x1002f7c4
test edi, edi
jne 0x1002f700
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.1002f578
jmp 0x1002f700
mov bl, 1
jmp 0x1002f752
mov al, 1
call fcn.10060d49
ret

Function at 0x1003494f
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push 8
mov eax, 0x1007e079
call fcn.10060c5d
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov ecx, 0x100bbb3c
call fcn.1000308c
mov eax, dword [ebp + 0xc]
sub eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
je 0x100349c7
dec eax
je 0x100349b7
dec eax
jne 0x100349fc
call fcn.10026ba2
mov esi, eax
call fcn.10028033
test al, al
je 0x100349fc
push dword [ebp + 0x10]
push ecx
call fcn.10026ba2
pop ecx
mov esi, eax
call fcn.100280f0
cmp eax, edi
je 0x100349fc
mov edi, dword [ebp + 8]
push eax
call fcn.10014304
jmp 0x100349fc
call fcn.10029c86
mov edi, dword [ebp + 8]
push eax
call fcn.1002b8c6
jmp 0x100349fc
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push edi
push edi
push 0x59
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, ax
push eax
call edi
mov esi, dword [ebp + 8]
push eax
push eax
call fcn.10002f53
push eax
push 0x59
call ebx
movzx eax, ax
push eax
call edi
or eax, 0xffffffff
call fcn.10002c56
mov eax, dword [ebp + 8]
call fcn.10060d35
ret 0xc
Function at 0x10039f9b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x1003a0d4
push dword [esi + 0x78]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x78], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 0x7c]
je 0x10039ff1
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x10039fda
push eax
push dword [esi + 4]
call edi
push 0
push 0x32
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x70], eax
jmp 0x1003a0c0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call edi
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x1003a07c
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push eax
call edi
test eax, eax
jne 0x1003a0c0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1003a08d
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0xb
push dword [esi + 4]
call edi
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1003a0b2
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x32
push 0xc
push dword [esi + 4]
call edi
mov dword [esi + 0x74], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x78], eax
jmp 0x1003a132
cmp dword [ebp + 8], 0xb
jne 0x1003a132
push dword [esi + 0x70]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x70], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x1003a120
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
je 0x1003a120
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1003a132
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
leave
ret 8
Function at 0x1004ebc7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
push ebx
jne 0x1004ebe6
xor bl, bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov al, bl
pop ebx
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov ebx, eax
call esi
pop edi
pop esi
cmp ebx, 0xffffffff
je 0x1004ebd4
test bl, 0x10
jne 0x1004ebd4
mov bl, 1
jmp 0x1004ebd6

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
push ebx
jne 0x1004ec31
xor bl, bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov al, bl
pop ebx
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov ebx, eax
call esi
pop edi
pop esi
cmp ebx, 0xffffffff
je 0x1004ec1f
test bl, 0x10
je 0x1004ec1f
mov bl, 1
jmp 0x1004ec21
Function at 0x10050b51
Capabilities:
Query environment variable

Disassembly:
push 0x60
mov eax, 0x1007b779
call fcn.10060c5d
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x10050b6f
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x10050b78
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x10050b86
xor edi, edi
call fcn.10016f9a
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x10050b94
xor edi, edi
call fcn.10016f9a
push 0x25
lea esi, [ebp + 8]
call fcn.10009ad0
cmp eax, 0xffffffff
je 0x10050c0e
mov eax, dword [0x100bbb3c]
mov ecx, 0x100bbb3c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp + 8]
push eax
push eax
lea esi, [ebp - 0x14]
mov dword [ebp - 0x18], ecx
call fcn.10002f53
push eax
push dword [ebp - 0x18]
call edi
mov edi, eax
or eax, 0xffffffff
call fcn.10002c56
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
je 0x10050cfe
cmp edi, ebx
je 0x10050cfe
lea eax, [ebp - 0x14]
lea edi, [ebp + 8]
call fcn.10002622
lea eax, [esi - 0x10]
call fcn.10003137
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.1005090f
pop ecx
test al, al
je 0x10050d08
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
push ebx
xor ecx, ecx
lea edx, [ebp - 0x6c]
call fcn.1004ff58
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
push ebx
xor ecx, ecx
lea edx, [ebp - 0x4c]
call fcn.1004ff58
cmp dword [ebp + 0x1c], ebx
mov ecx, dword [ebp + 0x24]
setne al
movzx eax, al
push eax
lea edx, [ebp - 0x6c]
call fcn.1004ff58
test al, al
je 0x10050d08
cmp dword [ebp + 0x20], ebx
mov ecx, dword [ebp + 0x28]
setne al
movzx eax, al
push eax
lea edx, [ebp - 0x4c]
call fcn.1004ff58
test al, al
je 0x10050d08
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
mov eax, esp
mov dword [ebp + 0x20], esp
push 0x100a7d28
push eax
call fcn.1000304f
call fcn.10050146
add esp, 0x2c
lea esi, [ebp - 0x28]
mov bl, al
call fcn.10002876
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10003137
mov al, bl
jmp 0x10050d28
lea eax, [esi - 0x10]
call fcn.10003137
jmp 0x10050d10
lea esi, [ebp - 0x28]
call fcn.10002876
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10003137
xor al, al
call fcn.10060d35
ret
Function at 0x10050d81
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ebx, [edi + 0xc]
push ebx
push str.VBScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea esi, [edi + 0x24]
push esi
push 0x100837fc
push 1
push 0
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jge 0x10050dbf
push str.Failed_to_create_scripting_engine._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
jmp 0x10050e1f
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi]
mov ecx, dword [eax]
lea ebx, [edi + 0x28]
push ebx
push 0x1008380c
push eax
call dword [ecx]
mov dword [ebp - 4], eax
test eax, eax
jge 0x10050dee
push str.Engine_doesnt_support_IActiveScriptParse._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
jmp 0x10050e1f
mov esi, dword [esi]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jge 0x10050e04
push str.Error_calling_SetScriptSite_n
jmp 0x10050e17
mov ebx, dword [ebx]
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jge 0x10050e1f
push str.Error_calling_InitNew_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10050e23
Capabilities:
Print debug messages

Disassembly:
push 0
mov eax, 0x100781a6
call fcn.10060c5d
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], edi
jne 0x10050e54
xor ebx, ebx
inc ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov eax, ebx
call fcn.10060d35
ret 4
lea eax, [esi + 0x20]
push eax
call fcn.1005110c
mov ebx, eax
cmp ebx, edi
jl 0x10050e3f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push 6
push str.OCSetupHelpObject
push eax
call dword [ecx + 0x20]
mov ebx, eax
cmp ebx, edi
jl 0x10050e3f
mov eax, dword [esi + 0x28]
mov ebx, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp + 8]
call fcn.10009cfd
push eax
push dword [esi + 0x28]
call dword [ebx + 0x14]
mov ebx, eax
cmp ebx, edi
jge 0x10050eb1
push str.Error_calling_ParseScriptText_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10050e3f
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x14]
mov ebx, eax
cmp ebx, edi
jge 0x10050ec9
push str.Error_calling_SetScriptState_n
jmp 0x10050ea9
mov eax, dword [esi + 0x20]
mov al, byte [eax + 8]
mov byte [esi + 0x2c], al
jmp 0x10050e3f