joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017a40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x10017c17
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10017a75
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x10017aa1
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x10017ab3
push edi
call fcn.100b36d9
test eax, eax
pop ecx
je 0x10017ab3
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.100501eb
cmp dword [ebp - 8], 0
je 0x10017acf
push 0x100ca294
lea ecx, [ebp + 8]
call fcn.1004618f
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.100b37d1
push dword [ebp + 8]
call fcn.100100b6
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x10017bba
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.1004618f
test byte [ebp - 0x264], 0x10
jne 0x10017b65
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x10017b59
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10017ba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10017b54
inc eax
mov dword [ebp - 4], eax
jmp 0x10017ba1
call fcn.10011dd8
test eax, eax
pop ecx
je 0x10017ba1
jmp 0x10017b54
cmp word [ebp - 0x238], 0x2e
jne 0x10017b8d
cmp word [ebp - 0x236], 0
je 0x10017ba1
cmp word [ebp - 0x236], 0x2e
jne 0x10017b8d
cmp word [ebp - 0x234], 0
je 0x10017ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10017a40
test eax, eax
pop ecx
pop ecx
jne 0x10017ba1
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.10005c13
test eax, eax
jne 0x10017b16
jmp 0x10017bc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10017bc5
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.10002d8b
xor edi, edi
cmp dword [ebp - 8], edi
je 0x10017c05
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x10017bf8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10017c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x10017c02
xor eax, eax
inc eax
jmp 0x10017c02
call fcn.10011dd8
cmp eax, edi
pop ecx
je 0x10017c05
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.1003f96c
cmp word [ebx], di
jne 0x10017a72
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x1001903b
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x100e6003], 1
je 0x10019053
push str.UCallBackhWnd
call fcn.100125a9
test eax, eax
pop ecx
jne 0x10019056
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x10019091
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x10019091
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1001b089
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov ebx, 0x100e3d7c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
test byte [esp + 0x2e], 1
jne 0x1001b0b1
cmp dword [0x100e3064], esi
jne 0x1001b0b1
mov dword [0x100e3060], esi
movzx eax, byte [esp + 0x2c]
add dword [0x100e3064], 1
cmp dword [0x100e305c], esi
mov dword [esp + 0x2c], eax
jne 0x1001b0f4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x1001af8a
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, esi
mov dword [0x100e305c], eax
jne 0x1001b0f4
sub dword [0x100e3064], 1
jmp 0x1001b1e1
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp dword [esp + 0x34], 2
jne 0x1001b1b1
test esi, esi
jne 0x1001b1b1
push 0xa
pop esi
jmp 0x1001b1b1
cmp dword [esp + 0x34], 2
je 0x1001b13d
call ebp
mov esi, edi
sub esi, eax
test esi, esi
jle 0x1001b1be
cmp byte [0x100e12e4], 0
jle 0x1001b1be
push 0xa
pop eax
cmp esi, eax
ja 0x1001b14f
mov eax, esi
push 0x4ff
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x1001b1a8
cmp dword [0x100e3060], 0
jne 0x1001b1be
cmp dword [esp + 0x34], 2
je 0x1001b17c
call ebp
mov esi, edi
sub esi, eax
test esi, esi
jle 0x1001b1b1
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1001b1b1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x100e12e4], 0
jg 0x1001b162
cmp dword [0x100e3060], 0
je 0x1001b128
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100e3060]
sub dword [0x100e3064], 1
pop edi
pop ebp
jne 0x1001b1df
mov dword [0x100e3060], 0
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1001cab4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [0x100e30e4]
lea ecx, [ebp - 4]
push 0x30
call fcn.10014c18
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001cada
add eax, 4
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x24], esi
mov ecx, dword [ebp - 4]
mov dword [eax + 0x2c], ecx
push esi
lea ecx, [ebp - 8]
call fcn.10014c3e
push 0x100e2c24
push 0x10004
push dword [ebp - 4]
push 0x10016815
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x1001cb50
test esi, esi
je 0x1001cb41
lea ecx, [ebp + 0xc]
call fcn.1000f892
lea ecx, [ebp - 4]
call fcn.1000f892
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 0xffffffff
je 0x1001cb62
push 0xa
mov eax, edi
xor edx, edx
pop ecx
div ecx
lea edi, [edi + eax + 5]
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
je 0x1001cb94
cmp dword [ebp + 0x24], eax
jbe 0x1001cb8d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x28]
push edi
call fcn.10011621
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.1000f8ba
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.1003f96c
lea ecx, [ebp - 4]
call fcn.1000f8ba
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1001cd6b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x1001cd92
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.100108ab
test eax, eax
je 0x1001cd92
call fcn.1001093c
test eax, eax
mov dword [esp + 0xc], eax
jne 0x1001cd99
xor eax, eax
jmp 0x1001cea8
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x1001cdd1
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x1001cdd1
xor eax, eax
jmp 0x1001cea5
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.100150ad
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x1001cdfe
cmp dword [eax + 0xa4], ebx
jbe 0x1001cdfe
push edi
mov ecx, esi
call fcn.10010603
test eax, eax
je 0x1001cdca
push edi
mov ecx, esi
call fcn.10010725
test eax, eax
jne 0x1001ce19
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001cdca
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
test byte [eax + 0x17], 0x20
je 0x1001ce32
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
jmp 0x1001ce69
mov ebx, dword [esi]
mov ebp, dword [esi + 0xc]
push str.DllMain
mov ecx, esi
mov dword [esi], 0x200
mov dword [esi + 0xc], edi
call fcn.10010539
test eax, eax
mov dword [esi + 4], eax
jne 0x1001ce62
push str._dllMain_12
mov ecx, esi
call fcn.10010539
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [esi + 0xc], ebp
xor ebx, ebx
mov eax, dword [esi + 4]
xor ebp, ebp
inc ebp
cmp eax, ebx
je 0x1001ce97
push ebx
push ebp
push edi
call eax
test eax, eax
jne 0x1001ce97
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x1001cdca
mov dword [esi + 0xc], edi
mov dword [esi], ebp
mov dword [0x100e2fa8], esi
mov eax, dword [esi + 0xc]
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x10022f3c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x100ca648
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.100501eb
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.10012c4c
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.10046141
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.100102be
push edi
lea ecx, [ebp - 0x38]
call fcn.10010ada
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x100ca520
mov dword [ebp - 0x24], eax
call fcn.100457c2
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.10044a42
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.100227f9
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x100e3d7c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x38]
call fcn.10036b70
lea ecx, [ebp + 8]
call fcn.1003f96c
lea ecx, [ebp + 0x68]
call fcn.1003f96c
lea ecx, [ebp + 0x64]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x1002ade0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.10046141
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.1004618f
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x1002ae3b
mov esi, 0x100c7974
test bl, 0x10
je 0x1002ae45
mov esi, str.reboot
test bl, 2
je 0x1002ae4f
mov esi, str.logout
test bl, 4
je 0x1002ae59
mov esi, str.suspend
test bl, 8
je 0x1002ae63
mov esi, str.hiber
test bl, 0x40
je 0x1002ae6d
mov esi, str.poweroff
test bl, bl
jns 0x1002ae76
mov esi, str.lock
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.1004618f
push 0x100c7598
lea ecx, [ebp - 4]
call fcn.1004618f
cmp dword [ebp + 8], 0
je 0x1002aea8
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.1004618f
push dword [ebp - 4]
mov esi, 0x100e3108
mov ecx, esi
call fcn.1002335d
push str.__._25INDATA
lea ecx, [ebp - 8]
call fcn.100501eb
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.1004618f
test bl, 0x70
je 0x1002aee2
push dword [ebp - 8]
mov ecx, esi
call fcn.1002335d
lea ecx, [ebp - 8]
call fcn.1003f96c
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002cdeb
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
jmp 0x1002ce06
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x1002cdfe
lea eax, [ebp + 8]
push eax
call fcn.10008e60
mov al, byte [ebp - 1]
mov byte [0x100e3002], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
lea edi, [ebp - 3]
lea esi, [ebp - 4]
lea eax, [ebp + 8]
mov byte [ebp - 3], 0x2a
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
mov byte [ebp - 2], bl
call fcn.1001b1f0
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x1002cf2f
mov esi, 0x100e3d7c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x1002ce7f
cmp dword [0x100e2fb8], ebx
je 0x1002ce7f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002cf8b
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x100e12d1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x100e2ff5], 1
jne 0x1002cea9
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x1002cea9
mov byte [0x100e12d1], bl
mov edi, dword [ebp - 0x10]
push 0x100e2c24
push 0x10000
push edi
push 0x10027d2a
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
cmp word [edi], bx
jne 0x1002ceee
cmp byte [0x100e2ff5], bl
je 0x1002cf0a
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x30d40
jae 0x1002cf0a
push ebx
push 1
push ebx
mov ecx, 0x100e3108
call fcn.10011621
jmp 0x1002cee1
cmp byte [ebp - 2], bl
je 0x1002cf8b
test byte [ebp - 4], 0x40
je 0x1002cf8b
jmp 0x1002cf25
push ebx
push ebx
push 1
mov ecx, 0x100e3108
call fcn.10011621
cmp dword [0x100e2fb8], ebx
jne 0x1002cf17
jmp 0x1002cf8b
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 5]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.10013188
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x1002cf87
mov esi, 0x100e2fb8
mov dword [ebp - 0x10], 0xfa0
jmp 0x1002cf87
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x1002cf8b
push ebx
push ebx
push 0xa
mov ecx, 0x100e3108
call fcn.10011621
cmp dword [esi], ebx
jne 0x1002cf6f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1003fafe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1003fb27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10040bf5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 4
pop edi
push edi
push 0x20019
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10040b3a
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x10040c4b
test esi, esi
jne 0x10040c53
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
jne 0x10040c53
test edi, edi
je 0x10040c53
xor edi, edi
jmp 0x10040c02
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10040c59
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x10040c88
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.10040b3a
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x10040cb2
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x10040caf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x10040cb4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x10040ce0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.10040b3a
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x10040cff
push esi
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x10040cfc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x10041429
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100e32f8], 0
push edi
mov edi, ecx
jne 0x10041648
and dword [ebp - 4], 0
push esi
push 4
push 2
push str.SeDebugPrivilege
call fcn.10013699
lea eax, [ebp - 4]
push eax
push 0x100e32f4
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e32fc
push esi
push str.shutdown
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3300
push esi
push str.closesocket
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3304
push esi
push str.connect
call fcn.10040e9d
add esp, 0x4c
lea eax, [ebp - 4]
push eax
push 0x100e3308
push esi
push str.send
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e330c
push esi
push str.select
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3310
push esi
push str.recvfrom
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3314
push esi
push str.sendto
call fcn.10040e9d
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x100e3318
push esi
push str.bind
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e331c
push esi
push str.listen
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3320
push esi
push str.accept
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3328
push esi
push str.getsockname
call fcn.10040e9d
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x100e3324
push esi
push str.getpeername
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e332c
push esi
push str.ioctlsocket
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3330
push esi
push str.setsockopt
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3334
push esi
push str.ntohl
call fcn.10040e9d
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x100e3338
push esi
push str.htonl
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e333c
push esi
push str.htons
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3340
push esi
push str.inet_addr
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3344
push esi
push str.gethostbyname
call fcn.10040e9d
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x100e3348
push esi
push str.inet_ntoa
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e334c
push esi
push str.WSAGetLastError
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e3350
push esi
push str.__WSAFDIsSet
call fcn.10040e9d
lea eax, [ebp - 4]
push eax
push 0x100e32f8
push esi
push str.socket
call fcn.10040e9d
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x1004278e
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor eax, eax
mov byte [ebp - 0x24], 0
and dword [ebp - 8], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0xc
call fcn.1004276f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x1004280a
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
jmp 0x100427fe
test ebx, ebx
jle 0x10042808
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10042808
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x10042808
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x100427de
pop esi
pop ebx
push 0
push 0x80
push 3
lea eax, [ebp - 0x10]
push eax
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
leave
ret

Function at 0x1004288a
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
ret

Function at 0x10042924
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100e3438]
mov edx, dword [0x100e343c]
mov ecx, eax
or ecx, edx
jne 0x10042a42
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.100b40f0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov ecx, 0x50000
cmp ecx, eax
sbb cl, cl
inc cl
mov byte [0x100e1355], cl
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0x124]
cdq
or esi, eax
movzx eax, word [ebp - 0x120]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or ecx, edx
or esi, eax
cmp ecx, 6
mov dword [0x100e3438], esi
mov dword [0x100e343c], ecx
jb 0x10042a3c
ja 0x100429cb
cmp esi, 0x20000
jb 0x10042a3c
lea eax, [ebp - 0x10]
push eax
push 0x100e342c
push str.NTDLL.DLL
push str.RtlGetNtVersionNumbers
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.10040e9d
mov eax, dword [0x100e342c]
add esp, 0x10
cmp eax, edi
je 0x10042a09
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
mov eax, dword [ebp - 8]
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0xc]
cdq
or esi, eax
movzx eax, word [ebp - 4]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or ecx, edx
mov dword [0x100e3438], esi
mov dword [0x100e343c], ecx
pop edi
mov eax, esi
mov edx, ecx
pop esi
leave
ret