joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100070d0
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
xorps xmm0, xmm0
push 0
push 0
push 0
mov dword [esi], vtable.CWinHttp.0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x1388
mov dword [esi + 0x18], 0x1388
mov dword [esi + 0x1c], 0x1388
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
push 0
movq qword [esi + 0x20], xmm0
push str.Microsoft_Internet_Explorer
mov dword [esi + 0x28], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 8], eax
test eax, eax
jne 0x10007150
mov dword [esi + 0x28], 1
mov eax, esi
pop esi
ret
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop esi
ret
Function at 0x10008190
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1df8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push eax
push edx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call fcn.10008ac0
test al, al
jne 0x10008216
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10003a50
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100082de
inc ecx
push ecx
jmp 0x100082d3
push 0x100000
call fcn.1007530d
add esp, 4
mov byte [ebp - 0x29], 0
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000829a
nop word [eax + eax]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10008296
cmp eax, 0x100000
jbe 0x10008264
push esi
call fcn.100752f2
push dword [ebp - 0x30]
call fcn.1007530d
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000829a
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
push esi
call fcn.10001a00
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10008240
jmp 0x1000829a
mov byte [ebp - 0x29], 1
push esi
call fcn.100752f2
add esp, 4
cmp byte [ebp - 0x29], 0
jne 0x100082be
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10003a50
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100082de
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10001ca0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10008300
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0
push 0
push 0x15
push dword [edi + 0x10]
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008385
push esi
push dword [ebp - 4]
call fcn.1007530d
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000837b
cmp word [esi], 0
jne 0x1000835a
xor ecx, ecx
jmp 0x1000836f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008360
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.10009090
mov bl, 1
push esi
call fcn.100752f2
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10008390
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x3c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.1006fa30
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000840c
push 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100768f8
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 4
Function at 0x1000acd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1006fa30
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1006fa30
add esp, 0x18
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1000ad6f
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1000ad6f
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x1000ad8d
xor ecx, ecx
jmp 0x1000ad9f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ad96
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.100017d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret

Function at 0x1000adc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a21a1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.1000acd0
push 1
push 0x100bb1b8
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10001a00
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10001b30
cmp dword [esi + 0x14], 0x10
jb 0x1000ae2f
mov eax, dword [esi]
jmp 0x1000ae31
mov eax, esi
push 0
push eax
call fcn.10077157
add esp, 8
cmp eax, 0xffffffff
jne 0x1000ae56
cmp dword [esi + 0x14], 0x10
jb 0x1000ae4b
mov eax, dword [esi]
jmp 0x1000ae4d
mov eax, esi
push eax
call fcn.10077993
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000ae6b
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10001ca0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ce60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a20c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1006c2c2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1006b46b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xorps xmm0, xmm0
push 0x1000da90
mov word [ebp - 0x34], ax
movq qword [ebp - 0x32], xmm0
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
mov byte [ebp - 0x24], al
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], eax
movq qword [ebp - 0x13], xmm0
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x100ffe1c], eax
lea eax, [ebp - 0x38]
push eax
push 0x1c
push 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1000d9cd
push 0x100ffe20
push dword [ebp - 0x38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000d9e7
movq xmm0, qword [str.c:windows_]
mov eax, dword [0x100bb2f8]
movq qword [0x100ffe20], xmm0
mov dword [0x100ffe28], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push str.dump_04d__02d__02d__02d._02d._02d.dmp
push eax
call fcn.10002370
push 0x5c
push 0x100ffe20
call fcn.1006ee70
mov edx, eax
add esp, 0x28
test edx, edx
je 0x1000da63
inc edx
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000da40
sub ecx, esi
pop esi
cmp ecx, 3
jb 0x1000da63
lea ecx, [ebp - 0x24]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000da56
push 0x100ffe20
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov ecx, dword [ebp - 4]
mov eax, 0x100fff48
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000db30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x128], 0x40
push eax
push 0x20019
push 0
push 0x100bb34c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000db9d
lea eax, [ebp - 0x128]
push eax
push 0x10105090
push 0
push 0
push 0x100bb340
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
test al, al
jne 0x1000dc83
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
movzx eax, byte [ebp - 0x115]
push eax
movzx eax, byte [ebp - 0x116]
push eax
movzx eax, byte [ebp - 0x117]
push eax
movzx eax, byte [ebp - 0x118]
push eax
movzx eax, byte [ebp - 0x119]
push eax
movzx eax, byte [ebp - 0x11a]
push eax
push 0x100bb324
push 0x101053e8
call fcn.10002370
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1006fa30
movsx eax, byte [0x101053ed]
add esp, 0x2c
push eax
movsx eax, byte [0x101053ec]
push eax
movsx eax, byte [0x101053eb]
push eax
movsx eax, byte [0x101053ea]
push eax
movsx eax, byte [0x101053e9]
push eax
movsx eax, byte [0x101053e8]
push eax
push 0x100bb370
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.10001100
add esp, 0x24
call fcn.10001ff0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000dc56
sub eax, edx
lea edx, [ebp - 0x110]
push eax
call fcn.100021d0
push eax
push 0x100bb390
push 0x104
push 0x10105090
call fcn.10001100
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x10105090
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000e8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
push 6
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x2c]
push 0
push eax
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
push ebx
call edi
push 0
push 0
push dword [ebp - 0x1c]
push ebx
call esi
push dword [ebp - 0x20]
call fcn.1006c2ff
push dword [ebp - 0x20]
mov esi, eax
push 0
push esi
call fcn.1006fa30
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x20]
push esi
push ebx
call edi
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
push 0x409
push 1
push 3
push dword [ebp - 0x30]
call edi
push esi
call fcn.1006c2fa
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x28]
mov ecx, 1
mov byte [ebp - 0x40], al
movzx eax, byte [ebp - 0x27]
mov byte [ebp - 0x3f], al
movzx eax, byte [ebp - 0x26]
mov byte [ebp - 0x3e], al
movzx eax, byte [ebp - 0x25]
mov byte [ebp - 0x3d], al
movzx eax, word [ebp - 0x24]
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0x22]
mov word [ebp - 0x3a], ax
movq xmm0, qword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0x10000
mov word [ebp - 0x14], cx
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], eax
push 0x14
lea eax, [ebp - 0x18]
mov word [ebp - 6], cx
push eax
push 0x409
push ecx
push 0xe
push dword [ebp - 0x30]
call edi
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000f270
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x1c]
test eax, eax
je 0x1000f2e1
lea eax, [ebp - 0x314]
push eax
push 0x100aa808
push 1
push 0
push 0x100aa898
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000f2e1
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x318]
push edx
push 0x100aa828
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x314]
jns 0x1000f2f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1000f30c
mov esi, dword [eax]
call fcn.100780f7
push dword [eax]
push dword [ebp - 0x314]
call dword [esi + 0x50]
jmp 0x1000f313
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x314]
push 0x100baf51
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
je 0x1000f337
mov eax, dword [ebp - 0x314]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test edi, edi
je 0x1000f348
mov eax, dword [ebp - 0x314]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x314]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push 0x10105850
push dword [ebp - 0x31c]
lea eax, [ebp - 0x108]
push 0x100bb45c
push eax
call fcn.10002370
add esp, 0x10
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x318]
lea edx, [ebp - 0x310]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
push esi
push str.save_result:_0x_08x
call fcn.1000e190
push eax
call fcn.1000b0b0
mov ecx, dword [ebp - 0x318]
add esp, 0xc
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000f500
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x370]
mov dword [esp + 0x18], eax
mov esi, ebx
sub edi, ebx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x1000f535
lea edx, [esp + 0x268]
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000f550
lea edi, [esp + 0x268]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1000f565
mov eax, dword [0x100bb478]
mov dword [edi], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26c]
mov byte [0x10105214], 1
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1000f6e1
cmp byte [0x10105214], 0
mov ebx, eax
je 0x1000f6f9
test byte [esp + 0x20], 0x10
je 0x1000f64c
cmp byte [esp + 0x4c], 0x2e
je 0x1000f6c2
xor ecx, ecx
nop dword [eax]
mov al, byte [esp + ecx + 0x370]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x15f], al
test al, al
jne 0x1000f5d0
lea edx, [esp + 0x4c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f5f0
lea edi, [esp + 0x160]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000f601
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x160]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1000f620
mov ax, word [0x100bb1b8]
lea ecx, [esp + 0x160]
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov word [edi], ax
call fcn.1000f500
add esp, 4
jmp 0x1000f6c2
xor eax, eax
nop
mov cl, byte [esp + eax + 0x370]
lea eax, [eax + 1]
mov byte [esp + eax + 0x15f], cl
test cl, cl
jne 0x1000f650
lea edx, [esp + 0x4c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f670
lea edi, [esp + 0x160]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000f681
push dword [esp + 0x18]
mov ecx, edx
lea eax, [esp + 0x164]
push dword [esp + 0x3c]
shr ecx, 2
push dword [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [esp + 0x2c]
add esp, 0x10
test al, al
je 0x1000f6c2
mov byte [0x10105214], 0
mov byte [esp + 0x13], 1
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000f6f9
cmp byte [0x10105214], 0
jne 0x1000f5b1
jmp 0x1000f6f9
push ebx
push str.cant_access_file:__s_n
call fcn.1000e190
push eax
call fcn.1000b0b0
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x47c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000f7d0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x118], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push 0x104
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x114], edx
call fcn.1006fa30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1000f90d
push str.kernel32.dll
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x1000f90d
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x1000f90d
push edi
call fcn.1006c2ff
add esp, 4
mov esi, eax
lea eax, [ebp - 0x108]
push esi
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1000f904
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 0x100bb1b8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1000f904
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x114]
push esi
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x118]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x11c]
mov dword [ecx], eax
call fcn.1006c2fa
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
push esi
call fcn.1006c2fa
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1000f920
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2749
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1000f980
mov eax, dword [esi]
jmp 0x1000f982
mov eax, esi
push 0
push 0x100baf51
mov byte [eax], 0
call fcn.100017d0
xor edi, edi
mov dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000fa2d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
push edi
push edi
push str.Common_Desktop
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000fa24
add eax, 2
push eax
call fcn.1007530d
mov edi, eax
add esp, 4
test edi, edi
je 0x1000fa24
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push 0
push edi
call fcn.1006fa30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push str.Common_Desktop
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
jne 0x1000fa36
xor ecx, ecx
jmp 0x1000fa49
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fa40
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.100017d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret