joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016b620
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, ecx
push esi
mov dword [ebx + 0x58], 0x20000
mov dword [ebx + 0x64], eax
lea esi, [edx + 2]
mov dword [ebx + 0x68], 0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1016b643
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebx + 0x28]
call fcn.10008240
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1016b73c
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebx + 0x58], 0x70000
mov dword [ebp + 8], eax
jne 0x1016b6af
cmp dword [ebx + 0x3c], 8
lea eax, [ebx + 0x28]
jb 0x1016b68c
mov eax, dword [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebx + 0x54], 8
lea edx, [ebx + 0x40]
mov dword [ebp + 0xc], eax
jb 0x1016b6a1
mov edx, dword [edx]
cmp dword [ebx + 0x3c], 8
lea edi, [ebx + 0x28]
jb 0x1016b6cc
mov edi, dword [ebx + 0x28]
jmp 0x1016b6cc
cmp dword [ebx + 0x54], 8
lea edx, [ebx + 0x40]
jb 0x1016b6ba
mov edx, dword [edx]
cmp dword [ebx + 0x3c], 8
lea edi, [ebx + 0x28]
jb 0x1016b6c6
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x60]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
push eax
mov eax, dword [ebx + 0x5c]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebx + 0x58]
lea eax, [ebp + 8]
push edx
push edi
push str._s__s__u__u__u__u__u_
push eax
call fcn.10004de0
mov esi, dword [ebp + 8]
add esp, 0x24
mov ecx, esi
pop edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016b700
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0x10]
call fcn.10008240
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1016b731
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push 0x80004005
call fcn.100030c0
int3
Function at 0x1016bf60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1016c007
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov ebx, dword [esi + 0x30]
cmp ebx, 0x70000
jne 0x1016bfbe
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1016bf9a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
mov dword [ebp - 4], eax
jb 0x1016bfaf
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x1016bfb9
mov edi, dword [esi]
mov ebx, dword [esi + 0x30]
jmp 0x1016bfd9
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
jb 0x1016bfc9
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x1016bfd3
mov edi, dword [esi]
mov eax, dword [esi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
push eax
push ecx
push dword [ebp - 4]
mov ecx, dword [esi + 0x34]
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edx
push edi
push str._s__s__u__u__u__u__u_
push ebx
call fcn.10004de0
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100030c0
int3
Function at 0x1016d4a0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x620], eax
jne 0x1016d500
push 1
push 0
push eax
call dword [0x10219950]
mov edi, eax
test edi, edi
je 0x1016d4ee
push str.DllGetClassObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x1016d500
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.102134e7
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push str._s_regsvr32.exe__s___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.10008ee0
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1016d5ee
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x620]
call fcn.10004700
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.100ef1c0
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.1020eeb0
mov edx, dword [ebp - 0x620]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1016d5ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 0x648], 1
xor eax, eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1016d6a4
push 0x7d0
push dword [ebp - 0x630]
xor edi, edi
mov dword [ebp - 0x620], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1016d66e
cmp eax, 0x102
jne 0x1016d68e
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1016d68e
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1016d68e
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x1016d6c0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push 0
push ebx
call dword [0x10219950]
mov edi, eax
test edi, edi
je 0x1016d8bd
push str.DllGetClassObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1016d8bd
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.102134e7
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
push str._s_regsvr32.exe__u__s___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.10008ee0
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1016d7f4
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x620]
call fcn.10004700
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.100ef1c0
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.1020eeb0
mov edx, dword [ebp - 0x620]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1016d7f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 0x648], 1
xor eax, eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1016d8aa
push 0x7d0
push dword [ebp - 0x630]
xor edi, edi
mov dword [ebp - 0x620], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1016d874
cmp eax, 0x102
jne 0x1016d894
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1016d894
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1016d894
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x10185570
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10185713
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10185713
cmp dword [edi], 0
je 0x101855ac
cmp dword [ebp + 0x10], 1
jne 0x101855a0
mov dword [edi + 8], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
push ecx
cmp eax, 1
jne 0x10185658
push 0x500000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test eax, eax
je 0x10185713
mov eax, dword [edi + 4]
test eax, eax
je 0x101855ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push esi
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10185615
push eax
call fcn.10213517
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025abd4
push 0x80000
call fcn.101e2340
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
jne 0x1018563e
mov ecx, edi
call fcn.10185510
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov dword [edi + 0xc], 0x80000
mov eax, 1
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
je 0x10185713
mov eax, dword [edi + 4]
test eax, eax
je 0x10185688
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push esi
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x101856a7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x500000
push 0
push 0
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10185708
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea ecx, [eax - 1]
cmp ecx, 0x7ffff
ja 0x10185708
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x101856ea
push ecx
call fcn.10213517
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025abd4
push eax
call fcn.101e2340
mov ecx, eax
add esp, 8
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x1018571c
mov ecx, edi
call fcn.10185510
test esi, esi
je 0x10185713
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push eax
push ebx
push ecx
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0
call fcn.102134e1
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x101855a0
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x101859c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x50], 0
push edi
mov word [ebp - 0x12], ax
mov ecx, 0x1024f268
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
push dword [ebp + 8]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x22], 0
mov dword [ebp - 0x1e], 0
mov dword [ebp - 0x1a], 0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call fcn.101cb9b0
mov edi, eax
test edi, edi
je 0x10185aac
push esi
push 0x2710
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10185a99
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10185ac0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10214fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10250150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10185c25
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10185c25
cmp dword [ebp + 0x10], 1
jle 0x10185c25
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x10185c25
push eax
call fcn.102135a7
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10185c25
push edi
push dword [ebp + 8]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10185bc6
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
lea ecx, [ebp + 8]
call fcn.1001e380
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xOriginalFileName
lea eax, [ebp + 8]
push eax
call fcn.10004de0
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10185bbe
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100290b0
mov esi, 1
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 8]
call int.10008f10
push edi
call fcn.10213559
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10185c40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], 0
mov word [eax], cx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10185cda
push edi
call fcn.102135a7
mov esi, eax
add esp, 4
test esi, esi
je 0x10185cda
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10185cc8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10219e0c
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
movzx ecx, word [edx + 0xc]
push ecx
movzx ecx, word [edx + 0xe]
push ecx
movzx ecx, word [edx + 8]
push ecx
movzx ecx, word [edx + 0xa]
push ecx
push str._hd._hd._hd._hd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000bd10
add esp, 0x1c
push esi
call fcn.10213559
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10185cf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push 0x20219
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003510
test eax, eax
jne 0x10185da4
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x10185d78
cmp eax, 2
je 0x10185d78
cmp eax, 7
jne 0x10185da4
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x10219ee4
dec eax
push eax
push esi
call fcn.1000bd10
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10185d97
jmp 0x10185deb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10185e18
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x10219ee4
dec eax
push eax
push esi
call fcn.1000bd10
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10185de0
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x210], ecx
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x10185e04
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret

Function at 0x10185fd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x114], 6
sete al
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x10190970
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0xa4], 0
je 0x101909a3
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebx + 0x84]
push edi
test esi, esi
je 0x101909c9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xa4], 0
je 0x101909c9
mov edi, 1
jmp 0x10190ba1
mov ecx, ebx
call fcn.1018e440
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [0x10256b30]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push str...deepscan_
push eax
call edi
push str.360MalwareSection.dll
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
je 0x10190b9f
lea eax, [ebp - 0x210]
push eax
call fcn.1001d810
add esp, 4
test eax, eax
jne 0x10190a46
mov dword [ebx + 0x9c], eax
jmp 0x10190b7c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x10190b7c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Section_Open
push eax
call edi
push str.Section_Duplicate
push dword [ebx + 0x9c]
mov dword [ebx + 0xa8], eax
call edi
push str.Section_Close
push dword [ebx + 0x9c]
mov dword [ebx + 0xac], eax
call edi
push str.Section_Insert
push dword [ebx + 0x9c]
mov dword [ebx + 0xb0], eax
call edi
push str.Section_Restore
push dword [ebx + 0x9c]
mov dword [ebx + 0xb4], eax
call edi
push str.Section_GetRecordCount
push dword [ebx + 0x9c]
mov dword [ebx + 0xb8], eax
call edi
push str.Section_DeleteRecord
push dword [ebx + 0x9c]
mov dword [ebx + 0xbc], eax
call edi
push str.Section_GetNextRecord
push dword [ebx + 0x9c]
mov dword [ebx + 0xc0], eax
call edi
push str.Section_DeleteBatchInfo
push dword [ebx + 0x9c]
mov dword [ebx + 0xc4], eax
call edi
push str.Section_GetModifyId
push dword [ebx + 0x9c]
mov dword [ebx + 0xc8], eax
call edi
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xcc], eax
je 0x10190b75
cmp dword [ebx + 0xac], 0
je 0x10190b75
cmp dword [ebx + 0xb0], 0
je 0x10190b75
cmp dword [ebx + 0xb4], 0
je 0x10190b75
cmp dword [ebx + 0xb8], 0
je 0x10190b75
cmp dword [ebx + 0xbc], 0
je 0x10190b75
cmp dword [ebx + 0xc0], 0
je 0x10190b75
cmp dword [ebx + 0xc4], 0
je 0x10190b75
cmp dword [ebx + 0xc8], 0
je 0x10190b75
test eax, eax
jne 0x10190b7c
mov ecx, ebx
call fcn.1018e440
mov ecx, ebx
call fcn.10191050
test eax, eax
je 0x10190b98
mov dword [ebx + 0xa4], 1
mov edi, 1
jmp 0x10190ba1
mov ecx, ebx
call fcn.1018e440
xor edi, edi
test esi, esi
je 0x10190bac
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x10191010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.1001d810
add esp, 4
push esi
test eax, eax
jne 0x10191044
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1019103f
push 1
push 0x1024d040
push esi
call fcn.10035520
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
ret

Function at 0x10195a10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10195a3b
xor edi, edi
jmp 0x10195a4d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10195a68
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4