joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e078
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10061276
call fcn.100454bc
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b858]
jne 0x1003e096
xor eax, eax
jmp 0x1003e1fb
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x1003e0b9
cmp dword [0x1009b850], ebx
je 0x1003e1bb
push 2
pop edi
jmp 0x1003e0d3
cmp ebx, 1
jne 0x1003e1bb
mov eax, esi
call fcn.1003e014
test al, al
je 0x1003e1bb
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.1003e036
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x1003e17e
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003e107
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x1003e133
cmp dword [ebp - 0x1c], 1
je 0x1003e130
cmp dword [ebp - 0x1c], 2
jne 0x1003e133
push 2
pop edi
mov eax, edi
call fcn.1003d80d
test eax, eax
je 0x1003e19b
push 0x1c0496
xor edi, edi
push edi
call fcn.100319b7
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b860
mov dword [eax + 0x10069528], edi
call fcn.100319b7
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.1003d924
mov edi, eax
test edi, edi
je 0x1003e0fb
jmp 0x1003e1ac
push dword [ebp - 0x10]
mov ecx, 0x1009b860
call fcn.100319b7
test edi, edi
je 0x1003e1c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003e057
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x1003e0a1
jmp 0x1003e1d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003e057
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x1003e1f1
cmp dword [ebp - 0x1c], 2
je 0x1003e1e9
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x1003e1f9
push ecx
call fcn.100319b7
jmp 0x1003e1f7
push esi
call fcn.100319b7
mov ecx, eax
mov eax, ecx
call fcn.10045594
ret 4
Function at 0x10044aee
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10066040
call fcn.100498d0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10044b7c
call fcn.1004989e
test eax, eax
jne 0x10044b12
xor eax, eax
jmp 0x10044c48
call fcn.10048c80
test eax, eax
jne 0x10044b22
call fcn.100498bc
jmp 0x10044b0b
call fcn.10049852
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a4834], eax
call fcn.100319b7
mov dword [0x1009c15c], eax
call fcn.100319b7
test eax, eax
jns 0x10044b4c
call fcn.10048959
jmp 0x10044b1b
call fcn.100319b7
test eax, eax
js 0x10044b75
call fcn.1004948a
test eax, eax
js 0x10044b75
push 0
call fcn.100319b7
pop ecx
test eax, eax
jne 0x10044b75
inc dword [0x1009c158]
jmp 0x10044c45
call fcn.10049437
jmp 0x10044b45
xor edi, edi
cmp eax, edi
jne 0x10044bdb
cmp dword [0x1009c158], edi
jle 0x10044b0b
dec dword [0x1009c158]
mov dword [ebp - 4], edi
cmp dword [0x1009c4d4], edi
jne 0x10044ba0
call fcn.100491c5
cmp dword [ebp + 0x10], edi
jne 0x10044bb4
call fcn.10049437
call fcn.10048959
call fcn.100498bc
mov dword [ebp - 4], 0xfffffffe
call fcn.10044bc7
jmp 0x10044c45
cmp eax, 2
jne 0x10044c39
call fcn.10048925
push 0x214
push 1
call fcn.100319b7
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x10044b0b
push esi
push dword [0x10099c10]
push dword [0x1009c4b4]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10044c2d
push edi
push esi
call fcn.1004899a
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x10044c45
push esi
call fcn.100319b7
pop ecx
jmp 0x10044b0b
cmp eax, 3
jne 0x10044c45
push edi
call fcn.100319b7
pop ecx
xor eax, eax
inc eax
call fcn.10049915
ret 0xc

Function at 0x10045462
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10099c08]
jne 0x10046509
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1009c280], eax
mov dword [0x1009c27c], ecx
mov dword [0x1009c278], edx
mov dword [0x1009c274], ebx
mov dword [0x1009c270], esi
mov dword [0x1009c26c], edi
mov word [0x1009c298], ss
mov word [0x1009c28c], cs
mov word [0x1009c268], ds
mov word [0x1009c264], es
mov word [0x1009c260], fs
mov word [0x1009c25c], gs
pushfd
pop dword [0x1009c290]
mov eax, dword [ebp]
mov dword [0x1009c284], eax
mov eax, dword [ebp + 4]
mov dword [0x1009c288], eax
lea eax, [ebp + 8]
mov dword [0x1009c294], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1009c1d0], 0x10001
mov eax, dword [0x1009c288]
mov dword [0x1009c184], eax
mov dword [0x1009c178], 0xc0000409
mov dword [0x1009c17c], 1
mov eax, dword [0x10099c08]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10099c0c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1009c1c8], eax
push 1
call fcn.1004d289
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10010f4c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1009c1c8], 0
jne 0x100465f5
push 1
call fcn.1004d289
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x40107f
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x4348a9
call fcn.0041f15d
mov eax, dword [0x44f98c]
mov ecx, 0x44f98c
xor esi, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push str.c__s__s__s
call fcn.004015de
mov edx, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
call fcn.00417320
add esp, 0x14
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401276
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401629
mov edi, dword [ebp - 0x10]
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x45092c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401105
cmp dword [0x45092c], esi
jne 0x401108
xor esi, esi
inc esi
lea eax, [edi - 0x10]
call fcn.00401629
mov eax, esi
call fcn.0041f235
ret

Function at 0x401659
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40167b
xor eax, eax
jmp 0x4016da
lea eax, [ebp - 0xc]
push eax
push 0x438b90
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40169b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401677
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4016cf
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x4017ce
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x434357
call fcn.0041f15d
xor ebx, ebx
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018a6
cmp edi, ebx
je 0x4018a6
push 2
lea ecx, [ebp - 0x20]
push ecx
push ebx
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [0x44f98c]
mov ecx, 0x44f98c
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._d_t__d_
lea eax, [ebp - 0x10]
call fcn.00403470
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea esi, [ebp - 0x10]
call fcn.004026a0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401870
push ebx
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
push 0x438c04
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401629
call fcn.0041f235
ret
Function at 0x401986
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x1008]
mov eax, 0x1008
call fcn.00430680
push 0xffffffffffffffff
push 0x434327
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp + 0x1004], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1010]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1014]
mov edi, 0x44f98c
mov ecx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.0040130c
xor eax, eax
push eax
push eax
mov dword [ebp - 4], ebx
push eax
inc ebx
push ebx
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x401b0b
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x41
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [0x44f98c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x438c28
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.00402737
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call fcn.004027af
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
xor edi, edi
call fcn.004026bd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040294f
push str.https:__
push eax
mov byte [ebp - 4], 3
call fcn.004027cd
mov ebx, eax
mov eax, dword [ebp - 0x1c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401629
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401629
test bl, bl
je 0x401a9f
mov edi, 0x803000
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx - 0xc]
push 0
or edi, 0x4000000
push edi
push eax
push ebx
push dword [ebp - 0x24]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x401ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401b03
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax], 0
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call fcn.00402671
cmp dword [ebp - 0x10], 0
je 0x401b03
cmp dword [ebp - 0x18], 0
jne 0x401acc
lea eax, [ebx - 0x10]
call fcn.00401629
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call edi
push esi
call edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1004]
xor ecx, ebp
call fcn.0041cb8e
add ebp, 0x1008
leave
ret
Function at 0x402346
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push 8
mov eax, 0x4348a9
call fcn.0041f15d
mov eax, dword [0x44f98c]
mov esi, 0x44f98c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x44f98c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push pe_nt_image_headers32
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401380
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040299c
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._c_timeout__t_1__del__Q__F___s_
call fcn.004015de
pop ecx
pop ecx
push edi
push edi
push dword [ebp - 0x14]
push str.cmd.exe
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402563
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x4024f9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call fcn.00401c14
pop ecx
call fcn.00402346
int3

Function at 0x403a6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403a81
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403ab6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403ab2
cmp edi, eax
jae 0x403ab6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403aa4
cmp edi, eax
jb 0x403aba
xor eax, eax
jmp 0x403ac3
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x404180
Capabilities:
Reference 114dns dns server
Reference alidns dns server

Disassembly:
push 0x44
mov eax, 0x434599
call fcn.0041f15d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
mov edi, 0x44f98c
mov ecx, edi
call fcn.0040130c
push dword [ebp + 0xc]
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x1c], esi
call fcn.00404257
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], str.114.114.114.114
mov dword [ebp - 0x24], str.223.5.5.5
xor esi, esi
mov eax, dword [0x44f98c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [ebp + esi*4 - 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.00404294
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
mov edx, ebx
call fcn.00403dc1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 2
test eax, eax
je 0x404215
test ecx, ecx
jg 0x404229
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
call fcn.00401629
inc esi
cmp esi, 2
jb 0x4041cb
jmp 0x404243
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 8]
call fcn.00404294
lea eax, [ebx - 0x10]
call fcn.00401629
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401629
mov eax, dword [ebp + 8]
call fcn.0041f235
ret
Function at 0x4069c7
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push esi
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x7c]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.0041ea30
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x406a73
cmp esi, 0xffffffff
je 0x406a73
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406a68
lea eax, [ebp - 0x5c]
push str.EXPLORER.EXE
push eax
call fcn.0041d700
pop ecx
pop ecx
test eax, eax
je 0x406a4a
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406a23
xor edi, edi
inc edi
jmp 0x406a68
push dword [ebp - 0x78]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x406a75
xor eax, eax
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cb8e
add ebp, 0x1b0
leave
ret
Function at 0x406e79
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x4348f2
call fcn.0041f1c6
lea eax, [ebp - 0x250]
xor esi, esi
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push ecx
mov eax, esp
mov dword [ebp - 0x244], esp
push str.explorer.exe
push eax
call fcn.004026bd
call fcn.00406d93
pop ecx
mov dword [ebp - 0x248], eax
cmp eax, esi
jne 0x4070ae
cmp dword [ebp - 0x250], esi
je 0x406fb1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x10000000
push esi
push esi
push str.Default
mov dword [ebp - 0x24c], eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp eax, esi
je 0x406f10
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x244], esi
push esi
push 0x442de4
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x406f66
push esi
push 0x442df4
push esi
push eax
call ebx
cmp eax, esi
je 0x406f5f
push esi
push 0x442e18
push esi
push eax
call ebx
cmp eax, esi
je 0x406f58
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x406f71
push str._fsve
jmp 0x406f6b
push str._fsde
jmp 0x406f6b
push str._fpme
call fcn.004018ac
pop ecx
cmp dword [ebp - 0x248], 4
ja 0x406f96
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x244]
cmp dword [ebp - 0x244], 0x12c
jl 0x406f1c
jmp 0x406fa1
push str._fok
call fcn.004018ac
pop ecx
cmp dword [ebp - 0x24c], esi
je 0x406fb1
push dword [ebp - 0x24c]
call edi
cmp dword [ebp - 0x248], esi
jne 0x4070ae
push str._fer
call fcn.004018ac
pop ecx
mov dword [ebp - 0x244], esi
push esi
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, esi
je 0x407087
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407080
jmp 0x407061
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x238]
mov dword [ebp - 0x24c], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp - 0x24c], esi
je 0x407061
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004026bd
push str.explorer.exe
push eax
mov dword [ebp - 4], esi
call fcn.004027cd
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
inc bl
call fcn.00401629
test bl, bl
jne 0x407074
lea eax, [ebp - 0x240]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407001
jmp 0x407080
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x248], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x248], 4
ja 0x4070ae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x244]
cmp dword [ebp - 0x244], 0x12c
jl 0x406fce
mov eax, dword [ebp - 0x248]
call fcn.0041f249
ret
Function at 0x4071ca
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x407232
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x407226
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041cb8e
leave
ret

Function at 0x40723f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x44]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040714a
test eax, eax
je 0x4072e3
cmp dword [ebp - 0x40], 6
jbe 0x4072e3
call fcn.004071ca
test eax, eax
jne 0x4072e3
push 0x208
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push ebx
push eax
call fcn.0041ea30
add esp, 0xc
lea eax, [ebp - 0x3c]
push 0x104
push eax
call fcn.0040d7db
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x3c
call fcn.0041ea30
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x74], str.runas
mov dword [ebp - 0x64], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4072e3
inc ebx
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041cb8e
add ebp, 0x1d4
leave
ret
Function at 0x4072fd
Capabilities:
Resolve dns

Disassembly:
push 0x1c
mov eax, 0x4352d0
call fcn.0041f15d
xor ebx, ebx
push str.WSHTCPIP.DLL
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x44f98c]
mov ecx, 0x44f98c
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
xor esi, esi
cmp esi, ebx
jne 0x40736d
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x68
push 5
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
call sub.DNSAPI.dll_DnsQuery_W
cmp eax, ebx
jne 0x4073ac
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4073ac
push dword [eax + 0x18]
lea eax, [ebp - 0x10]
call fcn.00402615
push 1
push dword [ebp - 0x14]
call sub.DNSAPI.dll_DnsFree
mov edi, dword [ebp - 0x10]
cmp esi, 1
jne 0x4073ac
push 5
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
push eax
call fcn.004026bd
lea eax, [ebp - 0x18]
push eax
call fcn.004076fc
add esp, 0xc
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004025d4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401629
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
jle 0x407441
push 0x2e
push edi
call fcn.0041e7ba
pop ecx
pop ecx
cmp eax, ebx
jne 0x4073c8
or eax, 0xffffffff
jmp 0x4073ca
sub eax, edi
mov ecx, eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x10]
call fcn.00409249
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004025d4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401629
mov eax, edi
push eax
call fcn.004090d6
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.004026fa
mov byte [ebp - 4], 3
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
call fcn.004175e0
mov byte [ebp - 4], 4
push dword [eax]
mov eax, edi
call fcn.00402615
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401629
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401629
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
jg 0x40744b
inc esi
cmp esi, 2
jl 0x407331
push edi
push dword [ebp + 8]
call fcn.004026fa
lea eax, [edi - 0x10]
call fcn.00401629
mov eax, dword [ebp + 8]
call fcn.0041f235
ret