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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push 0x10
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x404bde
push dword [ebp + 0xc]
call fcn.00401ed9
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0xc], eax
je 0x404bca
push ebx
mov ebx, dword [ebp + 0x14]
imul ebx, ebx, 0x3e8
push esi
lea eax, [ebx + 1]
xor esi, esi
push eax
inc esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp + 0x18], edi
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
jbe 0x404bb4
jmp 0x404b2d
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x18]
jbe 0x404b3c
mov esi, dword [ebp + 0x18]
sub esi, edi
jmp 0x404b48
mov dword [ebp - 0x20], esi
test esi, esi
mov esi, ebx
jne 0x404b48
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0
push esi
push dword [ebp - 8]
add edi, eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x18], eax
je 0x404b9d
cmp dword [ebp + 0x20], ecx
je 0x404b82
push ecx
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x404b98
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00402378
add esp, 0x18
add dword [ebp - 4], esi
jmp 0x404ba8
cmp dword [ebp - 0x20], ecx
jne 0x404ba8
mov eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jb 0x404b27
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
jmp 0x404bd3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x404be7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
Function at 0x405dcd
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8a0
push ebx
push esi
push edi
push str.SeDebugPrivilege
mov edi, eax
call fcn.0040d21d
xor esi, esi
pop ecx
push 0x20
pop eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], esi
call fcn.0040dc86
cmp byte [edi], 0x2f
jne 0x405e3d
lea eax, [edi + 1]
call fcn.0040235a
mov edi, eax
jmp 0x405e50
push edi
lea ebx, [ebp + 0x24]
call fcn.0040dec6
cmp eax, esi
je 0x405f43
mov edi, dword [eax]
cmp edi, esi
je 0x405f43
push 0x7fe
lea eax, [ebp - 0x82e]
push esi
push eax
mov word [ebp - 0x830], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x830]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x7c]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push esi
push 0x2000000
mov dword [ebp + 0x7c], esi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, eax
cmp edi, esi
je 0x405ee2
lea eax, [ebp + 0x6c]
push eax
push edi
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x6c], esi
call fcn.00401070
test eax, eax
je 0x405ed1
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x6c]
lea eax, [ebp + 0x5c]
call fcn.00401093
push dword [ebp + 0x6c]
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004055ca
push edi
call ebx
cmp dword [ebp + 0x7c], esi
je 0x405f35
push 0x40
lea eax, [ebp - 0x2c]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp + 0x14], esi
lea edi, [ebp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x830]
push eax
push dword [ebp + 0x7c]
lea eax, [ebp + 0x5c]
mov dword [ebp - 0x30], 0x44
call fcn.00401041
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004055ca
push dword [ebp + 0x7c]
call ebx
cmp dword [ebp + 0x68], esi
je 0x405f43
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0x24], esi
je 0x405f54
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp + 0x24], esi
lea esi, [ebp + 0x4c]
call fcn.00410004
lea esi, [ebp + 0x3c]
call fcn.00410004
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x4066ee
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40689c
push ebx
xor ebx, ebx
cmp dword [edi + 0x101fc], ebx
push esi
jne 0x40675c
mov esi, 0xff
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x108]
push str.32770
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x40689a
mov eax, dword [edi + 0x10044]
inc eax
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x4067bc
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x50c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [edi + 0x10044]
inc eax
inc eax
shl eax, 0xc
add eax, edi
push eax
lea eax, [ebp - 0x50c]
call fcn.00401f36
cmp eax, 0xffffffff
pop ecx
je 0x40689a
mov eax, dword [edi + 0x10044]
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x40681c
push 0x104
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea esi, [ebp - 0x10c]
call fcn.0040d699
mov eax, dword [edi + 0x10044]
inc eax
shl eax, 0xc
add eax, edi
push eax
mov eax, esi
call fcn.00401f36
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x40689a
mov ebx, dword [edi + 0x10044]
push str.click
add ebx, 3
push edi
mov eax, ebx
call fcn.004055da
test eax, eax
je 0x40685e
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004025f9
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
movzx eax, si
push eax
push 0x111
push dword [ebp + 8]
jmp 0x406894
push str.settext
push edi
mov eax, ebx
call fcn.004055da
test eax, eax
je 0x40689a
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004025f9
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
add ebx, 2
shl ebx, 0xc
add ebx, edi
push ebx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
xor eax, eax
inc eax
leave
ret 4
Function at 0x4078ed
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00401ec0
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x4079d4
xor esi, esi
push esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x800000
jae 0x4079c9
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x407962
mov ebx, dword [ebp + 8]
push 0x4078ab
push esi
mov byte [ebx + edi], 0
call fcn.00402014
pop ecx
pop ecx
jmp 0x4079c0
mov eax, dword [ebx + 0x10048]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00401e3b
lea eax, [ebp - 0x40c]
push eax
push edi
lea eax, [ebp - 0x80c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x1004c], esi
mov dword [ebx + 0x10200], edi
je 0x4079c0
push 0x30
push str.Error
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x407a2e
mov esi, dword [ebx + 0x10048]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00401e3b
lea eax, [ebp - 0x80c]
push eax
push edi
lea eax, [ebp - 0x40c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x1004c], 0
mov dword [ebx + 0x10200], edi
je 0x407a2e
push 0x30
push str.Error
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407a35
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.004104b0
push ebx
push esi
xor ebx, ebx
test byte [0x416a84], 1
push edi
jne 0x407a68
or dword [0x416a84], 1
push 0x41056f
mov dword [0x416a80], ebx
call fcn.004101da
pop ecx
push 0x1fe
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call sub.msvcrt.dll_memset
mov esi, 0x10fe
push esi
lea eax, [ebp - 0x1623]
push ebx
push eax
mov byte [ebp - 0x1624], bl
call sub.msvcrt.dll_memset
push 0x21fc
lea eax, [ebp - 0x3822]
push ebx
push eax
mov word [ebp - 0x3824], bx
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x1624]
push str.nircmd.exe__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x3824]
push eax
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x1624]
push eax
push ebx
push ebx
call esi
push 0xff
lea eax, [ebp - 0x524]
push eax
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov eax, dword [0x416a70]
cmp eax, ebx
jne 0x407b17
push str.NetRemoteTOD
call fcn.0040d3d3
cmp eax, ebx
mov dword [0x416a70], eax
je 0x407b26
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x407c4d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x3c
sub ecx, dword [eax + 0x18]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, ecx, 0x3c
lea eax, [ecx + eax + 0x43]
cmp eax, ebx
jge 0x407b52
add eax, reloc.USER32.dll_SetDlgItemTextA
jmp 0x407b5d
mov ecx, reloc.USER32.dll_SetDlgItemTextA
cmp eax, ecx
jl 0x407b5d
sub eax, ecx
imul eax, eax, 0x3e8
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3824]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
je 0x407bf7
push 0x104
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
push 0x207
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004025e7
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.00401f14
mov eax, esi
push str.admin__nircmd.exe
push eax
call sub.msvcrt.dll_strcat
add esp, 0x2c
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [0x416a6c]
cmp eax, ebx
jne 0x407c13
push str.NetScheduleJobAdd
call fcn.0040d3d3
cmp eax, ebx
mov dword [0x416a6c], eax
je 0x407c28
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x407c2b
or edi, 0xffffffff
mov eax, dword [0x416a74]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x407c4a
push str.NetApiBufferFree
call fcn.0040d3d3
cmp eax, ebx
mov dword [0x416a74], eax
je 0x407c4d
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d55d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [esi + 1], 0x3a
je 0x40d60a
lea eax, [esi + 2]
push 0x3a
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40d588
dec eax
push eax
jmp 0x40d60b
push str._systemroot
mov eax, esi
call fcn.00401f36
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x40d60a
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x416960], 0
mov edi, 0x416960
jne 0x40d5d7
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x416a68], eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 4]
lea eax, [eax + esi + 0xb]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcat
add esp, 0x18
pop edi
pop ebx
jmp 0x40d615
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40dc0e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x40dbc1
push edi
mov dword [ebp - 8], 1
call esi
cmp dword [ebp - 4], 0
jne 0x40dc4d
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push edi
call esi
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
setg al
pop esi
leave
ret

Function at 0x40dc59
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40dc81
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40dc86
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x36c
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.00410004
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x1f0], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40de1e
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1d8]
push eax
push edi
push 0x410
mov byte [ebp - 0xc4], 0
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x40ddd0
mov esi, 0x104
push esi
lea eax, [ebp - 0x2f7]
push edi
push eax
mov byte [ebp - 0x2f8], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 0x6c]
mov eax, dword [ebp + 0x7c]
call fcn.0040de48
cmp byte [ebp - 0xc4], 0
jne 0x40ddb4
cmp dword [0x416a78], edi
mov dword [ebp + 0x68], esi
jne 0x40dd9a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x40dd9a
push str.QueryFullProcessImageNameA
push eax
mov dword [0x416a78], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x416a7c], eax
mov eax, dword [0x416a7c]
cmp eax, edi
je 0x40ddb4
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push edi
push dword [ebp + 0x6c]
call eax
lea eax, [ebp - 0xc4]
push eax
lea esi, [ebp - 0x2f8]
call fcn.0040d55d
pop ecx
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x40de1e
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40dde8
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40ddfb
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00401fb5
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x40de07
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40dce1
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x40de70
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40dec5
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x40df37
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40df47
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [esi], 0
push str.rasapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40dfa7
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RasSetEntryDialParamsA
push eax
call edi
push str.RasEnumConnectionsA
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.RasGetConnectStatusA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.RasHangUpA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.RasGetEntryDialParamsA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.RasDialA
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
cmp dword [esi], eax
setne al
ret

Function at 0x40e260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e1ad
add esp, 0xc
test eax, eax
jne 0x40e2a7
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e29e
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e2ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e1ad
add esp, 0xc
test eax, eax
jne 0x40e2ec
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e2e3
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40e2f1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x2001f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e194
add esp, 0x10
test eax, eax
jne 0x40e32d
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40e324
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e332
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20019
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e194
add esp, 0x10
test eax, eax
jne 0x40e383
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e6ee
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edi
xor ebx, ebx
call fcn.0040e496
test eax, eax
jne 0x40e70a
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
call fcn.0040e496
test eax, eax
je 0x40e76d
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x40e72e
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xc]
push edi
call fcn.0040e5df
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040e388
test eax, eax
je 0x40e762
push dword [edi + 8]
mov ebx, dword [esp + 0x14]
or eax, 0xffffffff
call fcn.0040e4ed
push dword [edi + 8]
call fcn.0040e535
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x40eaf4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040e9ed
xor ebx, ebx
cmp dword [0x4163b8], ebx
je 0x40eb36
call fcn.00402108
cmp dword [eax + 0x10], 1
jne 0x40eb27
cmp esi, 0x19
je 0x40eb36
cmp esi, 0x17
je 0x40eb36
cmp esi, 0x16
je 0x40eb36
push ebx
push esi
push edi
push ebx
call dword [0x4163b8]
jmp 0x40ebd8
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40eb60
cmp esi, 0x17
je 0x40eb60
cmp esi, 0x16
jne 0x40eb76
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x40eb8a
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40ebc2
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040ea32
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040e1d5
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret