joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417098
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 0x41726f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4170cd
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 0x4170f9
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x41710b
push edi
call fcn.004a96f0
test eax, eax
pop ecx
je 0x41710b
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.0044cf2d
cmp dword [ebp - 8], 0
je 0x417127
push 0x4c0104
lea ecx, [ebp + 8]
call fcn.0044420d
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004a97e8
push dword [ebp + 8]
call fcn.0040fd5a
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 0x417212
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0044420d
test byte [ebp - 0x264], 0x10
jne 0x4171bd
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x4171b1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4171f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4171ac
inc eax
mov dword [ebp - 4], eax
jmp 0x4171f9
call fcn.004117ff
test eax, eax
pop ecx
je 0x4171f9
jmp 0x4171ac
cmp word [ebp - 0x238], 0x2e
jne 0x4171e5
cmp word [ebp - 0x236], 0
je 0x4171f9
cmp word [ebp - 0x236], 0x2e
jne 0x4171e5
cmp word [ebp - 0x234], 0
je 0x4171f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417098
test eax, eax
pop ecx
pop ecx
jne 0x4171f9
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405715
test eax, eax
jne 0x41716e
jmp 0x417220
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41721d
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402cd4
xor edi, edi
cmp dword [ebp - 8], edi
je 0x41725d
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x417250
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41725d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x41725a
xor eax, eax
inc eax
jmp 0x41725a
call fcn.004117ff
cmp eax, edi
pop ecx
je 0x41725d
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0043dd41
cmp word [ebx], di
jne 0x4170ca
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x418655
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4db003], 1
je 0x41866d
push str.UCallBackhWnd
call fcn.00411fd0
test eax, eax
pop ecx
jne 0x418670
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 0x4186ab
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 0x4186ab
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4191bf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
jne 0x4191ec
inc edi
inc edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp + 8], edi
call fcn.0040f4e0
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0x10]
call fcn.004441bf
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0x10]
push 2
pop eax
mov dword [ebp - 8], ebx
lea ebx, [ebx + esi*2]
mov dword [ebp - 0xc], eax
jne 0x4192bc
and dword [ebp + 8], 0
push 0x2c
add edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x41924f
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
jne 0x419252
mov esi, dword [ebp + 8]
push edi
call fcn.00412ce4
pop ecx
push ebx
push 0x324
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x4192b4
cmp word [ebx], si
jb 0x4192a9
push dword [ebp + 8]
mov edi, dword [ebp - 8]
push ebx
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.004a96f0
add esp, 0x14
test eax, eax
je 0x4192a9
push 0x4c0104
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
push edi
call fcn.004190fa
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x41926a
jmp 0x419327
push edi
call fcn.00412ce4
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.004a96f0
test eax, eax
pop ecx
pop ecx
je 0x4192ed
push esi
lea ecx, [ebp + 8]
call fcn.0044cff1
push 0x4c0104
lea ecx, [ebp + 8]
call fcn.0044420d
mov esi, dword [ebp + 8]
push esi
push 0x4c0368
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040fd5a
push esi
call fcn.004a96f0
add esp, 0x14
test eax, eax
je 0x41931f
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004190fa
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp + 8]
call fcn.0043dd41
lea ecx, [ebp - 0x10]
call fcn.0043dd41
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bbae
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4d8d1c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x41bbd7
cmp dword [0x4d803c], ebx
jne 0x41bbd7
mov dword [0x4d8038], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4d803c], 1
cmp dword [0x4d8034], ebx
mov dword [esp + 0x30], eax
jne 0x41bc1c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x41baaf
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4d8034], eax
jne 0x41bc1c
sub dword [0x4d803c], 1
xor esi, esi
jmp 0x41bd0d
push ebp
push edi
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 esi, 0x4e20
jb 0x41bc44
push 1
call fcn.0043faf8
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41bcda
cmp esi, ebx
jne 0x41bcda
push 0xa
pop esi
jmp 0x41bcda
cmp dword [esp + 0x34], 2
je 0x41bc6d
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41bce6
cmp byte [0x4d62d4], bl
jle 0x41bce6
push 0xa
pop eax
cmp esi, eax
ja 0x41bc7e
mov eax, esi
push 0x4ff
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41bcd2
cmp dword [0x4d8038], ebx
jne 0x41bce6
cmp dword [esp + 0x34], 2
je 0x41bca8
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41bcda
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41bcda
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 [0x4d62d4], bl
jg 0x41bc8f
cmp dword [0x4d8038], ebx
je 0x41bc5c
push 0x4d8d1c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4d8038]
sub dword [0x4d803c], 1
pop ebp
jne 0x41bd06
mov dword [0x4d8038], ebx
mov esi, eax
mov edi, 0x4d8d1c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41cf3e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4d81ec], eax
call fcn.0040fae4
call fcn.00404022
call fcn.00413efb
xor ebx, ebx
mov esi, 0x4d80e0
push ebx
mov ecx, esi
call fcn.00410764
call fcn.00405c3c
mov edi, 0x4d8d1c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4d7d38]
or eax, dword [0x4d7d3c]
jne 0x41cf9e
push 0x4d7d38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4d7d40
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4d8014
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x385c
call fcn.00413000
push 0xd6fd2
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x4c07f2
mov ecx, esi
call fcn.004438ac
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.004438ac
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.0044cf2d
push dword [0x4d60f0]
lea ecx, [ebp + 0x68]
call fcn.0044420d
push dword [ebp + 0x68]
mov ecx, esi
push 0x4c07c8
call fcn.004438ac
push 0x4c07c4
push 0x4c07b4
mov ecx, esi
call fcn.004438fc
push ebx
push 0x3869
call fcn.00413000
call fcn.00412e5e
push ebx
push 0x386b
call fcn.00413000
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp dword [0x4d7c7c], ebx
mov dword [0x4d7f98], eax
jne 0x41d070
mov dword [0x4d7c7c], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4d62ac], eax
call fcn.0043e6d9
push str.WM_TaskbarRestart
push dword [0x4d8244]
mov esi, 0x4d80e0
push esi
call fcn.0044673c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
push str.__PID
call edi
push eax
push esi
call fcn.0044673c
add esp, 0xc
call edi
push eax
call fcn.00404dff
mov dword [esp], str.__PPID
push eax
push esi
call fcn.0044673c
push str.__HINST
push dword [0x4d7f98]
push esi
call fcn.0044673c
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4c0748
push eax
push esi
mov dword [0x4d7e68], eax
call fcn.0044673c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3874
push ebx
push eax
call fcn.00413000
movzx eax, word [0x4db018]
push str.SYSCODEPAGE
push eax
push esi
call fcn.0044673c
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.004441bf
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4c03bc
call fcn.004438fc
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.004438fc
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.004438fc
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.004438fc
call fcn.00413010
lea ecx, [ebp + 0x6c]
call fcn.0043dd41
lea ecx, [ebp + 0x68]
call fcn.0043dd41
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x41db24
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x41db4b
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00410535
test eax, eax
je 0x41db4b
call fcn.004105c6
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41db52
xor eax, eax
jmp 0x41dc61
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 0x41db8a
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41db8a
xor eax, eax
jmp 0x41dc5e
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00414a65
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41dbb7
cmp dword [eax + 0xa4], ebx
jbe 0x41dbb7
push edi
mov ecx, esi
call fcn.0041028d
test eax, eax
je 0x41db83
push edi
mov ecx, esi
call fcn.004103af
test eax, eax
jne 0x41dbd2
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41db83
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
test byte [eax + 0x17], 0x20
je 0x41dbeb
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
jmp 0x41dc22
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.004101c3
test eax, eax
mov dword [esi + 4], eax
jne 0x41dc1b
push str._dllMain_12
mov ecx, esi
call fcn.004101c3
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 0x41dc50
push ebx
push ebp
push edi
call eax
test eax, eax
jne 0x41dc50
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 0x41db83
mov dword [esi + 0xc], edi
mov dword [esi], ebp
mov dword [0x4d7f80], esi
mov eax, dword [esi + 0xc]
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x422bed
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 0x4c04e4
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.0044cf2d
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.00412673
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.004441bf
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.0040ff62
push edi
lea ecx, [ebp - 0x38]
call fcn.00410764
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4c03bc
mov dword [ebp - 0x24], eax
call fcn.004438ac
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.00442958
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.004224aa
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4d8d1c
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.00435590
lea ecx, [ebp + 8]
call fcn.0043dd41
lea ecx, [ebp + 0x68]
call fcn.0043dd41
lea ecx, [ebp + 0x64]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x429ddf
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.004441bf
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.0044420d
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x429e3a
mov esi, 0x4bd884
test bl, 0x10
je 0x429e44
mov esi, str.reboot
test bl, 2
je 0x429e4e
mov esi, str.logout
test bl, 4
je 0x429e58
mov esi, str.suspend
test bl, 8
je 0x429e62
mov esi, str.hiber
test bl, 0x40
je 0x429e6c
mov esi, str.poweroff
test bl, bl
jns 0x429e75
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.0044420d
push 0x4bd4ac
lea ecx, [ebp - 4]
call fcn.0044420d
cmp dword [ebp + 8], 0
je 0x429ea7
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044420d
push dword [ebp - 4]
mov esi, 0x4d80e0
mov ecx, esi
call fcn.0042300e
push str._25INDATA
lea ecx, [ebp - 8]
call fcn.0044cf2d
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.0044420d
test bl, 0x70
je 0x429ee1
push dword [ebp - 8]
mov ecx, esi
call fcn.0042300e
lea ecx, [ebp - 8]
call fcn.0043dd41
lea ecx, [ebp - 4]
call fcn.0043dd41
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f944
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 0x42f95f
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42f957
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
mov al, byte [ebp - 1]
mov byte [0x4d7fda], 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.0041bd1d
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42fa88
mov esi, 0x4d8d1c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42f9d8
cmp dword [0x4d7f90], ebx
je 0x42f9d8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42fae4
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4d62c1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4d7fcd], 1
jne 0x42fa02
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42fa02
mov byte [0x4d62c1], bl
mov edi, dword [ebp - 0x10]
push 0x4d7c18
push 0x10000
push edi
push 0x42c1ff
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 0x42fa47
cmp byte [0x4d7fcd], bl
je 0x42fa63
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x30d40
jae 0x42fa63
push ebx
push 1
push ebx
mov ecx, 0x4d80e0
call fcn.00415bb5
jmp 0x42fa3a
cmp byte [ebp - 2], bl
je 0x42fae4
test byte [ebp - 4], 0x40
je 0x42fae4
jmp 0x42fa7e
push ebx
push ebx
push 1
mov ecx, 0x4d80e0
call fcn.00415bb5
cmp dword [0x4d7f90], ebx
jne 0x42fa70
jmp 0x42fae4
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.00412bad
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42fae0
mov esi, 0x4d7f90
mov dword [ebp - 0x10], 0xfa0
jmp 0x42fae0
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42fae4
push ebx
push ebx
push 0xa
mov ecx, 0x4d80e0
call fcn.00415bb5
cmp dword [esi], ebx
jne 0x42fac8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x43ddaa
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x43ddc7
and byte [0x4d8d74], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.004130be
add esp, 0xc
ret

Function at 0x43de4f
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 0x43de78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43ef38
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.0043ee7d
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x43ef8e
test esi, esi
jne 0x43ef96
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 0x43ef96
test edi, edi
je 0x43ef96
xor edi, edi
jmp 0x43ef45
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43ef9c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ee7d
add esp, 0x14
test eax, eax
jne 0x43efe6
push esi
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_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43efe8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ee7d
add esp, 0x14
test eax, eax
jne 0x43f025
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x43f71e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d82cc], 0
push edi
mov edi, ecx
jne 0x43f93d
and dword [ebp - 4], 0
push esi
push 4
push 2
push str.SeDebugPrivilege
call fcn.004130be
lea eax, [ebp - 4]
push eax
push 0x4d82c8
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82d0
push esi
push str.shutdown
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82d4
push esi
push str.closesocket
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82d8
push esi
push str.connect
call fcn.0043f18a
add esp, 0x4c
lea eax, [ebp - 4]
push eax
push 0x4d82dc
push esi
push str.send
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82e0
push esi
push str.select
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82e4
push esi
push str.recvfrom
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82e8
push esi
push str.sendto
call fcn.0043f18a
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4d82ec
push esi
push str.bind
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82f0
push esi
push str.listen
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82f4
push esi
push str.accept
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82fc
push esi
push str.getsockname
call fcn.0043f18a
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4d82f8
push esi
push str.getpeername
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8300
push esi
push str.ioctlsocket
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8304
push esi
push str.setsockopt
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8308
push esi
push str.ntohl
call fcn.0043f18a
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4d830c
push esi
push str.htonl
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8310
push esi
push str.htons
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8314
push esi
push str.inet_addr
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8318
push esi
push str.gethostbyname
call fcn.0043f18a
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4d831c
push esi
push str.inet_ntoa
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8320
push esi
push str.WSAGetLastError
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d8324
push esi
push str.__WSAFDIsSet
call fcn.0043f18a
lea eax, [ebp - 4]
push eax
push 0x4d82cc
push esi
push str.socket
call fcn.0043f18a
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret