joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044186
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xd4
mov eax, 0x101d494d
call fcn.10099872
mov edi, dword [ebp + 8]
push 0x101e6ae4
lea ecx, [ebp - 0xe0]
call fcn.100ce7b0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x1026d5c8]
cmp ecx, ebx
je 0x10044220
sub eax, ecx
cmp eax, 0xea60
jae 0x10044220
push dword [0x1026d5c4]
lea eax, [ebp - 0xe0]
push dword [0x10248034]
push str.Outlook_2003_IsMailRule____d_____d_
push eax
call fcn.100d1ed0
push ebx
push 1
push dword [ebp - 0xe0]
call fcn.10063a80
add esp, 0x1c
cmp edi, ebx
je 0x10044201
mov eax, dword [0x1026d5c4]
mov dword [edi], eax
mov esi, dword [0x10248034]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.100cef50
mov eax, esi
call fcn.100998f5
ret 4
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0xdc]
mov dword [0x1026d5c8], eax
mov dword [0x10248034], esi
mov dword [0x1026d5c4], ebx
call fcn.1002b07a
mov byte [ebp - 4], 1
push 0x68
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.10099920
push ebx
lea eax, [ebp - 0x7c]
push eax
push 3
lea eax, [ebp - 0xdc]
push 7
push eax
call fcn.1000d81c
add esp, 0x20
test eax, eax
je 0x10044287
test byte [ebp - 0x6c], 8
je 0x1004428d
call fcn.10026f29
test eax, eax
je 0x1004428d
mov dword [0x1026d5c4], esi
jmp 0x1004428d
mov dword [0x10248034], ebx
cmp edi, ebx
je 0x10044298
mov eax, dword [0x1026d5c4]
mov dword [edi], eax
cmp dword [0x10269fe8], ebx
je 0x100442c5
push dword [0x1026d5c4]
push dword [0x10248034]
push str.CAddin::HasMailRule__MailRule:_d__SCI:_d_
push str.outlook
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x18
mov esi, dword [0x10248034]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xdc]
call fcn.1002b104
jmp 0x10044207
Function at 0x1004cd9a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1004ce44
mov ecx, ebx
call fcn.10041225
test eax, eax
jle 0x1004ce44
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 4
push eax
call fcn.10099f06
pop ecx
test eax, eax
jbe 0x1004cde7
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 4
push eax
call esi
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 0x414
push eax
call fcn.10099f06
pop ecx
test eax, eax
jbe 0x1004ce0f
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 0x414
push eax
call esi
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 0x824
push eax
call fcn.10099f06
pop ecx
test eax, eax
jbe 0x1004ce37
push edi
mov ecx, ebx
call fcn.10045c0d
add eax, 0x824
push eax
call esi
mov ecx, ebx
inc edi
call fcn.10041225
cmp edi, eax
jl 0x1004cdc3
pop esi
mov ecx, ebx
call fcn.1004b369
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1005d5ee
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7e2a
mov eax, dword fs:[0]
push eax
mov eax, 0x1004c
call fcn.100a0380
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005d633
xor eax, eax
jmp 0x1005d7cb
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x1003c]
call fcn.100dd1f0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10058]
call fcn.1003d08f
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10030]
call fcn.10011739
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
mov dword [ebp - 0x10024], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005d799
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1005d788
push 0xffff
lea eax, [ebp - 0x1000f]
push ebx
push eax
mov byte [ebp - 0x10010], bl
call fcn.10099920
mov dword [ebp - 0x1001c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
mov dword [ebp - 0x10020], ebx
mov dword [ebp - 0x10018], ebx
push ebx
push ebx
push dword [ebp - 0x1001c]
push edi
call esi
push ebx
lea eax, [ebp - 0x10014]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10014], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005d774
cmp dword [ebp - 0x10014], 0x10000
jae 0x1005d71b
mov dword [ebp - 0x10020], 1
cmp dword [ebp - 0x10014], ebx
je 0x1005d774
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push ebx
lea eax, [ebp - 0x10028]
push eax
push dword [ebp - 0x10014]
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10028], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005d774
mov ecx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10014]
cmp ecx, eax
jne 0x1005d774
add dword [ebp - 0x1001c], eax
add dword [ebp - 0x10018], ecx
cmp dword [ebp - 0x10020], ebx
je 0x1005d6cd
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1005d792
mov dword [ebp - 0x10024], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10030]
call fcn.10011765
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10058]
call fcn.1003d16b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1003c]
call fcn.100dd250
mov eax, dword [ebp - 0x10024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100997fa
leave
ret 4
Function at 0x1005d7e7
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x101d7e6a
call fcn.10099809
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x1005d8b1
cmp dword [ebp + 8], ebx
je 0x1005d8b1
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.100dd1f0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.1003d08f
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10011739
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005d88a
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], ebx
je 0x1005d880
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x1005d883
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10011765
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.1003d16b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100dd250
mov eax, edi
jmp 0x1005d8b3
xor eax, eax
call fcn.100998e1
ret 8
Function at 0x1005d8bb
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x101d7e9d
call fcn.10099809
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005d8dd
xor eax, eax
call fcn.100998e1
ret 0xc
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100dd1f0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.1003d08f
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.10011739
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005d9ce
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
ja 0x1005d9d3
cmp dword [ebp + 0x10], ebx
je 0x1005d954
cmp eax, 0xa00000
ja 0x1005d9d3
inc eax
push eax
call fcn.1009bf6a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1005d995
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10011765
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003d16b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100dd250
mov eax, esi
jmp 0x1005d8d5
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push esi
call fcn.10099920
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov esi, dword [ebp - 0x14]
jmp 0x1005d96b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10011765
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003d16b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100dd250
jmp 0x1005d8d3

Function at 0x1005e0a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x1005e0b3
push 0xd
pop eax
jmp 0x1005e0de
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005e0b6
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1006310d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x101d8b47
call fcn.100998a8
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x10063166
call fcn.1005de0b
mov esi, eax
jmp 0x10063281
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x1006317f
call fcn.1005de0b
jmp 0x10063273
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10063175
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100631ec
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100631ce
lea ecx, [ebp - 0x418]
call fcn.1005e842
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.100414ac
mov eax, esi
call fcn.10099904
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.100615d9
mov dword [ebp - 4], 1
jmp 0x10063225
cmp dword [ebp - 0x418], ebx
jne 0x10063234
mov esi, 0x8007000e
jmp 0x10063275
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10063175
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10062ce4
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100631d3
lea ecx, [ebp - 0x418]
call fcn.1005e842
jmp 0x100631d3

Function at 0x10064594
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
push edi
jne 0x10064600
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x100645c1
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x100645cd
xor eax, eax
jmp 0x10064603
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x100645f3
push edi
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10064600
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x10064606
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101d8f11
call fcn.10099809
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100dd1f0
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10064594
test eax, eax
je 0x10064659
cmp dword [ebp + 8], 0
je 0x10064659
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10099f06
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100dd250
call fcn.100998e1
ret 4

Function at 0x10064cb3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1024a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.1006456a
test ebx, ebx
je 0x10064db5
push esi
push ebx
call fcn.10099f06
mov esi, eax
pop ecx
test esi, esi
jbe 0x10064db4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10099920
push 0x5c
push ebx
call fcn.1009a256
add esp, 0x14
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x10064d45
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.10099f06
pop ecx
lea esi, [esi + eax + 2]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10066294
pop ecx
mov dword [edi + 0x28], eax
test eax, eax
je 0x10064db4
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
call fcn.10099920
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x10064da7
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x28]
call fcn.10099e71
push 0x101e8fb4
push dword [edi + 0x28]
call fcn.10099e43
push ebx
push dword [edi + 0x28]
call fcn.10099e43
add esp, 0x18
jmp 0x10064db4
push esi
push ebx
push dword [edi + 0x28]
call fcn.10099ebc
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100997fa
leave
ret 4

Function at 0x1006ddf9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x101d9c7c
call fcn.10099809
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.100673d6
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006de5b
call fcn.1006a89c
cmp eax, 1
jne 0x1006de5b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006d5c4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10069d08
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001fbf9
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001fbf9
mov eax, esi
call fcn.100998e1
ret 0x10
Function at 0x1006de84
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x101d9ca7
call fcn.10099809
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.100673d6
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006dee6
call fcn.1006a89c
cmp eax, 1
jne 0x1006dee6
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006d5c4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10069d08
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001fbf9
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001fbf9
mov eax, esi
call fcn.100998e1
ret 0x14

Function at 0x1006df12
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x101d9cd2
call fcn.10099809
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.100673d6
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006df74
call fcn.1006a89c
cmp eax, 1
jne 0x1006df74
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006d5c4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10069d08
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001fbf9
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001fbf9
mov eax, esi
call fcn.100998e1
ret 8

Function at 0x1007c06f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1007c0b6
call fcn.1006b4b6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1007c0b6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1007c0d2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1007bbe7
mov esi, eax
test edi, edi
je 0x1007c0d0
test ebx, ebx
je 0x1007c0d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007fe61
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101db027
call fcn.10099809
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1007fe86
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1007fecc
lea ecx, [ebp - 0x10]
call fcn.10066c0f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10066317
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001fbf9
mov eax, esi
call fcn.100998e1
ret 8

Function at 0x10089546
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x1008956a
cmp dword [edi + 0x54], 0
jne 0x1008956a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1006b4b6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10089507
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100997fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1024a460]
jne 0x10099804
repz ret
jmp fcn.100a3fdc
Function at 0x100c1864
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100a390d
and dword [ebp - 4], 0
cmp dword [0x10270438], 0
mov ebx, eax
jne 0x100c1915
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100c19c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1021100c
push edi
call esi
test eax, eax
je 0x100c19c6
push eax
call fcn.100a389b
mov dword [esp], 0x10210ffc
push edi
mov dword [0x10270438], eax
call esi
push eax
call fcn.100a389b
mov dword [esp], 0x10210fe8
push edi
mov dword [0x1027043c], eax
call esi
push eax
call fcn.100a389b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10270440], eax
call esi
push eax
call fcn.100a389b
pop ecx
mov dword [0x10270448], eax
test eax, eax
je 0x100c1915
push 0x10210fb4
push edi
call esi
push eax
call fcn.100a389b
pop ecx
mov dword [0x10270444], eax
mov eax, dword [0x10270444]
cmp eax, ebx
je 0x100c196d
cmp dword [0x10270448], ebx
je 0x100c196d
push eax
call fcn.100a3916
push dword [0x10270448]
mov esi, eax
call fcn.100a3916
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100c196d
test edi, edi
je 0x100c196d
call esi
test eax, eax
je 0x100c1964
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100c1964
test byte [ebp - 0xc], 1
jne 0x100c196d
or dword [ebp + 0x10], 0x200000
jmp 0x100c19a6
mov eax, dword [0x1027043c]
cmp eax, ebx
je 0x100c19a6
push eax
call fcn.100a3916
pop ecx
test eax, eax
je 0x100c19a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100c19a6
mov eax, dword [0x10270440]
cmp eax, ebx
je 0x100c19a6
push eax
call fcn.100a3916
pop ecx
test eax, eax
je 0x100c19a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10270438]
call fcn.100a3916
pop ecx
test eax, eax
je 0x100c19c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100c19c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100cd620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100cd66e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cd66e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x100cd673
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x100cd659
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x100cd683
test esi, esi
jne 0x100cd6a1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100cd69f
mov byte [eax + esi - 1], 0
jne 0x100cd6a8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret