joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402730
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push esi
push edi
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x40279a
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
push ebx
push ebp
mov eax, ecx
sub esi, ecx
mov ebp, edi
mov bl, byte [esi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x402784
pop ebp
mov byte [edi + ecx], 0
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov byte [eax + ecx], 0
ret 0xc

Function at 0x4027b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x68
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0xc
push 0
push 0x407154
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x407150
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402830
push 0x40714c
push 0x407148
push 0x407144
push 0x407140
push 0x40713c
push 0x407138
lea eax, [esp + 0x24]
push str._s_s_s_s_s_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ecx, ecx
test eax, eax
je 0x40285c
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x68
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
Function at 0x402ae0
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x26c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00402d50
mov eax, dword [eax + 4]
test eax, eax
jne 0x402b18
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x74]
push 0x40718c
push ecx
call ebp
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x402b53
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402b4a
cmp al, 0xff
je 0x402b4a
dec al
mov byte [ecx], al
jmp 0x402b53
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x27c]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x70]
mov ecx, esi
push eax
push edi
call fcn.00402c80
test eax, eax
je 0x402c70
lea ecx, [esp + 0x70]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x402c70
xor edx, edx
mov ecx, 0x11
mov dword [esp + 0xc], edx
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
mov ecx, 0x40
lea edi, [esp + 0x175]
mov word [esp + 0x5c], ax
mov byte [esp + 0x174], dl
push 0x407188
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
lea ecx, [esp + 0x178]
push eax
push str._s_s
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov dword [esp + 0x28], edx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x174]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402c70
mov eax, dword [esp + 0x280]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xc]
shl edx, 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x26c
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret 8
Function at 0x402d50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor esi, esi
push eax
push 0x3f5
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x407190
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [esp + 0x420]
mov al, byte [esp + 0x13]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x402db8
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x402deb
mov al, byte [ecx - 1]
test al, al
je 0x402deb
cmp al, 0xff
je 0x402deb
cmp ebx, esi
jne 0x402e1e
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
cmp ebx, esi
jne 0x402e08
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x402e14
cmp eax, ebx
jae 0x402e27
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40c
ret 4
Function at 0x4034b0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
jle 0x403510
mov ebx, dword [esp + 0x14]
xor edi, edi
xor esi, esi
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4034d1
xor eax, eax
jmp 0x4034d9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp edi, eax
jge 0x4034fc
mov ecx, dword [esi + ecx + 4]
test ecx, ecx
jne 0x4034eb
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403519
inc edi
add esi, 0x10
jmp 0x4034c6
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x4034c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x4039c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push edi
push eax
push str.SoftwareASD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push ecx
stosb byte es:[edi], al
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea edx, [esp + 0xc]
push 0xa
push edx
push eax
call dword [sym.imp.MSVCRT.dll__ltoa]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 4]
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x4071d8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret
Function at 0x401b21
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
push 0x400
lea eax, [ebp - 0x400]
push eax
call fcn.00401fe7
jmp 0x401be8
mov dh, byte ss:[eax + ebp - 0x400]
jmp 0x401c95
add cl, dl
jmp 0x401c3a
je 0x401b65
jmp 0x401c03
xor ecx, ecx
jmp 0x401c0d
jmp 0x401bdb
jmp 0x401c82
mov esi, dword [ebp + 0x10]
jmp 0x401bca
jne 0x401b80
jmp 0x401c1b
dec esi
jmp 0x401bdd
inc bl
jmp 0x401ca2
jmp 0x401c2d
mov ecx, 0x40
jmp 0x401b80
mov esi, dword [ebp + 0xc]
jmp 0x401bc6
jmp 0x401c62
mov byte ss:[eax + ebp - 0x400], dl
jmp 0x401bef
add al, byte [ebx + edi]
jmp 0x401be1
xor edx, edx
jmp 0x401b5c
mov dl, byte ss:[ecx + ebp - 0x400]
jmp 0x401ba0
cld
jmp 0x401c89
jne 0x401c44
jmp 0x401bc1
mov edi, dword [ebp + 0x14]
jmp 0x401b6a
jmp 0x401b91
test edi, edi
jmp 0x401b55
mov byte ss:[eax + ebp - 0x400], dl
jmp 0x401b4e
jmp 0x401b79
je 0x401c46
jmp 0x401b91
add al, dl
jmp 0x401b41
mov eax, 0xfffefdfc
jmp 0x401b85
inc cl
jmp 0x401bb9
mov edi, dword [ebp + 8]
jmp 0x401c46
sub eax, 0x4040404
jmp 0x401c07
xor byte [esi], cl
jmp 0x401c37
xor eax, eax
jmp 0x401ba5
dec ecx
jmp 0x401b6f
xor ebx, ebx
jmp 0x401b63
xor ebx, ebx
jmp 0x401b8c
xor eax, eax
jmp 0x401bf3
add al, dl
jmp 0x401c23
mov cl, byte ss:[eax + ebp - 0x400]
jmp 0x401c6d
jmp 0x401c4f
jne 0x401b63
jmp 0x401c69
inc esi
jmp 0x401c86
mov cl, byte ss:[ecx + ebp - 0x400]
jmp 0x401bff
jmp 0x401c84
jmp 0x401c67
inc bl
jmp 0x401b76
mov dword [ebp + ecx*4 - 0x404], eax
jmp 0x401bf8
mov ecx, 0x40
jmp 0x401bb3
jmp 0x401ba9
jmp 0x401c14
xor eax, eax
jmp 0x401c7a
mov byte ss:[ebx + ebp - 0x400], cl
jmp 0x401bce
lea edi, [ebp - 0x400]
jmp 0x401c58
jmp 0x401c90
jmp 0x401c48
dec edi
jmp 0x401c2f
rep stosd dword es:[edi], eax
jmp 0x401b65
popal
leave
ret 0x10
mov byte ss:[ecx + ebp - 0x400], dh
jmp 0x401b96
mov dl, byte ss:[ebx + ebp - 0x400]
jmp 0x401c1f

Function at 0x401dfa
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push edi
push esi
mov dword [ebp - 4], 0xa
cmp dword [ebp + 0x14], 0
je 0x401e1a
push 0xffffffffffffffff
push dword [ebp + 0x14]
call sub.kernel32.dll_WaitForSingleObject
mov esi, dword [ebp + 0xc]
jmp 0x401e63
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call fcn.00401fad
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x401e69
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call sub.wsock32.dll_send
test eax, eax
jle 0x401e69
sub dword [ebp + 0x10], eax
add esi, eax
dec dword [ebp - 4]
je 0x401e69
cmp dword [ebp + 0x10], 0
jne 0x401e1f
cmp dword [ebp + 0x14], 0
je 0x401e77
push dword [ebp + 0x14]
call sub.kernel32.dll_SetEvent
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x401e81
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push edi
push esi
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.00401fad
lea edx, [ebp - 8]
cmp dword [ebp + 0x14], 0
jne 0x401ea8
xor edx, edx
push edx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x401ecd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.wsock32.dll_recv
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x401ed4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401fe7
push 0x20
lea eax, [ebp - 0x20]
push eax
call fcn.00401fe7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 6
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call sub.ws2_32.dll_getaddrinfo
or eax, eax
jne 0x401f53
mov esi, dword [ebp - 0x24]
jmp 0x401f4f
cmp dword [ebp + 0xc], 2
jne 0x401f4c
cmp dword [esi + 4], 2
jne 0x401f4c
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x42c], eax
push dword [ebp - 0x24]
call sub.ws2_32.dll_freeaddrinfo
jmp 0x401f53
mov esi, dword [esi + 0x1c]
or esi, esi
jne 0x401f2a
mov eax, dword [ebp - 0x42c]
pop esi
pop edi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push edi
push esi
cmp dword [ebp + 0x20], 1
jne 0x402158
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
jmp 0x402179
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegDeleteValueA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, 1
pop esi
pop edi
pop ebx
leave
ret 0x1c
Function at 0x40218d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
lea ecx, [ebp]
sub ecx, esp
push ecx
lea eax, [esp + 4]
push eax
call fcn.00401fe7
push 0x2710
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x18e]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4021a6
mov dword [ebp - 0x198], 0x405010
lea eax, [ebp - 0x1a0]
push eax
push 0xffffffffffffffff
push 0x405072
call fcn.00401ffe
lea eax, [ebp - 0x1a0]
push eax
call fcn.00401f78
mov dword [ebp - 0x1a4], eax
push dword [ebp - 0x1a4]
push dword [ebp - 0x198]
call fcn.00401486
test eax, eax
jne 0x40222b
cmp dword [ebp - 0x198], 0x405010
jne 0x402221
mov dword [ebp - 0x198], 0x405041
jmp 0x40222b
mov dword [ebp - 0x198], 0x405010
push 0x2bf20
call sub.kernel32.dll_Sleep
jmp 0x4021f4

Function at 0x40226f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push edi
push esi
mov dword [ebp - 0xc], 0x64
push 0
push 0x80
push dword [ebp + 0x14]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4022ad
cmp dword [ebp - 0xc], 0
je 0x4022ad
dec dword [ebp - 0xc]
jmp 0x40227f
cmp dword [ebp - 4], 0xffffffff
je 0x4022de
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x40249b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401fe7
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
push 4
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00401f60
mov dword [ebp - 0x12c], 1
push 4
lea eax, [ebp - 0x12c]
push eax
push 1
push 6
push dword [ebp - 4]
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x128]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.00401ffe
lea eax, [ebp - 0x128]
push eax
call fcn.004022e5
or eax, eax
je 0x40251b
lea eax, [ebp - 0x128]
jmp 0x40252f
push 2
lea eax, [ebp - 0x128]
push eax
call fcn.00401ed4
push eax
call sub.wsock32.dll_inet_ntoa
push eax
call sub.wsock32.dll_inet_addr
test eax, eax
je 0x4025df
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10000
jbe 0x402550
push eax
call fcn.00401f78
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov word [ebp - 0x28], 2
mov dword [ebp - 0x12c], 1
lea eax, [ebp - 0x12c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.wsock32.dll_connect
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
call fcn.00401fad
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x4025df
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x130]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x4031a2
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401fe7
jmp 0x4032c6
lea eax, [ebp - 0x14]
push eax
push 4
push dword [ebp + 0x18]
call sub.secur32.dll_QueryContextAttributesA
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
push 4
push 0x3000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x4032d0
mov dword [ebp - 0x18], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0xc], ecx
ja 0x4031ff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x58]
add dword [ebp - 0x58], ecx
sub dword [ebp + 0x10], ecx
push ecx
push eax
push edx
call fcn.00401f60
push 4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401f60
mov dword [ebp - 0x50], 7
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401f60
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
push 4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401f60
mov dword [ebp - 0x38], 6
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0x18]
call sub.secur32.dll_EncryptMessage
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x3c]
push dword [ebp + 0x14]
push ecx
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00401dfa
lea eax, [ebp - 0x18]
push eax
call fcn.004027ed
cmp dword [ebp + 0x10], 0
ja 0x4031c0
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x4032d7
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401fe7
push 4
push dword [ebp + 0xc]
call fcn.00401fe7
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x8000
push 4
push 0x3000
push dword [ebp - 0x10]
push 0
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x4034b0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40332f
cmp dword [ebp - 0x50], 0x80090318
jne 0x403376
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
test ecx, ecx
jne 0x40335f
add dword [ebp - 0x10], 0x8000
push dword [ebp - 0x10]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00402784
test eax, eax
je 0x4034b0
jmp 0x40332f
push 0
push ecx
push eax
push dword [ebp + 8]
call fcn.00401e81
test eax, eax
jle 0x4034b0
add dword [ebp - 8], eax
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401f60
mov dword [ebp - 0x48], 1
push 4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401f60
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 4
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call sub.secur32.dll_DecryptMessage
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x80090318
je 0x403320
cmp dword [ebp - 0x50], 0x90317
je 0x40342e
cmp dword [ebp - 0x50], 0x90321
jne 0x403425
jmp 0x4034b0
cmp eax, 0
jne 0x4034b0
mov dword [ebp - 8], 0
mov ebx, 1
jmp 0x40349c
imul ecx, ebx, 0xc
lea esi, [ebp + ecx - 0x4c]
cmp dword [esi + 4], 1
jne 0x40346d
cmp dword [esi + 8], 0
je 0x40346d
cmp dword [esi], 0
je 0x40346d
push dword [esi]
push dword [esi + 8]
push dword [ebp - 0x54]
push edi
call fcn.0040274e
test eax, eax
je 0x4034b0
mov eax, dword [esi]
add dword [ebp - 0x54], eax
jmp 0x40349b
cmp dword [esi + 4], 5
jne 0x40349b
cmp dword [esi + 8], 0
je 0x40349b
cmp dword [esi], 0
je 0x40349b
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov ecx, dword [esi]
add dword [ebp - 8], ecx
mov dword [ebp - 0x50], 0x90312
push dword [esi]
push edx
push dword [esi + 8]
call fcn.00401f60
inc ebx
cmp ebx, 3
jbe 0x40343c
cmp dword [ebp - 0x50], 0x90312
je 0x403320
jmp 0x4034bf
push dword [ebp + 0xc]
call fcn.004027ed
mov dword [ebp - 0x54], 0
lea eax, [ebp - 4]
push eax
call fcn.004027ed
mov eax, dword [ebp - 0x54]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4014d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46848b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47d1a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ffd1
push 4
mov dword [esp + 0x24], 0
call fcn.004123e5
mov edi, eax
add esp, 4
test edi, edi
je 0x401552
call fcn.00410283
mov dword [edi], eax
call fcn.004100b1
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040ff92
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x401547
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040ffba
jmp 0x401554
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x4038a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x47d1a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
xor ebx, ebx
push 0x104
lea eax, [esp + 0xd]
push ebx
push eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
call fcn.00416fc0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4038f6
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004036a0
mov ecx, dword [esp + 0x110]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0041233e
add esp, 0x110
ret