joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdf10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x228]
push 0x208
push 0
push eax
call fcn.004c5400
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4bdf7d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x234]
or eax, 0x20019
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4bdf99
cmp eax, 2
jne 0x4be09f
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004c2d85
add esp, 0x21c
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x4bdfbc
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4be07e
push esi
lea esi, [esp + 0x20]
sub esi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4be02e
movzx ecx, word [esi + eax]
test cx, cx
je 0x4be02e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4be010
push dword [esp + 0x238]
lea ecx, [eax - 2]
test edx, edx
push ebx
cmovne ecx, eax
xor eax, eax
push ebp
mov word [ecx], ax
call fcn.004bdf10
add esp, 0xc
test eax, eax
je 0x4be07d
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4be000
pop esi
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4bdf7d
mov ecx, dword [esp + 0x220]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.004c2d85
add esp, 0x21c
ret
Function at 0x4be0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x53a098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4be127
xor al, al
jmp 0x4be207
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004bdd00
test al, al
je 0x4be1b8
cmp byte [ebp + 0x14], 0
je 0x4be17b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00407c50
add esp, 8
test al, al
je 0x4be1b8
mov bl, 1
jmp 0x4be1f6
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4be185
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x4be1b5
test edx, edx
je 0x4be1b1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4be1b5
add ecx, 2
sub edx, 1
jne 0x4be1a0
mov bl, 1
jmp 0x4be1f6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x4be1c8
mov byte [eax + 1], 1
mov bl, 1
jmp 0x4be1f6
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4be1d3
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4be1db
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4be1b1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004049a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2d85
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bfb60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.004c5400
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4bfbd2
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4bfbea
mov eax, dword [esp + 4]
test eax, eax
je 0x4bfbd2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004c2d85
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bfbf2
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00405050
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x4bfc1e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.004c2d85
add esp, 0x418
ret
Function at 0x4c0f60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004c5400
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c0fc7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4c0fb0
jne 0x4c0fc7
cmp dword [esp + 8], 0
jbe 0x4c0fc7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret

Function at 0x4c0fe0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004c5400
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c1035
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret

Function at 0x4c1060
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004c5400
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c10b5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004c2d85
add esp, 0x118
ret

Function at 0x4c10e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x53a010], 0
jne 0x4c1162
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004c5400
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c1143
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.00405050
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004c2d85
add esp, 0x214
ret
Function at 0x4c1210
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x502188
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53a098]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x53c214]
test eax, eax
jle 0x4c1261
inc eax
mov dword [0x53c214], eax
mov al, 1
jmp 0x4c1353
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.00415410
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416030
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00415490
test bl, bl
je 0x4c1343
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4c1343
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4c133c
inc dword [0x53c214]
mov eax, dword [edi]
test eax, eax
je 0x4c12e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x53a028], 0
mov dword [ebp - 0x10], 0
jne 0x4c133c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004c5400
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x53a018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.00404c60
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4c1351
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004c2d85
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x4de415
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004de294

Function at 0x4e2053
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e1d13
Function at 0x40fc83
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a794]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b148
mov dword [ebp - 0x14], eax
cmp dword [0x47d148], esi
jne 0x40fd76
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe56
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe56
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe56
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47d148], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47d14c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47d150], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d158], eax
test eax, eax
je 0x40fd73
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d154], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fd9b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd8e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push 4
pop eax
jmp 0x40fe58
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push dword [0x47d148]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fd95
mov eax, dword [0x47d154]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe0e
cmp dword [0x47d158], edi
je 0x40fe0e
push eax
call ebx
push dword [0x47d158]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe0e
test eax, eax
je 0x40fe0e
call ecx
test eax, eax
je 0x40fe03
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40fe03
test byte [ebp - 8], 1
jne 0x40fe0e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe3e
mov eax, dword [0x47d14c]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
call eax
mov esi, eax
test esi, esi
je 0x40fe3b
mov eax, dword [0x47d150]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47d148]
call ebx
test eax, eax
je 0x40fe56
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404609
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [ebx + 0x3c]
push esi
push edi
mov edi, dword [eax + ebx + 0x50]
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x401026
pop edi
xor eax, eax
pop esi
pop ecx
ret
push edi
push 0
push esi
call fcn.0040c2e0
push esi
push ebx
call fcn.00401240
add esp, 0x14
test eax, eax
je 0x401020
call fcn.00401340
test eax, eax
je 0x401020
push esi
call fcn.004013b0
add esp, 4
test eax, eax
je 0x401020
lea ecx, [esp + 8]
push ecx
push 0x40
push edi
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401020
mov edx, dword [esi + 0x3c]
pop edi
mov dword [edx + esi + 0x34], esi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4014b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
push ebx
mov ebx, dword [eax + esi + 0x20]
add eax, esi
push ebp
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
xor edx, edx
add ebx, esi
add ebp, esi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
test eax, eax
jbe 0x40151d
mov eax, dword [ebx + edi*4]
add eax, esi
push str.shell
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401508
inc edi
cmp edi, dword [esp + 0xc]
jb 0x4014e3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
movzx ecx, word [ebp + edi*2]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4]
pop edi
pop ebp
add eax, esi
pop ebx
add esp, 8
ret
pop edi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret
Function at 0x402f70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x4c
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 4], eax
fild qword [esp]
and ecx, 0x80000000
mov dword [esp + 4], ecx
mov dword [esp], 0
fild qword [esp]
fchs
faddp st(1)
fmul qword [0x435550]
fcomp qword [0x435548]
fnstsw ax
test ah, 5
jp 0x402fd3
mov eax, 1
add esp, 0x4c
ret
xor eax, eax
add esp, 0x4c
ret

Function at 0x402ff0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x250
mov eax, dword [0x4390b4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], str.VBoxService.exe
mov dword [esp + 0x1c], str.VBoxTray.exe
mov dword [esp + 0x20], str.vmware.exe
mov dword [esp + 0x24], str.vmtoolsd.exe
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x20]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4030f2
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x403060
push 0x103
lea ecx, [esp + 0x14d]
push 0
push ecx
mov byte [esp + 0x154], 0
call fcn.0040c2e0
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0x154]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push eax
push 0
push 0
call edi
xor esi, esi
nop
mov ecx, dword [esp + esi*4 + 0x10]
lea eax, [esp + 0x148]
jmp 0x4030b0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4030d0
test dl, dl
je 0x4030cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4030d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4030b0
xor eax, eax
jmp 0x4030d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40310c
inc esi
cmp esi, 4
jl 0x4030a0
lea ecx, [esp + 0x20]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403060
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040801c
add esp, 0x250
ret
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0040801c
add esp, 0x250
ret
Function at 0x403190
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xc
push ebx
push edi
push 4
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
jne 0x4031b0
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
push esi
push 0x10000
push 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x10000
push esi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x4031fa
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], edi
jbe 0x40325d
add esi, 4
mov eax, dword [esi]
push str.VMware_Tools
push eax
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40326d
mov eax, dword [esi]
push 0x4353a4
push eax
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40326d
mov eax, dword [esi]
push str.Virtual_Machine
push eax
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40326d
mov eax, dword [esi]
push str.VirtualBox_Guest
push eax
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40326d
inc edi
add esi, 0x24
cmp edi, dword [esp + 0xc]
jb 0x403203
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x4032d0
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x43173b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4390b4]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push esi
push edi
mov eax, dword [0x4390b4]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
push 0x104
xor ebx, ebx
call fcn.00409438
add esp, 4
push 0x104
mov esi, eax
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403341
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00405560
push 2
push 0x4353e8
lea eax, [esp + 0x18]
mov dword [esp + 0x180], ebx
call fcn.00405440
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x40337b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4033ad
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x2c]
push edx
push esi
inc ebx
call edi
test eax, eax
jne 0x403394
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x1e
jge 0x4033c8
cmp dword [esp + 0x28], 0x10
jb 0x4033c1
mov eax, dword [esp + 0x14]
push eax
call fcn.00408475
add esp, 4
mov eax, 1
jmp 0x4033de
cmp dword [esp + 0x28], 0x10
jb 0x4033dc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00408475
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0040801c
add esp, 0x16c
ret
Function at 0x403ba0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov dword [ebp + 8], 0xff
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [ebp + 8]
jg 0x403bbb
xor eax, eax
jmp 0x403bc0
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x40801c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4390b4]
jne 0x408026
repz ret
jmp fcn.0040a54e

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x408c06
call fcn.0040acc6
mov dword [eax], esi
call fcn.0040acb3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00408b94
add esp, 0x14
push 0x16
pop eax
jmp 0x408c5b
test dword [ebp + 0xc], 0xfffffff9
jne 0x408be2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040acd9
pop ecx
call fcn.0040acb3
mov eax, dword [eax]
jmp 0x408c5b
test al, 0x10
jne 0x408c59
test al, 1
je 0x408c59
test byte [ebp + 0xc], 2
je 0x408c59
call fcn.0040acc6
mov dword [eax], 5
call fcn.0040acb3
mov dword [eax], 0xd
jmp 0x408c2a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41d870
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d9fa
and dword [ebp - 4], 0
cmp dword [0x43b5a8], 0
mov ebx, eax
jne 0x41d921
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d9d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41d9d2
push eax
call fcn.0040d988
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b5a8], eax
call esi
push eax
call fcn.0040d988
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b5ac], eax
call esi
push eax
call fcn.0040d988
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b5b0], eax
call esi
push eax
call fcn.0040d988
pop ecx
mov dword [0x43b5b8], eax
test eax, eax
je 0x41d921
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d988
pop ecx
mov dword [0x43b5b4], eax
mov eax, dword [0x43b5b4]
cmp eax, ebx
je 0x41d979
cmp dword [0x43b5b8], ebx
je 0x41d979
push eax
call fcn.0040da03
push dword [0x43b5b8]
mov esi, eax
call fcn.0040da03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d979
test edi, edi
je 0x41d979
call esi
test eax, eax
je 0x41d970
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d970
test byte [ebp - 0xc], 1
jne 0x41d979
or dword [ebp + 0x10], 0x200000
jmp 0x41d9b2
mov eax, dword [0x43b5ac]
cmp eax, ebx
je 0x41d9b2
push eax
call fcn.0040da03
pop ecx
test eax, eax
je 0x41d9b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d9b2
mov eax, dword [0x43b5b0]
cmp eax, ebx
je 0x41d9b2
push eax
call fcn.0040da03
pop ecx
test eax, eax
je 0x41d9b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b5a8]
call fcn.0040da03
pop ecx
test eax, eax
je 0x41d9d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d9d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret