joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407110
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40713f
lea esi, [ebp - 0x4d10]
call fcn.0040fdb0
call fcn.0040fe50
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00497780
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00410bc0
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF56E31B3E50449DC6
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497780
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00497780
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00410bc0
jmp 0x4071f4
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x407217
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 0xd
push edx
call fcn.00406ea0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x407240
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40726f
lea esi, [ebp - 0x4d10]
call fcn.0040fdb0
call fcn.0040fe50
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00497780
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00410bc0
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF56E31B3E50449DC6
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497780
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00497780
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00410bc0
jmp 0x407324
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x407347
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.00406ea0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x407470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba61
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4075e0
test esi, esi
je 0x4075e0
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x407503
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4075e0
lea edx, [ebp - 0x244]
push edx
mov ecx, str.QHWatchdog.exe
call fcn.00424e40
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.00410e50
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x218]
call fcn.00424e40
lea ecx, [ebp - 0x240]
push ecx
mov byte [ebp - 4], 2
call fcn.00414520
push eax
call fcn.004145b0
lea edi, [ebp - 0x240]
call fcn.00410e50
mov edx, edi
push edx
lea eax, [ebp - 0x244]
call fcn.00411250
add esp, 4
test al, al
jne 0x4075fe
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00497780
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407523
lea ecx, [ebp - 0x244]
call fcn.00406270
lea esi, [ebp - 0x248]
call fcn.00404550
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.00406270
lea ecx, [ebp - 0x244]
call fcn.00406270
lea esi, [ebp - 0x248]
call fcn.00404550
mov eax, edi
jmp 0x4075e3
Function at 0x407a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x220], 0
call fcn.00497780
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x407aa2
push esi
mov ecx, 0x4c4348
call fcn.00424e40
jmp 0x407b72
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x218]
call fcn.00424e40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea eax, [ebp - 0x220]
call fcn.00410eb0
mov eax, dword [eax]
push 0x4cd228
push eax
call fcn.00491c26
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407b25
lea ecx, [ebp - 0x21c]
push ecx
mov edx, 0x4cb8e4
jmp 0x407b31
lea edx, [ebp - 0x21c]
push edx
mov edx, str.explorer.exe
call fcn.00411310
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00425150
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x407c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb988
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x407db1
cmp dword [ebp + 0xc], ebx
je 0x407db1
lea ecx, [ebp - 0x14]
push ecx
push 0xf00ff
push eax
mov dword [ebp - 0x14], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407d9d
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x407d9d
lea edi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004079c0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407d97
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x407d97
push 1
push eax
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x407d05
mov esi, 0x400
jmp 0x407d08
mov dword [ebp + 8], ebx
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00497780
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
xor ecx, ecx
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x68], str.winsta0default
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00424e40
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x70]
push eax
push ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
push ebx
push ebx
lea esi, [ebp - 0x18]
call fcn.00424bb0
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x407d79
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp esi, ebx
je 0x407d89
mov ecx, dword [ebp - 0x24]
push ecx
call edi
mov edx, dword [ebp - 0x28]
push edx
call edi
mov eax, dword [ebp - 0x10]
push eax
call edi
lea ecx, [ebp - 0x18]
call fcn.00406270
mov ecx, dword [ebp - 0x14]
push ecx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40acd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
mov dword [ebp - 0x210], 0
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0x104
mov word [ebp - 0x20c], ax
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40ad80
xor edx, edx
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x4c4348
mov word [esi + 4], dx
call fcn.004115a0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x214], 1
mov eax, esi
mov edx, 0x4c4348
jne 0x40ad96
lea edx, [ebp - 0x20c]
call fcn.004114d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40adb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x238], ebx
cmp esi, 0x23
je 0x40ae02
cmp esi, 0x1a
je 0x40ae02
mov edx, 0x4c4348
mov eax, edi
call fcn.004114d0
jmp 0x40af38
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40ae57
push ebx
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0x4c4348
mov esi, edi
mov word [edi + 4], ax
call fcn.004115a0
jmp 0x40af38
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ae80
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea esi, [ebp - 0x234]
call fcn.004115a0
push 0x11
push str.360TotalSecurity
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.00414ab0
cmp byte [ebp + 8], bl
jne 0x40aeef
push 0xffffffffffffffff
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov ecx, esi
mov word [edi + 4], ax
push ecx
mov eax, edi
call fcn.00414b90
cmp dword [ebp - 0x21c], 8
jb 0x40af38
mov edx, dword [ebp - 0x230]
push edx
call fcn.00491276
add esp, 4
jmp 0x40af38
lea eax, [ebp - 0x234]
call fcn.00427480
test al, al
je 0x40af21
push 0xffffffffffffffff
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea ecx, [ebp - 0x234]
mov word [edi + 4], ax
push ecx
mov eax, edi
call fcn.00414b90
jmp 0x40af2d
mov edx, 0x4c4348
mov eax, edi
call fcn.004114d0
lea esi, [ebp - 0x234]
call fcn.00411540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40b120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc4a2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov esi, edx
push 0x4cd228
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
call fcn.0041b820
add esp, 4
mov dword [ebp - 4], edi
mov ebx, 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40b17e
mov edx, 0x4cc670
jmp 0x40b197
lea eax, [ebp - 0x14]
push eax
call fcn.00406770
add esp, 4
mov dword [ebp - 4], ebx
mov edx, dword [eax]
mov ebx, 3
mov dword [ebp - 0x10], ebx
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b1a0
sub eax, edi
sar eax, 1
push eax
push edx
mov eax, esi
call fcn.00414ab0
mov dword [ebp - 4], 0
test bl, 2
je 0x40b1e9
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], 0
je 0x40b216
cmp dword [esi + 0x18], 8
jb 0x40b1fa
mov ebx, dword [esi + 4]
jmp 0x40b1fd
lea ebx, [esi + 4]
test ebx, ebx
je 0x40b216
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b216
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdc28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Administrators
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
call fcn.0041b820
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40b592
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x28]
jae 0x40b579
lea esi, [ebp - 0x28]
test esi, esi
je 0x40b592
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b592
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0xa
push str._virusscan
lea eax, [ebp - 0x2c]
call fcn.00414ab0
mov ecx, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x40b5b1
lea ecx, [ebp - 0x28]
push edi
call fcn.00424e40
cmp dword [ebp - 0x14], esi
jb 0x40b5c8
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491276
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x211], bl
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cba6
push edi
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push esi
push eax
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x210], dx
call fcn.00497780
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x21c]
push eax
push esi
push str.svcVersion
push ecx
mov dword [ebp - 0x220], 0x208
call edi
lea ebx, [esi + 1]
test eax, eax
jne 0x40cb13
cmp dword [ebp - 0x21c], ebx
jne 0x40cb13
xor edx, edx
mov word [ebp - 8], dx
jmp 0x40cb49
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push str.Version
push eax
call edi
test eax, eax
jne 0x40cb82
cmp dword [ebp - 0x21c], ebx
jne 0x40cb82
xor ecx, ecx
mov word [ebp - 8], cx
lea eax, [ebp - 0x210]
mov byte [ebp - 0x211], bl
lea edx, [eax + 2]
jmp 0x40cb60
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40cb60
mov esi, dword [ebp - 0x224]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004115a0
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x211]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x40cbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 1
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360zip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x40cc6e
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc55
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40cc7a
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4c4348
call fcn.004115a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40cc90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.0040cbc0
cmp dword [eax + 0x18], 8
jb 0x40ccd0
mov eax, dword [eax + 4]
jmp 0x40ccd3
add eax, 4
push str.360zip.exe
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp - 0x214], 8
jb 0x40ccfe
mov edx, dword [ebp - 0x228]
push edx
call fcn.00491276
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cd50
cmp dword [0x4f3354], 0
jne 0x40cd2b
mov ecx, dword [0x4f1698]
push ecx
call fcn.00423ab0
add esp, 4
test eax, eax
je 0x40cd50
push 0x4f2f28
lea edi, [ebp - 0x210]
call fcn.00458f00
test eax, eax
je 0x40cd50
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x40cd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 1
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallVPNMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x40ce1e
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce05
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40ce2a
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4c4348
call fcn.004115a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40ce40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7558
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.0040cd70
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
mov edi, 0x22
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.00414dd0
push 0
lea esi, [ebp - 0x2c]
call fcn.00411650
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
mov edi, esi
call fcn.00414e60
inc eax
push eax
or eax, 0xffffffff
call fcn.00411650
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x40cebf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cedf
cmp dword [ebp - 0x14], esi
jb 0x40cedb
mov edx, dword [ebp - 0x28]
push edx
call fcn.00491276
add esp, 4
mov al, 1
jmp 0x40cef2
cmp dword [ebp - 0x14], esi
jb 0x40cef0
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491276
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x40d670
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdd98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
jne 0x40d6be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
mov dword [ebp - 0x10], edi
push ebx
push 0x80
push 4
push ebx
push 3
push SysReAllocString
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40d75b
call fcn.004230e0
cmp eax, ebx
jne 0x40d6a8
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x14], ebx
jne 0x40d732
cmp eax, 0x64
jb 0x40d732
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
call fcn.00422ef0
test eax, eax
jne 0x40d732
lea ebx, [esi + 0x24]
lea esi, [eax + 0x64]
mov ecx, ebx
lea edx, [ebp - 0x10]
call fcn.00422eb0
test eax, eax
jne 0x40d72f
mov ebx, dword [ebx]
cmp ebx, 1
je 0x40d762
cmp ebx, 2
je 0x40d762
mov esi, dword [ebp + 8]
call fcn.0040d960
movzx esi, al
test edi, edi
je 0x40d745
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x40d6eb
test edi, edi
je 0x40d76d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4