joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100229d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100752bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.10002f10
mov al, byte [0x100a17d8]
mov dword [ebp - 4], 1
cmp al, bl
jne 0x10022a93
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
push str.Path
push str.SoftwareMicrosoftIE_SetupSETUP
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001e140
mov al, byte [ebp - 0x118]
add esp, 0x14
cmp al, bl
pop edi
jne 0x10022a6a
lea ecx, [ebp - 0x118]
push str._PROGRAMFILES_Internet_Explorer
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x118]
push 0x10096740
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp - 0x118]
push 0x100a17d8
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x100a17d8
call fcn.1001c140
add esp, 4
test al, al
jne 0x10022abc
mov esi, dword [ebp + 8]
push 0x10096750
mov ecx, esi
call fcn.1005bbb3
mov dword [ebp - 0x14], 1
jmp 0x10022ade
push 0x100a17d8
lea ecx, [ebp - 0x10]
call fcn.1005bcce
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.1005b8ba
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100230d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x14
call fcn.10056e50
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push 0
mov dword [esi], eax
mov dword [esi + 4], ecx
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], eax
call edi
push 0
push 4
push 0
push 0
push esi
push 0x10023140
mov dword [esi + 0x10], eax
call fcn.1005b046
mov eax, dword [eax + 0x28]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10023960
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007545f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call fcn.10002f10
push 0x908
mov dword [ebp - 4], 1
call fcn.10056e50
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ebx, [esi + 0x800]
push 0
push 1
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 4
push 0
push 0
push esi
push 0x10023a70
mov dword [esi + 0x904], eax
call fcn.1005b046
mov edi, eax
mov ecx, dword [edi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 0x904]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10023a10
mov ecx, dword [edi + 0x28]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10023a19
push ebx
lea ecx, [ebp - 0x10]
call fcn.1005bcce
mov edx, dword [esi + 0x904]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10056e79
mov esi, dword [ebp + 8]
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1005b8ba
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10023b10
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10023b28
xor al, al
pop esi
pop ebp
ret
mov dl, byte [ebp + 0xc]
mov cl, al
and cl, 1
test dl, dl
je 0x10023b47
test cl, cl
jne 0x10023b55
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, 1
pop esi
pop ebp
ret
test cl, cl
je 0x10023b55
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, 1
pop esi
pop ebp
ret
Function at 0x10024cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007563f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x100a19bc]
push ebx
push esi
push edi
push eax
push ecx
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov eax, dword [0x100a19bc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x100a19bc]
push edi
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x10], eax
call fcn.10002f10
lea edx, [esi + 1]
lea ecx, [ebp + 0xc]
push edx
mov dword [ebp - 4], 1
call fcn.1005bf75
mov ebx, eax
mov eax, dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.1003dd30
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebx + esi], 0
push 0xffffffffffffffff
call fcn.1005bfc4
push edi
call fcn.10024d90
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.1005b8ba
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10024dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x100a19bc]
push edi
push eax
push ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x10024e43
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x10024e3c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10024e3c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x10024e3c
push edi
call fcn.10056e50
mov edx, dword [ebp + 8]
mov ebx, eax
push edi
push edx
push ebx
call fcn.1003dd30
mov eax, dword [ebp + 0x10]
add esp, 0x10
push esi
mov dword [eax], edi
call fcn.10024d90
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10025310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x14]
push edi
push eax
push ecx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x10025336
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100253dd
mov edx, dword [ebp + 8]
push esi
push edi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push ecx
push 0x10097208
push esi
call sub.VERSION.dll_VerQueryValueA
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push ecx
xor edx, edx
mov dx, word [eax + 2]
xor ecx, ecx
mov cx, word [eax]
push edx
push ecx
lea edx, [ebp - 0x94]
push str.StringFileInfo_04x_04x_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp + 0x14]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x94]
push eax
push ecx
push edx
push esi
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueA
mov ebx, eax
test ebx, ebx
je 0x100253d6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100265b0
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100758b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10054236
lea ecx, [ebp - 0x18]
call fcn.10002f10
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1001bf40
push eax
lea ecx, [ebp - 0x10]
call fcn.1001bf30
push eax
lea ecx, [ebp - 0x10]
call fcn.10003180
push eax
lea ecx, [ebp - 0x10]
call fcn.1001bf20
push eax
lea ecx, [ebp - 0x10]
call fcn.1001bf10
push eax
lea ecx, [ebp - 0x10]
call fcn.1001bf00
push eax
lea ecx, [ebp - 0x18]
push str._04d__02d__02d__2d__02d:_02d
push ecx
call fcn.10053d2b
add esp, 0x20
lea ecx, [ebp - 0x14]
call fcn.10002f10
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005bf75
push eax
push str._APPDATA_TDD
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1005bfc4
push ebx
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x14]
push 0x10097b0c
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.1005bdda
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x1c]
push ecx
push eax
push edx
mov byte [ebp - 4], 2
call fcn.1005bd74
push eax
mov ecx, 0x100a19e0
mov byte [ebp - 4], 3
call fcn.1005bc7e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1005bb45
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.1005bb45
mov ecx, 0x100a19e0
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x100a19ec], ebx
lea ecx, [ebp - 0x14]
mov dword [0x100a19f0], ebx
mov dword [0x100a19f4], ebx
mov byte [ebp - 4], bl
call fcn.1005bb45
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10029230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.1003dd00
push edi
call fcn.1001ee30
cmp eax, 3
jl 0x10029255
push str.NSIS_After_Setup
call fcn.10003d40
add esp, 4
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x110f]
mov byte [ebp - 0x1110], 0
rep stosd dword es:[edi], eax
push 0
push 1
push 0
push 0
stosw word es:[edi], ax
push str.banfile
push str.http:__CONFIG_DOMAIN_file.php
push str.config.php
stosb byte es:[edi], al
call fcn.100034a0
add esp, 0x1c
push eax
lea eax, [ebp - 0x1110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x110]
push 0x104
push ecx
push str._PROGRAMFILES_wisdomnuri_badb.dat
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [ebp - 0x110]
push 0
push edx
call fcn.1001bf50
push 1
push 0
lea eax, [ebp - 0x110]
push 0x7530
lea ecx, [ebp - 0x1110]
push eax
push ecx
call fcn.1001cf30
add esp, 0x1c
test al, al
jne 0x10029313
call fcn.1001ee30
cmp eax, 3
jl 0x10029313
push str.NSIS_After_Setup___BanFile_Download_Fail_
call fcn.10003d40
add esp, 4
push 0x40
push ecx
mov edx, esp
mov dword [ebp - 4], esp
push edx
call fcn.10054236
lea eax, [ebp - 4]
push eax
call fcn.1001a8e0
add esp, 8
mov ecx, eax
call fcn.10002f50
lea ecx, [ebp - 0xc]
push eax
push ecx
call fcn.1001efd0
add esp, 0xc
mov ecx, eax
call fcn.10002f50
push eax
push str.indt
push 0x10098134
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001dfd0
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 4]
call fcn.1005bb45
push 0x40
lea edx, [ebp - 4]
push 0x10098144
push edx
call fcn.1001efd0
add esp, 0xc
mov ecx, eax
call fcn.10002f50
push eax
push 0x10098150
push 0x10098154
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001dfd0
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.1005bb45
push 0
push 1
push 0
push 0
push str.sexec
push 0x1009816c
push 0x10098190
call fcn.100034a0
add esp, 0x1c
lea ecx, [ebp - 8]
push eax
call fcn.1005bbb3
push 0x1009819c
push 0x100981a0
lea ecx, [ebp - 8]
call fcn.10002f50
push eax
lea eax, [ebp - 4]
push eax
call fcn.1001bbf0
add esp, 0x10
lea ecx, [ebp - 8]
push eax
call fcn.1005bc7e
lea ecx, [ebp - 4]
call fcn.1005bb45
push 0
push 0x7530
lea ecx, [ebp - 8]
call fcn.10002f50
push eax
call fcn.1001c7e0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.1005bb45
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10029430
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.1001ee30
cmp eax, 3
jl 0x1002944d
push str.NSIS_After_Patch
call fcn.10003d40
add esp, 4
lea ecx, [ebp - 4]
call fcn.10002f10
push 0x100981b8
push 0
push 1
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.1001e590
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 4]
push ecx
push str._sTempResult2_form_seq__s.ini
push edx
call fcn.10053d2b
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 4]
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 4]
call fcn.1005bb45
push 0x40
push ecx
mov eax, esp
mov dword [ebp - 0xc], esp
push eax
call fcn.10054236
lea ecx, [ebp - 4]
push ecx
call fcn.1001a8e0
add esp, 8
mov ecx, eax
call fcn.10002f50
lea edx, [ebp - 0xc]
push eax
push edx
call fcn.1001efd0
add esp, 0xc
mov ecx, eax
call fcn.10002f50
push eax
push str.ptdt
push 0x100981e4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001dfd0
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 4]
call fcn.1005bb45
lea ecx, [ebp - 4]
call fcn.10002f10
push 0x104
push 0x104
lea ecx, [ebp - 4]
call fcn.1005bf75
push eax
push 0x100981f4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.1005bfc4
lea ecx, [ebp - 4]
call fcn.10002f50
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001bfd0
add esp, 8
lea ecx, [ebp - 4]
push eax
call fcn.1005bc7e
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 0x20]
call fcn.10055420
push str._PROGRAMFILES_wisdomnuriwisdomnrb141.dll
lea ecx, [ebp - 0xc]
push ecx
call fcn.1001ebc0
add esp, 8
lea ecx, [ebp - 0x20]
push eax
call fcn.10004ec0
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea edx, [ebp - 0xc]
push str._PROGRAMFILES_wisdomnuriwisdomnrs141.dll
push edx
call fcn.1001ebc0
add esp, 8
lea ecx, [ebp - 0x20]
push eax
call fcn.10004ec0
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea eax, [ebp - 0xc]
push str._PROGRAMFILES_wisdomnuri_sqlite3.dll
push eax
call fcn.1001ebc0
add esp, 8
lea ecx, [ebp - 0x20]
push eax
call fcn.10004ec0
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 0x20]
lea edx, [ebp - 4]
push ecx
push str..dll
lea eax, [ebp - 0xc]
push edx
push eax
call fcn.1005bdda
mov ecx, eax
call fcn.10002f50
push eax
call fcn.10020230
add esp, 8
lea ecx, [ebp - 0xc]
call fcn.1005bb45
lea ecx, [ebp - 0x20]
call fcn.10055453
lea ecx, [ebp - 4]
call fcn.1005bb45
push 0
push 1
push 0
push 0
push str.patch
push str.http:__CONFIG_DOMAIN2_do.php
push 0x100982d0
call fcn.100034a0
add esp, 0x1c
lea ecx, [ebp - 8]
push eax
call fcn.1005bbb3
push 0x100982d8
push 0x100982dc
lea ecx, [ebp - 8]
call fcn.10002f50
lea ecx, [ebp - 0xc]
push eax
push ecx
call fcn.1001bbf0
add esp, 0x10
lea ecx, [ebp - 8]
push eax
call fcn.1005bc7e
lea ecx, [ebp - 0xc]
call fcn.1005bb45
push 0
push 0x7530
lea ecx, [ebp - 8]
call fcn.10002f50
push eax
call fcn.1001c7e0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.1005bb45
mov esp, ebp
pop ebp
ret
Function at 0x100298a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1001ee30
cmp eax, 3
jl 0x100298bd
push str.NSIS_VersionCheck__
call fcn.10003d40
add esp, 4
lea ecx, [ebp - 8]
call fcn.10002f10
push 0x104
push 0x104
lea ecx, [ebp - 8]
call fcn.1005bf75
push eax
push str._PROGRAMFILES_wisdomnuriwisdomnru.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.1005bfc4
lea ecx, [ebp - 4]
call fcn.10002f10
lea ecx, [ebp - 8]
call fcn.10002f50
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001d810
add esp, 8
lea ecx, [ebp - 4]
push eax
call fcn.1005bc7e
lea ecx, [ebp - 0xc]
call fcn.1005bb45
call fcn.1001ee30
cmp eax, 3
jl 0x10029936
mov ecx, dword [ebp - 4]
push ecx
push str.NSIS_VersionCheck___Module_Version_:__s
call fcn.10003d40
add esp, 8
lea ecx, [ebp - 4]
call fcn.10002f50
push eax
push str.1.0.1.19
call fcn.1001d940
add esp, 8
test eax, eax
jg 0x10029980
call fcn.1001ee30
cmp eax, 3
jl 0x10029967
push str.NSIS_VersionCheck___return_0___Service_No_Path__
call fcn.10003d40
add esp, 4
lea ecx, [ebp - 4]
call fcn.1005bb45
lea ecx, [ebp - 8]
call fcn.1005bb45
mov eax, 0x1009842c
mov esp, ebp
pop ebp
ret
call fcn.1001ee30
cmp eax, 3
jl 0x10029997
push str.NSIS_VersionCheck_____return_1___Service_Patch__
call fcn.10003d40
add esp, 4
lea ecx, [ebp - 4]
call fcn.1005bb45
lea ecx, [ebp - 8]
call fcn.1005bb45
mov eax, 0x10098464
mov esp, ebp
pop ebp
ret
Function at 0x1002a520
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp eax, 1
push edi
je 0x1002a546
cmp eax, 5
je 0x1002a546
cmp eax, 0xffff
jne 0x1002a5a4
mov dword [ebp + 0xc], 4
jmp 0x1002a54d
mov dword [ebp + 0xc], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1002a59b
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp edx, eax
je 0x1002a5a4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebx
jae 0x1002a59b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1002a56c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002a5b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.10002f10
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x10098930
push ecx
mov dword [ebp - 4], ebx
call fcn.10053d2b
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [ebp - 0x118]
stosw word es:[edi], ax
push 0x104
push edx
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x14]
call fcn.10002f10
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x10098944
push edx
mov byte [ebp - 4], 1
call fcn.10053d2b
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
call fcn.100203d0
add esp, 4
test eax, eax
je 0x1002a6ab
push ecx
lea eax, [ebp - 0x118]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.1005bbb3
call fcn.1001ffe0
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.1005bb45
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.1005bb45
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002bba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075f4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.10002f10
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call fcn.10002f10
lea eax, [ebp - 0xd]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.1002de50
lea ecx, [ebp - 0xe]
mov byte [ebp - 4], 2
push ecx
lea ecx, [esi + 0x1c]
call fcn.1002dff0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1003665a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x10036698
call fcn.100696c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10036698
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100366af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x100366af
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x1005705e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x10057080
cmp dword [edi + 0x3c], 0
jne 0x10057080
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.100696c2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.100570bf
pop edi
pop esi
pop ebx
ret 8

Function at 0x10058816
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1005884e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1005bfec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1005bfc4
jmp 0x1005885a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1005a618
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1005a65a
call fcn.100696c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005a65a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1005a651
xor eax, eax
jmp 0x1005a662
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005a668
pop edi
pop esi
pop ebx
ret 4

Function at 0x10065a01
Capabilities:
Create http request

Disassembly:
mov eax, 0x10076f30
call fcn.1003fa24
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x10065a39
call fcn.100696c2
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x10065a5e
push eax
push dword [esi + 4]
call fcn.10067ec4
jmp 0x10065a6a
push esi
push eax
mov ecx, 0x100a3728
call fcn.10065a7b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18