joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c046
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
test eax, eax
mov esi, edx
jbe 0x43c0c4
push 3
dec eax
xor edx, edx
pop edi
div edi
push ebx
inc eax
mov edi, eax
imul edi, edi, 3
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
dec eax
jne 0x43c063
mov eax, dword [esp + 0x10]
pop ebx
lea edx, [eax + 1]
cmp edi, edx
je 0x43c0d6
add eax, 2
cmp edi, eax
jne 0x43c0da
mov byte [ecx - 2], 0x3d
mov byte [ecx - 1], 0x3d
xor eax, eax
pop edi
mov byte [ecx], 0
inc eax
pop esi
ret

Function at 0x43c1bc
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x24
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.0047d5e0
push 0x1c
call fcn.0047e3f1
push 0x1c
mov esi, eax
push ebx
push esi
call fcn.0047d5e0
push dword [ebp + 0x10]
call fcn.0047f7b6
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call fcn.0047cc80
push dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.0047f7b6
push dword [ebp + 8]
mov dword [esi], eax
call fcn.0047cc80
push dword [ebp + 0xc]
mov dword [esi + 4], eax
call fcn.0047f7b6
push dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call fcn.0047cc80
add esp, 0x34
mov dword [esi + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 4]
push eax
push ebx
push ebx
push esi
push ebx
mov dword [esi + 0x18], 1
push 2
mov esi, str.NTLM
push esi
push ebx
call sub.Secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x43c251
xor eax, eax
jmp 0x43c285
lea eax, [ebp - 4]
push eax
push esi
call sub.Secur32.dll_QuerySecurityPackageInfoA
test eax, eax
jne 0x43c24d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push eax
mov dword [edi + 0x10], ecx
call sub.Secur32.dll_FreeContextBuffer
mov dword [edi], 1
mov edi, dword [edi + 0x10]
push 3
lea eax, [edi + 3]
xor edx, edx
pop ecx
div ecx
lea eax, [eax + edi + 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c623
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x250], edi
jne 0x43c694
mov eax, dword [esi + 0x420]
cmp eax, edi
je 0x43c646
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x43c694
mov eax, dword [esi + 0x274]
call fcn.0040dca8
test eax, eax
je 0x43c65d
cmp dword [esi + 0x1f0], edi
jne 0x43c694
push 0xa
push 0x8c7
call fcn.00436af0
push 0xc
call fcn.0047e3f1
pop ecx
mov ecx, dword [esi + 0x1c0]
push edi
push edi
push edi
push edi
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x20]
push eax
push 0x4469ec
mov dword [eax], ecx
call fcn.0046ebc0
mov dword [esi + 0x420], eax
pop edi
pop esi
ret
Function at 0x43f064
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x49712c
call fcn.00482643
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea esi, [edi + 0xb8]
mov ecx, esi
call fcn.004018cc
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00456b20
test eax, eax
jne 0x43f1c7
push str.res:
push esi
call fcn.0045663a
test eax, eax
pop ecx
pop ecx
je 0x43f15b
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004013ad
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0044ed61
pop ecx
mov esi, eax
call fcn.00466a93
mov eax, dword [eax + 0xc]
movzx ecx, si
push 0x17
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x43f14a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x43f14a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x43f14a
call fcn.00466a93
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.004341eb
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
lea ecx, [ebp - 0x10]
call fcn.00452277
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
mov edi, dword [ebp + 8]
cmp dword [edi + 0x54], ebx
je 0x43f1c7
lea ecx, [edi + 0x58]
mov dword [ebp + 8], ebx
call fcn.00463051
cmp eax, ebx
je 0x43f1c7
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x4a74e4
push eax
call dword [ecx]
cmp dword [ebp + 8], ebx
je 0x43f1c7
lea ecx, [ebp - 0x10]
call fcn.00456b20
test eax, eax
mov ecx, dword [ebp + 0xc]
jne 0x43f196
mov ecx, 0x4cc52c
call fcn.00403c6b
push 8
push ebx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00476264
lea edx, [ebp - 0x28]
push edx
push edx
push edx
push edx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
call fcn.0048271b
ret 8

Function at 0x442f68
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x4486b1
Capabilities:
Link many functions at runtime

Disassembly:
push 0x10
mov eax, 0x49813c
call fcn.00482643
mov edi, dword [0x4cc408]
call fcn.00466a93
mov eax, dword [eax + 4]
xor esi, esi
push esi
push str.NoRAS
push edi
mov ecx, eax
call fcn.00465edc
test eax, eax
jne 0x448888
call fcn.0044864e
cmp dword [0x4cc250], esi
je 0x448737
cmp dword [0x4cc258], esi
je 0x448888
cmp dword [0x4cc25c], esi
je 0x448888
cmp dword [0x4cc26c], esi
je 0x448888
cmp dword [0x4cc260], esi
je 0x448888
cmp dword [0x4cc264], esi
je 0x448888
cmp dword [0x4cc268], esi
jmp 0x448881
lea eax, [ebp - 0x14]
push str.SBTBQJ43_EMM
push eax
call fcn.00457593
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
push ecx
mov esi, eax
call fcn.00459395
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push dword [eax]
call edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [0x4cc250], eax
call fcn.00401755
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
lea eax, [ebp - 0x1c]
push str.SBTEMH_EMM
push eax
call fcn.00457593
lea ecx, [ebp - 0x18]
push ecx
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00459395
add esp, 0xc
push dword [eax]
call edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [0x4cc254], eax
call fcn.00401755
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, dword [0x4cc250]
xor edi, edi
cmp eax, edi
je 0x448888
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RasEnumConnectionsA
push eax
call esi
push str.RasEnumEntriesA
push dword [0x4cc250]
mov dword [0x4cc258], eax
call esi
push str.RasGetConnectStatusA
push dword [0x4cc250]
mov dword [0x4cc25c], eax
call esi
push str.RasDialA
push dword [0x4cc250]
mov dword [0x4cc260], eax
call esi
push str.RasHangUpA
push dword [0x4cc250]
mov dword [0x4cc264], eax
call esi
push str.RasGetErrorStringA
push dword [0x4cc250]
mov dword [0x4cc268], eax
call esi
mov dword [0x4cc26c], eax
mov eax, dword [0x4cc254]
cmp eax, edi
je 0x448853
push str.RasDialDlgA
push eax
call esi
mov dword [0x4cc270], eax
cmp dword [0x4cc258], edi
je 0x448888
cmp dword [0x4cc25c], edi
je 0x448888
cmp dword [0x4cc26c], edi
je 0x448888
cmp dword [0x4cc260], edi
je 0x448888
cmp dword [0x4cc264], edi
je 0x448888
cmp dword [0x4cc268], edi
je 0x448888
xor eax, eax
inc eax
jmp 0x44888a
xor eax, eax
call fcn.0048271b
ret

Function at 0x448a84
Capabilities:
Hash data using sha1

Disassembly:
lea ecx, [eax + 0x74]
mov dword [eax], vtable.CSHA1.0
mov dword [eax + 0xb4], ecx
jmp fcn.00448ac1

Function at 0x448ab4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, ecx
mov dword [eax], vtable.CSHA1.0
jmp fcn.00448ac1

Function at 0x448ac1
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
mov dword [eax + 0x14], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xb8], ecx
ret
Function at 0x45057b
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x49825e
call fcn.00482643
and dword [ebp - 0x10], 0
mov esi, dword [0x4cc408]
call fcn.00466a93
mov eax, dword [eax + 4]
push 0x4a87ac
push str.TempFolder
push esi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0046607e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00456b20
test eax, eax
je 0x4505de
mov esi, 0x104
push esi
lea ecx, [ebp - 0x10]
call fcn.004017ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403194
mov esi, 0x4a93ec
push esi
lea edi, [ebp - 0x10]
call fcn.004564b7
test eax, eax
pop ecx
jne 0x4505f9
push esi
mov ecx, edi
call fcn.0040163d
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00401a22
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, ebx
call fcn.0048271b
ret

Function at 0x45080e
Capabilities:
Get disk size

Disassembly:
push 0x18
mov eax, 0x494dbf
call fcn.00482643
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
push 0x5c
mov dword [ebp - 4], esi
call fcn.004068d8
cmp eax, 2
jne 0x4508aa
mov ecx, dword [ebp + 8]
push 3
lea eax, [ebp - 0x14]
push eax
call fcn.004013d0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004018cc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4508aa
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.004835c0
mov esi, eax
mov edi, edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, esi
mov edx, edi
call fcn.0048271b
ret
or edi, 0xffffffff
mov esi, edi
jmp 0x450895
Function at 0x451d2c
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4cc280]
test eax, eax
je 0x451d49
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4cc6f0], 0
jg 0x451d57
jmp fcn.00463eec
mov eax, dword [0x4cc6ec]
mov eax, dword [eax]
push 0x14
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x451d89
push 1
push 0
mov ecx, 0x4cc6e8
call fcn.0047037a
jmp 0x451d8e
call fcn.00451bea
test eax, eax
je 0x451d97
call fcn.00451bb9
cmp dword [0x4cc6f0], 0
jg 0x451d80
ret

Function at 0x452338
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x494cb9
call fcn.00482643
call fcn.00462b71
push eax
lea ecx, [ebp - 0x18]
call fcn.0040176f
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401a22
mov edi, 0x4ac488
push edi
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403069
test eax, eax
jle 0x4523a4
push edi
call fcn.00403069
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004013d0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 4
pop eax
cmp dword [ecx - 0xc], eax
mov dword [ebp - 0x14], eax
jle 0x452416
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040f730
cmp al, 0x5c
jne 0x452408
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004013d0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004018cc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401755
lea edi, [ebp - 0x18]
call fcn.00403bc5
mov ebx, edi
call fcn.00403b77
push 0
push dword [ebp - 0x18]
call esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax - 0xc]
jl 0x4523b8
lea edi, [ebp - 0x10]
call fcn.00403bc5
mov ebx, edi
call fcn.00403b77
mov edi, dword [ebp - 0x10]
push 0
push edi
call esi
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.00401755
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, esi
call fcn.0048271b
ret

Function at 0x45264a
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x4c7674]
xor eax, esp
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, esi
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.00456b20
test eax, eax
jne 0x4526ad
mov eax, dword [esi]
lea ecx, [esp]
push ecx
push eax
call fcn.00470766
test eax, eax
je 0x4526ad
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0047d103
mov esp, ebp
pop ebp
ret
Function at 0x4526bf
Capabilities:
Check os version
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4940ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x4c7674]
xor eax, esp
mov dword [esp + 0x1c8], eax
push esi
mov eax, dword [0x4c7674]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
xor esi, esi
mov ecx, edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
call fcn.00456b20
test eax, eax
jne 0x4527e1
mov eax, dword [edi]
lea ecx, [esp + 0xa4]
push ecx
push eax
call fcn.00470766
test eax, eax
je 0x4527e1
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 5
jae 0x4527d6
cmp dword [esp + 0x10], 4
jne 0x452778
cmp dword [esp + 0x14], 0x5a
jae 0x4527d6
call fcn.00462b71
push eax
lea ecx, [esp + 0xc]
call fcn.0040176f
mov dword [esp + 0x1e0], esi
mov esi, 0x104
push esi
lea ecx, [esp + 0xc]
call fcn.004017ad
push esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00403194
mov esi, dword [esp + 8]
push str.WININIT.INI
push esi
push 0x4af65c
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esi - 0x10]
call fcn.00401755
jmp 0x4527e1
push 4
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0047d103
mov esp, ebp
pop ebp
ret
Function at 0x452a39
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x49825e
call fcn.00482643
mov edi, ecx
push str.http:
push edi
call fcn.0045663a
test eax, eax
pop ecx
pop ecx
jne 0x452aec
push str.www.
push edi
call fcn.0045663a
test eax, eax
pop ecx
pop ecx
jne 0x452aec
mov ecx, edi
call fcn.004525e6
test eax, eax
jne 0x452a7c
xor eax, eax
jmp 0x452af6
push str..exe
call fcn.004564b7
xor ebx, ebx
test eax, eax
pop ecx
je 0x452ac0
lea eax, [ebp - 0x10]
push 0x4a87ac
push eax
call fcn.00457593
push edi
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00452814
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 0xc
neg esi
sbb esi, esi
add ecx, 0xfffffff0
neg esi
call fcn.00401755
cmp esi, ebx
jne 0x452af3
mov eax, dword [edi]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call esi
cmp eax, 0x20
jg 0x452af3
mov edi, dword [edi]
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call esi
cmp eax, 0x20
jg 0x452af3
jmp 0x452a78
push edi
call fcn.00407138
pop ecx
xor eax, eax
inc eax
call fcn.0048271b
ret

Function at 0x452afc
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497e84
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4c7674]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
mov eax, dword [0x4c7674]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebx]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, ebx
call fcn.0045244a
or eax, edx
jne 0x452b64
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
jmp 0x452c38
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
mov esi, ebx
call fcn.00406922
lea ecx, [esp + 0x14]
push edi
push ecx
mov esi, eax
mov dword [esp + 0x180], edi
call fcn.00406922
add esp, 0x10
mov byte [esp + 0x170], 2
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 3
push dword [eax - 0xc]
lea ecx, [esp + 0x10]
call fcn.004017ad
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], edi
mov word [esp + 0x28], 0x454
mov dword [esp + 0x2e], edi
mov dword [esp + 0x32], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x452bf1
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00401755
jmp 0x452b5c
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.00470766
test eax, eax
je 0x452be0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x452c2a
xor edi, edi
inc edi
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, edi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0047d103
mov esp, ebp
pop ebp
ret
Function at 0x453646
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x494087
call fcn.00482643
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.00401a8b
xor ebx, ebx
mov dword [ebp - 4], esi
inc ebx
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00401984
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4536c9
mov eax, 0x200
push eax
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.004017ad
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, edi
mov ebx, eax
call fcn.00403194
cmp ebx, esi
je 0x4536c0
mov ecx, edi
call fcn.00401984
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0048271b
ret

Function at 0x4536d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, 0x200
push esi
call fcn.0047e3f1
push esi
mov ebx, eax
push 0
push ebx
call fcn.0047d5e0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45372e
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x453734
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call fcn.00462b71
push eax
lea ecx, [ebp - 8]
call fcn.0040176f
lea ecx, [ebp - 8]
call fcn.00401984
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4537aa
cmp dword [ebp + 0xc], esi
jne 0x453787
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4537a1
push dword [ebp + 0xc]
call fcn.0047cc80
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401755
pop esi
leave
ret
Function at 0x4537d8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4c7674]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
xor esi, esi
cmp edi, esi
je 0x453856
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x453856
lea eax, [ebp - 0x7c]
push eax
push 8
push esi
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x453856
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x453850
xor esi, esi
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x453859
cmp eax, esi
je 0x453843
jmp 0x453840
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.0047d103
add ebp, 0x18c
leave
ret

Function at 0x45386f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x494053
call fcn.00482643
xor esi, esi
cmp dword [ebp + 8], esi
je 0x45396e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x45396e
lea eax, [ebp - 0x14]
push eax
push 1
push esi
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45396e
call fcn.00462b71
push eax
lea ecx, [ebp + 8]
call fcn.0040176f
mov dword [ebp - 4], esi
call fcn.00462b71
push eax
lea ecx, [ebp - 0x10]
call fcn.0040176f
push 0x64
pop eax
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x1c], eax
call fcn.004017ad
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
mov edi, eax
call fcn.004017ad
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x20]
push ecx
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00403194
cmp edi, 0x103
jne 0x45394b
inc esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, esi
jmp 0x453971
cmp edi, esi
je 0x453928
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401755
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.0048271b
ret