joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54963a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x54971c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x94
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x37c]
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.00547e80
push 0
mov ecx, ebx
call fcn.00547d10
test eax, eax
je 0x549704
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.00547a10
mov bl, al
mov ecx, 0x708e18
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x56c]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00548c20
test eax, eax
je case.0x549633.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x549633.10
movzx ecx, byte [ecx + 0x549768]
jmp dword [ecx*4 + 0x549724]
movzx ecx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x549633.10
movzx ecx, word [edi + 0x30]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x549633.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x549633.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x549633.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x84], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x88], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x549633.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x90], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00547d10
test eax, eax
jne 0x5495f0
pop edi
mov ecx, dword [0x6c426c]
call fcn.00469b30
mov ecx, dword [0x6c426c]
call fcn.004698a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x54d020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
je 0x54d145
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x54d145
push edi
mov ecx, 1
mov edi, 0x708efc
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 1
je 0x54d12b
cmp dword [edx + 0x24], 1
je 0x54d12b
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [0x708edc], xmm0
mov eax, dword [eax + 8]
mov dword [0x708ee4], eax
mov eax, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [0x708ee8], xmm0
mov eax, dword [eax + 8]
mov dword [0x708ef0], eax
mov eax, dword [esi + 0x1f4]
mov dword [0x708ef4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x6afb00], eax
mov dword [0x708ef8], edx
mov dword [esi + 0x3ac], 0
mov eax, dword [0x6d9f74]
mov dword [eax + 0xa00], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x6db0a8
mov dword [0x708ed0], eax
call fcn.004ddd50
mov dword [0x708ed4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x54d150
push 0
push 0
mov dword [0x708ec8], 1
mov dword [0x708ecc], 1
mov dword [0x708f04], 0
mov dword [0x708ec4], 0
mov dword [0x708ed8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x54d133
xchg dword [edi], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x54e8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CTileManager.0
lea ecx, [edi + 0x38]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.00513440
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x58]
push eax
call fcn.0054e760
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x6c]
push eax
call fcn.0054e760
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x8c]
push eax
call fcn.0054e760
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0xa0]
call fcn.0054e760
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0xc], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x565820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d3ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
push 0x40
mov byte [ebp - 4], 2
call fcn.0047ae10
push 0x40
lea ecx, [ebx + 0x24]
call fcn.0047ae10
push 0x40
lea ecx, [ebx + 0x48]
call fcn.0047ae10
mov ecx, ebx
call fcn.00565500
mov ecx, ebx
call fcn.005653d0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5726d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x20]
test eax, eax
je 0x57270c
push 0x7c9
mov ecx, 0x6de098
call fcn.004ebdb0
push eax
push 0x17
push 0x6de098
call fcn.004eb570
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7070c0]
mov dword [ebp - 4], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 4]
push edx
push 0x5a8b00
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x572705
cmp dword [esi + 0xc], 0
jne 0x57276b
push str.bdcap32.dll
mov ecx, esi
call fcn.00572890
test eax, eax
jns 0x572751
push 0x7ca
jmp 0x5726eb
mov eax, dword [esi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call dword [eax + 0xc]
cmp dword [esi + 0xc], 0
je 0x57282b
mov eax, dword [esi]
push 0x140
push 0xf
push esi
call dword [eax + 0x40]
mov ecx, esi
call fcn.00572c00
push 0
mov ecx, 0x709b18
call fcn.0055f4c0
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5727c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x572705
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push 0x5a8be0
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.00572b50
lea eax, [ebp - 0x20c]
mov ecx, 0x6de098
push eax
push 0x971
call fcn.004ebdb0
push eax
push 0x17
push 0x6de098
call fcn.004eb570
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 4]
push 4
push 0
push eax
push esi
call fcn.00572d50
test eax, eax
js 0x572705
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x576fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x100]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_strrchr]
add esp, 8
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x14]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x577000
lea edi, [ebp - 0x100]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x577010
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x100]
push eax
push 0xff
push dword [ebp + 0x10]
and ecx, 3
push 0
push dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57e220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6e8aa4]
sub esp, 0x10c
push ebx
push esi
push eax
push eax
mov ebx, ecx
mov ecx, 0x709b18
push 0
call fcn.0055f4c0
push eax
lea eax, [ebp - 0x10c]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x57e2a1
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x57e2a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x61208
jne 0x57e29a
push 0
lea eax, [ebp - 4]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57e29a
cmp dword [ebp - 4], 0x16c
push esi
ja 0x57e29b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6e8aa4]
sub esp, 0x10c
push ebx
push edi
push eax
push eax
mov ebx, ecx
mov ecx, 0x709b18
push 0
call fcn.0055f4c0
push eax
lea eax, [ebp - 0x10c]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5806c3
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x61208
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d8a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CDungeonMgr.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push 0x1e0
lea ebx, [edi + 0x70]
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1e0
lea eax, [ebx + 0x2a4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x48e
xorps xmm0, xmm0
push 0
movq qword [ebx + 0x484], xmm0
push ebx
mov word [ebx + 0x48c], 0
call sub.MSVCR120.dll_memset
add esp, 0x24
mov dword [edi + 0x500], 0
lea ecx, [edi + 0x500]
mov dword [edi + 0x504], 0
call fcn.00513440
mov dword [edi + 0x500], eax
add edi, 0x508
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0x10]
lea esi, [ecx + 0x52c]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ebx, [ecx + 0x550]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 6
push 0x48e
lea eax, [ecx + 0x70]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, edi
push 0xc8
call fcn.0047ae10
push 0x14
mov ecx, esi
call fcn.0047ae10
mov esi, dword [ebp - 0x10]
push 0x404
push 0
lea eax, [esi + 0x590]
mov dword [esi + 0x574], 0
push eax
mov dword [esi + 0x57c], 0
mov dword [esi + 0x578], 0xf
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esi + 4]
push 0xc8
call fcn.0047ae10
push 0x14
mov ecx, ebx
mov dword [esi + 0x580], 0
mov dword [esi + 0x584], 0
mov dword [esi + 0x588], 0
mov dword [esi + 0x58c], 0
call fcn.0047ae10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5855e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
sar eax, 2
and esi, 3
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], esi
lea edx, [eax*4]
mov dword [ecx + 0x50], edx
push edi
test eax, eax
je 0x58561f
xor edi, edi
xor edi, dword [ebx]
lea ebx, [ebx + 4]
dec eax
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x48], eax
jne 0x585611
test esi, esi
je 0x58563c
mov edi, dword [ecx + 0x54]
mov eax, dword [ebp + 8]
movsx eax, byte [edx + eax]
inc edx
xor edi, eax
mov dword [ecx + 0x50], edx
dec esi
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x4c], esi
jne 0x585626
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x401045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x42c680
call fcn.00401d14
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.00401d14
mov ecx, esi
call fcn.00401dc6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x401847
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov esi, edx
mov edi, ecx
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.00413780
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, esi
push eax
push 0x20219
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x401941
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0
test esi, esi
jne 0x401941
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea eax, [esp + 0x20]
push eax
call fcn.00401c42
mov ecx, esi
call fcn.00401dc6
push 0x5c
push eax
call fcn.00413635
add esp, 8
test eax, eax
je 0x40193f
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.004017a4
test al, al
je 0x40193f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401930
push edi
call fcn.00401c42
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.00401959
mov ebx, eax
jmp 0x401941
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.00412051
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401959
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x42c868]
cmp dword [ecx + eax], edx
ja 0x401977
jb 0x401982
add eax, 4
cmp eax, 0x10
jne 0x401962
push esi
call fcn.00401045
add esp, 4
jmp 0x4019a2
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.00401dc6
push eax
call edi
push 0x42c8ca
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x4021ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402261
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40227b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.004022a2
add esp, 8
test al, al
je 0x40228c
push 0xa
push 0
push dword [esi]
call fcn.0041aa49
add esp, 0xc
jmp 0x40227e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412051
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004022a2
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebx], ecx
mov bl, 1
jmp 0x40228e
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412051
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4022a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea edi, [ebp - 0x218]
push 0x208
push ebx
push edi
call fcn.00413780
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push edi
push ebx
push 2
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x402319
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.00401c42
mov ecx, edi
call fcn.00401dc6
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412051
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f41
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a550
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esi], vtable.CActiveXContainer.13.0
push edi
mov dword [esi + 4], vtable.CActiveXContainer.12.0
mov dword [esi + 8], vtable.CActiveXContainer.11.0
mov dword [esi + 0xc], vtable.CActiveXContainer.10.0
mov dword [esi + 0x10], vtable.CActiveXContainer.9.0
mov dword [esi + 0x14], vtable.CActiveXContainer.8.0
mov dword [esi + 0x18], vtable.CActiveXContainer.7.0
mov dword [esi + 0x1c], vtable.CActiveXContainer.6.0
mov dword [esi + 0x20], vtable.CActiveXContainer.5.0
mov dword [esi + 0x24], vtable.CActiveXContainer.4.0
mov dword [esi + 0x28], vtable.CActiveXContainer.3.0
mov dword [esi + 0x2c], vtable.CActiveXContainer.2.0
mov dword [esi + 0x30], vtable.CActiveXContainer.1.0
mov dword [esi + 0x34], vtable.CActiveXContainer.0
call fcn.0040301c
mov dword [esi + 0x5c], edi
cmp dword [esi + 0x64], edi
je 0x402fe7
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4091db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00409286
cmp byte [esi + 8], 0
jne 0x4091f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x409283
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0xc], eax
jne 0x40921a
push eax
push eax
push 1
push eax
call ebx
mov dword [esi + 0xc], eax
jmp 0x40921f
push dword [esi + 0xc]
call edi
cmp dword [esi + 0x10], 0
jne 0x409233
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov dword [esi + 0x10], eax
jmp 0x409238
push dword [esi + 0x10]
call edi
cmp dword [esi + 0x14], 0
jne 0x40924c
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x14], eax
jmp 0x409253
push dword [esi + 0x14]
call edi
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x409281
cmp dword [esi + 0x10], edi
je 0x409281
cmp dword [esi + 0x14], edi
je 0x409281
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x409361
push edi
push edi
call fcn.0041872b
add esp, 0x18
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.004092d0
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a199
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040a23c
cmp byte [esi + 0x4c], 0
jne 0x40a1b5
cmp byte [esi + 0x4d], 0
je 0x40a237
mov eax, dword [esi + 0x34]
cmp byte [eax + 0x11], 0
je 0x40a237
cmp dword [ebp + 8], 0
je 0x40a237
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a237
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40a237
cmp byte [esi + 0x4c], 0
je 0x40a237
cmp byte [esi + 0x4d], 0
push ebx
je 0x40a1ec
push str.OpusViewerTabKeyRedrawHook
jmp 0x40a1f1
push str.OpusViewerTabKeyHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40a236
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40a236
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push dword [esi + 0x50]
push ebx
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40a236
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop esi
leave
ret 4
Function at 0x40cf08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
test edi, edi
je 0x40cfe2
xor ebx, ebx
cmp word [edi], bx
je 0x40cfe2
push 0x42cdb8
push 0x400
mov dword [ebp - 4], 0x200
call fcn.00412064
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40cfe2
push edi
mov eax, 0x200
push eax
push esi
push 0x433848
push 0x434a18
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
cmp ecx, 0x1ff
jne 0x40cfc8
push esi
call fcn.0041205f
mov eax, dword [ebp - 4]
mov dword [esp], 0x42cdb8
add eax, eax
push 2
pop ecx
mov dword [ebp - 4], eax
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.00412064
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40cfe2
mov eax, dword [ebp - 4]
push edi
push eax
push esi
push 0x433848
push 0x434a18
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
mov eax, dword [ebp - 4]
dec eax
cmp ecx, eax
je 0x40cf71
test ecx, ecx
je 0x40cfd7
mov ecx, dword [ebp - 8]
push esi
call fcn.004026db
mov bl, 1
push esi
call fcn.0041205f
pop ecx
mov al, bl
jmp 0x40cfe4
xor al, al
pop edi
pop esi
pop ebx
leave
ret