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

Disassembly:
push 0x10
mov eax, 0x10171167
call fcn.1012b67a
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x100d778a
mov eax, dword [edi]
push edi
call dword [eax + 0x28]
mov ecx, eax
test ecx, ecx
je 0x100d778a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
cmp eax, 0x32
jge 0x100d778a
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001dd97
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d7779
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
cmp eax, 0x4c
jne 0x100d7779
mov eax, dword [ebp - 0x18]
mov ebx, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov edi, eax
test edi, edi
je 0x100d7779
push 0x33
mov dword [ebp + 8], esi
call fcn.10010082
pop ecx
test eax, eax
je 0x100d76ee
lea ecx, [ebp + 8]
push ecx
push 0x20019
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x100d7704
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d7779
mov edi, dword [ebp + 8]
test edi, edi
je 0x100d7779
push 0x43
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], 4
call fcn.10010082
pop ecx
test eax, eax
je 0x100d773f
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push str.Start
push edi
call eax
jmp 0x100d7758
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d776a
cmp dword [ebp - 0x10], 4
jne 0x100d776a
cmp dword [ebp - 0x14], ebx
jne 0x100d776a
xor ebx, ebx
inc ebx
push dword [ebp + 8]
call fcn.10017c01
test ebx, ebx
je 0x100d7779
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100d778a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
call fcn.1012b643
ret 4

Function at 0x100e2f5b
Capabilities:
Get common file path

Disassembly:
push 0x420
mov eax, 0x10172faa
call fcn.1012b6ae
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420]
xor ebx, ebx
mov dword [ebp - 0x42c], esi
push 0x410
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x420]
push ebx
push 5
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100e2ff9
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012e65c
pop ecx
pop ecx
test eax, eax
je 0x100e2ff9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.100e3050
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [eax]
push esi
call fcn.100e554e
add esp, 0x10
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], bl
push dword [ebp - 0x428]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100e3012
push 0x101bd7f8
mov ecx, esi
call fcn.1001de59
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], 1
mov eax, esi
call fcn.1012b658
ret
Function at 0x100e301a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100e3028
or eax, 0xffffffff
pop ebp
ret
push edi
push dword [ebp + 8]
call fcn.10041a60
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x20000000
je 0x100e304b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, edi
pop edi
pop ebp
ret

Function at 0x100e3297
Capabilities:
Get common file path

Disassembly:
push 0x428
mov eax, 0x1017305f
call fcn.1012b6ae
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
xor ebx, ebx
mov dword [ebp - 0x434], edi
push 0x410
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x420]
mov esi, 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x100e3307
push 0x101bd7f8
mov ecx, edi
call fcn.1001de59
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], 1
jmp 0x100e33c9
cmp eax, esi
jae 0x100e331b
lea eax, [ebp - 0x420]
mov ecx, edi
push eax
call fcn.1001de59
jmp 0x100e32f5
mov esi, ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], 1
inc eax
xor ecx, ecx
mov dword [ebp - 0x430], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012b7a9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100e3368
push 0x101bd7f8
mov ecx, edi
call fcn.1001de59
mov dword [ebp - 0x424], 1
mov byte [ebp - 4], bl
push ebx
jmp 0x100e33c3
mov eax, dword [ebp - 0x42c]
lea eax, [eax*2 + 2]
push eax
push 0
push ebx
call fcn.1012db70
add esp, 0xc
push ebx
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100e33a4
push ebx
lea ecx, [ebp - 0x428]
call fcn.10043bc8
mov esi, dword [ebp - 0x428]
push ebx
call fcn.1012b7b2
xor eax, eax
mov dword [edi], esi
pop ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 1
mov byte [ebp - 4], al
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.1012b658
ret
Function at 0x100e36d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100e37e9
xor ebx, ebx
cmp word [edi], bx
je 0x100e37e9
push 0x410
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1012db70
mov esi, ebx
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push dword [esi + 0x10227440]
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100e37dd
push 0x410
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.1012db70
push 0x208
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.1004a2e3
add esp, 0x18
test eax, eax
je 0x100e3790
push SysReAllocString
lea eax, [ebp - 0x824]
push eax
push 0
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.10015d3f
push 0x101811bc
lea eax, [ebp - 0x414]
push eax
call ebx
mov eax, dword [esi + 0x10227440]
cmp eax, 0x1a
je 0x100e37ae
cmp eax, 0x23
jne 0x100e37bc
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
call fcn.10130fe5
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.10131342
add esp, 0x10
test eax, eax
je 0x100e37fa
add esi, 4
cmp esi, 0x20
jb 0x100e3720
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
xor eax, eax
inc eax
jmp 0x100e37eb

Function at 0x100e3a6d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100e3ad9
push esi
call fcn.10130fe5
pop ecx
push 0x3a
pop ebx
push 0x5c
pop edi
cmp eax, 3
jne 0x100e3a98
cmp word [esi + 2], bx
jne 0x100e3a98
cmp word [esi + 4], di
je 0x100e3ac8
push esi
call fcn.10130fe5
pop ecx
cmp eax, 7
jne 0x100e3ad9
cmp word [esi], di
jne 0x100e3ad9
cmp word [esi + 2], di
jne 0x100e3ad9
cmp word [esi + 4], 0x3f
jne 0x100e3ad9
cmp word [esi + 6], di
jne 0x100e3ad9
cmp word [esi + 0xa], bx
jne 0x100e3ad9
cmp word [esi + 0xc], di
jne 0x100e3ad9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100e3ad9
xor eax, eax
inc eax
jmp 0x100e3adb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100e4ad2
Capabilities:
Get common file path

Disassembly:
push 0x428
mov eax, 0x10173644
call fcn.1012b6ae
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.100e55fb
xor esi, esi
mov dword [ebp - 4], esi
push dword [eax]
lea eax, [ebp - 0x430]
push eax
call fcn.100e554e
add esp, 0x10
mov byte [ebp - 4], 2
push dword [ebp - 0x424]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x430]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
test eax, eax
je 0x100e4d3b
lea eax, [ebp - 0x428]
push eax
call fcn.100e33d1
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x424]
push eax
call fcn.100e554e
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x434]
push dword [eax]
call fcn.100088c7
mov byte [ebp - 4], 6
push dword [ebp - 0x424]
call edi
mov byte [ebp - 4], 7
push dword [ebp - 0x428]
call edi
lea eax, [ebp - 0x428]
push eax
call fcn.100e3297
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp - 0x42c]
push eax
call fcn.100e3050
add esp, 0xc
mov byte [ebp - 4], 0xa
push dword [ebp - 0x428]
call edi
push dword [ebp - 0x42c]
lea eax, [ebp - 0x428]
push eax
call fcn.100e554e
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x42c]
push eax
call fcn.10063ff6
mov byte [ebp - 4], 0xa
push dword [ebp - 0x428]
call edi
push dword [ebp - 0x42c]
call ebx
test eax, eax
je 0x100e4c07
push dword [ebp - 0x42c]
call ebx
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
call fcn.10131342
add esp, 0xc
test eax, eax
je 0x100e4d0c
mov eax, dword [ebp - 0x434]
cmp dword [eax - 0xc], 0
jle 0x100e4c74
push str.Temp_
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.1004978c
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x424]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x430]
call fcn.10131342
add esp, 0x18
test eax, eax
jne 0x100e4c62
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.100078bc
jmp 0x100e4d0c
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0x410
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push 0x20
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100e4d1d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.100e3050
mov byte [ebp - 4], 0x11
push dword [eax]
lea eax, [ebp - 0x424]
push eax
call fcn.100e554e
add esp, 0x10
mov byte [ebp - 4], 0x13
push dword [ebp - 0x428]
call edi
push dword [ebp - 0x424]
call ebx
test eax, eax
je 0x100e4d11
push dword [ebp - 0x424]
call ebx
push eax
push dword [ebp - 0x424]
push dword [ebp - 0x430]
call fcn.10131342
add esp, 0xc
test eax, eax
jne 0x100e4d11
mov byte [ebp - 4], 0xa
push dword [ebp - 0x424]
call edi
xor esi, esi
inc esi
jmp 0x100e4d1d
mov byte [ebp - 4], 0xa
push dword [ebp - 0x424]
call edi
mov byte [ebp - 4], 7
push dword [ebp - 0x42c]
call edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff0
call fcn.100078bc
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x430]
call edi
mov eax, esi
call fcn.1012b658
ret
Function at 0x100e5909
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 8]
or eax, 0xf003f
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100e595f
cmp dword [ebp + 0x20], eax
je 0x100e595f
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call fcn.1010e24e
mov ecx, eax
call fcn.1010cf74
mov eax, esi
pop esi
leave
ret 0x1c

Function at 0x100e6d55
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.10105d40
lea ecx, [ebp + 0xc]
call fcn.100e84c8
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
je 0x100e6dc5
push 0x11
call fcn.10010082
pop ecx
push 0
push edi
test eax, eax
je 0x100e6d88
call eax
jmp 0x100e6d8e
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.101074bd
test al, al
je 0x100e6dc1
mov edx, dword [esi + 0x10]
lea ecx, [edx + 2]
cmp dword [esi + 0x14], ecx
jb 0x100e6dc1
mov eax, dword [esi + 4]
mov edi, 0xfeff
cmp di, word [edx + eax]
jne 0x100e6dc1
mov dword [esi + 0x1c], 1
mov dword [esi + 0x10], ecx
jmp 0x100e6dc5
and dword [esi + 0x1c], 0
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100e8032
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101740d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102406a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CScanOperate.0
mov dword [ebp - 4], 7
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e807b
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 4], 0
lea edi, [esi + 0xf8]
xor ebx, ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x100e80b8
push dword [ecx + ebx*4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100e80a9
mov eax, dword [edi]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 4]
inc ebx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x100e8091
mov ecx, edi
call fcn.10015f3e
mov byte [ebp - 4], 6
lea ecx, [esi + 0x104]
call fcn.10069394
mov byte [ebp - 4], 5
mov ecx, edi
call fcn.10008abd
mov byte [ebp - 4], 4
lea ecx, [esi + 0xec]
call fcn.10105950
mov byte [ebp - 4], 3
lea ecx, [esi + 0xe0]
call fcn.100bfd67
mov byte [ebp - 4], 2
lea ecx, [esi + 0xd4]
call fcn.100bfd13
mov byte [ebp - 4], 1
lea eax, [esi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [esi + 0x3c]
call fcn.1008fc68
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x2c]
call fcn.10073def
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10104e17
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [0x1024b9f8]
mov esi, ecx
mov dword [ebp - 4], edi
push 4
call fcn.1010128b
add esp, 0xc
test eax, eax
je 0x10104e4e
push edi
push edi
push esi
push 0x10104932
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
leave
ret

Function at 0x10104e52
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1015efdd
call fcn.1012b67a
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + ecx*4 + 0xac], esi
jne 0x10104ef5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push dword [0x1024b9f8]
push 4
call fcn.1010128b
add esp, 0xc
test eax, eax
je 0x10104ee9
push 0x1024c714
push 0xc
call fcn.1012ba4d
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], esi
test edi, edi
je 0x10104eb1
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x10104eb3
mov edi, esi
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10104ee9
mov eax, dword [ebp + 8]
push esi
push esi
push edi
push 0x10104f48
push esi
mov dword [edi + 8], eax
push esi
mov dword [edi], esi
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ebx + ecx*4 + 0xac], eax
mov dword [ebx + ecx*4 + 0xb4], edi
jmp 0x10104eec
mov ecx, dword [ebp + 8]
cmp dword [ebx + ecx*4 + 0xac], esi
je 0x10104ef8
xor esi, esi
inc esi
mov eax, esi
call fcn.1012b643
ret 4
Function at 0x10108e57
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.AVEI.dll
mov edi, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov ebx, eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
test ebx, ebx
je 0x10108ee0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10108f12
lea eax, [ebp - 0x20c]
lea esi, [edi + 0x20]
push eax
mov ecx, esi
call fcn.1004134e
push str..._shft.def
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x10108f01
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._ave_shft.def
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [edi + 0x20]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100412fd
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
Function at 0x1010b1d9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x1010b1ff
xor eax, eax
inc eax
jmp 0x1010b35a
call fcn.1010b199
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360MalwareSection.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1010b35a
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.10010313
test eax, eax
je 0x1010b33b
lea eax, [ebp - 0x20c]
mov dword [edi + 0x10], 1
push eax
call fcn.10114081
mov dword [edi + 4], eax
pop ecx
test eax, eax
je 0x1010b33b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Section_Open
push eax
call esi
push str.Section_Duplicate
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.Section_Close
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
push str.Section_Insert
push dword [edi + 4]
mov dword [edi + 0x20], eax
call esi
push str.Section_Restore
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push str.Section_InitQH360Log
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push 0x101a4728
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
cmp dword [edi + 0x18], ebx
je 0x1010b32d
cmp dword [edi + 0x1c], ebx
je 0x1010b32d
cmp dword [edi + 0x20], ebx
je 0x1010b32d
cmp dword [edi + 0x24], ebx
je 0x1010b32d
cmp dword [edi + 0x28], ebx
je 0x1010b32d
mov ecx, edi
call fcn.1010b5ab
test eax, eax
je 0x1010b30e
xor eax, eax
mov dword [edi + 0xc], 1
inc eax
jmp 0x1010b359
push ebx
mov esi, 0x3ec
push esi
push 3
push 1
call fcn.100537ac
add esp, 0x10
mov dword [edi + 0x14], esi
mov ecx, edi
call fcn.1010b199
jmp 0x1010b357
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0x3ea
jmp 0x1010b314
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0x3ea
push esi
push 3
push 1
call fcn.100537ac
add esp, 0x10
mov dword [edi + 0x14], esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
Function at 0x1010b5ab
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push dword [edi + 0x34]
call fcn.10130fe5
xor esi, esi
pop ecx
test eax, eax
je 0x1010b5f2
mov eax, dword [edi + 0x18]
mov dword [edi + 8], esi
test eax, eax
je 0x1010b5e6
push esi
push dword [edi + 0x34]
call eax
mov dword [edi + 8], eax
mov esi, eax
xor eax, eax
test esi, esi
setne al
jmp 0x1010b693
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...Section
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1010b691
lea eax, [ebp - 0x20c]
push eax
call fcn.1004fc32
pop ecx
test eax, eax
je 0x1010b653
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1010b676
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1010b691
mov eax, dword [edi + 0x18]
mov dword [edi + 8], esi
test eax, eax
je 0x1010b5e6
push esi
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x1010b5df
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

Function at 0x1010bece
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, 0xffffffff
je 0x1010bee4
cmp esi, 0xffff
jne 0x1010bee6
mov esi, eax
cmp esi, 0x8000
jl 0x1010bf12
mov edx, dword [0x1024ab40]
test edx, edx
jle 0x1010bf08
mov ecx, dword [0x1024ab44]
cmp dword [ecx + eax*8], esi
je 0x1010bf0c
inc eax
cmp eax, edx
jl 0x1010befe
xor eax, eax
jmp 0x1010bf37
mov eax, dword [ecx + eax*8 + 4]
jmp 0x1010bf37
cmp esi, 0x37
jle 0x1010bf1e
pop esi
pop ebp
jmp fcn.1010c10d
mov eax, dword [esi*4 + 0x1024ab48]
test eax, eax
jne 0x1010bf37
push esi
call fcn.1010bf3a
pop ecx
mov dword [esi*4 + 0x1024ab48], eax
pop esi
pop ebp
ret
Function at 0x1010bf3a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
cmp eax, 0x15
jg 0x1010c044
je 0x1010c02a
sub eax, 0
je 0x1010c023
sub eax, 0xa
je 0x1010c0b7
sub eax, 1
je 0x1010c00c
sub eax, 1
je 0x1010bfe2
sub eax, 5
je 0x1010bfc8
sub eax, 1
je 0x1010bfae
dec eax
sub eax, 1
jne 0x1010c093
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._fonts
jmp 0x1010bffa
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.help
jmp 0x1010bffa
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.inf
jmp 0x1010bffa
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers
push esi
lea eax, [ebp - 0x22c]
push eax
call fcn.100552d1
jmp 0x1010c0c9
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1010c0c9
mov eax, 0x101af070
jmp 0x1010c069
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._viewers
jmp 0x1010bffa
cmp eax, 0x18
je 0x1010c064
cmp eax, 0x19
je 0x1010c0b7
cmp eax, 0x1e
je 0x1010c064
cmp eax, 0x32
je 0x1010c09a
jle 0x1010c093
cmp eax, 0x34
jle 0x1010c076
cmp eax, 0x36
jne 0x1010c093
mov eax, 0x101af074
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._spool
jmp 0x1010bffa
call fcn.1010c10d
jmp 0x1010c069
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._system
jmp 0x1010bffa
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 2]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1010c105
push edi
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.1012d5f0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1010c069

Function at 0x1010c10d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [0x1024ac28]
test esi, esi
jne 0x1010c16d
push str.unknown
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esi, eax
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1024ac28], eax
test eax, eax
jne 0x1010c14f
pop esi
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [0x1024ac28]
push str.unknown
push 0x104
push esi
call fcn.100552d1
mov eax, esi
pop esi
ret