joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x5b92cb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004e5fc0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40ae38
push 0x610e34
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004e71e2
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x40b3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b409
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b444
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b440
lea ebx, [ebx]
cmp esi, eax
jae 0x40b444
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b430
cmp esi, eax
jb 0x40b44a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40b4a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b527
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b526
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], 0
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
add esp, 4
mov dword [0x61db00], eax
test eax, eax
je 0x40b51f
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x61db00]
xor edx, edx
mov word [eax + esi*2], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x40b940
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 8
push ebp
lea eax, [esp + 4]
push eax
push 0x2001f
xor ebp, ebp
push ebp
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b9e3
mov edx, dword [esp + 4]
push esi
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
xor esi, esi
push esi
push str.proxytype
push edx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b999
lea esi, [ebp + 1]
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.customproxytype
push eax
call edi
test eax, eax
je 0x40b9b5
cmp eax, 2
jne 0x40b9b6
inc esi
mov ecx, dword [esp + 0xc]
push 0x5bbd2c
push ecx
call edi
pop edi
test eax, eax
je 0x40b9cc
cmp eax, 2
jne 0x40b9cd
inc esi
cmp esi, 3
pop esi
jne 0x40b9d8
mov ebp, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x40c810
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c8d2
mov ecx, dword [esi + 0x1c]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.proxytype
push eax
mov dword [esp + 0x24], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.customproxytype
push eax
mov dword [esp + 0x24], ecx
call edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx - 0xc]
add esi, 0x24
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
lea ebx, [ecx + ecx + 2]
jge 0x40c8b1
push ecx
mov ecx, esi
call fcn.0040c000
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
push ebx
push ecx
push 1
push 0
push 0x5bbd2c
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 8
ret
Function at 0x40dd70
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5a06e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push 0x5bbe60
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d6c0
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
test ebp, ebp
je 0x40de18
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
jle 0x40de18
mov ecx, dword [ebp + eax*4]
lea esi, [eax + 1]
xor eax, eax
xor edx, edx
cmp esi, edi
sete al
mov edi, eax
movzx eax, word [ecx]
cmp ax, 0x2d
je 0x40ddf6
cmp ax, 0x2f
jne 0x40ddfe
mov edx, 1
add ecx, 2
push edi
push edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
push ecx
lea ecx, [esp + 0x20]
call eax
mov edi, dword [esp + 0x10]
mov eax, esi
cmp eax, edi
jl 0x40ddd5
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004a73f2
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x40
ret 4
Function at 0x40dea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
or ebx, 0xffffffff
lea ebp, [esi + 0x24]
push 0x5e8ee8
mov ecx, ebp
mov dword [esp + 0x28], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.0040c660
push edi
lea ecx, [esi + 0x28]
push 0x5e8ee8
mov dword [esp + 0x2c], ecx
call fcn.0040c660
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e03f
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.proxytype
push eax
call edi
test eax, eax
jne 0x40df6e
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x20], 1
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.customproxytype
push edx
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x40df9a
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
push 0x208
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x208
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x5bbd2c
push edx
call edi
test eax, eax
jne 0x40dfeb
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0040d680
push 0x208
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x5bbe64
push edx
call edi
test eax, eax
jne 0x40e02e
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
call fcn.0040d680
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
jmp 0x40e041
mov eax, edi
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5fb0
add esp, 0x224
ret
Function at 0x40e140
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ecx
xor eax, eax
mov dword [esp], 0
cmp ax, word [0x61db08]
jne 0x40e1a6
push 1
push 0x23
push 0x61db08
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40e177
push 0x104
push 0x61db08
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 7
push 0x5bbe7c
push 0x61db08
call fcn.004e6b29
add esp, 0xc
push 0x61db08
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e1a6
push eax
push 0x61db08
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov esi, dword [esp + 0xc]
push 0x61db08
mov ecx, esi
call fcn.0040e080
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40e1c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov edi, dword [esp + 0x220]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0x14], 0
push ecx
mov word [esp + 0x1c], ax
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e29c
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x5bbe8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e270
sub eax, edx
sar eax, 1
mov dword [esp + 8], eax
cmp eax, 3
jbe 0x40e29c
lea eax, [esp + eax*2 + 0x10]
mov edx, 0x5c
cmp dx, word [eax - 2]
je 0x40e29c
mov ecx, edx
mov word [eax], cx
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.0040e080
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004e5fb0
add esp, 0x218
ret
Function at 0x40e2c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a0740
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ebx
cmp ax, word [0x61dd10]
jne 0x40e48a
mov esi, dword [esp + 0x30]
push 0x104
push 0x61dd10
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x61dd10
call fcn.004e5d7c
add esp, 8
test eax, eax
je 0x40e328
xor ecx, ecx
mov word [eax + 2], cx
push 0x5bbf14
lea ecx, [esp + 0x18]
call fcn.0040e080
test esi, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x24], 0
jne 0x40e371
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push 0x61dd10
push eax
call fcn.0040d230
mov eax, dword [eax]
add esp, 0xc
push eax
mov ebx, 1
call esi
mov byte [esp + 0xf], bl
test eax, eax
je 0x40e376
mov byte [esp + 0xf], 0
test bl, 1
je 0x40e39e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e39e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x40e462
lea ecx, [esp + 0x10]
push ecx
call fcn.0040e1c0
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov byte [esp + 0x24], 1
test eax, eax
jle 0x40e3f5
cmp eax, 0x104
jge 0x40e3f5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040d090
mov eax, dword [eax]
add esp, 0xc
push eax
or ebx, 2
call esi
mov byte [esp + 0xf], 1
test eax, eax
jne 0x40e3fa
mov byte [esp + 0xf], 0
test bl, 2
je 0x40e41f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e41f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x40e43d
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push 0x61dd10
call fcn.004e6b69
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e48a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
push 0x61dd10
mov ecx, esi
call fcn.0040e080
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40e720
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a0808
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 1
je 0x40e800
test eax, eax
je 0x40e800
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0040e2c0
push 0x5bbfb4
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040d150
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
push ecx
push 0x5bbfb0
push str.test
push str.test
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [esp + 8]
neg eax
sbb eax, eax
inc eax
push edx
mov dword [section..data], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 8]
mov esi, dword [section..data]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x415180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a0c39
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
push 0x5e8ee8
mov ecx, esi
mov dword [esp + 0x34], 1
call fcn.0040e080
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x14], 1
call fcn.0048aef0
add esp, 8
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.00415070
push eax
mov ecx, esi
mov byte [esp + 0x34], 2
call fcn.0040cb00
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41523f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00414200
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41526b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x2c
ret 8
Function at 0x4157e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004e5fc0
lea edx, [esp + 0x10]
push edx
call fcn.0040e820
mov eax, dword [eax]
add esp, 0x10
push eax
push 1
push str.state
push 0x5bd47c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 4]
push edi
push ecx
call fcn.0040e820
mov edx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 4
push edx
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
push 0x5bd474
push 0x5bd47c
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x4158b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
call fcn.0040c660
lea edx, [esp + 8]
push edx
call fcn.0040e820
mov eax, dword [eax]
add esp, 4
push eax
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
push str.pwdq
push 0x5bd47c
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415920
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 8]
call fcn.0040c660
lea edx, [esp + 8]
push edx
call fcn.0040e820
mov eax, dword [eax]
add esp, 4
push eax
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
push str.pwda
push 0x5bd47c
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x415986
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415990
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0xc]
call fcn.0040c660
mov eax, dword [esi]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.004e5fb0
add esp, 0x210
ret
Function at 0x416af0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x50
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x5c]
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*2 + 3]
lea edx, [ecx*4]
cmp edx, eax
mov dword [esp + 0xc], ebx
movsb byte es:[edi], byte [esi]
jle 0x416b4a
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x50
ret 0x10
mov eax, 0x55555556
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
push ebp
lea ebp, [edi*4]
mov dword [esp + 0x14], ebp
test edi, edi
jle 0x416bde
lea esi, [ebx + 2]
mov ebx, dword [esp + 0x64]
add ebx, 2
mov ebp, edi
mov cl, byte [ebx - 2]
movzx eax, cl
shr eax, 2
movzx edx, byte [esp + eax + 0x18]
mov byte [esi - 2], dl
mov dl, byte [ebx - 1]
and cl, 3
shl cl, 4
movzx eax, cl
movzx ecx, dl
shr ecx, 4
or eax, ecx
movzx eax, byte [esp + eax + 0x18]
and dl, 0xf
mov byte [esi - 1], al
movzx ecx, byte [ebx]
add dl, dl
add dl, dl
movzx edx, dl
mov eax, ecx
shr eax, 6
or edx, eax
movzx edx, byte [esp + edx + 0x18]
and ecx, 0x3f
movzx eax, byte [esp + ecx + 0x18]
mov byte [esi], dl
mov byte [esi + 1], al
add ebx, 3
add esi, 4
sub ebp, 1
jne 0x416b74
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
lea edx, [edi + edi*2]
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x416c5a
mov ecx, dword [esp + 0x64]
lea edx, [ecx + edi*2]
mov cl, byte [edi + edx]
lea esi, [edi + edx]
movzx edx, cl
shr edx, 2
mov dl, byte [esp + edx + 0x18]
and cl, 3
add ebp, 4
shl cl, 4
mov byte [ebx + edi*4], dl
cmp edi, 1
jne 0x416c21
movzx eax, cl
mov cl, byte [esp + eax + 0x18]
mov byte [ebx + 5], cl
mov byte [ebx + 6], 0x3d
jmp 0x416c55
mov dl, byte [esi + 1]
movzx esi, dl
movzx ecx, cl
shr esi, 4
or ecx, esi
mov cl, byte [esp + ecx + 0x18]
mov byte [ebx + edi*4 + 1], cl
cmp eax, 1
jne 0x416c43
mov byte [ebx + edi*4 + 2], 0x3d
jmp 0x416c55
and dl, 0xf
add dl, dl
add dl, dl
movzx edx, dl
mov al, byte [esp + edx + 0x18]
mov byte [ebx + edi*4 + 2], al
mov byte [ebx + edi*4 + 3], 0x3d
mov ecx, dword [esp + 0x5c]
mov byte [ebx + ebp], 0
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5fb0
add esp, 0x50
ret 0x10
Function at 0x417790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
xor eax, eax
mov word [esi + 4], ax
lea eax, [esi + 6]
xor ecx, ecx
mov dword [esi], vtable.CCheck360SD.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 4]
push ecx
push eax
lea edx, [esp + 0x10]
push edx
push str.LinkScanDate
push 0x5bd514
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4177ee
mov ax, word [esi + 0x14]
mov word [esi + 4], ax
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x417810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x14], 1
mov word [esp + 0x18], ax
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.InstallDir
push 0x5bd548
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [esp + 0x220]
push edx
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004e6b69
xor ecx, ecx
add esp, 0xc
cmp ecx, dword [esp + 4]
mov ecx, dword [esp + 0x214]
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.004e5fb0
add esp, 0x214
ret 8

Function at 0x417c30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x40
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004e5fc0
add esp, 0xc
xor eax, eax
lea edx, [esp]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.MsiExec.exe__X4A56DAB1_2680_4B8A_AD84_77EECFB94D7B__passive__norestart
mov ecx, 5
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x44
mov word [esp + 0x68], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x417cbd
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret