joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445047
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
test eax, eax
jne 0x44507a
cmp dword [ebp + 0x14], ecx
jne 0x44507a
xor eax, eax
inc eax
jmp 0x44507c
xor eax, eax
cmp ecx, 1
jne 0x44508c
xor ecx, ecx
cmp dword [ebp + 0x14], 2
sete cl
or eax, ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x445098
mov edx, dword [ebp - 4]
mov dword [ecx], edx
test eax, eax
setne al
leave
ret 0x14

Function at 0x4450a1
Capabilities:
Set registry value

Disassembly:
cmp byte [0x54afd4], 0
je 0x4450af
or eax, 0xffffffff
jmp 0x4450c9
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10

Function at 0x4451ac
Capabilities:
Set registry value

Disassembly:
cmp byte [0x54afd4], 0
jne 0x4451e6
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4451e6
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.0042ebe6
add esp, 0x10
ret 8

Function at 0x4451e9
Capabilities:
Delete registry value

Disassembly:
cmp byte [0x54afd4], 0
jne 0x445214
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x445214
push dword [esp + 4]
push eax
push str.RegKey:_Could_not_delete_value__d:__s_n
call fcn.0042ebe6
add esp, 0xc
ret 4

Function at 0x445248
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x54afd4], 0
je 0x445258
mov eax, 0x80004005
jmp 0x44527c
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x44527c
push dword [esp + 8]
push eax
push str.RegKey:_Could_not_delete_subkey__d:__s_n
call fcn.0042ebe6
add esp, 0xc
ret 8
Function at 0x4454a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
mov byte [ebp - 4], cl
push edi
mov ecx, edx
mov dword [ebp - 8], edx
call fcn.004a1fd0
mov ecx, eax
call fcn.004a21c8
xor edi, edi
xor ebx, ebx
inc edi
test al, al
jne 0x44551d
push dword [ebp - 8]
lea eax, [ebp - 0x48c]
cmp byte [ebp - 4], bl
je 0x4454de
push dword [0x551208]
jmp 0x4454e4
push dword [0x5511f8]
push 0x230
push eax
call fcn.0048d35b
add esp, 0x10
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x2c]
push 0x4f715c
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0x34
call fcn.004693e3
add esp, 0xc
cmp eax, 6
jne 0x4455ad
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push ebx
push ebx
push dword [ebp - 8]
push ebx
push ebx
call esi
cmp eax, 0x20
jg 0x4455a4
push dword [ebp - 8]
push str.shell32.dll_OpenAs_RunDLL__s
call fcn.0048d3ca
pop ecx
pop ecx
push edi
push ebx
push eax
push str.RUNDLL32.EXE
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, 0x20
jg 0x44559c
push str.Error_occurred_opening_the_file.
call fcn.0041ff68
push dword [ebp - 8]
lea eax, [ebp - 0x48c]
push dword [0x5511fc]
push 0x230
push eax
call fcn.0048d35b
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x2c]
push 0x4f715c
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0x30
call fcn.004693e3
add esp, 0x20
lea ecx, [ebp - 0xc]
call fcn.0048e540
lea ecx, [ebp - 8]
call fcn.0048e540
pop esi
pop edi
pop ebx
leave
ret

Function at 0x446790
Capabilities:
Create directory

Disassembly:
cmp dword [0x5482bc], 0
jne 0x4467e8
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4467b3
mov ecx, eax
call fcn.00446766
mov dword [0x5482bc], eax
jmp 0x4467ba
and dword [0x5482bc], 0
mov ecx, str.dlimagecache_
call fcn.0048880a
mov ecx, dword [0x5482bc]
push eax
add ecx, 0x24
call fcn.0048e82b
mov ecx, dword [0x5482bc]
add ecx, 0x24
call fcn.0048e806
mov ecx, eax
jmp fcn.004a49fb
mov al, 1
ret
Function at 0x446c59
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
mov edi, ecx
test byte [edi + 0x1cc], 0x10
mov dword [ebp - 0xc], edx
je 0x446e3a
test byte [edi + 0x1be], 2
jne 0x446e3a
push esi
mov esi, dword [edi + 0x168]
lea ecx, [ebp - 8]
call fcn.0044502c
mov ecx, dword [ebp - 0xc]
mov esi, dword [esi]
imul ecx, ecx, 0x70
lea eax, [ebp - 0x14]
push eax
add ecx, esi
lea edx, [ebp - 8]
call fcn.004467eb
test al, al
jne 0x446cb5
lea ecx, [ebp - 8]
call fcn.0048e50a
jmp 0x446e39
push ebx
lea ecx, [ebp - 0x10]
call fcn.0044502c
lea ecx, [ebp - 8]
call fcn.0048e720
mov edx, str.btapp:
mov ecx, eax
call fcn.0048d4ad
mov byte [ebp - 1], al
call fcn.0048fdce
movzx eax, word [eax + 4]
mov edx, dword [ebp - 0xc]
xor ebx, ebx
push ebx
movzx esi, ax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov ecx, edi
push esi
call fcn.00446bc3
push 0x31
pop eax
lea ecx, [ebp - 0x10]
mov word [ebp - 0x20], ax
call fcn.0048e806
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 1], bl
je 0x446d63
lea ecx, [ebp - 8]
call fcn.0048e720
mov ecx, eax
add ecx, 4
call fcn.004223a5
mov esi, eax
push 0x4f9764
push esi
call sub.MSVCRT.dll_strstr
pop ecx
pop ecx
cmp eax, ebx
je 0x446d35
mov byte [eax], bl
lea ecx, [ebp - 0x10]
call fcn.0048e806
mov ecx, eax
call fcn.0048c02d
push eax
push str.file_U
call fcn.0048d379
pop ecx
pop ecx
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.004c70dd
jmp 0x446e17
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 0x18]
call fcn.0048ee43
mov ecx, eax
call fcn.0048e806
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.0048bf4e
lea ecx, [ebp - 0x18]
call fcn.0048e50a
lea ecx, [ebp - 0xc]
cmp byte [ebp - 0x14], bl
je 0x446dcd
push edi
call fcn.0048e806
mov ecx, eax
call fcn.0048c02d
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x20
jg 0x446e20
push dword [0x551200]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x30
call fcn.004693e3
pop ecx
pop ecx
jmp 0x446e20
push esi
call fcn.0048e806
push eax
push str._Shttp:__localhost:_d
call fcn.0048d379
add esp, 0xc
push edi
push ebx
push ebx
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0048e806
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x446e17
push dword [0x551204]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x30
call fcn.004693e3
pop ecx
pop ecx
mov dl, 1
mov ecx, esi
call fcn.0046b197
lea ecx, [ebp - 0xc]
call fcn.0048e50a
lea ecx, [ebp - 0x10]
call fcn.0048e50a
lea ecx, [ebp - 8]
call fcn.0048e50a
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4473aa
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
push ebx
push esi
xor ebx, ebx
test byte [0x5482f8], 1
push edi
mov esi, edx
mov dword [ebp - 8], ecx
jne 0x4473ea
or dword [0x5482f8], 1
push 7
pop ecx
xor eax, eax
mov dword [0x5482d8], ebx
mov edi, 0x5482dc
push 0x4efec5
rep stosd dword es:[edi], eax
call fcn.004e6166
pop ecx
lea ecx, [ebp - 4]
call fcn.0044502c
cmp dword [ebp + 8], ebx
je 0x447410
push 0x2e
push dword [ebp + 8]
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
je 0x447410
push eax
lea ecx, [ebp - 4]
call fcn.0048e82b
lea eax, [ebp - 4]
push eax
mov ecx, 0x5482d8
call fcn.00447355
mov edi, eax
mov eax, dword [edi]
cmp eax, ebx
je 0x447434
push 3
push ebx
push ebx
push 0x20
push 0x20
push eax
jmp 0x4474bd
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x447447
xor eax, eax
cmp word [ecx], bx
sete al
cmp al, bl
je 0x447480
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x447464
mov word [ebp - 0x210], ax
push 0x130
push 0x2b4
lea eax, [ebp - 0x4c4]
push eax
push 0x10
lea eax, [ebp - 0x210]
push eax
jmp 0x447499
push 0x130
push 0x2b4
lea eax, [ebp - 0x4c4]
push eax
push 0x80
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp eax, ebx
je 0x4474cb
mov eax, dword [ebp - 0x4c4]
cmp eax, ebx
je 0x4474cb
push 3
push ebx
push ebx
push 0x20
push 0x20
mov dword [edi], eax
push dword [ebp - 0x4c4]
push dword [esi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
lea ecx, [ebp - 4]
call fcn.0048e50a
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x447660
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, edx
cmp edx, 4
jb 0x447683
shr edx, 2
push edi
mov edi, edx
mov edx, dword [ecx]
xor edx, eax
add ecx, 4
rol edx, 0xd
sub esi, 4
dec edi
mov eax, edx
jne 0x447670
pop edi
test esi, esi
je 0x447693
movzx edx, byte [ecx]
xor eax, edx
rol eax, 8
inc ecx
dec esi
jne 0x447687
pop esi
ret
Function at 0x44ea97
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0xc], 0
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi]
mov dword [ebp - 4], ebx
call dword [0x5483ec]
test eax, eax
je 0x44eb01
cmp dword [ebp - 8], 0xc8
je 0x44eb01
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push str.HTTP_Reply__d
push eax
call fcn.0048ee25
add esp, 0xc
mov ecx, eax
call fcn.0048e806
push eax
mov ecx, esi
call fcn.0044e845
lea ecx, [ebp - 0x10]
call fcn.0048e50a
jmp 0x44ebc3
push edi
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x1d
push dword [esi]
mov dword [ebp - 4], 0x14
call dword [0x5483ec]
test eax, eax
je 0x44eb4b
lea eax, [ebp - 0x30]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x44eb4b
or byte [esi + 0x25], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 5]
push eax
push 1
push dword [esi]
xor edi, edi
mov dword [ebp - 4], 0x20
mov dword [ebp - 0x14], edi
call dword [0x5483ec]
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000005
push dword [esi]
mov dword [ebp - 0x18], ebx
call dword [0x5483ec]
test eax, eax
je 0x44eb93
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edi
lea edx, [esi + 0x2c]
push 0xa
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x2000
mov ecx, edi
mov dword [edx], 0x28
call fcn.0046b19f
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov byte [esi + 4], 1
call fcn.0044ea54
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ad84
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test byte [esi + 0x18], 1
je 0x45ad99
xor eax, eax
inc eax
jmp 0x45aedb
cmp byte [ebp + 8], 0
je 0x45ada7
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x48
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x45add8
mov edx, dword [esi + 0x1c]
movzx ecx, byte [edx + 0x3c]
push ecx
lea ecx, [edx + 0x38]
push ecx
mov cl, byte [esi + 0x18]
shr cl, 1
and cl, 1
movzx ecx, cl
add edx, 0x2c
push edx
push ecx
mov ecx, eax
call fcn.0045a7d8
jmp 0x45adda
xor eax, eax
push edi
push eax
lea ecx, [ebp + 8]
lea edi, [esi + 8]
call fcn.0044ff55
push eax
mov ecx, edi
call fcn.00458f33
mov eax, dword [ebp + 8]
test eax, eax
je 0x45adfc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
push ebx
mov dword [eax + 0x20], ecx
push dword [esi + 4]
mov ebx, dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, 0x4fdcd0
mov dword [ebx + 0x24], eax
call fcn.0048880a
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, str.ieie
call fcn.0048880a
mov edx, 0x4f9ba4
mov ecx, eax
call fcn.004a29a8
lea ebx, [esi + 0x10]
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0044ff87
push eax
push 0
push 0x4001012
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StgCreateDocfile]
mov ecx, dword [ebp + 8]
mov dl, 1
mov dword [ebp - 4], eax
call fcn.0046b197
cmp dword [ebp - 4], 0
jl 0x45aeb3
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi]
mov ebx, dword [ebx]
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0044ff87
push eax
push ebx
push dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
push ebx
push 0x52dd10
push 0x52dd00
call dword [sym.imp.ole32.dll_OleCreate]
test eax, eax
jl 0x45aeb3
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.ole32.dll_OleSetContainedObject]
test eax, eax
jge 0x45aeb7
xor eax, eax
jmp 0x45aed9
push esi
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
mov ecx, esi
call fcn.004594ab
push ebx
mov ecx, esi
call fcn.00459997
or byte [esi + 0x18], 1
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x45db97
Capabilities:
Create pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov edi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call esi
push eax
push dword [ebp - 0x14]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov edx, edi
push ebx
xor esi, esi
call fcn.0042e8c0
test al, al
je 0x45dcc2
mov ecx, 0x104
call fcn.0046b19f
mov edi, eax
mov byte [ebp - 1], bl
jmp 0x45dc7c
cmp dword [ebp - 8], ebx
jne 0x45dc43
cmp byte [ebp - 1], bl
jne 0x45dc91
push 0xc8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x45dc7c
mov byte [ebp - 1], 1
jmp 0x45dc7c
push ebx
lea eax, [ebp - 8]
push eax
mov eax, 0x103
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x45dc66
cmp dword [ebp - 8], ebx
jne 0x45dc79
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x45dc91
cmp esi, 0x103
je 0x45dc91
add esi, dword [ebp - 8]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x45dc1e
mov ecx, edi
mov byte [esi + edi], bl
call fcn.0048d938
mov dl, 1
mov ecx, edi
mov esi, eax
call fcn.0046b197
cmp dword [ebp + 0xc], ebx
je 0x45dcb7
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x45dccc
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x45dccc
or dword [eax], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x45e148
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov esi, eax
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.004462b3
test al, al
je 0x45e1f7
test esi, esi
je 0x45e1f5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e181
sub eax, edx
sar eax, 1
je 0x45e1f5
cmp dword [ebp + 8], 0
je 0x45e1c0
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e19d
sub eax, edx
sar eax, 1
je 0x45e1c0
push dword [ebp + 8]
push esi
push 0x4f1b50
call fcn.0048d3ca
add esp, 0xc
jmp 0x45e1cd
push esi
push 0x4f715c
call fcn.0048d3ca
pop ecx
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call sub.MSVCRT.dll__wcsicmp
mov ebx, eax
neg ebx
pop ecx
pop ecx
sbb bl, bl
mov dl, 1
mov ecx, esi
inc bl
call fcn.0046b197
mov al, bl
pop ebx
jmp 0x45e1f7
mov al, 1
pop esi
leave
ret 4

Function at 0x45e1fc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x45e21a
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.004464b0
jmp 0x45e27e
cmp dword [ebp + 8], 0
push esi
je 0x45e24a
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e227
sub eax, edx
sar eax, 1
je 0x45e24a
push dword [ebp + 8]
push edi
push 0x4f1b50
call fcn.0048d3ca
add esp, 0xc
jmp 0x45e257
push edi
push 0x4f715c
call fcn.0048d3ca
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x45e25f
mov eax, edi
push eax
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.00446436
mov dl, 1
mov ecx, esi
call fcn.0046b197
pop esi
leave
ret 4

Function at 0x45e5c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x45e637
push esi
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e60b
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x45e637
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0048d5a5
test al, al
je 0x45e637
mov al, 1
jmp 0x45e639
xor al, al
pop esi
leave
ret
Function at 0x45e770
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45e7d3
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x45e786
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
lea eax, [ecx + esi]
je 0x45e7b9
lea edx, [eax - 2]
cmp word [edx], 0x5c
jne 0x45e7b9
mov eax, edx
xor edx, edx
mov word [eax], dx
jmp 0x45e7b9
lea edx, [eax - 2]
cmp word [edx], 0x5c
je 0x45e7bd
mov eax, edx
cmp eax, esi
jne 0x45e7ae
sub ecx, eax
lea ecx, [ecx + esi + 2]
sar ecx, 1
add ecx, ecx
push ecx
push eax
push esi
call sub.MSVCRT.dll_memmove
add esp, 0xc
ret
push esi
mov eax, str.Program_Files
call fcn.00485161
ret

Function at 0x45e7df
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push edi
xor ebx, ebx
jmp 0x45e83f
lea eax, [esp + 0x14]
push eax
push 0x7530
push 1
push ebx
push ebx
push 0x16
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45e83f
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
je 0x45e856
cmp edi, ebx
je 0x45e856
push ebx
push 0x537818
call ebp
mov esi, eax
cmp esi, ebx
jne 0x45e7ef
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push edi
push esi
push str.TerminateSessionClientInstances_failed__hp:0x_X_result:_d_n
call fcn.0042ebe6
add esp, 0xc
xor al, al
jmp 0x45e84f

Function at 0x45f1f2
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0x11c
lea edi, [esi + 4]
push 0
lea ebx, [esi + 0x124]
and dword [ebx], 0
push edi
mov dword [esi], eax
mov byte [esi + 0x120], 0
call sub.MSVCRT.dll_memset
movzx eax, byte [esi]
add esp, 0xc
cmp eax, 5
jb 0x45f242
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
setne al
mov byte [esi + 0x120], al
movzx eax, byte [esi]
cmp eax, 6
jb 0x45f26d
mov edx, str.GetProductInfo
mov ecx, 0x4f55bc
call fcn.004a3dac
test eax, eax
je 0x45f26d
movzx ecx, byte [esi + 1]
push ebx
push 0
push 0
push ecx
movzx ecx, byte [esi]
push ecx
call eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x45f372
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.0046e3e5
xor esi, esi
cmp edi, esi
jne 0x45f4cf
push str._AUTOMATION
lea ecx, [ebp - 8]
call fcn.0048e7e6
mov dword [ebx + 0x10], 0x64
cmp dword [ebp + 8], esi
je 0x45f423
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x45f423
push esi
lea edi, [ebx + 4]
push 0x80
mov ecx, edi
call fcn.0048e806
push 6
pop edx
mov ecx, eax
call fcn.0047246a
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x45f411
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x45f3f9
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebp + 0xc]
jne 0x45f3f9
cmp ecx, dword [ebp + 0x10]
je 0x45f406
mov ecx, dword [ebp + 8]
mov dl, 1
call fcn.0046b197
mov dword [ebp + 8], esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x45f43b
mov ecx, dword [ebp + 8]
mov dl, 1
call fcn.0046b197
mov dword [ebp + 8], esi
jmp 0x45f4c7
lea edi, [ebx + 4]
push esi
mov ecx, edi
call fcn.0048e806
lea edx, [ebp + 0xc]
mov ecx, eax
call fcn.004a489b
mov dword [ebp + 8], eax
cmp dword [ebp + 8], esi
je 0x45f4c7
mov ecx, dword [0x534a08]
push esi
push str.share_offer_size
call fcn.00406127
mov ecx, dword [ebp + 0xc]
cdq
cmp ecx, eax
jne 0x45f4c7
mov eax, dword [ebp + 0x10]
cmp eax, edx
jne 0x45f4c7
lea ecx, [ebp - 0x80]
call fcn.004e64ac
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
push dword [ebp + 8]
call fcn.004e7793
mov ecx, dword [0x534a08]
push esi
push str.share_offer_hash
mov dword [ebp - 0xc], eax
call fcn.004060b5
cmp eax, esi
je 0x45f4bf
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004078e7
test al, al
je 0x45f4bf
push 1
push esi
lea ecx, [ebp - 8]
call fcn.0048e806
push eax
mov ecx, edi
call fcn.0048e806
push eax
push 0x4f6aac
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.004e64d1
lea ecx, [ebp - 8]
call fcn.0048e50a
lea edi, [ebx + 4]
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0048e806
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x45f4ff
cmp dword [ebp - 4], 0x14
jge 0x45f506
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 4]
mov ecx, edi
call fcn.0048e806
push eax
call esi
test eax, eax
je 0x45f4e4
call fcn.0046e3c9
mov ecx, 0x537f08
call fcn.0048e540
mov ecx, dword [ebp + 8]
mov dl, 1
call fcn.0046b197
test ebx, ebx
je 0x45f531
mov ecx, ebx
call fcn.0045cc97
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x24