joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59ad80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push edi
xor edi, edi
cmp eax, edi
jne 0x59adab
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x10
ret
push esi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x59ae0b
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59ae02
cmp dword [esp + 8], 8
jne 0x59ae02
cmp dword [esp + 0x10], 0x70797466
jne 0x59ae02
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x14]
pop esi
pop edi
xor ecx, esp
call fcn.005f85e7
add esp, 0x10
ret

Function at 0x59b220
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x59b26d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59b251
sub eax, edx
je 0x59b26d
push esi
call fcn.005ae7c0
add esp, 4
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x59b660
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c280
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x198], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x480]
cmp eax, ebx
je 0x59b6b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x480], ebx
mov eax, dword [esi + 0x4c0]
push eax
push str.SoftwareDownloadManager_ldChList
lea ecx, [ebp - 0x94]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call edi
cmp eax, ebx
je 0x59b716
push eax
lea eax, [ebp - 0x94]
push eax
push str.Can_not_delete_subkey__s_from_registry__error_code___ld_n
lea ecx, [ebp - 0x194]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea edx, [ebp - 0x194]
push edx
lea ecx, [esi + 0x4f4]
call fcn.005547b0
mov eax, dword [esi + 0x4c0]
push eax
push str.SoftwareDownloadManager_ld
lea ecx, [ebp - 0x94]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
push 0x80000001
call edi
cmp eax, ebx
je 0x59b771
push eax
lea eax, [ebp - 0x94]
push eax
push str.Can_not_delete_subkey__s_from_registry__error_code___ld_n
lea ecx, [ebp - 0x194]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea edx, [ebp - 0x194]
push edx
lea ecx, [esi + 0x4f4]
call fcn.005547b0
cmp dword [ebp + 8], ebx
je 0x59b77d
mov ecx, esi
call fcn.0059e710
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f85e7
mov esp, ebp
pop ebp
ret 4
Function at 0x59b810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0
push 0x400
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.005fc630
mov dword [ebp - 0x28], eax
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ecx, ebx
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x400
push eax
push ecx
call fcn.005fc580
mov esi, eax
and esi, 0x800003ff
jns 0x59b894
dec esi
or esi, 0xfffffc00
inc esi
mov eax, esi
shl eax, 0xa
cdq
mov ecx, ebx
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x18]
push 0
push 0x100000
push eax
push ecx
call fcn.005fc580
and eax, 0x800003ff
jns 0x59b8c4
dec eax
or eax, 0xfffffc00
inc eax
mov dword [ebp - 0x24], eax
push 0
push 0x40000000
push edi
push ebx
call fcn.005fc580
mov edi, eax
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x59b8f7
mov edx, 0x2c
mov word [ebp - 0x1c], dx
mov ecx, dword [ebp - 0x24]
test edi, edi
jne 0x59b988
cmp ecx, 0x3e7
jg 0x59b988
test ecx, ecx
jne 0x59b965
cmp esi, 0x3e7
jg 0x59b965
test esi, esi
je 0x59b947
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov ecx, dword [0x7109e0]
push ecx
push eax
lea edx, [ebp - 0x1c]
push edx
push esi
push str._d_s_03d___s
mov eax, dword [ebp - 0x20]
push eax
jmp 0x59b9b2
mov ecx, dword [0x7109e4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str._d___s
mov eax, dword [ebp - 0x20]
push eax
call fcn.005fb4cb
add esp, 0x10
jmp 0x59b9ba
mov eax, esi
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov edx, dword [0x7109dc]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
jmp 0x59b9a9
mov eax, ecx
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov edx, dword [0x7109d8]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str._d_s_03d___s
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005fb4cb
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f85e7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59c940
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x62c656
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [esp + 0x290]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x288], ebx
push ebx
push edi
push 0x6524f4
lea ecx, [esp + 0x20]
call fcn.00402190
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x59c9b6
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59c9e0
mov dword [esp + 0x288], eax
lea ecx, [esp + 0x14]
call fcn.004011f0
or eax, esi
jmp 0x59ca9d
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x2c]
push edx
push esi
call ebp
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
test eax, eax
je 0x59ca62
lea ebx, [ebx]
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], cx
mov byte [esp + 0x288], 1
push ebx
lea edx, [esp + 0x5c]
push edx
push edi
push 0x64ed70
lea ecx, [esp + 0x30]
call fcn.00402300
test byte [esp + 0x2c], 0x10
jne 0x59ca46
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x59ca3f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.004011f0
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
test eax, eax
jne 0x59ca00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x70f64c]
cmp eax, ebx
jne 0x59ca77
mov eax, 0x70f650
push eax
call fcn.005fb393
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004011f0
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.005f85e7
add esp, 0x278
ret
Function at 0x59e3f0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x622748
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push ebp
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x59e473
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e446
sub eax, edx
je 0x59e473
push esi
call fcn.005ae7c0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x14]
push edx
push esi
push 0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x3c]
push 0
push edi
push ebp
call ebx
test eax, eax
jne 0x59e532
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e496
sub eax, edx
je 0x59e532
lea ecx, [esp + 0x2c]
call fcn.004024e0
mov dword [esp + 0x20], 0
push esi
lea eax, [esp + 0x30]
push 0x64edec
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005ae7c0
mov edx, dword [esp + 0x3c]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e4e0
sub eax, esi
inc eax
push eax
push edx
mov edx, dword [esp + 0x3c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x59e508
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402550
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x59e550
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x63c748
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x28]
je 0x59e5bd
test esi, esi
je 0x59e591
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e586
sub eax, edx
jne 0x59e5bd
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push esi
call edi
mov ecx, dword [esp + 0x20]
push ecx
push esi
call edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x2c]
call fcn.004024e0
mov dword [esp + 0x14], 0
push esi
lea edx, [esp + 0x30]
push 0x64edec
push edx
call fcn.00402f60
mov eax, dword [esp + 0x38]
push eax
call fcn.005ae7c0
mov edx, dword [esp + 0x3c]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e5f4
mov ecx, dword [esp + 0x24]
sub eax, esi
mov esi, dword [esp + 0x1c]
inc eax
push eax
push edx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x59e624
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402550
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x59e650
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61a638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004024e0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
push 0x64edec
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x14]
push edx
call fcn.005ae7c0
mov edx, dword [esp + 0x18]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59e6b0
mov ecx, dword [esp + 0x1c]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402550
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x59e700
Capabilities:
Reference http user-agent string

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x59e2a7
mov eax, esi
push edi
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x59e280
sub eax, edi
pop edi
je 0x59e2a7
push esi
add ecx, 0x184
push 0x64edec
push ecx
call fcn.00402f60
add esp, 0xc
xor eax, eax
pop esi
ret 4
add ecx, 0x184
push str.Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_6.1__Trident_6.0_
push ecx
call fcn.00402f60
add esp, 8
xor eax, eax
pop esi
ret 4
add ecx, 0x20
jmp 0x59e270
Function at 0x5ac970
Capabilities:
Get file size

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x28]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
cmp eax, 0xffffffff
jne 0x5ac9a6
cmp edi, edi
jne 0x5ac9a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5ac9a6
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 1
push edi
push edi
push edx
call fcn.005fd4d0
add dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
adc dword [esi + 0x24], edx
mov eax, dword [esi + 0x24]
mov edx, ecx
or edx, eax
jne 0x5ac9cd
pop edi
lea eax, [edx - 2]
pop esi
pop ecx
ret
cmp eax, edi
push ebp
jg 0x5ac9e0
jl 0x5ac9dc
cmp ecx, 0x2dc6c0
jae 0x5ac9e0
mov ebp, ecx
jmp 0x5ac9e5
mov ebp, 0x2dc6c0
push ebx
push ebp
call fcn.005fac1f
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x5aca00
pop ebx
pop ebp
pop edi
mov eax, 0xfffffffd
pop esi
pop ecx
ret
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
push ebp
push ebx
mov ecx, esi
call fcn.005ac6e0
mov edi, eax
test edi, edi
jge 0x5aca1a
cmp edi, 0xfffffff5
jne 0x5aca2f
cmp edi, 1
je 0x5aca2f
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x20]
jne 0x5aca06
mov ecx, dword [esi + 0x34]
cmp ecx, dword [esi + 0x24]
jne 0x5aca06
push ebx
call fcn.005f9aa9
add esp, 4
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x5acde0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63d4db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
mov dword [eax], vtable.CTSReader.0
xor ecx, ecx
mov dword [eax + 0x48], vtable.CPMTStream.0
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 1
mov dword [eax + 0x44], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x84], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov byte [eax + 0x98], cl
mov byte [eax + 0x99], cl
mov byte [eax + 0x9a], cl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [eax + 0x40], cl
mov byte [eax + 0x41], cl
mov dword [eax + 0x3c], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x5acf50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jbe 0x5acf83
mov ecx, dword [esp + 4]
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 0x18
xor esi, edi
and esi, 0xff
shl eax, 8
xor eax, dword [esi*4 + 0x68a148]
inc ecx
sub edx, 1
jne 0x5acf61
pop edi
pop esi
ret
Function at 0x5acf90
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
cmp eax, 0xffffffff
jne 0x5acfce
cmp dword [esi + 0x1c], 0
jne 0x5acfce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5acfce
xor eax, eax
pop esi
ret 4
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.005fd4d0
add dword [esi + 0x18], eax
mov ecx, dword [esi + 0x18]
adc dword [esi + 0x1c], edx
mov eax, dword [esi + 0x1c]
mov edx, ecx
or edx, eax
je 0x5acfc8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
test eax, eax
jg 0x5ad010
jl 0x5ad00c
cmp ecx, 0x5e0000
jae 0x5ad010
mov eax, ecx
jmp 0x5ad015
mov eax, 0x5e0000
push eax
mov dword [esi + 0x84], eax
call fcn.005fac1f
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
mov dword [esi + 0x88], eax
pop esi
mov eax, ecx
ret 4

Function at 0x5ad480
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
xor edx, edx
sub ecx, dword [esi + 0x20]
push edi
sbb eax, dword [esi + 0x24]
mov edi, ecx
or edi, eax
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], edx
je 0x5ad4e5
cmp eax, edx
mov edi, dword [esi + 0x84]
jl 0x5ad4b4
jg 0x5ad4b2
cmp ecx, edi
jbe 0x5ad4b4
mov ecx, edi
push edx
mov edx, dword [esi + 0x8c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0x88]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ad4df
mov eax, dword [esp + 8]
cmp eax, dword [esi + 0x7c]
je 0x5ad4e5
pop edi
xor eax, eax
pop esi
pop ecx
ret
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x5ae150
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xa30
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xa2c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa40]
push edi
mov edi, dword [esp + 0xa4c]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esp + 0xa48]
push edi
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x20], 0
mov dword [edi], 0
call fcn.005add40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call ebx
cmp edi, 1
jne 0x5ae275
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x5ae1d0
lea eax, [esp + 0x14]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x5ae1e6
mov edx, dword [str..tmp]
mov ecx, dword [0x687dd4]
mov dword [eax], edx
mov dx, word [0x687dd8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esp + 0xa48]
mov esi, eax
mov eax, dword [esp + 0x10]
push edx
push eax
push edi
push esi
mov ecx, ebp
call fcn.005adff0
push esi
call ebx
push edi
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0xa3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f85e7
add esp, 0xa30
ret 0xc

Function at 0x5ae7c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ae7d0
sub eax, esi
mov ecx, eax
xor eax, eax
pop esi
test ecx, ecx
jle 0x5ae7eb
xor byte [eax + edx], 0xf
inc eax
cmp eax, ecx
jl 0x5ae7e2
ret

Function at 0x5ae7f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ae800
sub eax, esi
sar eax, 1
mov ecx, eax
xor eax, eax
pop esi
test ecx, ecx
jle 0x5ae822
xor word [edx + eax*2], 0xf
inc eax
cmp eax, ecx
jl 0x5ae818
ret

Function at 0x5ae830
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0x458]
jmp fcn.005547b0
Function at 0x5ae840
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x834]
sub esp, 0x834
push 0xffffffffffffffff
push 0x63d5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x830], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 0x840]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x5ae89e
push esi
call fcn.0059a670
cmp eax, ebx
jne 0x5ae9d0
mov eax, dword [ebp + 0x844]
cmp eax, ebx
je 0x5ae9a9
push eax
push str.SoftwareDownloadManager_ld
lea eax, [ebp + 0x800]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp - 0x14]
lea edx, [ebp + 0x800]
cmp dword [ebp + 0x848], ebx
je 0x5ae8e7
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x5ae905
lea eax, [ebp - 0x20]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push 0x64f8bc
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x5ae9a9
cmp esi, ebx
je 0x5ae97e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ae916
sub eax, edx
cmp eax, 0x7ff
jbe 0x5ae955
push 0x7ff
push esi
lea eax, [ebp]
push eax
call fcn.005f9dd0
add esp, 0xc
mov byte [ebp + 0x7ff], bl
push 0x801
lea ecx, [ebp]
push ecx
push 1
push ebx
push str.lastResult
mov edx, dword [ebp - 0x14]
push edx
jmp 0x5ae978
mov edx, dword [edi + 0xa8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ae960
sub eax, esi
inc eax
push eax
push edx
push 1
push ebx
push str.lastResult
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0x83c]
mov dword [ebp - 0x1c], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push ebx
push str.dwnlrs
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x5ae9d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x830]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x834
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5aebe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x7110bc], 0
jne 0x5aecab
mov eax, dword [0x7110b8]
test eax, eax
jne 0x5aec83
mov edx, dword [0x70f604]
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.ExePath
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5aec7a
lea eax, [esp + 4]
push 0x5c
push eax
call fcn.005fad90
add esp, 8
test eax, eax
je 0x5aec7a
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push str._sidmftype.dll
push edx
mov byte [eax], 0
call fcn.005fb4cb
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x7110b8], eax
jmp 0x5aec7f
mov eax, dword [0x7110b8]
test eax, eax
je 0x5aecab
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IDMFileType
push eax
call esi
mov ecx, dword [0x7110b8]
push str.IDMExtensionForMimeType
push ecx
mov dword [0x7110bc], eax
call esi
mov dword [0x7110c0], eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005f85e7
add esp, 0x210
ret