joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40547a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054b5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4055f1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560e
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405611
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405684
test edi, edi
jne 0x40564b
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40567e

Function at 0x405688
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4056f9
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4056e8
cmp dword [ebp + 0x14], 1
je 0x4056ea
cmp dword [ebp + 0x14], 2
je 0x4056ea
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405942
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.004057a1
push esi
call fcn.00405580
mov edi, eax
test edi, edi
jne 0x405963
xor eax, eax
jmp 0x4059bb
push edi
call fcn.004057c3
test byte [0x423c28], 0x80
je 0x40597c
mov al, byte [edi]
test al, al
je 0x40595f
cmp al, 0x5c
je 0x40595f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x40599c
push esi
call fcn.0040585d
test eax, eax
je 0x405996
test byte [eax], 0x10
je 0x4059c0
push esi
call fcn.0040591b
push esi
call ebx
cmp eax, edi
jg 0x405987
push esi
call fcn.004058ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059ba
Function at 0x405c70
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405884
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c94
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dcd
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
je 0x405cd8
push 1
push 0
push esi
call fcn.00405611
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dd3
cmp eax, edi
jg 0x405dd3
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dd3
cmp eax, edi
jg 0x405dd3
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a1a
push 4
push 0xc0000000
push esi
call fcn.00405611
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405dcd
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dc6
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dc6
cmp edi, dword [esp + 0x18]
jne 0x405dc6
push str._Rename__r_n
push esi
call fcn.004059c4
test eax, eax
jne 0x405dda
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057a1
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.004055cd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4075c4
add eax, 0xa
push eax
call fcn.004059c4
test eax, eax
je 0x405d91
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e01
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405df6
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d93
Function at 0x405e09
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405942
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405e3e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x405fd0
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e59
test eax, eax
je 0x405f7b
test cl, 2
je 0x405f7b
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.004057a1
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405e7c
push str..
push esi
call edi
jmp 0x405e82
push ebx
call fcn.0040591b
cmp byte [ebx], 0
jne 0x405e90
cmp byte [0x422358], 0x5c
jne 0x405e98
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405f70
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040553f
cmp byte [eax], 0
je 0x405edb
cmp byte [ebp - 0x18], 0
je 0x405edb
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ef1
mov al, byte [esi + 1]
test al, al
je 0x405f4f
cmp al, 0x2e
jne 0x405ef1
cmp byte [esi + 2], 0
je 0x405f4f
push esi
push edi
call fcn.004057a1
test byte [ebp - 0x148], 0x10
je 0x405f16
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f4f
push dword [ebp + 0xc]
push ebx
call fcn.00405e09
jmp 0x405f4f
push ebx
call fcn.004055f1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f47
test byte [ebp + 0xc], 4
je 0x405f3f
push ebx
push 0xfffffffffffffff1
call fcn.00404845
push 0
push ebx
call fcn.00405c70
jmp 0x405f4f
inc dword [0x423c88]
jmp 0x405f4f
push ebx
push 0xfffffffffffffff2
call fcn.00404845
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ebd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f7a
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405fcf
cmp dword [ebp - 8], esi
je 0x405fbf
push ebx
call fcn.0040585d
test eax, eax
je 0x405fcf
push ebx
call fcn.004058ee
push ebx
call fcn.004055f1
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405fc7
test byte [ebp + 0xc], 4
je 0x405fbf
push ebx
push 0xfffffffffffffff1
call fcn.00404845
push esi
push ebx
call fcn.00405c70
jmp 0x405fcf
inc dword [0x423c88]
jmp 0x405fcf
push ebx
push 0xffffffffffffffe5
call fcn.00404845
pop esi
pop ebx
leave
ret 8
Function at 0x405fd5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x406010
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fe9
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x405fe4
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40603d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40601e
not eax
pop ebp
ret 0xc
Function at 0x10032ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1116788]
jne 0x10d3517
test ecx, 0xffff0000
jne 0x10d3517
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1131ad8], eax
mov dword [0x1131ad4], ecx
mov dword [0x1131ad0], edx
mov dword [0x1131acc], ebx
mov dword [0x1131ac8], esi
mov dword [0x1131ac4], edi
mov word [0x1131af0], ss
mov word [0x1131ae4], cs
mov word [0x1131ac0], ds
mov word [0x1131abc], es
mov word [0x1131ab8], fs
mov word [0x1131ab4], gs
pushfd
pop dword [0x1131ae8]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1131aec], ecx
mov dword [0x1131ae0], eax
mov dword [0x1131a28], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x11319e4], eax
mov eax, dword [0x1116788]
mov dword [ebp - 4], eax
mov eax, dword [0x1119fa4]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x1131adc], ecx
mov dword [0x11319d8], 0xc0000409
mov dword [0x11319dc], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10d35f8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x1008967
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp byte [0x1116a2c], 0
mov eax, dword [0x1116788]
mov dword [ebp - 4], eax
jne 0x1014da7
mov ecx, dword [ebp - 4]
mov al, byte [0x1116a2d]
call fcn.010032ea
leave
ret
lea eax, [ebp - 0x118]
push eax
mov byte [0x1116a2c], 0
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1014dee
cmp dword [ebp - 0x114], 5
ja 0x1014de2
jne 0x1014dee
cmp dword [ebp - 0x110], 1
jb 0x1014dee
mov byte [0x1116a2d], 1
jmp 0x1008987
mov byte [0x1116a2d], 0
jmp 0x1008987
Function at 0x100f6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10ee0e3
call fcn.01003440
sub esp, 0x114
mov eax, dword [0x1116788]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0xec], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
xor esi, esi
inc esi
push 0x100f8c8
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
lea eax, [ebp - 0xe4]
push eax
push 0x20019
push ebx
push 0x100f878
push 0x80000002
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10570ae
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xf0]
push eax
push ebx
push 0x100f868
push dword [ebp - 0xe4]
mov dword [ebp - 0xfc], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f7f7
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x100f7f7
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd8]
push 0x100f850
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x18
cmp eax, 2
jl 0x100f7f7
cmp dword [ebp - 0xe0], 6
jb 0x100f7ea
mov dword [ebp - 0xdc], esi
cmp dword [ebp - 0xe0], 5
je 0x1057096
push dword [ebp - 0xe4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xdc], ebx
je 0x10570ae
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], bl
mov dword [ebp - 0xec], esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010032ea
leave
ret 4
cmp dword [ebp - 0xe8], 0x32
jb 0x100f7f7
mov dword [ebp - 0xdc], esi
jmp 0x100f7f7
push 0x3466
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.mmcbase.DLL_class_mmcerror::SC___stdcall_ScFromMMC_long_int_]
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 2
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
jmp 0x100f81e
Function at 0x1011b7e
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0x419
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret 4
Function at 0x1015113
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10652b6
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x10151e4
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
inc edx
dec edi
jne 0x1015141
pop edi
test eax, eax
je 0x10151fe
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1015208]
inc edx
dec eax
jne 0x10151e8
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
jmp 0x1015204

Function at 0x1015bdf
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1116788]
push edi
push 0x25
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
pop edi
jb 0x1015c36
xor eax, eax
inc eax
cmp dword [ebp - 0x90], eax
jb 0x1015c36
mov ecx, dword [ebp - 4]
call fcn.010032ea
leave
ret
xor eax, eax
jmp 0x1015c2c

Function at 0x1015c3f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x111a324]
cmp eax, 0xffffffff
je 0x1066b26
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1066b2c
dec dword [esi + 4]
cmp dword [esi + 4], 0
jle 0x1066b33
xor eax, eax
pop esi
ret
mov eax, 0x80004005
ret
mov eax, 0x8004000a
pop esi
ret
push dword [esi]
call dword [sym.imp.DUSER.dll_DeleteHandle]
cmp byte [esi + 0x14], 0
je 0x1066b47
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esi + 0x10]
call fcn.010e76c2
push dword [esi + 0xc]
call fcn.0101b4b9
mov ecx, dword [esi + 8]
call fcn.010e76c2
push esi
call fcn.0103600d
push 0
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1015c6c
Function at 0x1018251
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x10182ab
push eax
call fcn.0103600d
jmp 0x10182ab
mov eax, dword [esi + 8]
test eax, eax
je 0x10182ab
push eax
call fcn.0101b4b9
jmp 0x10182ab
mov eax, dword [esi + 8]
test eax, eax
je 0x10182ab
push eax
call fcn.0101b4b9
jmp 0x10182ab
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x101825f
dec eax
mov dword [ecx + 4], eax
je 0x1018260
ret
mov edi, edi
push ebx
push esi
push edi
push dword [0x111a324]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 8]
movsx eax, word [esi + 2]
sub eax, 4
je 0x1015dfe
dec eax
je 0x1015dd2
sub eax, 5
je 0x10503a8
dec eax
je 0x10670d5
dec eax
je 0x1015de8
dec eax
je 0x1015dd2
dec eax
je 0x10182b7
push esi
mov ecx, ebx
call fcn.0101669e
pop edi
pop esi
pop ebx
ret
xor eax, eax
mov ax, word [esi + 8]
test ax, ax
je 0x10182ab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x10182ab
mov eax, dword [esi + 8]
test eax, eax
je 0x10182ab
push eax
call fcn.010503c3
jmp 0x10182ab
xor eax, eax
mov al, byte [esi + 0x14]
and eax, 3
sub eax, 0
je 0x1067117
dec eax
je 0x10670f4
dec eax
jne 0x10182ab
mov edi, dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x10670fa
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 8]
test eax, eax
je 0x1067104
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10182ab
push eax
call edi
jmp 0x10182ab
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10670fa
Function at 0x101ae9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x101aed1
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 7
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x101af57
Capabilities:
Get thread local storage value

Disassembly:
test byte [ebp + 0xa], 1
je 0x101af3d
test byte [esi + 0x65], 4
jne 0x10672b0
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.01015a79
mov edi, eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.01015a9e
mov ecx, dword [edi]
mov edx, dword [eax]
lea ebx, [edx + ecx]
cmp ebx, ecx
jl 0x101af29
mov eax, dword [eax + 4]
mov ebx, dword [edi + 4]
add ebx, eax
cmp ebx, dword [edi + 4]
mov dword [ebp + 0xc], eax
jl 0x101af29
push 0xb
push eax
push edx
push dword [edi + 4]
push ecx
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetRect]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x101af35
call fcn.01018251
mov ecx, dword [ebp - 8]
call fcn.01018251
test byte [ebp + 0xa], 2
je 0x101afcf
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_InvalidateGadget]
jmp 0x101afcf
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x111a324]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [ebp + 0xc], 0
mov ebx, dword [eax + 0xc]
jne 0x101aed5
test byte [ebp + 8], 5
je 0x101afc9
mov eax, esi
mov edi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101af93
cmp dword [edi + 0x44], 0xfffffffe
jne 0x101af84
test byte [ebp + 8], 1
je 0x101afaa
or byte [esi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push edi
call fcn.0101cbbf
test byte [ebp + 8], 4
je 0x101afc9
mov eax, dword [esi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [esi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push edi
call fcn.0101cbbf
test byte [ebp + 8], 0xa
jne 0x101afd6
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, esi
xor edi, edi
mov esi, eax
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101afef
test edi, edi
jne 0x101afe9
mov edi, eax
cmp dword [esi + 0x44], 0xfffffffe
jne 0x101afda
test edi, edi
je 0x101afcf
test byte [ebp + 8], 2
jne 0x10672e1
test byte [ebp + 8], 8
je 0x101afcf
mov eax, dword [edi + 0x68]
and eax, 0xfffffffd
push 1
or eax, 1
push 1
mov dword [edi + 0x68], eax
mov ecx, dword [ebx + 0x10]
push esi
call fcn.0101cbbf
jmp 0x101afcf
mov ecx, esi
call fcn.010e38e9
mov ebx, eax
mov edi, 0xf000
test edi, ebx
je 0x101aee5
call fcn.010e37c4
test al, al
je 0x101aee5
push edi
push ebx
mov ecx, esi
call fcn.010e2438
jmp 0x101af3d
or byte [edi + 0x66], 2
mov ecx, dword [ebx + 0x14]
push 1
push 1
push esi
call fcn.0101cbbf
jmp 0x101affd
Function at 0x101e303
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x10f454e
call fcn.01003440
sub esp, 0x20
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
xor esi, esi
inc esi
push 0x101e3e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 5
mov ebx, 0x10434e8
jae 0x1059af3
mov ecx, dword [ebp - 0x14]
push esi
call fcn.010434a2
mov ecx, dword [ebp - 0x14]
mov edi, eax
call fcn.010105f9
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x1059b06
call sub.MFC42u.dll_CFrameWnd::GetActiveView
cmp eax, edi
sete byte [ebp - 0xd]
cmp dword [ebp + 0xc], edi
je 0x101e3b5
test edi, edi
jne 0x1051da4
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1051dac
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call fcn.0103359b
mov ecx, dword [ebp - 0x14]
call fcn.0101e41f
test edi, edi
jne 0x1051dc3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov ebx, dword [edi + 0x20]
jmp 0x101e387
push 0
mov ecx, edi
call sub.MFC42u.dll_CWnd::ShowWindow
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x101e396
cmp byte [ebp - 0xd], 0
je 0x101e3b5
jmp 0x1059b3f
push ebx
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f4dc
jmp 0x101e34d
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x1059b1f
push ebx
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f4dc
push 0x8000ffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
jmp 0x101e3c2
mov ecx, dword [ebp + 0xc]
push 5
call sub.MFC42u.dll_CWnd::ShowWindow
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call sub.MFC42u.dll_CFrameWnd::SetActiveView
jmp 0x101e3b5