joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x401f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 1
mov edi, edi
call fcn.004018d0
test al, al
je 0x4020b2
push 0x1388
call edi
jmp 0x4020c3
call fcn.00401ab0
mov ecx, esi
imul ecx, ecx, 0x1388
push ecx
call edi
inc esi
cmp esi, 0xc
jl 0x4020a0
jmp 0x402099

Function at 0x402921
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410024]
jne 0x40292b
repz ret
jmp fcn.00403041

Function at 0x406f1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403c75
and dword [ebp - 0x14], 0
cmp dword [0x411ad8], 0
mov dword [ebp - 0x18], eax
jne 0x406fcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407077
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407077
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ad8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411adc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411ae0], eax
call edi
push eax
call esi
mov dword [0x411ae8], eax
test eax, eax
je 0x406fcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411ae4], eax
mov eax, dword [0x411ae4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407028
cmp dword [0x411ae8], ecx
je 0x407028
push eax
call esi
push dword [0x411ae8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407028
test ebx, ebx
je 0x407028
call edi
test eax, eax
je 0x40701f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40701f
test byte [ebp - 8], 1
jne 0x407028
or dword [ebp + 0x10], 0x200000
jmp 0x40705b
mov eax, dword [0x411adc]
cmp eax, dword [ebp - 0x18]
je 0x40705b
push eax
call esi
test eax, eax
je 0x40705b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40705b
mov eax, dword [0x411ae0]
cmp eax, dword [ebp - 0x18]
je 0x40705b
push eax
call esi
test eax, eax
je 0x40705b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ad8]
call esi
test eax, eax
je 0x407077
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407079
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402921
leave
ret
Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa
Function at 0x401300
Capabilities:
Connect pipe

Disassembly:
push dword [ecx + 0x10]
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
ret

Function at 0x401310
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x401325
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp + 8], 3
cmp ebx, 1
jne 0x40139f
push esi
push ebx
push ebx
push esi
mov dword [ebp + 8], 0x40000003
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40136d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_event:__d_n
call fcn.004a47a5
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.004a46ec
mov esi, eax
add esp, 4
test esi, esi
je 0x40138b
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
jmp 0x40138d
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x10], ebx
mov ebx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0xc
push eax
push 1
push str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
mov dword [ebp - 4], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
push 0
call fcn.0049e2e0
add esp, 4
lea ecx, [ebp - 0xc]
xor edx, edx
cmp eax, 8
cmovle ecx, edx
push ecx
push 0x1388
push 0x200
push 0x200
push 0xff
push edx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x401419
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe_failed_with__d._n
call fcn.004a47a5
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x428
call fcn.004a46ec
add esp, 4
test eax, eax
je 0x401364
push esi
push ebx
push edi
push dword [ebp + 8]
mov ecx, eax
call fcn.004011f0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push 0x200
push 0
lea edi, [esi + 0x18]
push edi
call fcn.004a4860
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x401492
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401492
push eax
push dword [esi + 0x10]
mov ecx, 0x200
cmp dword [ebp + 8], ecx
cmovbe ecx, dword [ebp + 8]
push ecx
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4014ae
pop ebp
ret 8
push 0
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
push edx
push dword [ebp + 0xc]
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
pop ebp
ret 8
Function at 0x4021e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40221e
cmp dword [esi + 8], 0
jne 0x40221e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push esi
push 0x402000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
setne cl
mov dword [esi + 8], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404620
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push 0x4dbe54
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x404642
mov dword [edi + 4], eax
mov ecx, edi
call fcn.00404d20
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SynCR_Init
push eax
call esi
push str.SynCR_SetParam
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.SynCR_GetParam
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.SynCR_Recog
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.SynCR_CleanUp
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 8]
pop esi
test eax, eax
je 0x404691
call eax
mov dword [edi + 4], eax
cmp dword [edi + 8], 0
je 0x404637
cmp dword [edi + 0xc], 0
je 0x404637
cmp dword [edi + 0x10], 0
je 0x404637
cmp dword [edi + 0x14], 0
je 0x404637
cmp dword [edi + 0x18], 0
je 0x404637
cmp dword [edi + 4], 0
je 0x404637
mov eax, 1
pop edi
ret
Function at 0x406280
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d671b
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
push edi
mov edi, dword [ebp + 0x10]
and ecx, 1
cmp dword [esi + 0x124], edi
je 0x40647e
cmp edi, 0xc
jne 0x4062d8
push dword [ebp + 8]
mov ecx, esi
call fcn.00406490
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
ja 0x40647e
test ecx, ecx
je 0x4062ed
lea eax, [edi + 4]
add eax, eax
cmp dword [esi + eax*8], 0
jne 0x4062f8
cmp dword [esi + edi*4 + 8], 0
je 0x40647e
test ecx, ecx
je 0x4063aa
mov edx, dword [esi + 0x10c]
mov dword [ebp + 0xc], edx
test edx, edx
je 0x406344
mov eax, dword [esi + 0x110]
mov ecx, edi
add ecx, ecx
cmp eax, dword [esi + ecx*8 + 0x3c]
je 0x406344
mov ecx, edx
call fcn.00448dc0
push dword [ebp + 0xc]
call fcn.004a46e7
xorps xmm0, xmm0
mov dword [esi + 0x10c], 0
add esp, 4
movdqu xmmword [esi + 0x114], xmm0
cmp dword [esi + 0x10c], 0
jne 0x4063aa
push 0x2c
call fcn.004a46ec
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x40638d
push 0x88
push SysReAllocString
lea eax, [edi + 4]
add eax, eax
push 0x4dc09c
push dword [esi + eax*8]
push dword [0x516880]
push 0
call fcn.00448bb0
jmp 0x40638f
xor eax, eax
mov dword [esi + 0x10c], eax
mov eax, edi
add eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + eax*8 + 0x3c]
mov dword [esi + 0x110], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x124], edi
call fcn.0045fc40
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00406550
mov ecx, dword [esi + 0x10c]
test ecx, ecx
je 0x4063f0
push 1
call fcn.00448e50
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi], 0
je 0x40647e
mov eax, dword [ebp + 0x14]
xor ecx, ecx
test eax, eax
je 0x40643b
push ecx
push ecx
mov ecx, eax
call fcn.0047bba0
test al, 1
je 0x406439
mov ecx, dword [ebp + 0x14]
push 0
push 0
call fcn.0047bb40
test al, 4
je 0x406432
mov ecx, dword [ebp + 0x14]
push 0
push 0
call fcn.0047bb00
test eax, 0x2000000
jne 0x406439
mov ecx, 1
jmp 0x40643b
xor ecx, ecx
test ecx, ecx
mov edx, 3
mov eax, 8
cmovne eax, edx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x38], 0
push dword [esi + edi*4 + 8]
jne 0x406478
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
mov dword [esi + 0x38], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4065d2
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x4065b2
mov edx, dword [edi + 0x124]
push esi
mov esi, dword [ebp + 8]
add edx, edx
push 0
mov eax, dword [edi + edx*8 + 0x48]
add eax, dword [esi + 4]
push eax
mov eax, dword [edi + edx*8 + 0x44]
add eax, dword [esi]
push eax
call fcn.00448de0
mov eax, dword [esi]
mov dword [edi + 0x114], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x118], eax
mov eax, dword [esi]
inc eax
mov dword [edi + 0x11c], eax
mov eax, dword [esi + 4]
inc eax
pop esi
mov dword [edi + 0x120], eax
pop edi
pop ebp
ret 4
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push 0
push 1
push 1
push dword [eax + 4]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop ebp
ret 4
Function at 0x408bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408c05
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408c44
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408c40
lea ebx, [ebx]
cmp esi, edx
jae 0x408c44
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408c30
cmp esi, edx
jb 0x408c49
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a6a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], 0
call fcn.0040b520
cmp word [eax], 0
je 0x40a6fd
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x20
movdqu xmmword [ebp - 0x24], xmm0
call fcn.0040b520
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a6fd
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x515ab4]
test al, 1
jne 0x40a71b
or eax, 1
mov dword [0x515ab4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x515ab0], eax
jmp 0x40a720
mov eax, dword [0x515ab0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40a740
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push dword [0x515ab0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push edi
push 0x4dbbc8
push 0x15
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a771
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, 0xffffffff
je 0x40a77d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e370
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], 0
call fcn.0040b520
cmp word [eax], 0
je 0x40e3cd
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x20
movdqu xmmword [ebp - 0x24], xmm0
call fcn.0040b520
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e3cd
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x515adc]
test al, 1
jne 0x40e3eb
or eax, 1
mov dword [0x515adc], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x515ad8], eax
jmp 0x40e3f0
mov eax, dword [0x515ad8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40e410
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push dword [0x515ad8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push edi
push 0x4dc544
push 0x15
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e441
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, 0xffffffff
je 0x40e44d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e460
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], 0
call fcn.0040b520
cmp word [eax], 0
je 0x40e4bd
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x20
movdqu xmmword [ebp - 0x24], xmm0
call fcn.0040b520
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e4bd
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x515ae4]
test al, 1
jne 0x40e4db
or eax, 1
mov dword [0x515ae4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x515ae0], eax
jmp 0x40e4e0
mov eax, dword [0x515ae0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40e500
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push dword [0x515ae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push edi
push 0x4de02c
push 0x15
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e531
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, 0xffffffff
je 0x40e53d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e550
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], 0
call fcn.0040b520
cmp word [eax], 0
je 0x40e5ad
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x20
movdqu xmmword [ebp - 0x24], xmm0
call fcn.0040b520
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e5ad
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x515ad4]
test al, 1
jne 0x40e5cb
or eax, 1
mov dword [0x515ad4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x515ad0], eax
jmp 0x40e5d0
mov eax, dword [0x515ad0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40e5f0
push eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push dword [0x515ad0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push edi
push 0x4dec68
push 0x15
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e621
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, 0xffffffff
je 0x40e62d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xab4]
test ecx, ecx
je 0x4154a3
pop ebp
jmp fcn.00453300
pop ebp
ret 0x10

Function at 0x416e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebx], 0
mov dword [esi], 0
mov edi, dword [ecx + 0xe2c]
test edi, edi
jle 0x416edf
cmp edi, 3
jge 0x416e70
cmp dword [ecx + 0xe30], 1
jne 0x416e70
mov eax, dword [ecx + 0xb84]
sub eax, dword [ecx + 0xb7c]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebx], eax
mov eax, dword [ecx + 0xb88]
sub eax, dword [ecx + 0xb80]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
cmp dword [ecx + 0xe30], 1
mov dword [ebp - 8], ebx
jne 0x416e83
add edi, 0xfffffffe
jmp 0x416e84
dec edi
mov dword [ebp - 4], edi
mov esi, edi
test edi, edi
jle 0x416ec8
lea ecx, [ecx + edi*8]
add ecx, 0xb74
xor edi, edi
jmp 0x416ea0
mov eax, dword [ecx + 8]
lea ecx, [ecx - 8]
sub eax, dword [ecx + 8]
dec esi
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
cdq
xor eax, edx
sub eax, edx
add edi, eax
test esi, esi
jg 0x416ea0
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp + 8]
mov eax, ebx
div edi
xor edx, edx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
div edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8