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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov ebx, dword [esi + 0x30]
cmp ebx, 0x70000
jne 0x1015caf6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1015cad2
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 0x1015cae7
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x1015caf1
mov edi, dword [esi]
mov ebx, dword [esi + 0x30]
jmp 0x1015cb11
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
jb 0x1015cb01
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x1015cb0b
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.10002cb0
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1015e150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x102519c8]
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 0x1015e1b0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1015e19e
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 0x1015e1b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.101f9fcf
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push eax
push str._s_regsvr32.exe__s___s_
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101fa3aa
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1015e278
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x620]
call fcn.10002490
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100e2b30
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101ef650
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 0x1015e278
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 - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1015e32e
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 0x1015e2f8
cmp eax, 0x102
jne 0x1015e318
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1015e318
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1015e318
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.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1015e340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x102519c8]
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 [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1015e517
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 0x1015e517
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.101f9fcf
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
lea eax, [ebp - 0x61c]
push eax
push str._s_regsvr32.exe__u__s___s_
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101fa3aa
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1015e44e
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x620]
call fcn.10002490
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100e2b30
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101ef650
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 0x1015e44e
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 - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1015e504
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 0x1015e4ce
cmp eax, 0x102
jne 0x1015e4ee
push edi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1015e4ee
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x620], edi
jne 0x1015e4ee
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.101f99c6
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.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10174690
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 0x10174833
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10174833
cmp dword [edi], 0
je 0x101746cc
cmp dword [ebp + 0x10], 1
jne 0x101746c0
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 0x10174778
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 0x10174833
mov eax, dword [edi + 4]
test eax, eax
je 0x1017470e
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 0x10174735
push eax
call fcn.101f9fe7
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025c02a
push 0x80000
call fcn.101c85a0
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
jne 0x1017475e
mov ecx, edi
call fcn.10174630
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 0x10174833
mov eax, dword [edi + 4]
test eax, eax
je 0x101747a8
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 0x101747c7
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 0x10174828
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea ecx, [eax - 1]
cmp ecx, 0x7ffff
ja 0x10174828
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1017480a
push ecx
call fcn.101f9fe7
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [edi + 0x10], 0
push 0x1025c02a
push eax
call fcn.101c85a0
mov ecx, eax
add esp, 8
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x1017483c
mov ecx, edi
call fcn.10174630
test esi, esi
je 0x10174833
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.101f9fc3
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x101746c0
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x10174ae0
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, 0x1024ee30
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.101b14f0
mov edi, eax
test edi, edi
je 0x10174bcc
push esi
push 0x2710
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10174bb9
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 0x10174be0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
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 0x10174d45
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10174d45
cmp dword [ebp + 0x10], 1
jle 0x10174d45
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 0x10174d45
push eax
call fcn.101fa06b
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10174d45
push edi
push dword [ebp + 8]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10174ce6
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.1001b890
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.10002cb0
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 0x10174cde
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10026b00
mov esi, 1
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 8]
call fcn.10007e10
push edi
call fcn.101fa00b
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 0x10174d60
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 0x10174dfa
push edi
call fcn.101fa06b
mov esi, eax
add esp, 4
test esi, esi
je 0x10174dfa
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10174de8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10202944
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.1000aa70
add esp, 0x1c
push esi
call fcn.101fa00b
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 0x10174e10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20219
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 1
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0x208
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100585c0
test eax, eax
jne 0x10174eae
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x10174e82
cmp eax, 2
je 0x10174e82
cmp eax, 7
jne 0x10174eae
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x102029dc
dec eax
push eax
push esi
call fcn.1000aa70
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10174ea1
jmp 0x10174efb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10174f28
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x102029dc
dec eax
push eax
push esi
call fcn.1000aa70
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
jmp 0x10174ef0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10174ef0
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x210], ecx
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x10174f14
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.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x101750e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
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.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1017fdb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x84]
test esi, esi
je 0x1017fdd9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xa4], 0
je 0x1017fdec
mov edi, 1
jmp 0x1017ffc1
mov ecx, ebx
call fcn.1017dbf0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
add esp, 0xc
push 0x10210ca4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str...deepscan_
push eax
call edi
push str.360MalwareSection.dll
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1017ffbf
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10034be0
add esp, 8
test eax, eax
je 0x1017fe73
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x1017ff9c
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 0x1017ff95
cmp dword [ebx + 0xac], 0
je 0x1017ff95
cmp dword [ebx + 0xb0], 0
je 0x1017ff95
cmp dword [ebx + 0xb4], 0
je 0x1017ff95
cmp dword [ebx + 0xb8], 0
je 0x1017ff95
cmp dword [ebx + 0xbc], 0
je 0x1017ff95
cmp dword [ebx + 0xc0], 0
je 0x1017ff95
cmp dword [ebx + 0xc4], 0
je 0x1017ff95
cmp dword [ebx + 0xc8], 0
je 0x1017ff95
test eax, eax
jne 0x1017ff9c
mov ecx, ebx
call fcn.1017dbf0
mov ecx, ebx
call fcn.10180260
test eax, eax
je 0x1017ffb8
mov dword [ebx + 0xa4], 1
mov edi, 1
jmp 0x1017ffc1
mov ecx, ebx
call fcn.1017dbf0
xor edi, edi
test esi, esi
je 0x1017ffcc
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.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10183db0
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 0x10183ddb
xor edi, edi
jmp 0x10183ded
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 0x10183e08
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
Function at 0x1018cce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 0x218], 0
cmp dword [0x1025acd4], 0
je 0x1018ce94
cmp dword [0x1025b434], 0
je 0x1018ce94
mov eax, dword [0x1025b450]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x1018cd75
cmp dword [0x1025b454], 0xffffffff
je 0x1018cd75
push eax
mov dword [ebp - 0x210], 0
call edi
test eax, eax
jne 0x1018cd75
mov eax, dword [0x1025b458]
test eax, eax
je 0x1018cd75
lea ecx, [ebp - 0x210]
push ecx
call eax
push eax
push dword [0x1025b450]
call ebx
push dword [ebp - 0x210]
push dword [0x1025b454]
call ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
add esp, 0xc
call fcn.100ddff0
test eax, eax
je 0x1018cdbe
push 0x20019
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push str.52A4F021_7B75_48A9_9F6B_4B87A210BC8F
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
call fcn.10176900
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1018ce00
lea eax, [ebp - 0x20c]
push eax
push 0x1a
call fcn.100099b0
add esp, 8
test eax, eax
je 0x1018ce00
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
push str.MicrosoftInternet_ExplorerQuick_Launch_
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push dword [0x1025ace4]
push ecx
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
call fcn.100de1d0
test eax, eax
je 0x1018ce3e
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.1018ceb0
mov dword [esi + 0x218], eax
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x1018ce7e
cmp dword [0x1025b454], 0xffffffff
je 0x1018ce7e
push eax
call edi
test eax, eax
je 0x1018ce7e
cmp dword [0x1025b45c], 0
je 0x1018ce7e
push dword [0x1025b454]
call edi
push eax
call dword [0x1025b45c]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025b450]
call ebx
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1018e5b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1025b070
mov dword [0x1025b070], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1018e678
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.101f9fcf
add esp, 0xc
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1018e64b
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x1025b080], 2
mov dword [0x1025b074], eax
lea eax, [ebp - 0x42]
push eax
call fcn.101fa15b
mov ecx, eax
add esp, 4
mov dword [0x1025b078], ecx
jmp 0x1018e67e
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ax
mov bl, 4
shr ecx, 8
cmp bl, al
movzx edx, al
sbb eax, eax
mov dword [0x1025b074], edx
neg eax
mov dword [0x1025b078], ecx
inc eax
mov dword [0x1025b080], eax
pop ebx
jmp 0x1018e684
mov ecx, dword [0x1025b078]
mov edx, dword [0x1025b074]
cmp edx, 6
ja 0x1018e690
jne 0x1018e6b2
cmp ecx, 2
jb 0x1018e6b2
push str.RtlGetVersion
push 0x10204308
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1018e6b2
push 0x1025b070
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret