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

Disassembly:
mov eax, 0x10020bb0
call fcn.1001fbd0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [esi], 0x100237f8
mov dword [esi + 4], ecx
mov eax, dword [0x1002c458]
mov dword [ebp - 0x18], esi
cmp eax, ecx
mov dword [ebp - 4], ecx
je 0x100090fa
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push ecx
push ecx
mov ebx, str.ExceptionServers
push ecx
push ebx
push eax
call edi
test eax, eax
jne 0x100090fa
mov eax, dword [ebp - 0x14]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 4], eax
je 0x100090fa
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 0
push ebx
push dword [0x1002c458]
call edi
test eax, eax
je 0x100090fa
push dword [esi + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
and dword [esi + 4], 0
pop ecx
jmp 0x100090fa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x10009436
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x10020c1f
call fcn.1001fbd0
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
push 2
lea eax, [esi + 0xc]
push edi
push eax
mov dword [ebp - 0x10], esi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
call sub.MSVCRT.dll_memset
push 2
lea eax, [esi + 0x18]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
call sub.MSVCRT.dll_memset
push 2
lea eax, [esi + 0x2c]
push edi
push eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
call sub.MSVCRT.dll_memset
push 2
lea eax, [esi + 0x3c]
push edi
push eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
call sub.MSVCRT.dll_memset
push 2
lea eax, [esi + 0x54]
push edi
push eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
call sub.MSVCRT.dll_memset
add esp, 0x3c
mov ecx, esi
mov byte [ebp - 4], 4
mov dword [esi], 0x100237fc
call fcn.1000ab7a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000b996
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x1000b9b0
xor esi, esi
jmp 0x1000b9de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.1001fd80
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1000ba19
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1000ba12
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000baae
xor esi, esi
jmp 0x1000baae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000ba3c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1000ba4f
xor esi, esi
jmp 0x1000baa5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x1000ba61
jmp 0x1000ba2c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000baa5
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1000ba97
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.1001fd80
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.1000bb15
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000c524
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10020e20
call fcn.1001fbd0
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.1000c4e6
mov edi, eax
cmp edi, esi
je 0x1000c56e
cmp dword [ebp - 0x10], esi
je 0x1000c567
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1000c60b
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1000c5df
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000c524
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1000c5cc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x1000c591
cmp dword [ebp - 0x10], esi
je 0x1000c5da
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x1000c60b
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1000c5f2
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x1000c609
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000c61c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.1001fd80
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1000bc6e
xor edi, edi
cmp eax, edi
jl 0x1000c7d4
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1000c7e1
pop ecx
test eax, eax
pop ecx
jne 0x1000c667
mov eax, 0x80020009
jmp 0x1000c7d4
mov ecx, esi
call fcn.1000bc46
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1000bc6e
cmp eax, edi
jl 0x1000c7d4
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1000c79c
sub eax, 9
je 0x1000c701
dec eax
dec eax
jne 0x1000c7c3
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x1000c6ac
xor ebx, ebx
jmp 0x1000c6e1
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1001fd80
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1000c7b4
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1000c73d
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1001fd80
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1000c747
mov eax, 0x80004005
jmp 0x1000c7d4
cmp dword [ebp - 8], 0
jle 0x1000c781
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1000c868
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1000c74d
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1000c7c3
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1000bc6e
cmp eax, edi
jl 0x1000c7d4
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000f965
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x1002c464], esi
jne 0x1000f9ac
cmp dword [0x1002c45c], esi
jne 0x1000f982
call fcn.1000fc25
push 0x1002c464
push 1
push esi
push str.SoftwareDownloadManagerIDMBIIEXPLOREDwnlPanel
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000f9a4
mov dword [0x1002c464], esi
cmp dword [0x1002c464], esi
je 0x1000f9d2
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1002ab40
push dword [0x1002c464]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000f9d7
push 1
pop eax
jmp 0x1000f9e0
xor eax, eax
cmp dword [ebp - 8], 2
setne al
pop esi
leave
ret

Function at 0x1000f9e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [0x1002c464], ebx
push esi
push edi
jne 0x1000fa25
cmp dword [0x1002c45c], ebx
jne 0x1000fa03
call fcn.1000fc25
push 0x1002c464
push 1
push ebx
push str.SoftwareDownloadManagerIDMBIIEXPLOREDwnlPanel
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000fa25
mov dword [0x1002c464], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [eax], ebx
je 0x1000faef
cmp dword [0x1002c464], ebx
push esi
jne 0x1000fa49
call fcn.1000faf6
pop ecx
jmp 0x1000faf1
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 0x1f
pop ecx
ja 0x1000faef
push ebx
push ebx
lea eax, [ebp - 0x2c]
push 0x20
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1000faef
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
pop ecx
lea eax, [ebp - 8]
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 8], edi
push dword [0x1002c464]
call esi
test eax, eax
je 0x1000fab5
push dword [ebp + 8]
call fcn.1000faf6
test eax, eax
pop ecx
jne 0x1000fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 2
je 0x1000fac5
cmp byte [ebp - 1], bl
jne 0x1000fac5
push 1
pop eax
jmp 0x1000faf1
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.DonlCaptWP
push dword [0x1002c464]
call esi
test eax, eax
jne 0x1000faef
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0xc]
sete al
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000fc25
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x1002c458], esi
jne 0x1000fc3e
call fcn.1000fdef
test al, al
je 0x1000fc96
cmp dword [0x1002c45c], esi
jne 0x1000fc70
push 0x1002c45c
push 1
push esi
push str.SoftwareDownloadManagerIDMBIIEXPLORE
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000fc68
mov dword [0x1002c45c], esi
cmp dword [0x1002c45c], esi
je 0x1000fc96
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1002abe4
push dword [0x1002c45c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000fc9a
xor al, al
jmp 0x1000fca0
cmp dword [ebp - 8], esi
setne al
pop esi
leave
ret

Function at 0x1000fca3
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [0x1002c460], ebx
push esi
push edi
jne 0x1000fce4
push 0x1002c460
push 1
push ebx
push str.SoftwareDownloadManagerSpecialKeys
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000fcd8
mov dword [0x1002c460], ebx
cmp dword [0x1002c460], ebx
je 0x1000fde8
push 4
lea eax, [ebp - 8]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.UseKeyToPrevent
push dword [0x1002c460]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x1000fde8
cmp dword [ebp - 0xc], ebx
je 0x1000fde8
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.AltP
push dword [0x1002c460]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x1000fd45
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.ShiftP
push dword [0x1002c460]
call esi
test eax, eax
jne 0x1000fd69
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.CtrlP
push dword [0x1002c460]
call esi
test eax, eax
jne 0x1000fd8d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], ebx
jne 0x1000fd9c
cmp dword [ebp - 0x14], ebx
jne 0x1000fd9c
cmp dword [ebp - 0x18], ebx
je 0x1000fde8
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov byte [ebp - 1], 1
mov edi, 0x8000
je 0x1000fdbc
push 0x12
call esi
test di, ax
jne 0x1000fdbc
mov byte [ebp - 1], bl
cmp dword [ebp - 0x14], ebx
je 0x1000fdcd
push 0x10
call esi
test di, ax
jne 0x1000fdcd
mov byte [ebp - 1], bl
cmp dword [ebp - 0x18], ebx
je 0x1000fdde
push 0x11
call esi
test di, ax
jne 0x1000fdde
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1000fde8
push 1
pop eax
jmp 0x1000fdea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000fdef
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
cmp dword [0x1002c458], 0
push ebx
push esi
push edi
jne 0x1000fe91
mov ebx, 0x1002c458
mov edi, str.SoftwareDownloadManager_
push ebx
push 0xf003f
push 0
mov esi, SysReAllocString
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000fe5b
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000fe5b
xor eax, eax
push eax
push ebx
push eax
push 0xf003f
push eax
push eax
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000ff95
jmp 0x1000fe8c
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push str.idmvers
push dword [0x1002c458]
mov dword [ebp - 0xc], 0x40
call esi
cmp eax, 2
mov dword [ebp - 8], eax
jne 0x1000fe98
call fcn.100100f4
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
xor ebx, ebx
cmp eax, ebx
je 0x1000fe91
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000fe91
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x1d4]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1000fee3
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1000fe91
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x3dc]
push str._sInternet_Download_Manager
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000fe91
lea eax, [ebp - 0x3dc]
push str.GlobalErrors.log
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x3dc]
push 0x1002ac98
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x1000fe91
push dword [ebp - 8]
lea eax, [ebp - 0x90]
push str.Reading_of_idmvers_in_idmiecc_failed__errCode___ld_r_n
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x90]
push edi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x90]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
jmp 0x1000fe91
xor al, al
jmp 0x1000fe93
Function at 0x1001040f
Capabilities:
Parse url

Disassembly:
mov eax, 0x100213bc
call fcn.1001fbd0
push ecx
mov eax, 0x18e8
call fcn.1001fd80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x64
pop eax
mov ecx, 0x7d0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x18f8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x38], bx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 2
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10010599
push 0x2f
mov byte [esi + 1], bl
push dword [ebp - 0x24]
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x100104d6
mov byte [eax + 1], bl
mov dword [ebp - 4], ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x958]
push dword [ebp - 0x40]
push dword [ebp - 0x4c]
push str._s:___s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x958]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetCookieA]
test eax, eax
jne 0x10010599
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10010599
push esi
mov byte [ebp - 4], 3
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1001052f
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x10010599
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x958]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetCookieA]
test eax, eax
je 0x10010599
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1001058c
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ecx], eax
je 0x1001058c
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10015d98
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov eax, 0x10021ad4
call fcn.1001fbd0
sub esp, 0xa14
push ebx
push esi
xor ebx, ebx
push edi
cmp byte [ecx + 0x10], bl
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ebx
jne 0x10015ed1
mov byte [ecx + 0x10], 1
mov eax, dword [0x1002c458]
cmp eax, ebx
je 0x10015ed1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push ebx
push ebx
push str.AppDataIDMFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10015ed1
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10015ed1
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x11d], 0x5c
mov dword [ebp - 0x14], eax
pop ecx
mov eax, 0x1002a528
jne 0x10015e32
mov eax, 0x1002c18c
push str.sts_list2.dat
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push str._s_s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x220]
push 0x1002a4e8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
cmp edi, ebx
je 0x10015ed1
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
push edi
lea eax, [ebp - 0xa20]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x10015ec9
lea eax, [ebp - 0xa20]
push 0xd
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x10015e9f
mov byte [eax], bl
lea eax, [ebp - 0xa20]
push 0xa
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x10015eb2
mov byte [eax], bl
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xa20]
push eax
call fcn.10015c97
jmp 0x10015e72
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10017323
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10021e2c
call fcn.1001fbd0
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x10017388
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017388
mov eax, dword [ebp - 0x14]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10017388
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], bl
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1001739b
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
mov eax, dword [esi + 8]
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x10017412
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10017412
push dword [esi + 8]
mov ecx, dword [ebp + 0xc]
call fcn.10002477
mov eax, dword [esi + 0x48]
mov dword [ebp + 8], 1
cmp eax, ebx
je 0x100173d3
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10002477
cmp dword [esi + 0x40], ebx
je 0x10017412
mov eax, dword [esi + 0x44]
cmp eax, ebx
jbe 0x10017412
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10017412
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov byte [edi + eax], bl
push edi
call fcn.10002477
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 8]
jmp 0x1001738a