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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xe58
push esi
xor esi, esi
mov word [eax], si
lea eax, [ebp - 4]
push eax
push 8
push esi
push str.SoftwareMicrosoftOffice
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x57bf39
xor al, al
jmp 0x57c112
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
push dword [ebp - 4]
mov ebx, 0x104
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x57c100
push edi
inc dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x430]
push str._d.0
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
call fcn.005fa805
add esp, 0xc
cmp eax, 1
jne 0x57c0dc
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jle 0x57c0dc
lea eax, [ebp - 0x430]
push eax
push str._sCommonIdentityProfiles
mov eax, ebx
lea edi, [ebp - 0x840]
call fcn.005383cd
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 8
push esi
mov eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57c0dc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x638]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
push esi
jmp 0x57c09d
inc dword [ebp - 0x14]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x430]
push eax
push str._sCommonIdentityIdentities_s
mov eax, ebx
lea edi, [ebp - 0x228]
mov dword [ebp - 0x20], ebx
call fcn.005383cd
add esp, 0xc
mov edi, 0x631a7c
push edi
push str.ProfileUrl
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc50]
call fcn.00401162
push edi
push str.ProviderId
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xa48]
call fcn.00401162
push edi
push str.SigninName
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xe58]
call fcn.00401162
cmp word [ebp - 0xc50], si
je 0x57c08b
cmp word [ebp - 0xa48], si
je 0x57c08b
cmp word [ebp - 0xe58], si
jne 0x57c0b0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x57bff1
jmp 0x57c0ce
push edi
push str.EmailAddress
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00401162
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jg 0x57c0ff
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x57bf6a
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
pop ebx
setg al
pop esi
leave
ret 4
Function at 0x57d522
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push edi
push 2
mov dword [ebp + 8], edi
call sub.iphlpapi.dll_GetAdaptersAddresses
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp + 8]
push eax
push esi
push edi
push edi
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
push 6
pop eax
cmp dword [esi + 0x34], eax
jbe 0x57d577
mov dword [esi + 0x34], eax
xor eax, eax
cmp dword [esi + 0x34], edi
jbe 0x57d58b
mov cl, byte [esi + eax + 0x2c]
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esi + 0x34]
jb 0x57d57e
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x57d59f
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea esi, [ebp - 1]
call fcn.004cc098
lea eax, [ebp - 8]
push eax
push 0x639fc8
push 1
xor ebx, ebx
push ebx
push 0x639fb8
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x57d623
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
mov eax, dword [ebp - 8]
je 0x57d5ff
cmp eax, ebx
je 0x57d5f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x57d5fb
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x57d64b
test word [ebp - 0xc], 0x440
setne byte [ebp - 2]
cmp eax, ebx
je 0x57d613
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x57d61e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 2]
jmp 0x57d64b
cmp byte [ebp - 1], bl
je 0x57d62e
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x57d5fb
mov eax, dword [ebp - 0x10]
shr eax, 5
not eax
and eax, 1
pop esi
pop ebx
leave
ret
Function at 0x57d754
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [eax], ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x57d785
xor al, al
jmp 0x57d7fd
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
jne 0x57d79d
xor al, al
jmp 0x57d7fc
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [eax]
jmp 0x57d7e7
lea eax, [ebp - 4]
push eax
push esi
call fcn.0057d688
test ebx, ebx
je 0x57d7ed
mov eax, esi
call fcn.0057d64f
test al, al
je 0x57d7e0
mov al, byte [esi]
test al, al
je 0x57d7e0
cmp al, 0x7f
je 0x57d7e0
cmp byte [ebp - 4], 0xff
jne 0x57d7ed
cmp byte [ebp - 3], 0xff
jne 0x57d7ed
cmp byte [ebp - 2], 0xff
jne 0x57d7ed
cmp byte [ebp - 1], 0xff
jne 0x57d7ed
mov eax, dword [edi + 0xc]
inc ebx
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x57d7a5
jmp 0x57d7f4
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
test ebx, ebx
setg al
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x57d83b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
call fcn.004d12c2
lea eax, [ebp - 4]
push eax
call fcn.0057d754
push 2
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
mov esi, 0x104
jne 0x57d896
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x57d896
push edi
mov eax, str.127.0.0.1
call fcn.00401050
jmp 0x57d8ae
push esi
push edi
push 0xffffffffffffffff
push dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and word [edi + 0x206], 0
pop esi
leave
ret

Function at 0x57d8b1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor ax, ax
call fcn.0057d802
movzx ebx, ax
xor edi, edi
cmp bx, di
jne 0x57d92e
push 0x19
pop ebx
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0xf
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 4], edi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x57d92e
mov esi, dword [ebp - 4]
cmp esi, edi
je 0x57d92e
mov eax, dword [esi + 0x18]
xor edx, edx
jmp 0x57d914
cmp edx, 0x103
jae 0x57d91e
mov word [ebp + edx*2 - 0x20c], cx
inc edx
movzx ecx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x57d903
push 1
push esi
mov word [ebp + edx*2 - 0x20c], di
call sub.DNSAPI.dll_DnsRecordListFree
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004d12ee
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push ebx
mov word [esi], 2
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
pop edi
mov word [esi + 2], ax
pop esi
pop ebx
leave
ret 4
Function at 0x57d95e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
movzx ebx, word [ebp + 8]
push esi
push 0x104
lea esi, [ebp - 0x104]
call fcn.00538365
mov eax, esi
push 0x3a
push eax
call fcn.005fb290
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
je 0x57d99d
mov byte [eax], 0
inc eax
push eax
call fcn.005f8585
pop ecx
movzx ebx, ax
lea eax, [ebp - 0x104]
push eax
mov word [edi], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 6], eax
je 0x57d9be
mov dword [edi + 2], 1
jmp 0x57d9f9
lea eax, [ebp - 0x104]
push eax
mov dword [edi + 2], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x57d9f9
mov ecx, dword [eax + 0xc]
cmp dword [ecx], esi
je 0x57d9f9
mov ecx, dword [edi + 2]
mov edx, dword [eax + 0xc]
shl ecx, 2
add edx, ecx
cmp dword [edx], esi
je 0x57d9f9
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ecx + edi + 6], edx
inc dword [edi + 2]
cmp dword [edi + 2], 4
jb 0x57d9d9
pop esi
pop ebx
leave
ret 4
Function at 0x57d9ff
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x320
cmp eax, 0xffffffff
push ebx
push edi
je 0x57da18
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x57da31
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x57db88
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov dword [esi], eax
call fcn.004d1389
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
mov ebx, 0xffff
push ebx
push dword [esi]
mov dword [ebp - 4], 0x40000
call edi
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push ebx
push dword [esi]
mov dword [ebp - 4], 0x80000
call edi
mov edi, dword [ebp + 0x10]
cmp dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 2
je 0x57db75
push 0x10
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x57dae4
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
movzx ecx, byte [ebp + 0x17]
push ecx
movzx ecx, byte [ebp + 0x16]
push ecx
movzx ecx, ah
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x320]
push str._d._d._d._d
push eax
call fcn.00401000
movzx eax, word [edi + 2]
add esp, 0x18
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x57db88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x57db75
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x118]
xor edi, edi
xor ebx, ebx
push ecx
inc edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x21c], eax
push ebx
inc eax
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x30d40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jg 0x57db59
jl 0x57db75
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x57db72
mov eax, 0xc8
cmp dword [ebp + 0x14], eax
jbe 0x57db75
sub dword [ebp + 0x14], eax
jmp 0x57daf5
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x57db75
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x57db88
mov dword [ebp - 4], edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
or dword [esi], 0xffffffff
mov dword [eax], ecx
pop edi
pop ebx
leave
ret 0x10
Function at 0x57dc0b
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
push edi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x57dcc3
mov esi, dword [ebp + 0x10]
xor edi, edi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x18]
jge 0x57dcce
cmp eax, edi
jge 0x57dc65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x57dc6b
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop esi
pop ebx
leave
ret 0x18
add dword [ebp + 0x14], eax
sub dword [ebp + 0x18], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x110]
push eax
push edi
lea eax, [esi + 1]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x30d40
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jg 0x57dcb5
jne 0x57dcb1
mov eax, 0xc8
cmp dword [ebp + 0x1c], eax
jle 0x57dc55
sub dword [ebp + 0x1c], eax
jmp 0x57dcb5
cmp eax, edi
jl 0x57dc55
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test al, al
je 0x57dc2d
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x57dc5e
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x57dc5e

Function at 0x57dcd5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x57dd45
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x57dd52
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 4], 0x30d40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x57dd4d
jl 0x57dd4d
mov eax, 0xc8
cmp dword [ebp + 0x10], eax
jbe 0x57dd52
sub dword [ebp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test al, al
je 0x57dcf0
mov dword [edi], 1
jmp 0x57dd58
and dword [edi], 0
jmp 0x57dd58
mov dword [edi], 2
pop esi
mov eax, edi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0x14], eax
push ebx
push edi
mov dword [ecx], eax
jne 0x57dd75
mov dword [esi], eax
jmp 0x57ddb4
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0xc]
push ecx
mov eax, esp
push dword [ebp + 8]
lea edi, [ebp + 0x1c]
mov dword [eax], ebx
call fcn.0057dcd5
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x57dd71
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x57ddae
mov ecx, dword [ebp + 0x18]
and dword [esi], 0
mov dword [ecx], eax
jmp 0x57ddb4
mov dword [esi], 2
pop edi
mov eax, esi
pop ebx
pop ebp
ret 0x18
Function at 0x57de61
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
lea edi, [ebp + 0x18]
push ecx
mov eax, esp
push dword [ebp + 0xc]
mov dword [eax], ebx
call fcn.0057dcd5
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x57de8d
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x57defd
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 2
push 0x30
push dword [ebp + 0x14]
push ebx
call edi
test eax, eax
mov dword [ebp + 0x10], eax
jg 0x57deaf
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x57defd
and dword [ebp + 0x18], 0
test eax, eax
mov dword [esi], eax
jbe 0x57deed
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov cl, byte [edx + ecx]
test cl, cl
je 0x57dedd
movsx eax, cl
push eax
push 0x67b1f4
call fcn.005fb290
test eax, eax
pop ecx
pop ecx
jne 0x57dee7
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], eax
jb 0x57deb9
jmp 0x57deed
mov eax, dword [ebp + 0x18]
inc eax
mov dword [esi], eax
push 0
push dword [esi]
push dword [ebp + 0x14]
push ebx
call edi
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x57f219
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov eax, edi
call fcn.004d151c
test al, al
jne 0x57f250
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
mov ecx, dword [edi + 0x20]
mov eax, esp
push dword [ebp + 0xc]
mov dword [eax], ecx
push dword [ebp + 8]
call fcn.0057dc0b
mov eax, dword [ebp + 8]
jmp 0x57f341
mov ebx, dword [edi + 0x30]
add ebx, dword [edi + 0x34]
add ebx, dword [edi + 0x2c]
cmp dword [edi + 0x44], ebx
jae 0x57f26a
push ebx
lea esi, [edi + 0x40]
call fcn.004b38b4
mov dword [edi + 0x44], ebx
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x2c]
add esi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp + 0x10], eax
jbe 0x57f33b
mov ebx, dword [edi + 0x34]
cmp dword [ebp + 0x10], ebx
jae 0x57f294
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp - 8]
push esi
call fcn.005fbd60
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x30], eax
add esp, 0xc
lea eax, [ebx + esi]
mov dword [ebp - 0x28], eax
xor eax, eax
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [edi + 0x24]
push eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x14], 4
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x57f347
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
push dword [ebp + 0x18]
add eax, ecx
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0xc]
push ecx
mov ecx, dword [edi + 0x20]
mov eax, esp
push dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp + 0x14]
push eax
call fcn.0057dc0b
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x57f352
add dword [ebp - 8], ebx
sub dword [ebp + 0x10], ebx
jne 0x57f289
mov eax, dword [ebp + 8]
and dword [eax], 0
pop esi
pop ebx
leave
ret 0x14
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x57f341
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x57f341
Function at 0x57f6e1
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0x38
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.005fc0d0
lea eax, [edi + 0x250]
add esp, 0xc
cmp dword [eax], esi
mov dword [ebp - 0x38], 4
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x18], 0xaa0
je 0x57f725
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], eax
push esi
add edi, 0x254
push edi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push esi
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
neg eax
sbb al, al
pop edi
inc al
pop esi
leave
ret
Function at 0x580896
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
lea esi, [ebp - 1]
call fcn.004cc098
lea eax, [ebp - 8]
push eax
push 0x68ed10
push 1
xor ebx, ebx
push ebx
push 0x68ed20
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 8], ebx
je 0x580bc4
lea eax, [ebp - 0x448]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x448]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x5808ea
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x44a]
cmp word [eax], 0x5c
jne 0x580908
mov word [eax], bx
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
cmp dword [ebp + 0x24], ebx
je 0x580931
mov eax, dword [ebp - 8]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x5809b4
cmp word [esi], bx
je 0x5809b4
push 0x218
call fcn.00538281
cmp eax, ebx
pop ecx
je 0x580957
mov edx, esi
mov edi, eax
call fcn.00580290
jmp 0x580959
xor eax, eax
push 1
push dword [eax]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp + 0x10]
call fcn.00580e26
mov eax, dword [ebp + 0x10]
invalid

Function at 0x581278
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
push esi
push edi
mov edi, eax
jne 0x581293
xor al, al
jmp 0x581310
cmp word [edi], 0
je 0x58128f
mov ecx, ebx
lea esi, [ebp - 0x410]
call fcn.005375ef
mov eax, esi
push eax
push edi
lea eax, [ebp - 0x208]
push eax
call fcn.00401f51
lea eax, [ebp - 0x208]
push eax
call fcn.00401e3b
test al, al
jne 0x5812d5
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x618]
push eax
push str.7za32
call fcn.00532eba
test al, al
jne 0x5812f5
mov edi, dword [ebp + 8]
lea esi, [ebp + 0xc]
call fcn.0052dfe7
lea eax, [ebp - 0x208]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0052e110
cmp dword [ebp + 8], 0
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x582799
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
call fcn.004cbba7
test al, al
je 0x5828e4
push dword [ebp + 8]
mov esi, 0x104
push str.SoftwareNCH_SoftwareSuiteExtensions_s
mov eax, esi
lea edi, [ebp - 0x628]
call fcn.005383cd
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 8
xor ebx, ebx
push ebx
mov eax, edi
push eax
push SysReAllocString
mov word [ebp - 0x420], bx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5828cb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp + 8], esi
push ebx
jmp 0x582890
inc dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x582877
push 0x631a7c
push 0x63e508
push dword [ebp - 0xc]
lea esi, [ebp - 0x830]
call fcn.00538747
test al, al
je 0x58286e
mov esi, 0x104
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x830]
push eax
call fcn.005f9a6d
add esp, 0xc
test eax, eax
je 0x58289f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 8]
mov dword [ebp + 8], 0x104
push dword [ebp - 4]
call edi
test eax, eax
je 0x582815
jmp 0x5828c2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x631a90
mov eax, esi
lea edi, [ebp - 0x420]
call fcn.005383cd
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x420], bx
je 0x5828e4
push SysReAllocString
lea eax, [ebp - 0x420]
call fcn.0053888e
pop edi
pop esi
pop ebx
leave
ret 8