joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8a94b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x910014]
cmp dword [eax + 0x30], 0
je 0x8a955a
cmp dword [ebx + 0x94], 0
jne 0x8a9554
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x8a9440
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x8a9554
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x8a951a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x8a9554
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.008c15dc
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x8a9529
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x8aa038
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x8aa06d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.008dffd4
jmp 0x8aa07a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.008dff38
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x8aaf04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x8aaf45
mov eax, esi
call fcn.008b7a98
test al, al
je 0x8aaf45
mov eax, dword [ebx + 0x84]
call fcn.008b7794
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x8aaf45
push 0
mov eax, dword [ebx + 0x84]
call fcn.008b7794
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret
Function at 0x8aed54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x9100b8], 0
je 0x8aeea3
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x90f7bc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x8aeea3
mov eax, dword [0x9100bc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x9100b8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x8aee72
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x9100b8]
call fcn.008c15dc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x8aee6a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x8aee6a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x8aee6a
mov eax, dword [ebp - 0x14]
call fcn.008b7794
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x8aee6a
push ebp
call fcn.008aed10
pop ecx
test al, al
jne 0x8aee6a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x8aee26
mov eax, dword [ebp - 0x14]
call fcn.008b6328
dec eax
jle 0x8aee6a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.008df5ac
cmp byte [ebp - 1], 0
je 0x8aee6a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x8aee6a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x9100bc]
call fcn.008ae4d8
inc edi
dec ebx
jne 0x8aedb9
mov eax, dword [0x9100bc]
cmp dword [eax + 8], 0
jle 0x8aee8a
mov eax, dword [0x9100bc]
call fcn.008ae568
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x8aeea3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.008aeb78
pop ecx
test al, al
jne 0x8aeea3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8b2450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x8b249c
mov eax, esi
call fcn.008a15d4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x8b249c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x8b249c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x8b25db
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x8b24dc
cmp eax, 0x108
ja 0x8b24dc
mov eax, esi
call fcn.008a15d4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x8b25d2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x8b25db
jmp 0x8b25d2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x8b25bb
cmp eax, 0x20a
ja 0x8b25bb
test byte [esi + 0x50], 0x80
jne 0x8b250e
sub eax, 0x203
je 0x8b250b
sub eax, 3
je 0x8b250b
sub eax, 3
jne 0x8b250e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x8b2522
dec eax
je 0x8b2537
dec eax
je 0x8b2554
dec eax
je 0x8b2537
jmp 0x8b255b
mov ecx, ebx
mov eax, dword [0x90f7bc]
mov eax, dword [eax]
mov edx, esi
call fcn.008aadbc
jmp 0x8b25d2
cmp byte [esi + 0x5d], 1
jne 0x8b254d
mov eax, esi
mov si, 0xffed
call fcn.008df5ac
jmp 0x8b25db
or word [esi + 0x54], 1
jmp 0x8b25d2
and word [esi + 0x54], 0xfffe
jmp 0x8b25d2
mov eax, dword [0x910074]
cmp byte [eax + 0x20], 0
je 0x8b25d2
mov eax, dword [0x910074]
cmp dword [eax + 0x1c], 0
je 0x8b25d2
mov eax, dword [ebx]
mov edx, dword [0x910074]
cmp eax, dword [edx + 0x1c]
jne 0x8b25d2
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.008a1518
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.008df5ac
jmp 0x8b25db
cmp eax, 0xb00b
jne 0x8b25d2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.008b0d8c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8b59c4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x8b59e0
cmp dword [esi + 4], 0
je 0x8b5a0d
test byte [ebx + 0x55], 1
jne 0x8b59ff
mov eax, ebx
call fcn.008b4688
test eax, eax
jne 0x8b59ff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x8b5b1d
mov edx, esi
mov eax, ebx
call fcn.008b54e4
jmp 0x8b5b1d
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x8b5b16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.008b7794
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.008b2384
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.008b59c4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.008b7794
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8b5b1d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8bbe70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x90f8ec]
cmp byte [eax + 0xc], 0
je 0x8bbfdd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x8bbfd6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.009100c8], 0
jne 0x8bbec4
push 0x8bbfe4
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
push 0x8bbfec
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.009100c8], eax
cmp dword [0x90b9d4], 0
jne 0x8bbfbf
push 0x8bbffc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x90b9d4], eax
cmp dword [0x90b9d4], 0
je 0x8bbfbf
push 0x8bc008
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100cc], eax
push 0x8bc018
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100d0], eax
push 0x8bc02c
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100d4], eax
push 0x8bc044
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100d8], eax
push 0x8bc05c
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100dc], eax
push 0x8bc070
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100e0], eax
push 0x8bc088
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100e4], eax
push 0x8bc0a0
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100e8], eax
push 0x8bc0bc
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.009100ec], eax
push 0x8bc0c8
mov eax, dword [0x90b9d4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x9100f0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8bbfdd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x8cb188
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x9101f0
cmp dword [edi], 0
jne 0x8cb204
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x9101ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x90ba3c
mov ecx, 2
call fcn.008de7cc
mov edx, 0x8cb160
lea eax, [esi + 5]
call fcn.008cb180
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.008cb180
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x8cb1d9
mov dword [0x9101ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x8d0738
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x8d0771
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.008dffd4
jmp 0x8d077a
mov eax, ebx
mov edx, esi
call fcn.008dff38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x8d0784
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x8d07a5
mov al, byte [esp]
jmp 0x8d07a7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x8d1b70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x8d1bd4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.008e014c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.008cd960
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8d1bdb
lea eax, [ebp - 0xc]
call fcn.008dfee4
ret

Function at 0x8df220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x90bf68]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x8df2b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x8df298
xor eax, eax
push ebp
push 0x8df291
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8df2d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8df298
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x90bf68]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x90bf68], ax
mov esp, ebp
pop ebp
ret

Function at 0x8dfd68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x910564], 0
je 0x8dfdc9
cmp word [0x910738], 0xd7b2
jne 0x8dfd91
cmp dword [0x910740], 0
jbe 0x8dfd91
mov eax, 0x910734
call dword [fcn.00910750]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x90bfb0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x8dfdf0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x90bf78], 0
jne 0x8dfde5
push 0
push 0x90bfd0
push 0x90bfb0
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x8e17f4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x8e1a24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x8e1877
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x8e1a24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x8e1877
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x8e1a40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x8e1900
xor eax, eax
push ebp
push 0x8e18f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.008e163c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x8e18de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x8e1a60
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x8e18de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8e1900
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyn
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x8e1a1a
cmp byte [ebp - 0xd], 0
jne 0x8e1947
cmp byte [ebp - 0x12], 0
je 0x8e1a1a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x8e1960
dec ebx
cmp byte [ebx], 0x2e
je 0x8e196f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x8e195f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x8e1a1a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x8e19ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x8e1a1a
cmp byte [ebp - 0xd], 0
je 0x8e1a1a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x8e1a1a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8e2198
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x910ad8], 1
jae 0x8e221e
mov byte [0x90bf64], 2
mov dword [fcn.00910528], sub.kernel32.dll_RaiseException
mov dword [0x91052c], 0x8ed958
mov byte [0x910566], 2
mov dword [0x910514], 0x8e0e24
call fcn.008df1f0
test al, al
je 0x8e21db
call fcn.008df220
call fcn.008df2e4
mov word [0x91056c], 0xd7b0
mov word [0x910738], 0xd7b0
mov word [0x910904], 0xd7b0
call fcn.008e0d04
call sub.kernel32.dll_GetCommandLineA
mov dword [0x910558], eax
call fcn.008dd204
mov dword [0x910554], eax
call sub.kernel32.dll_GetCurrentThreadId
mov dword [0x91054c], eax
ret

Function at 0x8e7d44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
test eax, eax
je 0x8e7da6
call fcn.008e7cf4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.008e2e04
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.008e2e04
pop ecx
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x8e7e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x90dc34], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x8e7efe
cmp dword [0x90dc30], 0
jne 0x8e7efe
cmp dword [0x90dd28], 0
je 0x8e7eb8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.008e7bf4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x8e7e9e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.008e7bf4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x8e7e9e
lea ebx, [ebp - 0x84]
jmp 0x8e7e9f
inc ebx
call fcn.008e7de0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x8e7f39
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x90dc38
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.008e2e04
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x90dc3b
push ebx
call sub.kernel32.dll_WriteFile
jmp 0x8e7f39
cmp dword [0x90dc30], 0
je 0x8e7f18
cmp dword [0x90dc30], 0xffffffff
je 0x8e7f39
push esi
call dword [0x90dc30]
pop ecx
mov eax, dword [0x90dc34]
test eax, eax
je 0x8e7f39
cmp dword [0x90dc34], 0xffffffff
je 0x8e7f39
cmp byte [eax], 0
je 0x8e7f39
push esi
push eax
call fcn.008e7d44
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8e8998
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x8e8a1e
mov eax, dword [0x9114b4]
inc dword [0x9114b4]
test eax, eax
jne 0x8e8a1e
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x911480], eax
mov edx, dword [ebp + 0x10]
mov dword [0x8ef087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.008e43b4
pop ecx
cmp dword [0x90dc70], 0
je 0x8e8a09
call fcn.008e881c
mov ebx, eax
test eax, eax
je 0x8e8a09
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x8e8a09
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x8e8a1e
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x90dc70], eax
call fcn.008e8824
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.008e8b2c
mov ebx, eax
test edi, edi
jne 0x8e8a8d
test edi, edi
jne 0x8e8a5e
dec dword [0x9114b4]
jne 0x8e8a5e
cmp dword [0x911480], 0
je 0x8e8a5e
mov eax, dword [0x911480]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x911480], edx
cmp dword [0x9114b4], 0
jne 0x8e8a8d
cmp dword [0x90dc70], 0
jne 0x8e8a8d
cmp dword [0x90dc60], 0
je 0x8e8a7f
call dword [0x90dc60]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.008e8824
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4030f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403109
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403146
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403142
nop word [eax + eax]
cmp esi, edx
jae 0x403146
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403130
cmp esi, edx
jb 0x40314d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4041b3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4041b3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x4041a5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetWebViewFactory
push eax
call edi
test eax, eax
je 0x40418d
call eax
mov dword [esi + 4], eax
push str.IWebViewToIWebViewEx
push dword [esi]
call edi
push str.IsSupportedWebViewEngine
push dword [esi]
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], eax
pop edi
setne al
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4