joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471c60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x4a0bb4
mov ebp, dword [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, ebp
push str..PipeSysProcc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x471cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitNamedPipe_failed_with_error__d_n
call fcn.0047a8c7
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..PipeSysProcc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x471d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with_error__d_n
call fcn.0047a8c7
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov edi, str.get_active_label
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
push ecx
push str.get_active_label
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x471d71
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x100
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jle 0x471d71
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x477bd0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x340
mov ecx, 0x40
xor eax, eax
lea edx, [esp + 0x240]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x150]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x354]
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x250]
push ecx
call fcn.0047c0d3
lea edx, [esp + 0x254]
lea eax, [esp + 0x154]
push edx
push str._s.
push eax
call fcn.0047a8f8
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x150]
push ecx
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x477c8c
test byte [esp + 0x10], 0x10
jne 0x477c72
cmp byte [esp + 0x3c], 0x2e
je 0x477c72
inc ebx
inc ebp
cmp ebp, 0xa
je 0x477c8c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x477c5d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
push ecx
push 0x4914d0
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x477cd5
test byte [esp + 0x10], 0x10
je 0x477cbb
cmp byte [esp + 0x3c], 0x2e
je 0x477cbb
inc ebx
inc ebp
cmp ebp, 0xa
je 0x477cd5
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x477ca6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x358]
push str.c:endpcache
mov dword [eax], ebx
call fcn.0047c0d3
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret

Function at 0x477d10
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x477d2e
pop edi
or ax, 0xffff
pop esi
ret
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x477d53
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
or ax, 0xffff
pop esi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov ax, 1
pop esi
ret
Function at 0x4780e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 1
mov byte [esi], 0
mov byte [esp + 0x1c], 0
call fcn.0047a8f8
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47817a
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.DImagePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47817a
lea edx, [esp + 0x110]
push edx
jmp 0x47817f
push 0x4a1640
push 0x48b2f4
push esi
call fcn.0047a8f8
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x20c
ret

Function at 0x4781b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 1
mov byte [esi], 0
mov byte [esp + 0x1c], 0
call fcn.0047a8f8
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x478256
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.DisplayName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x478256
lea edx, [esp + 0x110]
push edx
push 0x48b2f4
push esi
call fcn.0047a8f8
add esp, 0xc
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x20c
ret
Function at 0x478270
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x150]
push str.c:endpcache
rep stosd dword es:[edi], eax
xor ebx, ebx
call fcn.0047c0d3
mov edi, str.c:endpcache.reg
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47849c
mov ebp, dword [esp + 0x254]
lea eax, [esp + 0x3c]
push str.services.reg
push eax
xor esi, esi
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x478304
mov esi, 1
lea ecx, [esp + 0x3c]
push str.services_new.reg
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x47831f
mov esi, 1
lea edx, [esp + 0x3c]
push str.wsock2_new.reg
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x47833a
mov esi, 1
lea eax, [esp + 0x3c]
push str.winsock2_new.reg
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x478355
mov esi, 1
lea ecx, [esp + 0x3c]
push str.wsock2.reg
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x478370
mov esi, 1
lea edx, [esp + 0x3c]
push str.wsock2_xp.reg
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x47838b
mov esi, 1
lea eax, [esp + 0x3c]
push str.wsock2_2000.reg
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x4783a6
mov esi, 1
lea ecx, [esp + 0x3c]
push str.wsock2_2003.reg
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x4783c1
mov esi, 1
lea edx, [esp + 0x3c]
push str.wsock2_vista.reg
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x4783dc
mov esi, 1
lea eax, [esp + 0x3c]
push str.winsock.reg
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x4783f7
mov esi, 1
lea ecx, [esp + 0x3c]
push str.tcpip.reg
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x478412
mov esi, 1
lea edx, [esp + 0x3c]
push str.network.reg
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x47842d
mov esi, 1
lea eax, [esp + 0x3c]
push str.safeboot.reg
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x478448
mov esi, 1
lea ecx, [esp + 0x3c]
push str.recover.reg
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x47847e
test esi, esi
jne 0x47847e
lea edx, [esp + 0x3c]
push 0x80
push edx
push ebp
call fcn.0047b120
add esp, 0xc
inc ebx
add ebp, 0x40
cmp ebx, 0x7f
je 0x47849c
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4782e7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x478e20
Capabilities:
Resume thread
Suspend thread
Terminate thread

Disassembly:
sub esp, 0x2d4
mov eax, dword [esp + 0x2d8]
push esi
push edi
push eax
push 0
push 0x4b
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x478e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenThread_failed_error__d__n
call fcn.0047a8c7
add esp, 8
xor al, al
pop edi
pop esi
add esp, 0x2d4
ret
mov eax, dword [0x65cd6c]
test eax, eax
jne 0x478ea9
push str.NtQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x65cd6c], eax
jne 0x478ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_failed_error__d__n
jmp 0x478f9a
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 4
push edx
push 9
push esi
call eax
test eax, eax
je 0x478ed0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x2d4
ret
mov edi, dword [esp + 0x2e4]
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x14]
cmp ecx, eax
jb 0x478f29
mov edx, dword [edi + 0x18]
add edx, eax
cmp ecx, edx
ja 0x478f29
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x478fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateThread_failed_error__d__n
call fcn.0047a8c7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x2d4
ret
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x478fbb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x478f6a
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x2d4
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0xc8]
cmp ecx, eax
jb 0x478fb4
mov edx, dword [edi + 0x18]
add edx, eax
cmp ecx, edx
ja 0x478fb4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x478fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateThread_failed_error__d__n
call fcn.0047a8c7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x2d4
ret
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
add esp, 0x2d4
ret
Function at 0x479050
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4841f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x240]
mov dword [ebp - 0x244], edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push edi
push 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x11], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
jne 0x4790bd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x224
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4791c6
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push ecx
push esi
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x47910b
lea edx, [ebp - 0x124]
push edx
push esi
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x4791b1
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.00478fd0
add esp, 8
mov byte [ebp - 0x11], al
test al, al
je 0x4791b1
push edi
push 0
push 0x40a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4791ae
push str.FreeLibrary
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4791a4
mov ecx, dword [ebp - 0x230]
push 0
push 0
push ecx
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x4791a4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47919d
mov eax, dword [ebp - 0x18]
cmp eax, 0x32
jae 0x4791a4
inc eax
mov dword [ebp - 0x18], eax
jmp 0x479157
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x244]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4790dc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4791f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x479223
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken___failed__Error___d_SeDebugPrivilege_is_not_available._n
call fcn.0047a8c7
add esp, 8
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x47925c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue___failed__Error___d_SeDebugPrivilege_is_not_available._n
call fcn.0047a8c7
mov edx, dword [esp + 8]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4792ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges___failed__Error___d_SeDebugPrivilege_is_not_available._n
call fcn.0047a8c7
add esp, 8
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret

Function at 0x4792c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x138], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
mov bl, 1
call fcn.004791f0
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x479327
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x479368
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.00479050
add esp, 8
mov bl, al
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x479342
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x65cd70]
test eax, eax
je 0x47938b
push eax
call fcn.0047ae3e
add esp, 4
mov dword [0x65cd70], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x480dfe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x480e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048110e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x480e3f
test byte [esp + 8], 2
je 0x480e3f
mov dword [0x65cdc0], 0xd
mov dword [0x65cdc4], 5
jmp 0x480e1a
xor eax, eax
ret
Function at 0x481aee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a2330
cmp edx, dword [eax]
je 0x481b10
add eax, 8
inc ecx
cmp eax, 0x4a23c0
jl 0x481b01
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a2330]
jne 0x481c3e
mov eax, dword [0x65ce30]
cmp eax, 1
je 0x481c18
test eax, eax
jne 0x481b41
cmp dword [0x4a1b74], 1
je 0x481c18
cmp edx, 0xfc
je 0x481c3e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x481b78
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0047f790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0047c9f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x481bbb
lea eax, [ebp - 0x1a4]
push eax
call fcn.0047c9f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4859ec
push edi
call fcn.0047b120
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0047f790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0047f7a0
lea eax, [ebp - 0xa0]
push 0x4859cc
push eax
call fcn.0047f7a0
push dword [esi + 0x4a2334]
lea eax, [ebp - 0xa0]
push eax
call fcn.0047f7a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00482e1d
add esp, 0x2c
pop edi
jmp 0x481c3e
lea eax, [ebp + 8]
lea esi, [esi + 0x4a2334]
push 0
push eax
push dword [esi]
call fcn.0047c9f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46876b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045cee0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4092a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ad00
mov eax, dword [eax]
push 0x657220
push eax
call fcn.0044cfa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d16b
test bl, bl
je 0x4092a2
push 0x657220
lea ecx, [esp + 0xc]
call fcn.0045d4fb
push 0x65ad8c
lea ecx, [esp + 0xc]
call fcn.0045d4fb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4092de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d16b
jmp 0x4093a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409362
lea edx, [esp + 0x7c]
push 0x65ad88
push edx
call fcn.0044cfa4
add esp, 8
test eax, eax
je 0x409362
lea eax, [esp + 0x7c]
push 0x65ad84
push eax
call fcn.0044cfa4
add esp, 8
test eax, eax
je 0x409362
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4092f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045d16b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409c02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409c10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4687eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6615d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409d48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409c76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d16b
xor eax, eax
jmp 0x409dbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d2a8
push esi
lea ecx, [esp + 0xc]
call fcn.0045d537
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x65adc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409d9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409ba0
test eax, eax
jne 0x409d9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00409ba0
test eax, eax
jne 0x409d9d
lea eax, [esp + 0x14]
push 0x65ada0
push eax
call fcn.0044dfe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409d7c
lea ecx, [esp + 0x14]
push 0x65ad9c
push ecx
call fcn.0044df60
mov esi, eax
add esp, 8
test esi, esi
jne 0x409d7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409d7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d258
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409c8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d16b
xor eax, eax
jmp 0x409dbf
mov byte [esi], 0
push 0x65ad98
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045d16b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4