joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100311b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10031242
cmp dword [esi + 0x20], 0
je 0x10031242
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10031242
cmp dword [ebp + 8], 0
je 0x10031242
xor edi, edi
mov ebx, edi
call fcn.10028f1a
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10031226
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10031242
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1004ef35
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003123e
mov ecx, esi
call fcn.10030f54
mov eax, edi
jmp 0x10031244
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10035748
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101a0abb
call fcn.101733d8
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1003576e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100357c8
lea ecx, [ebp - 0x10]
call fcn.10024ebc
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.101816c3
push eax
call fcn.10024f69
add esp, 0x14
test esi, esi
je 0x100357bb
push esi
call fcn.10180e40
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100258e0
mov eax, ebx
call fcn.101733a6
ret 8

Function at 0x10037070
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov di, ax
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov si, ax
call dword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
add ax, ax
shr si, 0xf
add ax, si
shr di, 0xf
add ax, ax
add ax, di
pop edi
pop esi
ret
Function at 0x1003beb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 1]
add edi, 0xfffffee8
push dword [edi + 0x1c]
call fcn.10028b67
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [eax + 4], 0x100
jne 0x1003bfb3
cmp dword [eax + 8], 9
jne 0x1003bfb3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1003bfb3
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.1003079c
test eax, eax
je 0x1003bf0f
mov eax, dword [eax + 0x20]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003bfe1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
sar eax, 0x1f
and eax, ebx
add eax, 2
push eax
push edi
call fcn.1003c0de
test eax, eax
je 0x1003bfaf
push 0
push 0
push 0x400
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov edx, 0x534b
shr eax, 0x10
cmp ax, dx
jne 0x1003bf8d
movzx eax, cx
mov ecx, edi
push eax
call fcn.10035654
mov dword [ebp - 8], eax
test eax, eax
je 0x1003bf8d
mov ecx, eax
call fcn.10035813
test eax, eax
je 0x1003bf8d
mov eax, dword [ebp - 8]
push ebx
push dword [eax + 0x20]
push 0x28
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je 0x1003bfaf
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101b1a54]
call esi
neg eax
sbb esi, esi
inc esi
test esi, esi
jne 0x1003bfce
mov eax, dword [edi]
push dword [ebp + 0xc]
mov esi, dword [eax + 0x10c]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
test eax, eax
je 0x1003bfd0
xor ebx, ebx
lea ecx, [ebp - 1]
call fcn.10002d40
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call fcn.1003079c
mov esi, eax
test esi, esi
je 0x1003bfb3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx edx, ax
movsx eax, dx
sar eax, 0x1f
and eax, ebx
add eax, 2
mov dword [ebp - 8], eax
mov eax, edx
shr eax, 0xf
push eax
jmp 0x1003c02d
mov ecx, esi
call fcn.1003571e
and eax, 0x8010000
cmp eax, 0x10000
je 0x1003c047
push dword [ebp - 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.1003079c
mov esi, eax
test esi, esi
jne 0x1003c017
jmp 0x1003bfb3
push ebx
push dword [esi + 0x20]
push 0x28
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1003bfce
Function at 0x1003c3b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x1003c3fe
call fcn.10028f1a
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003c3fe
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003c40b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1003c447
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1003c42a
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1003c433
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1003c445
test di, di
jne 0x1003c445
test dx, dx
je 0x1003c447
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003c4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.10028f1a
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003c4f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003c4f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1003c4f8
jmp 0x1003c4f2
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1003c7e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x101a181f
call fcn.10173441
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.10028f1a
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1003c847
call fcn.10028f1a
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003c85b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1003c857
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1003c863
or eax, 0xffffffff
jmp 0x1003c9b5
mov ecx, edi
call fcn.1003cdf2
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1002f3ef
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1003c8ef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1003c8ef
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1003c8ef
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.100245a3
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1003c8ec
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1003c8ec
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10035813
test eax, eax
je 0x1003c8ec
push 0
mov ecx, esi
call fcn.100355e6
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.1002f08e
push ebx
call fcn.1003079c
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1003c78b
test eax, eax
jne 0x1003c938
cmp dword [edi + 0x9c], eax
jne 0x1003c938
call fcn.10028f1a
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.1003079c
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1003c78b
and dword [edi + 0x9c], 0
jmp 0x1003c963
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1003c977
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.100355e6
test esi, esi
je 0x1003c984
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1003c99a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1003c99a
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1003cda9
mov eax, dword [edi + 0x68]
call fcn.101733a6
ret
Function at 0x1003e103
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x1003e17f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1003e144
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x1003e144
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x1003e172
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1003e175
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1003e16c
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x1003e128
test eax, eax
je 0x1003e1c6
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.1003e3f7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003e449
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101a1933
call fcn.10173441
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1003e540
cmp edi, dword [ebx + 0xc]
jge 0x1003e540
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003e4a0
cmp edi, dword [esi + 8]
jl 0x1003e52e
cmp dword [ebp + 0xc], 0
je 0x1003e52e
xor edi, edi
jmp 0x1003e4d2
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1003de95
mov esi, eax
test esi, esi
je 0x1003e4ba
mov dword [esi], vtable.CThreadData.0
jmp 0x1003e4bc
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.10038d3d
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1003e4ee
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1003e4fa
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1003e567
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10176a90
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003e540
cmp edi, dword [esi + 8]
jge 0x1003e540
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.101733a6
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1003cfd7
int3

Function at 0x100402fc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10040326
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004032c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.1000af40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10057335
int3

Function at 0x10040607
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x10040618
xor eax, eax
jmp 0x10040634
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10040639
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.1000af40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10057335
int3
Function at 0x100406d7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x101b1a54]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1004070a
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.1000af40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10057335
int3

Function at 0x100407e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1004080e
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10040814
cmp dword [ebp - 4], esi
jne 0x1004082b
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.1000af40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10057335
lea ecx, [edi + 0xc]
call fcn.1000af40
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10056f8b
int3
Function at 0x100414ae
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x102177e0]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x10041507
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004152c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x102177e0], eax
jmp 0x10041510
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x1004152c
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x101b1a54]
call esi
jmp 0x1004166e
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.10041927
lea eax, [ebp - 0x14]
push eax
call fcn.10180e40
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.101813e1
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.10041927
lea eax, [ebp - 0x14]
push eax
call fcn.10180e40
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.101813e1
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.10041927
lea eax, [ebp - 0x14]
push eax
call fcn.10180e40
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.101813e1
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.10041927
lea eax, [ebp - 0x14]
push eax
call fcn.10180e40
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.101813e1
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.10041927
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.10180e40
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.101813e1
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10172731
leave
ret
Function at 0x100452d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0
pop ebx
and edi, 1
je 0x1004535f
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.1002a7f5
test eax, eax
jne 0x10045338
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.1002a7f5
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x10045338
inc ebx
test esi, esi
je 0x10045343
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x10045352
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x100453f9
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, ecx
and al, 2
movzx esi, al
neg esi
sbb esi, esi
and esi, str.Apartment
test cl, 4
je 0x1004537a
mov esi, str.Free
and ecx, 6
cmp cl, 6
jne 0x10045389
mov esi, str.Both
jmp 0x10045391
test esi, esi
je 0x10045416
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push str.InprocServer32
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x100453e6
push esi
call fcn.10180e40
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100453f1
call fcn.10028f1a
cmp byte [eax + 0x14], 0
je 0x10045416
test ebx, ebx
jne 0x10045416
test edi, edi
je 0x10045412
mov esi, str.Insertable
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, ebx
jmp 0x10045419
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10050a5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x10050ab1
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10050a8a
call fcn.1002d9d0
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10050a9f
call fcn.1002d9d0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10050ab1
call fcn.1002d9d0
call fcn.10028f1a
cmp dword [eax + 0x3c], 0
je 0x10050ac6
push esi
mov ecx, ebx
call fcn.10050177
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10050cb0
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10050aef
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10050afb
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1005411a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1003568e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10054156
call fcn.10054337
mov dword [esi + 0xc], 1
jmp 0x1005415b
call fcn.10054337
cmp dword [esi], 0
je 0x100541a6
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10054181
push edi
call fcn.100307ea
lea ecx, [edi + 1]
push ecx
jmp 0x10054190
push 0xff
call fcn.1002578e
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10025906
pop edi
jmp 0x100541ca
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100541ca
push dword [esi]
push dword [ebp - 4]
call fcn.10041bb9
pop esi
leave
ret 0xc

Function at 0x1005428e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10054337
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100542d6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100307ea
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10025906
jmp 0x100542e1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10041bb9
pop edi
pop esi
pop ebp
ret 0xc