joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464d50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
call fcn.0040b140
mov ecx, eax
call fcn.0046c780
lea edx, [esp + 0x20c]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x464d80
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], cx
call fcn.004afb50
add esp, 0xc
lea ecx, [esp + 0x20c]
push ecx
push 0x104
lea edx, [esp + 0xc]
push edx
push 0x5731a4
push str.NickName
push str.UserData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi + 0x3a0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 4]
push edx
call eax
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x414
ret
push esi
mov esi, ecx
mov eax, 1
lea ecx, [esi + 0x300]
mov dword [esi + 0x398], eax
mov dword [esi + 0x394], eax
call dword [sym.imp.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov ecx, esi
call fcn.00464c50
push str.ui_user_name
lea ecx, [esi + 0x2c]
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [esi + 0x3a0], eax
mov ecx, esi
pop esi
jmp 0x464d50

Function at 0x464eb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
call fcn.0040b140
mov ecx, eax
call fcn.0046c780
lea edx, [esp + 0x20c]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x464d80
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], cx
call fcn.004afb50
add esp, 0xc
lea ecx, [esp + 0x20c]
push ecx
push 0x104
lea edx, [esp + 0xc]
push edx
push 0x5731a4
push str.NickName
push str.UserData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi + 0x3a0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 4]
push edx
call eax
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x414
ret
push esi
mov esi, ecx
mov eax, 1
lea ecx, [esi + 0x300]
mov dword [esi + 0x398], eax
mov dword [esi + 0x394], eax
call dword [sym.imp.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov ecx, esi
call fcn.00464c50
push str.ui_user_name
lea ecx, [esi + 0x2c]
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [esi + 0x3a0], eax
mov ecx, esi
pop esi
jmp 0x464d50
Function at 0x469570
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x469550
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi + 0x648], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x46c350
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x46c35f
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, ecx
lea ecx, [esi*8]
sub ecx, edx
sub ecx, 2
je 0x46c393
sub ecx, 2
jne 0x46c396
add eax, 2
jmp 0x46c396
add eax, 3
push ebx
mov ebx, dword [esp + 0x1c]
add eax, 1
cmp dword [ebx], eax
jge 0x46c3ad
mov dword [ebx], eax
pop ebx
mov eax, 0xfffffff0
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push edi
lea eax, [eax + eax*2]
xor edi, edi
test eax, eax
jle 0x46c46a
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
jmp 0x46c3f0
movzx esi, byte [eax]
movzx ebp, byte [eax + 1]
mov ebx, esi
sar ebx, 2
and ebx, 0x3f
movzx ebx, byte [ebx + 0x5819a0]
add eax, 1
movzx edi, byte [eax + 1]
mov byte [ecx], bl
add eax, 1
shl esi, 4
mov ebx, ebp
sar ebx, 4
add ebx, esi
and ebx, 0x3f
movzx ebx, byte [ebx + 0x5819a0]
mov esi, edi
sar esi, 6
add ecx, 1
mov byte [ecx], bl
lea esi, [esi + ebp*4]
and esi, 0x3f
movzx ebx, byte [esi + 0x5819a0]
add ecx, 1
mov byte [ecx], bl
and edi, 0x3f
movzx ebx, byte [edi + 0x5819a0]
add ecx, 1
mov byte [ecx], bl
add eax, 1
add ecx, 1
sub edx, 1
jne 0x46c3f0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x46c46e
mov eax, dword [esp + 0x18]
cmp edi, esi
jge 0x46c4cd
movzx edx, byte [eax]
lea ebp, [edi + 1]
cmp ebp, esi
jge 0x46c482
movzx edi, byte [eax + 1]
jmp 0x46c484
xor edi, edi
mov eax, edx
sar eax, 2
and eax, 0x3f
mov al, byte [eax + 0x5819a0]
mov byte [ecx], al
mov eax, edi
sar eax, 4
shl edx, 4
add eax, edx
and eax, 0x3f
mov dl, byte [eax + 0x5819a0]
add ecx, 1
mov byte [ecx], dl
add ecx, 1
cmp ebp, esi
jge 0x46c4c1
and edi, 0xf
mov al, byte [edi*4 + 0x5819a0]
mov byte [ecx], al
jmp 0x46c4c4
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov edx, ecx
sub edx, dword [esp + 0x20]
pop edi
pop ebp
mov dword [ebx], edx
pop ebx
mov byte [ecx], 0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x46c510
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004744e0
mov dword [esi], eax
call fcn.00474640
mov dword [esi + 8], eax
call fcn.00474440
mov dword [esi + 0xc], eax
call fcn.004745f0
mov dword [esi + 0x10], eax
call fcn.00474550
mov dword [esi + 0x14], eax
call fcn.004745a0
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
lea ecx, [esi + 0x110]
push ecx
mov dword [esi + 4], eax
call edi
lea edx, [esi + 0x128]
push edx
call edi
lea eax, [esi + 0x118]
push eax
call edi
lea ecx, [esi + 0x158]
push ecx
call edi
lea edx, [esi + 0x138]
push edx
call edi
lea eax, [esi + 0x148]
push eax
call edi
mov ecx, dword [0x6551e4]
pop edi
mov dword [esi + 0x100], ecx
pop esi
ret
Function at 0x46c5a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.004afb50
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x46c612
mov eax, dword [esp + 8]
test eax, eax
je 0x46c5ee
cmp eax, 1
jne 0x46c612
cmp byte [esp + 0x11a], 1
jne 0x46c612
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.004aeca3
add esp, 0x120
ret

Function at 0x46c630
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push eax
push ebx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x46c67b
push esi
push edi
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46c651
mov ecx, 9
mov esi, 0x581a80
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
pop esi
setne al
pop ebx
ret 8
xor al, al
pop ebx
ret 8

Function at 0x46c690
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x18
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x46c6c6
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004aeca3
add esp, 0x18
ret 8
push esi
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46c700
lea eax, [esp + 0xc]
push eax
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 8]
push ecx
push 0
push 0x400
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jge 0x46c715
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004aeca3
add esp, 0x18
ret 8
mov eax, dword [esp + 8]
mov edx, edi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46c720
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x1c]
test eax, eax
pop esi
setne al
pop edi
xor ecx, esp
call fcn.004aeca3
add esp, 0x18
ret 8
Function at 0x46c7d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push esi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x18], 0
call fcn.004afb50
add esp, 0xc
xor eax, eax
jmp 0x46c810
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x46c810
push edi
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46c830
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 8
cmp dword [ebx + 0x54], esi
pop edi
jb 0x46c85a
mov ecx, dword [ebx + 0x40]
jmp 0x46c85d
lea ecx, [ebx + 0x40]
lea edx, [esp + 0x214]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x46c864
cmp dword [ebx + 0x38], esi
jb 0x46c87f
mov ecx, dword [ebx + 0x24]
jmp 0x46c882
lea ecx, [ebx + 0x24]
lea edx, [esp + 0x41c]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x46c890
lea ecx, [esp + 8]
push ecx
push 2
push 0
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46c8fe
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea eax, [esp + 0x218]
push eax
push 1
push 0
push str.CfgRootPath
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x420]
push edx
push 1
push 0
push str.CfgUserPath
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x620
ret
Function at 0x46d450
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x46d472
mov eax, dword [esi + 0x40]
jmp 0x46d475
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push 0x581bb8
push eax
call fcn.00405340
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d4a9
lea edx, [esp + 4]
push edx
call fcn.0046eb50
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x46d4b0
mov ecx, dword [str.Config.ini]
mov edx, dword [0x581ba4]
mov dword [eax], ecx
mov ecx, dword [0x581ba8]
mov dword [eax + 4], edx
mov edx, dword [0x581bac]
mov dword [eax + 8], ecx
mov ecx, dword [0x581bb0]
mov dword [eax + 0xc], edx
mov dx, word [0x581bb4]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d500
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x58]
call fcn.00402120
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret

Function at 0x46d540
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x46d562
mov eax, dword [esi + 0x40]
jmp 0x46d565
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push 0x581bb8
push eax
call fcn.00405340
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d599
lea edx, [esp + 4]
push edx
call fcn.0046eb50
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x46d5a0
mov ecx, dword [str.Related.ini]
mov edx, dword [0x581bd8]
mov dword [eax], ecx
mov ecx, dword [0x581bdc]
mov dword [eax + 4], edx
mov edx, dword [0x581be0]
mov dword [eax + 8], ecx
mov ecx, dword [0x581be4]
mov dword [eax + 0xc], edx
mov edx, dword [0x581be8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x46d5f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d5f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0xac]
call fcn.00402120
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret
Function at 0x46e1d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x14], 0
call fcn.004afb50
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.0046c690
test al, al
jne 0x46e259
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.0046c630
test al, al
jne 0x46e259
push 0
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e244
sub eax, edx
sar eax, 1
je 0x46e2f2
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e261
mov edx, dword [0x5a6604]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e280
push esi
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e2a3
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x46e2ce
lea edx, [esp + 8]
push edx
call fcn.0046eb50
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e2d5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00402120
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x210
ret
Function at 0x46e310
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x14], 0
call fcn.004afb50
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.0046c690
test al, al
jne 0x46e399
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.0046c630
test al, al
jne 0x46e399
push 0
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e384
sub eax, edx
sar eax, 1
je 0x46e432
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e3a1
mov edx, dword [0x5a6604]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e3c0
push esi
mov ecx, 0xa
mov esi, str.PeopleCalendar.users
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46e3e3
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x46e40e
lea edx, [esp + 8]
push edx
call fcn.0046eb50
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e415
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x20]
call fcn.00402120
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x210
ret
Function at 0x46eb00
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x30
ret

Function at 0x46eb50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46eb60
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00492578
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46eb95
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x46ebfc
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x46ebdc
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x46ebd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46ebf6
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x46ebb6
pop ebx
push esi
call fcn.00492573
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.00492573
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x46ef10
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov esi, dword [esp + 0x42c]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x46ef70
xor eax, eax
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004aeca3
add esp, 0x424
ret
push ebx
push 0x206
lea ecx, [esp + 0x226]
push 0
push ecx
mov word [esp + 0x22c], 0
call fcn.004afb50
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x5a6624
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x220]
push eax
call ebx
test eax, eax
jne 0x46f081
mov ecx, dword [esp + 8]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x206
lea edx, [esp + 0x22]
push 0
push edx
mov word [esp + 0x28], 0
call fcn.004afb50
add esp, 0xc
push 0
push 0x26
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x1c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46f020
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
pop edi
jne 0x46f05b
pop ebx
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004aeca3
add esp, 0x424
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov ecx, eax
sub edx, ecx
jmp 0x46f070
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46f070
jmp 0x46f0aa
lea eax, [esp + 0x220]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46f090
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x428]
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.004aeca3
add esp, 0x424
ret
Function at 0x46f0d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x22]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x28], di
call fcn.004afb50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push 0x5a6708
push closesocket
call esi
test eax, eax
je 0x46f14a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x220
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x20019
push edi
push str.shell
push eax
call esi
test eax, eax
jne 0x46f131
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edi
push str.opencommand
push edx
call esi
test eax, eax
jne 0x46f131
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push 0x5a6624
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push eax
call fcn.004b23bc
push 0x57415c
push eax
call fcn.004ae74f
add esp, 0xc
cmp eax, edi
je 0x46f131
lea esi, [eax + 2]
push 0x57415c
push esi
call fcn.004ae74f
add esp, 8
cmp eax, edi
je 0x46f131
push esi
mov word [eax], di
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x224]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.004aeca3
add esp, 0x220
ret

Function at 0x46f230
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004afb50
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x574fd8
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00405340
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46f2c2
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x828
ret