joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a870
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 1
push dword [ebp + 8]
call fcn.0046a1c3
test al, al
je 0x45a891
mov al, 1
jmp 0x45a974
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call fcn.00430f83
pop ecx
test al, al
je 0x45a8b5
push 0x2726
call fcn.0045c7e5
pop ecx
xor al, al
jmp 0x45a973
lea ecx, [ebp - 0xc]
call fcn.00428bf1
push closesocket
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0042f82b
lea ecx, [ebp - 0xc]
call fcn.00425051
cmp dword [0x4dc8e0], ebx
je 0x45a8f2
lea eax, [ebp - 0xc]
push eax
call fcn.0045aa32
pop ecx
test al, al
je 0x45a8f2
push 0x2afc
jmp 0x45a937
call fcn.0045c7dc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45a91b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2afc
jne 0x45a969
lea eax, [ebp - 0xc]
push eax
call fcn.0045a977
jmp 0x45a93c
cmp word [eax + 8], 2
jne 0x45a929
cmp word [eax + 0xa], 4
je 0x45a93f
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x45a969
push 0x273e
call fcn.0045c7e5
pop ecx
jmp 0x45a969
mov eax, dword [eax + 0xc]
mov ecx, esi
mov edx, dword [eax]
movzx eax, byte [edx + 3]
push eax
movzx eax, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push eax
movzx eax, byte [edx]
push eax
call fcn.0046a181
mov ecx, esi
call fcn.00439308
xor al, 1
mov bl, al
lea ecx, [ebp - 0xc]
call fcn.00426528
mov al, bl
pop ebx
pop esi
leave
ret

Function at 0x45aad4
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x4dfe1c]
mov ecx, 0x49bb60
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45aaf2
push 3
pop eax
ret
cmp word [eax + 8], 2
je 0x45aafd
push 4
pop eax
ret
cmp word [eax + 0xa], 4
je 0x45ab08
push 5
pop eax
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
mov ecx, 0x4dfe28
push eax
call fcn.0046a181
xor eax, eax
ret
Function at 0x45ac7b
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dc8f8]
sub esp, 0x1a0
cmp eax, 6
jne 0x45adb9
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45acb7
xor eax, eax
mov dword [0x4dc8f8], 1
inc eax
leave
ret
push ebx
push esi
push edi
push 0x45adbb
call fcn.0046bcd8
pop ecx
push 0x63
mov esi, 0x4dfe1c
push 0x64
mov ecx, esi
call fcn.00423bf0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.004297c6
push 1
xor edi, edi
mov dword [ebp - 0x10], 0x49be28
push str.Ws2_32.dll
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00434377
mov ebx, 0x4dfdec
test al, al
je 0x45ad42
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.GetHostNameW
lea ecx, [ebp - 0x10]
call fcn.0043430b
test al, al
je 0x45ad42
mov esi, dword [ebp - 4]
mov ecx, ebx
push 0x63
push 0xc8
call fcn.00423bf0
push eax
call esi
mov ecx, ebx
call fcn.004297e1
mov esi, 0x4dfe1c
cmp dword [0x4dfdf0], edi
jg 0x45ad55
push edi
push ebx
push esi
call fcn.0045983d
add esp, 0xc
mov eax, dword [0x4dfe1c]
mov ecx, 0x49bb60
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45ad98
push dword [eax]
mov esi, 0x4dfe10
mov ecx, esi
call fcn.0042f8db
mov ecx, esi
call fcn.00431818
mov ecx, esi
call fcn.00431800
push 1
push 0x2e
push 0x20
mov ecx, esi
call fcn.0042e04d
call fcn.0045aad4
mov esi, eax
mov dword [ebp - 0x10], 0x49be28
lea ecx, [ebp - 0x10]
mov dword [0x4dc8f8], esi
call fcn.004340ff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45b64e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x45b852
and dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
test bl, 4
je 0x45b67f
mov dword [ebp - 4], edi
test bl, 8
jne 0x45b67f
mov ecx, edi
call fcn.00426528
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 0xfffff
ja 0x45b852
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45b6a7
test byte [esi + 0x10], 1
jne 0x45b6a7
push 0x2749
jmp 0x45b857
and dword [esi + 0x14], 0
and dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov ecx, esi
mov al, bl
and al, 1
mov byte [ebp + 0xb], al
mov eax, ebx
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x20], eax
call fcn.0045b8b9
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 3
and eax, 2
mov dword [ebp + 0x10], 0xa
mov ecx, eax
or ecx, 1
and bl, 0x20
mov ebx, dword [ebp - 0xc]
cmove ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, esi
call fcn.0045b867
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x45b771
js 0x45b84a
cmp byte [ebp + 0xb], 0
jne 0x45b84a
push dword [ebp - 0x10]
call fcn.00458ea8
pop ecx
cmp eax, dword [esi + 0x30]
jae 0x45b83e
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45b737
test byte [esi + 0x10], 1
je 0x45b82a
mov ecx, esi
call fcn.0045aa8f
test al, al
jne 0x45b837
push dword [ebp + 0x10]
call fcn.00458bc7
add dword [ebp + 0x10], 5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], 0x3c
push eax
call fcn.004018bc
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp + 0x10], eax
jmp 0x45b6f4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042336a
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x45b795
mov eax, edi
jmp 0x45b7a8
push ecx
mov ecx, eax
call fcn.004287d6
test eax, eax
je 0x45b84e
mov ecx, dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x18]
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x45b7c9
mov ecx, esi
call fcn.0045c1ad
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x45b7f4
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402d9d
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.00426958
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
jle 0x45b84a
add ebx, eax
cmp byte [ebp - 0x20], 0
jne 0x45b808
cmp eax, dword [ebp - 0xc]
jge 0x45b84a
mov edx, dword [ebp + 0xc]
sub edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
jle 0x45b84a
mov dword [ebp + 0x10], 0xa
test ecx, ecx
jne 0x45b6f4
add edi, eax
jmp 0x45b6f4
cmp dword [esi + 0x14], 0
jne 0x45b84a
push 0x2749
jmp 0x45b843
push 0x2746
jmp 0x45b843
push 0x274c
mov ecx, esi
call fcn.0045c1bf
mov eax, ebx
jmp 0x45b860
push 8
jmp 0x45b843
push 0x2726
mov ecx, esi
call fcn.0045c1bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45b867
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45b88c
test byte [esi + 0x10], 1
jne 0x45b88c
push 0x2749
call fcn.0045c1bf
or eax, 0xffffffff
jmp 0x45b8b6
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x45b8b3
mov ecx, esi
call fcn.0045c1ad
and dword [esi + 0x10], 0xfffffffe
jmp 0x45b887
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x45bf25
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x45c09a
mov edi, dword [ebp + 0xc]
cmp edi, 0x7fffffff
jne 0x45bf52
push ebx
call fcn.004312f0
mov edi, eax
pop ecx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45c09a
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
jne 0x45bf77
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
jne 0x45bf77
push 0x2749
jmp 0x45c09f
mov ecx, esi
call fcn.0045c0af
mov ecx, dword [esi + 0xc]
shr ecx, 1
mov dword [ebp - 8], eax
test cl, 1
je 0x45bf96
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0045ae54
mov byte [ebp - 1], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
je 0x45bfc8
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x45bfd5
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x45c040
mov ecx, esi
call fcn.0045c1ad
cmp dword [esi + 0x14], 0x2733
jne 0x45bffe
mov ecx, esi
call fcn.0045adf9
test al, al
jne 0x45c053
push 0xa
call fcn.00458bc7
pop ecx
jmp 0x45bf9a
cmp dword [esi + 0x14], 0x2747
jne 0x45c053
cmp byte [ebp - 1], 0
jne 0x45c053
mov eax, 0x1000
cmp dword [ebp - 8], eax
jle 0x45c053
push eax
mov ecx, esi
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call fcn.0045c0d7
push 0x2747
mov ecx, esi
mov bl, al
call fcn.0045c1bf
test bl, bl
je 0x45c053
mov ebx, dword [ebp + 8]
jmp 0x45bf9a
sub edi, eax
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45c096
add ebx, eax
mov dword [ebp + 8], ebx
jmp 0x45bf9a
mov eax, dword [esi + 0x14]
cmp eax, 0x2746
jg 0x45c07b
cmp eax, 0x2744
jge 0x45c08d
sub eax, 0x271e
je 0x45c075
sub eax, 0x15
je 0x45c096
sub eax, 0xf
je 0x45c08d
and dword [esi + 0x10], 0xfffffffd
jmp 0x45c0a6
sub eax, 0x274a
je 0x45c075
dec eax
sub eax, 1
je 0x45c08d
sub eax, 5
jne 0x45c075
mov ecx, esi
call fcn.0045a30e
jmp 0x45c0a6
mov al, 1
jmp 0x45c0a8
push 0x2726
mov ecx, esi
call fcn.0045c1bf
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45c11f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x45c1a7
push 0x4dfe2c
xor ebx, ebx
mov dword [ebp - 0x100], esi
push ebx
push ebx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x104], 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x45c1a3
lea eax, [ebp - 0x104]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c1a3
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x45c1a3
je 0x45c1a7
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
push esi
call fcn.0045c7b0
pop ecx
test al, al
jne 0x45c19d
cmp esi, 0x2726
jne 0x45c19f
mov bl, 1
mov al, bl
jmp 0x45c1a9
xor al, al
jmp 0x45c1a9
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x45d4b4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
jne 0x45d4c5
push 2
jmp 0x45d4ce
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45d4d8
push 5
pop esi
call fcn.00458bbe
mov eax, esi
jmp 0x45d537
test byte [ebp + 0xc], 0x20
push dword [ebp + 0x10]
je 0x45d4fa
push edi
call fcn.0045e4a8
test al, al
jne 0x45d507
push 0x91
call fcn.00458bb0
pop ecx
push 4
jmp 0x45d536
mov eax, dword [ebp + 0xc]
and eax, 0xffffffef
push eax
push edi
call fcn.0045d5be
push edi
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push edi
call fcn.00458bb0
pop ecx
push 2
pop eax
cmp edi, eax
je 0x45d537
test edi, edi
jne 0x45d52a
xor eax, eax
inc eax
jmp 0x45d537
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045eed1
push 3
pop eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45d677
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x3000f
push 0x40
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.0045e545
test eax, eax
jne 0x45d6a5
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
cmp eax, 2
setne cl
lea eax, [ecx + 2]
jmp 0x45d6bc
push esi
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0045d6c1
mov ecx, edi
mov esi, eax
call fcn.0045ce97
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x45d6c1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45d6d8
push 6
call fcn.00458bb0
pop ecx
push 2
pop eax
jmp 0x45d6ff
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
jne 0x45d6ec
inc eax
jmp 0x45d6fe
push esi
call fcn.00458bb0
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4

Function at 0x45d8ea
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45d901
push 6
call fcn.00458bb0
pop ecx
push 2
pop eax
jmp 0x45d928
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x45d915
inc eax
jmp 0x45d927
push esi
call fcn.00458bb0
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4
Function at 0x45d92c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45d94d
push 6
call fcn.00458bb0
pop ecx
xor eax, eax
jmp 0x45d9cf
push edi
push 0xc7
lea eax, [ebp - 0xd4]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x45d9bb
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.00428bf1
push closesocket
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042f82b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00426528
push 0xc7
lea eax, [ebp - 0xd4]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x45d96b
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.00458bb0
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x45d9d4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45d9f5
push 6
call fcn.00458bb0
pop ecx
xor eax, eax
jmp 0x45da77
push edi
push 0xc7
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x45da63
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.00428bf1
push closesocket
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042fd81
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00426528
push 0xc7
lea eax, [ebp - 0x19c]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x45da13
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.00458bb0
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x45e2c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45e2e2
push 6
call fcn.00458bb0
pop ecx
xor al, al
jmp 0x45e32b
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x45e327
sub eax, 0
je 0x45e37d
dec eax
sub eax, 1
je 0x45e327
sub eax, 0xe8
je 0x45e330
sub eax, 0x308
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046af75
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x45e402
push dword [ebp - 4]
mov ecx, edi
call fcn.00423bf0
cmp dword [edi], 0
lea ecx, [ebp - 4]
push ecx
mov eax, 0x49bb60
cmovne eax, dword [edi]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45e3d8
mov ecx, edi
call fcn.00426528
jmp 0x45e327
mov eax, dword [ebp - 8]
test eax, eax
je 0x45e327
cmp eax, 3
jbe 0x45e3c7
cmp eax, 4
je 0x45e3af
cmp eax, 7
je 0x45e3c7
cmp eax, 0xb
jne 0x45e327
cmp ecx, 8
jne 0x45e327
push dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0046ae8f
jmp 0x45e3d8
cmp ecx, 4
jne 0x45e327
push dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046aeb1
jmp 0x45e3d8
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
shr ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0046af3b
cmp dword [ebp - 8], 1
je 0x45e3e4
cmp dword [ebp - 8], 2
jne 0x45e402
test dword [ebp + 0x10], 0x2000
jne 0x45e402
mov ecx, esi
call fcn.0046ac4f
push 2
push 0x4b2d30
mov ecx, eax
call fcn.00426ef9
mov al, 1
jmp 0x45e329

Function at 0x45f668
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 8
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x45f68f
cmp dword [edi + 4], 0
jg 0x45f68f
push dword [ebp + 8]
call fcn.0045d8ea
dec eax
neg eax
sbb al, al
inc al
jmp 0x45f700
test dword [ebp + 0x10], 0x8000
je 0x45f6a8
push dword [ebp + 8]
call fcn.0045f920
test al, al
je 0x45f6a8
mov al, 1
jmp 0x45f700
xor ecx, ecx
inc ecx
test byte [ebp + 0x10], 0x80
je 0x45f6b6
push 3
pop ecx
jmp 0x45f6c3
test dword [ebp + 0x10], 0x100
push 2
pop eax
cmovne ecx, eax
cmp dword [esi + 0x14], 0
jne 0x45f6d4
push 6
call fcn.00458bb0
xor al, al
jmp 0x45f6ff
push dword [edi + 4]
cmp dword [edi], 0
mov eax, 0x49bb64
cmovne eax, dword [edi]
push eax
push ecx
push 0
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call fcn.00458bb0
test esi, esi
sete al
pop ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x460caa
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00458ba7
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and eax, 1
push 0x10
pop esi
push 4
mov dword [ebp - 4], eax
pop eax
cmovne esi, eax
test edi, edi
je 0x460d48
cmp edi, 1
je 0x460d43
push 2
pop ebx
cmp edi, ebx
je 0x460cf9
cmp edi, 3
je 0x460d4b
jle 0x460d3c
cmp edi, 5
jle 0x460cfd
cmp edi, 6
jne 0x460d3c
call fcn.00457945
push 0x40
test al, al
pop ecx
cmovne ebx, ecx
or esi, ebx
jmp 0x460d4b
call fcn.004605a0
test al, al
jne 0x460d0a
xor al, al
jmp 0x460d7b
mov ecx, dword [0x4dfef0]
test ecx, ecx
jne 0x460d1e
push 0x78
call fcn.00458bb0
pop ecx
jmp 0x460d06
mov eax, dword [ebp + 0xc]
shr eax, 1
and eax, 1
push eax
push dword [ebp - 4]
xor eax, eax
cmp edi, 5
sete al
push eax
call ecx
test al, al
setne al
jmp 0x460d7b
call fcn.00458bbe
jmp 0x460d06
or esi, 8
jmp 0x460d4b
or esi, 1
push 0
push 1
mov edi, str.SeShutdownPrivilege
push edi
call fcn.004605d9
add esp, 0xc
push dword [ebp + 0x10]
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
test eax, eax
push 0
push edi
setne bl
call fcn.004605d9
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4621f9
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
je 0x4622b5
mov eax, dword [ebp + 0x10]
and eax, 2
mov dword [ebp - 8], eax
jne 0x462220
call fcn.004621c3
test al, al
je 0x4622b5
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov esi, dword [esi + 4]
sub eax, 1
je 0x46223f
sub eax, 6
je 0x46223f
sub eax, 6
jne 0x462240
add esi, 2
jmp 0x462240
inc esi
and dword [ebp - 4], 0
push esi
call fcn.0045741f
mov edi, eax
pop ecx
test edi, edi
je 0x462296
push edi
call fcn.0045747e
pop ecx
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x462296
mov edx, dword [ebp + 8]
mov eax, 0x49bb60
push esi
cmp dword [edx], 0
cmovne eax, dword [edx]
push eax
push ecx
call fcn.0047fed0
push edi
call fcn.004574b9
add esp, 0x10
test byte [ebp + 0x10], 1
jne 0x46228c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [ebp - 8], 0
jne 0x4622a1
call sub.USER32.dll_CloseClipboard
test edi, edi
pop edi
pop esi
je 0x4622b1
cmp dword [ebp - 4], 0
je 0x4622b1
mov al, 1
leave
ret
xor eax, eax
leave
ret
xor al, al
leave
ret

Function at 0x463c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00428bf1
cmp dword [ebp + 0xc], 0
je 0x463c59
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
test ecx, ecx
jle 0x463c59
lea eax, [ecx + 1]
add ecx, ecx
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00423bf0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x46563d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x49a819
call fcn.0046bcf0
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x14]
or ecx, 0x100000
mov dword [ebx + 0x14], ecx
or edi, 0xffffffff
mov dword [ebp - 0x18], edi
movzx eax, cx
sub eax, 1
je 0x465682
sub eax, 1
je 0x46567e
sub eax, 1
jne 0x465688
push 0x17
jmp 0x465684
push 2
jmp 0x465684
push 0x11
pop edi
mov dword [ebp - 0x18], edi
and dword [ebp - 0x20], 0
test edi, edi
js 0x4656a0
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebx]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebx + 0x14]
test ecx, 0x80000
je 0x4656e3
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00466239
pop ecx
pop ecx
push 0
sub esp, 0xc
mov esi, esp
mov ecx, esi
call fcn.00428bf1
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0042f80d
lea esi, [ebx + 0x18]
push esi
call fcn.00445c0c
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00426528
jmp 0x4656e6
lea esi, [ebx + 0x18]
push esi
call fcn.00442146
push 0
push 0x20
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a415
add esp, 0x10
mov eax, dword [ebx]
mov dword [ebp - 0x4c], eax
mov eax, 0x49bb64
cmp dword [ebx + 8], 0
cmovne eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0x461d08
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
push 0x41
pop eax
test dword [ebx + 0x14], 0x20000
mov ecx, 0x8041
cmove eax, ecx
mov dword [ebp - 0x3c], eax
test dword [ebx + 0x14], 0x40000
je 0x465745
or eax, 0x10
mov dword [ebp - 0x3c], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x46582b
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4657aa
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4657aa
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4657b1
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
or dword [ebp - 4], 0xffffffff
jmp 0x4657c7
cmp byte [ebp - 0x11], 0
je 0x46582b
push closesocket
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebx + 0x24]
call fcn.0042fd81
test dword [ebx + 0x14], 0x80000
je 0x46581d
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00466239
push ecx
mov esi, esp
mov ecx, esi
call fcn.00428bf1
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0042f80d
lea eax, [ebx + 0x24]
push eax
call fcn.004451d5
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.00426528
mov al, 1
jmp 0x46582d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret