joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471082
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4710eb
cmp dword [ebp + 0x10], 1
je 0x4710c3
cmp dword [ebp + 0x10], 2
je 0x4710c3
push 0xd
pop eax
jmp 0x4710eb
mov eax, dword [ebp - 4]
test edi, edi
je 0x4710e5
test eax, eax
je 0x4710e0
test al, 1
jne 0x4710be
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4710e5
jmp 0x4710be
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4719a3
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4e97d0]
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.00484150
movzx eax, word [ebp + 8]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00430526
add esp, 0x1c
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x471a12
xor eax, eax
jmp 0x471a53
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 0x471a3e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x471a0e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x471a50
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.00484247
leave
ret 8
Function at 0x471a64
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1d4]
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
push 0x206
mov word [ebp - 0x4c], ax
xor edi, edi
lea eax, [ebp - 0x4a]
push edi
push eax
mov dword [ebp - 0x60], esi
call fcn.00484150
mov eax, dword [0x4c6880]
mov dword [ebp + 0x1bc], eax
mov eax, dword [0x4c6884]
mov dword [ebp + 0x1c0], eax
mov ax, word [ebp + 0x1d0]
add esp, 0xc
mov word [ebp + 0x1bc], ax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x471af3
xor eax, eax
jmp 0x471be1
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], edi
call fcn.00471484
mov eax, dword [ebp - 0x50]
cmp eax, edi
jbe 0x471b1a
lea eax, [ebp + eax*2 - 0x4e]
cmp word [eax], 0x5c
jne 0x471b1a
xor ecx, ecx
mov word [eax], cx
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
cmp eax, 0xffffffff
je 0x471aec
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
lea ecx, [ebp - 0x5c]
push ecx
push 0x20
lea ecx, [ebp - 0x80]
push ecx
push edi
push edi
push 0x560000
push eax
mov dword [ebp - 0x5c], edi
call ebx
mov dword [ebp - 0x54], eax
cmp eax, edi
jne 0x471bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x471bd5
mov esi, dword [ebp - 0x80]
cmp esi, 1
jbe 0x471bd5
dec esi
imul esi, esi, 0x18
add esi, 0x20
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x471bd5
push edi
lea ecx, [ebp - 0x5c]
push ecx
push esi
push eax
push edi
push edi
push 0x560000
push dword [ebp - 0x58]
call ebx
mov dword [ebp - 0x54], eax
cmp eax, edi
je 0x471bb9
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x471bb9
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
push dword [ebp - 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471bd5
cmp esi, edi
je 0x471bd5
mov eax, dword [ebp - 0x78]
mov dword [esi], eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0x1c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
add ebp, 0x1c8
leave
ret 8
Function at 0x473ee5
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0xc
mov eax, 0x4bbbc7
call fcn.0048501f
mov eax, dword [ebp + 0x420]
mov ax, word [eax]
mov esi, 0x4c82e8
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 0x473f60
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.00484247
add ebp, 0x418
leave
ret 4
push 0x4c82dc
lea ecx, [ebp - 0x14]
call fcn.0040b680
lea eax, [ebp + 0x40c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0041cb8c
push 0x3ff
lea eax, [ebp + 0xd]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0xc], bl
call fcn.00484150
add esp, 0xc
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
mov esi, 0x400
push esi
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041d32c
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.0041d302
cmp edi, ebx
jbe 0x47400c
mov edi, str.DeviceHarddisk
push edi
call fcn.00484927
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00489a6c
add esp, 0x10
test eax, eax
je 0x47400c
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
jmp 0x473f39
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 0x474049
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, ebx
jmp 0x473f3b
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 0x47407e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x47402c
xor esi, esi
inc esi
cmp dword [ebp + 0x28], 4
je 0x47408d
cmp dword [ebp + 0x28], 7
jne 0x47408f
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x47402c
Function at 0x4741cd
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x4bbc1a
call fcn.0048501f
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.0047409a
test eax, eax
je 0x4742e4
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
push 0x4ecdec
xor ecx, ecx
push 2
pop edx
mov edi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048f134
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4742e1
push eax
push edi
call esi
test eax, eax
je 0x4742d8
mov esi, dword [ebp - 0x20]
or dword [ebp - 0x1c], 0xffffffff
cmp word [esi], bx
je 0x4742d8
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00473ee5
test eax, eax
je 0x4742a9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0047409a
test eax, eax
je 0x4742a9
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
je 0x4742a9
cmp edi, dword [ebp - 0x1c]
je 0x4742a9
push 0x4ecda4
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
call fcn.0040ba90
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00471d5f
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x4742cc
or dword [ebp - 4], 0xffffffff
call fcn.0040dd20
lea eax, [ebp - 0x14]
push eax
push SysReAllocString
push esi
mov dword [ebp - 0x14], ebx
call fcn.00471484
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jne 0x47423d
jmp 0x4742d8
mov dword [ebp - 0x24], 1
call fcn.0040dd20
push dword [ebp - 0x20]
call fcn.0048540f
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.004850f7
ret 0xc
Function at 0x4742ec
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x4bbc3d
call fcn.00485088
mov dword [ebp - 0x54], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
call esi
push 0x4ecdec
xor ecx, ecx
push 2
pop edx
mov ebx, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048f134
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x47433a
xor eax, eax
xor edx, edx
jmp 0x4743f5
push eax
push ebx
call esi
test eax, eax
je 0x4743e6
mov esi, dword [ebp - 0x58]
xor eax, eax
cmp ax, word [esi]
je 0x4743e6
push esi
lea ecx, [ebp - 0x48]
call fcn.00469147
mov ecx, dword [ebp - 0x54]
push esi
mov dword [ebp - 4], edi
call fcn.00473ee5
test eax, eax
je 0x4743b6
push 2
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00472110
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
jae 0x47438e
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
call fcn.00470f6a
test eax, eax
je 0x4743ab
mov eax, dword [ebp - 0x64]
add dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
adc dword [ebp - 0x4c], eax
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00468cef
lea eax, [ebp - 0x5c]
push eax
push 0x104
push esi
mov dword [ebp - 0x5c], edi
call fcn.00471484
mov eax, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x48]
lea esi, [esi + eax*2 + 2]
call fcn.00468cef
cmp esi, edi
jne 0x474349
push dword [ebp - 0x58]
call fcn.0048540f
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
pop ecx
call fcn.0048510b
ret

Function at 0x4743fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, ecx
call fcn.00484150
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push dword [ebp - 0x20c]
mov ecx, edi
call fcn.0047409a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 4
Function at 0x474463
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebx + 0xe], eax
test eax, eax
je 0x4744b7
push 0xe
pop ecx
mov esi, str.SOFTWARE360Safe_softmgrdg
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, str.sotm
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov dword [ebp - 0x4c], 0xb
jmp 0x4744be
mov dword [ebp - 0x4c], 0xa
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push 0
push str.solid
lea esi, [ebx + 0x1a]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push 0
push 0x4c6828
push dword [esi]
mov dword [ebp - 0x4c], 0x2718
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edi, [ebx + 0x42]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x474518
mov ecx, ebx
call fcn.004742ec
push edx
push eax
push 0x4c82f0
push edi
call fcn.0041cbb1
add esp, 0x10
push 1
mov ecx, edi
call fcn.0047139b
push eax
push str.Ghost
mov ecx, esi
call fcn.004189dd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
leave
ret 4
Function at 0x4745e0
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4bbc6a
call fcn.0048501f
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp eax, edi
jne 0x474602
xor eax, eax
jmp 0x47477b
mov dword [eax], edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.004743fb
test eax, eax
je 0x4745fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push edi
call esi
push 0x4ecdec
xor ecx, ecx
push 2
pop edx
mov ebx, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048f134
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x474778
push eax
push ebx
call esi
test eax, eax
je 0x47476f
mov esi, dword [ebp - 0x24]
or dword [ebp - 0x20], 0xffffffff
cmp word [esi], di
je 0x47476f
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00473ee5
test eax, eax
je 0x47472f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x18], edi
call fcn.004719a3
test eax, eax
je 0x47472f
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], 1
cmp ebx, dword [ebp - 0x1c]
je 0x47472f
cmp ebx, dword [ebp - 0x20]
je 0x47472f
push 0x4ecda4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.0040ba90
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 4], edi
call fcn.00471d5f
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
cmp eax, edi
jne 0x474752
cmp dword [ebx - 0xc], edi
jne 0x4746f9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi]
push eax
call fcn.00473804
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], edi
je 0x474704
push ebx
call fcn.00472944
pop ecx
cmp eax, edi
jne 0x474752
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
call fcn.00471d22
cmp eax, edi
jne 0x474752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.0040dd20
lea eax, [ebp - 0x18]
push eax
push SysReAllocString
push esi
mov dword [ebp - 0x18], edi
call fcn.00471484
mov eax, dword [ebp - 0x18]
lea esi, [esi + eax*2 + 2]
cmp esi, edi
jne 0x474659
jmp 0x47476f
mov eax, dword [ebp + 8]
mov dword [eax], 2
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x474767
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea ecx, [ebx - 0x10]
call fcn.0040dd20
push dword [ebp - 0x24]
call fcn.0048540f
pop ecx
mov eax, dword [ebp - 0x28]
call fcn.004850f7
ret 8
Function at 0x474783
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4bbc8d
call fcn.0048501f
mov esi, ecx
lea eax, [esi + 0x22]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00471301
test eax, eax
je 0x4747e9
cmp dword [ebp - 0x10], ebx
jne 0x4747da
mov ecx, esi
call fcn.0047135c
test eax, eax
je 0x4747e9
mov ecx, esi
call fcn.0047453f
test eax, eax
jne 0x4748d4
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.004743fb
push 0x208
mov edi, eax
lea eax, [ebp]
push ebx
push eax
call fcn.00484150
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4748ca
cmp edi, ebx
je 0x4748ca
push 0x4ecda4
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00471d5f
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4748be
cmp dword [edi - 0xc], ebx
jne 0x474870
lea eax, [ebp - 0x14]
push eax
push dword [ebp]
mov ecx, esi
call fcn.00473804
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x47487a
push edi
call fcn.00472944
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x4748be
lea eax, [esi + 0xa]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call fcn.00471d22
test eax, eax
je 0x4748a6
mov dword [ebp - 0x10], 1
jmp 0x4748be
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00471ee7
test eax, eax
je 0x4748be
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.0040dd20
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00474463
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
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.00484247
add ebp, 0x20c
leave
ret
Function at 0x4749d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00484950
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x474ab4
test edi, edi
je 0x474ab4
cmp dword [ebp + 0x10], 0x80
jl 0x474ab4
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x474ab4
cmp eax, 0x1fff
ja 0x474ab4
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474ab4
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce4dc
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474ab4
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484150
mov eax, dword [ebp - 0x2008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x4c5ea8
push edi
call fcn.0041dc9e
xor eax, eax
add esp, 0x24
inc eax
jmp 0x474ab6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret
Function at 0x474c8d
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x3e
mov word [ebp - 0x44], ax
xor esi, esi
lea eax, [ebp - 0x42]
push esi
push eax
call fcn.00484150
add esp, 0xc
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4c], eax
cmp eax, esi
je 0x474d89
push ebx
push str.s.360.cn
lea ecx, [ebp - 0x48]
call fcn.0040b680
push esi
push esi
push 3
push esi
push esi
push 0x50
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, esi
jne 0x474d05
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x474d7d
push esi
push 0x8440c100
push esi
push esi
push 0x4cd690
push edi
push 0x4cd6b0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, esi
jne 0x474d33
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
jmp 0x474d7b
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x474d53
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
jmp 0x474d7b
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x13
push edi
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
push dword [ebp - 0x4c]
call esi
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.0040dd20
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 4

Function at 0x474f26
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x474f13
push eax
push eax
mov dword [esi], eax
mov dword [ebp - 4], eax
call fcn.0048e68c
add esp, 0x18
mov dword [esi + 8], eax
pop esi
leave
ret

Function at 0x475096
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x9c]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00484247
add ebp, 0xa0
leave
ret

Function at 0x47671e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00476675
test eax, eax
jne 0x476732
or edx, 0xffffffff
mov eax, edx
leave
ret
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push 0
push 0
push dword [ebp - 4]
mov edi, eax
call fcn.004878a0
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
leave
ret
Function at 0x476e10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x47882a
Capabilities:
Encode data using xor

Disassembly:
shr dword [esp + 8], 2
xor edx, edx
cmp dword [esp + 8], edx
jle 0x478867
push esi
push edi
mov eax, dword [esp + 0xc]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
rol eax, 0x10
mov esi, eax
shr esi, 8
mov edi, eax
shl edi, 8
xor esi, edi
and esi, 0xff00ff
shl eax, 8
xor esi, eax
inc edx
cmp edx, dword [esp + 0x10]
mov dword [ecx], esi
jl 0x478839
pop edi
pop esi
ret

Function at 0x47b302
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x4bc028
call fcn.0048501f
lea ecx, [ebp - 0x1c]
call fcn.0046fbd2
push 0x4c633c
xor esi, esi
push 0x13f
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0046fede
test eax, eax
jne 0x47b37b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046fbe3
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 + 0x208]
xor ecx, ebp
call fcn.00484247
add ebp, 0x20c
leave
ret
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b680
push str.5D71384B_38EA_4fe7_8C03_64840F939E27
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041cb8c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00470142
test eax, eax
jne 0x47b3ed
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046fbe3
mov eax, esi
jmp 0x47b358
push 0x4c8ba8
lea ecx, [ebp - 0x10]
call fcn.0047b2bf
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b3cf
push dword [ebp - 0x10]
call fcn.0040e4f0
mov esi, eax
jmp 0x47b3cf