joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100311f6
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 0x10031282
cmp dword [esi + 0x20], 0
je 0x10031282
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10031282
cmp dword [ebp + 8], 0
je 0x10031282
xor edi, edi
mov ebx, edi
call fcn.10028f5a
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 0x10031266
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 0x10031282
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1004ef74
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003127e
mov ecx, esi
call fcn.10030f94
mov eax, edi
jmp 0x10031284
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10035788
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101a0a9b
call fcn.10173417
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x100357ae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10035808
lea ecx, [ebp - 0x10]
call fcn.10024efc
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.10024fa9
add esp, 0x14
test esi, esi
je 0x100357fb
push esi
call fcn.10180e40
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10025920
mov eax, ebx
call fcn.101733e5
ret 8

Function at 0x100370b0
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 0x1003beee
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.10028ba7
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [eax + 4], 0x100
jne 0x1003bff1
cmp dword [eax + 8], 9
jne 0x1003bff1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1003bff1
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.100307dc
test eax, eax
je 0x1003bf4d
mov eax, dword [eax + 0x20]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003c01f
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.1003c11c
test eax, eax
je 0x1003bfed
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 0x1003bfcb
movzx eax, cx
mov ecx, edi
push eax
call fcn.10035694
mov dword [ebp - 8], eax
test eax, eax
je 0x1003bfcb
mov ecx, eax
call fcn.10035853
test eax, eax
je 0x1003bfcb
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 0x1003bfed
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 0x1003c00c
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 0x1003c00e
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.100307dc
mov esi, eax
test esi, esi
je 0x1003bff1
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 0x1003c06b
mov ecx, esi
call fcn.1003575e
and eax, 0x8010000
cmp eax, 0x10000
je 0x1003c085
push dword [ebp - 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.100307dc
mov esi, eax
test esi, esi
jne 0x1003c055
jmp 0x1003bff1
push ebx
push dword [esi + 0x20]
push 0x28
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1003c00c
Function at 0x1003c3f4
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 0x1003c43c
call fcn.10028f5a
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 0x1003c43c
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003c449
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1003c485
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1003c468
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1003c471
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1003c483
test di, di
jne 0x1003c483
test dx, dx
je 0x1003c485
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003c4ee
Capabilities:
Extract resource via kernel32 functions

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

Disassembly:
push 0x24
mov eax, 0x101a17ff
call fcn.10173480
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.10028f5a
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1003c885
call fcn.10028f5a
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 0x1003c899
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1003c895
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1003c8a1
or eax, 0xffffffff
jmp 0x1003c9f3
mov ecx, edi
call fcn.1003ce30
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1002f42f
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1003c92d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1003c92d
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1003c92d
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.100245e3
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1003c92a
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 0x1003c92a
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10035853
test eax, eax
je 0x1003c92a
push 0
mov ecx, esi
call fcn.10035626
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.1002f0ce
push ebx
call fcn.100307dc
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1003c7c9
test eax, eax
jne 0x1003c976
cmp dword [edi + 0x9c], eax
jne 0x1003c976
call fcn.10028f5a
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.100307dc
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1003c7c9
and dword [edi + 0x9c], 0
jmp 0x1003c9a1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1003c9b5
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10035626
test esi, esi
je 0x1003c9c2
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1003c9d8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1003c9d8
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.1003cde7
mov eax, dword [edi + 0x68]
call fcn.101733e5
ret
Function at 0x1003e141
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 0x1003e1bd
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1003e182
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x1003e182
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x1003e1b0
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1003e1b3
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1003e1aa
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 0x1003e166
test eax, eax
je 0x1003e204
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.1003e435
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 0x1003e487
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101a1913
call fcn.10173480
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 0x1003e57e
cmp edi, dword [ebx + 0xc]
jge 0x1003e57e
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003e4de
cmp edi, dword [esi + 8]
jl 0x1003e56c
cmp dword [ebp + 0xc], 0
je 0x1003e56c
xor edi, edi
jmp 0x1003e510
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1003ded3
mov esi, eax
test esi, esi
je 0x1003e4f8
mov dword [esi], vtable.CThreadData.0
jmp 0x1003e4fa
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.10038d7a
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1003e52c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1003e538
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1003e5a5
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 0x1003e57e
cmp edi, dword [esi + 8]
jge 0x1003e57e
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.101733e5
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1003d015
int3

Function at 0x1004033a
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 0x10040364
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004036a
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.1005736c
int3

Function at 0x10040645
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x10040656
xor eax, eax
jmp 0x10040672
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 0x10040677
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.1005736c
int3
Function at 0x10040715
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 0x10040748
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.1005736c
int3

Function at 0x10040821
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 0x1004084c
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 0x10040852
cmp dword [ebp - 4], esi
jne 0x10040869
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.1005736c
lea ecx, [edi + 0xc]
call fcn.1000af40
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10056fc2
int3
Function at 0x100414ec
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 0x10041545
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004156a
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 0x1004154e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x1004156a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x101b1a54]
call esi
jmp 0x100416ac
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.10041965
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.10041965
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.10041965
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.10041965
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.10041965
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.10172772
leave
ret
Function at 0x1004530e
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 0x1004539d
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.1002a835
test eax, eax
jne 0x10045376
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.1002a835
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x10045376
inc ebx
test esi, esi
je 0x10045381
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x10045390
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10045437
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 0x100453b8
mov esi, str.Free
and ecx, 6
cmp cl, 6
jne 0x100453c7
mov esi, str.Both
jmp 0x100453cf
test esi, esi
je 0x10045454
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 0x10045424
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 0x1004542f
call fcn.10028f5a
cmp byte [eax + 0x14], 0
je 0x10045454
test ebx, ebx
jne 0x10045454
test edi, edi
je 0x10045450
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 0x10045457
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10050a9a
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 0x10050af0
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10050ac9
call fcn.1002da10
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10050ade
call fcn.1002da10
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10050af0
call fcn.1002da10
call fcn.10028f5a
cmp dword [eax + 0x3c], 0
je 0x10050b05
push esi
mov ecx, ebx
call fcn.100501b6
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10050cef
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10050b2e
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10050b3a
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 0x10054151
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.100356ce
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 0x1005418d
call fcn.1005436e
mov dword [esi + 0xc], 1
jmp 0x10054192
call fcn.1005436e
cmp dword [esi], 0
je 0x100541dd
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 0x100541b8
push edi
call fcn.1003082a
lea ecx, [edi + 1]
push ecx
jmp 0x100541c7
push 0xff
call fcn.100257ce
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10025946
pop edi
jmp 0x10054201
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 0x10054201
push dword [esi]
push dword [ebp - 4]
call fcn.10041bf7
pop esi
leave
ret 0xc

Function at 0x100542c5
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.1005436e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1005430d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1003082a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10025946
jmp 0x10054318
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10041bf7
pop edi
pop esi
pop ebp
ret 0xc