joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ba8a4]
lea edx, [ebp - 0x14]
push ecx
push str._sScheduler_
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49d877
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x49d877
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.00537b04
test bl, bl
je 0x49d77d
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00537b04
test bl, bl
je 0x49d77d
mov al, byte [ebp + 8]
test al, al
je 0x49d853
mov eax, dword [0x5b5ecc]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5bb3ac]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0bc0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov dword [ecx], 0x5645bc
jmp 0x4a0d50
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x556468
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x4a0e57
mov edx, dword [esp + 0xc]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x4a0e57
mov eax, dword [ebx + 0x14]
xor esi, esi
test eax, eax
jle 0x4a0e43
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea edi, [ebx + 4]
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x10], eax
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x597df0
push ecx
mov dword [esp + 0x34], 0
call fcn.0053091a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 4
push edi
push 4
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00537b04
mov eax, dword [ebx + 0x14]
add edi, 4
cmp esi, eax
jl 0x4a0dee
pop edi
pop ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4a0c40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x556448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerGrabberStsRecentProjects
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4a0d30
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, 4
mov edx, dword [0x5b5ecc]
mov dword [esp + 0xc], edx
push edi
lea eax, [esp + 0x10]
push 0x597df0
push eax
mov dword [esp + 0x38], 0
call fcn.0053091a
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x4a0d13
mov edx, dword [0x5ba894]
test edx, edx
jle 0x4a0d13
mov ecx, dword [0x5ba890]
mov esi, dword [esp + 0x18]
cmp esi, dword [ecx]
je 0x4a0d09
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x4a0cfb
jmp 0x4a0d13
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004a0bd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00537b04
dec edi
test edi, edi
jg 0x4a0c9c
pop edi
pop esi
pop ebx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4a1270
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x5babfc]
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x4a129c
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x5babfc], eax
je 0x4a1409
mov ecx, dword [0x5bac00]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp ecx, ebx
jne 0x4a12c1
push str.GetNamedSecurityInfoA
push eax
call ebp
mov ecx, eax
mov eax, dword [0x5babfc]
mov dword [0x5bac00], ecx
mov edx, dword [0x5bac04]
cmp edx, ebx
jne 0x4a12e1
push str.SetNamedSecurityInfoA
push eax
call ebp
mov ecx, dword [0x5bac00]
mov edx, eax
mov dword [0x5bac04], edx
cmp ecx, ebx
je 0x4a1409
cmp edx, ebx
je 0x4a1409
lea eax, [esi + 8]
add esi, 4
push esi
push ebx
push eax
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push 4
push 4
push eax
call ecx
test eax, eax
jne 0x4a1409
mov ecx, dword [0x5babfc]
push str.AllocateAndInitializeSid
push ecx
call ebp
mov edi, eax
cmp edi, ebx
je 0x4a1409
mov edx, dword [0x5babfc]
push str.GetLengthSid
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x4a1409
mov eax, dword [0x5babfc]
push str.InitializeAcl
push eax
call ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a1409
mov ecx, dword [0x5babfc]
push str.AddAccessDeniedAce
push ecx
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x4a1409
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.0051cfae
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
push 0x10000000
push 2
push edi
call ebp
mov eax, dword [esp + 0x28]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push eax
call dword [0x5bac04]
test eax, eax
push edi
je 0x4a13fb
call fcn.0051cec5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.0051cec5
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4a2790
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x19c]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4a27be
push str.default
push esi
call fcn.0051d0e8
add esp, 8
pop esi
pop ecx
ret

Function at 0x4a27d0
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x2a8]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4a27fe
push str.default_user
push esi
call fcn.0051d0e8
add esp, 8
pop esi
pop ecx
ret
Function at 0x4a2ba0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5565d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
push str.POST_http:__
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00537b72
push str.www.internetdownloadmanager.com
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537ee0
push str._data_395012712_register.cgi
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push str._HTTP_1.1_r_n
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push str.Host:_www.internetdownloadmanager.com_r_nAccept:___r_nContent_Type:_text_html_r_nAuthorization:_Basic_dGNpZG06YXpjZmdwZWQ
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push str._r_nContent_length:_400_r_n
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov esi, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a2ce3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4a2c45
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
jmp 0x4a2c47
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x55555556
lea esi, [ecx + edx + 1]
lea ecx, [esi + 2]
imul ecx
mov eax, edx
lea ecx, [esi + 1]
shr eax, 0x1f
add edx, eax
push ecx
shl edx, 2
mov ebx, edx
call fcn.005380a1
mov edi, eax
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
jne 0x4a2c87
mov eax, 0x5ba440
mov edx, dword [ebp + 0xc]
push eax
push edx
push str._s:_s
push edi
call fcn.0051d0e8
inc ebx
push ebx
call fcn.005380a1
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov ebx, eax
push esi
push ebx
push edi
call fcn.004d5830
push str.Proxy_Authorization:_Basic
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push ebx
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push 0x59890c
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push edi
call fcn.005380ca
add esp, 4
push ebx
call fcn.005380ca
add esp, 4
push 0x59890c
lea ecx, [ebp - 0x14]
call fcn.00537ee0
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call sub.WSOCK32.dll_send
mov eax, dword [ebp - 0x18]
push 0
add eax, 0xc
push 0x190
push eax
push esi
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a2d70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5565f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push ebx
lea ecx, [ebp - 0x29c]
push ebx
lea edx, [esi + 1]
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x29c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4a2e0c
call sub.WSOCK32.dll_WSAGetLastError
push esi
push eax
lea eax, [ebp - 0x98]
push str.Select_failed__err_code___d__socket___d_n
push eax
call fcn.0051d0e8
lea ecx, [ebp - 0x98]
push ecx
call fcn.00450ff0
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x4a2e3a
cmp edi, ebx
je 0x4a2df7
mov edx, dword [0x5bb6d8]
push edx
call fcn.00450ff0
add esp, 4
jmp 0x4a2df7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a2e60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov bl, byte [esp + 0xc]
mov ebp, ecx
push 0x3c
push esi
mov ecx, ebp
call fcn.004a2d70
test eax, eax
je 0x4a2ede
push 0
lea eax, [esp + 0x18]
push 1
push eax
push esi
call sub.WSOCK32.dll_recv
cmp eax, 1
jne 0x4a2ede
cmp bl, 0xd
je 0x4a2eab
mov bl, byte [esp + 0x14]
mov dword [esp + 0xc], 0
jmp 0x4a2e76
cmp byte [esp + 0xd], 0xa
je 0x4a2ec0
mov al, byte [esp + 0x14]
cmp al, 0xa
jne 0x4a2eda
mov byte [esp + 0xd], al
jmp 0x4a2e76
mov al, byte [esp + 0xe]
cmp al, 0xd
mov al, byte [esp + 0x14]
je 0x4a2ed6
cmp al, 0xd
jne 0x4a2eda
mov byte [esp + 0xe], al
jmp 0x4a2e76
cmp al, 0xa
je 0x4a2ee7
mov bl, al
jmp 0x4a2e76
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x4a40a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5567b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ba8a4]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabber_
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a41fe
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x4a41fe
lea ecx, [ebp - 0x1c]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00537b04
test bl, bl
je 0x4a410d
lea edx, [ebp - 0x18]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x18]
sete bl
call fcn.00537b04
test bl, bl
je 0x4a410d
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x5bb3ac]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 0x18
push str._sprojects.dat
push eax
call fcn.0053091a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x556a86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5b5ecc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0x14], eax
mov ecx, dword [0x5b5ecc]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x30], ecx
push 0xffffffffffffffff
push ebx
push ebx
push 0x17
push 1
push 1
push 0x7d5
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
mov dword [esi], 0x564928
mov dword [esi + 0x38], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0xc], bl
mov dword [esi + 8], 0x78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x34], 1
mov byte [esi + 4], 1
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], 1
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2f], bl
mov byte [esi + 0x2d], bl
mov byte [esi + 0x2e], bl
mov dword [esi + 0x28], 0x7f
call fcn.00530e35
mov edx, dword [eax]
push 0xffffffffffffffff
push ebx
push 0x1e
push 7
push 1
push 1
mov dword [esi + 0x1c], edx
push 0x7d5
lea ecx, [esp + 0x28]
mov dword [esi + 0x20], ebx
call fcn.00530e35
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a6340
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerScheduler
push 0x80000001
call ebx
test eax, eax
jne 0x4a6551
mov al, byte [esi + 0x19]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test al, al
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.isStartEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov al, byte [esi + 0x1a]
mov ecx, dword [esp + 0x14]
xor edx, edx
push 4
test al, al
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.isStopEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov cl, byte [esi + 0x1b]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
mov ecx, dword [esp + 0x20]
push 0
sete dl
push str.isStartDilay
push ecx
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push str.startDaysOfWeek
push eax
call edi
mov al, byte [esi + 0x2c]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isForceTurnOff
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2f]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isHangUpModem
push eax
mov dword [esp + 0x28], ecx
call edi
xor ecx, ecx
mov al, byte [esi + 0x2d]
lea edx, [esp + 0x10]
push 4
push edx
test al, al
mov eax, dword [esp + 0x1c]
push 4
push 0
push str.isTurnOffComputer
setne cl
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2e]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isExitIDMWhenDone
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startDay
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.stopTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerQueue
push 0x80000001
call ebx
test eax, eax
jne 0x4a6551
mov ecx, dword [esi + 0x34]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.FilesAtTheSameTime
push eax
mov dword [esp + 0x28], ecx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4aa450
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x557098
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
call fcn.004a8ad0
test eax, eax
jne 0x4aa5ca
mov eax, dword [0x5b5ecc]
mov dword [esp + 8], eax
mov al, 0x66
lea edi, [esp + 0x14]
mov byte [esp + 0x14], al
mov byte [esp + 0x19], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x60
mov byte [esp + 0x18], 0x76
mov byte [esp + 0x1a], 0
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4aa4cc
mov dl, byte [esp + eax + 0x14]
xor dl, 0x12
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ecx
jl 0x4aa4bc
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push 0x597ddc
push edx
call fcn.0053091a
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov eax, dword [0x5ba8bc]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa581
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push ecx
lea eax, [ecx - 0x1323f333]
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
push 0
mov dword [ecx], eax
call fcn.0051dc52
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call fcn.00434510
mov ecx, eax
call fcn.00434520
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x59aa00]
test eax, eax
je 0x4aa570
cmp edx, 5
jge 0x4aa569
cmp edx, 0xffffffff
jge 0x4aa5b9
call fcn.004a9820
jmp 0x4aa5b9
cmp edx, 0x37
jge 0x4aa57a
cmp edx, 0xffffffff
jge 0x4aa5b9
call fcn.004a9820
jmp 0x4aa5b9
lea ecx, [esp + 4]
push ecx
call fcn.0051dc52
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x5ba8bc]
add edx, 0x1323f333
add esp, 4
mov dword [esp + 4], edx
lea edx, [esp + 4]
push 4
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret