joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42eb4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42eba9
or dword [ebp - 4], 0xffffffff
and eax, 0x10
shl eax, 0x15
push eax
push 3
push 7
push 0x80000000
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.0042e86f
test al, al
je 0x42eba1
push 0
push 0
push dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0042ea9d
test al, al
je 0x42eba1
lea eax, [ebp - 4]
call fcn.0042e85c
mov al, 1
jmp 0x42ebab
lea eax, [ebp - 4]
call fcn.0042e85c
xor al, al
pop ebx
leave
ret 8

Function at 0x42ec57
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret 4
Function at 0x42f9b9
Capabilities:
Accept command line arguments
Get session user name
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x254]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.msvcrt.dll_memset]
mov dword [ebp - 8], eax
test eax, eax
je 0x42f9fa
lea ecx, [ebp - 0x254]
push ecx
lea esi, [ebp - 0x2c]
call fcn.0041bcd7
test al, al
jne 0x42fa07
push 0xc
lea eax, [ebp - 0x2c]
push 0
push eax
call edi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x103
cmp eax, ecx
push esi
lea esi, [ebp - 0x14]
cmovge eax, ecx
call fcn.0041bcd7
test al, al
jne 0x42fa39
push 0xc
mov eax, esi
push 0
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x254]
push eax
push 2
mov dword [ebp - 8], ebx
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x42fa69
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x20]
call fcn.0041bcd7
test al, al
jne 0x42fa76
push 0xc
lea eax, [ebp - 0x20]
push 0
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x42fa96
xor esi, esi
jmp 0x42fab7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push 0
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.00438fb0
mov esi, eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
lea ebx, [ecx + eax + 0x12]
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x42fad2
xor edi, edi
jmp 0x42fb59
mov eax, ebx
call fcn.00421cb4
mov edi, eax
test edi, edi
je 0x42fb59
mov byte [edi], 1
mov eax, dword [0x43f14c]
mov dword [edi + 1], eax
mov al, byte [0x43f148]
lea ebx, [edi + 0x12]
mov byte [edi + 5], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [edi + 6], ax
mov dword [edi + 8], esi
mov ax, word [ebp - 0x24]
mov esi, dword [sym.imp.msvcrt.dll_memcpy]
mov word [edi + 0xc], ax
mov ax, word [ebp - 0xc]
mov word [edi + 0xe], ax
mov ax, word [ebp - 0x18]
mov word [edi + 0x10], ax
movzx eax, word [edi + 0xc]
push eax
push dword [ebp - 0x2c]
push ebx
call esi
movzx eax, word [edi + 0xc]
add ebx, eax
movzx eax, word [edi + 0xe]
add esp, 0xc
push eax
push dword [ebp - 0x14]
push ebx
call esi
movzx eax, word [edi + 0x10]
add esp, 0xc
push eax
movzx eax, word [edi + 0xe]
push dword [ebp - 0x20]
add eax, ebx
push eax
call esi
mov ebx, dword [ebp - 8]
add esp, 0xc
lea esi, [ebp - 0x2c]
call fcn.0041bcc7
lea esi, [ebp - 0x14]
call fcn.0041bcc7
lea esi, [ebp - 0x20]
call fcn.0041bcc7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430107
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push 0x10
push 0
push edi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
mov byte [edi], 1
mov dword [ebp - 0x58], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x430158
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x43014b
cmp ecx, 0xffffffff
jbe 0x430152
xor ecx, ecx
and dword [ebp - 0xc], ecx
jmp 0x430155
mov dword [ebp - 0xc], eax
mov dword [edi + 1], ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, 0xffff
cmp eax, dword [ebp - 0x24]
lea esi, [ebp - 0x70]
sbb eax, eax
not eax
and eax, dword [ebp - 0x24]
mov word [edi + 5], ax
mov eax, 0xac
call fcn.00413de7
lea esi, [ebp - 0x10]
mov eax, 0xad
call fcn.00413de7
mov eax, esi
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, 0x80000002
call fcn.0041796f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x50
mov dword [edi + 7], eax
call esi
push 0x4e
mov byte [edi + 0xb], al
call esi
push 0x4f
mov ebx, eax
call esi
lea edx, [ebx - 1]
mov ecx, 0xfffd
cmp edx, ecx
ja 0x4301d5
lea edx, [eax - 1]
cmp edx, ecx
ja 0x4301d5
mov word [edi + 0xc], bx
mov word [edi + 0xe], ax
pop esi
pop ebx
leave
ret
Function at 0x43083f
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d0
push ebx
push esi
push edi
xor eax, eax
lea ecx, [ebp - 0x25c]
push ecx
push eax
push eax
push 0x24
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4308da
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x25c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
jmp 0x4308a5
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4308da
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x64
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call edi
test eax, eax
je 0x43087e
cmp word [ebp - 0x40], 0x7b
jne 0x4308da
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 0xc], ax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x4308da
mov bl, 1
jmp 0x4308e4
push 0x10
push dword [ebp + 0x7c]
call fcn.00421ddc
pop edi
pop esi
mov al, bl
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x4308f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
push edi
push 0x10
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.00421d23
xor dword [esp + 0x10], eax
xor word [esp + 0x14], ax
shr eax, 0x10
xor word [esp + 0x16], ax
xor edi, edi
xor ecx, ecx
xor eax, eax
mov dl, byte [ebp + eax + 0xc]
xor byte [esp + ecx + 0x18], dl
inc eax
cmp eax, 4
cmove eax, edi
inc ecx
cmp ecx, 8
jb 0x430927
cmp dword [ebp + 0x10], edi
je 0x430961
push dword [ebp + 0x10]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
call fcn.004224d1
push 0x10
pop edx
lea esi, [esp + 0x10]
lea eax, [esp + 0x20]
call fcn.0042251f
movzx eax, byte [ebp + 0x14]
sub eax, edi
je 0x43098d
dec eax
je 0x430978
dec eax
jne 0x43098d
mov eax, 0x409300
push 7
jmp 0x43097f
mov eax, 0x409310
push 6
pop edi
push eax
mov eax, edi
mov esi, ebx
call fcn.0041b36c
lea ebx, [ebx + edi*2]
push 0x28
push ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x430cec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, esi
call fcn.00430cc0
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
neg eax
sbb eax, eax
inc eax
leave
ret 4
Function at 0x430d70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
call fcn.00430b26
test al, al
je 0x430dbc
push 0x33
pop edi
call fcn.00430b66
test al, al
je 0x430dbc
movzx eax, word [ebx]
cmp eax, 2
jne 0x430d9f
push 0x10
pop eax
jmp 0x430dad
xor ecx, ecx
cmp eax, 0x17
setne cl
lea eax, [ecx - 1]
and eax, 0x1c
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x430de6
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov ebx, 0x2733
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x430dde
call fcn.00430ba5
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
call edi
cmp eax, ebx
jne 0x430e16
jmp 0x430df0
mov al, 1
jmp 0x430e18
test byte [ebp - 0x30], 0x10
jne 0x430e07
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0xc]
push 0x10
call fcn.00431226
test eax, eax
je 0x430dea
jmp 0x430e16
cmp dword [ebp - 0x1c], 0
je 0x430de6
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43103b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 8

Function at 0x43110b
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 8

Function at 0x431349
Capabilities:
Create udp socket

Disassembly:
push ebx
push ebp
xor ebx, ebx
push esi
inc ebx
cmp byte [0x43eb40], 0
push edi
jne 0x43138e
mov esi, 0x43eb78
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x43eb40], 0
jne 0x431387
call fcn.004309a4
test al, al
je 0x431387
mov dword [0x43eb44], 0x4309c8
mov byte [0x43eb40], bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x14]
call fcn.00430c9a
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
mov edi, eax
push ebx
push edi
call esi
push 0x11
push 2
push edi
mov ebp, eax
call esi
mov edi, eax
cmp ebp, 0xffffffff
je 0x4313ba
cmp edi, 0xffffffff
jne 0x4313bc
xor bl, bl
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x4376c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4376e5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4376fd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x43772c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x43776e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x437842
sub edx, 0x10000
js 0x437842
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x437754
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x437754
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4377c5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4377c2
add edx, 8
jne 0x4377a9
jmp 0x437833
add edx, 4
test eax, 0xffff
jne 0x4377d2
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x437833
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x437806
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x437754
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x437842
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x437754
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x437853
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408bd8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.OLEAUT32.DLL_VariantClear
xor eax, eax
push ebp
push 0x408c34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.004088fc
lea eax, [ebp - 0x10]
call dword [0x425068]
movzx ecx, di
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0040936c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c3b
lea eax, [ebp - 0x10]
call fcn.004084b8
ret

Function at 0x4116ec
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x411729
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x411749
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00412efc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x412128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4215f4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4121c0
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4121a0
xor eax, eax
push ebp
push 0x412199
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4121dc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4121a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4215f4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4215f4], ax
mov esp, ebp
pop ebp
ret

Function at 0x412b18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x425224], 0
je 0x412b79
cmp word [0x4253f8], 0xd7b2
jne 0x412b41
cmp dword [0x425400], 0
jbe 0x412b41
mov eax, 0x4253f4
call dword [0x425410]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412ba0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x421600], 0
jne 0x412b95
push 0
push 0x421658
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401583
Capabilities:
Encode data using xor

Disassembly:
jbe 0x40158d
dec dl
imul edi, ecx, 0xe1da6dff
movsx eax, dl
imul esi, edx
mov ecx, 0xfffffb94
dec dh
add ecx, 0x46c
mov esi, 0x27689cef
dec ah
xor dh, 0x96
lea ebx, [0x5d8a]
test bl, ch
sub ebx, 0x653a
xchg dh, dh
add ecx, ebx
mov ebx, edi
add ecx, 0x7b1
adc al, 0x12
mov esi, esi
inc ebx
cmp ecx, 0x28e
jb 0x4015a0
adc bh, dh
push 0xa32d66
push ebp
jb 0x4015e3
cmp edx, ebp
bswap edx
test cl, dh
ret

Function at 0x406043
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00405cdd
Function at 0x4129c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
push str.SeBackupPrivilege
push 0
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x412a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SaveKey:_could_not_get_backup_priv_name:__x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x412a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SaveKey:_could_not_open_process_token:__x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 1
push eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x412aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SaveKey:_couldnt_acquire_privileges:__x
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
mov esi, eax
test esi, esi
je 0x412af0
push esi
push str.SaveKey:_regsavekey_failed:__x
push 1
call fcn.004439a0
add esp, 0xc
push 0
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x4134e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push edi
push eax
push 9
xor ebx, ebx
mov dword [ebp - 0x60], esi
push ebx
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x50], 0x32
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x413542
push eax
push str.VNLGetNextVNetInRegistry:_Failed_to_open_database:__d
push 4
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.vmnet_u
push 0x14
push eax
call fcn.004516e0
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
push 1
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4135a8
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x14
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004517b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x32
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov dword [ebp - 0x5c], 1
test esi, esi
jne 0x413637
lea eax, [ebp - 0x4c]
push eax
call fcn.0041a970
mov ecx, eax
add esp, 4
test ecx, ecx
js 0x413604
mov eax, dword [ebp + 8]
cmp ecx, eax
jbe 0x413604
test edi, edi
je 0x4135f8
cmp ecx, ebx
jae 0x413604
inc eax
mov edi, 1
mov ebx, ecx
cmp ecx, eax
je 0x413632
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x32
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc dword [ebp - 0x5c]
mov esi, eax
test esi, esi
je 0x4135d7
jmp 0x413637
mov esi, 0x103
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
je 0x41366b
push esi
push str.VNLGetNextVNetInRegistry:_unexpected_search_failure__d_n
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x413682
push ebx
push str.vmnet_u
push 0x14
push dword [ebp - 0x60]
call fcn.004516e0
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x413fb0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push str.VNL_DeleteNetLibDatabase:
call fcn.00443be0
mov esi, dword [ebp + 8]
push esi
push str.VNL_DeleteNetLibDatabase:_f__d
push 0x80
call fcn.004439a0
add esp, 0x1c
test esi, esi
je 0x414036
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
mov word [ebp - 7], 0
push 0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 5], 0
call fcn.004134e0
add esp, 8
test eax, eax
je 0x414036
lea eax, [ebp - 0x18]
push eax
call fcn.004140f0
lea eax, [ebp - 0x18]
push eax
call fcn.0041a970
lea ecx, [ebp - 0x18]
inc eax
push ecx
push eax
call fcn.004134e0
add esp, 0xc
test eax, eax
jne 0x414012
push edi
push 1
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetBridge
call fcn.004184d0
push 0
push 0
push 0
push 0
call fcn.00413280
add esp, 0x1c
mov edi, eax
push str.SOFTWAREVMware__Inc.VMnetLib
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x414073
cmp eax, 2
je 0x414073
xor esi, esi
jmp 0x414078
mov esi, 1
push str.SOFTWAREVMware__Inc.
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x414095
cmp eax, 2
je 0x414095
xor eax, eax
jmp 0x41409a
mov eax, 1
push eax
push esi
push edi
push str.VNL_DeleteNetLibDatabase:_result_of_operations_is__d__d__d
push 0x20
call fcn.004439a0
add esp, 0x14
call fcn.004437c0
test edi, edi
pop edi
je 0x4140d0
test esi, esi
je 0x4140d0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4