joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e44b
Capabilities:
Write file on windows

Disassembly:
push 0x144
mov eax, 0x49f424
call fcn.00481105
mov eax, dword [ebp + 0xc]
push 0x4bcdc0
push dword [ebp + 8]
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], edi
mov bl, 1
call fcn.0047c2e8
pop ecx
pop ecx
mov dword [ebp - 0x144], eax
test eax, eax
jne 0x40e4be
mov edi, dword [ebp - 0x148]
test edi, edi
je 0x40e4b7
lea ecx, [ebp - 0x138]
call fcn.0040ecd9
and dword [ebp - 4], 0
mov esi, eax
call fcn.00401fff
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.00402a5a
xor al, al
jmp 0x40e5e1
test edi, edi
je 0x40e4cc
mov eax, dword [edi]
mov dword [ebp - 0x140], eax
jmp 0x40e4d3
and dword [ebp - 0x140], 0
xor eax, eax
push 9
mov word [ebp - 0x38], ax
pop ecx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x14c], eax
cmp eax, edi
je 0x40e55a
cmp dword [esi + 0x14], 8
jb 0x40e4fc
mov eax, dword [esi]
jmp 0x40e4fe
mov eax, esi
push edi
push edi
call fcn.0040e998
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00479152
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x13c], eax
jb 0x40e521
mov esi, dword [esi]
push edi
push dword [ebp - 0x13c]
mov eax, esi
call fcn.0040e998
push dword [ebp - 0x144]
push 1
push edi
push dword [ebp - 0x13c]
call fcn.0047cb3c
push dword [ebp - 0x13c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0047af65
add esp, 0x1c
push edi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x100]
push str._d_wide_chars_to__s_d_bytes
push eax
call fcn.0047c865
mov edi, dword [ebp - 0x148]
add esp, 0x14
test edi, edi
je 0x40e591
lea eax, [ebp - 0x100]
push eax
mov ecx, edi
call fcn.0040299a
test bl, bl
jne 0x40e5c1
test edi, edi
je 0x40e5c1
lea ecx, [ebp - 0x11c]
call fcn.0040ecd9
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00401fff
push 0
push 1
lea ecx, [ebp - 0x11c]
call fcn.00402a5a
push dword [ebp - 0x144]
call fcn.0047c971
mov eax, dword [ebp - 0x150]
pop ecx
test eax, eax
je 0x40e5df
mov ecx, dword [ebp - 0x140]
mov dword [eax], ecx
mov al, bl
call fcn.00481188
ret
Function at 0x412922
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
test esi, esi
je 0x41294d
cmp esi, 0xffffffff
je 0x41294d
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41294d
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x412eb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x412ed7
lea ecx, [ebp - 0xc]
call fcn.0047a10a
push 0x4c83ec
lea eax, [ebp - 0xc]
push eax
call fcn.004812bb
push edi
xor edi, edi
cmp dword [ecx + 0x3cc], edi
jle 0x412ef8
push esi
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
inc edi
cmp edi, dword [ecx + 0x3cc]
jl 0x412ee8
pop esi
pop edi
leave
ret 4
Function at 0x41395a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
cmp byte [eax], 0
je 0x413aa0
push ebx
push esi
mov dword [ebp - 0xc], 0xfffffffe
sub dword [ebp - 0xc], eax
push edi
lea ecx, [eax + 2]
mov dl, byte [ecx - 2]
or eax, 0xffffffff
lea edi, [ebp - 4]
xor bl, bl
stosd dword es:[edi], eax
xor esi, esi
mov edi, dword [0x4d1ff4]
mov eax, dword [0x4d1fe0]
cmp edi, 0x10
jae 0x4139a3
mov eax, 0x4d1fe0
cmp byte [esi + eax], dl
jne 0x4139ab
mov byte [ebp - 4], bl
inc bl
inc esi
cmp bl, 0x40
jb 0x41398e
mov dl, byte [ecx - 1]
xor bl, bl
xor esi, esi
mov eax, dword [0x4d1fe0]
cmp edi, 0x10
jae 0x4139c9
mov eax, 0x4d1fe0
cmp byte [esi + eax], dl
jne 0x4139d1
mov byte [ebp - 3], bl
inc bl
inc esi
cmp bl, 0x40
jb 0x4139ba
mov dl, byte [ecx]
xor bl, bl
xor esi, esi
mov eax, dword [0x4d1fe0]
cmp edi, 0x10
jae 0x4139ee
mov eax, 0x4d1fe0
cmp byte [esi + eax], dl
jne 0x4139f6
mov byte [ebp - 2], bl
inc bl
inc esi
cmp bl, 0x40
jb 0x4139df
mov dl, byte [ecx + 1]
mov al, byte [ebp - 1]
xor bl, bl
xor esi, esi
jmp 0x413a10
mov edi, dword [0x4d1ff4]
cmp edi, 0x10
mov edi, dword [0x4d1fe0]
jae 0x413a20
mov edi, 0x4d1fe0
cmp byte [esi + edi], dl
jne 0x413a27
mov al, bl
inc bl
inc esi
cmp bl, 0x40
jb 0x413a0a
mov bl, byte [ebp - 3]
mov dl, byte [ebp - 4]
mov esi, dword [ebp + 0xc]
shr bl, 4
shl dl, 2
and bl, 3
or bl, dl
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [edx + esi], bl
cmp byte [ecx], 0x3d
mov byte [ebp - 1], al
je 0x413a9d
mov bl, byte [ebp - 2]
mov dl, byte [ebp - 3]
mov edi, dword [ebp + 8]
shr bl, 2
shl dl, 4
and bl, 0xf
or bl, dl
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [edx + esi], bl
mov edx, dword [ebp - 0xc]
add edx, ecx
cmp byte [edx + edi + 3], 0x3d
je 0x413a9d
mov dl, byte [ebp - 2]
shl dl, 6
and al, 0x3f
or al, dl
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
add ecx, 4
mov byte [edx + esi], al
cmp byte [ecx - 2], 0
jne 0x413980
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
leave
ret

Function at 0x4142e3
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x49fb66
call fcn.0048109c
xor ebx, ebx
cmp dword [0x4d5030], ebx
jne 0x414304
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.0047e48c
pop ecx
mov esi, 0x4d4fd0
cmp dword [0x4d503c], ebx
jne 0x414320
push 0xffffffffffffffff
push ebx
push 0x4d5020
mov ecx, esi
call fcn.00401379
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4d4ffc
mov byte [ebp - 0x14], bl
call fcn.004162c7
push ebx
push ebx
push esi
push 0x413df8
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.0047ef59
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x41435c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4d4fec
call fcn.004153a9
cmp byte [ebp - 0x14], bl
je 0x41436c
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00481174
ret
Function at 0x419991
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x49ef18
call fcn.00481105
xor edi, edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x21c], ebx
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2e
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x419a41
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040299a
push 0x4bae2c
mov ecx, esi
call fcn.004041e9
cmp dword [ebp + 0x18], edi
je 0x419a29
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x419a26
lea eax, [ebp + 8]
push eax
jmp 0x419a2e
push 0x4bcc3c
mov ecx, esi
call fcn.004041e9
push 0x4bae2c
mov ecx, esi
call fcn.004041e9
cmp dword [esi + 0x14], 8
jb 0x419a4b
mov eax, dword [esi]
jmp 0x419a4d
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.00402a5a
mov eax, esi
call fcn.00481188
ret

Function at 0x419a67
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x49eec6
call fcn.00481105
xor edi, edi
mov dword [ebp - 4], edi
push 0x4bae00
mov ecx, esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004029c1
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jbe 0x419b0a
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040299a
mov ecx, esi
cmp dword [ebx + 0x10], edi
je 0x419af4
push 0xffffffffffffffff
push edi
push ebx
call fcn.00404662
jmp 0x419afe
push 0x4bcc3c
call fcn.004041e9
push 0x4bae2c
mov ecx, esi
call fcn.004041e9
cmp dword [esi + 0x14], 8
jb 0x419b14
mov eax, dword [esi]
jmp 0x419b16
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
call fcn.00481188
ret
Function at 0x419c65
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x138
mov eax, 0x49ee27
call fcn.00481105
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x130], edi
push 0xc6
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd6]
push edi
push eax
call fcn.004805d0
add esp, 0xc
mov dword [ebp - 0x13c], 0x64
mov dword [ebp - 0x140], edi
xor esi, esi
call fcn.00419c2c
test eax, eax
je 0x419cc3
mov esi, 0x200
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x134]
push eax
push edi
or esi, 0x20019
push esi
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419d2d
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push str.Version
push dword [ebp - 0x134]
mov dword [ebp - 0x144], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 7
pop esi
mov word [ebp - 0xf4], ax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xe4], edi
call fcn.0040299a
mov dword [ebp - 4], edi
push 2
pop ebx
cmp dword [ebp - 0xe4], edi
jne 0x419da0
xor eax, eax
push 0x4bd520
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x100], edi
mov word [ebp - 0x110], ax
call fcn.0040299a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x110]
mov dword [ebp - 0x130], 1
jmp 0x419dbb
lea eax, [ebp - 0xf4]
push eax
lea esi, [ebp - 0x12c]
call fcn.00402109
mov dword [ebp - 4], ebx
mov dword [ebp - 0x130], ebx
mov esi, eax
mov eax, dword [ebp - 0x138]
call fcn.004047ed
or dword [ebp - 0x130], 4
test byte [ebp - 0x130], bl
je 0x419dec
and dword [ebp - 0x130], 0xfffffffd
push edi
push 1
lea ecx, [ebp - 0x12c]
call fcn.00402a5a
test byte [ebp - 0x130], 1
je 0x419e03
push edi
push 1
lea ecx, [ebp - 0x110]
call fcn.00402a5a
push edi
push 1
lea ecx, [ebp - 0xf4]
call fcn.00402a5a
mov eax, dword [ebp - 0x138]
call fcn.00481188
ret
Function at 0x41a3c7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a417
cmp dword [ebp - 0x114], 6
jb 0x41a417
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0047a0fb
leave
ret

Function at 0x41a890
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x6c
mov eax, 0x49ed38
call fcn.00481105
push 0xf0000000
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x41a8d2
push 0x4d4738
push 0x10
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x38]
call fcn.0041aa32
push 1
push 0x4bda5c
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.0040162f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.0041a9a1
push 0x4bdb74
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041a9a1
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00401587
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401587
mov eax, edi
call fcn.00481188
ret

Function at 0x41aac3
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x4a083e
call fcn.00481105
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x41ab01
push 0x4bae2c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
call fcn.0040299a
push str.wsWAE.log
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.004041e9
test byte [0x4d5048], 1
jne 0x41ab8e
or dword [0x4d5048], 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00419832
pop ecx
push eax
mov byte [ebp - 4], 2
call fcn.004141d4
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00401587
push 0x4a250c
call fcn.0047a864
pop ecx
mov byte [ebp - 4], bl
mov dword [0x4d4770], 0x4d4fd0
call fcn.004142e3
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00402a5a
xor eax, eax
call fcn.00481188
ret
Function at 0x41abb3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41abd1
xor eax, eax
jmp 0x41ac3f
cmp dword [ebp - 0x14], 0x10000
je 0x41abcd
push edi
mov edi, dword [ebp - 0x20]
push 0x104
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41ac3c
mov eax, dword [edi + 0x3c]
sub esi, dword [ebp - 0x20]
and dword [ebp - 4], 0
add eax, edi
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
xor edx, edx
mov dword [ebp - 8], eax
cmp dx, ax
jae 0x41ac3c
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp edx, edi
ja 0x41ac22
mov edx, edi
cmp esi, eax
jb 0x41ac2c
add edx, eax
cmp esi, edx
jbe 0x41ac42
inc dword [ebp - 4]
mov ax, word [ebp - 4]
add ecx, 0x28
cmp ax, word [ebp - 8]
jb 0x41ac13
xor eax, eax
pop edi
pop esi
leave
ret
sub esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov byte [ebx + 8], 0
inc eax
jmp 0x41ac3e

Function at 0x41af41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x49d82a
call fcn.00481105
push 4
call fcn.00429c65
lea eax, [ebp - 0x94]
push eax
call fcn.00429af4
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00429c72
dec eax
je 0x41b079
dec eax
je 0x41b03c
dec eax
je 0x41b009
dec eax
jne 0x41b0b7
push 0x4bdc9c
push 0x85
call fcn.00429be4
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
je 0x41b0b7
push ebx
call fcn.00429be4
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, esi
je 0x41affd
push ebx
call fcn.00429be4
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
jbe 0x41affd
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0042c71a
add esp, 0xc
push esi
push ecx
mov eax, esp
mov dword [ebp - 0x98], esp
mov dword [eax], 0x4bdc88
call fcn.0041b479
mov ecx, eax
call fcn.00430d6f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x41b0b7
push str.skinLANG_EN_skin_
lea ecx, [ebp - 0x94]
call fcn.00429031
lea ecx, [ebp - 0x94]
call fcn.00428e17
push eax
call fcn.00429c1e
mov dword [esp], 0x4bdc54
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x41b0a5
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.00429031
lea ecx, [ebp - 0x94]
call fcn.00428e17
push eax
call fcn.00429c1e
push esi
push 1
push str.res.zip
call fcn.0042c7a8
add esp, 0x10
push esi
push ecx
mov eax, esp
mov dword [eax], 0x4bdc88
jmp 0x41b0a5
push str...lib_skinLANG_EN_skin_
lea ecx, [ebp - 0x94]
call fcn.00429031
lea ecx, [ebp - 0x94]
call fcn.00428e17
push eax
call fcn.00429c1e
pop ecx
push esi
push ecx
mov eax, esp
mov dword [eax], str.res.xml
mov dword [ebp - 0x98], esp
call fcn.0041b479
mov ecx, eax
call fcn.00430d6f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00428e6d
call fcn.00481188
ret
Function at 0x41b799
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x49eccc
call fcn.00481105
xor edi, edi
mov dword [ebp - 4], edi
push str.3.0.3
mov ecx, ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], edi
call fcn.004029c1
xor eax, eax
inc eax
push 0x10
push eax
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x41b843
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x41b843
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [eax + 0x28]
cmp esi, edi
je 0x41b843
xor eax, eax
push 0x7e
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push edi
push eax
call fcn.004805d0
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 0xa]
push eax
lea eax, [ebp - 0x90]
push str._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x90]
push eax
mov ecx, ebx
call fcn.0040299a
mov eax, ebx
call fcn.00481188
ret
Function at 0x41c2f3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x68c]
and dword [esp + 4], 0
and dword [esp], 0
push ebx
push esi
push edi
mov edi, dword [eax]
cmp eax, edi
je 0x41c4f6
mov eax, dword [edi + 0x24c]
cmp eax, dword [ebp + 0xc]
jne 0x41c4e5
inc dword [esp + 0x10]
cmp dword [edi + 0x108], 3
jne 0x41c4b6
cmp dword [edi + 0x240], 0
jne 0x41c4b6
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___WaeMgr_InstallTask_id:__d
call fcn.00414401
add esp, 0xc
push 0
call fcn.0047a88d
lea ebx, [edi + 0x1a0]
mov ecx, ebx
mov dword [edi + 0x230], eax
mov dword [edi + 0x234], edx
mov dword [edi + 0x240], 1
mov dword [esp], 0x4bae00
call fcn.00404839
test eax, eax
je 0x41c3c0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
push ebx
call fcn.00402109
lea eax, [edi + 0x1bc]
cmp dword [eax + 0x14], 8
jb 0x41c3b7
mov eax, dword [eax]
push eax
call fcn.00423193
add esp, 0x20
lea eax, [edi + 0x1f4]
cmp dword [eax + 0x14], 8
jb 0x41c3ce
mov eax, dword [eax]
lea ebx, [edi + 0x1bc]
cmp dword [ebx + 0x14], 8
jb 0x41c3de
mov ecx, dword [ebx]
jmp 0x41c3e0
mov ecx, ebx
push eax
call fcn.00404a10
pop ecx
push eax
mov dword [edi + 0x244], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___WaeMgr_InstallTask_res:__d
call fcn.00414401
add esp, 0xc
push 0
call fcn.0047a88d
mov esi, dword [edi + 0x244]
pop ecx
mov dword [edi + 0x238], eax
mov dword [edi + 0x23c], edx
test esi, esi
jne 0x41c432
mov dword [edi + 0x240], 3
jmp 0x41c46b
cmp dword [edi + 8], 0x2694
jne 0x41c452
cmp dword [edi + 0x110], 1
jle 0x41c452
mov dword [edi + 0x240], 3
xor esi, esi
jmp 0x41c45c
mov dword [edi + 0x240], 2
cmp dword [ebx + 0x14], 8
jb 0x41c464
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi + 0x240]
movzx eax, byte [edi + 0x250]
push dword [edi + 0x108]
push eax
push dword [edi + 0x24c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___WaeMgr_InstallTask:__d___d___d___d___d
call fcn.00414401
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x69c]
mov edx, dword [ecx]
add esp, 0x1c
push esi
lea eax, [edi + 8]
push eax
call dword [edx + 8]
mov eax, dword [edi + 0x240]
cmp eax, 3
je 0x41c4e1
cmp dword [edi + 0x24c], 1
jne 0x41c4e5
cmp byte [edi + 0x250], 0
jne 0x41c4e5
cmp dword [edi + 0x108], 2
je 0x41c4e1
cmp eax, 2
jne 0x41c4e5
inc dword [esp + 0xc]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68c], edi
jne 0x41c31b
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0x10], ecx
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f585
Capabilities:
Create process on windows

Disassembly:
push 0x2c
mov eax, 0x49ec62
call fcn.00481105
mov esi, ecx
lea eax, [esi + 0x2dc]
cmp dword [eax + 0x14], 8
jb 0x41f5a1
mov eax, dword [eax]
push eax
call fcn.0047a8f4
pop ecx
mov ecx, dword [esi + 0x68c]
mov esi, dword [ecx]
jmp 0x41f5b9
cmp dword [esi + 8], eax
je 0x41f5c5
mov esi, dword [esi]
cmp ecx, esi
jne 0x41f5b2
mov al, 1
call fcn.00481188
ret
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.retry
call fcn.004029c1
sub esp, 0x1c
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.cbs_down
call fcn.004029c1
sub esp, 0x1c
lea eax, [esi + 0xc]
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00402109
or dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x2c]
call fcn.0041b721
add esp, 0x54
mov dword [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f624
mov eax, ebx
push 1
push edi
push edi
push eax
push str.Open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4bca30
mov esi, eax
call fcn.004029c1
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.browserdown
call fcn.004029c1
mov byte [ebp - 4], 2
call fcn.00416b8a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
cmp esi, 0x20
setge al
jmp 0x41f5bf