joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470ff1
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 0x47105a
cmp dword [ebp + 0x10], 1
je 0x471032
cmp dword [ebp + 0x10], 2
je 0x471032
push 0xd
pop eax
jmp 0x47105a
mov eax, dword [ebp - 4]
test edi, edi
je 0x471054
test eax, eax
je 0x47104f
test al, 1
jne 0x47102d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x471054
jmp 0x47102d
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 0x471912
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.004840d0
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 0x471981
xor eax, eax
jmp 0x4719c2
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 0x4719ad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47197d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x4719bf
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.004841c7
leave
ret 8
Function at 0x4719d3
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.004840d0
mov eax, dword [0x4c6818]
mov dword [ebp + 0x1bc], eax
mov eax, dword [0x4c681c]
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 0x471a62
xor eax, eax
jmp 0x471b50
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], edi
call fcn.004713f3
mov eax, dword [ebp - 0x50]
cmp eax, edi
jbe 0x471a89
lea eax, [ebp + eax*2 - 0x4e]
cmp word [eax], 0x5c
jne 0x471a89
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 0x471a5b
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 0x471b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x471b44
mov esi, dword [ebp - 0x80]
cmp esi, 1
jbe 0x471b44
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 0x471b44
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 0x471b28
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x471b28
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 0x471b44
cmp esi, edi
je 0x471b44
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.004841c7
add ebp, 0x1c8
leave
ret 8
Function at 0x473e54
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, 0x4bbb47
call fcn.00484f9f
mov eax, dword [ebp + 0x420]
mov ax, word [eax]
mov esi, 0x4c8280
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 0x473ecf
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.004841c7
add ebp, 0x418
leave
ret 4
push 0x4c8274
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.004840d0
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 0x473f7b
mov edi, str.DeviceHarddisk
push edi
call fcn.004848a7
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.004899ec
add esp, 0x10
test eax, eax
je 0x473f7b
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
jmp 0x473ea8
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 0x473fb8
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 0x473eaa
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 0x473fed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x473f9b
xor esi, esi
inc esi
cmp dword [ebp + 0x28], 4
je 0x473ffc
cmp dword [ebp + 0x28], 7
jne 0x473ffe
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x473f9b
Function at 0x47413c
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x4bbb9a
call fcn.00484f9f
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.00474009
test eax, eax
je 0x474253
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.0048f0b4
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x474250
push eax
push edi
call esi
test eax, eax
je 0x474247
mov esi, dword [ebp - 0x20]
or dword [ebp - 0x1c], 0xffffffff
cmp word [esi], bx
je 0x474247
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00473e54
test eax, eax
je 0x474218
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00474009
test eax, eax
je 0x474218
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
je 0x474218
cmp edi, dword [ebp - 0x1c]
je 0x474218
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.00471cce
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x47423b
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.004713f3
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jne 0x4741ac
jmp 0x474247
mov dword [ebp - 0x24], 1
call fcn.0040dd20
push dword [ebp - 0x20]
call fcn.0048538f
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.00485077
ret 0xc
Function at 0x47425b
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x4bbbbd
call fcn.00485008
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.0048f0b4
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x4742a9
xor eax, eax
xor edx, edx
jmp 0x474364
push eax
push ebx
call esi
test eax, eax
je 0x474355
mov esi, dword [ebp - 0x58]
xor eax, eax
cmp ax, word [esi]
je 0x474355
push esi
lea ecx, [ebp - 0x48]
call fcn.004690b6
mov ecx, dword [ebp - 0x54]
push esi
mov dword [ebp - 4], edi
call fcn.00473e54
test eax, eax
je 0x474325
push 2
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0047207f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
jae 0x4742fd
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
call fcn.00470ed9
test eax, eax
je 0x47431a
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.00468c5e
lea eax, [ebp - 0x5c]
push eax
push 0x104
push esi
mov dword [ebp - 0x5c], edi
call fcn.004713f3
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.00468c5e
cmp esi, edi
jne 0x4742b8
push dword [ebp - 0x58]
call fcn.0048538f
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
pop ecx
call fcn.0048508b
ret

Function at 0x47436a
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.004840d0
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.00474009
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret 4
Function at 0x4743d2
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 0x474426
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 0x47442d
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 0x4c67c0
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 0x474487
mov ecx, ebx
call fcn.0047425b
push edx
push eax
push 0x4c8288
push edi
call fcn.0041cbb1
add esp, 0x10
push 1
mov ecx, edi
call fcn.0047130a
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.004841c7
leave
ret 4
Function at 0x47454f
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4bbbea
call fcn.00484f9f
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp eax, edi
jne 0x474571
xor eax, eax
jmp 0x4746ea
mov dword [eax], edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0047436a
test eax, eax
je 0x47456a
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.0048f0b4
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4746e7
push eax
push ebx
call esi
test eax, eax
je 0x4746de
mov esi, dword [ebp - 0x24]
or dword [ebp - 0x20], 0xffffffff
cmp word [esi], di
je 0x4746de
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00473e54
test eax, eax
je 0x47469e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x18], edi
call fcn.00471912
test eax, eax
je 0x47469e
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], 1
cmp ebx, dword [ebp - 0x1c]
je 0x47469e
cmp ebx, dword [ebp - 0x20]
je 0x47469e
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.00471cce
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
cmp eax, edi
jne 0x4746c1
cmp dword [ebx - 0xc], edi
jne 0x474668
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi]
push eax
call fcn.00473773
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], edi
je 0x474673
push ebx
call fcn.004728b3
pop ecx
cmp eax, edi
jne 0x4746c1
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.00471c91
cmp eax, edi
jne 0x4746c1
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.004713f3
mov eax, dword [ebp - 0x18]
lea esi, [esi + eax*2 + 2]
cmp esi, edi
jne 0x4745c8
jmp 0x4746de
mov eax, dword [ebp + 8]
mov dword [eax], 2
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x4746d6
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea ecx, [ebx - 0x10]
call fcn.0040dd20
push dword [ebp - 0x24]
call fcn.0048538f
pop ecx
mov eax, dword [ebp - 0x28]
call fcn.00485077
ret 8
Function at 0x4746f2
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, 0x4bbc0d
call fcn.00484f9f
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.00471270
test eax, eax
je 0x474758
cmp dword [ebp - 0x10], ebx
jne 0x474749
mov ecx, esi
call fcn.004712cb
test eax, eax
je 0x474758
mov ecx, esi
call fcn.004744ae
test eax, eax
jne 0x474843
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.0047436a
push 0x208
mov edi, eax
lea eax, [ebp]
push ebx
push eax
call fcn.004840d0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x474839
cmp edi, ebx
je 0x474839
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.00471cce
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x47482d
cmp dword [edi - 0xc], ebx
jne 0x4747df
lea eax, [ebp - 0x14]
push eax
push dword [ebp]
mov ecx, esi
call fcn.00473773
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x4747e9
push edi
call fcn.004728b3
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x47482d
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.00471c91
test eax, eax
je 0x474815
mov dword [ebp - 0x10], 1
jmp 0x47482d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00471e56
test eax, eax
je 0x47482d
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.004743d2
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.004841c7
add ebp, 0x20c
leave
ret
Function at 0x474943
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004848d0
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 0x474a23
test edi, edi
je 0x474a23
cmp dword [ebp + 0x10], 0x80
jl 0x474a23
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004840d0
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x474a23
cmp eax, 0x1fff
ja 0x474a23
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474a23
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce474
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474a23
push dword [ebp + 0x10]
push 0
push edi
call fcn.004840d0
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 0x4c5e40
push edi
call fcn.0041dc9e
xor eax, eax
add esp, 0x24
inc eax
jmp 0x474a25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret
Function at 0x474bfc
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.004840d0
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 0x474cf8
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 0x474c74
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x474cec
push esi
push 0x8440c100
push esi
push esi
push 0x4cd628
push edi
push 0x4cd648
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, esi
jne 0x474ca2
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
jmp 0x474cea
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x474cc2
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
jmp 0x474cea
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.004841c7
leave
ret 4

Function at 0x474e95
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 0x474e82
push eax
push eax
mov dword [esi], eax
mov dword [ebp - 4], eax
call fcn.0048e60c
add esp, 0x18
mov dword [esi + 8], eax
pop esi
leave
ret

Function at 0x475005
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.004840d0
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.004841c7
add ebp, 0xa0
leave
ret

Function at 0x47668d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004765e4
test eax, eax
jne 0x4766a1
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.00487820
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
leave
ret
Function at 0x476d7f
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 0x478799
Capabilities:
Encode data using xor

Disassembly:
shr dword [esp + 8], 2
xor edx, edx
cmp dword [esp + 8], edx
jle 0x4787d6
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 0x4787a8
pop edi
pop esi
ret

Function at 0x47b271
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, 0x4bbfa8
call fcn.00484f9f
lea ecx, [ebp - 0x1c]
call fcn.0046fb41
push 0x4c62d4
xor esi, esi
push 0x13f
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0046fe4d
test eax, eax
jne 0x47b2ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046fb52
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.004841c7
add ebp, 0x20c
leave
ret
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.004840d0
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.004700b1
test eax, eax
jne 0x47b35c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046fb52
mov eax, esi
jmp 0x47b2c7
push 0x4c8b40
lea ecx, [ebp - 0x10]
call fcn.0047b22e
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b33e
push dword [ebp - 0x10]
call fcn.0040e4f0
mov esi, eax
jmp 0x47b33e