joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aa00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov esi, ecx
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 8]
mov dword [ebp - 0x824], eax
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41aa45
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edi, [ebp - 0x810]
push 0x400
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x1c], 8
mov ecx, dword [ebp - 0x824]
jb 0x41aa70
mov ecx, dword [ebp - 0x824]
mov ecx, dword [ecx]
lea edx, [ebp - 0x818]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41aad6
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ecx, [ebp - 0x820]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41aad6
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x820]
sub eax, ecx
mov ebx, 0
js 0x41aafd
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x41aac7
mov edx, dword [esi + 4]
mov ebx, dword [edx + 8]
sub ebx, ecx
sub ebx, dword [edx]
add ebx, eax
cmp byte [esi + 0x20], 0
mov eax, dword [esi + 4]
je 0x41aada
sub dword [eax], ebx
jmp 0x41aadd
xor ebx, ebx
jmp 0x41aafd
add dword [eax + 8], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov edi, dword [eax + 4]
sub ecx, edi
mov eax, dword [eax + 8]
sub eax, edx
push 1
push ecx
push eax
push edi
push edx
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x41ab25
mov eax, dword [ebp - 0x824]
mov eax, dword [eax]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
invalid

Function at 0x41ab70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx], 0
lea ebx, [ebp - 0x1c]
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x41abb6
push ebx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x41abb6
xor ebx, ebx
jmp 0x41abf4
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ecx], 4
lea edx, [ebp - 0x20]
lea edi, [ebp - 0x14]
push ecx
push edx
push edi
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [edi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x41abeb
cmp dword [ebp - 0x20], 1
mov eax, dword [ebp + 8]
sete byte [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4063f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47b2ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.004075db
push 4
mov dword [esp + 0x18], 0
call fcn.004085c8
mov edi, eax
add esp, 4
test edi, edi
je 0x406464
push ebx
call fcn.004073d6
mov dword [edi], eax
call fcn.00407195
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040759c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406458
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004075c4
pop ebx
jmp 0x406466
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40919b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e354]
jne 0x4091a5
repz ret
jmp fcn.0040d42c
Function at 0x411742
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47e354]
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.0040b99f
and dword [ebp - 0x14], 0
cmp dword [0x483aa0], 0
mov dword [ebp - 0x18], eax
jne 0x4117f5
push 0x403e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41189d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e5c
push ebx
call edi
test eax, eax
je 0x41189d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x483aa0], eax
call edi
push eax
call esi
push 0x403e38
push ebx
mov dword [0x483aa4], eax
call edi
push eax
call esi
push 0x403e1c
push ebx
mov dword [0x483aa8], eax
call edi
push eax
call esi
mov dword [0x483ab0], eax
test eax, eax
je 0x4117f5
push 0x403e04
push ebx
call edi
push eax
call esi
mov dword [0x483aac], eax
mov eax, dword [0x483aac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41184e
cmp dword [0x483ab0], ecx
je 0x41184e
push eax
call esi
push dword [0x483ab0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41184e
test ebx, ebx
je 0x41184e
call edi
test eax, eax
je 0x411845
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411845
test byte [ebp - 8], 1
jne 0x41184e
or dword [ebp + 0x10], 0x200000
jmp 0x411881
mov eax, dword [0x483aa4]
cmp eax, dword [ebp - 0x18]
je 0x411881
push eax
call esi
test eax, eax
je 0x411881
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411881
mov eax, dword [0x483aa8]
cmp eax, dword [ebp - 0x18]
je 0x411881
push eax
call esi
test eax, eax
je 0x411881
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x483aa0]
call esi
test eax, eax
je 0x41189d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41189f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040919b
leave
ret
Function at 0x475f80
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x807804]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x80776c]
cmp eax, ebx
jbe 0x47617e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x475fb6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x807804], 0x1c
jne 0x475fcd
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x47f2d0]
mov eax, dword [0x47f2d4]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x47f2d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x47f2dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x476012
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x807770], ebx
mov eax, dword [esp + 0x18]
add dword [0x807770], eax
mov eax, dword [0x807770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x807804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x4760e7
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x807778], 0xff6b3619
mov dword [0x80777c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x476010
cmp dword [0x807804], 0x8d4
jne 0x476137
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x807804], 0x17
jne 0x47616d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x48]
push eax
push 0x403f78
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x475fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x10001074
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100010ab
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x100010ab
test eax, eax
je 0x100010ab
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x100010ab
push eax
push dword [ebp + 0xc]
call fcn.100074d8
pop ecx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
pop ebp
ret

Function at 0x10003331
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push 0x50
xor ebx, ebx
push ebx
mov esi, 0x10094128
push esi
call fcn.10040850
add esp, 0xc
cmp dword [0x10092cd8], ebx
jne 0x10003355
xor eax, eax
jmp 0x1000340b
test byte [0x1013dc2c], 1
je 0x1000334e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x10092ce4]
add ecx, 0xbb8
cmp ecx, eax
jbe 0x1000337e
xor eax, eax
jmp 0x1000340a
call edi
push 0x50
push ebx
push esi
mov dword [0x10092ce4], eax
call fcn.10040850
add esp, 0xc
push dword [0x1016e468]
push 0x1000316a
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi]
cmp eax, ebx
je 0x100033bd
cmp byte [0x102bc548], bl
jne 0x100033c8
push ebx
push 0x10003230
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
add esi, 4
cmp esi, 0x10094150
jl 0x100033a2
push dword [0x10092ce0]
push str.tc_OLonSend
push str.SOFTWARETrojanCut_tc_Env
push reloc.WS2_32.dll_bind
call fcn.1003e718
add esp, 0x10
cmp dword [0x101434ac], ebx
je 0x10003407
push dword [0x10092ce0]
push dword [0x10092ce4]
push str.isUISend___d___d_
push ebx
call fcn.1003dfed
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x10008977
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
xor ecx, ecx
xor edi, edi
mov dword [ebp + 8], edx
cmp byte [edx], al
je 0x10008a0a
push ebx
mov edx, dword [ebp + 8]
movsx edx, byte [edx]
mov ebx, dword [edx*4 + 0x10072068]
cmp ebx, 0xffffffff
je 0x100089fe
mov edx, edi
sub edx, 0
je 0x100089f9
dec edx
je 0x100089de
dec edx
je 0x100089c4
dec edx
jne 0x100089fc
cmp eax, dword [ebp + 0x10]
jge 0x100089c0
shl cl, 6
or cl, bl
mov byte [eax + esi], cl
inc eax
xor edi, edi
jmp 0x100089fc
cmp eax, dword [ebp + 0x10]
jge 0x100089da
mov edx, ebx
sar edx, 2
and dl, 0xf
shl cl, 4
or dl, cl
mov byte [eax + esi], dl
inc eax
push 3
jmp 0x100089f6
cmp eax, dword [ebp + 0x10]
jge 0x100089f4
mov edx, ebx
sar edx, 4
and dl, 3
shl cl, 2
or dl, cl
mov byte [eax + esi], dl
inc eax
push 2
pop edi
jmp 0x100089fc
xor edi, edi
inc edi
mov ecx, ebx
inc dword [ebp + 8]
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x10008990
pop ebx
pop edi
mov byte [eax + esi], 0
pop esi
pop ebp
ret
Function at 0x1000c3dd
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x101434ac], 0
je 0x1000c401
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.try_MyDetourCreateProcessWithDllExW_lpApplicationName__ls__lpCommandLine__ls_
push 0
call fcn.1003dfed
add esp, 0x10
push ebx
mov ebx, dword [ebp + 0x38]
push esi
push edi
test ebx, ebx
jne 0x1000c411
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp + 0x2c]
test esi, esi
jne 0x1000c423
lea esi, [ebp - 0x14]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x28]
or eax, 4
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1000c450
xor eax, eax
jmp 0x1000c50d
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], eax
test esi, esi
je 0x1000c48f
mov eax, dword [esi]
test eax, eax
je 0x1000c48f
cmp byte [0x1013eeb5], 0
je 0x1000c48f
push eax
call fcn.100291b0
pop ecx
test eax, eax
jne 0x1000c48f
push 0xffffffffffffffff
push dword [esi]
call dword [0x10170374]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
jmp 0x1000c449
push 1
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.100541c0
test eax, eax
jne 0x1000c4b0
push ebx
push dword [ebp - 4]
push dword [esi + 8]
call fcn.10055d20
test eax, eax
je 0x1000c474
cmp dword [0x101434ac], 0
je 0x1000c4d1
push dword [esi + 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1005eda8
push 0
call fcn.1003dfed
add esp, 0x14
test byte [ebp + 0x1c], 4
je 0x1000c4eb
mov eax, dword [esi + 4]
mov dword [0x1013ee60], eax
mov dword [0x1013ee64], 0x20394853
jmp 0x1000c4f4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x14]
cmp esi, eax
jne 0x1000c50a
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x34
Function at 0x1000c514
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x101434ac], 0
je 0x1000c538
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.try_MyDetourCreateProcessWithDllExA_lpApplicationName__s__lpCommandLine__s_
push 0
call fcn.1003dfed
add esp, 0x10
push ebx
mov ebx, dword [ebp + 0x38]
push esi
push edi
test ebx, ebx
jne 0x1000c548
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [ebp + 0x2c]
test esi, esi
jne 0x1000c55a
lea esi, [ebp - 0x14]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x28]
or eax, 4
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1000c587
xor eax, eax
jmp 0x1000c644
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], eax
test esi, esi
je 0x1000c5c6
mov eax, dword [esi]
test eax, eax
je 0x1000c5c6
cmp byte [0x1013eeb5], 0
je 0x1000c5c6
push eax
call fcn.100291b0
pop ecx
test eax, eax
jne 0x1000c5c6
push 0xffffffffffffffff
push dword [esi]
call dword [0x10170374]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
jmp 0x1000c580
push 1
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.100541c0
test eax, eax
jne 0x1000c5e7
push ebx
push dword [ebp - 4]
push dword [esi + 8]
call fcn.100556b0
test eax, eax
je 0x1000c5ab
cmp dword [0x101434ac], 0
je 0x1000c608
push dword [esi + 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Success_MyDetourCreateProcessWithDllExA_lpApplicationName__s__lpCommandLine__s__hThread__08x_
push 0
call fcn.1003dfed
add esp, 0x14
test byte [ebp + 0x1c], 4
je 0x1000c622
mov eax, dword [esi + 4]
mov dword [0x1013ee60], eax
mov dword [0x1013ee64], 0x20394853
jmp 0x1000c62b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x14]
cmp esi, eax
jne 0x1000c641
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x34
Function at 0x1000c97a
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 0
push 4
call dword [0x10072d28]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c9be
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x1000c9ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x10], eax
je 0x1000c9c8
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000c9a5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret
push esi
push edi
push dword [ebp - 0x10]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x1000c9ed
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call esi
push ebx
call esi
pop edi
pop esi
jmp 0x1000c9c5

Function at 0x1000c9f4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10074bac]
xor eax, ebp
mov dword [ebp - 4], eax
push str.C:CodewareCOMPRESS.
call fcn.1003d654
pop ecx
test eax, eax
jne 0x1000ca52
push str.C:Program_FilesIntergraph_CAS.
call fcn.1003d654
pop ecx
test eax, eax
jne 0x1000ca52
push str.C:Program_Files__x86_Intergraph_CAS.
call fcn.1003d654
pop ecx
test eax, eax
jne 0x1000ca52
push str.D:Program_FilesIntergraph_CAS.
call fcn.1003d654
pop ecx
test eax, eax
jne 0x1000ca52
push str.D:Program_Files__x86_Intergraph_CAS.
call fcn.1003d654
pop ecx
test eax, eax
je 0x1000ca9c
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.10040850
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call fcn.1003d776
add esp, 0x18
push str.explorer.EXE
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1000ca9c
xor eax, eax
jmp 0x1000caad
push 1
push str.SeDebugPrivilege
call fcn.10029d2d
pop ecx
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004083f
leave
ret
Function at 0x1000cab9
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x10074bac]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
cmp dword [0x10141c2c], 0
mov eax, dword [ebp + 0x1d8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1e0]
push ebx
mov ebx, dword [ebp + 0x1d4]
push esi
mov esi, dword [ebp + 0x1dc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1e4]
push edi
mov dword [ebp - 0x40], eax
je 0x1000cb5b
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10040850
mov eax, dword [ebp + 0x1e8]
and dword [ebp - 0x60], 0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0x500
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], str.runas
mov dword [ebp - 0x70], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x60]
jmp 0x1000cc13
lea edx, [ebp - 0x38]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000cb62
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000cb71
sub eax, edx
cmp eax, 2
jbe 0x1000cbc9
cmp byte [esi + 1], 0x3a
jne 0x1000cbc9
push 0x22
push esi
call fcn.10040730
pop ecx
pop ecx
test eax, eax
jne 0x1000cbc9
push 0x20
push esi
call fcn.10040730
pop ecx
pop ecx
test eax, eax
je 0x1000cbc9
lea edx, [ebp - 0x37]
mov byte [ebp - 0x38], 0x22
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000cbac
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000cbba
mov esi, 0x1005e680
movsw word es:[edi], word [esi]
push dword [ebp + 0x1e8]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
push ebx
call esi
xor edi, edi
cmp eax, 0x20
jg 0x1000cc13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1e8]
lea eax, [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
push ebx
call esi
inc edi
cmp edi, 5
jl 0x1000cbe7
mov ecx, dword [ebp + 0x1c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004083f
add ebp, 0x1cc
leave
ret
Function at 0x1000cc2b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 0x3c
push eax
call fcn.100074a5
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x20], 0
cmp dword [0x10141c2c], 0
pop ecx
pop ecx
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x8540
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], str.runas
jne 0x1000cc71
mov dword [ebp - 0x34], str.open
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
leave
ret