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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x406b50
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x406b4f
cmp dword [esi + 0x78], ebx
jne 0x406aea
mov byte [ebp - 1], 1
jmp 0x406b4f
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x406b4f
add eax, 2
push eax
call fcn.004280de
mov esi, eax
pop ecx
cmp esi, ebx
je 0x406b4f
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x406b48
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x406b32
mov eax, dword [ecx + 0x68]
jmp 0x406b35
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.004068a9
mov byte [ebp - 1], al
push esi
call fcn.004299f4
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x406b59
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov esi, ecx
call fcn.0042a700
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406bf0
cmp dword [esi + 0x28], 8
jb 0x406bab
mov eax, dword [esi + 0x14]
jmp 0x406bae
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x441bd0
push eax
call edi
test eax, eax
jne 0x406bc9
cmp dword [ebp - 0x7c], 5
sete al
jmp 0x406bf2
cmp dword [esi + 0x28], 8
jb 0x406bd4
mov esi, dword [esi + 0x14]
jmp 0x406bd7
add esi, 0x14
push 0x441bc8
push esi
call edi
test eax, eax
jne 0x406bec
cmp dword [ebp - 0x7c], 5
setne al
jmp 0x406bf2
mov al, 1
jmp 0x406bf2
xor al, al
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.004298db
add ebp, 0x98
leave
ret
Function at 0x4082e7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov byte [ebp - 1], bl
cmp dword [edi + 0x78], ebx
je 0x4083d7
cmp dword [edi + 0x60], 8
jb 0x40830a
mov eax, dword [edi + 0x4c]
jmp 0x40830d
lea eax, [edi + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4083d7
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x14], eax
call fcn.004280de
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4083cd
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4083cd
cmp dword [ebp - 0x10], esi
jne 0x4083cd
mov eax, dword [ebp - 8]
mov byte [eax + esi], bl
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004280de
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4083c4
push dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4083bd
cmp dword [edi + 0x7c], 8
jb 0x4083ae
mov eax, dword [edi + 0x68]
jmp 0x4083b1
lea eax, [edi + 0x68]
push eax
push esi
mov ecx, edi
call fcn.0040827a
mov byte [ebp - 1], al
push esi
call fcn.004299f4
pop ecx
push dword [ebp - 8]
call fcn.004299f4
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x4087ac
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x4088f5
push 8
pop ebx
cmp dword [esi + 0x44], ebx
jb 0x4087c8
mov eax, dword [esi + 0x30]
jmp 0x4087cb
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x441c20
push eax
call edi
test eax, eax
jne 0x40881a
cmp dword [esi + 0x60], ebx
jb 0x4087e7
mov eax, dword [esi + 0x4c]
jmp 0x4087ea
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408813
cmp dword [esi + 0x60], ebx
jb 0x4087ff
mov esi, dword [esi + 0x4c]
jmp 0x408802
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408813
inc eax
jmp 0x4088f7
xor eax, eax
jmp 0x4088f7
cmp dword [esi + 0x44], ebx
jb 0x408824
mov eax, dword [esi + 0x30]
jmp 0x408827
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x408852
cmp dword [esi + 0x60], ebx
jb 0x40883d
mov esi, dword [esi + 0x4c]
jmp 0x408840
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x4088f7
cmp dword [esi + 0x44], ebx
jb 0x40885c
mov eax, dword [esi + 0x30]
jmp 0x40885f
lea eax, [esi + 0x30]
push str.contentasutf
push eax
call edi
test eax, eax
jne 0x4088a9
cmp dword [esi + 0x60], ebx
jb 0x408875
mov eax, dword [esi + 0x4c]
jmp 0x408878
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088f5
cmp dword [esi + 0x60], ebx
jb 0x40888d
mov eax, dword [esi + 0x4c]
jmp 0x408890
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4088f5
push 0xfde9
mov ecx, esi
call fcn.004082e7
jmp 0x4088f7
cmp dword [esi + 0x44], ebx
jb 0x4088b3
mov eax, dword [esi + 0x30]
jmp 0x4088b6
lea eax, [esi + 0x30]
push str.contentasansi
push eax
call edi
test eax, eax
jne 0x4088f5
cmp dword [esi + 0x60], ebx
jb 0x4088cc
mov eax, dword [esi + 0x4c]
jmp 0x4088cf
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088f5
cmp dword [esi + 0x60], ebx
jb 0x4088e4
mov eax, dword [esi + 0x4c]
jmp 0x4088e7
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4088f5
push eax
jmp 0x4088a0
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x408eff
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x1c
mov eax, 0x43e130
call fcn.004298ea
mov edi, ecx
push 0x441c64
lea ecx, [ebp + 0x1c]
call fcn.00405a89
and dword [ebp - 4], 0
push 0x441c60
lea ecx, [ebp]
call fcn.00405a89
push 0
lea eax, [ebp + 0x1c]
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00408d59
mov esi, eax
cmp esi, 0xffffffff
je 0x408feb
lea eax, [ebp + 0x650]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409044
lea eax, [ebp + 0x650]
add edi, 0x54
push eax
mov ecx, edi
call fcn.00405a65
push esi
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00408d59
cmp eax, 0xffffffff
je 0x408fba
mov ecx, dword [ebp + 0x30]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00408edd
mov byte [ebp - 4], 2
jmp 0x408fd1
mov eax, dword [ebp + 0x30]
push 0xffffffffffffffff
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00408edd
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00405f97
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040574b
jmp 0x409044
lea eax, [ebp + 0x38]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409044
lea eax, [ebp + 0x650]
push eax
push 0
push 0x441c58
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409044
lea eax, [ebp + 0x650]
add edi, 0x54
push eax
mov ecx, edi
call fcn.00405a65
push 0x441c4c
mov ecx, edi
call fcn.004065a4
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp]
call fcn.0040574b
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040574b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.004298db
add ebp, 0xc6c
leave
ret

Function at 0x409537
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x3e0], edi
jle 0x409577
push 8
call fcn.004292d7
pop ecx
cmp eax, edi
je 0x40955e
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x409560
xor eax, eax
push edi
push edi
push eax
push 0x4094fc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
Function at 0x40974c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409838
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409837
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x4097be
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x4097c6
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x409837
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x4097eb
inc eax
push eax
call fcn.004280de
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x409837
push ebx
lea ecx, [ebp - 0x620]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409829
mov eax, dword [ebp - 0x620]
cmp eax, dword [esi + 4]
jne 0x409829
push dword [esi + 0x10]
call fcn.004299f4
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x409837
cmp byte [esi + 0xc], bl
je 0x409837
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004298db
leave
ret

Function at 0x4098dd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44e4fc], 0
je 0x40993b
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042a700
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov byte [0x44e4fc], 0
sbb al, al
inc al
mov byte [0x45011c], al
jmp 0x409940
mov al, byte [0x45011c]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004298db
add ebp, 0x98
leave
ret
Function at 0x409ddf
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
je 0x409e85
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x409e84
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004280de
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x409e79
push esi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409e72
cmp edi, dword [ebp - 8]
jne 0x409e72
push dword [ebp + 0xc]
push edi
push ebx
call fcn.00409bca
add esp, 0xc
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.004299f4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40a00d
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2020]
mov eax, 0x2020
call fcn.0042b440
push 0xffffffffffffffff
push 0x43e1c2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp + 0x201c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
call fcn.00405f82
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409e87
xor eax, eax
push 0x1ffe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.0042a700
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a187
push str.123374DE290_123F_4565_9164_39C4925E467B
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x2000
call fcn.00405a89
push 0x4419f0
push 3
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00409fe1
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a0d5
lea eax, [ebp + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a17c
mov edi, str._USERPROFILE_
push edi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x40a171
lea ecx, [ebp + 0x1c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.00405a65
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00405796
push ebx
push 0x28
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00409fb9
cmp dword [esi + 0x18], 8
jb 0x40a155
mov eax, dword [esi + 4]
jmp 0x40a158
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a168
test al, 0x10
jne 0x40a17c
mov ecx, esi
call fcn.00409e87
jmp 0x40a17c
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00405a65
push ebx
push 1
lea ecx, [ebp]
call fcn.0040574b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x201c]
xor ecx, ebp
call fcn.004298db
add ebp, 0x2020
leave
ret

Function at 0x40a483
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a4b4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x40a4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8
Function at 0x40a79d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0042a700
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x100
test esi, esi
je 0x40a7d4
mov dword [ebp - 0x44], 0x140
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x38], ebx
test esi, esi
je 0x40a7ef
and dword [esi], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a80f
test esi, esi
je 0x40a8b4
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x40a8b4
cmp dword [ebp - 0x28], 0x1b
je 0x40a81f
cmp dword [ebp - 0x28], 0x1f
jne 0x40a8b4
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.shell32.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
jne 0x40a8ac
push 0x38
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0042a700
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x100
cmp esi, edi
je 0x40a879
mov dword [ebp - 0x80], 0x140
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x78], str.openas
mov dword [ebp - 0x74], ebx
cmp esi, edi
je 0x40a890
mov dword [esi], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a8b3
cmp esi, edi
je 0x40a8b3
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
jmp 0x40a8b3
lea ecx, [ebp - 0xc]
push ecx
push edi
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f679
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.0042a700
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 7
mov dword [ebp - 0xbb0], 0x401
call fcn.0042a700
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004298db
leave
ret

Function at 0x40f750
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.0042a700
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 6
call fcn.0042a700
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004298db
leave
ret

Function at 0x410091
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test bl, 1
je 0x4100a6
mov edi, 0x80000000
and ebx, 2
je 0x4100ca
cmp dword [esi + 0x40], 8
jb 0x4100b6
mov eax, dword [esi + 0x2c]
jmp 0x4100b9
lea eax, [esi + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or edi, 0x40000000
cmp dword [esi + 0x5c], 8
jb 0x4100d5
mov eax, dword [esi + 0x48]
jmp 0x4100d8
lea eax, [esi + 0x48]
push 0
push 0x80
push ebx
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
mov dword [esi + 0x24], eax
setne cl
pop esi
mov al, cl
pop ebx
ret 4
Function at 0x410e3c
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x24]
call fcn.004104e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
push edi
push edi
push esi
push 0x410deb
push edi
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
push 0x190
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x411538
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x41156b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4115c8
mov eax, dword [ebp - 4]
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004280de
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4115c7
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
push ebx
call fcn.0042a700
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
je 0x4115c0
lea eax, [ebp - 8]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x4115c0
or dword [ebp - 8], 0xffffffff
push ebx
call fcn.004299f4
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x4116d4
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x84]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x4116f5
push eax
call fcn.004299f4
pop ecx
mov dword [edi], ebx
mov dword [esi + 0x88], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4117af
push dword [esi + 0x88]
mov ecx, esi
call fcn.00411314
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.004280de
mov edi, eax
pop ecx
cmp edi, ebx
je 0x411785
mov eax, dword [ebp - 4]
inc eax
push eax
push ebx
push edi
call fcn.0042a700
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41177e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 8]
push edi
call fcn.004115d1
test al, al
je 0x4117bb
mov ecx, dword [esi + 0x1a4]
cmp dword [ecx + 0x20], ebx
je 0x4117bb
push dword [ebp - 8]
push edi
call fcn.00410283
push edi
call fcn.004299f4
pop ecx
cmp dword [ebp - 4], ebx
ja 0x4116fb
push dword [esi + 0x88]
mov ecx, esi
call fcn.00411314
mov ecx, dword [esi + 0x1a4]
call fcn.00410275
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x4117a8