joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100600a5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100600ef
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10060096
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100600a5
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10465d48
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100600f6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10046f6c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10060195
add edi, 4
add eax, 2
dec ecx
jne 0x100600db
call 0x10060142
loope 0x10060138
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10060192
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100601a3
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10060156
cmp eax, ecx
ja 0x10060156
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100601e0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100601d6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004744b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x2e00bb0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x2e00bb1e
pop dword [ebp - 0x44]
mov eax, 0x8ab475af
add eax, 0xa34c456f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x18bd51e3
add dword [ebp - 0x54], 0x3594f368
mov dword [ebp - 0x50], 0xce1349c0
add dword [ebp - 0x50], 0x64200285
mov dword [ebp - 0x4c], 0x9c09ae26
add dword [ebp - 0x4c], 0xb0429608
mov dword [ebp - 0x48], 0x83fe0449
add dword [ebp - 0x48], 0x7c01fbb7
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe382c39b
sub dword [ebp - 0x54], 0x6f105a45
mov dword [ebp - 0x50], 0xfbf5ca7c
add dword [ebp - 0x50], 0x457696f9
mov dword [ebp - 0x4c], 0x3e659bf7
add dword [ebp - 0x4c], 0x2509d075
mov dword [ebp - 0x48], 0x47e60f77
sub dword [ebp - 0x48], 0x47e60f77
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x65945f3f
sub eax, 0x37913e83
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x432f8
push 0
call eax
mov ecx, 0x969e83dc
sub ecx, 0x969e3305
mov edi, eax
mov ebx, 0x1ac76623
sub ebx, 0xecc1f823
add ebx, dword [ebp - 0x44]
mov edx, 0x4f22ae07
add edx, 0xa44a0ed
xor dword [ebp - 0x30], 0xb3771ca8
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x18], 0x756890cb
mov dword [edi], esi
mov dword [ebp - 8], 0x4478e58e
add edi, 4
add ebx, 0xb548e32b
add ebx, 0x4ab71cd9
loop 0x2e00bc3b
add eax, 0x1362f
mov ebx, eax
add eax, 0x326636ea
sub eax, 0x326636e5
mov ecx, 0x1ff460d5
sub ecx, 0xf1f460d5
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e00bb0f
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e00bb0f
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret
Function at 0x401072
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010a5
push 0xfffffffffffffffe
pop eax
jmp 0x401217
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4010ce
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010ea
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4010f2
or eax, 0xffffffff
jmp 0x401217
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401200
cmp byte [esi + 1], 0x4d
jne 0x401200
push 0
sub edi, 0xe
pop eax
je 0x401120
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401114
cmp dword [esi + 0x10], 0
je 0x40112d
push 0xfffffffffffffff0
jmp 0x401202
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x401169
sub eax, 3
je 0x401165
sub eax, 4
je 0x40115e
sub eax, 0x10
jne 0x401200
xor eax, eax
jmp 0x40116c
mov eax, 0x400
jmp 0x40116c
push 0x40
jmp 0x40116b
push 8
pop eax
mov ebx, dword [esi]
push 0
add ebx, eax
add ebx, esi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp + 0xc], 0
push 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x401196
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4011c5
cmp dword [ebp + 0xc], 0
je 0x4011c5
push esi
call fcn.0040121e
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x4011f2
cmp dword [ebp + 0xc], 0
je 0x4011f2
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401203
push 0xfffffffffffffff8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40144c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
je 0x4014a9
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4014a1
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004013af
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4014af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004312e7
mov esi, eax
pop ecx
test esi, esi
je 0x4014fd
xor edx, edx
test ebx, ebx
jbe 0x4014fd
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014e7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403dc1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x403ecd
cmp byte [ebp + 0xc], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
jne 0x403e71
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x403ecd
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x403ec3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00431990
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.004319bf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00404cc8
push dword [ebp + 0xc]
jmp 0x403eb5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x403ecd
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x403ec3
call fcn.004319bf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404cc8
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x403ecf
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404b09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x404b78
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x404b5b
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x404b5b
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x404b5b
mov byte [ebp - 1], 1
jmp 0x404b78
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x404b78
cmp byte [ebp - 1], bl
jne 0x404b78
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x404b62
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x406ba4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.00424af3
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406be5
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00406c3a
test eax, eax
jne 0x406c31
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x406c01
push esi
push edi
mov ecx, ebx
call fcn.00406c3a
test eax, eax
jne 0x406c31
push 0x45d464
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.0042d05a
add esp, 0xc
test eax, eax
jge 0x406c31
push edi
push esi
push 4
call fcn.0042d05a
add esp, 0xc
test eax, eax
jge 0x406c31
xor eax, eax
jmp 0x406c34
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x409591
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4095b7
push ebx
push ebx
call fcn.004322ac
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4095cf
push ebx
push ebx
call fcn.004322ac
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x4095e6
push ebx
push ebx
call fcn.004322ac
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x4095fc
push ebx
push ebx
call fcn.004322ac
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00431d90
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409804
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x44542a
call fcn.004312c8
sub esp, 0x828
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
call fcn.004099fd
test al, al
je 0x409837
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4099a6
push edi
xor esi, esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x834]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00409a27
lea eax, [ebp - 0x834]
lea edi, [ebx + 0x90]
test eax, eax
lea eax, [ebp - 0x834]
jne 0x40987e
mov eax, 0x45d464
push eax
mov ecx, edi
call fcn.004016cc
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xb8]
cmp eax, esi
jne 0x409898
mov eax, 0x45d464
push eax
call fcn.004016cc
push 0x2c
call fcn.004312e7
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x4098c7
mov ecx, edi
call fcn.00408609
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push ebx
push eax
call fcn.004099b6
jmp 0x4098c9
xor eax, eax
mov dword [ebx + 0xe0], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push ebx
push 0x4097ae
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.004312e7
pop ecx
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp + 8], eax
push 1
call edi
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x409958
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x409949
cmp dword [ebp - 0x30], 0x8032
jne 0x40993d
mov ecx, dword [ebx + 0xe0]
call fcn.00409d7d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409916
push 0xff
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push 1
jmp 0x40990c
push dword [ebp + 8]
call fcn.004305fc
mov ebx, dword [ebx + 0xe0]
pop ecx
cmp ebx, esi
pop edi
je 0x40997b
lea ecx, [ebx + 8]
call fcn.00409b8f
push ebx
call fcn.004305fc
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x409985
xor eax, eax
jmp 0x4099a6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], esi
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x409d53
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409d78
call esi
call esi
inc edi
cmp edi, 0x64
jl 0x409d5d
pop edi
xor eax, eax
pop esi
ret
Function at 0x40d850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d95c
cmp byte [ebp + 0xc], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
jne 0x40d900
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40d95c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40d952
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00431990
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.004319bf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0040496c
push dword [ebp + 0xc]
jmp 0x40d944
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40d95c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40d952
call fcn.004319bf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0040496c
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40d95e
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40feff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ff56
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x45d570
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ff4d
mov byte [0x45f574], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x411851
Capabilities:
Hide graphical window

Disassembly:
push dword [0x45f584]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41187d
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x45f584]
call esi
push 0
push dword [0x45f57c]
call esi
pop esi
ret

Function at 0x41187e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x45f584]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.00424949
cmp dword [eax], 1
je 0x4118e8
cmp dword [eax + 4], ebx
je 0x41193d
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41193d
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x45f584]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4127e9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x412976
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x150]
push 0xff
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x412976
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x412861
lea eax, [ebp - 0x150]
push 0xff
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x412976
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.0041310f
push 1
push 0x456df0
push esi
mov edi, eax
call fcn.0041310f
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x412976
test edi, edi
je 0x412976
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x412900
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x412906
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x412916
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x412976
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret