joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471487
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 0x4714f0
cmp dword [ebp + 0x10], 1
je 0x4714c8
cmp dword [ebp + 0x10], 2
je 0x4714c8
push 0xd
pop eax
jmp 0x4714f0
mov eax, dword [ebp - 4]
test edi, edi
je 0x4714ea
test eax, eax
je 0x4714e5
test al, 1
jne 0x4714c3
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4714ea
jmp 0x4714c3
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 0x471da8
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.00484550
movzx eax, word [ebp + 8]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00430579
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 0x471e17
xor eax, eax
jmp 0x471e58
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 0x471e43
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x471e13
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x471e55
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.00484647
leave
ret 8
Function at 0x471e69
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.00484550
mov eax, dword [0x4c68e8]
mov dword [ebp + 0x1bc], eax
mov eax, dword [0x4c68ec]
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 0x471ef8
xor eax, eax
jmp 0x471fe6
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], edi
call fcn.00471889
mov eax, dword [ebp - 0x50]
cmp eax, edi
jbe 0x471f1f
lea eax, [ebp + eax*2 - 0x4e]
cmp word [eax], 0x5c
jne 0x471f1f
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 0x471ef1
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 0x471fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x471fda
mov esi, dword [ebp - 0x80]
cmp esi, 1
jbe 0x471fda
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 0x471fda
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 0x471fbe
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x471fbe
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 0x471fda
cmp esi, edi
je 0x471fda
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.00484647
add ebp, 0x1c8
leave
ret 8
Function at 0x4742de
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, 0x4bc070
call fcn.00485421
mov eax, dword [ebp + 0x420]
mov ax, word [eax]
mov esi, 0x4c8350
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 0x474359
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.00484647
add ebp, 0x418
leave
ret 4
push 0x4c8344
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.0041cbde
push 0x3ff
lea eax, [ebp + 0xd]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0xc], bl
call fcn.00484550
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.0041d37e
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.0041d354
cmp edi, ebx
jbe 0x474405
mov edi, str.DeviceHarddisk
push edi
call fcn.00484d27
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00489e6c
add esp, 0x10
test eax, eax
je 0x474405
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
jmp 0x474332
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 0x474442
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 0x474334
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 0x474477
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x474425
xor esi, esi
inc esi
cmp dword [ebp + 0x28], 4
je 0x474486
cmp dword [ebp + 0x28], 7
jne 0x474488
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x474425
Function at 0x4745c6
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x4bc0c3
call fcn.00485421
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.00474493
test eax, eax
je 0x4746dd
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.0048f534
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4746da
push eax
push edi
call esi
test eax, eax
je 0x4746d1
mov esi, dword [ebp - 0x20]
or dword [ebp - 0x1c], 0xffffffff
cmp word [esi], bx
je 0x4746d1
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004742de
test eax, eax
je 0x4746a2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00474493
test eax, eax
je 0x4746a2
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
je 0x4746a2
cmp edi, dword [ebp - 0x1c]
je 0x4746a2
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.00472158
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x4746c5
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.00471889
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jne 0x474636
jmp 0x4746d1
mov dword [ebp - 0x24], 1
call fcn.0040dd20
push dword [ebp - 0x20]
call fcn.00485811
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.004854f9
ret 0xc
Function at 0x4746e5
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x4bc0e6
call fcn.0048548a
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.0048f534
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x474733
xor eax, eax
xor edx, edx
jmp 0x4747ee
push eax
push ebx
call esi
test eax, eax
je 0x4747df
mov esi, dword [ebp - 0x58]
xor eax, eax
cmp ax, word [esi]
je 0x4747df
push esi
lea ecx, [ebp - 0x48]
call fcn.004692d5
mov ecx, dword [ebp - 0x54]
push esi
mov dword [ebp - 4], edi
call fcn.004742de
test eax, eax
je 0x4747af
push 2
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00472509
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
jae 0x474787
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
call fcn.0047136f
test eax, eax
je 0x4747a4
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.00468e71
lea eax, [ebp - 0x5c]
push eax
push 0x104
push esi
mov dword [ebp - 0x5c], edi
call fcn.00471889
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.00468e71
cmp esi, edi
jne 0x474742
push dword [ebp - 0x58]
call fcn.00485811
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
pop ecx
call fcn.0048550d
ret

Function at 0x4747f4
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.00484550
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.00474493
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret 4
Function at 0x47485c
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 0x4748b0
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 0x4748b7
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 0x4c6890
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 0x474911
mov ecx, ebx
call fcn.004746e5
push edx
push eax
push 0x4c8358
push edi
call fcn.0041cc03
add esp, 0x10
push 1
mov ecx, edi
call fcn.004717a0
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.00484647
leave
ret 4
Function at 0x4749d9
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4bc113
call fcn.00485421
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp eax, edi
jne 0x4749fb
xor eax, eax
jmp 0x474b74
mov dword [eax], edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.004747f4
test eax, eax
je 0x4749f4
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.0048f534
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x474b71
push eax
push ebx
call esi
test eax, eax
je 0x474b68
mov esi, dword [ebp - 0x24]
or dword [ebp - 0x20], 0xffffffff
cmp word [esi], di
je 0x474b68
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004742de
test eax, eax
je 0x474b28
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x18], edi
call fcn.00471da8
test eax, eax
je 0x474b28
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], 1
cmp ebx, dword [ebp - 0x1c]
je 0x474b28
cmp ebx, dword [ebp - 0x20]
je 0x474b28
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.00472158
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
cmp eax, edi
jne 0x474b4b
cmp dword [ebx - 0xc], edi
jne 0x474af2
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi]
push eax
call fcn.00473bfd
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], edi
je 0x474afd
push ebx
call fcn.00472d3d
pop ecx
cmp eax, edi
jne 0x474b4b
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.00472127
cmp eax, edi
jne 0x474b4b
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.00471889
mov eax, dword [ebp - 0x18]
lea esi, [esi + eax*2 + 2]
cmp esi, edi
jne 0x474a52
jmp 0x474b68
mov eax, dword [ebp + 8]
mov dword [eax], 2
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x474b60
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea ecx, [ebx - 0x10]
call fcn.0040dd20
push dword [ebp - 0x24]
call fcn.00485811
pop ecx
mov eax, dword [ebp - 0x28]
call fcn.004854f9
ret 8
Function at 0x474b7c
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, 0x4bc136
call fcn.00485421
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.00471706
test eax, eax
je 0x474be2
cmp dword [ebp - 0x10], ebx
jne 0x474bd3
mov ecx, esi
call fcn.00471761
test eax, eax
je 0x474be2
mov ecx, esi
call fcn.00474938
test eax, eax
jne 0x474ccd
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.004747f4
push 0x208
mov edi, eax
lea eax, [ebp]
push ebx
push eax
call fcn.00484550
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x474cc3
cmp edi, ebx
je 0x474cc3
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.00472158
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x474cb7
cmp dword [edi - 0xc], ebx
jne 0x474c69
lea eax, [ebp - 0x14]
push eax
push dword [ebp]
mov ecx, esi
call fcn.00473bfd
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x474c73
push edi
call fcn.00472d3d
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x474cb7
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.00472127
test eax, eax
je 0x474c9f
mov dword [ebp - 0x10], 1
jmp 0x474cb7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004722e0
test eax, eax
je 0x474cb7
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.0047485c
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.00484647
add ebp, 0x20c
leave
ret
Function at 0x474dcd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00484d50
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 0x474ead
test edi, edi
je 0x474ead
cmp dword [ebp + 0x10], 0x80
jl 0x474ead
and dword [ebp - 0x200c], 0
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00484550
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x474ead
cmp eax, 0x1fff
ja 0x474ead
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474ead
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4ce544
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474ead
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484550
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 0x4c5f10
push edi
call fcn.0041dcf0
xor eax, eax
add esp, 0x24
inc eax
jmp 0x474eaf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret
Function at 0x475086
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.00484550
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 0x475182
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 0x4750fe
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x475176
push esi
push 0x8440c100
push esi
push esi
push 0x4cd6f8
push edi
push 0x4cd718
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, esi
jne 0x47512c
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
jmp 0x475174
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x47514c
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
jmp 0x475174
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.00484647
leave
ret 4

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

Function at 0x47548f
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.00484550
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.00484647
add ebp, 0xa0
leave
ret

Function at 0x476b17
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00476a6e
test eax, eax
jne 0x476b2b
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.00487ca0
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
leave
ret
Function at 0x477209
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 0x478c23
Capabilities:
Encode data using xor

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

Function at 0x47b6fb
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, 0x4bc4d1
call fcn.00485421
lea ecx, [ebp - 0x1c]
call fcn.0046ffd5
push 0x4c63a4
xor esi, esi
push 0x13f
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.004702e1
test eax, eax
jne 0x47b774
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046ffe6
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.00484647
add ebp, 0x20c
leave
ret
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00484550
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.0041cbde
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00470545
test eax, eax
jne 0x47b7e6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046ffe6
mov eax, esi
jmp 0x47b751
push 0x4c8c10
lea ecx, [ebp - 0x10]
call fcn.0047b6b8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b7c8
push dword [ebp - 0x10]
call fcn.0040e4f0
mov esi, eax
jmp 0x47b7c8