joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4625b4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x18
mov eax, 0x4b310e
call fcn.00476610
mov eax, dword [ebp + 0x21c]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x462616
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x214
leave
ret 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0045f93b
mov esi, eax
cmp esi, ebx
je 0x4625ef
push 0x4f9e18
lea ecx, [ebp - 0x14]
call fcn.0040284b
push 0x4fbd80
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00460e88
push dword [0x4fbd80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4626be
push dword [0x4fbd80]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x4626be
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push 1
push 0x23
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402530
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004608c1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402870
jmp 0x4626cb
push 0x4fbd80
lea ecx, [ebp - 0x14]
call fcn.00401c8e
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [esi]
cdq
push edx
push eax
push edi
push esi
call dword [ecx + 0x34]
test eax, eax
je 0x4626fc
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
cmp eax, ebx
jne 0x4627bb
push dword [ebp - 0x1c]
mov eax, dword [esi]
push esi
call dword [eax + 0x58]
movzx ecx, ax
cmp cx, bx
jne 0x46271a
lea ecx, [edi - 0x10]
call fcn.00402870
jmp 0x4625ef
xor eax, eax
push 0x3a
lea edi, [ebp + 0x20a]
stosd dword es:[edi], eax
pop eax
mov word [ebp + 0x20a], ax
lea eax, [ebp + 0x208]
mov word [ebp + 0x208], cx
push eax
lea ecx, [ebp - 0x18]
call fcn.00402530
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 1
call fcn.004608c1
add esp, 0xc
test eax, eax
je 0x46277f
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
mov byte [ebp - 0xd], bl
cmp eax, ebx
jne 0x462783
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 4], ebx
call fcn.00402870
cmp byte [ebp - 0xd], bl
je 0x4627bb
push ebx
push ebx
push 0x99
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, ebx
jmp 0x4625f1
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c8e
xor ebx, ebx
inc ebx
jmp 0x4627a9
Function at 0x463d39
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00475570
movzx eax, word [ebp + 8]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415927
add esp, 0x1c
push esi
push esi
push 3
push esi
push 3
push closesocket
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x463da8
xor eax, eax
jmp 0x463de9
push esi
lea eax, [ebp - 0x210]
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
test eax, eax
jne 0x463dd4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x463da4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x463de6
mov eax, dword [ebp - 0x218]
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret 8
Function at 0x466220
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0xc
mov eax, 0x4b34a4
call fcn.00476610
mov eax, dword [ebp + 0x420]
mov ax, word [eax]
mov esi, 0x4c4c60
lea edi, [ebp + 0x40c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp + 0x40c], ax
lea eax, [ebp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x46629b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x418
leave
ret 4
push 0x4bc970
lea ecx, [ebp - 0x14]
call fcn.00402530
lea eax, [ebp + 0x40c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00403b3b
push 0x3ff
lea eax, [ebp + 0xd]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0xc], bl
call fcn.00475570
add esp, 0xc
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
mov esi, 0x400
push esi
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004160d2
push eax
lea eax, [ebp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040b36f
cmp edi, ebx
jbe 0x466347
mov edi, str.DeviceHarddisk
push edi
call fcn.0047600e
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00477e6d
add esp, 0x10
test eax, eax
je 0x466347
lea ecx, [edi - 0x10]
call fcn.00402870
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x466274
push ebx
push 0x80
push 3
push ebx
push 1
push 0x20000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x466384
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, ebx
jmp 0x466276
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push edi
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4663b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x466367
xor esi, esi
inc esi
cmp dword [ebp + 0x28], 4
je 0x4663c8
cmp dword [ebp + 0x28], 7
jne 0x4663ca
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x466367
Function at 0x466508
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x4b34d4
call fcn.00476610
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
call fcn.004663d5
test eax, eax
je 0x46661f
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
push 0x4f9e94
xor ecx, ecx
push 2
pop edx
mov edi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00477bb4
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x46661c
push eax
push edi
call esi
test eax, eax
je 0x466613
mov esi, dword [ebp - 0x20]
or dword [ebp - 0x1c], 0xffffffff
cmp word [esi], bx
je 0x466613
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00466220
test eax, eax
je 0x4665e4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x14], ebx
call fcn.004663d5
test eax, eax
je 0x4665e4
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
je 0x4665e4
cmp edi, dword [ebp - 0x1c]
je 0x4665e4
push 0x4f9e18
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
call fcn.0040284b
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.004640c4
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x466607
or dword [ebp - 4], 0xffffffff
call fcn.00402870
lea eax, [ebp - 0x14]
push eax
push closesocket
push esi
mov dword [ebp - 0x14], ebx
call fcn.0046381a
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jne 0x466578
jmp 0x466613
mov dword [ebp - 0x24], 1
call fcn.00402870
push dword [ebp - 0x20]
call fcn.00476c84
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.004766e8
ret 0xc
Function at 0x466627
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push 4
pop edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], esi
je 0x466706
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestW]
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test eax, eax
jle 0x466705
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4666c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x46667f
cmp eax, 0x2f19
jne 0x4666b8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1f
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0xc], 0x3180
push edi
lea eax, [ebp - 0xc]
push eax
push 0x1f
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x46664d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46664d
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4666bd
cmp dword [ebp - 8], 0xc8
je 0x466705
cmp dword [ebp - 8], 0xce
je 0x466705
mov dword [ebp - 4], esi
jmp 0x46664d
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x466891
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
cmp esi, eax
jne 0x4668a0
xor eax, eax
pop esi
ret
push eax
push eax
push eax
push dword [esi + 0x10]
call fcn.00401dc5
test eax, eax
je 0x46689c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
ret
Function at 0x468e80
Capabilities:
Hide graphical window

Disassembly:
push 0xe8
mov eax, 0x4b37d3
call fcn.00476610
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 0x64
jne 0x468f77
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
xor ebx, ebx
push ebx
push ebx
push 1
push 4
lea edi, [esi + 0xe4]
push edi
push 0x421
lea ecx, [esi + 0x54]
call fcn.00440f88
lea ecx, [ebp - 0xf4]
call fcn.00441140
push 0x4f9e18
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040284b
push edi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.00442fa8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
push eax
mov dword [0x4f7c78], eax
push 0x44e
push dword [esi + 4]
call fcn.0043da57
add esp, 0xc
push edi
mov ecx, 0x4f7c84
call fcn.00401c8e
push dword [ebp - 0x94]
lea ecx, [ebp + 8]
call fcn.004027b6
mov ecx, 0x4f7c38
call fcn.00439dde
cmp eax, ebx
je 0x468f44
mov ecx, eax
call fcn.0045f3af
push edi
mov ecx, eax
call fcn.00401c8e
push dword [ebp - 0x94]
push 0x424
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402870
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00440c8b
jmp 0x4690c5
cmp eax, 0x65
jne 0x469072
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x2853
push ebx
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4690c5
push 0x2854
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4690c5
cmp dword [esi + 0xf0], 0
je 0x469049
inc dword [esi + 0xec]
mov eax, dword [esi + 0xec]
cmp eax, 8
jae 0x469034
push ebx
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46900d
push ebx
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x2854
push dword [esi + 4]
call edi
push 5
push eax
call ebx
jmp 0x4690c5
push 0x2854
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [esi + 4]
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4690c5
cmp eax, 0x17
jbe 0x4690c5
mov dword [esi + 0xec], 1
jmp 0x4690c5
push ebx
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x2854
push dword [esi + 4]
call edi
push 0
push eax
call ebx
and dword [esi + 0xec], 0
jmp 0x4690c5
cmp eax, 0x66
jne 0x46908a
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call fcn.00468c3a
jmp 0x4690c5
cmp eax, 0x67
jne 0x4690c5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebp - 0x54]
call fcn.00450594
push 0
mov dword [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x54]
call fcn.00466c58
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004504c4
call fcn.004766e8
ret 4
Function at 0x469754
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x46977a
cmp dword [ebp - 4], 0
je 0x46978f
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x46999b
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push edi
xor edi, edi
push edi
push 1
push 0x4f8ad8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4699d3
xor eax, eax
inc eax
jmp 0x469b7b
push esi
push str.DRIVERDLL
push 0x1389
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4699f2
xor eax, eax
jmp 0x469b7a
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
jne 0x469a13
xor eax, eax
jmp 0x469b79
mov esi, 0x208
push esi
lea eax, [ebp + 0x19c]
push edi
push eax
mov dword [ebp - 0x74], edi
call fcn.00475570
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00475570
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x469a62
lea eax, [ebp + 0x19c]
push eax
push edi
push 0x4c528c
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp + 0x19c], di
jne 0x469a80
push 0x4c5268
lea eax, [ebp + 0x19c]
push esi
push eax
call fcn.004782f4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x469b76
push edi
push edi
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x469b76
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x80], edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x469b69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x19c]
push edi
push eax
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x469b69
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x469b69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c5260
push ebx
call esi
push 0x4c525c
push ebx
mov dword [ebp - 0x7c], eax
call esi
push 0x4c5258
push ebx
mov dword [ebp - 0x78], eax
call esi
push 0x4c5250
push ebx
mov dword [ebp - 0x70], eax
call esi
mov esi, eax
cmp dword [ebp - 0x7c], edi
je 0x469b62
cmp dword [ebp - 0x78], edi
je 0x469b62
cmp dword [ebp - 0x70], edi
je 0x469b62
cmp esi, edi
je 0x469b62
call dword [ebp - 0x7c]
test al, al
je 0x469b62
xor edi, edi
inc edi
push edi
push 0x4c523c
call dword [ebp - 0x78]
pop ecx
pop ecx
call dword [ebp - 0x70]
test al, al
je 0x469b60
mov dword [ebp - 0x74], edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x74]
pop ebx
pop esi
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop edi
call fcn.004755ea
add ebp, 0x3a8
leave
ret
Function at 0x46a274
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x46a282
cmp eax, 0xffffffff
jne 0x46a29c
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x46a1f3
push 0
push 0
call fcn.00476129
add esp, 0x18
mov dword [esi], eax
mov esi, dword [esi]
test esi, esi
je 0x46a2ac
cmp esi, 0xffffffff
je 0x46a2ac
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x46aa74
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b39c2
call fcn.00476610
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
mov esi, ecx
call fcn.00475570
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ebx, word [ebp]
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
movzx eax, bx
push eax
lea eax, [ebp - 0x10]
push str._c:_
push eax
mov dword [ebp - 4], edi
call fcn.00403b60
mov ebx, dword [ebp - 0x10]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x46ab2e
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
lea ecx, [ebx - 0x10]
call fcn.00402870
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x20c
leave
ret
push 8
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x46ab56
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
jmp 0x46ab69
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
xor edi, edi
inc edi
jmp 0x46ab01

Function at 0x46ac75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
mov esi, ecx
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push str.ipartner
push str.SOFTWARE360SafeCoop
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x5c], 0x64
mov dword [ebp - 0x58], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x30]
call fcn.004027b6
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004755ea
add ebp, 0x78
leave
ret
Function at 0x46ad68
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4b383d
call fcn.00476610
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, edi
mov dword [ebp + 0x1c], eax
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], eax
call fcn.0046a871
test al, al
jne 0x46ada0
mov ecx, dword [ebp + 8]
push 0x4f9e18
call fcn.0040284b
jmp 0x46adf0
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
lea ecx, [edi - 1]
jmp 0x46ade1
add ebx, edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0046a8a4
test al, al
je 0x46ad91
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x46adbd
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.00402530
push dword [ebp + 0x1c]
call fcn.0047725c
mov eax, dword [ebp + 8]
pop ecx
call fcn.004766e8
ret 0x18
Function at 0x46aeda
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4b38a3
call fcn.00476610
mov eax, dword [ebp + 0x214]
push eax
mov esi, ecx
mov dword [ebp - 0x18], eax
call fcn.0046ae91
push dword [esi + 0x14]
xor eax, eax
push dword [esi + 8]
xor edi, edi
push dword [esi + 0x30]
cmp dword [esi], edi
push dword [esi + 4]
sete al
push dword [esi + 0x2c]
lea ebx, [esi + 0x38]
push dword [esi + 0x28]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x34]
push str.V_sOV_d__dOW_dS_I64dM_I64dC_dipartner_sDT_dOAV_d
push ebx
call fcn.00403b60
add esp, 0x38
xor eax, eax
cmp dword [esi + 0xc], 6
jae 0x46afcd
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475570
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.oeminfo.ini
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b03c
push pe_nt_image_headers32
lea eax, [ebp]
push eax
push 0x4d3fa0
push str.Manufacturer
push str.General
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0046ad68
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401c8e
mov ecx, dword [ebp - 0x10]
jmp 0x46b030
push 0x1fe
mov word [ebp + 8], ax
lea eax, [ebp + 0xa]
push edi
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Manufacturer
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionOEMInformation
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46b03c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402530
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401c8e
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402870
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0046ab6e
push dword [eax]
mov dword [ebp - 4], 2
push str.oeminfo_s
push ebx
call fcn.0041f935
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x18]
push 0
push ebx
call fcn.004620cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x20c
leave
ret 4