joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405960
Capabilities:
Terminate process

Disassembly:
cmp eax, 0xffffffff
jne 0x405968
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599d
test esi, esi
je 0x40599d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x405997
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret

Function at 0x4059b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563101
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5c3678]
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
xor esi, esi
xor eax, eax
mov byte [ebp - 0x251], 0
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], esi
mov word [ebp - 0x24c], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.00544310
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x405a8a
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405a40
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea esi, [ebp - 0x250]
call fcn.0040ebb0
cmp dword [ebp - 0x23c], 0
jne 0x405a8a
cmp dword [ebp - 0x238], 8
jb 0x405a83
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0053c152
add esp, 4
xor al, al
jmp 0x405bab
call fcn.00403dc0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x405aa8
call fcn.00403e40
test al, al
je 0x405b22
push str.Shcore.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.00418760
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x405ade
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x405afe
push str.SetProcessDpiAwareness
push eax
call ebx
test eax, eax
je 0x405afe
push 1
call eax
test eax, eax
sete byte [ebp - 0x251]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], esi
jb 0x405b19
mov eax, dword [ebp - 0x230]
push eax
call fcn.0053c152
add esp, 4
cmp byte [ebp - 0x251], 0
jne 0x405b8d
push str.User32.dll
lea ecx, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.00418760
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
mov esi, 8
cmp dword [ebp - 0x21c], esi
jae 0x405b58
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x405b76
push str.SetProcessDPIAware
push eax
call ebx
test eax, eax
je 0x405b76
call eax
test eax, eax
setne byte [ebp - 0x251]
cmp dword [ebp - 0x21c], esi
jb 0x405b8d
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.0053c152
add esp, 4
cmp dword [ebp - 0x238], 8
jb 0x405ba5
mov edx, dword [ebp - 0x24c]
push edx
call fcn.0053c152
add esp, 4
mov al, byte [ebp - 0x251]
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x408eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c3678]
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.00544310
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x58a648
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x408f60
xor edx, edx
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x57fde0
mov word [esi + 4], dx
call fcn.0040ebb0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x214], 1
mov eax, esi
mov edx, 0x57fde0
jne 0x408f76
lea edx, [ebp - 0x20c]
call fcn.0040eab0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x408f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5623cb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5c3678]
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 0x408fe2
cmp esi, 0x1a
je 0x408fe2
mov edx, 0x57fde0
mov eax, edi
call fcn.0040eab0
jmp 0x409118
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00544310
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 0x409037
push ebx
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0x57fde0
mov esi, edi
mov word [edi + 4], ax
call fcn.0040ebb0
jmp 0x409118
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 0x409060
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea esi, [ebp - 0x234]
call fcn.0040ebb0
push 0x11
push str.360TotalSecurity
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.00411aa0
cmp byte [ebp + 8], bl
jne 0x4090cf
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.00411b80
cmp dword [ebp - 0x21c], 8
jb 0x409118
mov edx, dword [ebp - 0x230]
push edx
call fcn.0053c152
add esp, 4
jmp 0x409118
lea eax, [ebp - 0x234]
call fcn.004d3260
test al, al
je 0x409101
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.00411b80
jmp 0x40910d
mov edx, 0x57fde0
mov eax, edi
call fcn.0040eab0
lea ecx, [ebp - 0x234]
call fcn.0040eb20
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567f22
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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 0x58a630
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
call fcn.00418760
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 0x409384
cmp byte [ebp + 8], 0
jne 0x409384
mov edx, str.Administrators
jmp 0x40939d
lea eax, [ebp - 0x14]
push eax
call fcn.00403ec0
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]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093a2
sub eax, edi
sar eax, 1
push eax
push edx
mov eax, esi
call fcn.00411aa0
mov dword [ebp - 4], 0
test bl, 2
je 0x4093eb
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 0x4093eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], 0
je 0x409418
cmp dword [esi + 0x18], 8
jb 0x4093fc
mov ebx, dword [esi + 4]
jmp 0x4093ff
lea ebx, [esi + 4]
test ebx, ebx
je 0x409418
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409418
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 0x40af00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c3678]
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.00544310
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x58a648
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 0x40afae
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 0x40af95
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40afba
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x57fde0
call fcn.0040ebb0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x40afd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00544310
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.0040af00
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x40b015
mov eax, dword [eax + 4]
jmp 0x40b018
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], esi
jb 0x40b042
mov edx, dword [ebp - 0x228]
push edx
call fcn.0053c152
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b097
cmp dword [0x5d0cb4], 0
jne 0x40b071
mov ecx, dword [0x5cee30]
push ecx
mov esi, 0x5d0888
call fcn.00421470
test eax, eax
je 0x40b097
push 0x5d0888
lea edi, [ebp - 0x210]
call fcn.00526c60
test eax, eax
je 0x40b097
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x40b0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c3678]
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.00544310
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 0x40b15e
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 0x40b145
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40b16a
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x57fde0
call fcn.0040ebb0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x40b180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563068
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c3678]
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.0040b0b0
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.00411d90
push 0
lea esi, [ebp - 0x2c]
call fcn.0040ec60
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
mov edi, esi
call fcn.00411e20
inc eax
push eax
or eax, 0xffffffff
call fcn.0040ec60
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x40b201
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b221
cmp dword [ebp - 0x14], esi
jb 0x40b21d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0053c152
add esp, 4
mov al, 1
jmp 0x40b234
cmp dword [ebp - 0x14], esi
jb 0x40b232
mov eax, dword [ebp - 0x28]
push eax
call fcn.0053c152
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x418a80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push ebx
push eax
mov esi, 0x58a630
call fcn.00421fe0
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x5c6f3c]
push ecx
call fcn.00421fe0
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x418b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jmp 0x418b1c
shr eax, 4
test al, 1
je 0x418b6b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x418b3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, 8
jb 0x418ab0
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x57fde0
call fcn.00423950
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
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00423cf0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x418b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x420950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4209be
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42098d
cmp eax, 2
jne 0x4209a8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4209b8
test eax, eax
je 0x4209b3
test al, 1
jne 0x4209a8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4209b8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x421af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421b78
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push 0x58a648
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421b52
sub eax, edx
sar eax, 1
je 0x421b7a
cmp word [esi + eax*2 - 2], 0x5c
je 0x421b7a
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x421e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push 0
or edx, 0x20006
push edx
push 0
push 0
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421ebb
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56183b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00423cf0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00423cf0
add eax, 0x10
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x4233fa
xor edi, edi
jmp 0x42340a
neg edi
sbb edi, edi
and edi, 0xffffff00
add edi, 0x200
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esi + 0xc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423456
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 edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x423470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4234d0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x423830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42384d
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x423884
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x423880
lea ecx, [ecx]
cmp esi, eax
jae 0x423884
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x423870
cmp esi, eax
jb 0x42388b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42b660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x14], ebx
je 0x42b6a3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0045c820
mov eax, dword [ebp - 8]
add esp, 8
cmp dword [eax - 0xc], ebx
jne 0x42b6ab
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b6a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42b6ff
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], ebx
jb 0x42b6d9
mov eax, dword [edi + 4]
jmp 0x42b6dc
lea eax, [edi + 4]
push ebx
lea edx, [ebp - 4]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b6f8
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x14]
jne 0x42b6f8
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b71e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434900
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, eax
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x434948
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
push 7
push ebx
mov ecx, edi
call eax
mov eax, dword [ebp + 8]
mov dword [eax], 0xc0000018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
lea ecx, [esp + 0x10]
mov esi, eax
lea eax, [edi + 0x40]
push ecx
push eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
call fcn.00484c20
mov edx, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], esi
or dword [edi + 0x64], ebx
push edx
lea esi, [edi + 0xac]
mov dword [esp + 0x14], 1
call fcn.00449eb0
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0044f930
test al, al
jne 0x4349e5
lea ecx, [esp + 0x10]
not ebx
and dword [edi + 0x64], ebx
mov eax, dword [esi + 0x3c]
mov edi, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], eax
call fcn.00439bd0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00484d20
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0xc0000001
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x70], 0
jne 0x434a06
mov ecx, dword [edi + 0x1ec]
mov edx, dword [edi + 0x3c]
push 0
push 0xea60
push ecx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43bc70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x561fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0043c3f0
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0043c420
add esp, 0x10
push 0x5a3778
lea eax, [esp + 0x30]
push eax
call fcn.0054460b
int3