joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ede
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4445d8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
xor edi, edi
cmp eax, edi
jne 0x428f32
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
call esi
test eax, eax
je 0x428f18
mov dword [0x4445d8], ebx
jmp 0x428f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x428f2d
push 2
pop eax
mov dword [0x4445d8], eax
jmp 0x428f32
mov eax, dword [0x4445d8]
cmp eax, 1
jne 0x428f4a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
jmp 0x429009
cmp eax, 2
je 0x428f53
cmp eax, edi
jne 0x428f7c
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 8], edi
jne 0x428f66
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 0xc]
call edi
mov ebx, eax
test ebx, ebx
jne 0x428f83
xor eax, eax
jmp 0x429009
jle 0x428fc9
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 1
jb 0x428fc9
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x428fb1
call fcn.0041ebc0
mov esi, esp
test esi, esi
je 0x428f7c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x428fcb
push eax
call fcn.0040abd3
test eax, eax
pop ecx
je 0x428fc5
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
jmp 0x428fcb
xor esi, esi
test esi, esi
je 0x428f7c
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x428fff
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x428fe8
push eax
push eax
jmp 0x428fee
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
push esi
call fcn.0041349e
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a6c9
leave
ret
Function at 0x474f00
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 0x474f42
call fcn.0047a885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474f42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474f39
xor eax, eax
jmp 0x474f4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474f50
pop edi
pop esi
pop ebx
ret 4

Function at 0x47adb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ade3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad1b
jmp 0x47ae01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad1b
test edi, edi
mov eax, edi
jne 0x47adeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x60b11d77
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6f80680f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x408980
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x47c22e
call fcn.004569c5
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], esi
push str.C:Program_FilesCCleaner
mov dword [ebp - 0x38], ebx
call fcn.0040933a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4089eb
lea eax, [ebp - 0x2c]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x2c], 0
je 0x408a63
push ecx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x34], ebx
call fcn.004092a3
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x408a58
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0040933a
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.00409303
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040abc9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.004095f6
mov eax, esi
call fcn.00456974
ret
Function at 0x409c9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c560
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4bf100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409d11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409d11
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x409d01
cmp esi, ecx
jae 0x409d11
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x409cef
cmp esi, ecx
jae 0x409d11
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x409d13
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ca06
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d041
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4bf100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x98]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.0040c963
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x90]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xb
call fcn.0040c8d9
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 9
lea ecx, [esi + 0x88]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 8
lea ecx, [esi + 0x84]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 7
lea ecx, [esi + 0x80]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 6
lea ecx, [esi + 0x58]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 5
lea ecx, [esi + 0x54]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 1
lea ecx, [esi + 0x14]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
mov dword [ebp - 0x48], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aacb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4109d3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov dl, byte [esi + 0x34]
test edi, edi
jle 0x410a08
mov ecx, dword [esi + 0x260]
push ebx
movzx ebx, dl
mov eax, ecx
shl ecx, 8
shr eax, 0x18
xor eax, ebx
xor ecx, dword [eax*4 + 0x4a9ff8]
sub edi, 1
jne 0x4109eb
pop ebx
mov dword [esi + 0x260], ecx
mov eax, dword [esi + 0x34]
mov byte [eax + esi + 0x58], 1
mov ecx, dword [esi + 0x38]
mov eax, ecx
sub eax, 1
je 0x410aa2
sub eax, 1
je 0x410a90
sub eax, 1
je 0x410a6f
mov byte [ecx + esi + 0x54], 1
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
inc ecx
mov dword [esi + 0x44], ecx
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov cl, byte [esi + 0x38]
mov eax, dword [esi + 0x24]
sub cl, 4
mov byte [edx + eax], cl
jmp 0x410aab
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
inc ecx
mov dword [esi + 0x44], ecx
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
jmp 0x410aa8
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x44]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
inc ecx
mov dword [esi + 0x44], ecx
jmp 0x410a8b
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x44]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
pop edi
pop esi
ret
Function at 0x412136
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
test esi, esi
je 0x412148
mov dword [esi], ecx
test edi, edi
je 0x4122a8
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c4], ecx
test eax, eax
je 0x4122a8
mov ebx, dword [ebp + 0xc]
test ebx, ebx
js 0x4122a8
cmp byte [edi + 0x1390], cl
je 0x412187
test esi, esi
je 0x41217b
or dword [esi], 0xffffffff
or dword [edi + 0x13c4], 0xffffffff
jmp 0x4122bb
test ebx, ebx
jne 0x41219a
test esi, esi
je 0x4122bb
mov dword [esi], ecx
jmp 0x4122bb
push dword [edi]
mov dword [edi + 0x13a8], ebx
mov dword [edi + 0x13a4], eax
call fcn.00464edf
pop ecx
test eax, eax
jne 0x412292
lea eax, [edi + 0x1394]
cmp dword [edi + 0x1398], 0
mov dword [ebp + 8], eax
jne 0x412216
mov ecx, dword [edi]
call fcn.00411cc8
test al, al
jne 0x412213
push dword [edi]
lea eax, [edi + 4]
push 0x1388
push 1
push eax
call fcn.00464da4
push dword [edi]
mov dword [ebp + 0xc], eax
call fcn.00464edf
add esp, 0x14
test eax, eax
jne 0x412292
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 4]
mov dword [edi + 0x138c], eax
mov dword [edi + 0x1398], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x412216
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00411b00
test eax, eax
jne 0x412275
mov ecx, dword [edi]
call fcn.00411cc8
test al, al
je 0x412249
xor eax, eax
cmp dword [edi + 0x1398], eax
jne 0x41224b
cmp dword [edi + 0x13a8], eax
jbe 0x41224b
push 0xfffffffffffffff9
pop eax
test esi, esi
je 0x4122b5
mov dword [esi], eax
jmp 0x4122b5
xor eax, eax
cmp dword [edi + 0x13a8], eax
je 0x412267
push dword [edi]
call fcn.00464edf
pop ecx
test eax, eax
jne 0x412292
mov eax, dword [ebp + 8]
jmp 0x4121bc
test esi, esi
je 0x41226d
mov dword [esi], eax
mov dword [edi + 0x13c4], eax
jmp 0x41228e
push 4
pop ecx
cmp eax, ecx
jne 0x412241
test esi, esi
je 0x412282
mov dword [esi], ecx
sub ebx, dword [edi + 0x13a8]
mov dword [edi + 0x13c4], ecx
mov eax, ebx
jmp 0x4122bd
test esi, esi
je 0x41229c
mov dword [esi], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
jmp 0x4122bb
push 0xfffffffffffffffe
pop eax
test esi, esi
je 0x4122b1
mov dword [esi], eax
test edi, edi
je 0x4122bb
mov dword [edi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41d399
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x47e8f5
call fcn.00456992
mov esi, edx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyFileOrBufferToResource
lea ecx, [ebp - 0x3c]
call fcn.0041e6cc
xor edx, edx
mov dword [ebp - 4], edx
mov eax, edx
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x41d567
test esi, esi
je 0x41d567
cmp dword [ebp + 0xc], eax
je 0x41d567
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41d409
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [esi], dx
je 0x41d567
cmp dword [0x4c2430], edx
jle 0x41d41d
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d56e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41d47c
mov dword [ebp - 0x14], 9
push edx
push 0x80
push 3
push edx
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
call esi
cmp edi, 0xffffffff
jne 0x41d483
cmp eax, 0x20
je 0x41d45b
cmp eax, 5
jne 0x41d472
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
push 0
pop edx
jns 0x41d42e
call esi
mov dword [ebp - 0x10], eax
jmp 0x41d56e
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov dword [ebx], edx
push dword [0x4c2508]
call fcn.004640c6
mov edi, eax
pop ecx
test edi, edi
jne 0x41d4a1
mov dword [ebp - 0x10], 8
jmp 0x41d556
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 0
je 0x41d4d2
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x4c2508]
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d546
mov esi, dword [ebp - 0x14]
jmp 0x41d505
mov esi, dword [0x4c2508]
mov ecx, esi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
lea eax, [esi + edx]
cmp eax, dword [ebp - 0x1c]
jbe 0x41d4f2
mov esi, dword [ebp - 0x1c]
sub esi, edx
mov dword [ebp - 0x14], esi
mov ecx, esi
mov eax, dword [ebp - 0x2c]
push ecx
add eax, edx
push eax
push edi
call fcn.00457890
add esp, 0xc
add dword [ebp - 0x20], esi
test esi, esi
je 0x41d54f
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x30]
call dword [ebp + 0xc]
test eax, eax
je 0x41d546
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x41d522
add dword [ebx], eax
cmp dword [ebp - 0x14], eax
jne 0x41d53d
cmp dword [0x4c2430], 0
jle 0x41d4a5
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d54f
mov dword [ebp - 0x10], 0x3f5
jmp 0x41d54f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push edi
call fcn.0045f917
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41d56e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d56e
mov dword [ebp - 0x10], 0x57
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e740
mov eax, esi
call fcn.00456960
ret
Function at 0x41dc39
Capabilities:
Delete file

Disassembly:
push 0xf4
mov eax, 0x47ea8c
call fcn.004569c5
mov esi, ecx
lea eax, [ebp - 0xdc]
xor ebx, ebx
push eax
push str.PrepareRemoteUpdateDescriptor
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xdc], ebx
call fcn.0041e6cc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xe0]
call fcn.0040aaed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00451190
mov byte [ebp - 4], 2
or ebx, 0xffffffff
test esi, esi
je 0x41de01
xor edi, edi
cmp word [esi], di
je 0x41de01
mov edx, str..xml
lea ecx, [ebp - 0xe4]
call fcn.0041eeb3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040951e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe4]
add ecx, 0xfffffff0
call fcn.0040aacb
mov eax, dword [ebp - 0xe0]
cmp dword [eax - 0xc], edi
jne 0x41dcec
mov dword [ebp - 0xdc], 0x52
jmp 0x41de0b
mov edx, dword [ebp - 0xe0]
push ecx
push edi
push ecx
mov ecx, esi
call fcn.0041ce33
add esp, 0xc
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x41de0b
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xe8]
call fcn.0040c04f
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x41dd59
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe8], ebx
je 0x41de0b
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe8], ebx
jmp 0x41de0b
mov ecx, dword [ebp - 0xe0]
push edi
call fcn.00421f7f
mov dword [ebp - 0xdc], eax
pop ecx
test eax, eax
jne 0x41dd32
push edi
push 0x74
push dword [ebp - 0xe0]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004521b0
lea ecx, [ebp - 0xf4]
call fcn.004512f0
test al, al
jne 0x41ddce
push dword [ebp - 0xf0]
lea ecx, [ebp - 0xf4]
push dword [ebp - 0xf4]
call fcn.004519d0
push eax
push str.XML_is_not_valid:___hs__error:_u__file_offset:_u
call fcn.0041e1d8
add esp, 0x10
mov dword [ebp - 0xdc], 0xd
jmp 0x41dd32
inc dword [0x4c2428]
lea ecx, [ebp - 0xd8]
call fcn.00429c9d
dec dword [0x4c2428]
mov dword [ebp - 0xdc], eax
cmp eax, 0x490
jne 0x41dd32
mov dword [ebp - 0xdc], edi
jmp 0x41dd32
mov dword [ebp - 0xdc], 0x57
mov eax, dword [ebp - 0xe0]
cmp dword [eax - 0xc], 0
je 0x41de4c
push 9
pop edi
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41de4c
cmp eax, 0x20
je 0x41de3c
cmp eax, 5
jne 0x41de4c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x41de1a
mov esi, dword [ebp - 0xdc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00451260
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0xe0]
add ecx, 0xfffffff0
call fcn.0040aacb
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x100]
call fcn.0041e740
mov eax, esi
call fcn.00456974
ret

Function at 0x41e1d8
Capabilities:
Get file size
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
pop ebp
jmp fcn.0041e1e7
Function at 0x41fca5
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x47f172
call fcn.00456992
mov ebx, ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040aaed
and dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
call fcn.0040aaed
mov byte [ebp - 4], 1
or edi, 0xffffffff
test ebx, ebx
je 0x41fe82
xor eax, eax
cmp word [ebx], ax
je 0x41fe82
push ebx
lea eax, [ebp - 0x14]
push str.__s
push eax
call fcn.0040bead
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x5c
push 0x2f
call fcn.00409476
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423166
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040951e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.004095d2
push 0x3a
pop ecx
cmp ax, cx
je 0x41fe85
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fdd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, esi
cmp esi, 0xb7
je 0x41fdd8
cmp ebx, 3
jne 0x41fdcc
push 0x5c
push dword [ebp - 0x10]
call fcn.00456ff3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41fe85
sub edi, dword [ebp - 0x10]
sar edi, 1
cmp edi, 0xffffffff
je 0x41fe85
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bd08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.0040951e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.004095d2
push 0x3a
pop ecx
cmp ax, cx
jne 0x41fd33
jmp 0x41fe85
test esi, esi
jne 0x41fe85
jmp 0x41fdd8
mov esi, ebx
cmp edi, 0xffffffff
je 0x41fe85
lea eax, [edi + 1]
push eax
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0041cd95
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41fe23
mov ecx, ebx
lea eax, [ebp - 0x18]
sub ecx, edi
push ecx
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00416c82
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040be21
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
jmp 0x41fe49
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00416c10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040be21
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
xor esi, esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fe69
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fe6b
mov eax, esi
xor esi, esi
mov edi, ebx
cmp eax, 0xb7
cmovne esi, eax
cmp ebx, 0xffffffff
jne 0x41fde1
jmp 0x41fe85
push 0x57
pop esi
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov eax, esi
call fcn.00456960
ret