joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad74b48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x3ad74b57
pop dword [ebp - 0x48]
mov eax, 0x3ad74b57
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x37b89
push 0
mov eax, 0x444cabec
add eax, 0xf68a64c8
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4810
xor edi, edi
add edi, eax
mov edx, 0x9ae359d8
add edx, 0x9ff4e428
add edx, dword [ebp - 0x48]
mov esi, 0x4bb5430f
sub dword [ebp - 0x10], 0x76288cce
mov ebx, dword [edx]
mov dword [ebp - 0x2c], 0xdae224c1
xor ebx, esi
sub dword [ebp - 0x1c], esi
mov dword [edi], ebx
xor dword [ebp - 0x40], esi
add edi, 0x99301a8d
sub edi, 0x99301a89
add edx, 4
loop 0x3ad74ba7
add eax, 0xe61fc9e
sub eax, 0xe60e98b
mov ebx, eax
add eax, 0xd5f0fd3
sub eax, 0xd5f0fce
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40942f
pop dword [ebp - 0x2c]
mov eax, 0x105391cf
add eax, 0xefed0260
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1110dc73
sub dword [ebp - 0x3c], 0xc2be9728
mov dword [ebp - 0x38], 0xa44c146e
add dword [ebp - 0x38], 0x8de737d7
mov dword [ebp - 0x34], 0xa64dbb62
sub dword [ebp - 0x34], 0x5a017734
mov dword [ebp - 0x30], 0xc70f2f5e
add dword [ebp - 0x30], 0x38f0d0a2
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x9f9981ae
sub dword [ebp - 0x3c], 0x2b271858
mov dword [ebp - 0x38], 0x44aedb3a
sub dword [ebp - 0x38], 0x34279c5
mov dword [ebp - 0x34], 0xebbd3853
sub dword [ebp - 0x34], 0x884dcbe7
mov dword [ebp - 0x30], 0x4206316b
add dword [ebp - 0x30], 0xbdf9ce95
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b58e
push 0
call eax
mov ecx, 0x4f3c
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x2c]
mov edx, 0xaed298f4
sub edx, 0xefa14d98
add dword [ebp - 0x18], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x20], edx
sub ebx, edx
sub dword [ebp - 0x10], edx
mov dword [esi], ebx
mov dword [ebp - 0x1c], 0x2ed3df2b
add esi, 0x10ee690f
sub esi, 0x10ee690b
add edi, 4
loop 0x40953d
add eax, 0xd5ccdcb5
sub eax, 0xd5cbacf2
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401544
Capabilities:
Get file version info

Disassembly:
push 0x10c
mov eax, 0x44bcf2
call fcn.0042961f
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x34]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], esi
call fcn.004014f8
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x401762
push edi
call fcn.00428ecd
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
push esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push edi
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401759
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x45d0dc
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401759
cmp dword [ebp - 0x18], 0
je 0x401759
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edi
cmp dword [edi], 0xfeef04bd
jne 0x401759
movzx edx, word [edi + 0xc]
lea ecx, [ebp - 0x118]
call fcn.00401413
mov ebx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x100]
movzx edx, word [edi + 0xe]
call fcn.00401413
mov edi, eax
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
movzx edx, word [eax + 8]
call fcn.00401413
mov esi, eax
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
movzx edx, word [eax + 0xa]
call fcn.00401413
push 0x45d0d8
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004018a3
push eax
lea ecx, [ebp - 0xb8]
call fcn.004017f0
push esi
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xa0]
call fcn.00401b81
mov esi, 0x45d0d8
mov byte [ebp - 4], 7
push esi
lea ecx, [ebp - 0xa0]
call fcn.004018a3
push eax
lea ecx, [ebp - 0x88]
call fcn.004017f0
push edi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x70]
call fcn.00401b81
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004018a3
push eax
lea ecx, [ebp - 0x58]
call fcn.004017f0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
push ebx
push eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x14]
call fcn.00401b81
lea ecx, [ebp - 0x58]
call fcn.00401826
lea ecx, [ebp - 0x70]
call fcn.00401826
lea ecx, [ebp - 0x88]
call fcn.00401826
lea ecx, [ebp - 0xa0]
call fcn.00401826
lea ecx, [ebp - 0xb8]
call fcn.00401826
lea ecx, [ebp - 0xd0]
call fcn.00401826
lea ecx, [ebp - 0xe8]
call fcn.00401826
lea ecx, [ebp - 0x100]
call fcn.00401826
lea ecx, [ebp - 0x118]
call fcn.00401826
push dword [ebp - 0x14]
call fcn.00428e8a
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401826
mov eax, dword [ebp - 0x40]
jmp 0x40177d
push esi
call fcn.00428e8a
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebx], esi
mov dword [ebx + 0x10], esi
lea ecx, [ebp - 0x34]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
call fcn.00401826
mov eax, ebx
call fcn.004295ce
ret
Function at 0x4029c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x467054]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push 0x208
mov esi, ecx
lea eax, [esp + 0x24]
push 0
mov dword [esp + 0xc], esi
push eax
mov dword [esp + 0x10], esi
call fcn.0042aca0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x402a37
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00402ec9
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00428e7c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004022a5
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401e1b
lea ecx, [esp + 0xc]
push dword [eax + 4]
push dword [eax]
push str.Failed_to_get_Windows_Directory
call fcn.00402079
push 0x465d00
lea eax, [esp + 0x10]
push eax
call fcn.0042a69c
int3

Function at 0x4033f1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x467054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push esi
mov ecx, dword [eax]
mov eax, dword [0x469ff4]
cmp eax, dword [ecx + 4]
jle 0x40343e
mov esi, 0x469ff4
push esi
call fcn.00429276
cmp dword [0x469ff4], 0xffffffff
pop ecx
jne 0x40343e
push 0x44f5d0
call fcn.0042913f
push esi
call fcn.0042922c
pop ecx
pop ecx
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x45d2e0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403480
push esi
push esi
push esi
push esi
push str.NoStartPage
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 0x469ff8
xor ecx, ebp
pop esi
call fcn.00428e7c
leave
ret
Function at 0x4043b9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c1bc
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x467054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
and dword [ebp - 0x2c], 0
xor ebx, ebx
inc ebx
mov byte [esi], bl
call fcn.0041489d
or dword [esi + 0x1388], 0xffffffff
lea edi, [esi + 0xc]
mov ecx, eax
mov edx, ebx
mov dword [esi + 8], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
mov eax, 0x270
add ecx, edx
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, eax
jb 0x404405
lea edi, [esi + 0x138c]
mov dword [esi + 4], eax
and dword [edi], 0
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
cmp dword [ebp + 8], ebx
jne 0x40445f
lea ecx, [ebp - 0x28]
call fcn.00401483
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00403eab
lea ecx, [ebp - 0x28]
call fcn.00401826
lea eax, [ebp - 0x44]
jmp 0x40446b
lea eax, [ebp - 0x5c]
push eax
call fcn.004047cb
push 2
pop ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.004017f0
test bl, 2
je 0x404484
lea ecx, [ebp - 0x5c]
and ebx, 0xfffffffd
call fcn.00401826
test bl, 1
je 0x404491
lea ecx, [ebp - 0x44]
call fcn.00401826
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.0040458e
push eax
mov ecx, edi
call fcn.004053c5
lea ecx, [ebp - 0x74]
call fcn.00401826
lea ecx, [ebp - 0x28]
call fcn.00401826
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 - 0x10]
xor ecx, ebp
call fcn.00428e7c
leave
ret 4
Function at 0x40458e
Capabilities:
Create directory

Disassembly:
push 0x154
mov eax, 0x44c251
call fcn.0042961f
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x44]
mov ebx, dword [ebp + 8]
push 7
mov dword [ebp - 0x100], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xf8], ebx
call fcn.00412510
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [esi + 4]
mov byte [ebp - 4], 1
mov edi, 0x3e7
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], cl
push 0xb0
push ecx
lea eax, [ebp - 0xf4]
push eax
call fcn.0042aca0
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.004050c3
mov edx, str..CR.
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call fcn.00406c80
push 0x7fff
push 0
push dword [ebp - 0xfc]
mov esi, eax
call fcn.0040734d
push eax
mov ecx, esi
call fcn.00405200
mov edx, 0x45d0dc
mov ecx, eax
call fcn.00406c80
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00405d54
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x130]
call fcn.004017f0
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
call fcn.00402467
pop ecx
xor ecx, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x118]
push eax
call fcn.004018ca
push dword [ebp - 0xf8]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405eaf
lea ecx, [ebp - 0x118]
call fcn.00401826
lea ecx, [ebp - 0x160]
call fcn.00401826
lea ecx, [ebp - 0x130]
call fcn.00401826
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.00401826
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xf4]
test eax, eax
jne 0x40472e
mov byte [ebp - 4], 1
call fcn.0040477a
push 0
pop ecx
sub edi, 1
je 0x404758
jmp 0x4045f3
call fcn.0040477a
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004017f0
lea ecx, [ebp - 0x28]
call fcn.00401826
lea ecx, [ebp - 0x44]
call fcn.004127af
mov eax, ebx
call fcn.004295ce
ret 8
push str.Failed_to_create_clean_folder
lea ecx, [ebp - 0x10c]
call fcn.00401d86
push 0x465dbc
lea eax, [ebp - 0x10c]
push eax
call fcn.0042a69c
int3
Function at 0x4047cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x467054]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
push edi
mov ebx, 0x208
mov dword [esp + 0xc], esi
push ebx
push 0
push eax
call fcn.0042aca0
add esp, 0xc
lea eax, [esp + 0x10]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0042aca0
add esp, 0xc
lea eax, [esp + 0x218]
push edi
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x218]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401953
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00428e7c
mov esp, ebp
pop ebp
ret 4

Function at 0x407463
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x4074ab
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x407473
jmp 0x4074b8
cmp dword [esi], 0x4e0
jb 0x4074b8
call fcn.004074f2
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x4074f2
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407504
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407549
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x407b6e
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x44c89d
call fcn.0042961f
mov edi, ecx
xor ebx, ebx
push 7
pop esi
cmp byte [ebp + 8], bl
je 0x407bd3
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_delay_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.00406b0e
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push 2
mov ecx, edi
call fcn.0040947e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401826
push 0xea60
push dword [edi + 0xec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407c2d
push str.GlobalAvira.Spotlight.Updater_abff403a_9b56_48e6_8753_10fb19692501
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xe4], eax
test eax, eax
jne 0x407c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
push str.Getting_updater_mutex_failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00406b0e
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00407fe2
lea ecx, [ebp - 0x30]
call fcn.00401826
xor al, al
jmp 0x407d0a
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_updater_process_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.00406b0e
push 2
pop ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, edi
call fcn.0040947e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401826
mov eax, dword [edi + 0xe4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xec]
push 0x493e0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x407cd0
sub eax, 1
je 0x407c2d
xor eax, eax
mov dword [ebp - 0x48], ebx
push str.Wait_for_updater_process_timeout_exceeded__continue_anyways
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x48], ax
call fcn.00406b0e
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 4
push eax
push 2
mov ecx, edi
call fcn.0040947e
lea ecx, [ebp - 0x48]
jmp 0x407d03
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Wait_for_updater_process_done
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.00406b0e
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
push 2
mov ecx, edi
call fcn.0040947e
lea ecx, [ebp - 0x30]
call fcn.00401826
mov al, 1
call fcn.004295ce
ret 4
Function at 0x409d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x409d77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a350
jmp 0x409e2c
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x409d99
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x409d9b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x409e20
jg 0x409db0
test esi, esi
je 0x409e20
test ecx, ecx
jl 0x409e03
jg 0x409dba
test eax, eax
je 0x409e03
cmp edi, ecx
jg 0x409dce
jl 0x409dc4
cmp esi, eax
jae 0x409dce
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0042a710
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x409e20
jg 0x409e06
test esi, esi
je 0x409e20
jmp 0x409e06
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x409e20
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004304f9
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x409e6a
jl 0x409e61
test edi, edi
jne 0x409e6a
xor eax, eax
xor edx, edx
jmp 0x409f1c
cmp dword [ecx + 0x38], 0
je 0x409e7d
push esi
push edi
push edx
call fcn.0040a430
jmp 0x409f1c
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x409ebd
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x409ebd
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0042a710
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x409f12
call fcn.0040b7c5
mov edx, ebx
jmp 0x409ef0
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.00430aef
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x409f22
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x409ece
test edx, edx
je 0x409f12
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.00430aef
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x409f14
Function at 0x40a1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x467054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x40a1e3
xor eax, eax
jmp 0x40a2c0
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40a212
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x40a212
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40a2bf
cmp dword [edi + 0x4c], 0
je 0x40a2bd
mov ecx, edi
call fcn.0040b7c5
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x40a246
push dword [edi + 0x4c]
movsx eax, al
push eax
call fcn.0042f421
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40a2bd
mov byte [ebp - 0x25], al
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x45027c]
mov ecx, dword [ebp - 0x34]
call esi
sub eax, 0
je 0x40a291
sub eax, 1
je 0x40a291
dec eax
sub eax, 1
jne 0x40a2bd
push dword [edi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x40a237
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40a2ae
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004304f9
add esp, 0x10
cmp esi, eax
jne 0x40a2bd
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jne 0x40a2bf
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428e7c
leave
ret 4