joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [0x406590]
test eax, eax
je 0x401ddb
test bl, 2
je 0x401d47
mov eax, dword [0x406594]
test eax, eax
jne 0x401d47
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 1
je 0x401d5e
mov eax, dword [0x40659c]
test eax, eax
jne 0x401d5e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 4
je 0x401d75
mov eax, dword [0x406598]
test eax, eax
jne 0x401d75
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bh, 8
je 0x401d8c
mov eax, dword [0x4065a0]
test eax, eax
jne 0x401d8c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 0x40
je 0x401da3
mov eax, dword [0x4065a4]
test eax, eax
jne 0x401da3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401e21
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test bl, 2
je 0x401de9
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 1
je 0x401df7
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 4
je 0x401e05
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bh, 8
je 0x401e13
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
test bl, 0x40
je 0x401daf
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x401eb7
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
push 0x4060f8
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0x10
push 0x4060e8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x406590]
test eax, eax
je 0x401ecf
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop ebp
add eax, 2
pop ebx
add esp, 8
ret
Function at 0x401fc0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub esp, 0xc
mov dword [eax], 0
mov dword [ecx], 0
test eax, eax
push esi
je 0x4020f8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4020f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4020f8
push ebx
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x4020ef
push ebx
push 0x4000002
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x4020e8
push ebp
push 0x801
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x20]
mov ebx, eax
push edx
push 0x400
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x20]
lea ecx, [ebx + ebp]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x4020cb
test eax, eax
je 0x4020cb
test ebx, ebx
je 0x4020c7
lea edx, [ecx + ebp + 0x401]
mov esi, ebx
push edx
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x24]
mov edi, ebx
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x14]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 8
add ebp, ecx
jmp 0x40205d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push esi
mov dword [ecx], ebx
mov byte [ebx + ebp], 0
mov dword [edx], ebp
mov ebx, 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebp
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x402880
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403e45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x100
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edi, 1
push 0x406028
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
push ecx
call fcn.00401120
lea edx, [esp + 0xc]
push edx
call section..text
mov esi, dword [esp + 0x128]
add esp, 8
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x402a20
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402aac
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x402aac
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x4061a4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402aac
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x402bd0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x403eb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x158], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString_2
push 0x406070
lea eax, [esp + 8]
push str._sexcept
push eax
mov byte [esp + 0x164], 2
call sub.MFC42.DLL_CString::Format
lea ecx, [esp + 0x10]
push ecx
call fcn.00401120
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push str._s
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402cbb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x18], 0x10
jne 0x402ca6
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x406064
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push esi
call ebp
test eax, eax
jne 0x402c7c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x158], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x150]
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x402d10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403eec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x188], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x80]
push 0x100
push eax
push 0
mov byte [esp + 0x194], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x80]
push 0x406090
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402e03
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add eax, 0xffffff9b
push 0
push eax
push esi
call edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
push esi
push 0x64
lea edx, [esp + 0x3c]
push 1
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x2c
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimRight
push 0
push 0x2c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x402e94
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 0xd4]
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 1
call sub.MFC42.DLL_CString::CString
inc esi
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp + 0xd0]
mov byte [esp + 0x18c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 1
call sub.MFC42.DLL_CString::CString
jmp 0x402eaf
lea eax, [esp + 0xc]
lea ecx, [ebp + 0xd4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0xd0]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x188], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x180]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret
Function at 0x401b50
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x401cdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x401cdc
mov eax, dword [esi]
test eax, eax
je 0x401cce
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [esi], 0
xor al, al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x401cf0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
mov ebx, ecx
mov dword [ebp - 0x20], 4
push 8
push ebx
mov esi, edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x401d32
xor al, al
mov byte [ebp - 1], al
jmp 0x401e7f
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
mov ebx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
push edi
mov edi, ecx
test ecx, ecx
jne 0x401d66
mov ecx, 1
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
mov ebx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 0xc]
div dword [ebp - 0x18]
test edx, edx
je 0x401d81
inc ecx
test edx, edx
cmove ebx, dword [ebp - 0x1c]
test edx, edx
cmove edi, dword [ebp - 0x20]
cmp dword [esi + 0x14], 0xf
jbe 0x401da6
mov eax, dword [esi]
lea edx, [esi + 0x10]
imul ecx, ebx
mov edi, eax
mov dword [ebp - 0x20], edx
sub ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0xc]
jmp 0x401db8
imul ecx, edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], eax
mov edi, esi
mov eax, dword [ebp - 0xc]
sub ecx, eax
add eax, esi
push 0
push ecx
sub eax, edi
mov ecx, esi
push eax
call fcn.00402b90
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor edi, edi
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [ebp - 0xc]
sub eax, edi
cmp eax, ecx
jg 0x401df1
mov dword [ebp - 0x10], eax
mov ebx, 1
cmp byte [ebp + 8], 0
mov ecx, esi
mov eax, dword [esi + 0x14]
je 0x401e23
cmp eax, 0xf
jbe 0x401e03
mov ecx, dword [esi]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ecx + edi]
push eax
push 0
push ebx
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x401e40
cmp eax, 0xf
jbe 0x401e2a
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ecx + edi]
push eax
push 0
push ebx
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x401e4f
mov ecx, dword [ebp - 0x10]
add edi, ecx
test ebx, ebx
je 0x401de0
jmp 0x401e54
xor al, al
mov byte [ebp - 1], al
mov eax, dword [esi + 0x10]
cmp edi, eax
ja 0x401e6c
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0xf
jbe 0x401e66
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x401e78
push 0
sub edi, eax
mov ecx, esi
push edi
call fcn.00402e30
mov ebx, dword [ebp - 0x14]
mov al, byte [ebp - 1]
pop edi
test ebx, ebx
je 0x401e8d
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ea0
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0
jne 0x401ec8
push esi
call fcn.00401b50
test al, al
je 0x401f64
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x8003
push dword [esi]
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401f34
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x401efe
mov ecx, dword [eax]
push 0
push dword [eax + 0x10]
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401f34
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x401f4b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x401f4b
mov dword [ebp - 4], eax
jmp 0x401f56
mov dword [ebp - 4], 0
test bl, bl
jne 0x401f78
mov eax, dword [ebp - 8]
test eax, eax
je 0x401f64
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
call fcn.00401cf0
add esp, 4
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d9d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ef300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0052b408
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005296ed
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040f280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417fe0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x5ef300]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [ecx + 0x10], 0
je 0x418030
cmp dword [ecx + 0x14], 0xf
jbe 0x418008
mov ecx, dword [ecx]
lea eax, [esp + 4]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x418030
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0052b3fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x84]
or eax, 0xffffffff
xor ecx, esp
call fcn.0052b3fa
mov esp, ebp
pop ebp
ret

Function at 0x41ac30
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f840
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x5ef300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x23c], edi
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], edi
push 0
push eax
mov dword [ebp - 0x23c], 0
call fcn.0052dd20
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41adb9
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
test esi, esi
je 0x41adbc
push 1
push 0x5823dc
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
call fcn.00419c10
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ad21
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.0041ed80
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x41addb
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41adad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adfb
push ecx
push edx
call fcn.0052b438
add esp, 8
jmp 0x41addb
xorps xmm0, xmm0
push 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x58242c
mov dword [edi + 0x14], 0
call fcn.00419c10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052b3fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0053775e
int3
Function at 0x41c000
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 1
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
push 0
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c093
push esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41c08b
push 1
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
jne 0x41c084
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x41c084
lea eax, [esi + 4]
cmp dword [eax], 0
je 0x41c070
inc ecx
add eax, 0x38
cmp ecx, edx
jb 0x41c054
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx*8]
mov bl, 1
sub eax, ecx
mov ecx, dword [ebp - 8]
mov eax, dword [esi + eax*8 + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret