joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c6840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122ac8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
push dword [esi + 0x80]
lea eax, [ebp - 0x10]
push str.UnpackUtils_ReadIni_PeContainer_s_
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.UnpackUtils
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100c68bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100c68d9
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push ecx
mov ecx, esp
push str.Main
call fcn.10023fc0
push ecx
mov ecx, esi
call fcn.100361b0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x100c6942
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100c692e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
mov edx, esi
mov ecx, ebx
call fcn.100c3100
mov bl, al
add esp, 4
test bl, bl
jne 0x100c69df
push 0
push ecx
mov ecx, esp
mov esi, 0x5c
call fcn.100446a0
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.10045200
add esp, 4
mov esi, eax
push str.Cameyo
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push str.Not_a_correct__s_package
push eax
call fcn.10044f30
add esp, 0xc
push dword [esi]
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x14]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100c69b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100c69d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100c69fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ca150
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10022690
mov ecx, eax
test ecx, ecx
je 0x100ca2ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0xc], eax
call fcn.10022690
mov ecx, eax
test ecx, ecx
je 0x100ca2f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x10], eax
call fcn.10022690
mov ecx, eax
test ecx, ecx
je 0x100ca303
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x14], eax
call fcn.10022690
mov ecx, eax
test ecx, ecx
je 0x100ca30d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
xorps xmm0, xmm0
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x4c]
push 0xf8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x450], 0
mov dword [ebx + 0x44c], 0
mov dword [ebx + 0x458], 0
mov dword [ebx + 0x454], 0
mov dword [ebx + 0x38], 0
push 0
movdqu xmmword [ebx + 0x24], xmm0
push eax
mov dword [ebx + 0x34], 0
call fcn.101078f0
push 0x108
lea eax, [ebx + 0x144]
push 0
push eax
call fcn.101078f0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
push str.NtCreateSection
push 0x1013a6ac
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtMapViewOfSection
push 0x1013a6ac
mov dword [ebx + 0x45c], eax
call edi
push eax
call esi
push str.NtUnmapViewOfSection
push 0x1013a6ac
mov dword [ebx + 0x460], eax
call edi
push eax
call esi
push str.NtQuerySection
push 0x1013a6ac
mov dword [ebx + 0x464], eax
call edi
push eax
call esi
push 0x10148704
push 0x1013a6ac
mov dword [ebx + 0x468], eax
call edi
push eax
call esi
push 0x10148710
push 0x1013a6ac
mov dword [ebx + 0x46c], eax
call edi
push eax
call esi
pop edi
mov dword [ebx + 0x470], eax
mov eax, ebx
pop esi
pop ebx
ret
push 0x80004005
call fcn.100223c0
push 0x80004005
call fcn.100223c0
push 0x80004005
call fcn.100223c0
push 0x80004005
call fcn.100223c0
int3
Function at 0x100ca530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edx, dword [eax + 4]
xor edi, edi
mov eax, dword [eax]
cmp eax, edx
je 0x100ca553
mov ecx, dword [eax]
inc edi
add eax, 4
mov ecx, dword [ecx - 0xc]
add edi, ecx
cmp eax, edx
jne 0x100ca544
mov esi, dword [ebp + 8]
test esi, esi
je 0x100ca59e
cmp dword [ebp + 0xc], 0
jne 0x100ca5a6
xor eax, eax
cmp byte [eax + esi], 0
jne 0x100ca56f
cmp byte [eax + esi + 1], 0
je 0x100ca572
inc eax
jmp 0x100ca562
add eax, edi
lea eax, [eax*2 + 4]
push eax
call fcn.10104809
add esp, 4
mov ebx, eax
xor edi, edi
mov al, byte [edi + esi]
test al, al
jne 0x100ca595
cmp byte [edi + esi + 1], al
je 0x100ca5ed
cbw
mov word [ebx + edi*2], ax
inc edi
jmp 0x100ca588
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp word [esi + ecx*2], 0
jne 0x100ca5b7
cmp word [esi + ecx*2 + 2], 0
je 0x100ca5ba
inc ecx
jmp 0x100ca5a8
lea eax, [ecx + edi]
lea eax, [eax*2 + 4]
push eax
call fcn.10104809
mov ebx, eax
add esp, 4
mov ecx, ebx
xor edi, edi
sub ecx, esi
movzx eax, word [esi]
test ax, ax
jne 0x100ca5e3
cmp word [esi + 2], ax
je 0x100ca5ed
mov word [ecx + esi], ax
inc edi
add esi, 2
jmp 0x100ca5d5
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ebx + edi*2], ax
inc edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x100ca629
mov edi, edi
mov esi, dword [eax]
lea ecx, [ebx + edi*2]
movzx edx, word [esi]
lea esi, [esi + 2]
mov word [ecx], dx
lea ecx, [ecx + 2]
test dx, dx
jne 0x100ca605
mov ecx, dword [eax]
add eax, 4
mov ecx, dword [ecx - 0xc]
inc ecx
add edi, ecx
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 4]
jne 0x100ca600
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100d8930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 0x1c]
push esi
lea esi, [ecx + 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [esi + 4], eax
mov edx, dword [ecx + 0x18]
mov dword [ebp - 8], 0
test edx, 0xffffff80
jbe 0x100d8a2d
push ebx
push edi
xor edi, edi
mov eax, 0x80
mov dword [ebp - 0xc], edi
mov ebx, dword [ecx + 4]
sub edx, edi
cmp edx, 0x80
cmova edx, eax
add ebx, edi
or edi, 0xffffffff
cmp dword [0x10172294], 0
jne 0x100d8986
call fcn.1002d040
xor ecx, ecx
test edx, edx
jle 0x100d89aa
lea esp, [esp]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x101722a0]
cmp ecx, edx
jl 0x100d8990
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
not edi
mov dword [ebp - 4], edi
cmp ecx, eax
jae 0x100d89e6
mov ecx, dword [esi]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x100d89e6
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x100d89d6
push ecx
mov ecx, esi
call fcn.1003a000
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100d89fc
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x100d89fc
cmp eax, dword [esi + 8]
jne 0x100d89f3
push ecx
mov ecx, esi
call fcn.1003a000
mov eax, dword [esi + 4]
test eax, eax
je 0x100d89fc
mov dword [eax], edi
mov edx, dword [ebp - 0x10]
add dword [esi + 4], 4
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc ecx
mov edx, dword [edx + 0x18]
sub edi, 0xffffff80
mov eax, edx
mov dword [ebp - 8], ecx
shr eax, 7
cmp ecx, eax
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp - 0x10]
mov eax, 0x80
jb 0x100d8965
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100e4120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1016f5d0]
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
mov ebx, eax
je 0x100e4159
test bl, 1
je 0x100e4167
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 8]
push 0
call fcn.100e8600
add esp, 4
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x100e41d0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x100e41c2
cmp dword [ebp + 8], ecx
je 0x100e41c2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [edi + 0x3c]
call esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100e41d2
mov esi, eax
push ebx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100e4c50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10124edb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1016e750]
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
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x21c], 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x218]
push 0x104
push eax
xor esi, esi
push esi
push dword [ebp - 0x21c]
call ebx
or edi, 0xffffffff
test eax, eax
jne 0x100e4d40
jmp 0x100e4cd0
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push str.VirtReg_Init:__s___d_:__s
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 2
mov ecx, 0x10153c1c
mov edx, dword [ebp - 0x220]
call fcn.10043b30
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e4d26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x100e4cd0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e4d60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100e4d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10103392
mov esp, ebp
pop ebp
ret
Function at 0x100e7580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov dword [esp + 0x10], 0
mov ebx, edx
lea esi, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], ebx
push str.VirtualizeKeyCounts
call fcn.10023fc0
mov edx, esi
lea ecx, [esp + 0x20]
call fcn.1004a240
add esp, 4
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [esp + 0x14], eax
and ecx, 0xfffffffe
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x100e762a
push 0xa30
call fcn.10104809
add esp, 4
mov ebx, eax
xor esi, esi
lea eax, [esp + 0xc]
push eax
push 0xa30
push ebx
push 0
push esi
push edi
call fcn.100e5600
test eax, eax
je 0x100e7618
cmp eax, reloc.OLEAUT32.dll_SysFreeString
je 0x100e7618
cmp eax, 0xc0000004
jne 0x100e761b
inc esi
jmp 0x100e75f2
mov eax, dword [esp + 0x10]
push ebx
mov dword [eax], esi
call fcn.10103713
add esp, 4
cmp dword [ebp + 8], 0
je 0x100e7678
push 0xa30
call fcn.10104809
add esp, 4
mov ebx, eax
xor esi, esi
lea eax, [esp + 0xc]
push eax
push 0xa30
push ebx
push 0
push esi
push edi
call fcn.100e6400
test eax, eax
je 0x100e7667
cmp eax, reloc.OLEAUT32.dll_SysFreeString
je 0x100e7667
cmp eax, 0xc0000004
jne 0x100e766a
inc esi
jmp 0x100e7641
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
call fcn.10103713
add esp, 4
push dword [esp + 0x14]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.1004a450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ecd20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100ecd88
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ecda2
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x100ecd66
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10103392
mov esp, ebp
pop ebp
ret
Function at 0x100ed4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101255ae
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.10115e40
mov eax, dword [0x1016e750]
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 ebx, edx
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
push 0x800
push eax
mov word [ebp - 0x1018], ax
lea eax, [ebp - 0x1016]
push eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1020], 0
call fcn.101078f0
xor eax, eax
push 0x800
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.101078f0
add esp, 0x18
mov dword [ebp - 0x1028], 0x401
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100ed573
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1024], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x101c]
push eax
push esi
mov esi, dword [sym.imp.ole32.dll_StringFromCLSID]
call esi
lea eax, [ebp - 0x1020]
push eax
push edi
call esi
push dword [ebp - 0x101c]
lea eax, [ebp - 0x814]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x814]
push eax
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov eax, str.in_process
test bl, 0x14
je 0x100ed5f7
mov eax, str.out_of_process
push eax
push ebx
push dword [ebp - 0x1020]
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x101c]
lea eax, [ebp - 0x1024]
push dword [ebp + 8]
push dword [ebp + 0x10]
push str._.8x__s:_clsid_s___s__riid_s_dwClsContext_08X___s_
push eax
call fcn.10036910
mov ebx, dword [ebp - 0x1024]
add esp, 0x24
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.10024750
lea esi, [eax + 0x10]
mov dword [ebp - 0x1030], esi
mov edx, esi
mov byte [ebp - 4], 2
mov ecx, str.hkCOM
call fcn.10043b30
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ed66f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x101c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x1020]
call esi
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ed6ab
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100ed6cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10103392
mov esp, ebp
pop ebp
ret
Function at 0x100ef6d0
Capabilities:
Check mutex on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
cmp dword [0x10175174], 0
je 0x100ef800
mov eax, 0x10175178
xor edx, edx
cmp byte [eax], 0
jne 0x100ef721
inc edx
inc eax
cmp edx, 0x10
jb 0x100ef710
jmp 0x100ef7fd
mov eax, dword [0x10175178]
xor eax, dword [0x10175180]
xor eax, dword [0x10175184]
xor eax, dword [0x1017517c]
push eax
lea eax, [ebp - 0x10]
push str.CEK:_inheriting_to_child:__x
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.hkCreateProcess
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ef784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x10175960]
test eax, eax
jne 0x100ef79b
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10175960], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x1017595c], 0
jne 0x100ef7e8
push 0x6f
push 0x10
mov edx, 0x10175178
lea ecx, [ebp - 0x18]
call fcn.10049980
add esp, 8
push dword [eax]
push 0x10147720
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100ef7e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x10175960]
inc dword [0x1017595c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
cmp ecx, 0xffffffff
jne 0x100ef829
call dword [0x101733d0]
jmp 0x100ef830
push ecx
call dword [0x101733d4]
cmp dword [0x10175174], 0
mov esi, eax
je 0x100ef86a
push 0xffffffffffffffff
push dword [0x10175960]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
dec dword [0x1017595c]
jne 0x100ef85e
push 0
push 0x10147720
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [0x10175960]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x100f42b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126008
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100f42fa
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._exec___s___s
push eax
call fcn.10036910
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str.Elevation:__s
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 4
mov ecx, str.hkShellExec
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100f4366
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, ebx
or ecx, 1
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 1
push dword [ebp + 0x10]
push esi
push dword [0x101750d8]
push 0x1013e418
push 0
call dword [0x10173434]
push ebx
push dword [0x1016f5d0]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f43cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f43ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f440f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100f4430
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f8500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f008
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea eax, [ebp - 0x10]
push str._FatalDllLoad:__s
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.DllMain
mov edx, dword [ebp - 0x10]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f856d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]